@stokelp/ui 2.13.0 → 2.15.0

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,2 @@
1
+ export * as Dialog from './styled';
2
+ export type { DialogProps, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogHeaderProps, DialogBodyProps, DialogFooterProps, DialogPositionerProps, DialogTitleProps, DialogTriggerProps, } from './styled';
@@ -0,0 +1,44 @@
1
+ import { Dialog as ArkDialog, PolymorphicProps } from '@ark-ui/react';
2
+ import { ComponentProps, ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject } from 'react';
3
+ import { ComponentVariants } from '../../utils/slots';
4
+ import { DialogRecipe } from '@stokelp/styled-system/recipes';
5
+ import { StyledComponent } from '@stokelp/styled-system/types';
6
+
7
+ export declare const Root: ComponentVariants<(props: ArkDialog.RootProps) => import("react/jsx-runtime").JSX.Element, DialogRecipe>;
8
+ export declare const Backdrop: StyledComponent<ForwardRefExoticComponent<ArkDialog.BackdropProps & RefAttributes<HTMLDivElement>>, {}>;
9
+ export declare const CloseTrigger: StyledComponent<ForwardRefExoticComponent<ArkDialog.CloseTriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
10
+ export declare const Content: StyledComponent<ForwardRefExoticComponent<Omit<ArkDialog.ContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>, {}>;
11
+ export declare const Header: StyledComponent<ForwardRefExoticComponent<Omit<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
12
+ ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
13
+ } & PolymorphicProps, "ref"> & {
14
+ showCloseTrigger?: boolean;
15
+ } & RefAttributes<HTMLElement>>, {}>;
16
+ export declare const Body: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
17
+ ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
18
+ } & PolymorphicProps>, {}>;
19
+ export declare const Footer: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
20
+ ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
21
+ } & PolymorphicProps>, {}>;
22
+ export declare const Positioner: StyledComponent<ForwardRefExoticComponent<ArkDialog.PositionerProps & RefAttributes<HTMLDivElement>>, {}>;
23
+ export declare const Title: StyledComponent<ForwardRefExoticComponent<ArkDialog.TitleProps & RefAttributes<HTMLHeadingElement>>, {}>;
24
+ export declare const Trigger: StyledComponent<ForwardRefExoticComponent<ArkDialog.TriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
25
+ export interface DialogProps extends ComponentProps<typeof Root> {
26
+ }
27
+ export interface DialogBackdropProps extends ComponentProps<typeof Backdrop> {
28
+ }
29
+ export interface DialogCloseTriggerProps extends ComponentProps<typeof CloseTrigger> {
30
+ }
31
+ export interface DialogContentProps extends ComponentProps<typeof Content> {
32
+ }
33
+ export interface DialogHeaderProps extends ComponentProps<typeof Header> {
34
+ }
35
+ export interface DialogBodyProps extends ComponentProps<typeof Body> {
36
+ }
37
+ export interface DialogFooterProps extends ComponentProps<typeof Footer> {
38
+ }
39
+ export interface DialogPositionerProps extends ComponentProps<typeof Positioner> {
40
+ }
41
+ export interface DialogTitleProps extends ComponentProps<typeof Title> {
42
+ }
43
+ export interface DialogTriggerProps extends ComponentProps<typeof Trigger> {
44
+ }
@@ -33,4 +33,5 @@ export * from './checkbox-card';
33
33
  export * from './combobox';
34
34
  export * from './icon';
35
35
  export * from './collapsible';
36
+ export * from './dialog';
36
37
  export * from './app';