- 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.
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "@repo/ui",
|
|
"version": "0.0.0",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./global.css": "./src/globals.css"
|
|
},
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"lint": "eslint \"**/*.ts\"",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest --watch"
|
|
},
|
|
"dependencies": {
|
|
"@rc-component/checkbox": "^1.0.1",
|
|
"@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",
|
|
"tailwind-variants": "^3.2.2",
|
|
"tailwindcss": "^4.1.18"
|
|
},
|
|
"devDependencies": {
|
|
"@repo/eslint-config": "workspace:*",
|
|
"@repo/typescript-config": "workspace:*",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.2",
|
|
"eslint": "^8.57.1",
|
|
"typescript": "5.5.4",
|
|
"vite": "^5.1.4",
|
|
"vitest": "^4.0.17"
|
|
}
|
|
} |