@delightui/components 0.1.44 → 0.1.46

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.
Files changed (42) hide show
  1. package/dist/cjs/components/atoms/Checkbox/Checkbox.d.ts +1 -0
  2. package/dist/cjs/components/atoms/Checkbox/Checkbox.types.d.ts +5 -0
  3. package/dist/cjs/components/atoms/Input/Input.d.ts +1 -0
  4. package/dist/cjs/components/atoms/Input/Input.types.d.ts +5 -0
  5. package/dist/cjs/components/atoms/SelectListItem/SelectListItem.d.ts +4 -0
  6. package/dist/cjs/components/atoms/SelectListItem/SelectListItem.types.d.ts +27 -0
  7. package/dist/cjs/components/atoms/SelectListItem/index.d.ts +4 -0
  8. package/dist/cjs/components/atoms/ToastNotification/ToastNotification.types.d.ts +0 -6
  9. package/dist/cjs/components/atoms/Toggle/index.d.ts +1 -0
  10. package/dist/cjs/components/atoms/Tooltip/Tooltip.d.ts +4 -0
  11. package/dist/cjs/components/atoms/Tooltip/Tooltip.types.d.ts +59 -0
  12. package/dist/cjs/components/atoms/Tooltip/index.d.ts +4 -0
  13. package/dist/cjs/components/atoms/index.d.ts +4 -0
  14. package/dist/cjs/components/molecules/ChipInput/ChipInput.d.ts +2 -2
  15. package/dist/cjs/components/molecules/FormField/FormField.types.d.ts +6 -1
  16. package/dist/cjs/components/molecules/FormField/index.d.ts +3 -2
  17. package/dist/cjs/components/molecules/ProgressBar/ProgressBar.types.d.ts +0 -1
  18. package/dist/cjs/library.css +1616 -54
  19. package/dist/cjs/library.js +3 -3
  20. package/dist/cjs/library.js.map +1 -1
  21. package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +1 -0
  22. package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +5 -0
  23. package/dist/esm/components/atoms/Input/Input.d.ts +1 -0
  24. package/dist/esm/components/atoms/Input/Input.types.d.ts +5 -0
  25. package/dist/esm/components/atoms/SelectListItem/SelectListItem.d.ts +4 -0
  26. package/dist/esm/components/atoms/SelectListItem/SelectListItem.types.d.ts +27 -0
  27. package/dist/esm/components/atoms/SelectListItem/index.d.ts +4 -0
  28. package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +0 -6
  29. package/dist/esm/components/atoms/Toggle/index.d.ts +1 -0
  30. package/dist/esm/components/atoms/Tooltip/Tooltip.d.ts +4 -0
  31. package/dist/esm/components/atoms/Tooltip/Tooltip.types.d.ts +59 -0
  32. package/dist/esm/components/atoms/Tooltip/index.d.ts +4 -0
  33. package/dist/esm/components/atoms/index.d.ts +4 -0
  34. package/dist/esm/components/molecules/ChipInput/ChipInput.d.ts +2 -2
  35. package/dist/esm/components/molecules/FormField/FormField.types.d.ts +6 -1
  36. package/dist/esm/components/molecules/FormField/index.d.ts +3 -2
  37. package/dist/esm/components/molecules/ProgressBar/ProgressBar.types.d.ts +0 -1
  38. package/dist/esm/library.css +1616 -54
  39. package/dist/esm/library.js +3 -3
  40. package/dist/esm/library.js.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/index.d.ts +0 -2129
package/dist/index.d.ts DELETED
@@ -1,2129 +0,0 @@
1
- import * as React$1 from 'react';
2
- import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, ReactNode, MouseEvent, InputHTMLAttributes, TextareaHTMLAttributes, Dispatch, SetStateAction, FormHTMLAttributes, Ref, LiHTMLAttributes, CSSProperties, TableHTMLAttributes, TdHTMLAttributes } from 'react';
3
- import { LinkProps } from 'react-router-dom';
4
- import { Plugin } from 'flatpickr/dist/types/options';
5
- import FlatPickr from 'react-flatpickr';
6
- import { Offset } from 'react-overlays/usePopper';
7
-
8
- /**
9
- * Enum for different image fit options.
10
- */
11
- type ImageFitEnum = 'Fit' | 'Fill' | 'Crop';
12
- interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
13
- /**
14
- * The URL of the image to display if the image fails to load.
15
- */
16
- fallback?: string;
17
- /**
18
- * The fit option for the image.
19
- * @default 'Fit'
20
- */
21
- fit?: ImageFitEnum;
22
- /**
23
- * Callback function when the image has loaded.
24
- */
25
- onLoad?: () => void;
26
- /**
27
- * Callback function when an error occurs while loading the image.
28
- */
29
- onError?: (error: SyntheticEvent<HTMLImageElement>) => void;
30
- /**
31
- * Flag to show a loading indicator for the image.
32
- * @default false
33
- */
34
- showLoading?: boolean;
35
- /**
36
- * Additional class for styling.
37
- */
38
- className?: string;
39
- /**
40
- * The aspect ratio of the image.
41
- * @default natural aspect ratio of the image
42
- */
43
- aspectRatio?: string;
44
- }
45
-
46
- declare const Image: (props: ImageProps) => JSX.Element;
47
-
48
- type ActionImageProps = ImageProps & {
49
- /**
50
- * Specifies if the action image is disabled.
51
- * @default false
52
- */
53
- disabled?: boolean;
54
- /**
55
- * Additional class for styling.
56
- */
57
- className?: string;
58
- };
59
-
60
- /**
61
- * ActionImage component definition.
62
- */
63
- declare const ActionImage: (props: ActionImageProps) => React__default.JSX.Element;
64
-
65
- type ButtonAppearanceEnum = 'Default' | 'Inverse';
66
- type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
67
- type ButtonStyleEnum = 'Primary' | 'Secondary' | 'Destructive';
68
- type ButtonSizeEnum = 'Small' | 'Medium' | 'Large';
69
- type ButtonActionTypeEnum = 'button' | 'submit' | 'reset';
70
- type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
71
- /**
72
- * Appearance of the button.
73
- * @default 'Default'
74
- */
75
- appearance?: ButtonAppearanceEnum;
76
- /**
77
- * Type of the button.
78
- * @default 'Filled'
79
- */
80
- type?: ButtonTypeEnum;
81
- /**
82
- * Style of the button.
83
- * @default 'Primary'
84
- */
85
- style?: ButtonStyleEnum;
86
- /**
87
- * Size of the button.
88
- * @default 'Medium'
89
- */
90
- size?: ButtonSizeEnum;
91
- /**
92
- * Indicates if the button is in a loading state.
93
- * @default false
94
- */
95
- loading?: boolean;
96
- /**
97
- * Specifies if the button is disabled.
98
- * @default false
99
- */
100
- disabled?: boolean;
101
- /**
102
- * Icon to be displayed before the button's content.
103
- */
104
- leadingIcon?: ReactNode;
105
- /**
106
- * Icon to be displayed after the button's content.
107
- */
108
- trailingIcon?: ReactNode;
109
- /**
110
- * Click event handler for the button.
111
- */
112
- onClick?: (event?: MouseEvent<HTMLElement>) => void;
113
- /**
114
- * Additional class for styling.
115
- */
116
- className?: string;
117
- /**
118
- * Type of action associated with the button.
119
- * @default 'button'
120
- */
121
- actionType?: ButtonActionTypeEnum;
122
- };
123
-
124
- /**
125
- * Button component definition.
126
- */
127
- declare const Button: (props: ButtonProps) => React__default.JSX.Element;
128
-
129
- type IconStyleEnum = 'Outlined' | 'Filled' | 'Round';
130
- type IconSizeEnum = 'Small' | 'Medium' | 'Large';
131
- interface IconProps {
132
- /**
133
- * The name of the icon to be displayed.
134
- */
135
- icon: string;
136
- /**
137
- * Style of the icon.
138
- * @default 'Filled'
139
- */
140
- style?: IconStyleEnum;
141
- /**
142
- * Size of the icon.
143
- * @default 'Medium'
144
- */
145
- size?: IconSizeEnum;
146
- /**
147
- * Additional class for styling.
148
- */
149
- className?: string;
150
- }
151
-
152
- declare const Icon: (props: IconProps) => React__default.JSX.Element | null;
153
-
154
- type IconButtonAppearanceEnum = 'Default' | 'Inverse';
155
- type IconButtonStyleEnum = 'Primary' | 'Secondary';
156
- type IconButtonSizeEnum = 'Small' | 'Medium';
157
- interface IconButtonProps extends Omit<ButtonProps, 'leadingIcon' | 'trailingIcon' | 'style' | 'size'> {
158
- /**
159
- * Appearance of the button.
160
- * @default 'Default'
161
- */
162
- appearance?: IconButtonAppearanceEnum;
163
- /**
164
- * The icon to be displayed.
165
- */
166
- icon?: ReactNode;
167
- /**
168
- * Style of the button.
169
- * @default 'Primary'
170
- */
171
- style?: IconButtonStyleEnum;
172
- /**
173
- * Size of the button.
174
- * @default 'Medium'
175
- */
176
- size?: IconButtonSizeEnum;
177
- }
178
-
179
- declare const IconButton: (props: IconButtonProps) => React__default.JSX.Element;
180
-
181
- /**
182
- * Enum for different input types.
183
- */
184
- type InputTypeEnum = 'Text' | 'Number' | 'Email' | 'Password';
185
- type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'> & {
186
- /**
187
- * The type of input.
188
- * @default 'Text'
189
- */
190
- inputType?: InputTypeEnum;
191
- /**
192
- * The value of the input.
193
- */
194
- value?: string;
195
- /**
196
- * Callback function when the input value changes.
197
- * @param value - The new value of the input.
198
- */
199
- onValueChanged?: (value: string) => void;
200
- /**
201
- * Indicates if the input is invalid.
202
- * @default false
203
- */
204
- invalid?: boolean;
205
- /**
206
- * Icon to be displayed before the input.
207
- */
208
- leadingIcon?: React.ReactNode;
209
- /**
210
- * Icon to be displayed after the input.
211
- */
212
- trailingIcon?: React.ReactNode;
213
- /**
214
- * provide a way to override the styling
215
- */
216
- 'component-variant'?: string;
217
- };
218
-
219
- declare const Input: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & {
220
- inputType?: InputTypeEnum;
221
- value?: string;
222
- onValueChanged?: (value: string) => void;
223
- invalid?: boolean;
224
- leadingIcon?: React__default.ReactNode;
225
- trailingIcon?: React__default.ReactNode;
226
- 'component-variant'?: string;
227
- } & React__default.RefAttributes<HTMLInputElement>>;
228
-
229
- type PasswordProps = Omit<InputProps, 'inputType' | 'trailingIcon'> & {
230
- hideTrailingIcon?: boolean;
231
- };
232
-
233
- declare const Password: (props: PasswordProps) => React__default.JSX.Element;
234
-
235
- type SpinnerProps = {
236
- className?: string;
237
- };
238
-
239
- declare const Spinner: ({ className }: SpinnerProps) => React__default.JSX.Element;
240
-
241
- declare const types: readonly ["Heading1", "Heading2", "Heading3", "Heading4", "Heading5", "Heading6", "BodyLarge", "BodyMedium", "BodySmall"];
242
- declare const weights: readonly ["Thin", "ExtraLight", "Light", "Regular", "Medium", "SemiBold", "Bold", "ExtraBold", "Black", "ExtraBlack", 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
243
- declare const transforms: readonly ["None", "Capitalize", "UpperCase", "LowerCase"];
244
-
245
- /**
246
- * Enum for the types of text.
247
- */
248
- type TextTypeEnum = typeof types[number];
249
- /**
250
- * Enum for the weights of text.
251
- */
252
- type TextWeightEnum = typeof weights[number];
253
- /**
254
- * Enum for text decorations.
255
- */
256
- type TextDecorationEnum = 'None' | 'Underline' | 'Strikethrough';
257
- /**
258
- * Enum for text transformations.
259
- */
260
- type TextTransformEnum = typeof transforms[number];
261
- interface TextProps {
262
- /**
263
- * Additional class for styling.
264
- */
265
- className?: string;
266
- /**
267
- * Type of the text.
268
- * @default 'BodyMedium'
269
- */
270
- type?: TextTypeEnum;
271
- /**
272
- * Weight of the text.
273
- * @default 'Regular'
274
- */
275
- weight?: TextWeightEnum;
276
- /**
277
- * The content to be displayed as text.
278
- */
279
- children?: React.ReactNode;
280
- /**
281
- * Flag to prevent text from wrapping.
282
- * @default false
283
- */
284
- noWrap?: boolean;
285
- /**
286
- * Flag to handle how white space inside an element is handled.
287
- * @default false
288
- */
289
- whiteSpaceNoWrap?: boolean;
290
- /**
291
- * Flag to italicize the text.
292
- * @default false
293
- */
294
- italic?: boolean;
295
- /**
296
- * Decoration style for the text.
297
- * @default 'None'
298
- */
299
- decoration?: TextDecorationEnum;
300
- /**
301
- * Flag to show ellipsis for overflowing text.
302
- * @default false
303
- */
304
- ellipsis?: boolean;
305
- /**
306
- * Transform style for the text.
307
- * @default 'None'
308
- */
309
- transform?: TextTransformEnum;
310
- /**
311
- * Modify the element type used for rendering
312
- */
313
- as?: React.ElementType<any, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'>;
314
- }
315
-
316
- /**
317
- * Text component definition.
318
- */
319
- declare const Text: (props: TextProps) => React__default.JSX.Element;
320
-
321
- type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'> & {
322
- /**
323
- * The value of the text area.
324
- */
325
- value?: string;
326
- /**
327
- * Callback function when the value of the text area changes.
328
- * @param value - The new value of the text area.
329
- */
330
- onValueChanged?: (value: string) => void;
331
- /**
332
- * Indicates if the text area is in an invalid state.
333
- * @default false
334
- */
335
- invalid?: boolean;
336
- /**
337
- * Additional class for styling.
338
- */
339
- className?: string;
340
- };
341
-
342
- declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & {
343
- value?: string;
344
- onValueChanged?: (value: string) => void;
345
- invalid?: boolean;
346
- className?: string;
347
- } & React__default.RefAttributes<HTMLTextAreaElement>>;
348
-
349
- type ResponsiveComponentProps<T> = {
350
- className?: string;
351
- component: React.FC<T>;
352
- children: React.ReactElement<BreakpointProps<T>>[];
353
- };
354
- type BreakpointProps<T> = {
355
- width: number;
356
- children: React.ReactElement<T>;
357
- };
358
-
359
- declare const Breakpoint: <T>({ children }: BreakpointProps<T>) => React__default.JSX.Element;
360
- declare const ResponsiveComponent: <T>(props: ResponsiveComponentProps<T>) => React__default.JSX.Element;
361
-
362
- type ListItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
363
- /**
364
- * Icon to be displayed before the button's content.
365
- */
366
- leadingIcon?: ReactNode;
367
- /**
368
- * Icon to be displayed after the button's content.
369
- */
370
- trailingIcon?: ReactNode;
371
- /**
372
- * Whether the list item is disabled.
373
- */
374
- disabled?: boolean;
375
- /**
376
- * Click event handler for the list item.
377
- */
378
- onClick?: (event?: MouseEvent<HTMLElement>) => void;
379
- /**
380
- * The label for the list item.
381
- */
382
- children?: ReactNode;
383
- /**
384
- * Additional class for styling.
385
- */
386
- className?: string;
387
- };
388
-
389
- declare const ListItem: (props: ListItemProps) => React__default.JSX.Element;
390
-
391
- type ToggleLabelAlignmentEnum = 'Left' | 'Right';
392
-
393
- declare const Toggle: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
394
- children?: React__default.ReactNode;
395
- checked?: boolean;
396
- onValueChanged?: (value: boolean) => void;
397
- defaultChecked?: boolean;
398
- invalid?: boolean;
399
- labelAlignment?: ToggleLabelAlignmentEnum;
400
- } & React__default.RefAttributes<HTMLInputElement>>;
401
-
402
- declare const ToggleButton: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "type" | "actionType"> & {
403
- checked?: boolean;
404
- defaultChecked?: boolean;
405
- onValueChanged?: (value: boolean) => void;
406
- disabled?: boolean;
407
- required?: boolean;
408
- invalid?: boolean;
409
- children?: React__default.ReactNode;
410
- className?: string;
411
- } & React__default.RefAttributes<HTMLInputElement>>;
412
-
413
- type ToggleButtonProps = Omit<ButtonProps, 'type' | 'actionType'> & {
414
- /**
415
- * Controlled state of the toggle
416
- */
417
- checked?: boolean;
418
- /**
419
- * Default value for uncontrolled component
420
- */
421
- defaultChecked?: boolean;
422
- /**
423
- * Callback function when toggle state changes
424
- */
425
- onValueChanged?: (value: boolean) => void;
426
- /**
427
- * Disable the toggle
428
- */
429
- disabled?: boolean;
430
- /**
431
- * Make the toggle required
432
- */
433
- required?: boolean;
434
- /**
435
- * Show invalid state
436
- */
437
- invalid?: boolean;
438
- /**
439
- * Content of the button
440
- */
441
- children?: ReactNode;
442
- /**
443
- * Additional className for the toggle
444
- */
445
- className?: string;
446
- };
447
-
448
- interface CustomToggleProps {
449
- /**
450
- * Controlled state of the toggle
451
- */
452
- checked?: boolean;
453
- /**
454
- * Default value for uncontrolled component
455
- */
456
- defaultChecked?: boolean;
457
- /**
458
- * Callback function when toggle state changes
459
- */
460
- onValueChanged?: (value: boolean) => void;
461
- /**
462
- * Disable the toggle
463
- */
464
- disabled?: boolean;
465
- /**
466
- * Make the toggle required
467
- */
468
- required?: boolean;
469
- /**
470
- * Show invalid state
471
- */
472
- invalid?: boolean;
473
- /**
474
- * Content to show when toggle is off
475
- */
476
- offContent?: ReactNode;
477
- /**
478
- * Content to show when toggle is on
479
- */
480
- onContent?: ReactNode;
481
- /**
482
- * Additional className for the toggle
483
- */
484
- className?: string;
485
- }
486
-
487
- declare const CustomToggle: React__default.ForwardRefExoticComponent<CustomToggleProps & React__default.RefAttributes<HTMLInputElement>>;
488
-
489
- type ChipTypeEnum = 'Bright' | 'BrightOutline' | 'Subdued' | 'SubduedOutline';
490
- type ChipStyleEnum = 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
491
- type ChipSizeEnum = 'Small' | 'Medium' | 'Large';
492
- type ChipCornerEnum = 'Rounded' | 'Squared';
493
- type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
494
- /**
495
- * Type of the chip.
496
- * @default 'Filled'
497
- */
498
- type?: ChipTypeEnum;
499
- /**
500
- * Style of the chip.
501
- * @default 'A'
502
- */
503
- style?: ChipStyleEnum;
504
- /**
505
- * Size of the chip.
506
- * @default 'Medium'
507
- */
508
- size?: ChipSizeEnum;
509
- /**
510
- * Determines if the chip is disabled.
511
- * @default false
512
- */
513
- isDisabled?: boolean;
514
- /**
515
- * Icon displayed before the chip's content.
516
- */
517
- leadingIcon?: ReactNode;
518
- /**
519
- * Icon displayed after the chip's content.
520
- */
521
- trailingIcon?: ReactNode;
522
- /**
523
- * Click event handler for the chip.
524
- */
525
- onClick?: (event?: MouseEvent<HTMLDivElement>) => void;
526
- /**
527
- * Additional class for styling.
528
- */
529
- className?: string;
530
- /**
531
- * Defines the corner shape of the chip.
532
- * @default 'Rounded'
533
- */
534
- corner?: ChipCornerEnum;
535
- /**
536
- * Determines if the chip is dismissible.
537
- * @default false
538
- */
539
- isDismissible?: boolean;
540
- /**
541
- * Close button/icon for dismissible chips.
542
- */
543
- closeIcon?: ReactNode;
544
- /**
545
- * Event handler for the close action when chip is dismissible.
546
- */
547
- onClose?: (event?: MouseEvent<HTMLElement>) => void;
548
- };
549
-
550
- /**
551
- * Chip component definition.
552
- */
553
- declare const Chip: (props: ChipProps) => React__default.JSX.Element;
554
-
555
- type CheckboxSizeEnum = 'Small' | 'Medium' | 'Large';
556
- type CheckboxLabelAlignmentEnum = 'Left' | 'Right';
557
- type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value'> & {
558
- /**
559
- * The label of the checkbox.
560
- */
561
- children?: React.ReactNode;
562
- /**
563
- * The size of the checkbox.
564
- * @default 'Medium'
565
- */
566
- size?: CheckboxSizeEnum;
567
- /**
568
- * The checked state of the checkbox.
569
- */
570
- checked?: boolean;
571
- /**
572
- * Callback function when the checkbox state changes.
573
- * @param value - The new checked state of the checkbox.
574
- */
575
- onValueChanged?: (value: boolean) => void;
576
- /**
577
- * Default checked state of the checkbox.
578
- * @default false
579
- */
580
- defaultChecked?: boolean;
581
- /**
582
- * Indicates if the checkbox is invalid.
583
- * @default false
584
- */
585
- invalid?: boolean;
586
- /**
587
- * The value of the checkbox.
588
- */
589
- value?: string | number;
590
- /**
591
- * The alignment of the label.
592
- */
593
- labelAlignment?: CheckboxLabelAlignmentEnum;
594
- };
595
-
596
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
597
- children?: React__default.ReactNode;
598
- size?: CheckboxSizeEnum;
599
- checked?: boolean;
600
- onValueChanged?: (value: boolean) => void;
601
- defaultChecked?: boolean;
602
- invalid?: boolean;
603
- value?: string | number;
604
- labelAlignment?: CheckboxLabelAlignmentEnum;
605
- } & React__default.RefAttributes<HTMLInputElement>>;
606
-
607
- declare const CheckboxItem: React__default.ForwardRefExoticComponent<Omit<CheckboxProps, "onValueChanged"> & {
608
- onChange?: (value: boolean) => void;
609
- showRightButton?: boolean;
610
- onRightButtonClick?: () => void;
611
- rightButtonIcon?: React__default.ReactNode;
612
- } & React__default.RefAttributes<HTMLInputElement>>;
613
-
614
- type CheckboxItemProps = Omit<CheckboxProps, 'onValueChanged'> & {
615
- /**
616
- * Callback function when the checkbox state changes.
617
- * @param value: boolean - The new checked state of the checkbox.
618
- */
619
- onChange?: (value: boolean) => void;
620
- /**
621
- * Flag to show right button.
622
- * @default false
623
- */
624
- showRightButton?: boolean;
625
- /**
626
- * Callback function when the right button is clicked.
627
- */
628
- onRightButtonClick?: () => void;
629
- /**
630
- * Custom icon for the right button.
631
- */
632
- rightButtonIcon?: ReactNode;
633
- };
634
-
635
- type SliderProps = React.HTMLAttributes<HTMLDivElement> & {
636
- /**
637
- * The minimum value of the slider.
638
- * @default 0
639
- */
640
- min?: number;
641
- /**
642
- * The maximum value of the slider.
643
- * @default 100
644
- */
645
- max?: number;
646
- /**
647
- * The step size for the slider.
648
- * @default 1
649
- */
650
- step?: number;
651
- /**
652
- * The current value of the slider.
653
- * Can be a single number or an array with exactly two numbers for range selection.
654
- */
655
- value?: number | [number, number];
656
- /**
657
- * Callback function triggered when the slider value changes.
658
- * @param value - The new value of the slider.
659
- */
660
- onValueChange?: (value: number | [number, number]) => void;
661
- /**
662
- * Whether to display the minimum value label.
663
- * @default false
664
- */
665
- showMin?: boolean;
666
- /**
667
- * Whether to display the maximum value label.
668
- * @default false
669
- */
670
- showMax?: boolean;
671
- /**
672
- * Whether to show the current value on the slider thumb.
673
- * @default false
674
- */
675
- showValueOnThumb?: boolean;
676
- /**
677
- * Whether to enable range selection (two thumbs).
678
- * @default false
679
- */
680
- enableRange?: boolean;
681
- /**
682
- * Flag to disabled slider.
683
- * @default false
684
- */
685
- disabled?: boolean;
686
- className?: string;
687
- };
688
-
689
- declare const Slider: (props: SliderProps) => React__default.JSX.Element;
690
-
691
- type AccordionSizeEnum = 'Small' | 'Medium' | 'Large';
692
- type AccordionSummaryProps = {
693
- children: ReactNode;
694
- className?: string;
695
- /**
696
- * Custom expand/collapse icon element to override the default icon.
697
- * It will rotate 90 degrees clockwise when the accordion is expanded.
698
- */
699
- expandIcon?: ReactNode;
700
- };
701
- type AccordionDetailsProps = {
702
- /**
703
- * The content to be displayed in the accordion details section.
704
- */
705
- children: ReactNode;
706
- /**
707
- * Optional CSS class name for custom styling.
708
- */
709
- className?: string;
710
- };
711
- type AccordionProps = {
712
- children: ReactNode;
713
- className?: string;
714
- /**
715
- * The size of the accordion.
716
- * @default 'Medium'
717
- */
718
- size?: AccordionSizeEnum;
719
- /**
720
- * Whether the accordion is expanded by default.
721
- * @default false
722
- */
723
- defaultExpanded?: boolean;
724
- /**
725
- * Controls the expanded state when using controlled mode.
726
- * Use this prop along with onChange for controlled behavior.
727
- */
728
- expanded?: boolean;
729
- /**
730
- * Callback function when the accordion is expanded/collapsed.
731
- * @param isOpen - The new expanded state of the accordion.
732
- */
733
- onChange?: (isOpen: boolean) => void;
734
- /**
735
- * Unique identifier for the accordion.
736
- * This is used to identify the accordion in the group.
737
- */
738
- name?: string;
739
- };
740
-
741
- declare const AccordionSummary: (props: AccordionSummaryProps) => React__default.JSX.Element;
742
- declare const AccordionDetails: (props: AccordionDetailsProps) => React__default.JSX.Element;
743
- declare const Accordion: (props: AccordionProps) => React__default.JSX.Element;
744
-
745
- type AccordionGroupProps = {
746
- children: ReactNode;
747
- className?: string;
748
- /**
749
- * Unique identifier for the accordion group.
750
- * This will be passed to the accordions as a prop.
751
- */
752
- name?: string;
753
- };
754
-
755
- declare const AccordionGroup: (props: AccordionGroupProps) => React__default.JSX.Element;
756
-
757
- type ActionCardProps = HTMLAttributes<HTMLDivElement> & Omit<LinkProps, 'to'> & {
758
- /**
759
- * The content to be displayed within the action card.
760
- */
761
- children: ReactNode;
762
- /**
763
- * Specifies if the action card is disabled.
764
- * @default false
765
- */
766
- disabled?: boolean;
767
- /**
768
- * Additional class for styling.
769
- */
770
- className?: string;
771
- /**
772
- * The destination URL or path for the navigation link.
773
- * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
774
- * Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
775
- *
776
- * @example
777
- * // Internal link
778
- * <NavLink to="/home">Home</NavLink>
779
- *
780
- * // External link
781
- * <NavLink to="https://www.example.com">External</NavLink>
782
- */
783
- to?: string | -1;
784
- };
785
-
786
- /**
787
- * ActionCard component definition.
788
- */
789
- declare const ActionCard: (props: ActionCardProps) => React__default.JSX.Element;
790
-
791
- interface BreadcrumbsProps {
792
- /**
793
- * The divider element to separate breadcrumb items.
794
- * Can be a string, icon, or custom React node.
795
- */
796
- divider?: ReactNode;
797
- /**
798
- * Additional classes for custom styling.
799
- */
800
- className?: string;
801
- /**
802
- * The breadcrumb items to be displayed.
803
- */
804
- children: ReactNode;
805
- }
806
-
807
- declare const Breadcrumbs: (props: BreadcrumbsProps) => React__default.JSX.Element;
808
-
809
- type NavLinkTypeEnum = 'Fill' | 'Underline';
810
- type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'leadingIcon' | 'trailingIcon'> & {
811
- /**
812
- * The destination URL or path for the navigation link.
813
- * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
814
- * Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
815
- *
816
- * @example
817
- * // Internal link
818
- * <NavLink to="/home">Home</NavLink>
819
- *
820
- * // External link
821
- * <NavLink to="https://www.example.com">External</NavLink>
822
- */
823
- to: string | -1;
824
- /**
825
- * The type of nav link to render.
826
- * @default 'Fill'
827
- */
828
- type?: NavLinkTypeEnum | ButtonTypeEnum;
829
- /**
830
- * provide a way to override the styling
831
- */
832
- 'component-variant'?: string;
833
- };
834
-
835
- declare const NavLink: (props: NavLinkProps) => React__default.JSX.Element;
836
-
837
- interface BreadcrumbProps extends Omit<NavLinkProps, 'type'> {
838
- /**
839
- * Flag that defines the breadcrumb state.
840
- * @default false
841
- */
842
- selected?: boolean;
843
- /**
844
- * Defines the button type used for the breadcrumb link.
845
- */
846
- navLinkType?: ButtonTypeEnum;
847
- }
848
-
849
- declare const Breadcrumb: (props: BreadcrumbProps) => React__default.JSX.Element;
850
-
851
- /**
852
- * Enum for the alignment of the button-group.
853
- */
854
- type ButtonGroupAlignEnum = 'Horizontal' | 'Vertical';
855
- /**
856
- * Enum for the type of the button-group.
857
- */
858
- type ButtonGroupTypeEnum = 'Outlined' | 'Ghost';
859
- type ButtonGroupProps = {
860
- /**
861
- * The alignment of the button-group.
862
- * @default 'Horizontal'
863
- */
864
- align?: ButtonGroupAlignEnum;
865
- /**
866
- * Type of the button-group.
867
- * @default 'Filled'
868
- */
869
- type?: ButtonGroupTypeEnum;
870
- /**
871
- * The content to be displayed within the ButtonGroup.
872
- */
873
- children: ReactNode | ReactNode[];
874
- /**
875
- * Additional class for styling.
876
- */
877
- className?: string;
878
- };
879
-
880
- /**
881
- * ButtonGroup component definition.
882
- */
883
- declare const ButtonGroup: (props: ButtonGroupProps) => React__default.JSX.Element;
884
-
885
- type CardProps = {
886
- /**
887
- * The content to be displayed within the card.
888
- */
889
- children: ReactNode;
890
- /**
891
- * Additional class for styling.
892
- */
893
- className?: string;
894
- };
895
-
896
- /**
897
- * Card component definition.
898
- */
899
- declare const Card: (props: CardProps) => React__default.JSX.Element;
900
-
901
- /**
902
- * Enum for the alignment of the list.
903
- *
904
- * @typedef {'Horizontal' | 'Vertical'} ListAlignEnum
905
- */
906
- type ListAlignEnum = 'Horizontal' | 'Vertical';
907
- /**
908
- * Represents a generic list item.
909
- *
910
- * @property {string | number} [id] - A unique identifier for the list item. This is optional and can be auto-generated if not provided.
911
- * @property {string} [itemClassName] - Additional class for styling the list item.
912
- * @property {React.CSSProperties} [itemStyle] - Additional styles for the list item.
913
- */
914
- type ListItemType = object & {
915
- id?: string | number;
916
- itemClassName?: string;
917
- itemStyle?: React.CSSProperties;
918
- };
919
- /**
920
- * Props for the list wrapper component.
921
- *
922
- * @template T - The type of the list items.
923
- * @property {T[]} [data] - The data to be rendered in the list.
924
- * @property {React.FC<any>} component - The React functional component used to render each list item.
925
- * @property {(item: T, index: number) => string | number} [keyExtractor] - A function to extract unique keys for each item.
926
- * @property {'Horizontal' | 'Vertical'} [align='Vertical'] - The alignment of the list. Defaults to `'Vertical'`.
927
- * @property {boolean} [wrap] - Whether the list content should wrap.
928
- * @property {string} [className] - Additional class for styling the list.
929
- * @property {boolean} [sortable] - Whether the list items can be sorted using drag-and-drop.
930
- * @property {Dispatch<SetStateAction<T[]>>} [updateSortOrder] - Callback function to update the order of the list items after sorting.
931
- */
932
- type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListElement>, 'children'> & {
933
- /**
934
- * The data to be rendered in the list.
935
- */
936
- data?: T[];
937
- /**
938
- * The component used to render each item in the list.
939
- */
940
- component: React.FC<any>;
941
- /**
942
- * Function to extract keys.
943
- */
944
- keyExtractor?: (item: T, index: number) => string | number;
945
- /**
946
- * The alignment of the list.
947
- * @default 'Vertical'
948
- */
949
- align?: ListAlignEnum;
950
- /**
951
- * Flag to control if the content should wrap.
952
- */
953
- wrap?: boolean;
954
- /**
955
- * Additional class for styling.
956
- */
957
- className?: string;
958
- /**
959
- * Flag to enable sorting of list items
960
- */
961
- sortable?: boolean;
962
- /**
963
- * callback function to update the current order of data
964
- *
965
- * @param data
966
- * @returns
967
- */
968
- updateSortOrder?: Dispatch<SetStateAction<T[]>>;
969
- };
970
-
971
- /**
972
- * A wrapper component that manages the rendering of either a sortable or regular list based on the provided props.
973
- *
974
- * @template T - The type of the list items.
975
- * @param {ListProps<T>} props - The properties for the list wrapper.
976
- * @returns {JSX.Element} The rendered list component.
977
- */
978
- declare const List: <T extends ListItemType>(props: ListProps<T>) => React__default.JSX.Element;
979
-
980
- type ContextMenuProps<T extends ListItemType> = ListProps<T>;
981
-
982
- declare const ContextMenu: <T extends ListItemType>(props: ContextMenuProps<T>) => React__default.JSX.Element;
983
-
984
- type DatePickerPosition = 'auto' | 'above' | 'below' | 'auto left' | 'auto center' | 'auto right' | 'above left' | 'above center' | 'above right' | 'below left' | 'below center' | 'below right';
985
- type DatePickerProps = {
986
- /**
987
- * Additional class for styling.
988
- */
989
- className?: string;
990
- /**
991
- * The minimum selectable date.
992
- */
993
- minDate?: string | Date;
994
- /**
995
- * The maximum selectable date.
996
- */
997
- maxDate?: string | Date;
998
- /**
999
- * Enable time selection in the date picker.
1000
- * @default false
1001
- */
1002
- enableTime?: boolean;
1003
- /**
1004
- * Enable selecting a start and end date.
1005
- * @default false
1006
- */
1007
- enableRange?: boolean;
1008
- /**
1009
- * The date that is initially displayed.
1010
- */
1011
- defaultDate?: string | Date;
1012
- /**
1013
- * The format of the date to be displayed.
1014
- * @remark
1015
- * For info about what formats exist, refer to the flatpickr documentation
1016
- */
1017
- dateFormat?: string;
1018
- /**
1019
- * Callback function when the date(s) are changed.
1020
- * @param dates - Array of selected dates.
1021
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1022
- */
1023
- onChange?: (dates: Date[], dateStr: string) => void;
1024
- /**
1025
- * Callback function when the date picker is opened.
1026
- * @param dates - Array of selected dates.
1027
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1028
- */
1029
- onOpen?: (dates: Date[], dateStr: string) => void;
1030
- /**
1031
- * Callback function when the date picker is closed.
1032
- * @param dates - Array of selected dates.
1033
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1034
- */
1035
- onClose?: (dates: Date[], dateStr: string) => void;
1036
- /**
1037
- * render date picker inline
1038
- */
1039
- inline?: boolean;
1040
- /**
1041
- * Hide calendar for only time picker.
1042
- * @default false
1043
- */
1044
- noCalendar?: boolean;
1045
- /**
1046
- * The Flatpickr ref.
1047
- */
1048
- datePickerRef?: React.RefObject<FlatPickr>;
1049
- /**
1050
- * Datepicker position
1051
- */
1052
- position?: DatePickerPosition;
1053
- /**
1054
- * Function to parse date strings into Date objects.
1055
- * Used for parsing both the initial date string and any date strings entered in the input field.
1056
- * @param date - The date value to parse, can be a string
1057
- * @param format - Optional format string to use when parsing date strings
1058
- * @returns A Date object representing the parsed date
1059
- */
1060
- parseDate?: (date: string, format?: string) => Date;
1061
- /**
1062
- * Allow user to type date/time in input.
1063
- * @default false
1064
- */
1065
- allowInput?: boolean;
1066
- /**
1067
- * Custom time picker plugin
1068
- */
1069
- customTimePickerPlugin?: (config: CustomTimePickerConfig) => Plugin;
1070
- /**
1071
- * Custom time picker plugin
1072
- */
1073
- customDateTimePickerPlugin?: (config: CustomTimePickerConfig) => Plugin;
1074
- /**
1075
- * Use custom time input same as date picker input
1076
- * This is useful when the datepicker is inline and is re-added to the DOM after closing
1077
- * For example using this inside a Popover as content
1078
- */
1079
- useCustomTimeInputForTimePicker?: boolean;
1080
- };
1081
- type CustomTimePickerConfig = {
1082
- minuteStep: number;
1083
- };
1084
-
1085
- declare const DatePicker: (props: DatePickerProps) => React__default.JSX.Element;
1086
-
1087
- /**
1088
- * Type representing the allowed values for form fields
1089
- */
1090
- type FieldValue = string | number | Date | boolean | File | Array<string | number | Date | File>;
1091
- /**
1092
- * Type representing the form values as a partial record of field names to field values
1093
- * @example
1094
- * ```typescript
1095
- * const formState: FormState = {
1096
- * name: 'John Doe',
1097
- * age: 30,
1098
- * dob: new Date('1990-01-01')
1099
- * };
1100
- * ```
1101
- */
1102
- type FormState<T extends FieldValue = FieldValue> = Partial<Record<string, T>>;
1103
- /**
1104
- * Type representing the form errors as a partial record of field names to error messages
1105
- */
1106
- type FormErrors<T extends FormState = FormState> = Partial<Record<keyof T, string>>;
1107
- /**
1108
- * Type representing a validation function for a form field
1109
- * It takes an error setter function and the field value (optional) and returns a boolean indicating if the value is valid
1110
- * @example
1111
- * ```typescript
1112
- * const nameValidator: FieldValidationFunction = (setError, value) => {
1113
- * if (!value) {
1114
- * setError('Name is required');
1115
- * return false;
1116
- * }
1117
- * return true;
1118
- * };
1119
- * ```
1120
- */
1121
- type FieldValidationFunction<T extends FieldValue = FieldValue> = (setError: (message: string) => void, value?: T) => boolean;
1122
- /**
1123
- * Type representing the required fields in a form
1124
- * It's a partial record of field names to a boolean indicating if the field is required
1125
- */
1126
- type RequiredFields<T extends FormState = FormState> = Partial<Record<keyof T, boolean>>;
1127
- /**
1128
- * Type representing the validation functions for each field in a form
1129
- * It's a partial record of field names to validation functions (or undefined)
1130
- * @example
1131
- * ```typescript
1132
- * const nameValidator: FieldValidationFunction = (setError, value) => {
1133
- * if (!value) {
1134
- * setError('Name is required');
1135
- * return false;
1136
- * }
1137
- * return true;
1138
- * };
1139
- * const fieldValidators: FieldValidators = {
1140
- * name: nameValidator,
1141
- * age: undefined,
1142
- * };
1143
- * ```
1144
- */
1145
- type FieldValidators<T extends FormState = FormState> = Partial<Record<keyof T, FieldValidationFunction | undefined>>;
1146
- /**
1147
- * Type representing a function that handles form state changes
1148
- * It takes the new form state and an error setter function and doesn't return anything
1149
- * @example
1150
- * ```typescript
1151
- * const handleFormStateChange: FormStateChangeHandler = (state, setError) => {
1152
- * // Validate form state and set errors
1153
- * if (!state.name) {
1154
- * setError('name', 'Name is required');
1155
- * }
1156
- * };
1157
- * ```
1158
- */
1159
- type FormStateChangeHandler<T extends FormState = FormState> = (state: T, setError: (field: keyof T, errorMessage: string) => void) => void;
1160
- /**
1161
- * Type representing a function that validates the entire form
1162
- * It takes the form values and an error setter function and returns a boolean indicating if the form is valid
1163
- * @example
1164
- * ```typescript
1165
- * const validateForm: FormValidator = (state, setError) => {
1166
- * let isValid = true;
1167
- * if (!state.name) {
1168
- * setError('name', 'Name is required');
1169
- * isValid = false;
1170
- * }
1171
- * if (!state.age || typeof state.age !== 'number') {
1172
- * setError('age', 'Age must be a number');
1173
- * isValid = false;
1174
- * }
1175
- * return isValid;
1176
- * };
1177
- * ```
1178
- */
1179
- type FormValidator<T extends FormState = FormState> = (state: T, setError: (field: keyof T, errorMessage: string) => void) => boolean;
1180
- /**
1181
- * Type representing a function that handles form submission.
1182
- * It takes updated form state and a function to set error messages for specific fields.
1183
- *
1184
- * @template T - The type of the form state, defaulting to `FormState`.
1185
- *
1186
- * @param {T} values - The updated form state values.
1187
- * @param {(field: keyof T, errorMessage: string) => void} setError - A function to set error messages for specific fields.
1188
- *
1189
- * @example
1190
- * ```typescript
1191
- * const handleFormSubmit: FormSubmitHandler = (values, setError) => {
1192
- * // Submit form data
1193
- * console.log(values);
1194
- * };
1195
- * ```
1196
- */
1197
- type FormSubmitHandler<T extends FormState = FormState> = (values: T, setError: (field: keyof T, errorMessage: string) => void) => void;
1198
- type FormProps = Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> & {
1199
- formRef?: Ref<HTMLFormElement>;
1200
- };
1201
- type FormContextValues<T extends FormState = FormState> = {
1202
- formRef?: Ref<HTMLFormElement>;
1203
- formState?: T;
1204
- updateFieldValue: (name: string, value: FieldValue) => void;
1205
- formErrors: FormErrors<T>;
1206
- updateFieldError: (name: keyof T, errorMessage: string) => void;
1207
- onFormSubmit: React__default.FormEventHandler<HTMLFormElement>;
1208
- updateFieldValidators: (name: keyof T, validate?: FieldValidationFunction) => void;
1209
- updateRequiredFields: (name: keyof T, required?: boolean) => void;
1210
- };
1211
- type FormProviderProps<T extends FormState = FormState> = {
1212
- formRef?: Ref<HTMLFormElement>;
1213
- children?: React__default.ReactNode;
1214
- formState?: T;
1215
- onFormStateChange?: FormStateChangeHandler<T>;
1216
- formValidator?: FormValidator<T>;
1217
- onSubmit?: FormSubmitHandler<T>;
1218
- validateOnChange?: boolean;
1219
- };
1220
-
1221
- /**
1222
- * Props for the FormField component.
1223
- */
1224
- type FormFieldProps = HTMLAttributes<HTMLDivElement> & {
1225
- /**
1226
- * The label for the form field
1227
- */
1228
- label: string;
1229
- /**
1230
- * Optional message for the form field
1231
- */
1232
- message?: string;
1233
- /**
1234
- * Info icon for message
1235
- */
1236
- infoIcon?: React.ReactNode;
1237
- /**
1238
- * Optional field for possible error message
1239
- */
1240
- hasMessage?: boolean;
1241
- };
1242
- /**
1243
- * Props for the FormFieldProvider component.
1244
- */
1245
- type FormFieldProviderProps = {
1246
- /**
1247
- * Child components
1248
- */
1249
- children: React.ReactNode;
1250
- /**
1251
- * Name of the form field
1252
- */
1253
- name: string;
1254
- /**
1255
- * Indicates if the field is disabled
1256
- * @default false
1257
- */
1258
- disabled?: boolean;
1259
- /**
1260
- * Indicates if the field is invalid
1261
- * @default false
1262
- */
1263
- invalid?: boolean;
1264
- /**
1265
- * Indicates if the field is required
1266
- * @default false
1267
- */
1268
- required?: boolean;
1269
- /**
1270
- * Validation function for the field
1271
- */
1272
- validate?: FieldValidationFunction;
1273
- /**
1274
- * id attribute to connect label and field of form field
1275
- * note:- this is optional as FormFieldContext will generate an id
1276
- */
1277
- id?: string;
1278
- };
1279
- /**
1280
- * Props for the UseField hook.
1281
- */
1282
- type UseFieldProps<T extends FieldValue = FieldValue> = {
1283
- /**
1284
- * The value of the field
1285
- */
1286
- value?: T;
1287
- /**
1288
- * Indicates if the field is invalid
1289
- * @default false
1290
- */
1291
- invalid?: boolean;
1292
- /**
1293
- * Callback when the field value changes
1294
- */
1295
- onValueChanged?: (value: T) => void;
1296
- /**
1297
- * Indicates if the field is disabled
1298
- * @default false
1299
- */
1300
- disabled?: boolean;
1301
- /**
1302
- * Indicates if the field is required
1303
- * @default false
1304
- */
1305
- required?: boolean;
1306
- /**
1307
- * Default value for the field
1308
- */
1309
- defaultValue?: T;
1310
- };
1311
-
1312
- declare const useField: <T extends FieldValue = FieldValue>(props: UseFieldProps<T>) => {
1313
- fieldValue: T;
1314
- updateFieldValue: (newValue: T) => void;
1315
- disabledField: boolean | undefined;
1316
- requiredField: boolean | undefined;
1317
- invalidField: boolean | undefined;
1318
- formFieldId: string | undefined;
1319
- name: string | undefined;
1320
- };
1321
-
1322
- declare const FormField: (props: FormFieldProviderProps & FormFieldProps) => React__default.JSX.Element;
1323
-
1324
- type GridProps = HTMLAttributes<HTMLDivElement> & {
1325
- columns?: number;
1326
- rows?: number;
1327
- };
1328
- type GridItemProps = HTMLAttributes<HTMLDivElement> & {
1329
- columnSpan?: number;
1330
- rowSpan?: number;
1331
- };
1332
-
1333
- declare const Grid: (props: GridProps) => React__default.JSX.Element;
1334
-
1335
- declare const GridItem: (props: GridItemProps) => React$1.JSX.Element;
1336
-
1337
- type GridListProps<T extends ListItemType> = Omit<ListProps<T>, 'style'> & {
1338
- columns?: number;
1339
- };
1340
-
1341
- declare const GridList: <T extends ListItemType>(props: GridListProps<T>) => React__default.JSX.Element;
1342
-
1343
- /**
1344
- * Enum defining the possible sizes for the Modal component.
1345
- */
1346
- type ModalSizeEnum = 'Small' | 'Medium' | 'Large';
1347
- /**
1348
- * Props for the Modal component.
1349
- */
1350
- type ModalProps = {
1351
- /**
1352
- * The content that will be rendered inside the modal.
1353
- */
1354
- children: ReactNode;
1355
- /**
1356
- * Optional size of the modal. Defaults to 'Medium'.
1357
- * @default "Medium"
1358
- */
1359
- size?: ModalSizeEnum;
1360
- /**
1361
- * Callback function invoked when the modal is hidden.
1362
- */
1363
- onHide?: () => void;
1364
- /**
1365
- * Controls whether the modal is visible (`true`) or hidden (`false`).
1366
- * @default false
1367
- */
1368
- show?: boolean;
1369
- /**
1370
- * The content to be rendered in the header of the modal.
1371
- */
1372
- header?: ReactNode;
1373
- /**
1374
- * The content to be rendered in the footer of the modal.
1375
- */
1376
- footer?: ReactNode;
1377
- /**
1378
- * Custom JSX element to render as the backdrop for the modal.
1379
- */
1380
- renderBackdrop?: ReactNode;
1381
- /**
1382
- * Determines whether a backdrop should be displayed behind the modal.
1383
- * @default true
1384
- */
1385
- backdrop?: boolean;
1386
- /**
1387
- * Disables the ability to dismiss the modal by clicking on the backdrop.
1388
- * @default false
1389
- */
1390
- disableBackdropDismiss?: boolean;
1391
- /**
1392
- * Additional CSS class names to apply to the modal.
1393
- */
1394
- className?: string;
1395
- };
1396
-
1397
- /**
1398
- * Modal component for displaying a dialog window.
1399
- */
1400
- declare const Modal: (props: ModalProps) => React__default.JSX.Element;
1401
-
1402
- /**
1403
- * Defines the type of modal footer layout.
1404
- * @default "1Button"
1405
- */
1406
- type ModalFooterTypeEnum = "1Button" | "2Buttons";
1407
- /**
1408
- * Props for the ModalFooter component.
1409
- */
1410
- type ModalFooterProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
1411
- /**
1412
- * Determines whether the footer contains one or two buttons.
1413
- * @default "1Button"
1414
- */
1415
- type?: ModalFooterTypeEnum;
1416
- /**
1417
- * The primary button element.
1418
- */
1419
- primaryButton?: ReactNode;
1420
- /**
1421
- * The secondary button element (only applicable when type is "2 buttons").
1422
- */
1423
- secondaryButton?: ReactNode;
1424
- /**
1425
- * Additional class for styling.
1426
- */
1427
- className?: string;
1428
- };
1429
-
1430
- /**
1431
- * Modal Footer component for displaying footer actions in a modal.
1432
- */
1433
- declare const ModalFooter: React__default.FC<ModalFooterProps>;
1434
-
1435
- /**
1436
- * Props for the ModalHeader component.
1437
- */
1438
- type ModalHeaderProps = {
1439
- /**
1440
- * The title to be displayed in the header.
1441
- */
1442
- title?: string;
1443
- /**
1444
- * An optional icon button to display in the header.
1445
- */
1446
- iconButton?: ReactNode;
1447
- /**
1448
- * Additional CSS class names to apply to the modal header.
1449
- */
1450
- className?: string;
1451
- };
1452
-
1453
- /**
1454
- * Modal Header component definition.
1455
- */
1456
- declare const ModalHeader: (props: ModalHeaderProps) => React__default.JSX.Element;
1457
-
1458
- type NavProps = HTMLAttributes<HTMLElement> & {};
1459
-
1460
- declare const Nav: (props: NavProps) => React__default.JSX.Element;
1461
-
1462
- type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
1463
-
1464
- declare const NavItem: (props: NavItemProps) => React__default.JSX.Element;
1465
-
1466
- type PaginationProps = {
1467
- className?: string;
1468
- currentPage?: number;
1469
- totalPages?: number;
1470
- updateCurrentPage?: (page: number) => void;
1471
- previousPageIcon?: React.ReactNode;
1472
- nextPageIcon?: React.ReactNode;
1473
- };
1474
-
1475
- declare const Pagination: (props: PaginationProps) => React$1.JSX.Element;
1476
-
1477
- type PaginationNumberFieldProps = {
1478
- className?: string;
1479
- page?: number;
1480
- totalPages?: number;
1481
- onPageChanged?: (page: number) => void;
1482
- };
1483
-
1484
- declare const PaginationNumberField: (props: PaginationNumberFieldProps) => React$1.JSX.Element;
1485
-
1486
- /**
1487
- * Enum for the action type of the Popover.
1488
- */
1489
- type ActionType = 'Click' | 'Hover' | 'DoubleClick';
1490
- /**
1491
- * Enum for the overlay direction of the Popover.
1492
- */
1493
- type OverlayDirectionEnum = 'Up' | 'Down' | 'Right' | 'Left';
1494
- /**
1495
- * Enum for the overlay alignment of the Popover.
1496
- */
1497
- type OverlayAlignEnum = 'Start' | 'End' | 'Center';
1498
- /**
1499
- * Props for the content of the Popover.
1500
- */
1501
- type ContentProps = {
1502
- width?: CSSProperties['width'] | 'match-trigger';
1503
- minWidth?: CSSProperties['minWidth'] | 'match-trigger';
1504
- };
1505
- /**
1506
- * Props for the Popover component.
1507
- */
1508
- type PopoverProps = {
1509
- /**
1510
- * Ref or Element for the Popover component to render in.
1511
- */
1512
- container?: HTMLElement | React__default.RefObject<HTMLElement> | null;
1513
- /**
1514
- * The content to display in the Popover.
1515
- */
1516
- content: ReactNode;
1517
- /**
1518
- * The target element for the Popover.
1519
- */
1520
- target: ReactNode;
1521
- /**
1522
- * Offset for positioning the Popover.
1523
- */
1524
- offset?: Offset;
1525
- /**
1526
- * Function to handle hiding the Popover.
1527
- */
1528
- onHide?: () => void;
1529
- /**
1530
- * Function to handle hiding the Popover.
1531
- */
1532
- onOpen?: () => void;
1533
- /**
1534
- * Direction in which the Popover should open.
1535
- * @default 'Down'
1536
- */
1537
- direction?: OverlayDirectionEnum;
1538
- /**
1539
- * Indicates if Popover should hide on click away.
1540
- * @default true
1541
- */
1542
- hideOnClickAway?: boolean;
1543
- /**
1544
- * Indicates if content should stay on item click.
1545
- * @default false
1546
- */
1547
- keepContentOnItemClick?: boolean;
1548
- /**
1549
- * Indicates if the Popover is shown.
1550
- * @default false
1551
- */
1552
- show?: boolean;
1553
- /**
1554
- * Action type to trigger the Popover.
1555
- * @default 'Click'
1556
- */
1557
- action?: ActionType;
1558
- /**
1559
- * Alignment of the Popover.
1560
- * @default 'Center'
1561
- */
1562
- alignment?: OverlayAlignEnum;
1563
- /**
1564
- * Props for the content of the Popover.
1565
- */
1566
- contentProps?: ContentProps;
1567
- /**
1568
- * Indicates if the Popover is disabled.
1569
- * @default false
1570
- */
1571
- disabled?: boolean;
1572
- /**
1573
- * Indicates if content should change placement to stay on the screen.
1574
- * @default false
1575
- */
1576
- flip?: boolean;
1577
- /**
1578
- * Additional class for styling.
1579
- */
1580
- className?: string;
1581
- /**
1582
- * Additional class for overlay container styling.
1583
- */
1584
- overlayClassName?: string;
1585
- /**
1586
- * Position of the Popover.
1587
- * @default 'absolute'
1588
- */
1589
- contentPosition?: 'absolute' | 'fixed';
1590
- };
1591
- type PopoverHandle = {
1592
- close: () => void;
1593
- open: () => void;
1594
- };
1595
-
1596
- /**
1597
- * Popover component that displays a floating content element in relation to a target element.
1598
- * It can be triggered via different user actions like 'Click' or 'Hover'.
1599
- */
1600
- declare const Popover: React__default.ForwardRefExoticComponent<PopoverProps & React__default.RefAttributes<PopoverHandle>>;
1601
-
1602
- type ProgressBarOrientation = "Horizontal" | "Vertical";
1603
- type ProgressBarLabelType = "Percentage" | "Text";
1604
- type ProgressBarProps = {
1605
- /**
1606
- * Current progress value
1607
- * @default 0
1608
- */
1609
- value: number;
1610
- /**
1611
- * Minimum value of the progress bar
1612
- * @default 0
1613
- */
1614
- min?: number;
1615
- /**
1616
- * Maximum value of the progress bar
1617
- * @default 100
1618
- */
1619
- max?: number;
1620
- /**
1621
- * Defines the orientation of the progress bar
1622
- * @default "horizontal"
1623
- */
1624
- orientation?: ProgressBarOrientation;
1625
- /**
1626
- * Determines if and how the label is displayed
1627
- */
1628
- showLabel?: ProgressBarLabelType;
1629
- /**
1630
- * Custom label to be displayed when `showLabel` is set to "Text"
1631
- */
1632
- label?: React.ReactNode;
1633
- /**
1634
- * Additional class for styling
1635
- */
1636
- className?: string;
1637
- };
1638
-
1639
- declare const ProgressBar: React__default.FC<ProgressBarProps>;
1640
-
1641
- /**
1642
- * Props for the Option component, extending LiHTMLAttributes<HTMLLIElement>.
1643
- * Represents an option within a Select component.
1644
- */
1645
- type OptionProps = LiHTMLAttributes<HTMLLIElement> & {
1646
- /**
1647
- * Value associated with the option.
1648
- */
1649
- value: string | number;
1650
- /**
1651
- * Indicates if the option is disabled.
1652
- * @default false
1653
- */
1654
- disabled?: boolean;
1655
- /**
1656
- * Icon to be displayed before the option content.
1657
- */
1658
- leadingIcon?: ReactNode;
1659
- /**
1660
- * Icon to be displayed after the option content.
1661
- */
1662
- trailingIcon?: ReactNode;
1663
- /**
1664
- * Additional CSS class names for custom styling.
1665
- */
1666
- className?: string;
1667
- /**
1668
- * Children elements or text content of the option.
1669
- */
1670
- children?: ReactNode;
1671
- };
1672
-
1673
- /**
1674
- * Functional component representing an option within a select dropdown.
1675
- *
1676
- * @param props - Props for configuring the Option component.
1677
- * @returns Element representing the option.
1678
- */
1679
- declare const Option: (props: OptionProps) => React__default.JSX.Element;
1680
-
1681
- /**
1682
- * Represents the context provided by the Select component.
1683
- */
1684
- type SelectContextType = {
1685
- /**
1686
- * The currently selected value in the Select component.
1687
- */
1688
- selectedValue: FieldValue;
1689
- /**
1690
- * Function to update the selected value.
1691
- * @param value - The new value to select, either a string or number.
1692
- */
1693
- updateSelectedValue: (value: string | number) => void;
1694
- /**
1695
- * Function to reset the selected value to its default state.
1696
- */
1697
- resetSelectedValue: () => void;
1698
- /**
1699
- * Indicates whether the field is in an invalid state.
1700
- */
1701
- invalidField?: boolean;
1702
- /**
1703
- * Indicates whether the field is disabled.
1704
- */
1705
- disabledField?: boolean;
1706
- /**
1707
- * id to use as htmlFor for label, which will be fetched from FormFieldContext
1708
- */
1709
- formFieldId: string;
1710
- };
1711
- /**
1712
- * Props for the SelectProvider component, which manages state and provides context for Select.
1713
- */
1714
- type SelectProviderProps = {
1715
- /**
1716
- * Child elements to be rendered within the SelectProvider.
1717
- */
1718
- children: ReactNode;
1719
- /**
1720
- * Currently selected value (if controlled).
1721
- */
1722
- value?: FieldValue;
1723
- /**
1724
- * Indicates if multiple options can be selected.
1725
- * @default false
1726
- */
1727
- multiple?: boolean;
1728
- /**
1729
- * Default selected value (if uncontrolled).
1730
- */
1731
- defaultValue?: FieldValue;
1732
- /**
1733
- * Indicates whether the Select is disabled.
1734
- * @default false
1735
- */
1736
- disabled?: boolean;
1737
- /**
1738
- * Callback function invoked when the selected value changes.
1739
- * @param event - Optional event containing the new field value.
1740
- */
1741
- onValueChanged?: (event?: FieldValue) => void;
1742
- /**
1743
- * Indicates whether the selected field is hasDefaultOption or not.
1744
- * @default false
1745
- */
1746
- hasDefaultOption?: boolean;
1747
- };
1748
- /**
1749
- * Enum representing different states of the Select component.
1750
- */
1751
- type SelectStateEnum = 'Default' | 'Error';
1752
- /**
1753
- * Props for the SelectView component, defining its visual appearance and behavior.
1754
- */
1755
- type SelectViewProps = Omit<HTMLAttributes<HTMLElement>, 'style' | 'children'> & {
1756
- /**
1757
- * Options to be rendered within the Select component.
1758
- */
1759
- children: React.ReactElement<OptionProps> | React.ReactElement<OptionProps>[];
1760
- /**
1761
- * Placeholder text displayed when no option is selected.
1762
- */
1763
- placeholder?: string;
1764
- /**
1765
- * Determines if the dropdown menu is initially open.
1766
- * @default false
1767
- */
1768
- defaultOpen?: boolean;
1769
- /**
1770
- * Icon displayed before the select input.
1771
- */
1772
- leadingIcon?: ReactNode;
1773
- /**
1774
- * Icon displayed for the expand sign.
1775
- */
1776
- expandIcon?: ReactNode;
1777
- /**
1778
- * Indicates whether the dropdown menu is currently open.
1779
- * @default false
1780
- */
1781
- open?: boolean;
1782
- /**
1783
- * Current state of the Select component.
1784
- * @default 'Default'
1785
- */
1786
- state?: SelectStateEnum;
1787
- /**
1788
- * Additional props for the dropdown menu.
1789
- */
1790
- menuProps?: ContentProps;
1791
- /**
1792
- * Indicates whether the selected field is hasDefaultOption or not.
1793
- * @default false
1794
- */
1795
- hasDefaultOption?: boolean;
1796
- /**
1797
- * Indicates if multiple options can be selected.
1798
- * @default false
1799
- */
1800
- multiple?: boolean;
1801
- /**
1802
- * Additional CSS classes for customization.
1803
- */
1804
- className?: string;
1805
- /**
1806
- * The component used to render each item in the list.
1807
- */
1808
- selectedView?: React.FC<any>;
1809
- };
1810
- /**
1811
- * Props for the Select component, combining provider and view props.
1812
- */
1813
- type SelectProps = Omit<SelectProviderProps, 'children'> & SelectViewProps;
1814
-
1815
- /**
1816
- * Custom hook to use the SelectContext values.
1817
- * Throws an error if used outside of a SelectProvider.
1818
- *
1819
- * @throws Error if used outside of SelectProvider.
1820
- * @returns Context values of type SelectContextType.
1821
- */
1822
- declare const useSelectContext: () => SelectContextType;
1823
- /**
1824
- * Provider component for managing state and providing context to Select components.
1825
- * Manages the selected value state and provides methods to update or reset it.
1826
- *
1827
- * @param props - Props for configuring the SelectProvider.
1828
- * @returns JSX element that provides context to its children.
1829
- */
1830
- declare const SelectProvider: ({ children, value, defaultValue, multiple, disabled, onValueChanged, }: SelectProviderProps) => React__default.JSX.Element;
1831
-
1832
- /**
1833
- * Select component that wraps SelectComponent with SelectProvider.
1834
- * Provides state management and context to SelectComponent.
1835
- *
1836
- * @param props - Props for configuring the Select component.
1837
- * @returns JSX element that renders the SelectComponent wrapped with SelectProvider.
1838
- */
1839
- declare const Select: (props: SelectProps) => JSX.Element;
1840
-
1841
- /**
1842
- * Dropzone component props
1843
- * @param initial React.ReactNode - The initial state of the dropzone.
1844
- * @param uploading React.ReactNode - The uploading state of the dropzone.
1845
- * @param uploaded React.ReactNode - The uploaded state of the dropzone.
1846
- * @param accept { [key: string]: readonly string[] } - The accepted file types.
1847
- * @param maxSize number - The maximum size of the file in bytes.
1848
- * @param maxFiles number - The maximum number of files to upload.
1849
- * @param onFilesUpload (file: File) => void - callback when files are selected
1850
- * @param onFilesReset () => void - callback when files are reset
1851
- */
1852
- type DropzoneProps = {
1853
- /**
1854
- * The initial state of the dropzone.
1855
- */
1856
- initial?: React.ReactNode;
1857
- /**
1858
- * The uploading state of the dropzone.
1859
- */
1860
- uploading?: React.ReactNode;
1861
- /**
1862
- * The uploaded state of the dropzone.
1863
- */
1864
- uploaded?: React.ReactNode;
1865
- /**
1866
- * The accepted file types based on mime type.
1867
- * @example
1868
- * accept={{
1869
- * 'image/*': ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.ico', '.webp'],
1870
- * }}
1871
- */
1872
- accept?: {
1873
- [key: string]: readonly string[];
1874
- };
1875
- /**
1876
- * The maximum size of the file in bytes.
1877
- */
1878
- maxSize?: number;
1879
- /**
1880
- * The maximum number of files to upload.
1881
- * @default 1
1882
- */
1883
- maxFiles?: number;
1884
- disabled?: boolean;
1885
- required?: boolean;
1886
- /**
1887
- * callback when files are selected
1888
- */
1889
- onFilesSelected?: (files: File[]) => Promise<void> | void;
1890
- /**
1891
- * callback when files are reset
1892
- */
1893
- onFilesReset?: () => void;
1894
- };
1895
- /**
1896
- * Dropzone context type
1897
- * @param status 'initial' | 'uploading' | 'uploaded' - The status of the dropzone.
1898
- * @param file File | null - The file of the dropzone.
1899
- * @param selectFile () => void - The function to call when the file is selected.
1900
- * @param resetUpload () => void - The function to call when the file is reset.
1901
- */
1902
- type DropzoneContextType = {
1903
- /**
1904
- * The status of the dropzone.
1905
- */
1906
- status: 'initial' | 'uploading' | 'uploaded';
1907
- /**
1908
- * The files of the dropzone.
1909
- */
1910
- files: File[];
1911
- /**
1912
- * The accepted file types based on mime type.
1913
- * @example
1914
- * accept={{
1915
- * 'image/*': ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.ico', '.webp'],
1916
- * }}
1917
- */
1918
- accept: {
1919
- [key: string]: readonly string[];
1920
- };
1921
- /**
1922
- * The function to call to open the file dialog.
1923
- */
1924
- selectFiles: () => void;
1925
- /**
1926
- * The function to call to reset the files.
1927
- */
1928
- resetFiles: () => void;
1929
- children?: ReactNode;
1930
- };
1931
- type DropzoneTriggerProps = ButtonProps;
1932
- type DropzoneSupportedFormatsProps = TextProps;
1933
- type DropzoneClearProps = IconButtonProps;
1934
- type DropzoneFilenameProps = TextProps & {
1935
- /**
1936
- * The index of the file in the files array.
1937
- * @default 0
1938
- */
1939
- fileIndex?: number;
1940
- };
1941
-
1942
- declare const Dropzone: (props: DropzoneProps) => React__default.JSX.Element;
1943
- declare const useDropzoneContext: () => DropzoneContextType;
1944
-
1945
- declare const DropzoneClear: (props: DropzoneClearProps) => React__default.JSX.Element;
1946
-
1947
- declare const DropzoneFilename: ({ children, fileIndex, ...props }: DropzoneFilenameProps) => React__default.JSX.Element;
1948
-
1949
- declare const DropzoneSupportedFormats: (props: DropzoneSupportedFormatsProps) => React__default.JSX.Element;
1950
-
1951
- declare const DropzoneTrigger: (props: DropzoneTriggerProps) => React__default.JSX.Element;
1952
-
1953
- type DropzoneContentTypeEnum = 'Empty' | 'Uploaded' | 'Loading';
1954
- type DropzoneContentProps = {
1955
- className?: string;
1956
- type: DropzoneContentTypeEnum;
1957
- };
1958
-
1959
- declare const DropzoneContent: (props: DropzoneContentProps) => React$1.JSX.Element;
1960
-
1961
- declare const Form: <T extends FormState>(props: FormProviderProps<T> & FormProps) => React__default.JSX.Element;
1962
-
1963
- type TableProps = TableHTMLAttributes<HTMLTableElement> & {
1964
- /**
1965
- * Whether the table header should stick to the top when scrolling
1966
- */
1967
- stickyHeader?: boolean;
1968
- };
1969
-
1970
- declare const Table: (props: TableProps) => React__default.JSX.Element;
1971
-
1972
- type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
1973
-
1974
- declare const TableRow: (props: TableRowProps) => React__default.JSX.Element;
1975
-
1976
- type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1977
-
1978
- declare const TableCell: (props: TableCellProps) => React__default.JSX.Element;
1979
-
1980
- type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
1981
-
1982
- declare const TableHeader: (props: TableHeaderProps) => React__default.JSX.Element;
1983
-
1984
- type TableHeaderCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1985
-
1986
- declare const TableHeaderCell: (props: TableHeaderCellProps) => React__default.JSX.Element;
1987
-
1988
- type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
1989
-
1990
- declare const TableBody: (props: TableBodyProps) => React__default.JSX.Element;
1991
-
1992
- type TabsStyleEnum = 'Filled' | 'Underlined';
1993
- type TabsTypeEnum = 'Horizontal' | 'Vertical';
1994
- type TabContextType = {
1995
- /**
1996
- * The tab item style to apply.
1997
- * @default Filled
1998
- */
1999
- style: TabsStyleEnum;
2000
- /**
2001
- * The currently selected tab.
2002
- */
2003
- currentTab: string | number;
2004
- /**
2005
- * Function to update the currently selected tab.
2006
- * @param tabValue - The value of the tab to be set.
2007
- */
2008
- updateCurrentTab: (tabValue: string | number) => void;
2009
- };
2010
- type TabProviderProps = {
2011
- /**
2012
- * The content to be displayed within the tab provider.
2013
- */
2014
- children: React.ReactNode;
2015
- /**
2016
- * The value of the tab.
2017
- */
2018
- value?: number | string;
2019
- /**
2020
- * The tab item style to apply.
2021
- * @default Filled
2022
- */
2023
- style?: TabsStyleEnum;
2024
- /**
2025
- * Callback function when a tab is clicked.
2026
- * @param value - The value of the clicked tab.
2027
- */
2028
- onClick?: (value: string | number) => void;
2029
- };
2030
- type TabsViewProps = {
2031
- /**
2032
- * The content to be displayed within the tabs.
2033
- */
2034
- children: React.ReactNode;
2035
- /**
2036
- * Additional class for styling.
2037
- */
2038
- className?: string;
2039
- /**
2040
- * The tab item style to apply.
2041
- * @default Filled
2042
- */
2043
- style?: TabsStyleEnum;
2044
- /**
2045
- * The tab item type to apply.
2046
- * @default Horizontal
2047
- */
2048
- type?: TabsTypeEnum;
2049
- };
2050
- type TabsProps = TabProviderProps & TabsViewProps;
2051
-
2052
- /**
2053
- * Custom hook to use the TabContext
2054
- * Throws an error if used outside of a TabProvider
2055
- */
2056
- declare const useTab: () => TabContextType;
2057
-
2058
- declare const Tabs: (props: TabsProps) => React__default.JSX.Element;
2059
-
2060
- type TabItemStyleEnum = 'Filled' | 'Underlined';
2061
- type TabItemProps = Omit<ButtonProps, 'actionType' | 'appearance' | 'size' | 'style' | 'type'> & {
2062
- /**
2063
- * The tabs value.
2064
- * @remarks
2065
- * This is used for determining which tab is selected.
2066
- * The value from TabContent will be compared to the value from TabItem.
2067
- * @example
2068
- * 1
2069
- * "One"
2070
- */
2071
- value: number | string;
2072
- /**
2073
- * The default tab.
2074
- * @remarks
2075
- * True means that this tab will be displayed initially
2076
- */
2077
- defaultTab?: boolean;
2078
- /**
2079
- * The tab item style to apply.
2080
- * @default Filled
2081
- */
2082
- style?: TabItemStyleEnum;
2083
- };
2084
-
2085
- declare const TabItem: (props: TabItemProps) => React__default.JSX.Element;
2086
-
2087
- interface TabContentProps {
2088
- /**
2089
- * The tab contents value.
2090
- * @remarks
2091
- * This is used for determining which tab is selected.
2092
- * The value from TabContent will be compared to the value from TabItem.
2093
- * @example
2094
- * 1
2095
- * "One"
2096
- */
2097
- value: number | string;
2098
- /**
2099
- * The contents of the tab.
2100
- */
2101
- children: React.ReactNode;
2102
- /**
2103
- * The classname applied to the tab content.
2104
- */
2105
- className?: string;
2106
- }
2107
-
2108
- declare const TabContent: (props: TabContentProps) => React__default.JSX.Element;
2109
-
2110
- type ThemeContextType = {
2111
- theme: string;
2112
- updateTheme: (theme: string) => void;
2113
- };
2114
- type ThemeProviderProps = {
2115
- theme?: string;
2116
- children?: ReactNode;
2117
- };
2118
-
2119
- declare const ThemeContext: React__default.Context<ThemeContextType>;
2120
- declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
2121
-
2122
- /**
2123
- * Props for the NotificationContainer component.
2124
- */
2125
- type NotificationContainerProps = {
2126
- className?: string;
2127
- };
2128
-
2129
- export { Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Checkbox, CheckboxItem, type CheckboxItemProps, type CheckboxLabelAlignmentEnum, type CheckboxProps, type CheckboxSizeEnum, Chip, type ChipProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, DatePicker, type DatePickerProps, Dropzone, DropzoneClear, DropzoneContent, type DropzoneContentProps, type DropzoneContentTypeEnum, DropzoneFilename as DropzonePreview, type DropzoneProps, DropzoneSupportedFormats as DropzoneReject, DropzoneTrigger as DropzoneRoot, type FieldValidationFunction, type FieldValidators, type FieldValue, Form, type FormContextValues, type FormErrors, FormField, type FormFieldProps, type FormProps, type FormProviderProps, type FormState, type FormStateChangeHandler, type FormSubmitHandler, type FormValidator, Grid, GridItem, type GridItemProps, GridList, type GridListProps, type GridProps, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, ListItem, type ListItemProps, type ListProps, Modal, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type NotificationContainerProps, Option, type OptionProps, type OverlayDirectionEnum, Pagination, PaginationNumberField, type PaginationNumberFieldProps, type PaginationProps, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Select, type SelectProps, SelectProvider, Slider, type SliderProps, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Text, TextArea, type TextAreaProps, type TextDecorationEnum, type TextProps, type TextTypeEnum, type TextWeightEnum, ThemeContext, type ThemeContextType, ThemeProvider, type ThemeProviderProps, Toggle, ToggleButton, type ToggleButtonProps, useDropzoneContext, useField, useSelectContext, useTab };