@datatechsolutions/ui 2.11.25 → 2.11.27

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.
@@ -1,52 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode, FormEvent } from 'react';
3
-
4
- type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
5
- interface GlassModalShellProps {
6
- /** Whether the modal is open */
7
- open: boolean;
8
- /** Called when the modal should close */
9
- onClose: () => void;
10
- /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
11
- gradient?: string;
12
- /** Icon displayed in the hero (h-5 w-5 recommended) */
13
- icon?: ReactNode;
14
- /** Small label above the title */
15
- label?: string;
16
- /** Modal title */
17
- title: string;
18
- /** Subtitle below the title */
19
- subtitle?: string;
20
- /** Actions rendered to the right of the title (buttons, badges) */
21
- headerActions?: ReactNode;
22
- /** Modal content */
23
- children: ReactNode;
24
- /** Footer content (buttons). If not provided, no footer is shown. */
25
- footer?: ReactNode;
26
- /** If provided, the content is wrapped in a <form> that calls this on submit */
27
- onSubmit?: (event: FormEvent) => void;
28
- /** Max width of the modal panel */
29
- maxWidth?: GlassModalSize;
30
- /** Close button aria-label */
31
- closeLabel?: string;
32
- /** Extra class on the panel */
33
- className?: string;
34
- /** z-index class for nested modals (default "z-50", use "z-[160]" for modals on top of modals) */
35
- zIndex?: string;
36
- }
37
- declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, zIndex, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
38
-
39
- type DynamicIslandConfirmProps = {
40
- open: boolean;
41
- onClose: () => void;
42
- onConfirm: () => void;
43
- title: string;
44
- icon?: ReactNode;
45
- iconBackground?: string;
46
- appName?: string;
47
- confirmLabel?: string;
48
- cancelLabel?: string;
49
- };
50
- declare function DynamicIslandConfirm({ open, onClose, onConfirm, title, icon, iconBackground, appName, confirmLabel, cancelLabel, }: DynamicIslandConfirmProps): react_jsx_runtime.JSX.Element;
51
-
52
- export { DynamicIslandConfirm as D, type GlassModalSize as G, GlassModalShell as a, type GlassModalShellProps as b };
@@ -1,52 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode, FormEvent } from 'react';
3
-
4
- type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
5
- interface GlassModalShellProps {
6
- /** Whether the modal is open */
7
- open: boolean;
8
- /** Called when the modal should close */
9
- onClose: () => void;
10
- /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
11
- gradient?: string;
12
- /** Icon displayed in the hero (h-5 w-5 recommended) */
13
- icon?: ReactNode;
14
- /** Small label above the title */
15
- label?: string;
16
- /** Modal title */
17
- title: string;
18
- /** Subtitle below the title */
19
- subtitle?: string;
20
- /** Actions rendered to the right of the title (buttons, badges) */
21
- headerActions?: ReactNode;
22
- /** Modal content */
23
- children: ReactNode;
24
- /** Footer content (buttons). If not provided, no footer is shown. */
25
- footer?: ReactNode;
26
- /** If provided, the content is wrapped in a <form> that calls this on submit */
27
- onSubmit?: (event: FormEvent) => void;
28
- /** Max width of the modal panel */
29
- maxWidth?: GlassModalSize;
30
- /** Close button aria-label */
31
- closeLabel?: string;
32
- /** Extra class on the panel */
33
- className?: string;
34
- /** z-index class for nested modals (default "z-50", use "z-[160]" for modals on top of modals) */
35
- zIndex?: string;
36
- }
37
- declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, zIndex, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
38
-
39
- type DynamicIslandConfirmProps = {
40
- open: boolean;
41
- onClose: () => void;
42
- onConfirm: () => void;
43
- title: string;
44
- icon?: ReactNode;
45
- iconBackground?: string;
46
- appName?: string;
47
- confirmLabel?: string;
48
- cancelLabel?: string;
49
- };
50
- declare function DynamicIslandConfirm({ open, onClose, onConfirm, title, icon, iconBackground, appName, confirmLabel, cancelLabel, }: DynamicIslandConfirmProps): react_jsx_runtime.JSX.Element;
51
-
52
- export { DynamicIslandConfirm as D, type GlassModalSize as G, GlassModalShell as a, type GlassModalShellProps as b };