@datatechsolutions/ui 2.7.134 → 2.7.136

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/index.d.mts CHANGED
@@ -1232,8 +1232,10 @@ type GlassModalProps = {
1232
1232
  children: ReactNode;
1233
1233
  panelClassName?: string;
1234
1234
  contentClassName?: string;
1235
+ /** z-index class (default "z-50"). Use "z-[160]" for modals on top of other modals. */
1236
+ zIndex?: string;
1235
1237
  };
1236
- declare function GlassModal({ open, onClose, children, panelClassName, contentClassName, }: GlassModalProps): react_jsx_runtime.JSX.Element;
1238
+ declare function GlassModal({ open, onClose, children, panelClassName, contentClassName, zIndex, }: GlassModalProps): react_jsx_runtime.JSX.Element;
1237
1239
 
1238
1240
  declare function Text({ className, ...props }: React.ComponentPropsWithoutRef<'p'>): react_jsx_runtime.JSX.Element;
1239
1241
  declare function TextLink({ className, ...props }: React.ComponentPropsWithoutRef<typeof Link>): react_jsx_runtime.JSX.Element;
@@ -1367,6 +1369,41 @@ interface FeedItemCardProps {
1367
1369
  }
1368
1370
  declare function FeedItemCard({ children, className }: FeedItemCardProps): react_jsx_runtime.JSX.Element;
1369
1371
 
1372
+ type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
1373
+ interface GlassModalShellProps {
1374
+ /** Whether the modal is open */
1375
+ open: boolean;
1376
+ /** Called when the modal should close */
1377
+ onClose: () => void;
1378
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1379
+ gradient?: string;
1380
+ /** Icon displayed in the hero (h-5 w-5 recommended) */
1381
+ icon?: ReactNode;
1382
+ /** Small label above the title */
1383
+ label?: string;
1384
+ /** Modal title */
1385
+ title: string;
1386
+ /** Subtitle below the title */
1387
+ subtitle?: string;
1388
+ /** Actions rendered to the right of the title (buttons, badges) */
1389
+ headerActions?: ReactNode;
1390
+ /** Modal content */
1391
+ children: ReactNode;
1392
+ /** Footer content (buttons). If not provided, no footer is shown. */
1393
+ footer?: ReactNode;
1394
+ /** If provided, the content is wrapped in a <form> that calls this on submit */
1395
+ onSubmit?: (event: FormEvent) => void;
1396
+ /** Max width of the modal panel */
1397
+ maxWidth?: GlassModalSize;
1398
+ /** Close button aria-label */
1399
+ closeLabel?: string;
1400
+ /** Extra class on the panel */
1401
+ className?: string;
1402
+ /** z-index class for nested modals (default "z-50", use "z-[160]" for modals on top of modals) */
1403
+ zIndex?: string;
1404
+ }
1405
+ declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, zIndex, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
1406
+
1370
1407
  interface FormModalProps {
1371
1408
  open: boolean;
1372
1409
  onClose: () => void;
@@ -1374,7 +1411,7 @@ interface FormModalProps {
1374
1411
  subtitle?: string;
1375
1412
  icon?: ReactNode;
1376
1413
  children: ReactNode;
1377
- maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
1414
+ maxWidth?: GlassModalSize;
1378
1415
  onSubmit?: (e: FormEvent) => void;
1379
1416
  footer?: ReactNode;
1380
1417
  showFooter?: boolean;
@@ -1382,8 +1419,10 @@ interface FormModalProps {
1382
1419
  submitLabel?: string;
1383
1420
  isLoading?: boolean;
1384
1421
  submitDisabled?: boolean;
1422
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1423
+ gradient?: string;
1385
1424
  }
1386
- declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, }: FormModalProps): react_jsx_runtime.JSX.Element;
1425
+ declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, gradient, }: FormModalProps): react_jsx_runtime.JSX.Element;
1387
1426
 
1388
1427
  type ContextMenuItem = {
1389
1428
  type?: 'item';
@@ -2312,39 +2351,6 @@ interface SettingsDialogProps {
2312
2351
  }
2313
2352
  declare function SettingsDialog({ open, onClose, title, subtitle, sections, activeSectionId, onSectionChange, children, closeLabel, identity, sidebarFooter, }: SettingsDialogProps): react_jsx_runtime.JSX.Element;
2314
2353
 
2315
- type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
2316
- interface GlassModalShellProps {
2317
- /** Whether the modal is open */
2318
- open: boolean;
2319
- /** Called when the modal should close */
2320
- onClose: () => void;
2321
- /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
2322
- gradient?: string;
2323
- /** Icon displayed in the hero (h-5 w-5 recommended) */
2324
- icon?: ReactNode;
2325
- /** Small label above the title */
2326
- label?: string;
2327
- /** Modal title */
2328
- title: string;
2329
- /** Subtitle below the title */
2330
- subtitle?: string;
2331
- /** Actions rendered to the right of the title (buttons, badges) */
2332
- headerActions?: ReactNode;
2333
- /** Modal content */
2334
- children: ReactNode;
2335
- /** Footer content (buttons). If not provided, no footer is shown. */
2336
- footer?: ReactNode;
2337
- /** If provided, the content is wrapped in a <form> that calls this on submit */
2338
- onSubmit?: (event: FormEvent) => void;
2339
- /** Max width of the modal panel */
2340
- maxWidth?: GlassModalSize;
2341
- /** Close button aria-label */
2342
- closeLabel?: string;
2343
- /** Extra class on the panel */
2344
- className?: string;
2345
- }
2346
- declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
2347
-
2348
2354
  interface SettingsFieldConfig {
2349
2355
  key: string;
2350
2356
  label: string;
package/dist/index.d.ts CHANGED
@@ -1232,8 +1232,10 @@ type GlassModalProps = {
1232
1232
  children: ReactNode;
1233
1233
  panelClassName?: string;
1234
1234
  contentClassName?: string;
1235
+ /** z-index class (default "z-50"). Use "z-[160]" for modals on top of other modals. */
1236
+ zIndex?: string;
1235
1237
  };
1236
- declare function GlassModal({ open, onClose, children, panelClassName, contentClassName, }: GlassModalProps): react_jsx_runtime.JSX.Element;
1238
+ declare function GlassModal({ open, onClose, children, panelClassName, contentClassName, zIndex, }: GlassModalProps): react_jsx_runtime.JSX.Element;
1237
1239
 
1238
1240
  declare function Text({ className, ...props }: React.ComponentPropsWithoutRef<'p'>): react_jsx_runtime.JSX.Element;
1239
1241
  declare function TextLink({ className, ...props }: React.ComponentPropsWithoutRef<typeof Link>): react_jsx_runtime.JSX.Element;
@@ -1367,6 +1369,41 @@ interface FeedItemCardProps {
1367
1369
  }
1368
1370
  declare function FeedItemCard({ children, className }: FeedItemCardProps): react_jsx_runtime.JSX.Element;
1369
1371
 
1372
+ type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
1373
+ interface GlassModalShellProps {
1374
+ /** Whether the modal is open */
1375
+ open: boolean;
1376
+ /** Called when the modal should close */
1377
+ onClose: () => void;
1378
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1379
+ gradient?: string;
1380
+ /** Icon displayed in the hero (h-5 w-5 recommended) */
1381
+ icon?: ReactNode;
1382
+ /** Small label above the title */
1383
+ label?: string;
1384
+ /** Modal title */
1385
+ title: string;
1386
+ /** Subtitle below the title */
1387
+ subtitle?: string;
1388
+ /** Actions rendered to the right of the title (buttons, badges) */
1389
+ headerActions?: ReactNode;
1390
+ /** Modal content */
1391
+ children: ReactNode;
1392
+ /** Footer content (buttons). If not provided, no footer is shown. */
1393
+ footer?: ReactNode;
1394
+ /** If provided, the content is wrapped in a <form> that calls this on submit */
1395
+ onSubmit?: (event: FormEvent) => void;
1396
+ /** Max width of the modal panel */
1397
+ maxWidth?: GlassModalSize;
1398
+ /** Close button aria-label */
1399
+ closeLabel?: string;
1400
+ /** Extra class on the panel */
1401
+ className?: string;
1402
+ /** z-index class for nested modals (default "z-50", use "z-[160]" for modals on top of modals) */
1403
+ zIndex?: string;
1404
+ }
1405
+ declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, zIndex, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
1406
+
1370
1407
  interface FormModalProps {
1371
1408
  open: boolean;
1372
1409
  onClose: () => void;
@@ -1374,7 +1411,7 @@ interface FormModalProps {
1374
1411
  subtitle?: string;
1375
1412
  icon?: ReactNode;
1376
1413
  children: ReactNode;
1377
- maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
1414
+ maxWidth?: GlassModalSize;
1378
1415
  onSubmit?: (e: FormEvent) => void;
1379
1416
  footer?: ReactNode;
1380
1417
  showFooter?: boolean;
@@ -1382,8 +1419,10 @@ interface FormModalProps {
1382
1419
  submitLabel?: string;
1383
1420
  isLoading?: boolean;
1384
1421
  submitDisabled?: boolean;
1422
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1423
+ gradient?: string;
1385
1424
  }
1386
- declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, }: FormModalProps): react_jsx_runtime.JSX.Element;
1425
+ declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, gradient, }: FormModalProps): react_jsx_runtime.JSX.Element;
1387
1426
 
1388
1427
  type ContextMenuItem = {
1389
1428
  type?: 'item';
@@ -2312,39 +2351,6 @@ interface SettingsDialogProps {
2312
2351
  }
2313
2352
  declare function SettingsDialog({ open, onClose, title, subtitle, sections, activeSectionId, onSectionChange, children, closeLabel, identity, sidebarFooter, }: SettingsDialogProps): react_jsx_runtime.JSX.Element;
2314
2353
 
2315
- type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
2316
- interface GlassModalShellProps {
2317
- /** Whether the modal is open */
2318
- open: boolean;
2319
- /** Called when the modal should close */
2320
- onClose: () => void;
2321
- /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
2322
- gradient?: string;
2323
- /** Icon displayed in the hero (h-5 w-5 recommended) */
2324
- icon?: ReactNode;
2325
- /** Small label above the title */
2326
- label?: string;
2327
- /** Modal title */
2328
- title: string;
2329
- /** Subtitle below the title */
2330
- subtitle?: string;
2331
- /** Actions rendered to the right of the title (buttons, badges) */
2332
- headerActions?: ReactNode;
2333
- /** Modal content */
2334
- children: ReactNode;
2335
- /** Footer content (buttons). If not provided, no footer is shown. */
2336
- footer?: ReactNode;
2337
- /** If provided, the content is wrapped in a <form> that calls this on submit */
2338
- onSubmit?: (event: FormEvent) => void;
2339
- /** Max width of the modal panel */
2340
- maxWidth?: GlassModalSize;
2341
- /** Close button aria-label */
2342
- closeLabel?: string;
2343
- /** Extra class on the panel */
2344
- className?: string;
2345
- }
2346
- declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
2347
-
2348
2354
  interface SettingsFieldConfig {
2349
2355
  key: string;
2350
2356
  label: string;