@glasshome/ui 1.20.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,13 @@ type AlertDialogContentProps = ComponentProps<typeof AlertDialogPrimitive.Conten
11
11
  ariaLabel?: string;
12
12
  };
13
13
  declare const AlertDialogContent: ParentComponent<AlertDialogContentProps>;
14
- declare const AlertDialogHeader: Component<import("./dialog-parts.js").ModalHeaderProps>, AlertDialogBody: Component<import("./dialog-parts.js").ModalBodyProps>, AlertDialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
14
+ declare const AlertDialogHeader: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
15
+ media?: import("solid-js").JSX.Element;
16
+ action?: import("solid-js").JSX.Element;
17
+ wrap?: boolean;
18
+ }>, AlertDialogBody: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
19
+ as?: import("solid-js").ValidComponent;
20
+ }>, AlertDialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
15
21
  declare const AlertDialogTitle: Component<ComponentProps<typeof AlertDialogPrimitive.Title>>;
16
22
  declare const AlertDialogDescription: Component<ComponentProps<typeof AlertDialogPrimitive.Description>>;
17
23
  type AlertDialogButtonProps = ModalDismissProps & Partial<Pick<VariantProps<typeof buttonVariants>, "variant" | "size">>;
@@ -25,7 +25,13 @@ interface BottomSheetContentProps extends ComponentProps<"div"> {
25
25
  }
26
26
  declare const BottomSheetContent: ParentComponent<BottomSheetContentProps>;
27
27
  declare const BottomSheetHandle: Component<ComponentProps<"div">>;
28
- declare const BottomSheetHeader: Component<import("../dialog-parts.js").ModalHeaderProps>, BottomSheetBody: Component<import("../dialog-parts.js").ModalBodyProps>, BottomSheetFooter: Component<JSX.HTMLAttributes<HTMLDivElement>>;
28
+ declare const BottomSheetHeader: Component<JSX.HTMLAttributes<HTMLDivElement> & {
29
+ media?: JSX.Element;
30
+ action?: JSX.Element;
31
+ wrap?: boolean;
32
+ }>, BottomSheetBody: Component<JSX.HTMLAttributes<HTMLDivElement> & {
33
+ as?: ValidComponent;
34
+ }>, BottomSheetFooter: Component<JSX.HTMLAttributes<HTMLDivElement>>;
29
35
  declare const BottomSheetTitle: Component<ComponentProps<"h2">>;
30
36
  declare const BottomSheetDescription: Component<ComponentProps<"p">>;
31
37
  declare const BottomSheetClose: ParentComponent<SheetButtonProps>;
@@ -9,7 +9,7 @@ export declare const ANCHORED_PANEL: string;
9
9
  export declare const MODAL_SCRIM: string;
10
10
  export declare const MODAL_TITLE = "font-semibold text-foreground text-lg leading-none tracking-tight";
11
11
  export declare const MODAL_DESCRIPTION = "text-muted-foreground text-sm";
12
- export type ModalHeaderProps = ComponentProps<"div"> & {
12
+ type ModalHeaderProps = ComponentProps<"div"> & {
13
13
  /** Avatar or icon, rendered ahead of the title column. */
14
14
  media?: JSX.Element;
15
15
  action?: JSX.Element;
@@ -19,7 +19,7 @@ export type ModalHeaderProps = ComponentProps<"div"> & {
19
19
  };
20
20
  /** `as="form"` makes the scroll container the form, so a footer submit button
21
21
  * reaches it through `form="<id>"` with no wrapper in between. */
22
- export type ModalBodyProps = ComponentProps<"div"> & {
22
+ type ModalBodyProps = ComponentProps<"div"> & {
23
23
  as?: ValidComponent;
24
24
  };
25
25
  export interface ModalParts {
@@ -54,3 +54,4 @@ export interface ModalLabels {
54
54
  export declare function createModalLabels(): ModalLabels;
55
55
  export declare const ModalLabelsProvider: import("solid-js").ContextProviderComponent<ModalLabels | undefined>;
56
56
  export declare function useModalLabels(): ModalLabels | undefined;
57
+ export {};
@@ -19,7 +19,13 @@ type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
19
19
  anchor?: HTMLElement;
20
20
  };
21
21
  declare const DialogContent: ParentComponent<DialogContentProps>;
22
- declare const DialogHeader: Component<import("./dialog-parts.js").ModalHeaderProps>, DialogBody: Component<import("./dialog-parts.js").ModalBodyProps>, DialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
22
+ declare const DialogHeader: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
23
+ media?: import("solid-js").JSX.Element;
24
+ action?: import("solid-js").JSX.Element;
25
+ wrap?: boolean;
26
+ }>, DialogBody: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
27
+ as?: import("solid-js").ValidComponent;
28
+ }>, DialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
23
29
  declare const DialogTitle: Component<ComponentProps<typeof DialogPrimitive.Title>>;
24
30
  declare const DialogDescription: Component<ComponentProps<typeof DialogPrimitive.Description>>;
25
31
  export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
@@ -7,5 +7,11 @@ export declare function DockedPanel(props: {
7
7
  class?: string;
8
8
  children: JSX.Element;
9
9
  }): JSX.Element;
10
- declare const DockedPanelHeader: import("solid-js").Component<import("./dialog-parts.js").ModalHeaderProps>, DockedPanelBody: import("solid-js").Component<import("./dialog-parts.js").ModalBodyProps>, DockedPanelFooter: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement>>;
10
+ declare const DockedPanelHeader: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement> & {
11
+ media?: JSX.Element;
12
+ action?: JSX.Element;
13
+ wrap?: boolean;
14
+ }>, DockedPanelBody: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement> & {
15
+ as?: import("solid-js").ValidComponent;
16
+ }>, DockedPanelFooter: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement>>;
11
17
  export { DockedPanelBody, DockedPanelFooter, DockedPanelHeader };