@delightui/components 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/atoms/Chip/Chip.d.ts +7 -0
- package/dist/cjs/components/atoms/Chip/Chip.types.d.ts +61 -0
- package/dist/cjs/components/atoms/Chip/index.d.ts +4 -0
- package/dist/cjs/components/atoms/CustomToggle/CustomToggle.d.ts +4 -0
- package/dist/cjs/components/atoms/CustomToggle/CustomToggle.types.d.ts +39 -0
- package/dist/cjs/components/atoms/CustomToggle/index.d.ts +3 -0
- package/dist/cjs/components/atoms/Toggle/Toggle.d.ts +10 -0
- package/dist/cjs/components/atoms/Toggle/Toggle.types.d.ts +31 -0
- package/dist/cjs/components/atoms/Toggle/index.d.ts +2 -0
- package/dist/cjs/components/atoms/ToggleButton/ToggleButton.d.ts +12 -0
- package/dist/cjs/components/atoms/ToggleButton/ToggleButton.types.d.ts +36 -0
- package/dist/cjs/components/atoms/ToggleButton/index.d.ts +3 -0
- package/dist/cjs/components/atoms/index.d.ts +8 -0
- package/dist/cjs/components/molecules/Accordion/Accordion.d.ts +6 -0
- package/dist/cjs/components/molecules/Accordion/Accordion.types.d.ts +44 -0
- package/dist/cjs/components/molecules/Accordion/AccordionGroup/AccordionGroup.d.ts +4 -0
- package/dist/cjs/components/molecules/Accordion/AccordionGroup/AccordionGroup.types.d.ts +10 -0
- package/dist/cjs/components/molecules/Accordion/AccordionGroup/index.d.ts +2 -0
- package/dist/cjs/components/molecules/Accordion/index.d.ts +4 -0
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.types.d.ts +13 -0
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/index.d.ts +4 -0
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
- package/dist/cjs/components/molecules/Breadcrumbs/index.d.ts +6 -0
- package/dist/cjs/components/molecules/ModalFooter/ModalFooter.d.ts +7 -0
- package/dist/cjs/components/molecules/ModalFooter/ModalFooter.types.d.ts +28 -0
- package/dist/cjs/components/molecules/ModalFooter/index.d.ts +4 -0
- package/dist/cjs/components/molecules/ModalHeader/ModalHeader.d.ts +7 -0
- package/dist/cjs/components/molecules/ModalHeader/ModalHeader.types.d.ts +18 -0
- package/dist/cjs/components/molecules/ModalHeader/index.d.ts +4 -0
- package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -1
- package/dist/cjs/components/molecules/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/cjs/components/molecules/ProgressBar/ProgressBar.types.d.ts +36 -0
- package/dist/cjs/components/molecules/ProgressBar/ProgressBar.utils.d.ts +1 -0
- package/dist/cjs/components/molecules/ProgressBar/index.d.ts +4 -0
- package/dist/cjs/components/molecules/TabContent/TabContent.d.ts +1 -1
- package/dist/cjs/components/molecules/index.d.ts +9 -0
- package/dist/cjs/components/organisms/Form/FormExample.d.ts +2 -0
- package/dist/cjs/components/utils.d.ts +2 -1
- package/dist/cjs/library.css +613 -112
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Chip/Chip.d.ts +7 -0
- package/dist/esm/components/atoms/Chip/Chip.types.d.ts +61 -0
- package/dist/esm/components/atoms/Chip/index.d.ts +4 -0
- package/dist/esm/components/atoms/CustomToggle/CustomToggle.d.ts +4 -0
- package/dist/esm/components/atoms/CustomToggle/CustomToggle.types.d.ts +39 -0
- package/dist/esm/components/atoms/CustomToggle/index.d.ts +3 -0
- package/dist/esm/components/atoms/Toggle/Toggle.d.ts +10 -0
- package/dist/esm/components/atoms/Toggle/Toggle.types.d.ts +31 -0
- package/dist/esm/components/atoms/Toggle/index.d.ts +2 -0
- package/dist/esm/components/atoms/ToggleButton/ToggleButton.d.ts +12 -0
- package/dist/esm/components/atoms/ToggleButton/ToggleButton.types.d.ts +36 -0
- package/dist/esm/components/atoms/ToggleButton/index.d.ts +3 -0
- package/dist/esm/components/atoms/index.d.ts +8 -0
- package/dist/esm/components/molecules/Accordion/Accordion.d.ts +6 -0
- package/dist/esm/components/molecules/Accordion/Accordion.types.d.ts +44 -0
- package/dist/esm/components/molecules/Accordion/AccordionGroup/AccordionGroup.d.ts +4 -0
- package/dist/esm/components/molecules/Accordion/AccordionGroup/AccordionGroup.types.d.ts +10 -0
- package/dist/esm/components/molecules/Accordion/AccordionGroup/index.d.ts +2 -0
- package/dist/esm/components/molecules/Accordion/index.d.ts +4 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.types.d.ts +13 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/index.d.ts +4 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
- package/dist/esm/components/molecules/Breadcrumbs/index.d.ts +6 -0
- package/dist/esm/components/molecules/ModalFooter/ModalFooter.d.ts +7 -0
- package/dist/esm/components/molecules/ModalFooter/ModalFooter.types.d.ts +28 -0
- package/dist/esm/components/molecules/ModalFooter/index.d.ts +4 -0
- package/dist/esm/components/molecules/ModalHeader/ModalHeader.d.ts +7 -0
- package/dist/esm/components/molecules/ModalHeader/ModalHeader.types.d.ts +18 -0
- package/dist/esm/components/molecules/ModalHeader/index.d.ts +4 -0
- package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -1
- package/dist/esm/components/molecules/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/esm/components/molecules/ProgressBar/ProgressBar.types.d.ts +36 -0
- package/dist/esm/components/molecules/ProgressBar/ProgressBar.utils.d.ts +1 -0
- package/dist/esm/components/molecules/ProgressBar/index.d.ts +4 -0
- package/dist/esm/components/molecules/TabContent/TabContent.d.ts +1 -1
- package/dist/esm/components/molecules/index.d.ts +9 -0
- package/dist/esm/components/organisms/Form/FormExample.d.ts +2 -0
- package/dist/esm/components/utils.d.ts +2 -1
- package/dist/esm/library.css +613 -112
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +367 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, ReactNode, MouseEvent, InputHTMLAttributes, TextareaHTMLAttributes, CSSProperties, FormHTMLAttributes, Ref, LiHTMLAttributes, TdHTMLAttributes, Dispatch, SetStateAction, TableHTMLAttributes } from 'react';
|
|
3
|
+
import { LinkProps } from 'react-router-dom';
|
|
3
4
|
import { Offset } from 'react-overlays/usePopper';
|
|
4
5
|
import { Plugin } from 'flatpickr/dist/types/options';
|
|
5
6
|
import FlatPickr from 'react-flatpickr';
|
|
6
|
-
import { LinkProps } from 'react-router-dom';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Enum for different image fit options.
|
|
@@ -384,6 +384,168 @@ type ListItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
|
384
384
|
|
|
385
385
|
declare const ListItem: (props: ListItemProps) => React__default.JSX.Element;
|
|
386
386
|
|
|
387
|
+
declare const Toggle: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
|
|
388
|
+
children?: React__default.ReactNode;
|
|
389
|
+
checked?: boolean;
|
|
390
|
+
onValueChanged?: (value: boolean) => void;
|
|
391
|
+
defaultChecked?: boolean;
|
|
392
|
+
invalid?: boolean;
|
|
393
|
+
labelOnRight?: boolean;
|
|
394
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
395
|
+
|
|
396
|
+
declare const ToggleButton: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "type" | "actionType"> & {
|
|
397
|
+
checked?: boolean;
|
|
398
|
+
defaultChecked?: boolean;
|
|
399
|
+
onValueChanged?: (value: boolean) => void;
|
|
400
|
+
disabled?: boolean;
|
|
401
|
+
required?: boolean;
|
|
402
|
+
invalid?: boolean;
|
|
403
|
+
children?: React__default.ReactNode;
|
|
404
|
+
className?: string;
|
|
405
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
406
|
+
|
|
407
|
+
type ToggleButtonProps = Omit<ButtonProps, 'type' | 'actionType'> & {
|
|
408
|
+
/**
|
|
409
|
+
* Controlled state of the toggle
|
|
410
|
+
*/
|
|
411
|
+
checked?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Default value for uncontrolled component
|
|
414
|
+
*/
|
|
415
|
+
defaultChecked?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Callback function when toggle state changes
|
|
418
|
+
*/
|
|
419
|
+
onValueChanged?: (value: boolean) => void;
|
|
420
|
+
/**
|
|
421
|
+
* Disable the toggle
|
|
422
|
+
*/
|
|
423
|
+
disabled?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Make the toggle required
|
|
426
|
+
*/
|
|
427
|
+
required?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Show invalid state
|
|
430
|
+
*/
|
|
431
|
+
invalid?: boolean;
|
|
432
|
+
/**
|
|
433
|
+
* Content of the button
|
|
434
|
+
*/
|
|
435
|
+
children?: ReactNode;
|
|
436
|
+
/**
|
|
437
|
+
* Additional className for the toggle
|
|
438
|
+
*/
|
|
439
|
+
className?: string;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
interface CustomToggleProps {
|
|
443
|
+
/**
|
|
444
|
+
* Controlled state of the toggle
|
|
445
|
+
*/
|
|
446
|
+
checked?: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* Default value for uncontrolled component
|
|
449
|
+
*/
|
|
450
|
+
defaultChecked?: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Callback function when toggle state changes
|
|
453
|
+
*/
|
|
454
|
+
onValueChanged?: (value: boolean) => void;
|
|
455
|
+
/**
|
|
456
|
+
* Disable the toggle
|
|
457
|
+
*/
|
|
458
|
+
disabled?: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* Make the toggle required
|
|
461
|
+
*/
|
|
462
|
+
required?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Show invalid state
|
|
465
|
+
*/
|
|
466
|
+
invalid?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* Content to show when toggle is off
|
|
469
|
+
*/
|
|
470
|
+
offContent?: ReactNode;
|
|
471
|
+
/**
|
|
472
|
+
* Content to show when toggle is on
|
|
473
|
+
*/
|
|
474
|
+
onContent?: ReactNode;
|
|
475
|
+
/**
|
|
476
|
+
* Additional className for the toggle
|
|
477
|
+
*/
|
|
478
|
+
className?: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare const CustomToggle: React__default.ForwardRefExoticComponent<CustomToggleProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
482
|
+
|
|
483
|
+
type ChipVariantEnum = 'Filled' | 'Outlined';
|
|
484
|
+
type ChipStyleEnum = 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
|
|
485
|
+
type ChipSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
486
|
+
type ChipCornerEnum = 'Rounded' | 'Square';
|
|
487
|
+
type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
488
|
+
/**
|
|
489
|
+
* Variant of the chip.
|
|
490
|
+
* @default 'Filled'
|
|
491
|
+
*/
|
|
492
|
+
variant?: ChipVariantEnum;
|
|
493
|
+
/**
|
|
494
|
+
* Style of the chip.
|
|
495
|
+
* @default 'A'
|
|
496
|
+
*/
|
|
497
|
+
style?: ChipStyleEnum;
|
|
498
|
+
/**
|
|
499
|
+
* Size of the chip.
|
|
500
|
+
* @default 'Medium'
|
|
501
|
+
*/
|
|
502
|
+
size?: ChipSizeEnum;
|
|
503
|
+
/**
|
|
504
|
+
* Determines if the chip is disabled.
|
|
505
|
+
* @default false
|
|
506
|
+
*/
|
|
507
|
+
isDisabled?: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Icon displayed before the chip's content.
|
|
510
|
+
*/
|
|
511
|
+
leadingIcon?: ReactNode;
|
|
512
|
+
/**
|
|
513
|
+
* Icon displayed after the chip's content.
|
|
514
|
+
*/
|
|
515
|
+
trailingIcon?: ReactNode;
|
|
516
|
+
/**
|
|
517
|
+
* Click event handler for the chip.
|
|
518
|
+
*/
|
|
519
|
+
onClick?: (event?: MouseEvent<HTMLDivElement>) => void;
|
|
520
|
+
/**
|
|
521
|
+
* Additional class for styling.
|
|
522
|
+
*/
|
|
523
|
+
className?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Defines the corner shape of the chip.
|
|
526
|
+
* @default 'Rounded'
|
|
527
|
+
*/
|
|
528
|
+
corner?: ChipCornerEnum;
|
|
529
|
+
/**
|
|
530
|
+
* Determines if the chip is dismissible.
|
|
531
|
+
* @default false
|
|
532
|
+
*/
|
|
533
|
+
isDismissible?: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* Close button/icon for dismissible chips.
|
|
536
|
+
*/
|
|
537
|
+
closeIcon?: ReactNode;
|
|
538
|
+
/**
|
|
539
|
+
* Event handler for the close action when chip is dismissible.
|
|
540
|
+
*/
|
|
541
|
+
onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Chip component definition.
|
|
546
|
+
*/
|
|
547
|
+
declare const Chip: (props: ChipProps) => React__default.JSX.Element;
|
|
548
|
+
|
|
387
549
|
/**
|
|
388
550
|
* Enum for the alignment of the button-group.
|
|
389
551
|
*/
|
|
@@ -418,6 +580,60 @@ type ButtonGroupProps = {
|
|
|
418
580
|
*/
|
|
419
581
|
declare const ButtonGroup: (props: ButtonGroupProps) => React__default.JSX.Element;
|
|
420
582
|
|
|
583
|
+
interface BreadcrumbsProps {
|
|
584
|
+
/**
|
|
585
|
+
* The divider element to separate breadcrumb items.
|
|
586
|
+
* Can be a string, icon, or custom React node.
|
|
587
|
+
*/
|
|
588
|
+
divider?: ReactNode;
|
|
589
|
+
/**
|
|
590
|
+
* Additional classes for custom styling.
|
|
591
|
+
*/
|
|
592
|
+
className?: string;
|
|
593
|
+
/**
|
|
594
|
+
* The breadcrumb items to be displayed.
|
|
595
|
+
*/
|
|
596
|
+
children: ReactNode;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare const Breadcrumbs: (props: BreadcrumbsProps) => React__default.JSX.Element;
|
|
600
|
+
|
|
601
|
+
type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'type' | 'leadingIcon' | 'trailingIcon'> & {
|
|
602
|
+
/**
|
|
603
|
+
* The destination URL or path for the navigation link.
|
|
604
|
+
* If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
|
|
605
|
+
* Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
|
|
606
|
+
*
|
|
607
|
+
* @example
|
|
608
|
+
* // Internal link
|
|
609
|
+
* <NavLink to="/home">Home</NavLink>
|
|
610
|
+
*
|
|
611
|
+
* // External link
|
|
612
|
+
* <NavLink to="https://www.example.com">External</NavLink>
|
|
613
|
+
*/
|
|
614
|
+
to: string | -1;
|
|
615
|
+
/**
|
|
616
|
+
* provide a way to override the styling
|
|
617
|
+
*/
|
|
618
|
+
'component-variant'?: string;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
declare const NavLink: (props: NavLinkProps) => React__default.JSX.Element;
|
|
622
|
+
|
|
623
|
+
interface BreadcrumbProps extends Omit<NavLinkProps, 'type'> {
|
|
624
|
+
/**
|
|
625
|
+
* Flag that defines the breadcrumb state.
|
|
626
|
+
* @default false
|
|
627
|
+
*/
|
|
628
|
+
selected?: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Defines the button type used for the breadcrumb link.
|
|
631
|
+
*/
|
|
632
|
+
navLinkType?: ButtonTypeEnum;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare const Breadcrumb: (props: BreadcrumbProps) => React__default.JSX.Element;
|
|
636
|
+
|
|
421
637
|
/**
|
|
422
638
|
* Enum for the action type of the Popover.
|
|
423
639
|
*/
|
|
@@ -1031,27 +1247,44 @@ type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
|
|
|
1031
1247
|
|
|
1032
1248
|
declare const NavItem: (props: NavItemProps) => React__default.JSX.Element;
|
|
1033
1249
|
|
|
1034
|
-
type
|
|
1250
|
+
type ProgressBarOrientation = "Horizontal" | "Vertical";
|
|
1251
|
+
type ProgressBarLabelType = "Percentage" | "Text";
|
|
1252
|
+
type ProgressBarProps = {
|
|
1035
1253
|
/**
|
|
1036
|
-
*
|
|
1037
|
-
*
|
|
1038
|
-
* Otherwise, it will be treated as an internal link and rendered as a <RouterNavLink> component.
|
|
1039
|
-
*
|
|
1040
|
-
* @example
|
|
1041
|
-
* // Internal link
|
|
1042
|
-
* <NavLink to="/home">Home</NavLink>
|
|
1043
|
-
*
|
|
1044
|
-
* // External link
|
|
1045
|
-
* <NavLink to="https://www.example.com">External</NavLink>
|
|
1254
|
+
* Current progress value
|
|
1255
|
+
* @default 0
|
|
1046
1256
|
*/
|
|
1047
|
-
|
|
1257
|
+
value: number;
|
|
1048
1258
|
/**
|
|
1049
|
-
*
|
|
1259
|
+
* Minimum value of the progress bar
|
|
1260
|
+
* @default 0
|
|
1050
1261
|
*/
|
|
1051
|
-
|
|
1262
|
+
min?: number;
|
|
1263
|
+
/**
|
|
1264
|
+
* Maximum value of the progress bar
|
|
1265
|
+
* @default 100
|
|
1266
|
+
*/
|
|
1267
|
+
max?: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* Defines the orientation of the progress bar
|
|
1270
|
+
* @default "horizontal"
|
|
1271
|
+
*/
|
|
1272
|
+
orientation?: ProgressBarOrientation;
|
|
1273
|
+
/**
|
|
1274
|
+
* Determines if and how the label is displayed
|
|
1275
|
+
*/
|
|
1276
|
+
showLabel?: ProgressBarLabelType;
|
|
1277
|
+
/**
|
|
1278
|
+
* Custom label to be displayed when `showLabel` is set to "Text"
|
|
1279
|
+
*/
|
|
1280
|
+
label?: React.ReactNode;
|
|
1281
|
+
/**
|
|
1282
|
+
* Additional class for styling
|
|
1283
|
+
*/
|
|
1284
|
+
className?: string;
|
|
1052
1285
|
};
|
|
1053
1286
|
|
|
1054
|
-
declare const
|
|
1287
|
+
declare const ProgressBar: React__default.FC<ProgressBarProps>;
|
|
1055
1288
|
|
|
1056
1289
|
/**
|
|
1057
1290
|
* Popover component that displays a floating content element in relation to a target element.
|
|
@@ -1280,7 +1513,7 @@ interface TabContentProps {
|
|
|
1280
1513
|
className?: string;
|
|
1281
1514
|
}
|
|
1282
1515
|
|
|
1283
|
-
declare const TabContent: (props: TabContentProps) => React__default.JSX.Element
|
|
1516
|
+
declare const TabContent: (props: TabContentProps) => React__default.JSX.Element;
|
|
1284
1517
|
|
|
1285
1518
|
type TabItemStyleEnum = 'Filled' | 'Underlined';
|
|
1286
1519
|
type TabItemProps = Omit<ButtonProps, 'actionType' | 'appearance' | 'size' | 'style' | 'type'> & {
|
|
@@ -1541,6 +1774,122 @@ declare const Grid: (props: GridProps) => React__default.JSX.Element;
|
|
|
1541
1774
|
|
|
1542
1775
|
declare const GridItem: (props: GridItemProps) => React$1.JSX.Element;
|
|
1543
1776
|
|
|
1777
|
+
type AccordionSummaryProps = {
|
|
1778
|
+
children: ReactNode;
|
|
1779
|
+
className?: string;
|
|
1780
|
+
/**
|
|
1781
|
+
* Custom expand/collapse icon element to override the default icon.
|
|
1782
|
+
* It will rotate 90 degrees clockwise when the accordion is expanded.
|
|
1783
|
+
*/
|
|
1784
|
+
expandIcon?: ReactNode;
|
|
1785
|
+
};
|
|
1786
|
+
type AccordionDetailsProps = {
|
|
1787
|
+
/**
|
|
1788
|
+
* The content to be displayed in the accordion details section.
|
|
1789
|
+
*/
|
|
1790
|
+
children: ReactNode;
|
|
1791
|
+
/**
|
|
1792
|
+
* Optional CSS class name for custom styling.
|
|
1793
|
+
*/
|
|
1794
|
+
className?: string;
|
|
1795
|
+
};
|
|
1796
|
+
type AccordionProps = {
|
|
1797
|
+
children: ReactNode;
|
|
1798
|
+
className?: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* Whether the accordion is expanded by default.
|
|
1801
|
+
* @default false
|
|
1802
|
+
*/
|
|
1803
|
+
defaultExpanded?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* Controls the expanded state when using controlled mode.
|
|
1806
|
+
* Use this prop along with onChange for controlled behavior.
|
|
1807
|
+
*/
|
|
1808
|
+
expanded?: boolean;
|
|
1809
|
+
/**
|
|
1810
|
+
* Callback function when the accordion is expanded/collapsed.
|
|
1811
|
+
* @param isOpen - The new expanded state of the accordion.
|
|
1812
|
+
*/
|
|
1813
|
+
onChange?: (isOpen: boolean) => void;
|
|
1814
|
+
/**
|
|
1815
|
+
* Unique identifier for the accordion.
|
|
1816
|
+
* This is used to identify the accordion in the group.
|
|
1817
|
+
*/
|
|
1818
|
+
name?: string;
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1821
|
+
declare const AccordionSummary: (props: AccordionSummaryProps) => React__default.JSX.Element;
|
|
1822
|
+
declare const AccordionDetails: (props: AccordionDetailsProps) => React__default.JSX.Element;
|
|
1823
|
+
declare const Accordion: (props: AccordionProps) => React__default.JSX.Element;
|
|
1824
|
+
|
|
1825
|
+
type AccordionGroupProps = {
|
|
1826
|
+
children: ReactNode;
|
|
1827
|
+
className?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* Unique identifier for the accordion group.
|
|
1830
|
+
* This will be passed to the accordions as a prop.
|
|
1831
|
+
*/
|
|
1832
|
+
name?: string;
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1835
|
+
declare const AccordionGroup: (props: AccordionGroupProps) => React__default.JSX.Element;
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Defines the type of modal footer layout.
|
|
1839
|
+
* @default "1 button"
|
|
1840
|
+
*/
|
|
1841
|
+
type ModalFooterTypeEnum = "1 button" | "2 buttons";
|
|
1842
|
+
/**
|
|
1843
|
+
* Props for the ModalFooter component.
|
|
1844
|
+
*/
|
|
1845
|
+
type ModalFooterProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
1846
|
+
/**
|
|
1847
|
+
* Determines whether the footer contains one or two buttons.
|
|
1848
|
+
* @default "1 button"
|
|
1849
|
+
*/
|
|
1850
|
+
type?: ModalFooterTypeEnum;
|
|
1851
|
+
/**
|
|
1852
|
+
* The primary button element.
|
|
1853
|
+
*/
|
|
1854
|
+
primaryButton?: ReactNode;
|
|
1855
|
+
/**
|
|
1856
|
+
* The secondary button element (only applicable when type is "2 buttons").
|
|
1857
|
+
*/
|
|
1858
|
+
secondaryButton?: ReactNode;
|
|
1859
|
+
/**
|
|
1860
|
+
* Additional class for styling.
|
|
1861
|
+
*/
|
|
1862
|
+
className?: string;
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Modal Footer component for displaying footer actions in a modal.
|
|
1867
|
+
*/
|
|
1868
|
+
declare const ModalFooter: React__default.FC<ModalFooterProps>;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* Props for the ModalHeader component.
|
|
1872
|
+
*/
|
|
1873
|
+
type ModalHeaderProps = {
|
|
1874
|
+
/**
|
|
1875
|
+
* The title to be displayed in the header.
|
|
1876
|
+
*/
|
|
1877
|
+
title?: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* An optional icon button to display in the header.
|
|
1880
|
+
*/
|
|
1881
|
+
iconButton?: ReactNode;
|
|
1882
|
+
/**
|
|
1883
|
+
* Additional CSS class names to apply to the modal header.
|
|
1884
|
+
*/
|
|
1885
|
+
className?: string;
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Modal Header component definition.
|
|
1890
|
+
*/
|
|
1891
|
+
declare const ModalHeader: (props: ModalHeaderProps) => React__default.JSX.Element;
|
|
1892
|
+
|
|
1544
1893
|
declare const Form: <T extends FormState>(props: FormProviderProps<T> & FormProps) => React__default.JSX.Element;
|
|
1545
1894
|
|
|
1546
1895
|
type TableProps = TableHTMLAttributes<HTMLTableElement>;
|
|
@@ -1559,4 +1908,4 @@ type ThemeProviderProps = {
|
|
|
1559
1908
|
declare const ThemeContext: React__default.Context<ThemeContextType>;
|
|
1560
1909
|
declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
|
|
1561
1910
|
|
|
1562
|
-
export { ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, DatePicker, type DatePickerProps, 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, MenuItem, type MenuItemProps, Modal, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, Option, type OptionProps, type OverlayDirectionEnum, Password, Popover, type PopoverHandle, type PopoverProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Select, type SelectProps, SelectProvider, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, 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, useField, useSelectContext, useTab };
|
|
1911
|
+
export { Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, Breadcrumbs, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Chip, type ChipProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, DatePicker, type DatePickerProps, 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, MenuItem, type MenuItemProps, Modal, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, Option, type OptionProps, type OverlayDirectionEnum, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Select, type SelectProps, SelectProvider, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, 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, useField, useSelectContext, useTab };
|