@delightui/components 0.1.43 → 0.1.45

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 (46) 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/Accordion/Accordion.types.d.ts +6 -0
  15. package/dist/cjs/components/molecules/ChipInput/ChipInput.d.ts +2 -2
  16. package/dist/cjs/components/molecules/FormField/FormField.types.d.ts +10 -1
  17. package/dist/cjs/components/molecules/FormField/index.d.ts +3 -2
  18. package/dist/cjs/components/molecules/FormField/useField.d.ts +1 -0
  19. package/dist/cjs/components/molecules/ProgressBar/ProgressBar.types.d.ts +0 -1
  20. package/dist/cjs/library.css +6008 -1642
  21. package/dist/cjs/library.js +3 -3
  22. package/dist/cjs/library.js.map +1 -1
  23. package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +1 -0
  24. package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +5 -0
  25. package/dist/esm/components/atoms/Input/Input.d.ts +1 -0
  26. package/dist/esm/components/atoms/Input/Input.types.d.ts +5 -0
  27. package/dist/esm/components/atoms/SelectListItem/SelectListItem.d.ts +4 -0
  28. package/dist/esm/components/atoms/SelectListItem/SelectListItem.types.d.ts +27 -0
  29. package/dist/esm/components/atoms/SelectListItem/index.d.ts +4 -0
  30. package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +0 -6
  31. package/dist/esm/components/atoms/Toggle/index.d.ts +1 -0
  32. package/dist/esm/components/atoms/Tooltip/Tooltip.d.ts +4 -0
  33. package/dist/esm/components/atoms/Tooltip/Tooltip.types.d.ts +59 -0
  34. package/dist/esm/components/atoms/Tooltip/index.d.ts +4 -0
  35. package/dist/esm/components/atoms/index.d.ts +4 -0
  36. package/dist/esm/components/molecules/Accordion/Accordion.types.d.ts +6 -0
  37. package/dist/esm/components/molecules/ChipInput/ChipInput.d.ts +2 -2
  38. package/dist/esm/components/molecules/FormField/FormField.types.d.ts +10 -1
  39. package/dist/esm/components/molecules/FormField/index.d.ts +3 -2
  40. package/dist/esm/components/molecules/FormField/useField.d.ts +1 -0
  41. package/dist/esm/components/molecules/ProgressBar/ProgressBar.types.d.ts +0 -1
  42. package/dist/esm/library.css +6008 -1642
  43. package/dist/esm/library.js +3 -3
  44. package/dist/esm/library.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/index.d.ts +0 -2122
package/dist/index.d.ts DELETED
@@ -1,2122 +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 AccordionSummaryProps = {
692
- children: ReactNode;
693
- className?: string;
694
- /**
695
- * Custom expand/collapse icon element to override the default icon.
696
- * It will rotate 90 degrees clockwise when the accordion is expanded.
697
- */
698
- expandIcon?: ReactNode;
699
- };
700
- type AccordionDetailsProps = {
701
- /**
702
- * The content to be displayed in the accordion details section.
703
- */
704
- children: ReactNode;
705
- /**
706
- * Optional CSS class name for custom styling.
707
- */
708
- className?: string;
709
- };
710
- type AccordionProps = {
711
- children: ReactNode;
712
- className?: string;
713
- /**
714
- * Whether the accordion is expanded by default.
715
- * @default false
716
- */
717
- defaultExpanded?: boolean;
718
- /**
719
- * Controls the expanded state when using controlled mode.
720
- * Use this prop along with onChange for controlled behavior.
721
- */
722
- expanded?: boolean;
723
- /**
724
- * Callback function when the accordion is expanded/collapsed.
725
- * @param isOpen - The new expanded state of the accordion.
726
- */
727
- onChange?: (isOpen: boolean) => void;
728
- /**
729
- * Unique identifier for the accordion.
730
- * This is used to identify the accordion in the group.
731
- */
732
- name?: string;
733
- };
734
-
735
- declare const AccordionSummary: (props: AccordionSummaryProps) => React__default.JSX.Element;
736
- declare const AccordionDetails: (props: AccordionDetailsProps) => React__default.JSX.Element;
737
- declare const Accordion: (props: AccordionProps) => React__default.JSX.Element;
738
-
739
- type AccordionGroupProps = {
740
- children: ReactNode;
741
- className?: string;
742
- /**
743
- * Unique identifier for the accordion group.
744
- * This will be passed to the accordions as a prop.
745
- */
746
- name?: string;
747
- };
748
-
749
- declare const AccordionGroup: (props: AccordionGroupProps) => React__default.JSX.Element;
750
-
751
- type ActionCardProps = HTMLAttributes<HTMLDivElement> & Omit<LinkProps, 'to'> & {
752
- /**
753
- * The content to be displayed within the action card.
754
- */
755
- children: ReactNode;
756
- /**
757
- * Specifies if the action card is disabled.
758
- * @default false
759
- */
760
- disabled?: boolean;
761
- /**
762
- * Additional class for styling.
763
- */
764
- className?: string;
765
- /**
766
- * The destination URL or path for the navigation link.
767
- * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
768
- * Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
769
- *
770
- * @example
771
- * // Internal link
772
- * <NavLink to="/home">Home</NavLink>
773
- *
774
- * // External link
775
- * <NavLink to="https://www.example.com">External</NavLink>
776
- */
777
- to?: string | -1;
778
- };
779
-
780
- /**
781
- * ActionCard component definition.
782
- */
783
- declare const ActionCard: (props: ActionCardProps) => React__default.JSX.Element;
784
-
785
- interface BreadcrumbsProps {
786
- /**
787
- * The divider element to separate breadcrumb items.
788
- * Can be a string, icon, or custom React node.
789
- */
790
- divider?: ReactNode;
791
- /**
792
- * Additional classes for custom styling.
793
- */
794
- className?: string;
795
- /**
796
- * The breadcrumb items to be displayed.
797
- */
798
- children: ReactNode;
799
- }
800
-
801
- declare const Breadcrumbs: (props: BreadcrumbsProps) => React__default.JSX.Element;
802
-
803
- type NavLinkTypeEnum = 'Fill' | 'Underline';
804
- type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'leadingIcon' | 'trailingIcon'> & {
805
- /**
806
- * The destination URL or path for the navigation link.
807
- * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
808
- * Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
809
- *
810
- * @example
811
- * // Internal link
812
- * <NavLink to="/home">Home</NavLink>
813
- *
814
- * // External link
815
- * <NavLink to="https://www.example.com">External</NavLink>
816
- */
817
- to: string | -1;
818
- /**
819
- * The type of nav link to render.
820
- * @default 'Fill'
821
- */
822
- type?: NavLinkTypeEnum | ButtonTypeEnum;
823
- /**
824
- * provide a way to override the styling
825
- */
826
- 'component-variant'?: string;
827
- };
828
-
829
- declare const NavLink: (props: NavLinkProps) => React__default.JSX.Element;
830
-
831
- interface BreadcrumbProps extends Omit<NavLinkProps, 'type'> {
832
- /**
833
- * Flag that defines the breadcrumb state.
834
- * @default false
835
- */
836
- selected?: boolean;
837
- /**
838
- * Defines the button type used for the breadcrumb link.
839
- */
840
- navLinkType?: ButtonTypeEnum;
841
- }
842
-
843
- declare const Breadcrumb: (props: BreadcrumbProps) => React__default.JSX.Element;
844
-
845
- /**
846
- * Enum for the alignment of the button-group.
847
- */
848
- type ButtonGroupAlignEnum = 'Horizontal' | 'Vertical';
849
- /**
850
- * Enum for the type of the button-group.
851
- */
852
- type ButtonGroupTypeEnum = 'Outlined' | 'Ghost';
853
- type ButtonGroupProps = {
854
- /**
855
- * The alignment of the button-group.
856
- * @default 'Horizontal'
857
- */
858
- align?: ButtonGroupAlignEnum;
859
- /**
860
- * Type of the button-group.
861
- * @default 'Filled'
862
- */
863
- type?: ButtonGroupTypeEnum;
864
- /**
865
- * The content to be displayed within the ButtonGroup.
866
- */
867
- children: ReactNode | ReactNode[];
868
- /**
869
- * Additional class for styling.
870
- */
871
- className?: string;
872
- };
873
-
874
- /**
875
- * ButtonGroup component definition.
876
- */
877
- declare const ButtonGroup: (props: ButtonGroupProps) => React__default.JSX.Element;
878
-
879
- type CardProps = {
880
- /**
881
- * The content to be displayed within the card.
882
- */
883
- children: ReactNode;
884
- /**
885
- * Additional class for styling.
886
- */
887
- className?: string;
888
- };
889
-
890
- /**
891
- * Card component definition.
892
- */
893
- declare const Card: (props: CardProps) => React__default.JSX.Element;
894
-
895
- /**
896
- * Enum for the alignment of the list.
897
- *
898
- * @typedef {'Horizontal' | 'Vertical'} ListAlignEnum
899
- */
900
- type ListAlignEnum = 'Horizontal' | 'Vertical';
901
- /**
902
- * Represents a generic list item.
903
- *
904
- * @property {string | number} [id] - A unique identifier for the list item. This is optional and can be auto-generated if not provided.
905
- * @property {string} [itemClassName] - Additional class for styling the list item.
906
- * @property {React.CSSProperties} [itemStyle] - Additional styles for the list item.
907
- */
908
- type ListItemType = object & {
909
- id?: string | number;
910
- itemClassName?: string;
911
- itemStyle?: React.CSSProperties;
912
- };
913
- /**
914
- * Props for the list wrapper component.
915
- *
916
- * @template T - The type of the list items.
917
- * @property {T[]} [data] - The data to be rendered in the list.
918
- * @property {React.FC<any>} component - The React functional component used to render each list item.
919
- * @property {(item: T, index: number) => string | number} [keyExtractor] - A function to extract unique keys for each item.
920
- * @property {'Horizontal' | 'Vertical'} [align='Vertical'] - The alignment of the list. Defaults to `'Vertical'`.
921
- * @property {boolean} [wrap] - Whether the list content should wrap.
922
- * @property {string} [className] - Additional class for styling the list.
923
- * @property {boolean} [sortable] - Whether the list items can be sorted using drag-and-drop.
924
- * @property {Dispatch<SetStateAction<T[]>>} [updateSortOrder] - Callback function to update the order of the list items after sorting.
925
- */
926
- type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListElement>, 'children'> & {
927
- /**
928
- * The data to be rendered in the list.
929
- */
930
- data?: T[];
931
- /**
932
- * The component used to render each item in the list.
933
- */
934
- component: React.FC<any>;
935
- /**
936
- * Function to extract keys.
937
- */
938
- keyExtractor?: (item: T, index: number) => string | number;
939
- /**
940
- * The alignment of the list.
941
- * @default 'Vertical'
942
- */
943
- align?: ListAlignEnum;
944
- /**
945
- * Flag to control if the content should wrap.
946
- */
947
- wrap?: boolean;
948
- /**
949
- * Additional class for styling.
950
- */
951
- className?: string;
952
- /**
953
- * Flag to enable sorting of list items
954
- */
955
- sortable?: boolean;
956
- /**
957
- * callback function to update the current order of data
958
- *
959
- * @param data
960
- * @returns
961
- */
962
- updateSortOrder?: Dispatch<SetStateAction<T[]>>;
963
- };
964
-
965
- /**
966
- * A wrapper component that manages the rendering of either a sortable or regular list based on the provided props.
967
- *
968
- * @template T - The type of the list items.
969
- * @param {ListProps<T>} props - The properties for the list wrapper.
970
- * @returns {JSX.Element} The rendered list component.
971
- */
972
- declare const List: <T extends ListItemType>(props: ListProps<T>) => React__default.JSX.Element;
973
-
974
- type ContextMenuProps<T extends ListItemType> = ListProps<T>;
975
-
976
- declare const ContextMenu: <T extends ListItemType>(props: ContextMenuProps<T>) => React__default.JSX.Element;
977
-
978
- type DatePickerPosition = 'auto' | 'above' | 'below' | 'auto left' | 'auto center' | 'auto right' | 'above left' | 'above center' | 'above right' | 'below left' | 'below center' | 'below right';
979
- type DatePickerProps = {
980
- /**
981
- * Additional class for styling.
982
- */
983
- className?: string;
984
- /**
985
- * The minimum selectable date.
986
- */
987
- minDate?: string | Date;
988
- /**
989
- * The maximum selectable date.
990
- */
991
- maxDate?: string | Date;
992
- /**
993
- * Enable time selection in the date picker.
994
- * @default false
995
- */
996
- enableTime?: boolean;
997
- /**
998
- * Enable selecting a start and end date.
999
- * @default false
1000
- */
1001
- enableRange?: boolean;
1002
- /**
1003
- * The date that is initially displayed.
1004
- */
1005
- defaultDate?: string | Date;
1006
- /**
1007
- * The format of the date to be displayed.
1008
- * @remark
1009
- * For info about what formats exist, refer to the flatpickr documentation
1010
- */
1011
- dateFormat?: string;
1012
- /**
1013
- * Callback function when the date(s) are changed.
1014
- * @param dates - Array of selected dates.
1015
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1016
- */
1017
- onChange?: (dates: Date[], dateStr: string) => void;
1018
- /**
1019
- * Callback function when the date picker is opened.
1020
- * @param dates - Array of selected dates.
1021
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1022
- */
1023
- onOpen?: (dates: Date[], dateStr: string) => void;
1024
- /**
1025
- * Callback function when the date picker is closed.
1026
- * @param dates - Array of selected dates.
1027
- * @param dateStr - String representation of the selected date(s). Will match the date format.
1028
- */
1029
- onClose?: (dates: Date[], dateStr: string) => void;
1030
- /**
1031
- * render date picker inline
1032
- */
1033
- inline?: boolean;
1034
- /**
1035
- * Hide calendar for only time picker.
1036
- * @default false
1037
- */
1038
- noCalendar?: boolean;
1039
- /**
1040
- * The Flatpickr ref.
1041
- */
1042
- datePickerRef?: React.RefObject<FlatPickr>;
1043
- /**
1044
- * Datepicker position
1045
- */
1046
- position?: DatePickerPosition;
1047
- /**
1048
- * Function to parse date strings into Date objects.
1049
- * Used for parsing both the initial date string and any date strings entered in the input field.
1050
- * @param date - The date value to parse, can be a string
1051
- * @param format - Optional format string to use when parsing date strings
1052
- * @returns A Date object representing the parsed date
1053
- */
1054
- parseDate?: (date: string, format?: string) => Date;
1055
- /**
1056
- * Allow user to type date/time in input.
1057
- * @default false
1058
- */
1059
- allowInput?: boolean;
1060
- /**
1061
- * Custom time picker plugin
1062
- */
1063
- customTimePickerPlugin?: (config: CustomTimePickerConfig) => Plugin;
1064
- /**
1065
- * Custom time picker plugin
1066
- */
1067
- customDateTimePickerPlugin?: (config: CustomTimePickerConfig) => Plugin;
1068
- /**
1069
- * Use custom time input same as date picker input
1070
- * This is useful when the datepicker is inline and is re-added to the DOM after closing
1071
- * For example using this inside a Popover as content
1072
- */
1073
- useCustomTimeInputForTimePicker?: boolean;
1074
- };
1075
- type CustomTimePickerConfig = {
1076
- minuteStep: number;
1077
- };
1078
-
1079
- declare const DatePicker: (props: DatePickerProps) => React__default.JSX.Element;
1080
-
1081
- /**
1082
- * Type representing the allowed values for form fields
1083
- */
1084
- type FieldValue = string | number | Date | boolean | File | Array<string | number | Date | File>;
1085
- /**
1086
- * Type representing the form values as a partial record of field names to field values
1087
- * @example
1088
- * ```typescript
1089
- * const formState: FormState = {
1090
- * name: 'John Doe',
1091
- * age: 30,
1092
- * dob: new Date('1990-01-01')
1093
- * };
1094
- * ```
1095
- */
1096
- type FormState<T extends FieldValue = FieldValue> = Partial<Record<string, T>>;
1097
- /**
1098
- * Type representing the form errors as a partial record of field names to error messages
1099
- */
1100
- type FormErrors<T extends FormState = FormState> = Partial<Record<keyof T, string>>;
1101
- /**
1102
- * Type representing a validation function for a form field
1103
- * It takes an error setter function and the field value (optional) and returns a boolean indicating if the value is valid
1104
- * @example
1105
- * ```typescript
1106
- * const nameValidator: FieldValidationFunction = (setError, value) => {
1107
- * if (!value) {
1108
- * setError('Name is required');
1109
- * return false;
1110
- * }
1111
- * return true;
1112
- * };
1113
- * ```
1114
- */
1115
- type FieldValidationFunction<T extends FieldValue = FieldValue> = (setError: (message: string) => void, value?: T) => boolean;
1116
- /**
1117
- * Type representing the required fields in a form
1118
- * It's a partial record of field names to a boolean indicating if the field is required
1119
- */
1120
- type RequiredFields<T extends FormState = FormState> = Partial<Record<keyof T, boolean>>;
1121
- /**
1122
- * Type representing the validation functions for each field in a form
1123
- * It's a partial record of field names to validation functions (or undefined)
1124
- * @example
1125
- * ```typescript
1126
- * const nameValidator: FieldValidationFunction = (setError, value) => {
1127
- * if (!value) {
1128
- * setError('Name is required');
1129
- * return false;
1130
- * }
1131
- * return true;
1132
- * };
1133
- * const fieldValidators: FieldValidators = {
1134
- * name: nameValidator,
1135
- * age: undefined,
1136
- * };
1137
- * ```
1138
- */
1139
- type FieldValidators<T extends FormState = FormState> = Partial<Record<keyof T, FieldValidationFunction | undefined>>;
1140
- /**
1141
- * Type representing a function that handles form state changes
1142
- * It takes the new form state and an error setter function and doesn't return anything
1143
- * @example
1144
- * ```typescript
1145
- * const handleFormStateChange: FormStateChangeHandler = (state, setError) => {
1146
- * // Validate form state and set errors
1147
- * if (!state.name) {
1148
- * setError('name', 'Name is required');
1149
- * }
1150
- * };
1151
- * ```
1152
- */
1153
- type FormStateChangeHandler<T extends FormState = FormState> = (state: T, setError: (field: keyof T, errorMessage: string) => void) => void;
1154
- /**
1155
- * Type representing a function that validates the entire form
1156
- * It takes the form values and an error setter function and returns a boolean indicating if the form is valid
1157
- * @example
1158
- * ```typescript
1159
- * const validateForm: FormValidator = (state, setError) => {
1160
- * let isValid = true;
1161
- * if (!state.name) {
1162
- * setError('name', 'Name is required');
1163
- * isValid = false;
1164
- * }
1165
- * if (!state.age || typeof state.age !== 'number') {
1166
- * setError('age', 'Age must be a number');
1167
- * isValid = false;
1168
- * }
1169
- * return isValid;
1170
- * };
1171
- * ```
1172
- */
1173
- type FormValidator<T extends FormState = FormState> = (state: T, setError: (field: keyof T, errorMessage: string) => void) => boolean;
1174
- /**
1175
- * Type representing a function that handles form submission.
1176
- * It takes updated form state and a function to set error messages for specific fields.
1177
- *
1178
- * @template T - The type of the form state, defaulting to `FormState`.
1179
- *
1180
- * @param {T} values - The updated form state values.
1181
- * @param {(field: keyof T, errorMessage: string) => void} setError - A function to set error messages for specific fields.
1182
- *
1183
- * @example
1184
- * ```typescript
1185
- * const handleFormSubmit: FormSubmitHandler = (values, setError) => {
1186
- * // Submit form data
1187
- * console.log(values);
1188
- * };
1189
- * ```
1190
- */
1191
- type FormSubmitHandler<T extends FormState = FormState> = (values: T, setError: (field: keyof T, errorMessage: string) => void) => void;
1192
- type FormProps = Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> & {
1193
- formRef?: Ref<HTMLFormElement>;
1194
- };
1195
- type FormContextValues<T extends FormState = FormState> = {
1196
- formRef?: Ref<HTMLFormElement>;
1197
- formState?: T;
1198
- updateFieldValue: (name: string, value: FieldValue) => void;
1199
- formErrors: FormErrors<T>;
1200
- updateFieldError: (name: keyof T, errorMessage: string) => void;
1201
- onFormSubmit: React__default.FormEventHandler<HTMLFormElement>;
1202
- updateFieldValidators: (name: keyof T, validate?: FieldValidationFunction) => void;
1203
- updateRequiredFields: (name: keyof T, required?: boolean) => void;
1204
- };
1205
- type FormProviderProps<T extends FormState = FormState> = {
1206
- formRef?: Ref<HTMLFormElement>;
1207
- children?: React__default.ReactNode;
1208
- formState?: T;
1209
- onFormStateChange?: FormStateChangeHandler<T>;
1210
- formValidator?: FormValidator<T>;
1211
- onSubmit?: FormSubmitHandler<T>;
1212
- validateOnChange?: boolean;
1213
- };
1214
-
1215
- /**
1216
- * Props for the FormField component.
1217
- */
1218
- type FormFieldProps = HTMLAttributes<HTMLDivElement> & {
1219
- /**
1220
- * The label for the form field
1221
- */
1222
- label: string;
1223
- /**
1224
- * Optional message for the form field
1225
- */
1226
- message?: string;
1227
- /**
1228
- * Info icon for message
1229
- */
1230
- infoIcon?: React.ReactNode;
1231
- /**
1232
- * Optional field for possible error message
1233
- */
1234
- hasMessage?: boolean;
1235
- };
1236
- /**
1237
- * Props for the FormFieldProvider component.
1238
- */
1239
- type FormFieldProviderProps = {
1240
- /**
1241
- * Child components
1242
- */
1243
- children: React.ReactNode;
1244
- /**
1245
- * Name of the form field
1246
- */
1247
- name: string;
1248
- /**
1249
- * Indicates if the field is disabled
1250
- * @default false
1251
- */
1252
- disabled?: boolean;
1253
- /**
1254
- * Indicates if the field is invalid
1255
- * @default false
1256
- */
1257
- invalid?: boolean;
1258
- /**
1259
- * Indicates if the field is required
1260
- * @default false
1261
- */
1262
- required?: boolean;
1263
- /**
1264
- * Validation function for the field
1265
- */
1266
- validate?: FieldValidationFunction;
1267
- /**
1268
- * id attribute to connect label and field of form field
1269
- * note:- this is optional as FormFieldContext will generate an id
1270
- */
1271
- id?: string;
1272
- };
1273
- /**
1274
- * Props for the UseField hook.
1275
- */
1276
- type UseFieldProps<T extends FieldValue = FieldValue> = {
1277
- /**
1278
- * The value of the field
1279
- */
1280
- value?: T;
1281
- /**
1282
- * Indicates if the field is invalid
1283
- * @default false
1284
- */
1285
- invalid?: boolean;
1286
- /**
1287
- * Callback when the field value changes
1288
- */
1289
- onValueChanged?: (value: T) => void;
1290
- /**
1291
- * Indicates if the field is disabled
1292
- * @default false
1293
- */
1294
- disabled?: boolean;
1295
- /**
1296
- * Indicates if the field is required
1297
- * @default false
1298
- */
1299
- required?: boolean;
1300
- /**
1301
- * Default value for the field
1302
- */
1303
- defaultValue?: T;
1304
- };
1305
-
1306
- declare const useField: <T extends FieldValue = FieldValue>(props: UseFieldProps<T>) => {
1307
- fieldValue: T;
1308
- updateFieldValue: (newValue: T) => void;
1309
- disabledField: boolean | undefined;
1310
- requiredField: boolean | undefined;
1311
- invalidField: boolean | undefined;
1312
- formFieldId: string | undefined;
1313
- };
1314
-
1315
- declare const FormField: (props: FormFieldProviderProps & FormFieldProps) => React__default.JSX.Element;
1316
-
1317
- type GridProps = HTMLAttributes<HTMLDivElement> & {
1318
- columns?: number;
1319
- rows?: number;
1320
- };
1321
- type GridItemProps = HTMLAttributes<HTMLDivElement> & {
1322
- columnSpan?: number;
1323
- rowSpan?: number;
1324
- };
1325
-
1326
- declare const Grid: (props: GridProps) => React__default.JSX.Element;
1327
-
1328
- declare const GridItem: (props: GridItemProps) => React$1.JSX.Element;
1329
-
1330
- type GridListProps<T extends ListItemType> = Omit<ListProps<T>, 'style'> & {
1331
- columns?: number;
1332
- };
1333
-
1334
- declare const GridList: <T extends ListItemType>(props: GridListProps<T>) => React__default.JSX.Element;
1335
-
1336
- /**
1337
- * Enum defining the possible sizes for the Modal component.
1338
- */
1339
- type ModalSizeEnum = 'Small' | 'Medium' | 'Large';
1340
- /**
1341
- * Props for the Modal component.
1342
- */
1343
- type ModalProps = {
1344
- /**
1345
- * The content that will be rendered inside the modal.
1346
- */
1347
- children: ReactNode;
1348
- /**
1349
- * Optional size of the modal. Defaults to 'Medium'.
1350
- * @default "Medium"
1351
- */
1352
- size?: ModalSizeEnum;
1353
- /**
1354
- * Callback function invoked when the modal is hidden.
1355
- */
1356
- onHide?: () => void;
1357
- /**
1358
- * Controls whether the modal is visible (`true`) or hidden (`false`).
1359
- * @default false
1360
- */
1361
- show?: boolean;
1362
- /**
1363
- * The content to be rendered in the header of the modal.
1364
- */
1365
- header?: ReactNode;
1366
- /**
1367
- * The content to be rendered in the footer of the modal.
1368
- */
1369
- footer?: ReactNode;
1370
- /**
1371
- * Custom JSX element to render as the backdrop for the modal.
1372
- */
1373
- renderBackdrop?: ReactNode;
1374
- /**
1375
- * Determines whether a backdrop should be displayed behind the modal.
1376
- * @default true
1377
- */
1378
- backdrop?: boolean;
1379
- /**
1380
- * Disables the ability to dismiss the modal by clicking on the backdrop.
1381
- * @default false
1382
- */
1383
- disableBackdropDismiss?: boolean;
1384
- /**
1385
- * Additional CSS class names to apply to the modal.
1386
- */
1387
- className?: string;
1388
- };
1389
-
1390
- /**
1391
- * Modal component for displaying a dialog window.
1392
- */
1393
- declare const Modal: (props: ModalProps) => React__default.JSX.Element;
1394
-
1395
- /**
1396
- * Defines the type of modal footer layout.
1397
- * @default "1Button"
1398
- */
1399
- type ModalFooterTypeEnum = "1Button" | "2Buttons";
1400
- /**
1401
- * Props for the ModalFooter component.
1402
- */
1403
- type ModalFooterProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
1404
- /**
1405
- * Determines whether the footer contains one or two buttons.
1406
- * @default "1Button"
1407
- */
1408
- type?: ModalFooterTypeEnum;
1409
- /**
1410
- * The primary button element.
1411
- */
1412
- primaryButton?: ReactNode;
1413
- /**
1414
- * The secondary button element (only applicable when type is "2 buttons").
1415
- */
1416
- secondaryButton?: ReactNode;
1417
- /**
1418
- * Additional class for styling.
1419
- */
1420
- className?: string;
1421
- };
1422
-
1423
- /**
1424
- * Modal Footer component for displaying footer actions in a modal.
1425
- */
1426
- declare const ModalFooter: React__default.FC<ModalFooterProps>;
1427
-
1428
- /**
1429
- * Props for the ModalHeader component.
1430
- */
1431
- type ModalHeaderProps = {
1432
- /**
1433
- * The title to be displayed in the header.
1434
- */
1435
- title?: string;
1436
- /**
1437
- * An optional icon button to display in the header.
1438
- */
1439
- iconButton?: ReactNode;
1440
- /**
1441
- * Additional CSS class names to apply to the modal header.
1442
- */
1443
- className?: string;
1444
- };
1445
-
1446
- /**
1447
- * Modal Header component definition.
1448
- */
1449
- declare const ModalHeader: (props: ModalHeaderProps) => React__default.JSX.Element;
1450
-
1451
- type NavProps = HTMLAttributes<HTMLElement> & {};
1452
-
1453
- declare const Nav: (props: NavProps) => React__default.JSX.Element;
1454
-
1455
- type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
1456
-
1457
- declare const NavItem: (props: NavItemProps) => React__default.JSX.Element;
1458
-
1459
- type PaginationProps = {
1460
- className?: string;
1461
- currentPage?: number;
1462
- totalPages?: number;
1463
- updateCurrentPage?: (page: number) => void;
1464
- previousPageIcon?: React.ReactNode;
1465
- nextPageIcon?: React.ReactNode;
1466
- };
1467
-
1468
- declare const Pagination: (props: PaginationProps) => React$1.JSX.Element;
1469
-
1470
- type PaginationNumberFieldProps = {
1471
- className?: string;
1472
- page?: number;
1473
- totalPages?: number;
1474
- onPageChanged?: (page: number) => void;
1475
- };
1476
-
1477
- declare const PaginationNumberField: (props: PaginationNumberFieldProps) => React$1.JSX.Element;
1478
-
1479
- /**
1480
- * Enum for the action type of the Popover.
1481
- */
1482
- type ActionType = 'Click' | 'Hover' | 'DoubleClick';
1483
- /**
1484
- * Enum for the overlay direction of the Popover.
1485
- */
1486
- type OverlayDirectionEnum = 'Up' | 'Down' | 'Right' | 'Left';
1487
- /**
1488
- * Enum for the overlay alignment of the Popover.
1489
- */
1490
- type OverlayAlignEnum = 'Start' | 'End' | 'Center';
1491
- /**
1492
- * Props for the content of the Popover.
1493
- */
1494
- type ContentProps = {
1495
- width?: CSSProperties['width'] | 'match-trigger';
1496
- minWidth?: CSSProperties['minWidth'] | 'match-trigger';
1497
- };
1498
- /**
1499
- * Props for the Popover component.
1500
- */
1501
- type PopoverProps = {
1502
- /**
1503
- * Ref or Element for the Popover component to render in.
1504
- */
1505
- container?: HTMLElement | React__default.RefObject<HTMLElement> | null;
1506
- /**
1507
- * The content to display in the Popover.
1508
- */
1509
- content: ReactNode;
1510
- /**
1511
- * The target element for the Popover.
1512
- */
1513
- target: ReactNode;
1514
- /**
1515
- * Offset for positioning the Popover.
1516
- */
1517
- offset?: Offset;
1518
- /**
1519
- * Function to handle hiding the Popover.
1520
- */
1521
- onHide?: () => void;
1522
- /**
1523
- * Function to handle hiding the Popover.
1524
- */
1525
- onOpen?: () => void;
1526
- /**
1527
- * Direction in which the Popover should open.
1528
- * @default 'Down'
1529
- */
1530
- direction?: OverlayDirectionEnum;
1531
- /**
1532
- * Indicates if Popover should hide on click away.
1533
- * @default true
1534
- */
1535
- hideOnClickAway?: boolean;
1536
- /**
1537
- * Indicates if content should stay on item click.
1538
- * @default false
1539
- */
1540
- keepContentOnItemClick?: boolean;
1541
- /**
1542
- * Indicates if the Popover is shown.
1543
- * @default false
1544
- */
1545
- show?: boolean;
1546
- /**
1547
- * Action type to trigger the Popover.
1548
- * @default 'Click'
1549
- */
1550
- action?: ActionType;
1551
- /**
1552
- * Alignment of the Popover.
1553
- * @default 'Center'
1554
- */
1555
- alignment?: OverlayAlignEnum;
1556
- /**
1557
- * Props for the content of the Popover.
1558
- */
1559
- contentProps?: ContentProps;
1560
- /**
1561
- * Indicates if the Popover is disabled.
1562
- * @default false
1563
- */
1564
- disabled?: boolean;
1565
- /**
1566
- * Indicates if content should change placement to stay on the screen.
1567
- * @default false
1568
- */
1569
- flip?: boolean;
1570
- /**
1571
- * Additional class for styling.
1572
- */
1573
- className?: string;
1574
- /**
1575
- * Additional class for overlay container styling.
1576
- */
1577
- overlayClassName?: string;
1578
- /**
1579
- * Position of the Popover.
1580
- * @default 'absolute'
1581
- */
1582
- contentPosition?: 'absolute' | 'fixed';
1583
- };
1584
- type PopoverHandle = {
1585
- close: () => void;
1586
- open: () => void;
1587
- };
1588
-
1589
- /**
1590
- * Popover component that displays a floating content element in relation to a target element.
1591
- * It can be triggered via different user actions like 'Click' or 'Hover'.
1592
- */
1593
- declare const Popover: React__default.ForwardRefExoticComponent<PopoverProps & React__default.RefAttributes<PopoverHandle>>;
1594
-
1595
- type ProgressBarOrientation = "Horizontal" | "Vertical";
1596
- type ProgressBarLabelType = "Percentage" | "Text";
1597
- type ProgressBarProps = {
1598
- /**
1599
- * Current progress value
1600
- * @default 0
1601
- */
1602
- value: number;
1603
- /**
1604
- * Minimum value of the progress bar
1605
- * @default 0
1606
- */
1607
- min?: number;
1608
- /**
1609
- * Maximum value of the progress bar
1610
- * @default 100
1611
- */
1612
- max?: number;
1613
- /**
1614
- * Defines the orientation of the progress bar
1615
- * @default "horizontal"
1616
- */
1617
- orientation?: ProgressBarOrientation;
1618
- /**
1619
- * Determines if and how the label is displayed
1620
- */
1621
- showLabel?: ProgressBarLabelType;
1622
- /**
1623
- * Custom label to be displayed when `showLabel` is set to "Text"
1624
- */
1625
- label?: React.ReactNode;
1626
- /**
1627
- * Additional class for styling
1628
- */
1629
- className?: string;
1630
- };
1631
-
1632
- declare const ProgressBar: React__default.FC<ProgressBarProps>;
1633
-
1634
- /**
1635
- * Props for the Option component, extending LiHTMLAttributes<HTMLLIElement>.
1636
- * Represents an option within a Select component.
1637
- */
1638
- type OptionProps = LiHTMLAttributes<HTMLLIElement> & {
1639
- /**
1640
- * Value associated with the option.
1641
- */
1642
- value: string | number;
1643
- /**
1644
- * Indicates if the option is disabled.
1645
- * @default false
1646
- */
1647
- disabled?: boolean;
1648
- /**
1649
- * Icon to be displayed before the option content.
1650
- */
1651
- leadingIcon?: ReactNode;
1652
- /**
1653
- * Icon to be displayed after the option content.
1654
- */
1655
- trailingIcon?: ReactNode;
1656
- /**
1657
- * Additional CSS class names for custom styling.
1658
- */
1659
- className?: string;
1660
- /**
1661
- * Children elements or text content of the option.
1662
- */
1663
- children?: ReactNode;
1664
- };
1665
-
1666
- /**
1667
- * Functional component representing an option within a select dropdown.
1668
- *
1669
- * @param props - Props for configuring the Option component.
1670
- * @returns Element representing the option.
1671
- */
1672
- declare const Option: (props: OptionProps) => React__default.JSX.Element;
1673
-
1674
- /**
1675
- * Represents the context provided by the Select component.
1676
- */
1677
- type SelectContextType = {
1678
- /**
1679
- * The currently selected value in the Select component.
1680
- */
1681
- selectedValue: FieldValue;
1682
- /**
1683
- * Function to update the selected value.
1684
- * @param value - The new value to select, either a string or number.
1685
- */
1686
- updateSelectedValue: (value: string | number) => void;
1687
- /**
1688
- * Function to reset the selected value to its default state.
1689
- */
1690
- resetSelectedValue: () => void;
1691
- /**
1692
- * Indicates whether the field is in an invalid state.
1693
- */
1694
- invalidField?: boolean;
1695
- /**
1696
- * Indicates whether the field is disabled.
1697
- */
1698
- disabledField?: boolean;
1699
- /**
1700
- * id to use as htmlFor for label, which will be fetched from FormFieldContext
1701
- */
1702
- formFieldId: string;
1703
- };
1704
- /**
1705
- * Props for the SelectProvider component, which manages state and provides context for Select.
1706
- */
1707
- type SelectProviderProps = {
1708
- /**
1709
- * Child elements to be rendered within the SelectProvider.
1710
- */
1711
- children: ReactNode;
1712
- /**
1713
- * Currently selected value (if controlled).
1714
- */
1715
- value?: FieldValue;
1716
- /**
1717
- * Indicates if multiple options can be selected.
1718
- * @default false
1719
- */
1720
- multiple?: boolean;
1721
- /**
1722
- * Default selected value (if uncontrolled).
1723
- */
1724
- defaultValue?: FieldValue;
1725
- /**
1726
- * Indicates whether the Select is disabled.
1727
- * @default false
1728
- */
1729
- disabled?: boolean;
1730
- /**
1731
- * Callback function invoked when the selected value changes.
1732
- * @param event - Optional event containing the new field value.
1733
- */
1734
- onValueChanged?: (event?: FieldValue) => void;
1735
- /**
1736
- * Indicates whether the selected field is hasDefaultOption or not.
1737
- * @default false
1738
- */
1739
- hasDefaultOption?: boolean;
1740
- };
1741
- /**
1742
- * Enum representing different states of the Select component.
1743
- */
1744
- type SelectStateEnum = 'Default' | 'Error';
1745
- /**
1746
- * Props for the SelectView component, defining its visual appearance and behavior.
1747
- */
1748
- type SelectViewProps = Omit<HTMLAttributes<HTMLElement>, 'style' | 'children'> & {
1749
- /**
1750
- * Options to be rendered within the Select component.
1751
- */
1752
- children: React.ReactElement<OptionProps> | React.ReactElement<OptionProps>[];
1753
- /**
1754
- * Placeholder text displayed when no option is selected.
1755
- */
1756
- placeholder?: string;
1757
- /**
1758
- * Determines if the dropdown menu is initially open.
1759
- * @default false
1760
- */
1761
- defaultOpen?: boolean;
1762
- /**
1763
- * Icon displayed before the select input.
1764
- */
1765
- leadingIcon?: ReactNode;
1766
- /**
1767
- * Icon displayed for the expand sign.
1768
- */
1769
- expandIcon?: ReactNode;
1770
- /**
1771
- * Indicates whether the dropdown menu is currently open.
1772
- * @default false
1773
- */
1774
- open?: boolean;
1775
- /**
1776
- * Current state of the Select component.
1777
- * @default 'Default'
1778
- */
1779
- state?: SelectStateEnum;
1780
- /**
1781
- * Additional props for the dropdown menu.
1782
- */
1783
- menuProps?: ContentProps;
1784
- /**
1785
- * Indicates whether the selected field is hasDefaultOption or not.
1786
- * @default false
1787
- */
1788
- hasDefaultOption?: boolean;
1789
- /**
1790
- * Indicates if multiple options can be selected.
1791
- * @default false
1792
- */
1793
- multiple?: boolean;
1794
- /**
1795
- * Additional CSS classes for customization.
1796
- */
1797
- className?: string;
1798
- /**
1799
- * The component used to render each item in the list.
1800
- */
1801
- selectedView?: React.FC<any>;
1802
- };
1803
- /**
1804
- * Props for the Select component, combining provider and view props.
1805
- */
1806
- type SelectProps = Omit<SelectProviderProps, 'children'> & SelectViewProps;
1807
-
1808
- /**
1809
- * Custom hook to use the SelectContext values.
1810
- * Throws an error if used outside of a SelectProvider.
1811
- *
1812
- * @throws Error if used outside of SelectProvider.
1813
- * @returns Context values of type SelectContextType.
1814
- */
1815
- declare const useSelectContext: () => SelectContextType;
1816
- /**
1817
- * Provider component for managing state and providing context to Select components.
1818
- * Manages the selected value state and provides methods to update or reset it.
1819
- *
1820
- * @param props - Props for configuring the SelectProvider.
1821
- * @returns JSX element that provides context to its children.
1822
- */
1823
- declare const SelectProvider: ({ children, value, defaultValue, multiple, disabled, onValueChanged, }: SelectProviderProps) => React__default.JSX.Element;
1824
-
1825
- /**
1826
- * Select component that wraps SelectComponent with SelectProvider.
1827
- * Provides state management and context to SelectComponent.
1828
- *
1829
- * @param props - Props for configuring the Select component.
1830
- * @returns JSX element that renders the SelectComponent wrapped with SelectProvider.
1831
- */
1832
- declare const Select: (props: SelectProps) => JSX.Element;
1833
-
1834
- /**
1835
- * Dropzone component props
1836
- * @param initial React.ReactNode - The initial state of the dropzone.
1837
- * @param uploading React.ReactNode - The uploading state of the dropzone.
1838
- * @param uploaded React.ReactNode - The uploaded state of the dropzone.
1839
- * @param accept { [key: string]: readonly string[] } - The accepted file types.
1840
- * @param maxSize number - The maximum size of the file in bytes.
1841
- * @param maxFiles number - The maximum number of files to upload.
1842
- * @param onFilesUpload (file: File) => void - callback when files are selected
1843
- * @param onFilesReset () => void - callback when files are reset
1844
- */
1845
- type DropzoneProps = {
1846
- /**
1847
- * The initial state of the dropzone.
1848
- */
1849
- initial?: React.ReactNode;
1850
- /**
1851
- * The uploading state of the dropzone.
1852
- */
1853
- uploading?: React.ReactNode;
1854
- /**
1855
- * The uploaded state of the dropzone.
1856
- */
1857
- uploaded?: React.ReactNode;
1858
- /**
1859
- * The accepted file types based on mime type.
1860
- * @example
1861
- * accept={{
1862
- * 'image/*': ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.ico', '.webp'],
1863
- * }}
1864
- */
1865
- accept?: {
1866
- [key: string]: readonly string[];
1867
- };
1868
- /**
1869
- * The maximum size of the file in bytes.
1870
- */
1871
- maxSize?: number;
1872
- /**
1873
- * The maximum number of files to upload.
1874
- * @default 1
1875
- */
1876
- maxFiles?: number;
1877
- disabled?: boolean;
1878
- required?: boolean;
1879
- /**
1880
- * callback when files are selected
1881
- */
1882
- onFilesSelected?: (files: File[]) => Promise<void> | void;
1883
- /**
1884
- * callback when files are reset
1885
- */
1886
- onFilesReset?: () => void;
1887
- };
1888
- /**
1889
- * Dropzone context type
1890
- * @param status 'initial' | 'uploading' | 'uploaded' - The status of the dropzone.
1891
- * @param file File | null - The file of the dropzone.
1892
- * @param selectFile () => void - The function to call when the file is selected.
1893
- * @param resetUpload () => void - The function to call when the file is reset.
1894
- */
1895
- type DropzoneContextType = {
1896
- /**
1897
- * The status of the dropzone.
1898
- */
1899
- status: 'initial' | 'uploading' | 'uploaded';
1900
- /**
1901
- * The files of the dropzone.
1902
- */
1903
- files: File[];
1904
- /**
1905
- * The accepted file types based on mime type.
1906
- * @example
1907
- * accept={{
1908
- * 'image/*': ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.ico', '.webp'],
1909
- * }}
1910
- */
1911
- accept: {
1912
- [key: string]: readonly string[];
1913
- };
1914
- /**
1915
- * The function to call to open the file dialog.
1916
- */
1917
- selectFiles: () => void;
1918
- /**
1919
- * The function to call to reset the files.
1920
- */
1921
- resetFiles: () => void;
1922
- children?: ReactNode;
1923
- };
1924
- type DropzoneTriggerProps = ButtonProps;
1925
- type DropzoneSupportedFormatsProps = TextProps;
1926
- type DropzoneClearProps = IconButtonProps;
1927
- type DropzoneFilenameProps = TextProps & {
1928
- /**
1929
- * The index of the file in the files array.
1930
- * @default 0
1931
- */
1932
- fileIndex?: number;
1933
- };
1934
-
1935
- declare const Dropzone: (props: DropzoneProps) => React__default.JSX.Element;
1936
- declare const useDropzoneContext: () => DropzoneContextType;
1937
-
1938
- declare const DropzoneClear: (props: DropzoneClearProps) => React__default.JSX.Element;
1939
-
1940
- declare const DropzoneFilename: ({ children, fileIndex, ...props }: DropzoneFilenameProps) => React__default.JSX.Element;
1941
-
1942
- declare const DropzoneSupportedFormats: (props: DropzoneSupportedFormatsProps) => React__default.JSX.Element;
1943
-
1944
- declare const DropzoneTrigger: (props: DropzoneTriggerProps) => React__default.JSX.Element;
1945
-
1946
- type DropzoneContentTypeEnum = 'Empty' | 'Uploaded' | 'Loading';
1947
- type DropzoneContentProps = {
1948
- className?: string;
1949
- type: DropzoneContentTypeEnum;
1950
- };
1951
-
1952
- declare const DropzoneContent: (props: DropzoneContentProps) => React$1.JSX.Element;
1953
-
1954
- declare const Form: <T extends FormState>(props: FormProviderProps<T> & FormProps) => React__default.JSX.Element;
1955
-
1956
- type TableProps = TableHTMLAttributes<HTMLTableElement> & {
1957
- /**
1958
- * Whether the table header should stick to the top when scrolling
1959
- */
1960
- stickyHeader?: boolean;
1961
- };
1962
-
1963
- declare const Table: (props: TableProps) => React__default.JSX.Element;
1964
-
1965
- type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
1966
-
1967
- declare const TableRow: (props: TableRowProps) => React__default.JSX.Element;
1968
-
1969
- type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1970
-
1971
- declare const TableCell: (props: TableCellProps) => React__default.JSX.Element;
1972
-
1973
- type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
1974
-
1975
- declare const TableHeader: (props: TableHeaderProps) => React__default.JSX.Element;
1976
-
1977
- type TableHeaderCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1978
-
1979
- declare const TableHeaderCell: (props: TableHeaderCellProps) => React__default.JSX.Element;
1980
-
1981
- type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
1982
-
1983
- declare const TableBody: (props: TableBodyProps) => React__default.JSX.Element;
1984
-
1985
- type TabsStyleEnum = 'Filled' | 'Underlined';
1986
- type TabsTypeEnum = 'Horizontal' | 'Vertical';
1987
- type TabContextType = {
1988
- /**
1989
- * The tab item style to apply.
1990
- * @default Filled
1991
- */
1992
- style: TabsStyleEnum;
1993
- /**
1994
- * The currently selected tab.
1995
- */
1996
- currentTab: string | number;
1997
- /**
1998
- * Function to update the currently selected tab.
1999
- * @param tabValue - The value of the tab to be set.
2000
- */
2001
- updateCurrentTab: (tabValue: string | number) => void;
2002
- };
2003
- type TabProviderProps = {
2004
- /**
2005
- * The content to be displayed within the tab provider.
2006
- */
2007
- children: React.ReactNode;
2008
- /**
2009
- * The value of the tab.
2010
- */
2011
- value?: number | string;
2012
- /**
2013
- * The tab item style to apply.
2014
- * @default Filled
2015
- */
2016
- style?: TabsStyleEnum;
2017
- /**
2018
- * Callback function when a tab is clicked.
2019
- * @param value - The value of the clicked tab.
2020
- */
2021
- onClick?: (value: string | number) => void;
2022
- };
2023
- type TabsViewProps = {
2024
- /**
2025
- * The content to be displayed within the tabs.
2026
- */
2027
- children: React.ReactNode;
2028
- /**
2029
- * Additional class for styling.
2030
- */
2031
- className?: string;
2032
- /**
2033
- * The tab item style to apply.
2034
- * @default Filled
2035
- */
2036
- style?: TabsStyleEnum;
2037
- /**
2038
- * The tab item type to apply.
2039
- * @default Horizontal
2040
- */
2041
- type?: TabsTypeEnum;
2042
- };
2043
- type TabsProps = TabProviderProps & TabsViewProps;
2044
-
2045
- /**
2046
- * Custom hook to use the TabContext
2047
- * Throws an error if used outside of a TabProvider
2048
- */
2049
- declare const useTab: () => TabContextType;
2050
-
2051
- declare const Tabs: (props: TabsProps) => React__default.JSX.Element;
2052
-
2053
- type TabItemStyleEnum = 'Filled' | 'Underlined';
2054
- type TabItemProps = Omit<ButtonProps, 'actionType' | 'appearance' | 'size' | 'style' | 'type'> & {
2055
- /**
2056
- * The tabs value.
2057
- * @remarks
2058
- * This is used for determining which tab is selected.
2059
- * The value from TabContent will be compared to the value from TabItem.
2060
- * @example
2061
- * 1
2062
- * "One"
2063
- */
2064
- value: number | string;
2065
- /**
2066
- * The default tab.
2067
- * @remarks
2068
- * True means that this tab will be displayed initially
2069
- */
2070
- defaultTab?: boolean;
2071
- /**
2072
- * The tab item style to apply.
2073
- * @default Filled
2074
- */
2075
- style?: TabItemStyleEnum;
2076
- };
2077
-
2078
- declare const TabItem: (props: TabItemProps) => React__default.JSX.Element;
2079
-
2080
- interface TabContentProps {
2081
- /**
2082
- * The tab contents value.
2083
- * @remarks
2084
- * This is used for determining which tab is selected.
2085
- * The value from TabContent will be compared to the value from TabItem.
2086
- * @example
2087
- * 1
2088
- * "One"
2089
- */
2090
- value: number | string;
2091
- /**
2092
- * The contents of the tab.
2093
- */
2094
- children: React.ReactNode;
2095
- /**
2096
- * The classname applied to the tab content.
2097
- */
2098
- className?: string;
2099
- }
2100
-
2101
- declare const TabContent: (props: TabContentProps) => React__default.JSX.Element;
2102
-
2103
- type ThemeContextType = {
2104
- theme: string;
2105
- updateTheme: (theme: string) => void;
2106
- };
2107
- type ThemeProviderProps = {
2108
- theme?: string;
2109
- children?: ReactNode;
2110
- };
2111
-
2112
- declare const ThemeContext: React__default.Context<ThemeContextType>;
2113
- declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
2114
-
2115
- /**
2116
- * Props for the NotificationContainer component.
2117
- */
2118
- type NotificationContainerProps = {
2119
- className?: string;
2120
- };
2121
-
2122
- 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 };