diff --git a/sites/docs/src/lib/registry/default/ui/sheet/index.ts b/sites/docs/src/lib/registry/default/ui/sheet/index.ts index b53187b19..1cf1af1dd 100644 --- a/sites/docs/src/lib/registry/default/ui/sheet/index.ts +++ b/sites/docs/src/lib/registry/default/ui/sheet/index.ts @@ -1,6 +1,4 @@ import { Dialog as SheetPrimitive } from "bits-ui"; -import { type VariantProps, tv } from "tailwind-variants"; - import Overlay from "./sheet-overlay.svelte"; import Content from "./sheet-content.svelte"; import Header from "./sheet-header.svelte"; @@ -36,71 +34,3 @@ export { Title as SheetTitle, Description as SheetDescription, }; - -export const sheetVariants = tv({ - base: "bg-background fixed z-50 gap-4 p-6 shadow-lg", - variants: { - side: { - top: "inset-x-0 top-0 border-b", - bottom: "inset-x-0 bottom-0 border-t", - left: "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", - right: "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", - }, - }, - defaultVariants: { - side: "right", - }, -}); - -export const sheetTransitions = { - top: { - in: { - y: "-100%", - duration: 500, - opacity: 1, - }, - out: { - y: "-100%", - duration: 300, - opacity: 1, - }, - }, - bottom: { - in: { - y: "100%", - duration: 500, - opacity: 1, - }, - out: { - y: "100%", - duration: 300, - opacity: 1, - }, - }, - left: { - in: { - x: "-100%", - duration: 500, - opacity: 1, - }, - out: { - x: "-100%", - duration: 300, - opacity: 1, - }, - }, - right: { - in: { - x: "100%", - duration: 500, - opacity: 1, - }, - out: { - x: "100%", - duration: 300, - opacity: 1, - }, - }, -}; - -export type Side = VariantProps["side"]; diff --git a/sites/docs/src/lib/registry/default/ui/sheet/sheet-content.svelte b/sites/docs/src/lib/registry/default/ui/sheet/sheet-content.svelte index 9d2365285..f49191369 100644 --- a/sites/docs/src/lib/registry/default/ui/sheet/sheet-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/sheet/sheet-content.svelte @@ -1,8 +1,28 @@ + + - + {@render children?.()} @@ -28,4 +48,4 @@ Close - + diff --git a/sites/docs/src/lib/registry/default/ui/sheet/sheet-overlay.svelte b/sites/docs/src/lib/registry/default/ui/sheet/sheet-overlay.svelte index c362eb09b..faa2de198 100644 --- a/sites/docs/src/lib/registry/default/ui/sheet/sheet-overlay.svelte +++ b/sites/docs/src/lib/registry/default/ui/sheet/sheet-overlay.svelte @@ -13,6 +13,9 @@ diff --git a/sites/docs/src/lib/registry/new-york/ui/sheet/index.ts b/sites/docs/src/lib/registry/new-york/ui/sheet/index.ts index b53187b19..652716c27 100644 --- a/sites/docs/src/lib/registry/new-york/ui/sheet/index.ts +++ b/sites/docs/src/lib/registry/new-york/ui/sheet/index.ts @@ -1,5 +1,4 @@ import { Dialog as SheetPrimitive } from "bits-ui"; -import { type VariantProps, tv } from "tailwind-variants"; import Overlay from "./sheet-overlay.svelte"; import Content from "./sheet-content.svelte"; @@ -36,71 +35,3 @@ export { Title as SheetTitle, Description as SheetDescription, }; - -export const sheetVariants = tv({ - base: "bg-background fixed z-50 gap-4 p-6 shadow-lg", - variants: { - side: { - top: "inset-x-0 top-0 border-b", - bottom: "inset-x-0 bottom-0 border-t", - left: "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", - right: "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", - }, - }, - defaultVariants: { - side: "right", - }, -}); - -export const sheetTransitions = { - top: { - in: { - y: "-100%", - duration: 500, - opacity: 1, - }, - out: { - y: "-100%", - duration: 300, - opacity: 1, - }, - }, - bottom: { - in: { - y: "100%", - duration: 500, - opacity: 1, - }, - out: { - y: "100%", - duration: 300, - opacity: 1, - }, - }, - left: { - in: { - x: "-100%", - duration: 500, - opacity: 1, - }, - out: { - x: "-100%", - duration: 300, - opacity: 1, - }, - }, - right: { - in: { - x: "100%", - duration: 500, - opacity: 1, - }, - out: { - x: "100%", - duration: 300, - opacity: 1, - }, - }, -}; - -export type Side = VariantProps["side"]; diff --git a/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-content.svelte b/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-content.svelte index b759a5cff..0207450ee 100644 --- a/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-content.svelte @@ -1,8 +1,29 @@ + + - + {@render children?.()} @@ -28,4 +49,4 @@ Close - + diff --git a/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-overlay.svelte b/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-overlay.svelte index 4efe5a475..65b258d44 100644 --- a/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-overlay.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/sheet/sheet-overlay.svelte @@ -11,6 +11,9 @@