@datatechsolutions/ui 2.7.134 → 2.7.135

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
@@ -1367,6 +1367,39 @@ interface FeedItemCardProps {
1367
1367
  }
1368
1368
  declare function FeedItemCard({ children, className }: FeedItemCardProps): react_jsx_runtime.JSX.Element;
1369
1369
 
1370
+ type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
1371
+ interface GlassModalShellProps {
1372
+ /** Whether the modal is open */
1373
+ open: boolean;
1374
+ /** Called when the modal should close */
1375
+ onClose: () => void;
1376
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1377
+ gradient?: string;
1378
+ /** Icon displayed in the hero (h-5 w-5 recommended) */
1379
+ icon?: ReactNode;
1380
+ /** Small label above the title */
1381
+ label?: string;
1382
+ /** Modal title */
1383
+ title: string;
1384
+ /** Subtitle below the title */
1385
+ subtitle?: string;
1386
+ /** Actions rendered to the right of the title (buttons, badges) */
1387
+ headerActions?: ReactNode;
1388
+ /** Modal content */
1389
+ children: ReactNode;
1390
+ /** Footer content (buttons). If not provided, no footer is shown. */
1391
+ footer?: ReactNode;
1392
+ /** If provided, the content is wrapped in a <form> that calls this on submit */
1393
+ onSubmit?: (event: FormEvent) => void;
1394
+ /** Max width of the modal panel */
1395
+ maxWidth?: GlassModalSize;
1396
+ /** Close button aria-label */
1397
+ closeLabel?: string;
1398
+ /** Extra class on the panel */
1399
+ className?: string;
1400
+ }
1401
+ declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
1402
+
1370
1403
  interface FormModalProps {
1371
1404
  open: boolean;
1372
1405
  onClose: () => void;
@@ -1374,7 +1407,7 @@ interface FormModalProps {
1374
1407
  subtitle?: string;
1375
1408
  icon?: ReactNode;
1376
1409
  children: ReactNode;
1377
- maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
1410
+ maxWidth?: GlassModalSize;
1378
1411
  onSubmit?: (e: FormEvent) => void;
1379
1412
  footer?: ReactNode;
1380
1413
  showFooter?: boolean;
@@ -1382,8 +1415,10 @@ interface FormModalProps {
1382
1415
  submitLabel?: string;
1383
1416
  isLoading?: boolean;
1384
1417
  submitDisabled?: boolean;
1418
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1419
+ gradient?: string;
1385
1420
  }
1386
- declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, }: FormModalProps): react_jsx_runtime.JSX.Element;
1421
+ 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
1422
 
1388
1423
  type ContextMenuItem = {
1389
1424
  type?: 'item';
@@ -2312,39 +2347,6 @@ interface SettingsDialogProps {
2312
2347
  }
2313
2348
  declare function SettingsDialog({ open, onClose, title, subtitle, sections, activeSectionId, onSectionChange, children, closeLabel, identity, sidebarFooter, }: SettingsDialogProps): react_jsx_runtime.JSX.Element;
2314
2349
 
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
2350
  interface SettingsFieldConfig {
2349
2351
  key: string;
2350
2352
  label: string;
package/dist/index.d.ts CHANGED
@@ -1367,6 +1367,39 @@ interface FeedItemCardProps {
1367
1367
  }
1368
1368
  declare function FeedItemCard({ children, className }: FeedItemCardProps): react_jsx_runtime.JSX.Element;
1369
1369
 
1370
+ type GlassModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
1371
+ interface GlassModalShellProps {
1372
+ /** Whether the modal is open */
1373
+ open: boolean;
1374
+ /** Called when the modal should close */
1375
+ onClose: () => void;
1376
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1377
+ gradient?: string;
1378
+ /** Icon displayed in the hero (h-5 w-5 recommended) */
1379
+ icon?: ReactNode;
1380
+ /** Small label above the title */
1381
+ label?: string;
1382
+ /** Modal title */
1383
+ title: string;
1384
+ /** Subtitle below the title */
1385
+ subtitle?: string;
1386
+ /** Actions rendered to the right of the title (buttons, badges) */
1387
+ headerActions?: ReactNode;
1388
+ /** Modal content */
1389
+ children: ReactNode;
1390
+ /** Footer content (buttons). If not provided, no footer is shown. */
1391
+ footer?: ReactNode;
1392
+ /** If provided, the content is wrapped in a <form> that calls this on submit */
1393
+ onSubmit?: (event: FormEvent) => void;
1394
+ /** Max width of the modal panel */
1395
+ maxWidth?: GlassModalSize;
1396
+ /** Close button aria-label */
1397
+ closeLabel?: string;
1398
+ /** Extra class on the panel */
1399
+ className?: string;
1400
+ }
1401
+ declare function GlassModalShell({ open, onClose, gradient, icon, label, title, subtitle, headerActions, children, footer, onSubmit, maxWidth, closeLabel, className, }: GlassModalShellProps): react_jsx_runtime.JSX.Element;
1402
+
1370
1403
  interface FormModalProps {
1371
1404
  open: boolean;
1372
1405
  onClose: () => void;
@@ -1374,7 +1407,7 @@ interface FormModalProps {
1374
1407
  subtitle?: string;
1375
1408
  icon?: ReactNode;
1376
1409
  children: ReactNode;
1377
- maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
1410
+ maxWidth?: GlassModalSize;
1378
1411
  onSubmit?: (e: FormEvent) => void;
1379
1412
  footer?: ReactNode;
1380
1413
  showFooter?: boolean;
@@ -1382,8 +1415,10 @@ interface FormModalProps {
1382
1415
  submitLabel?: string;
1383
1416
  isLoading?: boolean;
1384
1417
  submitDisabled?: boolean;
1418
+ /** Gradient for the accent bar (e.g. "from-blue-400 to-blue-600") */
1419
+ gradient?: string;
1385
1420
  }
1386
- declare function FormModal({ open, onClose, title, subtitle, icon, children, maxWidth, onSubmit, footer, showFooter, cancelLabel, submitLabel, isLoading, submitDisabled, }: FormModalProps): react_jsx_runtime.JSX.Element;
1421
+ 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
1422
 
1388
1423
  type ContextMenuItem = {
1389
1424
  type?: 'item';
@@ -2312,39 +2347,6 @@ interface SettingsDialogProps {
2312
2347
  }
2313
2348
  declare function SettingsDialog({ open, onClose, title, subtitle, sections, activeSectionId, onSectionChange, children, closeLabel, identity, sidebarFooter, }: SettingsDialogProps): react_jsx_runtime.JSX.Element;
2314
2349
 
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
2350
  interface SettingsFieldConfig {
2349
2351
  key: string;
2350
2352
  label: string;