feat: add Switch component and showcase

- Introduced a new Switch component with variants and status colors.
- Created a SwitchShowcase component to demonstrate the Switch functionality.
- Updated package.json to include dayjs and rc-component/switch dependencies.
- Added styles for the Switch component in switch.style.css.
- Updated form.style.css to import switch styles.
- Enhanced types for Switch props in types/index.ts.
- Updated globals.css with CSS variables for the Switch component.
This commit is contained in:
Firman Ramdhani
2026-02-02 16:02:45 +07:00
parent a4107e81be
commit 793d1e2b15
11 changed files with 866 additions and 1 deletions
+3
View File
@@ -16,9 +16,12 @@
"@rc-component/form": "^1.6.2",
"@rc-component/input": "^1.1.2",
"@rc-component/input-number": "^1.6.2",
"@rc-component/picker": "^1.9.0",
"@rc-component/switch": "^1.0.3",
"@rc-component/textarea": "^1.1.2",
"@repo/utils": "workspace:*",
"@tailwindcss/vite": "^4.1.18",
"dayjs": "^1.11.19",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"tailwind-merge": "^3.4.0",