From 6287022a536e3d0a0bfd4556d39fb907a2a2b711 Mon Sep 17 00:00:00 2001 From: ghost2023 Date: Fri, 22 May 2026 15:42:56 +0300 Subject: [PATCH] style: improve the switch component --- packages/ui-common/src/components/switch.tsx | 18 +++++++++--------- packages/ui-common/src/index.ts | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/ui-common/src/components/switch.tsx b/packages/ui-common/src/components/switch.tsx index 76190b7c9..83829ae92 100644 --- a/packages/ui-common/src/components/switch.tsx +++ b/packages/ui-common/src/components/switch.tsx @@ -1,33 +1,33 @@ -import * as React from "react" -import { Switch as SwitchPrimitive } from "radix-ui" +import * as React from "react"; +import { Switch as SwitchPrimitive } from "radix-ui"; -import { cn } from "../lib/utils" +import { cn } from "../lib/utils"; function Switch({ className, size = "default", ...props }: React.ComponentProps & { - size?: "sm" | "default" + size?: "sm" | "default" | "lg"; }) { return ( - ) + ); } -export { Switch } +export { Switch }; diff --git a/packages/ui-common/src/index.ts b/packages/ui-common/src/index.ts index ca2df73bf..b2c2978bd 100644 --- a/packages/ui-common/src/index.ts +++ b/packages/ui-common/src/index.ts @@ -32,4 +32,5 @@ export * from "./components/dialog"; export * from "./components/SmartFileInput"; export * from "./components/select"; export * from "./components/switch"; +export * from "./components/separator"; export * from "./components/field";