@abdellatifui/react 3.1.38 → 3.1.40

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/nextgen.d.ts CHANGED
@@ -26,11 +26,55 @@ import { StyledTooltip as Tooltip } from './Buttons/Button';
26
26
 
27
27
  export declare const AccordionGroup: (props: any) => JSX_2.Element;
28
28
 
29
+ export declare interface AccordionGroupProps {
30
+ multiple?: boolean;
31
+ children: default_2.ReactNode;
32
+ border?: boolean;
33
+ onChange?: (params: {
34
+ value: any;
35
+ props: any;
36
+ api: any;
37
+ }) => void;
38
+ onOpen?: (params: {
39
+ value: any;
40
+ props: any;
41
+ api: any;
42
+ }) => void;
43
+ onClose?: (params: {
44
+ value: any;
45
+ props: any;
46
+ api: any;
47
+ }) => void;
48
+ }
49
+
29
50
  export declare const AccordionItem: (props: any) => JSX_2.Element;
30
51
 
31
- export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps & default_2.RefAttributes<HTMLDivElement>>;
52
+ export declare interface AccordionItemProps {
53
+ value: string;
54
+ header: default_2.ReactNode;
55
+ children: default_2.ReactNode;
56
+ disabled?: boolean;
57
+ className?: string;
58
+ }
59
+
60
+ export declare interface AdvancedSpinnerProps extends SpinnerProps {
61
+ type?: 'dots' | 'bars' | 'pulse' | 'ring';
62
+ color?: string;
63
+ thickness?: number;
64
+ }
32
65
 
33
- declare interface AlertProps {
66
+ export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps_2 & default_2.RefAttributes<HTMLDivElement>>;
67
+
68
+ export declare interface AlertProps {
69
+ type: 'success' | 'error' | 'warning' | 'info';
70
+ title?: string;
71
+ message: string;
72
+ onClose?: () => void;
73
+ actions?: default_2.ReactNode;
74
+ className?: string;
75
+ }
76
+
77
+ declare interface AlertProps_2 {
34
78
  dialog: {
35
79
  header: string;
36
80
  body: string;
@@ -45,9 +89,15 @@ declare interface AlertProps {
45
89
  };
46
90
  }
47
91
 
92
+ export declare interface AppBodyProps extends ContainerProps {
93
+ sidebar?: default_2.ReactNode;
94
+ header?: default_2.ReactNode;
95
+ footer?: default_2.ReactNode;
96
+ }
97
+
48
98
  export declare const AppContext: Context< {}>;
49
99
 
50
- declare interface AutocompeleteProps extends InputProps {
100
+ declare interface AutocompeleteProps extends InputProps_2 {
51
101
  onChange?: void;
52
102
  options?: object;
53
103
  defaultValue?: string;
@@ -63,22 +113,111 @@ declare interface AutocompeleteProps extends InputProps {
63
113
 
64
114
  export declare const AutoComplete: default_2.ForwardRefExoticComponent<AutocompeleteProps & default_2.RefAttributes<HTMLInputElement>>;
65
115
 
116
+ export declare interface AutoCompleteProps extends InputProps {
117
+ options: Array<{
118
+ label: string;
119
+ value: any;
120
+ }>;
121
+ onSelect?: (option: any) => void;
122
+ filterOptions?: boolean;
123
+ }
124
+
66
125
  declare const Body_2: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
67
126
  export { Body_2 as Body }
68
127
 
69
128
  export { Button }
70
129
 
130
+ export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
131
+ variant?: 'primary' | 'transparent' | 'secondary' | 'danger' | 'danger2' | 'green' | 'ghost' | 'dangerghost';
132
+ size?: 'button' | 'sm' | 'lg' | 'xl';
133
+ border?: boolean | 'ghost';
134
+ disable?: boolean;
135
+ hover?: boolean | 'ghost';
136
+ addClass?: string[];
137
+ autoFocus?: boolean;
138
+ icon?: default_2.ReactNode;
139
+ disableAfterClick?: boolean;
140
+ tooltip?: string;
141
+ outline?: boolean;
142
+ asChild?: boolean;
143
+ }
144
+
71
145
  export declare function capitalizeFirstLetter(string: any): any;
72
146
 
73
147
  export declare const CloseButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
74
148
 
75
149
  export declare function cn(...inputs: ClassValue[]): string;
76
150
 
151
+ export declare interface ColorVariants {
152
+ variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
153
+ }
154
+
155
+ export declare interface CommonProps {
156
+ className?: string;
157
+ children?: default_2.ReactNode;
158
+ id?: string;
159
+ style?: default_2.CSSProperties;
160
+ }
161
+
162
+ export declare interface ConnectionParams {
163
+ name: string;
164
+ id: string;
165
+ sourceId: string;
166
+ destinationId: string;
167
+ details?: Record<string, any>;
168
+ linkColor?: string | null;
169
+ linkAnimationColor?: string | null;
170
+ layer?: number;
171
+ group?: number;
172
+ bidir?: boolean;
173
+ sourcePort: string | null;
174
+ destinationPort: string | null;
175
+ }
176
+
177
+ export declare interface ConnectionTemplate {
178
+ name: string;
179
+ id: string;
180
+ details: Record<string, any>;
181
+ sourceId: string;
182
+ destinationId: string;
183
+ linkColor: string | null;
184
+ linkAnimationColor: string | null;
185
+ layer: number;
186
+ group: number;
187
+ bidir: boolean;
188
+ sourcePort: string | null;
189
+ destinationPort: string | null;
190
+ }
191
+
77
192
  export declare const Container: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
78
193
 
79
- export declare const ContextMenu: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ContextMenuProps & default_2.RefAttributes<unknown>>>;
194
+ export declare interface ContainerProps extends default_2.HTMLAttributes<HTMLDivElement> {
195
+ title?: string;
196
+ padding?: boolean | 'sm' | 'lg' | 'xl';
197
+ resizable?: boolean | 'y' | 'x';
198
+ color?: 'primary' | 'secondary';
199
+ border?: boolean | 'blue';
200
+ shadow?: boolean | 'sm' | 'xl' | 'xxl';
201
+ }
202
+
203
+ export declare const ContextMenu: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ContextMenuProps_2 & default_2.RefAttributes<unknown>>>;
204
+
205
+ export declare interface ContextMenuProps {
206
+ items: {
207
+ items: Array<{
208
+ label: string;
209
+ icon?: default_2.ReactNode;
210
+ action: () => void;
211
+ disabled?: boolean;
212
+ separator?: boolean;
213
+ }>;
214
+ };
215
+ event: default_2.MouseEvent | null;
216
+ onClose?: () => void;
217
+ className?: string;
218
+ }
80
219
 
81
- declare type ContextMenuProps = {
220
+ declare type ContextMenuProps_2 = {
82
221
  items: {
83
222
  title: string;
84
223
  items: [];
@@ -97,37 +236,39 @@ export declare function convertTimestampToDate(timestamp: any): string;
97
236
 
98
237
  export declare const CopyButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
99
238
 
100
- export declare const createDefaultConnTemplate: (name: any, id: any, sourceId: any, destinationId: any, details?: {}, linkColor?: any, linkAnimationColor?: any, layer?: number, group?: number, bidir?: boolean) => {
101
- name: any;
102
- id: any;
103
- details: {};
104
- sourceId: any;
105
- destinationId: any;
106
- linkColor: any;
107
- linkAnimationColor: any;
108
- layer: number;
109
- group: number;
110
- bidir: boolean;
111
- };
239
+ export declare interface CopyButtonProps extends ButtonProps {
240
+ text: string;
241
+ onCopy?: (text: string) => void;
242
+ }
112
243
 
113
- export declare const createDefaultNodeTempate: (name: any, id: any, color: any, lng: any, lat: any, details: any) => {
114
- name: any;
115
- color: any;
116
- elementId: any;
117
- details: any;
118
- location: {
119
- lng: any;
120
- lat: any;
121
- };
122
- };
244
+ /**
245
+ * Creates a default connection template from parameters
246
+ * @param params - Connection creation parameters
247
+ * @returns Formatted connection template object
248
+ */
249
+ export declare const createDefaultConnTemplate: (params: ConnectionParams) => ConnectionTemplate;
250
+
251
+ /**
252
+ * Creates a default node template from parameters
253
+ * @param params - Node creation parameters
254
+ * @returns Formatted node template object
255
+ */
256
+ export declare const createDefaultNodeTempate: (params: NodeParams) => NodeTemplate;
123
257
 
124
258
  export { cva }
125
259
 
126
- export declare const DataTable: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TableProps & default_2.RefAttributes<HTMLDivElement>>>;
260
+ export declare const DataTable: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TableProps_2 & default_2.RefAttributes<HTMLDivElement>>>;
127
261
 
128
- export declare const DialogPanel: default_2.ForwardRefExoticComponent<Omit<DialogPanelProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
262
+ export declare const DialogPanel: default_2.ForwardRefExoticComponent<Omit<DialogPanelProps_2, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
129
263
 
130
- declare interface DialogPanelProps {
264
+ export declare interface DialogPanelProps extends ContainerProps {
265
+ header: string;
266
+ collapsible?: boolean;
267
+ close?: boolean;
268
+ onClose?: () => void;
269
+ }
270
+
271
+ declare interface DialogPanelProps_2 {
131
272
  children: any;
132
273
  header: string;
133
274
  shortInfo: string;
@@ -138,12 +279,48 @@ declare interface DialogPanelProps {
138
279
  closeButton: string;
139
280
  }
140
281
 
282
+ export declare interface DisabledProps {
283
+ disabled?: boolean;
284
+ loading?: boolean;
285
+ }
286
+
287
+ export declare interface ErrorBoundaryProps {
288
+ children: default_2.ReactNode;
289
+ fallback?: default_2.ComponentType<{
290
+ error: Error;
291
+ resetError: () => void;
292
+ }>;
293
+ onError?: (error: Error, errorInfo: default_2.ErrorInfo) => void;
294
+ }
295
+
141
296
  export declare const ErrorBoundry: (props: any) => JSX_2.Element;
142
297
 
298
+ export declare interface EventHandlers {
299
+ onClick?: (event: default_2.MouseEvent) => void;
300
+ onDoubleClick?: (event: default_2.MouseEvent) => void;
301
+ onContextMenu?: (event: default_2.MouseEvent) => void;
302
+ onChange?: (event: default_2.ChangeEvent) => void;
303
+ onFocus?: (event: default_2.FocusEvent) => void;
304
+ onBlur?: (event: default_2.FocusEvent) => void;
305
+ }
306
+
143
307
  export declare const Frame: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
144
308
 
145
309
  export declare const Frequency: ForwardRefExoticComponent<RefAttributes<unknown>>;
146
310
 
311
+ export declare interface FrequencyProps {
312
+ value: number;
313
+ onChange: (value: number) => void;
314
+ min?: number;
315
+ max?: number;
316
+ step?: number;
317
+ unit?: string;
318
+ }
319
+
320
+ /**
321
+ * Generates a random hex color string
322
+ * @returns Random hex color string starting with #
323
+ */
147
324
  export declare function getRandomColor(): string;
148
325
 
149
326
  export declare const GetRandomStr: (length?: number, str?: boolean) => string;
@@ -152,21 +329,89 @@ export declare const getWholeSpectrum: () => any[];
152
329
 
153
330
  export declare function Headline(props: any): JSX_2.Element;
154
331
 
332
+ export declare interface HeadlineProps {
333
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
334
+ children: default_2.ReactNode;
335
+ className?: string;
336
+ variant?: 'default' | 'muted' | 'accent';
337
+ }
338
+
155
339
  export declare const HelpPopover: (props: any) => JSX_2.Element;
156
340
 
157
- export declare const hex2rgb: (hex: any) => number[];
341
+ export declare interface HelpPopoverProps {
342
+ title?: string;
343
+ content: default_2.ReactNode;
344
+ trigger?: default_2.ReactNode;
345
+ placement?: 'top' | 'bottom' | 'left' | 'right';
346
+ className?: string;
347
+ }
348
+
349
+ /**
350
+ * Converts a hex color string to RGB values
351
+ * @param hex - Hex color string (with or without #)
352
+ * @returns Array of [r, g, b] values (0-255)
353
+ */
354
+ export declare const hex2rgb: (hex: string) => [number, number, number];
158
355
 
159
356
  export declare const HorizontalDiv: (props: any) => JSX_2.Element;
160
357
 
358
+ export declare interface HorizontalDivProps extends ContainerProps {
359
+ gap?: number;
360
+ align?: 'start' | 'center' | 'end';
361
+ justify?: 'start' | 'center' | 'end' | 'between';
362
+ }
363
+
161
364
  export declare const IconButton: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
162
365
 
366
+ export declare interface IconButtonProps extends ButtonProps {
367
+ icon: default_2.ReactNode;
368
+ size?: 'sm' | 'md' | 'lg';
369
+ }
370
+
163
371
  export declare function InformationTableMui(props: any): JSX_2.Element;
164
372
 
373
+ export declare interface InformationTableProps {
374
+ data: any[];
375
+ columns: Array<{
376
+ key: string;
377
+ label: string;
378
+ render?: (value: any, row: any) => default_2.ReactNode;
379
+ }>;
380
+ sortable?: boolean;
381
+ filterable?: boolean;
382
+ pagination?: boolean;
383
+ pageSize?: number;
384
+ className?: string;
385
+ }
386
+
165
387
  export declare const InlineSpinner: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
166
388
 
389
+ export declare interface InlineSpinnerProps extends SpinnerProps {
390
+ inline?: boolean;
391
+ }
392
+
167
393
  export declare const Input: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
168
394
 
169
- declare interface InputProps extends InputProps_2 {
395
+ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
396
+ placeholder: string;
397
+ size: 'screen' | 'frequency' | 'full';
398
+ description: string;
399
+ inputRef?: object;
400
+ invalid?: string;
401
+ type?: string;
402
+ defaultValue?: string;
403
+ value?: string;
404
+ multiple?: boolean;
405
+ loading?: boolean;
406
+ controlled?: boolean;
407
+ tmpdescription?: {
408
+ state: boolean;
409
+ message: string;
410
+ };
411
+ onChange?: (value: string) => void;
412
+ }
413
+
414
+ declare interface InputProps_2 extends InputProps_3 {
170
415
  placeholder: string;
171
416
  size: string;
172
417
  description: string;
@@ -181,17 +426,44 @@ declare interface InputProps extends InputProps_2 {
181
426
  multiple: boolean;
182
427
  }
183
428
 
184
- declare interface InputProps_2 extends React_2.InputHTMLAttributes<HTMLInputElement> {
429
+ declare interface InputProps_3 extends React_2.InputHTMLAttributes<HTMLInputElement> {
185
430
  }
186
431
 
187
432
  export declare const Label: (props: any) => JSX_2.Element;
188
433
 
434
+ export declare interface LabelProps extends HeadlineProps {
435
+ required?: boolean;
436
+ error?: string;
437
+ }
438
+
189
439
  export declare const loadFonts: () => void;
190
440
 
191
441
  export declare const loadFontsOnInteraction: () => void;
192
442
 
443
+ export declare interface MainFrameProps extends ContainerProps {
444
+ title?: string;
445
+ subtitle?: string;
446
+ actions?: default_2.ReactNode;
447
+ }
448
+
449
+ export declare interface MainframeProps {
450
+ item: {
451
+ id: string;
452
+ header: string;
453
+ body: string;
454
+ type: string | null;
455
+ duration?: number;
456
+ buttons: any[];
457
+ };
458
+ }
459
+
193
460
  export declare const MainHeader: (props: any) => JSX_2.Element;
194
461
 
462
+ export declare interface MainHeaderProps extends HeadlineProps {
463
+ subtitle?: string;
464
+ actions?: default_2.ReactNode;
465
+ }
466
+
195
467
  export declare const mapStyles: ({
196
468
  name: string;
197
469
  url: string;
@@ -212,11 +484,26 @@ export declare const mapStyles: ({
212
484
 
213
485
  export declare const MenuButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
214
486
 
215
- export declare const Model: default_2.ForwardRefExoticComponent<ModelProps & default_2.RefAttributes<HTMLDivElement>>;
487
+ export declare interface MenuButtonProps extends ButtonProps {
488
+ menuItems: Array<{
489
+ label: string;
490
+ action: () => void;
491
+ icon?: default_2.ReactNode;
492
+ }>;
493
+ }
494
+
495
+ export declare const Model: default_2.ForwardRefExoticComponent<ModelProps_2 & default_2.RefAttributes<HTMLDivElement>>;
216
496
 
217
497
  export declare const ModelContext: Context< {}>;
218
498
 
219
- declare interface ModelProps {
499
+ export declare interface ModelProps extends ContainerProps {
500
+ isOpen: boolean;
501
+ onClose: () => void;
502
+ size?: 'sm' | 'md' | 'lg' | 'xl';
503
+ closeOnOverlayClick?: boolean;
504
+ }
505
+
506
+ declare interface ModelProps_2 {
220
507
  children: any;
221
508
  bodyClick: boolean;
222
509
  className: string;
@@ -227,9 +514,82 @@ declare interface ModelProps {
227
514
 
228
515
  export declare const MuiTable: (props: any) => JSX_2.Element;
229
516
 
230
- export declare const NetworkMap: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<NetworkMapProps & default_2.RefAttributes<unknown>>>;
517
+ export declare interface MuiTableProps {
518
+ dataset: any[];
519
+ columns?: Array<{
520
+ accessorKey: string;
521
+ header: string;
522
+ size?: number;
523
+ enableSorting?: boolean;
524
+ enableColumnFilter?: boolean;
525
+ }>;
526
+ enableRowSelection?: boolean;
527
+ enableColumnResizing?: boolean;
528
+ enableColumnDragging?: boolean;
529
+ enableColumnOrdering?: boolean;
530
+ onRowSelectionChange?: (rows: any[]) => void;
531
+ className?: string;
532
+ }
231
533
 
232
- declare type NetworkMapProps = {
534
+ export declare const NetworkMap: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<NetworkMapProps_2 & default_2.RefAttributes<unknown>>>;
535
+
536
+ export declare interface NetworkMapProps {
537
+ nodes: object[];
538
+ connections: object[];
539
+ linkHighlightedColorHex: string;
540
+ defaultLinkColorHex: string;
541
+ hideLinksOnDrag: boolean;
542
+ showHoveredLinksOnly: boolean;
543
+ draggingMode: boolean;
544
+ maxZoomOutForLinkCount: number;
545
+ nodeSizeScaler: number;
546
+ defaultAnimationLinkColor: string;
547
+ linkAnimation: boolean;
548
+ staticMapColor: string;
549
+ isolateNonSelectedLinksOnNodeClick: boolean;
550
+ showLinkCount: boolean;
551
+ tid: string | number;
552
+ onConnClick: (conn: object) => void;
553
+ onNodeClick: (node: object) => void;
554
+ onNodeMouseOver: (node: object) => void;
555
+ getMenuTitle: (connection: object) => void;
556
+ onLinkContextMenu: (info: {
557
+ data: object;
558
+ event: default_2.MouseEvent;
559
+ mapApi: MapProps;
560
+ type: string;
561
+ }) => void;
562
+ enableNativeContextMenu: boolean;
563
+ enableLngLatBox: boolean;
564
+ mapStyle: {
565
+ url: string;
566
+ index: number;
567
+ name: string;
568
+ };
569
+ hideLinks: boolean;
570
+ mapProps: MapProps;
571
+ menuItems: Array<{
572
+ label: string;
573
+ action?: (args: {
574
+ data: object;
575
+ event: default_2.MouseEvent;
576
+ mapApi: MapProps;
577
+ type: string;
578
+ }) => void;
579
+ }>;
580
+ nodeMenuItems: Array<{
581
+ label: string;
582
+ action?: (args: {
583
+ data: object;
584
+ event: default_2.MouseEvent;
585
+ mapApi: MapProps;
586
+ type: string;
587
+ }) => void;
588
+ }>;
589
+ nodeIconMapper?: (object: any) => default_2.ReactNode | null;
590
+ }
591
+
592
+ declare type NetworkMapProps_2 = {
233
593
  nodes: object[];
234
594
  connections: object[];
235
595
  linkHighlightedColorHex: string;
@@ -287,11 +647,50 @@ declare type NetworkMapProps = {
287
647
 
288
648
  export declare const NgFailedLegend: (props: any) => JSX_2.Element;
289
649
 
650
+ export declare interface NgFailedLegendProps {
651
+ title?: string;
652
+ description?: string;
653
+ className?: string;
654
+ }
655
+
290
656
  export declare const NgSuccessLegend: (props: any) => JSX_2.Element;
291
657
 
292
- export declare const Panel: default_2.ForwardRefExoticComponent<default_2.RefAttributes<PanelProps>>;
658
+ export declare interface NgSuccessLegendProps {
659
+ title?: string;
660
+ description?: string;
661
+ className?: string;
662
+ }
663
+
664
+ export declare interface NodeParams {
665
+ name: string;
666
+ id: string;
667
+ color: string;
668
+ lng: number;
669
+ lat: number;
670
+ details?: Record<string, any>;
671
+ }
293
672
 
294
- declare interface PanelProps {
673
+ export declare interface NodeTemplate {
674
+ name: string;
675
+ color: string;
676
+ elementId: string;
677
+ details: Record<string, any>;
678
+ location: {
679
+ lng: number;
680
+ lat: number;
681
+ };
682
+ }
683
+
684
+ export declare const Panel: default_2.ForwardRefExoticComponent<default_2.RefAttributes<PanelProps_2>>;
685
+
686
+ export declare interface PanelProps extends ContainerProps {
687
+ header?: default_2.ReactNode;
688
+ footer?: default_2.ReactNode;
689
+ collapsible?: boolean;
690
+ defaultCollapsed?: boolean;
691
+ }
692
+
693
+ declare interface PanelProps_2 {
295
694
  children: any;
296
695
  closeButton: boolean;
297
696
  header: string;
@@ -303,13 +702,44 @@ declare interface PanelProps {
303
702
  defaultClose: string;
304
703
  }
305
704
 
705
+ export declare interface PropertiesItemProps {
706
+ label: string;
707
+ value: any;
708
+ type?: 'text' | 'number' | 'boolean' | 'date' | 'array' | 'object';
709
+ editable?: boolean;
710
+ onChange?: (value: any) => void;
711
+ className?: string;
712
+ }
713
+
306
714
  export declare const PropItem: (props: any) => JSX_2.Element;
307
715
 
308
716
  export declare const RadioGroup: ForwardRefExoticComponent<RefAttributes<unknown>>;
309
717
 
310
- export declare const RadioItem: React.FC<RadioItemProps>;
718
+ export declare interface RadioGroupProps {
719
+ name: string;
720
+ value?: string;
721
+ onChange?: (value: string) => void;
722
+ children: default_2.ReactNode;
723
+ className?: string;
724
+ orientation?: 'horizontal' | 'vertical';
725
+ }
726
+
727
+ export declare const RadioItem: React.FC<RadioItemProps_2>;
311
728
 
312
- declare interface RadioItemProps {
729
+ export declare interface RadioItemProps {
730
+ children?: default_2.ReactNode;
731
+ header?: default_2.ReactNode;
732
+ onSelect?: (ev: default_2.ChangeEvent<HTMLInputElement>, checked: boolean, state: any) => void;
733
+ onClick?: (state: any) => void;
734
+ onDoubleClick?: (state: any) => void;
735
+ onContextMenu?: (state: any) => void;
736
+ labelProps?: default_2.LabelHTMLAttributes<HTMLLabelElement>;
737
+ inputProps?: default_2.InputHTMLAttributes<HTMLInputElement>;
738
+ className?: string;
739
+ defaultChecked?: boolean;
740
+ }
741
+
742
+ declare interface RadioItemProps_2 {
313
743
  children?: ReactNode;
314
744
  header?: ReactNode;
315
745
  onSelect?: (ev: ChangeEvent<HTMLInputElement>, checked: boolean, state: any) => void;
@@ -326,6 +756,11 @@ export declare const ScrolBarStyle: (props: any) => JSX_2.Element;
326
756
 
327
757
  export declare const ScrollArea: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
328
758
 
759
+ export declare interface ScrollAreaProps extends ContainerProps {
760
+ orientation?: 'horizontal' | 'vertical';
761
+ scrollHideDelay?: number;
762
+ }
763
+
329
764
  export declare type ShadcnTabsProps = {
330
765
  tabs: Tab[];
331
766
  onChange?: (tab: Tab, value: string) => void;
@@ -339,18 +774,66 @@ export declare type ShadcnTabsProps = {
339
774
  full?: boolean;
340
775
  };
341
776
 
777
+ export declare interface SizeVariants {
778
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
779
+ }
780
+
342
781
  export declare const Spinner: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
343
782
 
344
783
  export declare const SpinnerDialog: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
345
784
 
785
+ export declare interface SpinnerDialogProps extends SpinnerProps {
786
+ isOpen: boolean;
787
+ onClose?: () => void;
788
+ title?: string;
789
+ message?: string;
790
+ }
791
+
792
+ export declare interface SpinnerProps {
793
+ variant?: 'blur' | 'primary' | 'white' | 'dark' | 'transparent';
794
+ size?: 'xs' | 'small' | 'large';
795
+ text?: string;
796
+ timeout?: boolean;
797
+ period?: number;
798
+ onAbort?: () => void;
799
+ className?: string;
800
+ }
801
+
346
802
  export declare const SplitButton: default_2.MemoExoticComponent<(props: any) => JSX_2.Element>;
347
803
 
804
+ export declare interface SplitButtonProps extends ButtonProps {
805
+ primaryAction: () => void;
806
+ secondaryActions: Array<{
807
+ label: string;
808
+ action: () => void;
809
+ icon?: default_2.ReactNode;
810
+ }>;
811
+ }
812
+
348
813
  export declare const SubHeader: (props: any) => JSX_2.Element;
349
814
 
815
+ export declare interface SubHeaderProps extends HeadlineProps {
816
+ description?: string;
817
+ }
818
+
350
819
  export declare const SwapIconButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
351
820
 
821
+ export declare interface SwapIconButtonProps extends ButtonProps {
822
+ icon1: default_2.ReactNode;
823
+ icon2: default_2.ReactNode;
824
+ state?: boolean;
825
+ onSwap?: (state: boolean) => void;
826
+ }
827
+
352
828
  export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps2 & default_2.RefAttributes<any>>;
353
829
 
830
+ export declare interface SwitchProps {
831
+ checked?: boolean;
832
+ onCheckedChange?: (checked: boolean) => void;
833
+ disabled?: boolean;
834
+ className?: string;
835
+ }
836
+
354
837
  declare interface SwitchProps2 extends default_2.ComponentPropsWithoutRef {
355
838
  onChange?: void;
356
839
  label: string;
@@ -367,7 +850,76 @@ export declare type Tab = {
367
850
  updateTableRows?: (rows: unknown[]) => void;
368
851
  };
369
852
 
370
- declare interface TableProps {
853
+ declare interface Tab_2 {
854
+ value: string;
855
+ label: string;
856
+ content: default_2.ReactNode;
857
+ default?: boolean;
858
+ disabled?: boolean;
859
+ icon?: default_2.ReactNode;
860
+ }
861
+
862
+ export declare interface TabItemProps {
863
+ tab: Tab_2;
864
+ isActive?: boolean;
865
+ onClick?: () => void;
866
+ className?: string;
867
+ }
868
+
869
+ export declare interface TableProps {
870
+ tid: string | number;
871
+ dataset: any[];
872
+ aggrid: AgGridReactProps;
873
+ pageSize: number;
874
+ rowHeight: string;
875
+ tableName: string;
876
+ enablePagination?: boolean;
877
+ enableContextMenu?: boolean;
878
+ rowSelection?: string;
879
+ toolbarBtns?: any[];
880
+ hidden?: any[];
881
+ enableExpand: boolean;
882
+ autoSizeStrategy?: string;
883
+ headerMapper?: Array<{
884
+ key: string;
885
+ value: any;
886
+ }>;
887
+ menuItems?: Array<{
888
+ label: string;
889
+ icon: any;
890
+ action: () => void;
891
+ type: string;
892
+ size: string;
893
+ }>;
894
+ onRowClick?: (params: any, rowData: any, rows: any[]) => void;
895
+ onRowDoubleClicked?: (params: any, rowData: any) => void;
896
+ onCellClick?: (params: any, value: any, field: string) => void;
897
+ onTableBuilt?: (callback: any) => void;
898
+ onExpand?: (params: any) => void;
899
+ onRefresh?: (callback: any) => void;
900
+ onChangeItem: {
901
+ key: string;
902
+ operation: void;
903
+ };
904
+ onChange?: Array<{
905
+ key: string;
906
+ operation: void;
907
+ }>;
908
+ ready?: boolean;
909
+ multiple?: boolean;
910
+ autoHideSpinner?: boolean;
911
+ aggridProps?: Partial<AgGridReactProps>;
912
+ className?: string;
913
+ topbar?: boolean;
914
+ hideFromTable?: any[];
915
+ formater?: any;
916
+ viewAsArray?: any[];
917
+ filter?: any;
918
+ groupBy?: any;
919
+ onMultiRowSelection?: (params: any, rows: any[]) => void;
920
+ }
921
+
922
+ declare interface TableProps_2 {
371
923
  tid: string | number;
372
924
  dataset: any[];
373
925
  aggrid: AgGridReactProps;
@@ -398,6 +950,14 @@ declare interface TableProps {
398
950
  onTableBuilt?: (callback: any) => void;
399
951
  onExpand?: (params: any) => void;
400
952
  onRefresh?: (callback: any) => void;
953
+ onChangeItem: {
954
+ key: string;
955
+ operation: void;
956
+ };
957
+ onChange?: {
958
+ key: string;
959
+ operation: void;
960
+ }[];
401
961
  ready?: boolean;
402
962
  multiple?: boolean;
403
963
  autoHideSpinner?: boolean;
@@ -416,14 +976,57 @@ export declare const Tabs: ForwardRefExoticComponent<ShadcnTabsProps & RefAttrib
416
976
 
417
977
  export declare const TextArea: ForwardRefExoticComponent<RefAttributes<unknown>>;
418
978
 
979
+ export declare interface TextAreaProps extends default_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
980
+ placeholder: string;
981
+ rows?: number;
982
+ maxLength?: number;
983
+ showCharacterCount?: boolean;
984
+ }
985
+
419
986
  export declare const TinnyHelp: (props: any) => JSX_2.Element;
420
987
 
988
+ export declare interface TinnyHelpProps {
989
+ info?: string;
990
+ more?: default_2.ReactNode;
991
+ className?: string;
992
+ size?: 'sx' | 'sm' | 'lg';
993
+ }
994
+
421
995
  export declare const Toast: ForwardRefExoticComponent<RefAttributes<unknown>>;
422
996
 
997
+ export declare interface ToastProps {
998
+ item: {
999
+ id: string;
1000
+ header: string;
1001
+ body: string;
1002
+ type: 'alert' | 'error' | 'warning' | 'info' | 'progress' | 'success' | null;
1003
+ duration?: number;
1004
+ buttons: any[];
1005
+ };
1006
+ duration?: number;
1007
+ }
1008
+
423
1009
  export declare const ToggleGroup: (props: any) => JSX_2.Element;
424
1010
 
1011
+ export declare interface ToggleGroupProps {
1012
+ value?: string;
1013
+ onValueChange?: (value: string) => void;
1014
+ children: default_2.ReactNode;
1015
+ className?: string;
1016
+ orientation?: 'horizontal' | 'vertical';
1017
+ size?: 'sm' | 'md' | 'lg';
1018
+ }
1019
+
425
1020
  export declare const ToggleItem: (props: any) => JSX_2.Element;
426
1021
 
1022
+ export declare interface ToggleItemProps {
1023
+ value: string;
1024
+ label: string;
1025
+ icon?: default_2.ReactNode;
1026
+ disabled?: boolean;
1027
+ className?: string;
1028
+ }
1029
+
427
1030
  export { Tooltip }
428
1031
 
429
1032
  export declare const useApi: (props: any) => {
@@ -444,6 +1047,13 @@ export declare const useApi: (props: any) => {
444
1047
  };
445
1048
  };
446
1049
 
1050
+ export declare interface UseApiReturn {
1051
+ data: any;
1052
+ loading: boolean;
1053
+ error: Error | null;
1054
+ refetch: () => void;
1055
+ }
1056
+
447
1057
  export declare function useBoxSize(ref: any): ({
448
1058
  y: number;
449
1059
  x: number;
@@ -452,18 +1062,55 @@ y: number;
452
1062
  x: number;
453
1063
  }>>)[];
454
1064
 
1065
+ export declare interface UseBoxSizeReturn {
1066
+ x: number;
1067
+ y: number;
1068
+ width: number;
1069
+ height: number;
1070
+ }
1071
+
455
1072
  export declare const useGeneratedId: (length?: number, beginstr?: boolean, forcss?: boolean) => string;
456
1073
 
457
1074
  export declare const useRandomId: (length?: number) => string;
458
1075
 
459
1076
  export declare const useStore: (props?: {}) => {}[];
460
1077
 
1078
+ export declare interface UseStoreReturn<T> {
1079
+ state: T;
1080
+ setState: (newState: T | ((prev: T) => T)) => void;
1081
+ reset: () => void;
1082
+ }
1083
+
461
1084
  export declare const useVariable: (props?: {}) => {}[];
462
1085
 
1086
+ export declare interface UseVariableReturn<T> {
1087
+ value: T;
1088
+ setValue: (newValue: T) => void;
1089
+ reset: () => void;
1090
+ }
1091
+
463
1092
  export declare const VirtualContainer: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
464
1093
 
1094
+ export declare interface VirtualContainerProps extends ContainerProps {
1095
+ itemCount: number;
1096
+ itemHeight: number;
1097
+ renderItem: (index: number) => default_2.ReactNode;
1098
+ }
1099
+
465
1100
  export declare const Whatsnew: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
466
1101
 
1102
+ export declare interface WhatsnewProps {
1103
+ items: Array<{
1104
+ title: string;
1105
+ description: string;
1106
+ image?: string;
1107
+ date: string;
1108
+ version: string;
1109
+ }>;
1110
+ onClose?: () => void;
1111
+ className?: string;
1112
+ }
1113
+
467
1114
 
468
1115
  export * from "lucide-react";
469
1116