@delightui/components 0.1.39 → 0.1.41

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 (214) hide show
  1. package/dist/cjs/components/atoms/Checkbox/Checkbox.d.ts +10 -2
  2. package/dist/cjs/components/atoms/Checkbox/Checkbox.types.d.ts +41 -0
  3. package/dist/cjs/components/atoms/Checkbox/index.d.ts +1 -0
  4. package/dist/cjs/components/atoms/CheckboxItem/CheckboxItem.d.ts +8 -0
  5. package/dist/cjs/components/atoms/CheckboxItem/CheckboxItem.types.d.ts +22 -0
  6. package/dist/cjs/components/atoms/CheckboxItem/index.d.ts +3 -0
  7. package/dist/cjs/components/atoms/Chip/Chip.types.d.ts +5 -5
  8. package/dist/cjs/components/atoms/ListItem/ListItem.types.d.ts +4 -0
  9. package/dist/cjs/components/atoms/RadioButton/RadioButton.d.ts +11 -0
  10. package/dist/cjs/components/atoms/RadioButton/RadioButton.types.d.ts +37 -0
  11. package/dist/cjs/components/atoms/RadioButton/index.d.ts +3 -0
  12. package/dist/cjs/components/atoms/RadioButtonItem/RadioButtonItem.d.ts +8 -0
  13. package/dist/cjs/components/atoms/RadioButtonItem/RadioButtonItem.types.d.ts +22 -0
  14. package/dist/cjs/components/atoms/RadioButtonItem/index.d.ts +2 -0
  15. package/dist/cjs/components/atoms/Slider/Slider.d.ts +4 -0
  16. package/dist/cjs/components/atoms/Slider/Slider.types.d.ts +53 -0
  17. package/dist/cjs/components/atoms/Slider/index.d.ts +4 -0
  18. package/dist/cjs/components/atoms/ToastNotification/ToastNotification.d.ts +4 -0
  19. package/dist/cjs/components/atoms/ToastNotification/ToastNotification.types.d.ts +44 -0
  20. package/dist/cjs/components/atoms/ToastNotification/index.d.ts +4 -0
  21. package/dist/cjs/components/atoms/Toggle/Toggle.d.ts +1 -1
  22. package/dist/cjs/components/atoms/Toggle/Toggle.types.d.ts +4 -3
  23. package/dist/cjs/components/atoms/index.d.ts +6 -0
  24. package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.Context.d.ts +4 -0
  25. package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +4 -0
  26. package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +53 -0
  27. package/dist/cjs/components/molecules/CheckboxGroup/index.d.ts +3 -0
  28. package/dist/cjs/components/molecules/ChipInput/ChipInput.d.ts +4 -0
  29. package/dist/cjs/components/molecules/ChipInput/ChipInput.types.d.ts +16 -0
  30. package/dist/cjs/components/molecules/ContextMenu/ContextMenu.d.ts +4 -6
  31. package/dist/cjs/components/molecules/ContextMenu/ContextMenu.types.d.ts +3 -64
  32. package/dist/cjs/components/molecules/ContextMenu/index.d.ts +2 -4
  33. package/dist/cjs/components/molecules/List/List.types.d.ts +30 -0
  34. package/dist/cjs/components/molecules/List/components/SortableListItem.d.ts +2 -1
  35. package/dist/cjs/components/molecules/List/components/SortableTrigger.d.ts +3 -0
  36. package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +8 -2
  37. package/dist/cjs/components/molecules/Pagination/Pagination.d.ts +3 -0
  38. package/dist/cjs/components/molecules/Pagination/Pagination.presenter.d.ts +11 -0
  39. package/dist/cjs/components/molecules/Pagination/Pagination.types.d.ts +9 -0
  40. package/dist/cjs/components/molecules/Pagination/index.d.ts +2 -0
  41. package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.d.ts +3 -0
  42. package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.presenter.d.ts +10 -0
  43. package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.types.d.ts +7 -0
  44. package/dist/cjs/components/molecules/PaginationNumberField/index.d.ts +2 -0
  45. package/dist/cjs/components/molecules/RadioGroup/RadioGroup.Context.d.ts +21 -0
  46. package/dist/cjs/components/molecules/RadioGroup/RadioGroup.d.ts +4 -0
  47. package/dist/cjs/components/molecules/RadioGroup/RadioGroup.types.d.ts +36 -0
  48. package/dist/cjs/components/molecules/RadioGroup/index.d.ts +3 -0
  49. package/dist/cjs/components/molecules/index.d.ts +23 -32
  50. package/dist/cjs/components/organisms/Dropzone/Dropzone.d.ts +5 -0
  51. package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +102 -0
  52. package/dist/cjs/components/organisms/Dropzone/components/DropzoneClear.d.ts +4 -0
  53. package/dist/cjs/components/organisms/Dropzone/components/DropzoneFilename.d.ts +4 -0
  54. package/dist/cjs/components/organisms/Dropzone/components/DropzoneSupportedFormats.d.ts +4 -0
  55. package/dist/cjs/components/organisms/Dropzone/components/DrozoneTrigger.d.ts +4 -0
  56. package/dist/cjs/components/organisms/Dropzone/index.d.ts +6 -0
  57. package/dist/cjs/components/organisms/DropzoneContent/DropzoneContent.d.ts +3 -0
  58. package/dist/cjs/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +6 -0
  59. package/dist/cjs/components/organisms/DropzoneContent/index.d.ts +3 -0
  60. package/dist/cjs/components/organisms/Form/Form.types.d.ts +1 -1
  61. package/dist/cjs/components/organisms/Form/FormExample.d.ts +9 -1
  62. package/dist/cjs/components/organisms/Table/Table.types.d.ts +6 -1
  63. package/dist/cjs/components/organisms/Table/TableHeaderCell/TableHeaderCell.d.ts +4 -0
  64. package/dist/cjs/components/organisms/Table/TableHeaderCell/TableHeaderCell.types.d.ts +2 -0
  65. package/dist/cjs/components/organisms/Table/TableHeaderCell/index.d.ts +4 -0
  66. package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/TabItem.types.d.ts +1 -1
  67. package/dist/cjs/components/organisms/index.d.ts +23 -1
  68. package/dist/cjs/library.css +5960 -2586
  69. package/dist/cjs/library.js +3 -3
  70. package/dist/cjs/library.js.map +1 -1
  71. package/dist/cjs/modules/index.d.ts +1 -0
  72. package/dist/cjs/modules/notification/NotificationContainer.d.ts +4 -0
  73. package/dist/cjs/modules/notification/NotificationContext.d.ts +5 -0
  74. package/dist/cjs/modules/notification/index.d.ts +4 -0
  75. package/dist/cjs/modules/notification/types.d.ts +38 -0
  76. package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +10 -2
  77. package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +41 -0
  78. package/dist/esm/components/atoms/Checkbox/index.d.ts +1 -0
  79. package/dist/esm/components/atoms/CheckboxItem/CheckboxItem.d.ts +8 -0
  80. package/dist/esm/components/atoms/CheckboxItem/CheckboxItem.types.d.ts +22 -0
  81. package/dist/esm/components/atoms/CheckboxItem/index.d.ts +3 -0
  82. package/dist/esm/components/atoms/Chip/Chip.types.d.ts +5 -5
  83. package/dist/esm/components/atoms/ListItem/ListItem.types.d.ts +4 -0
  84. package/dist/esm/components/atoms/RadioButton/RadioButton.d.ts +11 -0
  85. package/dist/esm/components/atoms/RadioButton/RadioButton.types.d.ts +37 -0
  86. package/dist/esm/components/atoms/RadioButton/index.d.ts +3 -0
  87. package/dist/esm/components/atoms/RadioButtonItem/RadioButtonItem.d.ts +8 -0
  88. package/dist/esm/components/atoms/RadioButtonItem/RadioButtonItem.types.d.ts +22 -0
  89. package/dist/esm/components/atoms/RadioButtonItem/index.d.ts +2 -0
  90. package/dist/esm/components/atoms/Slider/Slider.d.ts +4 -0
  91. package/dist/esm/components/atoms/Slider/Slider.types.d.ts +53 -0
  92. package/dist/esm/components/atoms/Slider/index.d.ts +4 -0
  93. package/dist/esm/components/atoms/ToastNotification/ToastNotification.d.ts +4 -0
  94. package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +44 -0
  95. package/dist/esm/components/atoms/ToastNotification/index.d.ts +4 -0
  96. package/dist/esm/components/atoms/Toggle/Toggle.d.ts +1 -1
  97. package/dist/esm/components/atoms/Toggle/Toggle.types.d.ts +4 -3
  98. package/dist/esm/components/atoms/index.d.ts +6 -0
  99. package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.Context.d.ts +4 -0
  100. package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +4 -0
  101. package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +53 -0
  102. package/dist/esm/components/molecules/CheckboxGroup/index.d.ts +3 -0
  103. package/dist/esm/components/molecules/ChipInput/ChipInput.d.ts +4 -0
  104. package/dist/esm/components/molecules/ChipInput/ChipInput.types.d.ts +16 -0
  105. package/dist/esm/components/molecules/ContextMenu/ContextMenu.d.ts +4 -6
  106. package/dist/esm/components/molecules/ContextMenu/ContextMenu.types.d.ts +3 -64
  107. package/dist/esm/components/molecules/ContextMenu/index.d.ts +2 -4
  108. package/dist/esm/components/molecules/List/List.types.d.ts +30 -0
  109. package/dist/esm/components/molecules/List/components/SortableListItem.d.ts +2 -1
  110. package/dist/esm/components/molecules/List/components/SortableTrigger.d.ts +3 -0
  111. package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +8 -2
  112. package/dist/esm/components/molecules/Pagination/Pagination.d.ts +3 -0
  113. package/dist/esm/components/molecules/Pagination/Pagination.presenter.d.ts +11 -0
  114. package/dist/esm/components/molecules/Pagination/Pagination.types.d.ts +9 -0
  115. package/dist/esm/components/molecules/Pagination/index.d.ts +2 -0
  116. package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.d.ts +3 -0
  117. package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.presenter.d.ts +10 -0
  118. package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.types.d.ts +7 -0
  119. package/dist/esm/components/molecules/PaginationNumberField/index.d.ts +2 -0
  120. package/dist/esm/components/molecules/RadioGroup/RadioGroup.Context.d.ts +21 -0
  121. package/dist/esm/components/molecules/RadioGroup/RadioGroup.d.ts +4 -0
  122. package/dist/esm/components/molecules/RadioGroup/RadioGroup.types.d.ts +36 -0
  123. package/dist/esm/components/molecules/RadioGroup/index.d.ts +3 -0
  124. package/dist/esm/components/molecules/index.d.ts +23 -32
  125. package/dist/esm/components/organisms/Dropzone/Dropzone.d.ts +5 -0
  126. package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +102 -0
  127. package/dist/esm/components/organisms/Dropzone/components/DropzoneClear.d.ts +4 -0
  128. package/dist/esm/components/organisms/Dropzone/components/DropzoneFilename.d.ts +4 -0
  129. package/dist/esm/components/organisms/Dropzone/components/DropzoneSupportedFormats.d.ts +4 -0
  130. package/dist/esm/components/organisms/Dropzone/components/DrozoneTrigger.d.ts +4 -0
  131. package/dist/esm/components/organisms/Dropzone/index.d.ts +6 -0
  132. package/dist/esm/components/organisms/DropzoneContent/DropzoneContent.d.ts +3 -0
  133. package/dist/esm/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +6 -0
  134. package/dist/esm/components/organisms/DropzoneContent/index.d.ts +3 -0
  135. package/dist/esm/components/organisms/Form/Form.types.d.ts +1 -1
  136. package/dist/esm/components/organisms/Form/FormExample.d.ts +9 -1
  137. package/dist/esm/components/organisms/Table/Table.types.d.ts +6 -1
  138. package/dist/esm/components/organisms/Table/TableHeaderCell/TableHeaderCell.d.ts +4 -0
  139. package/dist/esm/components/organisms/Table/TableHeaderCell/TableHeaderCell.types.d.ts +2 -0
  140. package/dist/esm/components/organisms/Table/TableHeaderCell/index.d.ts +4 -0
  141. package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/TabItem.types.d.ts +1 -1
  142. package/dist/esm/components/organisms/index.d.ts +23 -1
  143. package/dist/esm/library.css +5960 -2586
  144. package/dist/esm/library.js +3 -3
  145. package/dist/esm/library.js.map +1 -1
  146. package/dist/esm/modules/index.d.ts +1 -0
  147. package/dist/esm/modules/notification/NotificationContainer.d.ts +4 -0
  148. package/dist/esm/modules/notification/NotificationContext.d.ts +5 -0
  149. package/dist/esm/modules/notification/index.d.ts +4 -0
  150. package/dist/esm/modules/notification/types.d.ts +38 -0
  151. package/dist/index.d.ts +753 -546
  152. package/package.json +2 -1
  153. package/dist/cjs/components/atoms/Checkbox/types.d.ts +0 -8
  154. package/dist/cjs/components/molecules/ContextMenu/MenuItem/MenuItem.d.ts +0 -9
  155. package/dist/cjs/components/molecules/ContextMenu/MenuItem/MenuItem.types.d.ts +0 -24
  156. package/dist/cjs/components/molecules/ContextMenu/MenuItem/index.d.ts +0 -4
  157. package/dist/esm/components/atoms/Checkbox/types.d.ts +0 -8
  158. package/dist/esm/components/molecules/ContextMenu/MenuItem/MenuItem.d.ts +0 -9
  159. package/dist/esm/components/molecules/ContextMenu/MenuItem/MenuItem.types.d.ts +0 -24
  160. package/dist/esm/components/molecules/ContextMenu/MenuItem/index.d.ts +0 -4
  161. /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.d.ts +0 -0
  162. /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.types.d.ts +0 -0
  163. /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/index.d.ts +0 -0
  164. /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.d.ts +0 -0
  165. /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.types.d.ts +0 -0
  166. /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/index.d.ts +0 -0
  167. /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/TableBody.d.ts +0 -0
  168. /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/TableBody.types.d.ts +0 -0
  169. /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/index.d.ts +0 -0
  170. /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/TableCell.d.ts +0 -0
  171. /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/TableCell.types.d.ts +0 -0
  172. /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/index.d.ts +0 -0
  173. /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/TableHeader.d.ts +0 -0
  174. /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/TableHeader.types.d.ts +0 -0
  175. /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/index.d.ts +0 -0
  176. /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/TableRow.d.ts +0 -0
  177. /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/TableRow.types.d.ts +0 -0
  178. /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/index.d.ts +0 -0
  179. /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/TabContent.d.ts +0 -0
  180. /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/TabContent.types.d.ts +0 -0
  181. /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/index.d.ts +0 -0
  182. /package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/TabItem.d.ts +0 -0
  183. /package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/index.d.ts +0 -0
  184. /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.Context.d.ts +0 -0
  185. /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.d.ts +0 -0
  186. /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.types.d.ts +0 -0
  187. /package/dist/cjs/components/{molecules → organisms}/Tabs/index.d.ts +0 -0
  188. /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.d.ts +0 -0
  189. /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.types.d.ts +0 -0
  190. /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/index.d.ts +0 -0
  191. /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.d.ts +0 -0
  192. /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.types.d.ts +0 -0
  193. /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/index.d.ts +0 -0
  194. /package/dist/esm/components/{molecules → organisms/Table}/TableBody/TableBody.d.ts +0 -0
  195. /package/dist/esm/components/{molecules → organisms/Table}/TableBody/TableBody.types.d.ts +0 -0
  196. /package/dist/esm/components/{molecules → organisms/Table}/TableBody/index.d.ts +0 -0
  197. /package/dist/esm/components/{molecules → organisms/Table}/TableCell/TableCell.d.ts +0 -0
  198. /package/dist/esm/components/{molecules → organisms/Table}/TableCell/TableCell.types.d.ts +0 -0
  199. /package/dist/esm/components/{molecules → organisms/Table}/TableCell/index.d.ts +0 -0
  200. /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/TableHeader.d.ts +0 -0
  201. /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/TableHeader.types.d.ts +0 -0
  202. /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/index.d.ts +0 -0
  203. /package/dist/esm/components/{molecules → organisms/Table}/TableRow/TableRow.d.ts +0 -0
  204. /package/dist/esm/components/{molecules → organisms/Table}/TableRow/TableRow.types.d.ts +0 -0
  205. /package/dist/esm/components/{molecules → organisms/Table}/TableRow/index.d.ts +0 -0
  206. /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/TabContent.d.ts +0 -0
  207. /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/TabContent.types.d.ts +0 -0
  208. /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/index.d.ts +0 -0
  209. /package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/TabItem.d.ts +0 -0
  210. /package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/index.d.ts +0 -0
  211. /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.Context.d.ts +0 -0
  212. /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.d.ts +0 -0
  213. /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.types.d.ts +0 -0
  214. /package/dist/esm/components/{molecules → organisms}/Tabs/index.d.ts +0 -0
@@ -1,4 +1,12 @@
1
1
  import React from 'react';
2
- import { CheckboxProps } from './types';
3
- declare const Checkbox: (props: CheckboxProps) => React.JSX.Element;
2
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
3
+ children?: React.ReactNode;
4
+ size?: import("./Checkbox.types").CheckboxSizeEnum;
5
+ checked?: boolean;
6
+ onValueChanged?: (value: boolean) => void;
7
+ defaultChecked?: boolean;
8
+ invalid?: boolean;
9
+ value?: string | number;
10
+ labelAlignment?: import("./Checkbox.types").CheckboxLabelAlignmentEnum;
11
+ } & React.RefAttributes<HTMLInputElement>>;
4
12
  export default Checkbox;
@@ -0,0 +1,41 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ export type CheckboxSizeEnum = 'Small' | 'Medium' | 'Large';
3
+ export type CheckboxLabelAlignmentEnum = 'Left' | 'Right';
4
+ export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value'> & {
5
+ /**
6
+ * The label of the checkbox.
7
+ */
8
+ children?: React.ReactNode;
9
+ /**
10
+ * The size of the checkbox.
11
+ * @default 'Medium'
12
+ */
13
+ size?: CheckboxSizeEnum;
14
+ /**
15
+ * The checked state of the checkbox.
16
+ */
17
+ checked?: boolean;
18
+ /**
19
+ * Callback function when the checkbox state changes.
20
+ * @param value - The new checked state of the checkbox.
21
+ */
22
+ onValueChanged?: (value: boolean) => void;
23
+ /**
24
+ * Default checked state of the checkbox.
25
+ * @default false
26
+ */
27
+ defaultChecked?: boolean;
28
+ /**
29
+ * Indicates if the checkbox is invalid.
30
+ * @default false
31
+ */
32
+ invalid?: boolean;
33
+ /**
34
+ * The value of the checkbox.
35
+ */
36
+ value?: string | number;
37
+ /**
38
+ * The alignment of the label.
39
+ */
40
+ labelAlignment?: CheckboxLabelAlignmentEnum;
41
+ };
@@ -1,2 +1,3 @@
1
1
  import Checkbox from './Checkbox';
2
2
  export default Checkbox;
3
+ export * from './Checkbox.types';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<import("..").CheckboxProps, "onValueChanged"> & {
3
+ onChange?: (value: boolean) => void;
4
+ showRightButton?: boolean;
5
+ onRightButtonClick?: () => void;
6
+ rightButtonIcon?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLInputElement>>;
8
+ export default CheckboxItem;
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CheckboxProps as BaseCheckboxProps } from '../Checkbox/Checkbox.types';
3
+ export type CheckboxItemProps = Omit<BaseCheckboxProps, 'onValueChanged'> & {
4
+ /**
5
+ * Callback function when the checkbox state changes.
6
+ * @param value: boolean - The new checked state of the checkbox.
7
+ */
8
+ onChange?: (value: boolean) => void;
9
+ /**
10
+ * Flag to show right button.
11
+ * @default false
12
+ */
13
+ showRightButton?: boolean;
14
+ /**
15
+ * Callback function when the right button is clicked.
16
+ */
17
+ onRightButtonClick?: () => void;
18
+ /**
19
+ * Custom icon for the right button.
20
+ */
21
+ rightButtonIcon?: ReactNode;
22
+ };
@@ -0,0 +1,3 @@
1
+ import CheckboxItem from './CheckboxItem';
2
+ export default CheckboxItem;
3
+ export * from './CheckboxItem.types';
@@ -1,14 +1,14 @@
1
1
  import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
2
- export type ChipVariantEnum = 'Filled' | 'Outlined';
2
+ export type ChipTypeEnum = 'Bright' | 'BrightOutline' | 'Subdued' | 'SubduedOutline';
3
3
  export type ChipStyleEnum = 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
4
4
  export type ChipSizeEnum = 'Small' | 'Medium' | 'Large';
5
- export type ChipCornerEnum = 'Rounded' | 'Square';
5
+ export type ChipCornerEnum = 'Rounded' | 'Squared';
6
6
  export type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
7
7
  /**
8
- * Variant of the chip.
8
+ * Type of the chip.
9
9
  * @default 'Filled'
10
10
  */
11
- variant?: ChipVariantEnum;
11
+ type?: ChipTypeEnum;
12
12
  /**
13
13
  * Style of the chip.
14
14
  * @default 'A'
@@ -57,5 +57,5 @@ export type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
57
57
  /**
58
58
  * Event handler for the close action when chip is dismissible.
59
59
  */
60
- onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
60
+ onClose?: (event?: MouseEvent<HTMLElement>) => void;
61
61
  };
@@ -16,6 +16,10 @@ export type ListItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
16
16
  * Click event handler for the list item.
17
17
  */
18
18
  onClick?: (event?: MouseEvent<HTMLElement>) => void;
19
+ /**
20
+ * The label for the list item.
21
+ */
22
+ children?: ReactNode;
19
23
  /**
20
24
  * Additional class for styling.
21
25
  */
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ declare const RadioButton: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
3
+ children?: React.ReactNode;
4
+ size?: import("./RadioButton.types").RadioButtonSizeEnum;
5
+ checked?: boolean;
6
+ onValueChanged?: (value: string | number) => void;
7
+ invalid?: boolean;
8
+ labelAlignment?: import("./RadioButton.types").RadioButtonLabelAlignmentEnum;
9
+ value?: string | number;
10
+ } & React.RefAttributes<HTMLInputElement>>;
11
+ export default RadioButton;
@@ -0,0 +1,37 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ export type RadioButtonSizeEnum = 'Small' | 'Medium' | 'Large';
3
+ export type RadioButtonLabelAlignmentEnum = 'Left' | 'Right';
4
+ export type RadioButtonProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value'> & {
5
+ /**
6
+ * The label of the radio button.
7
+ */
8
+ children?: React.ReactNode;
9
+ /**
10
+ * The size of the radio button.
11
+ * @default 'Medium'
12
+ */
13
+ size?: RadioButtonSizeEnum;
14
+ /**
15
+ * The checked state of the radio button.
16
+ */
17
+ checked?: boolean;
18
+ /**
19
+ * Callback function when the radio button state changes.
20
+ * @param value - The new checked state of the radio button.
21
+ */
22
+ onValueChanged?: (value: string | number) => void;
23
+ /**
24
+ * Indicates if the radio button is invalid.
25
+ * @default false
26
+ */
27
+ invalid?: boolean;
28
+ /**
29
+ * Flag to show the label on the right side of the radio button.
30
+ * @default false
31
+ */
32
+ labelAlignment?: RadioButtonLabelAlignmentEnum;
33
+ /**
34
+ * The value of the radio button.
35
+ */
36
+ value?: string | number;
37
+ };
@@ -0,0 +1,3 @@
1
+ import RadioButton from './RadioButton';
2
+ export default RadioButton;
3
+ export * from './RadioButton.types';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare const RadioButtonItem: React.ForwardRefExoticComponent<Omit<import("../RadioButton").RadioButtonProps, "onValueChanged"> & {
3
+ onChange?: (value: string | number) => void;
4
+ showRightButton?: boolean;
5
+ onRightButtonClick?: () => void;
6
+ rightButtonIcon?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLInputElement>>;
8
+ export default RadioButtonItem;
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { RadioButtonProps as BaseRadioButtonProps } from '../RadioButton/RadioButton.types';
3
+ export type RadioButtonItemProps = Omit<BaseRadioButtonProps, 'onValueChanged'> & {
4
+ /**
5
+ * Callback function when the radio button state changes.
6
+ * @param value: string | number - The value of the selected radio button.
7
+ */
8
+ onChange?: (value: string | number) => void;
9
+ /**
10
+ * Flag to show right button.
11
+ * @default false
12
+ */
13
+ showRightButton?: boolean;
14
+ /**
15
+ * Callback function when the right button is clicked.
16
+ */
17
+ onRightButtonClick?: () => void;
18
+ /**
19
+ * Custom icon for the right button.
20
+ */
21
+ rightButtonIcon?: ReactNode;
22
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './RadioButtonItem';
2
+ export type { RadioButtonItemProps } from './RadioButtonItem.types';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SliderProps } from './Slider.types';
3
+ declare const Slider: (props: SliderProps) => React.JSX.Element;
4
+ export default Slider;
@@ -0,0 +1,53 @@
1
+ export type SliderProps = React.HTMLAttributes<HTMLDivElement> & {
2
+ /**
3
+ * The minimum value of the slider.
4
+ * @default 0
5
+ */
6
+ min?: number;
7
+ /**
8
+ * The maximum value of the slider.
9
+ * @default 100
10
+ */
11
+ max?: number;
12
+ /**
13
+ * The step size for the slider.
14
+ * @default 1
15
+ */
16
+ step?: number;
17
+ /**
18
+ * The current value of the slider.
19
+ * Can be a single number or an array with exactly two numbers for range selection.
20
+ */
21
+ value?: number | [number, number];
22
+ /**
23
+ * Callback function triggered when the slider value changes.
24
+ * @param value - The new value of the slider.
25
+ */
26
+ onValueChange?: (value: number | [number, number]) => void;
27
+ /**
28
+ * Whether to display the minimum value label.
29
+ * @default false
30
+ */
31
+ showMin?: boolean;
32
+ /**
33
+ * Whether to display the maximum value label.
34
+ * @default false
35
+ */
36
+ showMax?: boolean;
37
+ /**
38
+ * Whether to show the current value on the slider thumb.
39
+ * @default false
40
+ */
41
+ showValueOnThumb?: boolean;
42
+ /**
43
+ * Whether to enable range selection (two thumbs).
44
+ * @default false
45
+ */
46
+ enableRange?: boolean;
47
+ /**
48
+ * Flag to disabled slider.
49
+ * @default false
50
+ */
51
+ disabled?: boolean;
52
+ className?: string;
53
+ };
@@ -0,0 +1,4 @@
1
+ import Slider from "./Slider";
2
+ import type { SliderProps } from "./Slider.types";
3
+ export default Slider;
4
+ export type { SliderProps };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ToastNotificationProps } from './ToastNotification.types';
3
+ declare const ToastNotification: React.FC<ToastNotificationProps>;
4
+ export default ToastNotification;
@@ -0,0 +1,44 @@
1
+ import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
2
+ export type ToastNotificationStyleEnum = 'Neutral' | 'Error' | 'Success';
3
+ export type ToastNotificationPositionEnum = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
4
+ export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
5
+ /**
6
+ * Style of the toast notification.
7
+ * @default 'Neutral'
8
+ */
9
+ style?: ToastNotificationStyleEnum;
10
+ /**
11
+ * Position of the toast notification.
12
+ * @default 'top-right'
13
+ */
14
+ position?: ToastNotificationPositionEnum;
15
+ /**
16
+ * Determines if the toast notification is dismissible.
17
+ * @default true
18
+ */
19
+ isDismissable?: boolean;
20
+ /**
21
+ * Icon displayed before the message content.
22
+ */
23
+ leadingIcon?: ReactNode;
24
+ /**
25
+ * Icon displayed after the message content.
26
+ */
27
+ trailingIcon?: ReactNode;
28
+ /**
29
+ * Close button/icon for dismissible toast notifications.
30
+ */
31
+ closeIcon?: ReactNode;
32
+ /**
33
+ * Click event handler for the close action.
34
+ */
35
+ removeToast?: (event?: MouseEvent<HTMLButtonElement>) => void;
36
+ /**
37
+ * Duration before the toast auto-closes (in milliseconds).
38
+ */
39
+ duration?: number;
40
+ /**
41
+ * Additional class for styling.
42
+ */
43
+ className?: string;
44
+ };
@@ -0,0 +1,4 @@
1
+ import ToastNotification from './ToastNotification';
2
+ import type { ToastNotificationProps } from './ToastNotification.types';
3
+ export type { ToastNotificationProps };
4
+ export default ToastNotification;
@@ -5,6 +5,6 @@ declare const Toggle: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttrib
5
5
  onValueChanged?: (value: boolean) => void;
6
6
  defaultChecked?: boolean;
7
7
  invalid?: boolean;
8
- labelOnRight?: boolean;
8
+ labelAlignment?: import("./Toggle.types").ToggleLabelAlignmentEnum;
9
9
  } & React.RefAttributes<HTMLInputElement>>;
10
10
  export default Toggle;
@@ -1,4 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'react';
2
+ export type ToggleLabelAlignmentEnum = 'Left' | 'Right';
2
3
  export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'checked'> & {
3
4
  /**
4
5
  * The label of the toggle.
@@ -24,8 +25,8 @@ export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | '
24
25
  */
25
26
  invalid?: boolean;
26
27
  /**
27
- * Flag to show the label on the right side of the toggle.
28
- * @default false
28
+ * Alignment of the label.
29
+ * @default 'Left'
29
30
  */
30
- labelOnRight?: boolean;
31
+ labelAlignment?: ToggleLabelAlignmentEnum;
31
32
  };
@@ -14,6 +14,9 @@ export { default as Toggle } from './Toggle';
14
14
  export { default as ToggleButton } from './ToggleButton';
15
15
  export { default as CustomToggle } from './CustomToggle';
16
16
  export { default as Chip } from './Chip';
17
+ export { default as Checkbox } from './Checkbox';
18
+ export { default as CheckboxItem } from './CheckboxItem';
19
+ export { default as Slider } from './Slider';
17
20
  export * from './ActionImage';
18
21
  export * from './Button';
19
22
  export * from './Icon';
@@ -30,3 +33,6 @@ export * from './Toggle';
30
33
  export * from './ToggleButton';
31
34
  export * from './CustomToggle';
32
35
  export * from './Chip';
36
+ export * from './Checkbox';
37
+ export * from './CheckboxItem';
38
+ export * from './Slider';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { CheckboxGroupContextProps, CheckboxGroupProviderProps } from './CheckboxGroup.types';
3
+ export declare const useCheckboxGroupContext: () => CheckboxGroupContextProps;
4
+ export declare const CheckboxGroupProvider: React.FC<CheckboxGroupProviderProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { CheckboxGroupProps } from './CheckboxGroup.types';
3
+ declare const CheckboxGroup: React.MemoExoticComponent<(props: CheckboxGroupProps) => React.JSX.Element>;
4
+ export default CheckboxGroup;
@@ -0,0 +1,53 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type CheckboxGroupProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & {
3
+ /**
4
+ * The name attribute for the checkbox group
5
+ */
6
+ name: string;
7
+ /**
8
+ * The currently selected values
9
+ */
10
+ value?: (string | number)[];
11
+ /**
12
+ * Callback function when selection changes
13
+ */
14
+ onValueChanged?: (value: (string | number)[]) => void;
15
+ /**
16
+ * The checkboxes to render
17
+ */
18
+ children: React.ReactNode;
19
+ /**
20
+ * Whether the checkbox group is disabled
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * Whether the checkbox group is invalid
25
+ */
26
+ invalid?: boolean;
27
+ /**
28
+ * Whether a selection is required
29
+ */
30
+ required?: boolean;
31
+ /**
32
+ * The orientation of the checkbox group
33
+ * @default 'vertical'
34
+ */
35
+ orientation?: 'horizontal' | 'vertical';
36
+ };
37
+ export interface CheckboxGroupContextProps {
38
+ selectedValues: (string | number)[];
39
+ name?: string;
40
+ updateSelectedValue: (value: string | number, checked: boolean) => void;
41
+ disabledField?: boolean;
42
+ invalidField?: boolean;
43
+ requiredField?: boolean;
44
+ }
45
+ export interface CheckboxGroupProviderProps {
46
+ children: React.ReactNode;
47
+ value: (string | number)[];
48
+ name?: string;
49
+ onValueChanged?: (value: (string | number)[]) => void;
50
+ disabled?: boolean;
51
+ invalid?: boolean;
52
+ required?: boolean;
53
+ }
@@ -0,0 +1,3 @@
1
+ import CheckboxGroup from './CheckboxGroup';
2
+ export default CheckboxGroup;
3
+ export * from './CheckboxGroup.types';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ChipInputProps } from "./ChipInput.types";
3
+ declare const ChipInput: React.FC<ChipInputProps>;
4
+ export default ChipInput;
@@ -0,0 +1,16 @@
1
+ import type { ChipProps, InputProps } from "../../atoms";
2
+ export type ChipListItemTypeEnum = 'chip' | 'input';
3
+ export type ChipListItemProps = {
4
+ type: ChipListItemTypeEnum;
5
+ props: ChipProps | InputProps;
6
+ };
7
+ export type ChipInputProps = {
8
+ inputValue?: string;
9
+ onInputChange?: (value: string) => void;
10
+ options?: string[];
11
+ placeholder?: string;
12
+ className?: string;
13
+ onValueChanged?: (value: string[]) => void;
14
+ onAddNewOption?: (value: string) => void;
15
+ selectedValues?: string[];
16
+ };
@@ -1,7 +1,5 @@
1
- import React from 'react';
2
- import type { ContextMenuProps } from './ContextMenu.types';
3
- /**
4
- * ContextMenu component that renders a popover menu.
5
- */
6
- declare const ContextMenu: (props: ContextMenuProps) => React.JSX.Element;
1
+ import React from "react";
2
+ import { ContextMenuProps } from "./ContextMenu.types";
3
+ import { ListItemType } from "../List/List.types";
4
+ declare const ContextMenu: <T extends ListItemType>(props: ContextMenuProps<T>) => React.JSX.Element;
7
5
  export default ContextMenu;
@@ -1,64 +1,3 @@
1
- import type { HTMLAttributes } from 'react';
2
- import type React from 'react';
3
- import type { Offset } from 'react-overlays/usePopper';
4
- import type { ActionType, ContentProps, OverlayAlignEnum, OverlayDirectionEnum } from '../Popover/Popover.types';
5
- /**
6
- * Props for the ContextMenu component.
7
- */
8
- export type ContextMenuProps = HTMLAttributes<HTMLUListElement> & {
9
- /**
10
- * The content to be rendered inside the context menu.
11
- */
12
- children: React.ReactNode;
13
- /**
14
- * The element that triggers the display of the context menu.
15
- */
16
- target: React.ReactNode;
17
- /**
18
- * Alignment of the menu relative to its target.
19
- * @default 'Center'
20
- */
21
- alignment?: OverlayAlignEnum;
22
- /**
23
- * Direction in which the menu expands.
24
- * @default 'Down'
25
- */
26
- direction?: OverlayDirectionEnum;
27
- /**
28
- * Offset position of the menu relative to its target.
29
- */
30
- offset?: Offset;
31
- /**
32
- * Controls whether the context menu is visible (`true`) or hidden (`false`).
33
- * @default false
34
- */
35
- show?: boolean;
36
- /**
37
- * Disables interaction with the context menu if `true`.
38
- * @default false
39
- */
40
- disabled?: boolean;
41
- /**
42
- * Additional props to be passed to the menu content.
43
- */
44
- menuProps?: ContentProps;
45
- /**
46
- * Action that triggers the display of the context menu.
47
- * @default 'Click'
48
- */
49
- action?: ActionType;
50
- /**
51
- * Determines whether the context menu should be hidden when clicking away from it.
52
- * @default true
53
- */
54
- hideOnClickAway?: boolean;
55
- /**
56
- * Determines whether the menu should remain open when clicking inside it.
57
- * @default false
58
- */
59
- keepMenuOnItemClick?: boolean;
60
- /**
61
- * Additional CSS class names to apply to the context menu.
62
- */
63
- className?: string;
64
- };
1
+ import { ListProps } from "../List";
2
+ import { ListItemType } from "../List/List.types";
3
+ export type ContextMenuProps<T extends ListItemType> = ListProps<T>;
@@ -1,6 +1,4 @@
1
- import ContextMenu from './ContextMenu';
2
- import type { ContextMenuProps } from './ContextMenu.types';
1
+ import ContextMenu from "./ContextMenu";
2
+ import type { ContextMenuProps } from "./ContextMenu.types";
3
3
  export type { ContextMenuProps };
4
- export { default as MenuItem } from './MenuItem';
5
- export * from './MenuItem';
6
4
  export default ContextMenu;
@@ -1,4 +1,5 @@
1
1
  import type { Dispatch, HTMLAttributes, SetStateAction } from 'react';
2
+ import { IconButtonProps } from '../../atoms';
2
3
  /**
3
4
  * Enum for the alignment of the list.
4
5
  *
@@ -49,6 +50,35 @@ export type SortableListProps<T extends {
49
50
  }> = ListProps<T> & {
50
51
  data: T[];
51
52
  };
53
+ /**
54
+ * Context type for the sortable item.
55
+ *
56
+ * @property {string | number} id - The unique identifier of the sortable item.
57
+ * @property {Object} transform - The transform properties of the sortable item.
58
+ * @property {string | undefined} transition - The transition of the sortable item.
59
+ * @property {Object} attributes - The attributes of the sortable item.
60
+ * @property {Record<string, Function> | undefined} listeners - The listeners of the sortable item.
61
+ */
62
+ export type SortableItemContextType = {
63
+ id: string | number;
64
+ transform: {
65
+ x: number;
66
+ y: number;
67
+ scaleX: number;
68
+ scaleY: number;
69
+ } | null;
70
+ transition: string | undefined;
71
+ attributes: {
72
+ role: string;
73
+ tabIndex: number;
74
+ 'aria-disabled': boolean;
75
+ 'aria-pressed': boolean | undefined;
76
+ 'aria-roledescription': string;
77
+ 'aria-describedby': string;
78
+ };
79
+ listeners: Record<string, Function> | undefined;
80
+ };
81
+ export type SortableTriggerProps = IconButtonProps;
52
82
  /**
53
83
  * Props for the list wrapper component.
54
84
  *
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ListItemProps, ListItemType } from "../List.types";
2
+ import { ListItemProps, ListItemType, SortableItemContextType } from "../List.types";
3
3
  /**
4
4
  * A sortable item component that integrates with the dnd-kit library for drag-and-drop functionality.
5
5
  *
@@ -8,3 +8,4 @@ import { ListItemProps, ListItemType } from "../List.types";
8
8
  * @returns {JSX.Element} The rendered sortable item.
9
9
  */
10
10
  export declare const SortableItem: <T extends ListItemType>(props: ListItemProps<T>) => React.JSX.Element;
11
+ export declare const useSortableItem: () => SortableItemContextType;
@@ -0,0 +1,3 @@
1
+ import type { SortableTriggerProps } from "../List.types";
2
+ declare const SortableTrigger: (props: SortableTriggerProps) => import("react").JSX.Element;
3
+ export default SortableTrigger;