diff --git a/packages/vaul-svelte/src/lib/components/drawer/types.ts b/packages/vaul-svelte/src/lib/components/drawer/types.ts index b78b8fe..3f22c0f 100644 --- a/packages/vaul-svelte/src/lib/components/drawer/types.ts +++ b/packages/vaul-svelte/src/lib/components/drawer/types.ts @@ -1,4 +1,11 @@ -import type { Dialog as DrawerPrimitive, PrimitiveDivAttributes, WithChild } from "bits-ui"; +import type { + DialogContentPropsWithoutHTML, + DialogOverlayPropsWithoutHTML, + Dialog as DrawerPrimitive, + PrimitiveDivAttributes, + WithChild, + WithoutChildrenOrChild, +} from "bits-ui"; import type { WithChildren, Without } from "svelte-toolbelt"; import type { DrawerDirection, OnChangeFn, OnDrag, OnRelease } from "$lib/types.js"; @@ -178,11 +185,20 @@ export type DrawerHandlePropsWithoutHTML = Omit< export type DrawerHandleProps = DrawerHandlePropsWithoutHTML & Without; +export type DrawerContentPropsWithoutHTML = WithChildren< + WithoutChildrenOrChild +>; + +export type DrawerContentProps = DrawerContentPropsWithoutHTML & + Without; + +export type DrawerOverlayPropsWithoutHTML = WithChildren< + WithoutChildrenOrChild +>; +export type DrawerOverlayProps = DrawerOverlayPropsWithoutHTML & + Without; + export type { - DialogContentPropsWithoutHTML as DrawerContentPropsWithoutHTML, - DialogContentProps as DrawerContentProps, - DialogOverlayPropsWithoutHTML as DrawerOverlayPropsWithoutHTML, - DialogOverlayProps as DrawerOverlayProps, DialogPortalPropsWithoutHTML as DrawerPortalPropsWithoutHTML, DialogPortalProps as DrawerPortalProps, DialogTriggerProps as DrawerTriggerProps,