diff --git a/package.json b/package.json index 5cdb88169..229bc3599 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "prisma": "cd core && cargo prisma", "codegen": "cargo test -p sd-core api::tests::test_and_export_rspc_bindings -- --exact", "typecheck": "turbo run typecheck", - "lint": "turbo run lint" + "lint": "turbo run lint", + "clean": "rimraf node_modules/ **/node_modules/ target/ **/.build/ **/.next/ **/dist/**" }, "pnpm": { "overrides": { @@ -39,6 +40,7 @@ "lint-staged": "^13.1.0", "markdown-link-check": "^3.10.3", "prettier": "^2.8.3", + "rimraf": "^4.1.1", "turbo": "^1.5.5", "turbo-ignore": "^0.3.0", "typescript": "^4.9.4" diff --git a/packages/ui/src/Dropdown.tsx b/packages/ui/src/Dropdown.tsx index 7d67cbf12..7f1aea1c6 100644 --- a/packages/ui/src/Dropdown.tsx +++ b/packages/ui/src/Dropdown.tsx @@ -45,15 +45,18 @@ export const Item = ({ to, className, icon: Icon, children, ...props }: Dropdown {children} ); - - return to ? ( - - {content} - - ) : ( - + return ( + + {to ? ( + + {content} + + ) : ( + + )} + ); }; diff --git a/packages/ui/src/Switch.tsx b/packages/ui/src/Switch.tsx index c1bc39d06..2be7d5888 100644 --- a/packages/ui/src/Switch.tsx +++ b/packages/ui/src/Switch.tsx @@ -4,7 +4,9 @@ import { forwardRef } from 'react'; export interface SwitchProps extends VariantProps, - SwitchPrimitive.SwitchProps {} + SwitchPrimitive.SwitchProps { + thumbClassName?: string; +} const switchStyles = cva( [ @@ -46,9 +48,9 @@ const thumbStyles = cva( ); export const Switch = forwardRef( - ({ size, className, ...props }, ref) => ( + ({ size, className, thumbClassName, ...props }, ref) => ( - + ) ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f6dd9bfb0..aaa9de318 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,6 +16,7 @@ importers: lint-staged: ^13.1.0 markdown-link-check: ^3.10.3 prettier: ^2.8.3 + rimraf: ^4.1.1 turbo: ^1.5.5 turbo-ignore: ^0.3.0 typescript: ^4.9.4 @@ -29,6 +30,7 @@ importers: lint-staged: 13.1.0 markdown-link-check: 3.10.3 prettier: 2.8.3 + rimraf: 4.1.1 turbo: 1.7.0 turbo-ignore: 0.3.0 typescript: 4.9.4 @@ -18168,6 +18170,12 @@ packages: dependencies: glob: 7.2.3 + /rimraf/4.1.1: + resolution: {integrity: sha512-Z4Y81w8atcvaJuJuBB88VpADRH66okZAuEm+Jtaufa+s7rZmIz+Hik2G53kGaNytE7lsfXyWktTmfVz0H9xuDg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /ripemd160/2.0.2: resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} dependencies: