@spark-ui/components 13.0.3-beta.0 → 13.0.4

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.
Files changed (68) hide show
  1. package/dist/accordion/index.d.mts +2 -2
  2. package/dist/accordion/index.d.ts +2 -2
  3. package/dist/accordion/index.js +5 -5
  4. package/dist/accordion/index.js.map +1 -1
  5. package/dist/accordion/index.mjs +5 -5
  6. package/dist/accordion/index.mjs.map +1 -1
  7. package/dist/alert-dialog/index.d.mts +1 -1
  8. package/dist/alert-dialog/index.d.ts +1 -1
  9. package/dist/alert-dialog/index.js +15 -10
  10. package/dist/alert-dialog/index.js.map +1 -1
  11. package/dist/alert-dialog/index.mjs +15 -10
  12. package/dist/alert-dialog/index.mjs.map +1 -1
  13. package/dist/avatar/index.mjs +2 -2
  14. package/dist/carousel/index.mjs +2 -2
  15. package/dist/collapsible/index.d.mts +1 -1
  16. package/dist/collapsible/index.d.ts +1 -1
  17. package/dist/collapsible/index.js +3 -3
  18. package/dist/collapsible/index.js.map +1 -1
  19. package/dist/collapsible/index.mjs +3 -3
  20. package/dist/collapsible/index.mjs.map +1 -1
  21. package/dist/combobox/index.mjs +3 -3
  22. package/dist/dialog/index.mjs +2 -2
  23. package/dist/docgen.json +3098 -3129
  24. package/dist/drawer/index.d.mts +29 -37
  25. package/dist/drawer/index.d.ts +29 -37
  26. package/dist/drawer/index.js +89 -125
  27. package/dist/drawer/index.js.map +1 -1
  28. package/dist/drawer/index.mjs +89 -127
  29. package/dist/drawer/index.mjs.map +1 -1
  30. package/dist/dropdown/index.mjs +2 -2
  31. package/dist/file-upload/index.mjs +3 -3
  32. package/dist/pagination/index.mjs +3 -3
  33. package/dist/popover/index.mjs +1 -1
  34. package/dist/scrolling-list/index.mjs +3 -3
  35. package/dist/snackbar/index.mjs +3 -3
  36. package/dist/spinner/index.d.mts +1 -1
  37. package/dist/spinner/index.d.ts +1 -1
  38. package/dist/stepper/index.mjs +2 -2
  39. package/dist/tabs/index.mjs +3 -3
  40. package/dist/toast/index.d.mts +1 -1
  41. package/dist/toast/index.d.ts +1 -1
  42. package/dist/toast/index.js +3 -3
  43. package/dist/toast/index.js.map +1 -1
  44. package/dist/toast/index.mjs +6 -6
  45. package/dist/toast/index.mjs.map +1 -1
  46. package/package.json +6 -6
  47. package/dist/DialogTrigger-8oDlAJjU.d.mts +0 -142
  48. package/dist/DialogTrigger-8oDlAJjU.d.ts +0 -142
  49. package/dist/DialogTrigger-woU7vsJi.d.mts +0 -142
  50. package/dist/DialogTrigger-woU7vsJi.d.ts +0 -142
  51. package/dist/chunk-2BSBKLHG.mjs +0 -358
  52. package/dist/chunk-2BSBKLHG.mjs.map +0 -1
  53. package/dist/chunk-D7YBYT5H.mjs +0 -308
  54. package/dist/chunk-D7YBYT5H.mjs.map +0 -1
  55. package/dist/chunk-HEKSVWYW.mjs +0 -800
  56. package/dist/chunk-HEKSVWYW.mjs.map +0 -1
  57. package/dist/chunk-TKAU6SMC.mjs +0 -197
  58. package/dist/chunk-TKAU6SMC.mjs.map +0 -1
  59. package/dist/chunk-WA56YHV3.mjs +0 -358
  60. package/dist/chunk-WA56YHV3.mjs.map +0 -1
  61. package/dist/chunk-WLI4EPS6.mjs +0 -358
  62. package/dist/chunk-WLI4EPS6.mjs.map +0 -1
  63. package/dist/chunk-XYK6V3JF.mjs +0 -53
  64. package/dist/chunk-XYK6V3JF.mjs.map +0 -1
  65. package/dist/index-BRKaV3lI.d.mts +0 -93
  66. package/dist/index-BRKaV3lI.d.ts +0 -93
  67. package/dist/index-Cw_DIfiq.d.mts +0 -93
  68. package/dist/index-Cw_DIfiq.d.ts +0 -93
@@ -1,142 +0,0 @@
1
- import { Dialog as Dialog$1 } from 'radix-ui';
2
- import { ReactElement, ReactNode, Ref } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import { VariantProps } from 'class-variance-authority';
6
-
7
- interface DialogProps {
8
- /**
9
- * Children of the component.
10
- */
11
- children?: Dialog$1.DialogProps['children'];
12
- /**
13
- * Specifies if the dialog is open or not.
14
- */
15
- open?: Dialog$1.DialogProps['open'];
16
- /**
17
- * Default open state.
18
- */
19
- defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
- /**
21
- * Handler executen on every dialog open state change.
22
- */
23
- onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
- /**
25
- * Specifies if the dialog is a modal.
26
- */
27
- modal?: Dialog$1.DialogProps['modal'];
28
- /**
29
- * Specifies if the dialog should have a fade animation on its body (in case it is scrollable).
30
- */
31
- withFade?: boolean;
32
- }
33
- declare const Dialog: {
34
- ({ children, withFade, ...rest }: DialogProps): ReactElement;
35
- displayName: string;
36
- };
37
-
38
- interface BodyProps {
39
- children: ReactNode;
40
- className?: string;
41
- tabIndex?: number;
42
- ref?: Ref<HTMLDivElement>;
43
- inset?: boolean;
44
- }
45
- declare const Body: {
46
- ({ children, className, inset, ref: forwardedRef, ...rest }: BodyProps): ReactElement;
47
- displayName: string;
48
- };
49
-
50
- type CloseProps = Dialog$1.DialogCloseProps & {
51
- ref?: Ref<HTMLButtonElement>;
52
- };
53
- declare const Close: {
54
- (props: CloseProps): react_jsx_runtime.JSX.Element;
55
- displayName: string;
56
- };
57
-
58
- declare const dialogContentStyles: (props?: ({
59
- size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
60
- isNarrow?: boolean | null | undefined;
61
- } & class_variance_authority_types.ClassProp) | undefined) => string;
62
- type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
-
64
- interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
- /**
66
- * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
- */
68
- isNarrow?: boolean;
69
- ref?: Ref<HTMLDivElement>;
70
- }
71
- declare const Content: {
72
- ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
- displayName: string;
74
- };
75
-
76
- type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
- ref?: Ref<HTMLParagraphElement>;
78
- };
79
- declare const Description: {
80
- (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
- displayName: string;
82
- };
83
-
84
- interface FooterProps {
85
- children: ReactNode;
86
- className?: string;
87
- ref?: Ref<HTMLDivElement>;
88
- }
89
- declare const Footer: {
90
- ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
- displayName: string;
92
- };
93
-
94
- interface HeaderProps {
95
- children: ReactNode;
96
- className?: string;
97
- ref?: Ref<HTMLDivElement>;
98
- }
99
- declare const Header: {
100
- ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
- displayName: string;
102
- };
103
-
104
- type OverlayProps = Dialog$1.DialogOverlayProps & {
105
- ref?: Ref<HTMLDivElement>;
106
- };
107
- declare const Overlay: {
108
- ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
- displayName: string;
110
- };
111
-
112
- type PortalProps = Dialog$1.DialogPortalProps;
113
- declare const Portal: {
114
- ({ children, ...rest }: PortalProps): ReactElement;
115
- displayName: string;
116
- };
117
-
118
- type TitleProps = Dialog$1.DialogTitleProps & {
119
- ref?: Ref<HTMLHeadingElement>;
120
- };
121
- declare const Title: {
122
- ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
- displayName: string;
124
- };
125
-
126
- interface TriggerProps {
127
- /**
128
- * Children of the component.
129
- */
130
- children?: ReactNode;
131
- /**
132
- * Change the component to the HTML tag or custom component of the only child.
133
- */
134
- asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
- ref?: Ref<HTMLButtonElement>;
136
- }
137
- declare const Trigger: {
138
- (props: TriggerProps): ReactElement;
139
- displayName: string;
140
- };
141
-
142
- export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };
@@ -1,142 +0,0 @@
1
- import { Dialog as Dialog$1 } from 'radix-ui';
2
- import { ReactElement, ReactNode, Ref } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import { VariantProps } from 'class-variance-authority';
6
-
7
- interface DialogProps {
8
- /**
9
- * Children of the component.
10
- */
11
- children?: Dialog$1.DialogProps['children'];
12
- /**
13
- * Specifies if the dialog is open or not.
14
- */
15
- open?: Dialog$1.DialogProps['open'];
16
- /**
17
- * Default open state.
18
- */
19
- defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
- /**
21
- * Handler executen on every dialog open state change.
22
- */
23
- onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
- /**
25
- * Specifies if the dialog is a modal.
26
- */
27
- modal?: Dialog$1.DialogProps['modal'];
28
- /**
29
- * Specifies if the dialog should have a fade animation on its body (in case it is scrollable).
30
- */
31
- withFade?: boolean;
32
- }
33
- declare const Dialog: {
34
- ({ children, withFade, ...rest }: DialogProps): ReactElement;
35
- displayName: string;
36
- };
37
-
38
- interface BodyProps {
39
- children: ReactNode;
40
- className?: string;
41
- tabIndex?: number;
42
- ref?: Ref<HTMLDivElement>;
43
- inset?: boolean;
44
- }
45
- declare const Body: {
46
- ({ children, className, inset, ref: forwardedRef, ...rest }: BodyProps): ReactElement;
47
- displayName: string;
48
- };
49
-
50
- type CloseProps = Dialog$1.DialogCloseProps & {
51
- ref?: Ref<HTMLButtonElement>;
52
- };
53
- declare const Close: {
54
- (props: CloseProps): react_jsx_runtime.JSX.Element;
55
- displayName: string;
56
- };
57
-
58
- declare const dialogContentStyles: (props?: ({
59
- size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
60
- isNarrow?: boolean | null | undefined;
61
- } & class_variance_authority_types.ClassProp) | undefined) => string;
62
- type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
-
64
- interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
- /**
66
- * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
- */
68
- isNarrow?: boolean;
69
- ref?: Ref<HTMLDivElement>;
70
- }
71
- declare const Content: {
72
- ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
- displayName: string;
74
- };
75
-
76
- type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
- ref?: Ref<HTMLParagraphElement>;
78
- };
79
- declare const Description: {
80
- (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
- displayName: string;
82
- };
83
-
84
- interface FooterProps {
85
- children: ReactNode;
86
- className?: string;
87
- ref?: Ref<HTMLDivElement>;
88
- }
89
- declare const Footer: {
90
- ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
- displayName: string;
92
- };
93
-
94
- interface HeaderProps {
95
- children: ReactNode;
96
- className?: string;
97
- ref?: Ref<HTMLDivElement>;
98
- }
99
- declare const Header: {
100
- ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
- displayName: string;
102
- };
103
-
104
- type OverlayProps = Dialog$1.DialogOverlayProps & {
105
- ref?: Ref<HTMLDivElement>;
106
- };
107
- declare const Overlay: {
108
- ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
- displayName: string;
110
- };
111
-
112
- type PortalProps = Dialog$1.DialogPortalProps;
113
- declare const Portal: {
114
- ({ children, ...rest }: PortalProps): ReactElement;
115
- displayName: string;
116
- };
117
-
118
- type TitleProps = Dialog$1.DialogTitleProps & {
119
- ref?: Ref<HTMLHeadingElement>;
120
- };
121
- declare const Title: {
122
- ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
- displayName: string;
124
- };
125
-
126
- interface TriggerProps {
127
- /**
128
- * Children of the component.
129
- */
130
- children?: ReactNode;
131
- /**
132
- * Change the component to the HTML tag or custom component of the only child.
133
- */
134
- asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
- ref?: Ref<HTMLButtonElement>;
136
- }
137
- declare const Trigger: {
138
- (props: TriggerProps): ReactElement;
139
- displayName: string;
140
- };
141
-
142
- export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };
@@ -1,142 +0,0 @@
1
- import { Dialog as Dialog$1 } from 'radix-ui';
2
- import { ReactElement, ReactNode, Ref } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import { VariantProps } from 'class-variance-authority';
6
-
7
- interface DialogProps {
8
- /**
9
- * Children of the component.
10
- */
11
- children?: Dialog$1.DialogProps['children'];
12
- /**
13
- * Specifies if the dialog is open or not.
14
- */
15
- open?: Dialog$1.DialogProps['open'];
16
- /**
17
- * Default open state.
18
- */
19
- defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
- /**
21
- * Handler executen on every dialog open state change.
22
- */
23
- onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
- /**
25
- * Specifies if the dialog is a modal.
26
- */
27
- modal?: Dialog$1.DialogProps['modal'];
28
- /**
29
- * Specifies if the dialog should have a fade animation on its body (in case it is scrollable).
30
- */
31
- withFade?: boolean;
32
- }
33
- declare const Dialog: {
34
- ({ children, withFade, ...rest }: DialogProps): ReactElement;
35
- displayName: string;
36
- };
37
-
38
- interface BodyProps {
39
- children: ReactNode;
40
- className?: string;
41
- tabIndex?: number;
42
- ref?: Ref<HTMLDivElement>;
43
- inset?: boolean;
44
- }
45
- declare const Body: {
46
- ({ children, className, inset, ref: forwardedRef, ...rest }: BodyProps): ReactElement;
47
- displayName: string;
48
- };
49
-
50
- type CloseProps = Dialog$1.DialogCloseProps & {
51
- ref?: Ref<HTMLButtonElement>;
52
- };
53
- declare const Close: {
54
- (props: CloseProps): react_jsx_runtime.JSX.Element;
55
- displayName: string;
56
- };
57
-
58
- declare const dialogContentStyles: (props?: ({
59
- size?: "fullscreen" | "sm" | "md" | "lg" | null | undefined;
60
- isNarrow?: boolean | null | undefined;
61
- } & class_variance_authority_types.ClassProp) | undefined) => string;
62
- type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
-
64
- interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
- /**
66
- * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
- */
68
- isNarrow?: boolean;
69
- ref?: Ref<HTMLDivElement>;
70
- }
71
- declare const Content: {
72
- ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
- displayName: string;
74
- };
75
-
76
- type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
- ref?: Ref<HTMLParagraphElement>;
78
- };
79
- declare const Description: {
80
- (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
- displayName: string;
82
- };
83
-
84
- interface FooterProps {
85
- children: ReactNode;
86
- className?: string;
87
- ref?: Ref<HTMLDivElement>;
88
- }
89
- declare const Footer: {
90
- ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
- displayName: string;
92
- };
93
-
94
- interface HeaderProps {
95
- children: ReactNode;
96
- className?: string;
97
- ref?: Ref<HTMLDivElement>;
98
- }
99
- declare const Header: {
100
- ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
- displayName: string;
102
- };
103
-
104
- type OverlayProps = Dialog$1.DialogOverlayProps & {
105
- ref?: Ref<HTMLDivElement>;
106
- };
107
- declare const Overlay: {
108
- ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
- displayName: string;
110
- };
111
-
112
- type PortalProps = Dialog$1.DialogPortalProps;
113
- declare const Portal: {
114
- ({ children, ...rest }: PortalProps): ReactElement;
115
- displayName: string;
116
- };
117
-
118
- type TitleProps = Dialog$1.DialogTitleProps & {
119
- ref?: Ref<HTMLHeadingElement>;
120
- };
121
- declare const Title: {
122
- ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
- displayName: string;
124
- };
125
-
126
- interface TriggerProps {
127
- /**
128
- * Children of the component.
129
- */
130
- children?: ReactNode;
131
- /**
132
- * Change the component to the HTML tag or custom component of the only child.
133
- */
134
- asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
- ref?: Ref<HTMLButtonElement>;
136
- }
137
- declare const Trigger: {
138
- (props: TriggerProps): ReactElement;
139
- displayName: string;
140
- };
141
-
142
- export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };
@@ -1,142 +0,0 @@
1
- import { Dialog as Dialog$1 } from 'radix-ui';
2
- import { ReactElement, ReactNode, Ref } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import { VariantProps } from 'class-variance-authority';
6
-
7
- interface DialogProps {
8
- /**
9
- * Children of the component.
10
- */
11
- children?: Dialog$1.DialogProps['children'];
12
- /**
13
- * Specifies if the dialog is open or not.
14
- */
15
- open?: Dialog$1.DialogProps['open'];
16
- /**
17
- * Default open state.
18
- */
19
- defaultOpen?: Dialog$1.DialogProps['defaultOpen'];
20
- /**
21
- * Handler executen on every dialog open state change.
22
- */
23
- onOpenChange?: Dialog$1.DialogProps['onOpenChange'];
24
- /**
25
- * Specifies if the dialog is a modal.
26
- */
27
- modal?: Dialog$1.DialogProps['modal'];
28
- /**
29
- * Specifies if the dialog should have a fade animation on its body (in case it is scrollable).
30
- */
31
- withFade?: boolean;
32
- }
33
- declare const Dialog: {
34
- ({ children, withFade, ...rest }: DialogProps): ReactElement;
35
- displayName: string;
36
- };
37
-
38
- interface BodyProps {
39
- children: ReactNode;
40
- className?: string;
41
- tabIndex?: number;
42
- ref?: Ref<HTMLDivElement>;
43
- inset?: boolean;
44
- }
45
- declare const Body: {
46
- ({ children, className, inset, ref: forwardedRef, ...rest }: BodyProps): ReactElement;
47
- displayName: string;
48
- };
49
-
50
- type CloseProps = Dialog$1.DialogCloseProps & {
51
- ref?: Ref<HTMLButtonElement>;
52
- };
53
- declare const Close: {
54
- (props: CloseProps): react_jsx_runtime.JSX.Element;
55
- displayName: string;
56
- };
57
-
58
- declare const dialogContentStyles: (props?: ({
59
- size?: "fullscreen" | "sm" | "md" | "lg" | null | undefined;
60
- isNarrow?: boolean | null | undefined;
61
- } & class_variance_authority_types.ClassProp) | undefined) => string;
62
- type DialogContentStylesProps = VariantProps<typeof dialogContentStyles>;
63
-
64
- interface ContentProps extends Dialog$1.DialogContentProps, DialogContentStylesProps {
65
- /**
66
- * When set to true, the content will adjust its width to fit the content rather than taking up the full available width.
67
- */
68
- isNarrow?: boolean;
69
- ref?: Ref<HTMLDivElement>;
70
- }
71
- declare const Content: {
72
- ({ children, className, isNarrow, size, onInteractOutside, ref, ...rest }: ContentProps): ReactElement;
73
- displayName: string;
74
- };
75
-
76
- type DescriptionProps = Dialog$1.DialogDescriptionProps & {
77
- ref?: Ref<HTMLParagraphElement>;
78
- };
79
- declare const Description: {
80
- (props: DescriptionProps): react_jsx_runtime.JSX.Element;
81
- displayName: string;
82
- };
83
-
84
- interface FooterProps {
85
- children: ReactNode;
86
- className?: string;
87
- ref?: Ref<HTMLDivElement>;
88
- }
89
- declare const Footer: {
90
- ({ children, className, ref, ...rest }: FooterProps): ReactElement;
91
- displayName: string;
92
- };
93
-
94
- interface HeaderProps {
95
- children: ReactNode;
96
- className?: string;
97
- ref?: Ref<HTMLDivElement>;
98
- }
99
- declare const Header: {
100
- ({ children, className, ref, ...rest }: HeaderProps): ReactElement;
101
- displayName: string;
102
- };
103
-
104
- type OverlayProps = Dialog$1.DialogOverlayProps & {
105
- ref?: Ref<HTMLDivElement>;
106
- };
107
- declare const Overlay: {
108
- ({ className, ref, ...rest }: OverlayProps): ReactElement | null;
109
- displayName: string;
110
- };
111
-
112
- type PortalProps = Dialog$1.DialogPortalProps;
113
- declare const Portal: {
114
- ({ children, ...rest }: PortalProps): ReactElement;
115
- displayName: string;
116
- };
117
-
118
- type TitleProps = Dialog$1.DialogTitleProps & {
119
- ref?: Ref<HTMLHeadingElement>;
120
- };
121
- declare const Title: {
122
- ({ className, ref, ...others }: TitleProps): react_jsx_runtime.JSX.Element;
123
- displayName: string;
124
- };
125
-
126
- interface TriggerProps {
127
- /**
128
- * Children of the component.
129
- */
130
- children?: ReactNode;
131
- /**
132
- * Change the component to the HTML tag or custom component of the only child.
133
- */
134
- asChild?: Dialog$1.DialogTriggerProps['asChild'];
135
- ref?: Ref<HTMLButtonElement>;
136
- }
137
- declare const Trigger: {
138
- (props: TriggerProps): ReactElement;
139
- displayName: string;
140
- };
141
-
142
- export { Body as B, type CloseProps as C, Dialog as D, Footer as F, Header as H, Overlay as O, Portal as P, Trigger as T, Content as a, Close as b, Title as c, Description as d, type DialogProps as e, type ContentProps as f, type HeaderProps as g, type BodyProps as h, type FooterProps as i, type TriggerProps as j, type OverlayProps as k, type PortalProps as l, type TitleProps as m, type DescriptionProps as n };