From 2c21da111e9e2fcbd18b3933e506ba97adf047c9 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:36:23 +0700 Subject: [PATCH] refactor: remove variant prop from input components and styles - Removed the variant prop from Checkbox, Input, InputNumber, Switch, TextArea components. - Updated styles to eliminate variant-specific classes for Checkbox, Input, InputNumber, TextArea, and Switch. - Simplified class names in stylesheets to focus on status only. - Adjusted documentation to reflect the removal of the variant prop. --- .../showcase/components/checkbox.showcase.tsx | 40 +--- .../components/date-picker.showcase.tsx | 0 .../showcase/components/input.showcase.tsx | 80 +------ .../showcase/components/switch.showcase.tsx | 29 ++- .../forms/checkbox/checkbox.component.tsx | 3 +- .../forms/input/input-number.component.tsx | 8 +- .../forms/input/input.component.tsx | 8 +- .../forms/styles/checkbox.style.css | 81 ------- .../forms/styles/input-number.style.css | 153 +++----------- .../components/forms/styles/input.style.css | 107 ++-------- .../components/forms/styles/picker.style.css | 0 .../components/forms/styles/switch.style.css | 197 ++++++------------ .../forms/styles/textarea.style.css | 102 ++------- .../forms/switch/switch.component.tsx | 13 +- .../forms/textarea/textarea.component.tsx | 15 +- .../ui/src/components/forms/types/index.ts | 4 +- 16 files changed, 164 insertions(+), 676 deletions(-) create mode 100644 apps/web/src/apps/modules/example/showcase/components/date-picker.showcase.tsx create mode 100644 packages/ui/src/components/forms/styles/picker.style.css diff --git a/apps/web/src/apps/modules/example/showcase/components/checkbox.showcase.tsx b/apps/web/src/apps/modules/example/showcase/components/checkbox.showcase.tsx index 52760d5..2439f6c 100644 --- a/apps/web/src/apps/modules/example/showcase/components/checkbox.showcase.tsx +++ b/apps/web/src/apps/modules/example/showcase/components/checkbox.showcase.tsx @@ -33,8 +33,8 @@ export default function CheckboxShowcase({ status: overrideStatus }: CheckboxSho
Filled
- - + +
@@ -60,40 +60,6 @@ export default function CheckboxShowcase({ status: overrideStatus }: CheckboxSho - - {/* Filled Status */} -
- - - - - -
@@ -124,7 +90,7 @@ export default function CheckboxShowcase({ status: overrideStatus }: CheckboxSho
- +
diff --git a/apps/web/src/apps/modules/example/showcase/components/date-picker.showcase.tsx b/apps/web/src/apps/modules/example/showcase/components/date-picker.showcase.tsx new file mode 100644 index 0000000..e69de29 diff --git a/apps/web/src/apps/modules/example/showcase/components/input.showcase.tsx b/apps/web/src/apps/modules/example/showcase/components/input.showcase.tsx index 495c4c7..4655398 100644 --- a/apps/web/src/apps/modules/example/showcase/components/input.showcase.tsx +++ b/apps/web/src/apps/modules/example/showcase/components/input.showcase.tsx @@ -69,75 +69,9 @@ export default function InputShowCase({ status }: { status?: InputStatusType }) - {/* --- SECTION 2: FILLED VARIANT --- */} -
-

Filled Variant

-
-
- - - - - -