@delightui/components 0.1.37 → 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.
Files changed (86) hide show
  1. package/dist/cjs/components/atoms/Chip/Chip.d.ts +7 -0
  2. package/dist/cjs/components/atoms/Chip/Chip.types.d.ts +61 -0
  3. package/dist/cjs/components/atoms/Chip/index.d.ts +4 -0
  4. package/dist/cjs/components/atoms/CustomToggle/CustomToggle.d.ts +4 -0
  5. package/dist/cjs/components/atoms/CustomToggle/CustomToggle.types.d.ts +39 -0
  6. package/dist/cjs/components/atoms/CustomToggle/index.d.ts +3 -0
  7. package/dist/cjs/components/atoms/Toggle/Toggle.d.ts +10 -0
  8. package/dist/cjs/components/atoms/Toggle/Toggle.types.d.ts +31 -0
  9. package/dist/cjs/components/atoms/Toggle/index.d.ts +2 -0
  10. package/dist/cjs/components/atoms/ToggleButton/ToggleButton.d.ts +12 -0
  11. package/dist/cjs/components/atoms/ToggleButton/ToggleButton.types.d.ts +36 -0
  12. package/dist/cjs/components/atoms/ToggleButton/index.d.ts +3 -0
  13. package/dist/cjs/components/atoms/index.d.ts +8 -0
  14. package/dist/cjs/components/molecules/Accordion/Accordion.d.ts +6 -0
  15. package/dist/cjs/components/molecules/Accordion/Accordion.types.d.ts +44 -0
  16. package/dist/cjs/components/molecules/Accordion/AccordionGroup/AccordionGroup.d.ts +4 -0
  17. package/dist/cjs/components/molecules/Accordion/AccordionGroup/AccordionGroup.types.d.ts +10 -0
  18. package/dist/cjs/components/molecules/Accordion/AccordionGroup/index.d.ts +2 -0
  19. package/dist/cjs/components/molecules/Accordion/index.d.ts +4 -0
  20. package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.d.ts +4 -0
  21. package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.types.d.ts +13 -0
  22. package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumb/index.d.ts +4 -0
  23. package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  24. package/dist/cjs/components/molecules/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
  25. package/dist/cjs/components/molecules/Breadcrumbs/index.d.ts +6 -0
  26. package/dist/cjs/components/molecules/ModalFooter/ModalFooter.d.ts +7 -0
  27. package/dist/cjs/components/molecules/ModalFooter/ModalFooter.types.d.ts +28 -0
  28. package/dist/cjs/components/molecules/ModalFooter/index.d.ts +4 -0
  29. package/dist/cjs/components/molecules/ModalHeader/ModalHeader.d.ts +7 -0
  30. package/dist/cjs/components/molecules/ModalHeader/ModalHeader.types.d.ts +18 -0
  31. package/dist/cjs/components/molecules/ModalHeader/index.d.ts +4 -0
  32. package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -1
  33. package/dist/cjs/components/molecules/ProgressBar/ProgressBar.d.ts +4 -0
  34. package/dist/cjs/components/molecules/ProgressBar/ProgressBar.types.d.ts +36 -0
  35. package/dist/cjs/components/molecules/ProgressBar/ProgressBar.utils.d.ts +1 -0
  36. package/dist/cjs/components/molecules/ProgressBar/index.d.ts +4 -0
  37. package/dist/cjs/components/molecules/index.d.ts +9 -0
  38. package/dist/cjs/components/organisms/Form/FormExample.d.ts +2 -0
  39. package/dist/cjs/components/utils.d.ts +2 -1
  40. package/dist/cjs/library.css +612 -112
  41. package/dist/cjs/library.js +3 -3
  42. package/dist/cjs/library.js.map +1 -1
  43. package/dist/esm/components/atoms/Chip/Chip.d.ts +7 -0
  44. package/dist/esm/components/atoms/Chip/Chip.types.d.ts +61 -0
  45. package/dist/esm/components/atoms/Chip/index.d.ts +4 -0
  46. package/dist/esm/components/atoms/CustomToggle/CustomToggle.d.ts +4 -0
  47. package/dist/esm/components/atoms/CustomToggle/CustomToggle.types.d.ts +39 -0
  48. package/dist/esm/components/atoms/CustomToggle/index.d.ts +3 -0
  49. package/dist/esm/components/atoms/Toggle/Toggle.d.ts +10 -0
  50. package/dist/esm/components/atoms/Toggle/Toggle.types.d.ts +31 -0
  51. package/dist/esm/components/atoms/Toggle/index.d.ts +2 -0
  52. package/dist/esm/components/atoms/ToggleButton/ToggleButton.d.ts +12 -0
  53. package/dist/esm/components/atoms/ToggleButton/ToggleButton.types.d.ts +36 -0
  54. package/dist/esm/components/atoms/ToggleButton/index.d.ts +3 -0
  55. package/dist/esm/components/atoms/index.d.ts +8 -0
  56. package/dist/esm/components/molecules/Accordion/Accordion.d.ts +6 -0
  57. package/dist/esm/components/molecules/Accordion/Accordion.types.d.ts +44 -0
  58. package/dist/esm/components/molecules/Accordion/AccordionGroup/AccordionGroup.d.ts +4 -0
  59. package/dist/esm/components/molecules/Accordion/AccordionGroup/AccordionGroup.types.d.ts +10 -0
  60. package/dist/esm/components/molecules/Accordion/AccordionGroup/index.d.ts +2 -0
  61. package/dist/esm/components/molecules/Accordion/index.d.ts +4 -0
  62. package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.d.ts +4 -0
  63. package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/Breadcrumb.types.d.ts +13 -0
  64. package/dist/esm/components/molecules/Breadcrumbs/Breadcrumb/index.d.ts +4 -0
  65. package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  66. package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
  67. package/dist/esm/components/molecules/Breadcrumbs/index.d.ts +6 -0
  68. package/dist/esm/components/molecules/ModalFooter/ModalFooter.d.ts +7 -0
  69. package/dist/esm/components/molecules/ModalFooter/ModalFooter.types.d.ts +28 -0
  70. package/dist/esm/components/molecules/ModalFooter/index.d.ts +4 -0
  71. package/dist/esm/components/molecules/ModalHeader/ModalHeader.d.ts +7 -0
  72. package/dist/esm/components/molecules/ModalHeader/ModalHeader.types.d.ts +18 -0
  73. package/dist/esm/components/molecules/ModalHeader/index.d.ts +4 -0
  74. package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -1
  75. package/dist/esm/components/molecules/ProgressBar/ProgressBar.d.ts +4 -0
  76. package/dist/esm/components/molecules/ProgressBar/ProgressBar.types.d.ts +36 -0
  77. package/dist/esm/components/molecules/ProgressBar/ProgressBar.utils.d.ts +1 -0
  78. package/dist/esm/components/molecules/ProgressBar/index.d.ts +4 -0
  79. package/dist/esm/components/molecules/index.d.ts +9 -0
  80. package/dist/esm/components/organisms/Form/FormExample.d.ts +2 -0
  81. package/dist/esm/components/utils.d.ts +2 -1
  82. package/dist/esm/library.css +612 -112
  83. package/dist/esm/library.js +3 -3
  84. package/dist/esm/library.js.map +1 -1
  85. package/dist/index.d.ts +366 -17
  86. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ChipProps } from './Chip.types';
3
+ /**
4
+ * Chip component definition.
5
+ */
6
+ declare const Chip: (props: ChipProps) => React.JSX.Element;
7
+ export default Chip;
@@ -0,0 +1,61 @@
1
+ import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
2
+ export type ChipVariantEnum = 'Filled' | 'Outlined';
3
+ export type ChipStyleEnum = 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
4
+ export type ChipSizeEnum = 'Small' | 'Medium' | 'Large';
5
+ export type ChipCornerEnum = 'Rounded' | 'Square';
6
+ export type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
7
+ /**
8
+ * Variant of the chip.
9
+ * @default 'Filled'
10
+ */
11
+ variant?: ChipVariantEnum;
12
+ /**
13
+ * Style of the chip.
14
+ * @default 'A'
15
+ */
16
+ style?: ChipStyleEnum;
17
+ /**
18
+ * Size of the chip.
19
+ * @default 'Medium'
20
+ */
21
+ size?: ChipSizeEnum;
22
+ /**
23
+ * Determines if the chip is disabled.
24
+ * @default false
25
+ */
26
+ isDisabled?: boolean;
27
+ /**
28
+ * Icon displayed before the chip's content.
29
+ */
30
+ leadingIcon?: ReactNode;
31
+ /**
32
+ * Icon displayed after the chip's content.
33
+ */
34
+ trailingIcon?: ReactNode;
35
+ /**
36
+ * Click event handler for the chip.
37
+ */
38
+ onClick?: (event?: MouseEvent<HTMLDivElement>) => void;
39
+ /**
40
+ * Additional class for styling.
41
+ */
42
+ className?: string;
43
+ /**
44
+ * Defines the corner shape of the chip.
45
+ * @default 'Rounded'
46
+ */
47
+ corner?: ChipCornerEnum;
48
+ /**
49
+ * Determines if the chip is dismissible.
50
+ * @default false
51
+ */
52
+ isDismissible?: boolean;
53
+ /**
54
+ * Close button/icon for dismissible chips.
55
+ */
56
+ closeIcon?: ReactNode;
57
+ /**
58
+ * Event handler for the close action when chip is dismissible.
59
+ */
60
+ onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
61
+ };
@@ -0,0 +1,4 @@
1
+ import Chip from './Chip';
2
+ import type { ChipProps } from './Chip.types';
3
+ export type { ChipProps };
4
+ export default Chip;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CustomToggleProps } from './CustomToggle.types';
3
+ declare const CustomToggle: React.ForwardRefExoticComponent<CustomToggleProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default CustomToggle;
@@ -0,0 +1,39 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CustomToggleProps {
3
+ /**
4
+ * Controlled state of the toggle
5
+ */
6
+ checked?: boolean;
7
+ /**
8
+ * Default value for uncontrolled component
9
+ */
10
+ defaultChecked?: boolean;
11
+ /**
12
+ * Callback function when toggle state changes
13
+ */
14
+ onValueChanged?: (value: boolean) => void;
15
+ /**
16
+ * Disable the toggle
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Make the toggle required
21
+ */
22
+ required?: boolean;
23
+ /**
24
+ * Show invalid state
25
+ */
26
+ invalid?: boolean;
27
+ /**
28
+ * Content to show when toggle is off
29
+ */
30
+ offContent?: ReactNode;
31
+ /**
32
+ * Content to show when toggle is on
33
+ */
34
+ onContent?: ReactNode;
35
+ /**
36
+ * Additional className for the toggle
37
+ */
38
+ className?: string;
39
+ }
@@ -0,0 +1,3 @@
1
+ import CustomToggle from './CustomToggle';
2
+ export default CustomToggle;
3
+ export * from './CustomToggle.types';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare const Toggle: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
3
+ children?: React.ReactNode;
4
+ checked?: boolean;
5
+ onValueChanged?: (value: boolean) => void;
6
+ defaultChecked?: boolean;
7
+ invalid?: boolean;
8
+ labelOnRight?: boolean;
9
+ } & React.RefAttributes<HTMLInputElement>>;
10
+ export default Toggle;
@@ -0,0 +1,31 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'checked'> & {
3
+ /**
4
+ * The label of the toggle.
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * The checked state of the toggle.
9
+ */
10
+ checked?: boolean;
11
+ /**
12
+ * Callback function when the toggle state changes.
13
+ * @param value - The new checked state of the toggle.
14
+ */
15
+ onValueChanged?: (value: boolean) => void;
16
+ /**
17
+ * Default checked state of the toggle.
18
+ * @default false
19
+ */
20
+ defaultChecked?: boolean;
21
+ /**
22
+ * Indicates if the toggle is invalid.
23
+ * @default false
24
+ */
25
+ invalid?: boolean;
26
+ /**
27
+ * Flag to show the label on the right side of the toggle.
28
+ * @default false
29
+ */
30
+ labelOnRight?: boolean;
31
+ };
@@ -0,0 +1,2 @@
1
+ import Toggle from './Toggle';
2
+ export default Toggle;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ declare const ToggleButton: React.ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "type" | "actionType"> & {
3
+ checked?: boolean;
4
+ defaultChecked?: boolean;
5
+ onValueChanged?: (value: boolean) => void;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ invalid?: boolean;
9
+ children?: React.ReactNode;
10
+ className?: string;
11
+ } & React.RefAttributes<HTMLInputElement>>;
12
+ export default ToggleButton;
@@ -0,0 +1,36 @@
1
+ import { ReactNode } from 'react';
2
+ import { ButtonProps } from '../Button/Button.types';
3
+ export type ToggleButtonProps = Omit<ButtonProps, 'type' | 'actionType'> & {
4
+ /**
5
+ * Controlled state of the toggle
6
+ */
7
+ checked?: boolean;
8
+ /**
9
+ * Default value for uncontrolled component
10
+ */
11
+ defaultChecked?: boolean;
12
+ /**
13
+ * Callback function when toggle state changes
14
+ */
15
+ onValueChanged?: (value: boolean) => void;
16
+ /**
17
+ * Disable the toggle
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Make the toggle required
22
+ */
23
+ required?: boolean;
24
+ /**
25
+ * Show invalid state
26
+ */
27
+ invalid?: boolean;
28
+ /**
29
+ * Content of the button
30
+ */
31
+ children?: ReactNode;
32
+ /**
33
+ * Additional className for the toggle
34
+ */
35
+ className?: string;
36
+ };
@@ -0,0 +1,3 @@
1
+ import ToggleButton from './ToggleButton';
2
+ export default ToggleButton;
3
+ export * from './ToggleButton.types';
@@ -10,6 +10,10 @@ export { default as Text } from './Text';
10
10
  export { default as TextArea } from './TextArea';
11
11
  export { default as ResponsiveComponent } from './ResponsiveComponent';
12
12
  export { default as ListItem } from './ListItem';
13
+ export { default as Toggle } from './Toggle';
14
+ export { default as ToggleButton } from './ToggleButton';
15
+ export { default as CustomToggle } from './CustomToggle';
16
+ export { default as Chip } from './Chip';
13
17
  export * from './ActionImage';
14
18
  export * from './Button';
15
19
  export * from './Icon';
@@ -22,3 +26,7 @@ export * from './Text';
22
26
  export * from './TextArea';
23
27
  export * from './ResponsiveComponent';
24
28
  export * from './ListItem';
29
+ export * from './Toggle';
30
+ export * from './ToggleButton';
31
+ export * from './CustomToggle';
32
+ export * from './Chip';
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { AccordionDetailsProps, AccordionProps, AccordionSummaryProps } from './Accordion.types';
3
+ declare const AccordionSummary: (props: AccordionSummaryProps) => React.JSX.Element;
4
+ declare const AccordionDetails: (props: AccordionDetailsProps) => React.JSX.Element;
5
+ declare const Accordion: (props: AccordionProps) => React.JSX.Element;
6
+ export { Accordion, AccordionDetails, AccordionSummary };
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from "react";
2
+ export type AccordionSummaryProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ /**
6
+ * Custom expand/collapse icon element to override the default icon.
7
+ * It will rotate 90 degrees clockwise when the accordion is expanded.
8
+ */
9
+ expandIcon?: ReactNode;
10
+ };
11
+ export type AccordionDetailsProps = {
12
+ /**
13
+ * The content to be displayed in the accordion details section.
14
+ */
15
+ children: ReactNode;
16
+ /**
17
+ * Optional CSS class name for custom styling.
18
+ */
19
+ className?: string;
20
+ };
21
+ export type AccordionProps = {
22
+ children: ReactNode;
23
+ className?: string;
24
+ /**
25
+ * Whether the accordion is expanded by default.
26
+ * @default false
27
+ */
28
+ defaultExpanded?: boolean;
29
+ /**
30
+ * Controls the expanded state when using controlled mode.
31
+ * Use this prop along with onChange for controlled behavior.
32
+ */
33
+ expanded?: boolean;
34
+ /**
35
+ * Callback function when the accordion is expanded/collapsed.
36
+ * @param isOpen - The new expanded state of the accordion.
37
+ */
38
+ onChange?: (isOpen: boolean) => void;
39
+ /**
40
+ * Unique identifier for the accordion.
41
+ * This is used to identify the accordion in the group.
42
+ */
43
+ name?: string;
44
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AccordionGroupProps } from './AccordionGroup.types';
3
+ declare const AccordionGroup: (props: AccordionGroupProps) => React.JSX.Element;
4
+ export default AccordionGroup;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type AccordionGroupProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ /**
6
+ * Unique identifier for the accordion group.
7
+ * This will be passed to the accordions as a prop.
8
+ */
9
+ name?: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ import AccordionGroup from './AccordionGroup';
2
+ export default AccordionGroup;
@@ -0,0 +1,4 @@
1
+ import { Accordion, AccordionDetails, AccordionSummary } from './Accordion';
2
+ import AccordionGroup from './AccordionGroup';
3
+ export { Accordion, AccordionDetails, AccordionGroup, AccordionSummary };
4
+ export default Accordion;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbProps } from './Breadcrumb.types';
3
+ declare const Breadcrumb: (props: BreadcrumbProps) => React.JSX.Element;
4
+ export default Breadcrumb;
@@ -0,0 +1,13 @@
1
+ import { NavLinkProps } from '../../Nav/NavLink';
2
+ import { ButtonTypeEnum } from '../../../atoms/Button/Button.types';
3
+ export interface BreadcrumbProps extends Omit<NavLinkProps, 'type'> {
4
+ /**
5
+ * Flag that defines the breadcrumb state.
6
+ * @default false
7
+ */
8
+ selected?: boolean;
9
+ /**
10
+ * Defines the button type used for the breadcrumb link.
11
+ */
12
+ navLinkType?: ButtonTypeEnum;
13
+ }
@@ -0,0 +1,4 @@
1
+ import Breadcrumb from './Breadcrumb';
2
+ import type { BreadcrumbProps } from './Breadcrumb.types';
3
+ export type { BreadcrumbProps };
4
+ export default Breadcrumb;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbsProps } from './Breadcrumbs.types';
3
+ declare const Breadcrumbs: (props: BreadcrumbsProps) => React.JSX.Element;
4
+ export default Breadcrumbs;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface BreadcrumbsProps {
3
+ /**
4
+ * The divider element to separate breadcrumb items.
5
+ * Can be a string, icon, or custom React node.
6
+ */
7
+ divider?: ReactNode;
8
+ /**
9
+ * Additional classes for custom styling.
10
+ */
11
+ className?: string;
12
+ /**
13
+ * The breadcrumb items to be displayed.
14
+ */
15
+ children: ReactNode;
16
+ }
@@ -0,0 +1,6 @@
1
+ import Breadcrumbs from './Breadcrumbs';
2
+ import type { BreadcrumbsProps } from './Breadcrumbs.types';
3
+ export { default as Breadcrumb } from './Breadcrumb';
4
+ export * from './Breadcrumb';
5
+ export type { BreadcrumbsProps };
6
+ export default Breadcrumbs;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ModalFooterProps } from "./ModalFooter.types";
3
+ /**
4
+ * Modal Footer component for displaying footer actions in a modal.
5
+ */
6
+ declare const ModalFooter: React.FC<ModalFooterProps>;
7
+ export default ModalFooter;
@@ -0,0 +1,28 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ /**
3
+ * Defines the type of modal footer layout.
4
+ * @default "1 button"
5
+ */
6
+ export type ModalFooterTypeEnum = "1 button" | "2 buttons";
7
+ /**
8
+ * Props for the ModalFooter component.
9
+ */
10
+ export type ModalFooterProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
11
+ /**
12
+ * Determines whether the footer contains one or two buttons.
13
+ * @default "1 button"
14
+ */
15
+ type?: ModalFooterTypeEnum;
16
+ /**
17
+ * The primary button element.
18
+ */
19
+ primaryButton?: ReactNode;
20
+ /**
21
+ * The secondary button element (only applicable when type is "2 buttons").
22
+ */
23
+ secondaryButton?: ReactNode;
24
+ /**
25
+ * Additional class for styling.
26
+ */
27
+ className?: string;
28
+ };
@@ -0,0 +1,4 @@
1
+ import ModalFooter from './ModalFooter';
2
+ import type { ModalFooterProps } from './ModalFooter.types';
3
+ export type { ModalFooterProps };
4
+ export default ModalFooter;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ModalHeaderProps } from './ModalHeader.types';
3
+ /**
4
+ * Modal Header component definition.
5
+ */
6
+ declare const ModalHeader: (props: ModalHeaderProps) => React.JSX.Element;
7
+ export default ModalHeader;
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the ModalHeader component.
4
+ */
5
+ export type ModalHeaderProps = {
6
+ /**
7
+ * The title to be displayed in the header.
8
+ */
9
+ title?: string;
10
+ /**
11
+ * An optional icon button to display in the header.
12
+ */
13
+ iconButton?: ReactNode;
14
+ /**
15
+ * Additional CSS class names to apply to the modal header.
16
+ */
17
+ className?: string;
18
+ };
@@ -0,0 +1,4 @@
1
+ import ModalHeader from './ModalHeader';
2
+ import type { ModalHeaderProps } from './ModalHeader.types';
3
+ export type { ModalHeaderProps };
4
+ export default ModalHeader;
@@ -1,6 +1,6 @@
1
1
  import { LinkProps as RouteLinkProps } from 'react-router-dom';
2
2
  import { ButtonProps } from '../../../atoms/Button/Button.types';
3
- export type NavLinkProps = Omit<RouteLinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'type'> & {
3
+ export type NavLinkProps = Omit<RouteLinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'type' | 'leadingIcon' | 'trailingIcon'> & {
4
4
  /**
5
5
  * The destination URL or path for the navigation link.
6
6
  * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ProgressBarProps } from "./ProgressBar.types";
3
+ declare const ProgressBar: React.FC<ProgressBarProps>;
4
+ export default ProgressBar;
@@ -0,0 +1,36 @@
1
+ export type ProgressBarOrientation = "Horizontal" | "Vertical";
2
+ export type ProgressBarLabelType = "Percentage" | "Text";
3
+ export type ProgressBarProps = {
4
+ /**
5
+ * Current progress value
6
+ * @default 0
7
+ */
8
+ value: number;
9
+ /**
10
+ * Minimum value of the progress bar
11
+ * @default 0
12
+ */
13
+ min?: number;
14
+ /**
15
+ * Maximum value of the progress bar
16
+ * @default 100
17
+ */
18
+ max?: number;
19
+ /**
20
+ * Defines the orientation of the progress bar
21
+ * @default "horizontal"
22
+ */
23
+ orientation?: ProgressBarOrientation;
24
+ /**
25
+ * Determines if and how the label is displayed
26
+ */
27
+ showLabel?: ProgressBarLabelType;
28
+ /**
29
+ * Custom label to be displayed when `showLabel` is set to "Text"
30
+ */
31
+ label?: React.ReactNode;
32
+ /**
33
+ * Additional class for styling
34
+ */
35
+ className?: string;
36
+ };
@@ -0,0 +1 @@
1
+ export declare const calculatePercentageValue: (value: number, min: number, max: number) => number;
@@ -0,0 +1,4 @@
1
+ import ProgressBar from './ProgressBar';
2
+ import type { ProgressBarProps } from './ProgressBar.types';
3
+ export type { ProgressBarProps };
4
+ export default ProgressBar;
@@ -1,9 +1,11 @@
1
1
  export { default as ButtonGroup } from './ButtonGroup';
2
+ export { default as Breadcrumbs, Breadcrumb } from './Breadcrumbs';
2
3
  export { default as ContextMenu } from './ContextMenu';
3
4
  export { default as DatePicker } from './DatePicker';
4
5
  export { default as FormField } from './FormField';
5
6
  export { default as Modal } from './Modal';
6
7
  export { default as Nav, NavItem, NavLink } from './Nav';
8
+ export { default as ProgressBar } from './ProgressBar';
7
9
  export { default as Popover } from './Popover';
8
10
  export { Option, default as Select } from './Select';
9
11
  export { default as TabContent } from './TabContent';
@@ -18,6 +20,9 @@ export { default as ActionCard } from './ActionCard';
18
20
  export { default as Card } from './Card';
19
21
  export { default as GridList } from './GridList';
20
22
  export { default as Grid } from './Grid';
23
+ export { default as Accordion } from './Accordion';
24
+ export { default as ModalFooter } from './ModalFooter';
25
+ export { default as ModalHeader } from './ModalHeader';
21
26
  export * from './ActionCard';
22
27
  export * from './Card';
23
28
  export * from './ButtonGroup';
@@ -26,6 +31,7 @@ export * from './DatePicker';
26
31
  export * from './FormField';
27
32
  export * from './Modal';
28
33
  export * from './Nav';
34
+ export * from './ProgressBar';
29
35
  export * from './Popover';
30
36
  export * from './Select';
31
37
  export * from './TabContent';
@@ -38,3 +44,6 @@ export * from './Tabs';
38
44
  export * from './List';
39
45
  export * from './GridList';
40
46
  export * from './Grid';
47
+ export * from './Accordion';
48
+ export * from './ModalFooter';
49
+ export * from './ModalHeader';
@@ -9,6 +9,8 @@ export type ProfileFormValues = {
9
9
  date?: string | Date;
10
10
  checked?: boolean;
11
11
  password?: string;
12
+ notifications?: boolean;
13
+ toggleButtonState?: boolean;
12
14
  };
13
15
  declare const ProfileForm: () => React.JSX.Element;
14
16
  export default ProfileForm;
@@ -9,6 +9,7 @@ import { TextTypeEnum, TextWeightEnum } from './atoms/Text';
9
9
  * @param children - The child nodes to be rendered.
10
10
  * @param defaultWeight - Default weight for <Text> component when wrapping strings or numbers.
11
11
  * @param defaultType - Default type for <Text> component when wrapping strings or numbers.
12
+ * @param appendProps - Additional props to be appended to the child nodes.
12
13
  * @returns The rendered React element.
13
14
  */
14
15
  export declare const renderChildren: (children: ReactNode, options?: {
@@ -17,7 +18,7 @@ export declare const renderChildren: (children: ReactNode, options?: {
17
18
  noWrap?: boolean;
18
19
  whiteSpaceNoWrap?: boolean;
19
20
  as?: "span";
20
- }) => ReactElement;
21
+ }, appendProps?: Record<string, any>) => ReactElement;
21
22
  /**
22
23
  * Utility function to merge multiple refs into a single ref callback function.
23
24
  *