@datatechsolutions/ui 2.11.48 → 2.11.49
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.
- package/dist/astrlabe/contracts.d.mts +309 -0
- package/dist/astrlabe/contracts.d.ts +309 -0
- package/dist/astrlabe/graph-node.d.mts +28 -0
- package/dist/astrlabe/graph-node.d.ts +28 -0
- package/dist/astrlabe/index.d.mts +749 -0
- package/dist/astrlabe/index.d.ts +749 -0
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +2 -2
- package/dist/astrlabe/utils.d.mts +71 -0
- package/dist/astrlabe/utils.d.ts +71 -0
- package/dist/astrlabe/workflow-canvas.d.mts +5 -0
- package/dist/astrlabe/workflow-canvas.d.ts +5 -0
- package/dist/astrlabe/workflow-canvas.js +2 -2
- package/dist/astrlabe/workflow-canvas.mjs +1 -1
- package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
- package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
- package/dist/brand/index.d.mts +85 -0
- package/dist/brand/index.d.ts +85 -0
- package/dist/{chunk-XDS3RWPA.mjs → chunk-2PDBTL32.mjs} +9 -13
- package/dist/chunk-2PDBTL32.mjs.map +1 -0
- package/dist/{chunk-NWELMK3Y.js → chunk-BN5S4O4N.js} +9 -13
- package/dist/chunk-BN5S4O4N.js.map +1 -0
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.mts +114 -0
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.ts +114 -0
- package/dist/index.d.mts +4673 -0
- package/dist/index.d.ts +4673 -0
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/workflow-canvas-D4928AfA.d.mts +273 -0
- package/dist/workflow-canvas-NSxfr5dy.d.ts +273 -0
- package/package.json +1 -1
- package/dist/chunk-NWELMK3Y.js.map +0 -1
- package/dist/chunk-XDS3RWPA.mjs.map +0 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, FormEvent, ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
|
|
5
|
+
/** Section definition for sidebar nav */
|
|
6
|
+
interface GlassModalSection {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
icon: ComponentType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
group?: string;
|
|
13
|
+
badge?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Identity card for sidebar */
|
|
16
|
+
interface GlassModalIdentity {
|
|
17
|
+
displayName: string;
|
|
18
|
+
profileInitial: string;
|
|
19
|
+
avatarUrl?: string;
|
|
20
|
+
email?: string;
|
|
21
|
+
role?: string;
|
|
22
|
+
showEmail?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Sidebar config (prop-based alternative to subcomponents) */
|
|
25
|
+
interface GlassModalSidebar {
|
|
26
|
+
sections: GlassModalSection[];
|
|
27
|
+
activeSectionId: string;
|
|
28
|
+
onSectionChange: (sectionId: string) => void;
|
|
29
|
+
identity?: GlassModalIdentity;
|
|
30
|
+
footer?: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
interface GlassModalProps {
|
|
33
|
+
open: boolean;
|
|
34
|
+
onClose: () => void;
|
|
35
|
+
gradient?: string;
|
|
36
|
+
icon?: ReactNode;
|
|
37
|
+
label?: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
subtitle?: string;
|
|
40
|
+
headerActions?: ReactNode;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
footer?: ReactNode;
|
|
43
|
+
onSubmit?: (event: FormEvent) => void;
|
|
44
|
+
showFormFooter?: boolean;
|
|
45
|
+
cancelLabel?: string;
|
|
46
|
+
submitLabel?: string;
|
|
47
|
+
isLoading?: boolean;
|
|
48
|
+
submitDisabled?: boolean;
|
|
49
|
+
sidebar?: GlassModalSidebar;
|
|
50
|
+
maxWidth?: GlassModalSize;
|
|
51
|
+
closeLabel?: string;
|
|
52
|
+
className?: string;
|
|
53
|
+
zIndex?: string;
|
|
54
|
+
panelClassName?: string;
|
|
55
|
+
contentClassName?: string;
|
|
56
|
+
overlayTestId?: string;
|
|
57
|
+
panelTestId?: string;
|
|
58
|
+
}
|
|
59
|
+
interface SectionProps {
|
|
60
|
+
id: string;
|
|
61
|
+
icon: ComponentType<{
|
|
62
|
+
className?: string;
|
|
63
|
+
}>;
|
|
64
|
+
label: string;
|
|
65
|
+
badge?: number;
|
|
66
|
+
children: ReactNode;
|
|
67
|
+
}
|
|
68
|
+
interface GroupProps {
|
|
69
|
+
label: string;
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
interface IdentityProps {
|
|
73
|
+
name: string;
|
|
74
|
+
initial?: string;
|
|
75
|
+
avatar?: string;
|
|
76
|
+
email?: string;
|
|
77
|
+
role?: string;
|
|
78
|
+
showEmail?: boolean;
|
|
79
|
+
}
|
|
80
|
+
declare function SidebarFooterSlot({ children }: {
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
|
+
interface SidebarProps {
|
|
84
|
+
/** Default active section ID (first section if not provided) */
|
|
85
|
+
defaultSection?: string;
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
}
|
|
88
|
+
declare function FooterSlot({ children }: {
|
|
89
|
+
children: ReactNode;
|
|
90
|
+
}): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare function GlassModal({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, showFormFooter, cancelLabel, submitLabel, isLoading, submitDisabled, sidebar, maxWidth, closeLabel, className, zIndex, panelClassName, contentClassName, overlayTestId, panelTestId, }: GlassModalProps): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare namespace GlassModal {
|
|
93
|
+
var Sidebar: (_props: SidebarProps) => null;
|
|
94
|
+
var Section: ({ children }: SectionProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
var Group: ({ children }: GroupProps) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
var Identity: (_props: IdentityProps) => null;
|
|
97
|
+
var SidebarFooter: typeof SidebarFooterSlot;
|
|
98
|
+
var Footer: typeof FooterSlot;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type DynamicIslandConfirmProps = {
|
|
102
|
+
open: boolean;
|
|
103
|
+
onClose: () => void;
|
|
104
|
+
onConfirm: () => void;
|
|
105
|
+
title: string;
|
|
106
|
+
icon?: ReactNode;
|
|
107
|
+
iconBackground?: string;
|
|
108
|
+
appName?: string;
|
|
109
|
+
confirmLabel?: string;
|
|
110
|
+
cancelLabel?: string;
|
|
111
|
+
};
|
|
112
|
+
declare function DynamicIslandConfirm({ open, onClose, onConfirm, title, icon, iconBackground, appName, confirmLabel, cancelLabel, }: DynamicIslandConfirmProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
export { DynamicIslandConfirm as D, type GlassModalSize as G, type GlassModalIdentity as a, GlassModal as b, type GlassModalProps as c, type GlassModalSection as d, type GlassModalSidebar as e };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, FormEvent, ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
|
|
5
|
+
/** Section definition for sidebar nav */
|
|
6
|
+
interface GlassModalSection {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
icon: ComponentType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
group?: string;
|
|
13
|
+
badge?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Identity card for sidebar */
|
|
16
|
+
interface GlassModalIdentity {
|
|
17
|
+
displayName: string;
|
|
18
|
+
profileInitial: string;
|
|
19
|
+
avatarUrl?: string;
|
|
20
|
+
email?: string;
|
|
21
|
+
role?: string;
|
|
22
|
+
showEmail?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Sidebar config (prop-based alternative to subcomponents) */
|
|
25
|
+
interface GlassModalSidebar {
|
|
26
|
+
sections: GlassModalSection[];
|
|
27
|
+
activeSectionId: string;
|
|
28
|
+
onSectionChange: (sectionId: string) => void;
|
|
29
|
+
identity?: GlassModalIdentity;
|
|
30
|
+
footer?: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
interface GlassModalProps {
|
|
33
|
+
open: boolean;
|
|
34
|
+
onClose: () => void;
|
|
35
|
+
gradient?: string;
|
|
36
|
+
icon?: ReactNode;
|
|
37
|
+
label?: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
subtitle?: string;
|
|
40
|
+
headerActions?: ReactNode;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
footer?: ReactNode;
|
|
43
|
+
onSubmit?: (event: FormEvent) => void;
|
|
44
|
+
showFormFooter?: boolean;
|
|
45
|
+
cancelLabel?: string;
|
|
46
|
+
submitLabel?: string;
|
|
47
|
+
isLoading?: boolean;
|
|
48
|
+
submitDisabled?: boolean;
|
|
49
|
+
sidebar?: GlassModalSidebar;
|
|
50
|
+
maxWidth?: GlassModalSize;
|
|
51
|
+
closeLabel?: string;
|
|
52
|
+
className?: string;
|
|
53
|
+
zIndex?: string;
|
|
54
|
+
panelClassName?: string;
|
|
55
|
+
contentClassName?: string;
|
|
56
|
+
overlayTestId?: string;
|
|
57
|
+
panelTestId?: string;
|
|
58
|
+
}
|
|
59
|
+
interface SectionProps {
|
|
60
|
+
id: string;
|
|
61
|
+
icon: ComponentType<{
|
|
62
|
+
className?: string;
|
|
63
|
+
}>;
|
|
64
|
+
label: string;
|
|
65
|
+
badge?: number;
|
|
66
|
+
children: ReactNode;
|
|
67
|
+
}
|
|
68
|
+
interface GroupProps {
|
|
69
|
+
label: string;
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
interface IdentityProps {
|
|
73
|
+
name: string;
|
|
74
|
+
initial?: string;
|
|
75
|
+
avatar?: string;
|
|
76
|
+
email?: string;
|
|
77
|
+
role?: string;
|
|
78
|
+
showEmail?: boolean;
|
|
79
|
+
}
|
|
80
|
+
declare function SidebarFooterSlot({ children }: {
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
|
+
interface SidebarProps {
|
|
84
|
+
/** Default active section ID (first section if not provided) */
|
|
85
|
+
defaultSection?: string;
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
}
|
|
88
|
+
declare function FooterSlot({ children }: {
|
|
89
|
+
children: ReactNode;
|
|
90
|
+
}): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare function GlassModal({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, showFormFooter, cancelLabel, submitLabel, isLoading, submitDisabled, sidebar, maxWidth, closeLabel, className, zIndex, panelClassName, contentClassName, overlayTestId, panelTestId, }: GlassModalProps): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare namespace GlassModal {
|
|
93
|
+
var Sidebar: (_props: SidebarProps) => null;
|
|
94
|
+
var Section: ({ children }: SectionProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
var Group: ({ children }: GroupProps) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
var Identity: (_props: IdentityProps) => null;
|
|
97
|
+
var SidebarFooter: typeof SidebarFooterSlot;
|
|
98
|
+
var Footer: typeof FooterSlot;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type DynamicIslandConfirmProps = {
|
|
102
|
+
open: boolean;
|
|
103
|
+
onClose: () => void;
|
|
104
|
+
onConfirm: () => void;
|
|
105
|
+
title: string;
|
|
106
|
+
icon?: ReactNode;
|
|
107
|
+
iconBackground?: string;
|
|
108
|
+
appName?: string;
|
|
109
|
+
confirmLabel?: string;
|
|
110
|
+
cancelLabel?: string;
|
|
111
|
+
};
|
|
112
|
+
declare function DynamicIslandConfirm({ open, onClose, onConfirm, title, icon, iconBackground, appName, confirmLabel, cancelLabel, }: DynamicIslandConfirmProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
export { DynamicIslandConfirm as D, type GlassModalSize as G, type GlassModalIdentity as a, GlassModal as b, type GlassModalProps as c, type GlassModalSection as d, type GlassModalSidebar as e };
|