Skip to content

Commit

Permalink
more next
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Aug 6, 2024
1 parent 1127425 commit 5668178
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions packages/vaul-svelte/src/lib/components/drawer/types.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -178,11 +185,20 @@ export type DrawerHandlePropsWithoutHTML = Omit<
export type DrawerHandleProps = DrawerHandlePropsWithoutHTML &
Without<PrimitiveDivAttributes, DrawerHandlePropsWithoutHTML>;

export type DrawerContentPropsWithoutHTML = WithChildren<
WithoutChildrenOrChild<DialogContentPropsWithoutHTML>
>;

export type DrawerContentProps = DrawerContentPropsWithoutHTML &
Without<PrimitiveDivAttributes, DrawerContentPropsWithoutHTML>;

export type DrawerOverlayPropsWithoutHTML = WithChildren<
WithoutChildrenOrChild<DialogOverlayPropsWithoutHTML>
>;
export type DrawerOverlayProps = DrawerOverlayPropsWithoutHTML &
Without<PrimitiveDivAttributes, DrawerOverlayPropsWithoutHTML>;

export type {
DialogContentPropsWithoutHTML as DrawerContentPropsWithoutHTML,
DialogContentProps as DrawerContentProps,
DialogOverlayPropsWithoutHTML as DrawerOverlayPropsWithoutHTML,
DialogOverlayProps as DrawerOverlayProps,
DialogPortalPropsWithoutHTML as DrawerPortalPropsWithoutHTML,
DialogPortalProps as DrawerPortalProps,
DialogTriggerProps as DrawerTriggerProps,
Expand Down

0 comments on commit 5668178

Please sign in to comment.