@nusameta/design-system 1.0.0-beta.2 → 1.0.0-beta.3

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.
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { DialogProps as AriaDialogProps, DialogTrigger as AriaDialogTrigger, HeadingProps as AriaHeadingProps, Modal as AriaModal, ModalOverlayProps as AriaModalOverlayProps } from 'react-aria-components';
3
+ import * as React from "react";
4
+ declare const Dialog: (props: AriaDialogProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
5
+ declare const sheetVariants: (props?: ({
6
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ declare const DialogTrigger: typeof AriaDialogTrigger;
9
+ declare const DialogOverlay: ({ className, isDismissable, ...props }: AriaModalOverlayProps) => import("react/jsx-runtime").JSX.Element;
10
+ interface DialogContentProps extends Omit<React.ComponentProps<typeof AriaModal>, "children">, VariantProps<typeof sheetVariants> {
11
+ children?: AriaDialogProps["children"];
12
+ role?: AriaDialogProps["role"];
13
+ closeButton?: boolean;
14
+ }
15
+ declare const DialogContent: ({ className, children, side, role, closeButton, ...props }: DialogContentProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const DialogHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
17
+ declare const DialogFooter: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
18
+ declare const DialogTitle: ({ className, ...props }: AriaHeadingProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const DialogDescription: ({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element;
20
+ export { Dialog, DialogOverlay, DialogTrigger, DialogContent, DialogDescription, DialogHeader, DialogFooter, DialogTitle, };
21
+ export type { DialogContentProps };