@digital-ai/dot-components 2.19.0 → 2.20.0

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 (274) hide show
  1. package/README.md +1 -2
  2. package/index.esm.d.ts +1 -0
  3. package/index.esm.js +1595 -1540
  4. package/package.json +7 -7
  5. package/{index.d.ts → src/index.d.ts} +7 -6
  6. package/src/lib/components/AccessibilityProps.d.ts +1 -0
  7. package/{lib → src/lib}/components/BaseButtonProps.d.ts +26 -26
  8. package/{lib → src/lib}/components/CommonProps.d.ts +11 -11
  9. package/{lib → src/lib}/components/accordion/Accordion.d.ts +28 -28
  10. package/{lib → src/lib}/components/accordion/Accordion.styles.d.ts +4 -4
  11. package/{lib → src/lib}/components/action-toolbar/ActionToolbar.d.ts +10 -10
  12. package/{lib → src/lib}/components/action-toolbar/ActionToolbar.styles.d.ts +2 -2
  13. package/{lib → src/lib}/components/alert-banner/AlertBanner.d.ts +19 -19
  14. package/{lib → src/lib}/components/alert-banner/AlertBanner.styles.d.ts +4 -4
  15. package/{lib → src/lib}/components/app-logo/AppLogo.d.ts +11 -11
  16. package/{lib → src/lib}/components/app-switcher/AppSwitcher.d.ts +29 -29
  17. package/{lib → src/lib}/components/app-switcher/AppSwitcher.styles.d.ts +2 -2
  18. package/{lib → src/lib}/components/app-switcher/utils/helpers.d.ts +26 -26
  19. package/{lib → src/lib}/components/app-toolbar/AppToolbar.d.ts +49 -49
  20. package/{lib → src/lib}/components/app-toolbar/AppToolbar.data.d.ts +8 -8
  21. package/{lib → src/lib}/components/app-toolbar/AppToolbar.styles.d.ts +4 -4
  22. package/{lib → src/lib}/components/auto-complete/AutoComplete.d.ts +89 -89
  23. package/{lib → src/lib}/components/auto-complete/AutoComplete.styles.d.ts +5 -5
  24. package/{lib → src/lib}/components/auto-complete/index.d.ts +4 -4
  25. package/{lib → src/lib}/components/auto-complete/utils/helpers.d.ts +13 -13
  26. package/{lib → src/lib}/components/auto-complete/utils/interface.d.ts +17 -17
  27. package/{lib → src/lib}/components/avatar/Avatar.d.ts +37 -37
  28. package/{lib → src/lib}/components/avatar/Avatar.styles.d.ts +3 -3
  29. package/{lib → src/lib}/components/avatar-group/AvatarGroup.d.ts +12 -12
  30. package/{lib → src/lib}/components/avatar-group/AvatarGroup.styles.d.ts +3 -3
  31. package/{lib → src/lib}/components/badge/Badge.d.ts +20 -20
  32. package/{lib → src/lib}/components/badge/Badge.styles.d.ts +6 -6
  33. package/{lib → src/lib}/components/badge/index.d.ts +1 -1
  34. package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.d.ts +25 -25
  35. package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.data.d.ts +5 -5
  36. package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.styles.d.ts +4 -4
  37. package/{lib → src/lib}/components/breadcrumbs/utils/helpers.d.ts +25 -25
  38. package/{lib → src/lib}/components/breadcrumbs/utils/useBreadcrumbsObserver.d.ts +9 -9
  39. package/{lib → src/lib}/components/breadcrumbs/utils/useBreadcrumbsResizer.d.ts +18 -18
  40. package/{lib → src/lib}/components/button/Button.d.ts +13 -13
  41. package/{lib → src/lib}/components/button/Button.styles.d.ts +2 -2
  42. package/{lib → src/lib}/components/button/CopyButton.d.ts +14 -14
  43. package/{lib → src/lib}/components/button/CopyButton.styles.d.ts +2 -2
  44. package/{lib → src/lib}/components/button/IconButton.d.ts +29 -29
  45. package/{lib → src/lib}/components/button/IconButton.styles.d.ts +2 -2
  46. package/{lib → src/lib}/components/button/index.d.ts +6 -6
  47. package/{lib → src/lib}/components/button-toggle/ButtonToggle.d.ts +24 -24
  48. package/{lib → src/lib}/components/button-toggle/ButtonToggle.styles.d.ts +3 -3
  49. package/{lib → src/lib}/components/button-toggle/index.d.ts +3 -3
  50. package/src/lib/components/button-toggle/utils/models.d.ts +13 -0
  51. package/{lib → src/lib}/components/card/Card.d.ts +7 -7
  52. package/{lib → src/lib}/components/card/CardContent.d.ts +7 -7
  53. package/{lib → src/lib}/components/card/CardFooter.d.ts +7 -7
  54. package/{lib → src/lib}/components/card/CardFooter.styles.d.ts +2 -2
  55. package/{lib → src/lib}/components/card/CardHeader.d.ts +19 -19
  56. package/{lib → src/lib}/components/carousel/Carousel.d.ts +31 -31
  57. package/{lib → src/lib}/components/carousel/Carousel.styles.d.ts +6 -6
  58. package/{lib → src/lib}/components/checkbox/Checkbox.d.ts +12 -12
  59. package/{lib → src/lib}/components/checkbox/Checkbox.styles.d.ts +3 -3
  60. package/{lib → src/lib}/components/checkbox/CheckboxGroup.d.ts +16 -16
  61. package/{lib → src/lib}/components/checkbox/CheckboxGroup.styles.d.ts +5 -5
  62. package/{lib → src/lib}/components/chip/Chip.d.ts +29 -29
  63. package/{lib → src/lib}/components/chip/Chip.styles.d.ts +2 -2
  64. package/{lib → src/lib}/components/click-away-listener/ClickAwayListener.d.ts +10 -10
  65. package/{lib → src/lib}/components/click-away-listener/index.d.ts +2 -2
  66. package/{lib → src/lib}/components/compareSize.d.ts +1 -1
  67. package/{lib → src/lib}/components/confirmation-dialog/ConfirmationDialog.d.ts +20 -20
  68. package/{lib → src/lib}/components/core-api/CancelablePromise.d.ts +7 -7
  69. package/{lib → src/lib}/components/core-api/CoreApiProvider.d.ts +23 -23
  70. package/{lib → src/lib}/components/core-api/openapi/core/ApiError.d.ts +8 -8
  71. package/{lib → src/lib}/components/core-api/openapi/core/ApiRequestOptions.d.ts +12 -12
  72. package/{lib → src/lib}/components/core-api/openapi/core/ApiResult.d.ts +7 -7
  73. package/{lib → src/lib}/components/core-api/openapi/core/OpenAPI.d.ts +15 -15
  74. package/{lib → src/lib}/components/core-api/openapi/core/request.d.ts +9 -9
  75. package/{lib → src/lib}/components/core-api/openapi/index.d.ts +12 -12
  76. package/{lib → src/lib}/components/core-api/openapi/models/AccountModel.d.ts +50 -50
  77. package/{lib → src/lib}/components/core-api/openapi/models/AccountModelWrapper.d.ts +4 -4
  78. package/{lib → src/lib}/components/core-api/openapi/models/AccountModelsWrapper.d.ts +6 -6
  79. package/{lib → src/lib}/components/core-api/openapi/models/ApplicationInstanceStates.d.ts +4 -4
  80. package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModel.d.ts +67 -67
  81. package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModelWrapper.d.ts +4 -4
  82. package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModelsWrapper.d.ts +6 -6
  83. package/{lib → src/lib}/components/core-api/openapi/models/PaginationModel.d.ts +22 -22
  84. package/{lib → src/lib}/components/core-api/openapi/services/AccountsService.d.ts +25 -25
  85. package/{lib → src/lib}/components/core-api/openapi/services/ApplicationsService.d.ts +38 -38
  86. package/{lib → src/lib}/components/createUUID.d.ts +1 -1
  87. package/{lib → src/lib}/components/css-grid/CssCell.d.ts +42 -42
  88. package/{lib → src/lib}/components/css-grid/CssGrid.d.ts +37 -37
  89. package/{lib → src/lib}/components/css-grid/CssGridDebug.d.ts +4 -4
  90. package/{lib → src/lib}/components/date-picker/DatePicker.d.ts +83 -83
  91. package/{lib → src/lib}/components/date-picker/DatePicker.styles.d.ts +11 -11
  92. package/{lib → src/lib}/components/date-picker/index.d.ts +5 -5
  93. package/{lib → src/lib}/components/date-picker/utils/helpers.d.ts +5 -5
  94. package/{lib → src/lib}/components/date-picker/utils/models.d.ts +43 -43
  95. package/{lib → src/lib}/components/dialog/Dialog.d.ts +42 -42
  96. package/{lib → src/lib}/components/dialog/Dialog.styles.d.ts +3 -3
  97. package/{lib → src/lib}/components/divider/Divider.d.ts +16 -16
  98. package/{lib → src/lib}/components/divider/Divider.styles.d.ts +2 -2
  99. package/{lib → src/lib}/components/divider/index.d.ts +1 -1
  100. package/{lib → src/lib}/components/draggable-list/DraggableList.d.ts +23 -23
  101. package/{lib → src/lib}/components/draggable-list/DraggableList.styles.d.ts +8 -8
  102. package/{lib → src/lib}/components/draggable-list/index.d.ts +2 -2
  103. package/{lib → src/lib}/components/draggable-list/utils/helpers.d.ts +5 -5
  104. package/{lib → src/lib}/components/draggable-list/utils/models.d.ts +5 -5
  105. package/{lib → src/lib}/components/drawer/Drawer.d.ts +45 -45
  106. package/{lib → src/lib}/components/drawer/Drawer.styles.d.ts +4 -4
  107. package/{lib → src/lib}/components/drawer/DrawerBody.d.ts +9 -9
  108. package/{lib → src/lib}/components/drawer/DrawerBody.styles.d.ts +2 -2
  109. package/{lib → src/lib}/components/drawer/DrawerFooter.d.ts +6 -6
  110. package/{lib → src/lib}/components/drawer/DrawerFooter.styles.d.ts +2 -2
  111. package/{lib → src/lib}/components/drawer/DrawerHeader.d.ts +8 -8
  112. package/{lib → src/lib}/components/drawer/DrawerHeader.styles.d.ts +2 -2
  113. package/{lib → src/lib}/components/dynamic-form/DynamicForm.d.ts +10 -10
  114. package/{lib → src/lib}/components/dynamic-form/DynamicForm.styles.d.ts +2 -2
  115. package/{lib → src/lib}/components/dynamic-form/constants.d.ts +4 -4
  116. package/{lib → src/lib}/components/dynamic-form/models.d.ts +81 -81
  117. package/{lib → src/lib}/components/dynamic-form/sample.spec.data.d.ts +22 -22
  118. package/{lib → src/lib}/components/dynamic-form/utils/formHelpers.d.ts +38 -38
  119. package/{lib → src/lib}/components/dynamic-form/utils/helpers.d.ts +6 -6
  120. package/{lib → src/lib}/components/dynamic-form/utils/validation.d.ts +25 -25
  121. package/{lib → src/lib}/components/empty-state/EmptyState.d.ts +15 -15
  122. package/{lib → src/lib}/components/empty-state/EmptyState.styles.d.ts +2 -2
  123. package/{lib → src/lib}/components/file-upload/FileListItem.d.ts +17 -17
  124. package/src/lib/components/file-upload/FileListItem.styles.d.ts +13 -0
  125. package/{lib → src/lib}/components/file-upload/FileUpload.d.ts +37 -37
  126. package/{lib → src/lib}/components/file-upload/FileUpload.styles.d.ts +6 -6
  127. package/{lib → src/lib}/components/file-upload/index.d.ts +6 -6
  128. package/src/lib/components/file-upload/uploadHelpers.d.ts +12 -0
  129. package/{lib → src/lib}/components/file-upload/utils/helpers.d.ts +25 -25
  130. package/{lib → src/lib}/components/file-upload/utils/models.d.ts +35 -35
  131. package/{lib → src/lib}/components/form/Form.d.ts +9 -9
  132. package/{lib → src/lib}/components/form/Form.styles.d.ts +2 -2
  133. package/{lib → src/lib}/components/form-controls/FormControl.styles.d.ts +6 -6
  134. package/{lib → src/lib}/components/form-controls/FormControlLabel.styles.d.ts +3 -3
  135. package/{lib → src/lib}/components/form-group/FormGroup.d.ts +9 -9
  136. package/{lib → src/lib}/components/form-group/FormGroup.styles.d.ts +3 -3
  137. package/{lib → src/lib}/components/helpers.d.ts +13 -13
  138. package/{lib → src/lib}/components/icon/Icon.d.ts +11 -11
  139. package/{lib → src/lib}/components/icon/Icon.styles.d.ts +5 -5
  140. package/{lib → src/lib}/components/index.d.ts +109 -106
  141. package/{lib → src/lib}/components/inline-edit/InlineEdit.d.ts +39 -39
  142. package/{lib → src/lib}/components/inline-edit/InlineEdit.styles.d.ts +13 -13
  143. package/{lib → src/lib}/components/inline-edit/index.d.ts +3 -3
  144. package/{lib → src/lib}/components/inline-edit/utils/helpers.d.ts +6 -6
  145. package/{lib → src/lib}/components/inline-edit/utils/models.d.ts +13 -13
  146. package/{lib → src/lib}/components/input-form-fields/InputFormFields.propTypes.d.ts +67 -67
  147. package/{lib → src/lib}/components/input-form-fields/InputFormFields.styles.d.ts +14 -14
  148. package/{lib → src/lib}/components/input-form-fields/InputLabel.d.ts +17 -17
  149. package/{lib → src/lib}/components/input-form-fields/InputSelect.d.ts +15 -15
  150. package/{lib → src/lib}/components/input-form-fields/InputText.d.ts +34 -34
  151. package/{lib → src/lib}/components/input-form-fields/common.styles.d.ts +5 -5
  152. package/{lib → src/lib}/components/linear-progress/LinearProgress.d.ts +14 -14
  153. package/{lib → src/lib}/components/linear-progress/LinearProgress.styles.d.ts +3 -3
  154. package/{lib → src/lib}/components/linear-progress/index.d.ts +2 -2
  155. package/{lib → src/lib}/components/link/Link.d.ts +30 -30
  156. package/{lib → src/lib}/components/link/Link.styles.d.ts +2 -2
  157. package/{lib → src/lib}/components/list/List.d.ts +2 -2
  158. package/{lib → src/lib}/components/list/List.styles.d.ts +5 -5
  159. package/{lib → src/lib}/components/list/ListDivider.d.ts +7 -7
  160. package/{lib → src/lib}/components/list/ListItem.d.ts +2 -2
  161. package/{lib → src/lib}/components/list/ListItem.styles.d.ts +6 -6
  162. package/{lib → src/lib}/components/list/NestedList.d.ts +2 -2
  163. package/{lib → src/lib}/components/list/NestedList.styles.d.ts +1 -1
  164. package/{lib → src/lib}/components/list/index.d.ts +2 -2
  165. package/{lib → src/lib}/components/list/utils/helpers.d.ts +3 -3
  166. package/{lib → src/lib}/components/list/utils/models.d.ts +88 -87
  167. package/{lib → src/lib}/components/menu/Menu.d.ts +50 -50
  168. package/{lib → src/lib}/components/menu/Menu.styles.d.ts +18 -18
  169. package/{lib → src/lib}/components/menu/MenuList.d.ts +26 -26
  170. package/{lib → src/lib}/components/menu/MenuList.styles.d.ts +4 -4
  171. package/{lib → src/lib}/components/menu/utils/constants.d.ts +3 -3
  172. package/{lib → src/lib}/components/menu/utils/helpers.d.ts +16 -16
  173. package/{lib → src/lib}/components/navigation-rail/NavigationRail.d.ts +25 -25
  174. package/{lib → src/lib}/components/navigation-rail/NavigationRail.styles.d.ts +6 -6
  175. package/{lib → src/lib}/components/navigation-rail/index.d.ts +2 -2
  176. package/{lib → src/lib}/components/pill/Pill.d.ts +24 -24
  177. package/{lib → src/lib}/components/pill/Pill.styles.d.ts +3 -3
  178. package/{lib → src/lib}/components/popper/Popper.d.ts +33 -33
  179. package/{lib → src/lib}/components/popper/Popper.data.d.ts +7 -7
  180. package/{lib → src/lib}/components/popper/Popper.styles.d.ts +12 -12
  181. package/{lib → src/lib}/components/popper/index.d.ts +2 -2
  182. package/{lib → src/lib}/components/progress/Progress.d.ts +18 -18
  183. package/{lib → src/lib}/components/progress/Progress.styles.d.ts +3 -3
  184. package/{lib → src/lib}/components/progress/index.d.ts +2 -2
  185. package/{lib → src/lib}/components/progress-button/ProgressButton.d.ts +8 -8
  186. package/{lib → src/lib}/components/progress-button/ProgressButton.styles.d.ts +3 -3
  187. package/{lib → src/lib}/components/radio/RadioButton.d.ts +31 -31
  188. package/{lib → src/lib}/components/radio/RadioButton.styles.d.ts +3 -3
  189. package/{lib → src/lib}/components/radio/RadioGroup.d.ts +29 -29
  190. package/{lib → src/lib}/components/radio/RadioGroup.styles.d.ts +6 -6
  191. package/{lib → src/lib}/components/search-input/SearchInput.d.ts +11 -11
  192. package/{lib → src/lib}/components/search-input/SearchInput.styles.d.ts +2 -2
  193. package/{lib → src/lib}/components/sidebar/Sidebar.d.ts +49 -49
  194. package/{lib → src/lib}/components/sidebar/Sidebar.styles.d.ts +2 -2
  195. package/{lib → src/lib}/components/skeleton/Skeleton.d.ts +14 -14
  196. package/{lib → src/lib}/components/skeleton/Skeleton.styles.d.ts +2 -2
  197. package/{lib → src/lib}/components/snackbar/Snackbar.d.ts +21 -21
  198. package/{lib → src/lib}/components/snackbar/Snackbar.styles.d.ts +8 -8
  199. package/{lib → src/lib}/components/snackbar/SnackbarContainer.styles.d.ts +2 -2
  200. package/{lib → src/lib}/components/snackbar/SnackbarHelper.d.ts +2 -2
  201. package/{lib → src/lib}/components/snackbar/SnackbarProvider.d.ts +21 -21
  202. package/{lib → src/lib}/components/snackbar/index.d.ts +4 -4
  203. package/{lib → src/lib}/components/split-button/SplitButton.d.ts +15 -15
  204. package/{lib → src/lib}/components/split-button/SplitButton.styles.d.ts +3 -3
  205. package/{lib → src/lib}/components/split-button/utils/helpers.d.ts +2 -2
  206. package/{lib → src/lib}/components/stepper/Stepper.d.ts +64 -64
  207. package/{lib → src/lib}/components/stepper/Stepper.styles.d.ts +15 -15
  208. package/{lib → src/lib}/components/switch/Switch.d.ts +26 -26
  209. package/{lib → src/lib}/components/switch/Switch.styles.d.ts +3 -3
  210. package/{lib → src/lib}/components/switch/index.d.ts +2 -2
  211. package/{lib → src/lib}/components/table/Table.d.ts +10 -10
  212. package/{lib → src/lib}/components/table/Table.data.d.ts +42 -42
  213. package/{lib → src/lib}/components/table/Table.styles.d.ts +4 -4
  214. package/{lib → src/lib}/components/table/TableAction.d.ts +12 -12
  215. package/{lib → src/lib}/components/table/TableActions.d.ts +7 -7
  216. package/{lib → src/lib}/components/table/TableActions.styles.d.ts +3 -3
  217. package/{lib → src/lib}/components/table/TableBody.d.ts +29 -29
  218. package/{lib → src/lib}/components/table/TableBody.styles.d.ts +2 -2
  219. package/{lib → src/lib}/components/table/TableBodyCheckboxCell.d.ts +8 -8
  220. package/{lib → src/lib}/components/table/TableBodyCheckboxCell.styles.d.ts +3 -3
  221. package/{lib → src/lib}/components/table/TableCell.d.ts +19 -19
  222. package/{lib → src/lib}/components/table/TableCell.styles.d.ts +3 -3
  223. package/{lib → src/lib}/components/table/TableDataWithPagination.d.ts +11 -11
  224. package/{lib → src/lib}/components/table/TableHeader.d.ts +6 -6
  225. package/{lib → src/lib}/components/table/TableHeaderCell.d.ts +36 -36
  226. package/{lib → src/lib}/components/table/TableHeaderCell.styles.d.ts +3 -3
  227. package/{lib → src/lib}/components/table/TableHeaderCheckboxCell.d.ts +8 -8
  228. package/{lib → src/lib}/components/table/TableHeaderCheckboxCell.styles.d.ts +3 -3
  229. package/{lib → src/lib}/components/table/TablePagination.d.ts +25 -25
  230. package/{lib → src/lib}/components/table/TablePagination.styles.d.ts +7 -7
  231. package/{lib → src/lib}/components/table/TableRow.d.ts +30 -30
  232. package/{lib → src/lib}/components/table/TableRow.styles.d.ts +2 -2
  233. package/{lib → src/lib}/components/table/TableRowEmpty.d.ts +7 -7
  234. package/{lib → src/lib}/components/table/TableSelectionToolbar.d.ts +8 -8
  235. package/{lib → src/lib}/components/table/TableSelectionToolbar.styles.d.ts +2 -2
  236. package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTable.d.ts +2 -2
  237. package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTable.styles.d.ts +2 -2
  238. package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTableBody.d.ts +2 -2
  239. package/{lib → src/lib}/components/table/collapsible-table/ExpandCollapseCell.d.ts +3 -3
  240. package/{lib → src/lib}/components/table/collapsible-table/ExpandCollapseCell.styles.d.ts +3 -3
  241. package/{lib → src/lib}/components/table/collapsible-table/index.d.ts +4 -4
  242. package/{lib → src/lib}/components/table/collapsible-table/interfaces.d.ts +43 -43
  243. package/{lib → src/lib}/components/table/index.d.ts +13 -13
  244. package/{lib → src/lib}/components/table/utils/helpers.d.ts +9 -9
  245. package/{lib → src/lib}/components/table/utils/interfaces.d.ts +87 -87
  246. package/{lib → src/lib}/components/table/utils/models.d.ts +25 -25
  247. package/{lib → src/lib}/components/tabs/Tabs.d.ts +31 -31
  248. package/{lib → src/lib}/components/tabs/Tabs.styles.d.ts +2 -2
  249. package/{lib → src/lib}/components/time-picker/TimePicker.d.ts +63 -63
  250. package/{lib → src/lib}/components/time-picker/TimePicker.styles.d.ts +7 -7
  251. package/{lib → src/lib}/components/time-picker/index.d.ts +3 -3
  252. package/{lib → src/lib}/components/time-picker/utils/helpers.d.ts +18 -18
  253. package/{lib → src/lib}/components/time-picker/utils/models.d.ts +4 -4
  254. package/{lib → src/lib}/components/tooltip/Tooltip.d.ts +14 -14
  255. package/{lib → src/lib}/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +9 -9
  256. package/{lib → src/lib}/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +3 -3
  257. package/{lib → src/lib}/components/truncate-with-tooltip/index.d.ts +2 -2
  258. package/{lib → src/lib}/components/truncate-with-tooltip/utils/helpers.d.ts +3 -3
  259. package/{lib → src/lib}/components/typography/Typography.d.ts +18 -18
  260. package/{lib → src/lib}/components/useStylesWithRootClass.d.ts +1 -1
  261. package/{lib → src/lib}/fonts/fonts.d.ts +1 -1
  262. package/{lib → src/lib}/theme-provider/ThemeProvider.d.ts +32 -31
  263. package/{lib → src/lib}/theme-provider/colors/agility-dark-theme-colors.d.ts +9 -9
  264. package/{lib → src/lib}/theme-provider/colors/agility-light-theme-colors.d.ts +11 -11
  265. package/src/lib/theme-provider/colors/figma-colors.d.ts +3 -0
  266. package/{lib → src/lib}/theme-provider/colors/light-theme-colors.d.ts +104 -104
  267. package/{lib → src/lib}/theme-provider/common/variables.d.ts +6 -6
  268. package/src/lib/theme-provider/interfaces.d.ts +198 -0
  269. package/index.umd.js +0 -12006
  270. package/lib/components/AccessibilityProps.d.ts +0 -1
  271. package/lib/components/button-toggle/utils/models.d.ts +0 -13
  272. package/lib/components/file-upload/FileListItem.styles.d.ts +0 -42
  273. package/lib/components/file-upload/uploadHelpers.d.ts +0 -12
  274. package/lib/theme-provider/interfaces.d.ts +0 -56
@@ -1,42 +1,42 @@
1
- import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
- import { BaseButtonProps } from '../BaseButtonProps';
3
- import { CommonProps } from '../CommonProps';
4
- export interface DialogButtonProps extends BaseButtonProps {
5
- /** Icon placed after the children. */
6
- endIcon?: ReactNode;
7
- /** The text displayed on the button */
8
- label?: string;
9
- /** The icon to display on the button */
10
- startIcon?: ReactNode;
11
- }
12
- export interface SubmitButtonProps extends DialogButtonProps {
13
- /** The type of button to be used */
14
- type?: 'primary' | 'destructive';
15
- }
16
- export interface DialogProps extends CommonProps {
17
- /** props passed down to the cancel button */
18
- cancelButtonProps?: DialogButtonProps;
19
- /** boolean that toggles existence of the Cancel button */
20
- cancelButtonVisible?: boolean;
21
- /** components or string that is displayed in the dialog body */
22
- children?: ReactNode;
23
- /** boolean that toggles visibility of close icon on top right of dialog header*/
24
- closeIconVisible?: boolean;
25
- /** boolean if true then the dialog will close*/
26
- closeOnClickAway?: boolean;
27
- /** boolean if true then the dialog will be closed on submit **/
28
- closeOnSubmit?: boolean;
29
- /** boolean that toggles existence of primary action button */
30
- hasPrimaryAction?: boolean;
31
- /** The callback to be executed when the action is cancelled */
32
- onCancel?: (event: KeyboardEvent | MouseEvent) => void;
33
- /** The callback to be executed when the action is submitted */
34
- onSubmit?: (event: KeyboardEvent | MouseEvent) => void;
35
- /** if true, the dialog is visible to the user */
36
- open: boolean;
37
- /** props passed down to the submit button */
38
- submitButtonProps?: SubmitButtonProps;
39
- /** dialog heading */
40
- title: ReactNode;
41
- }
42
- export declare const DotDialog: ({ ariaLabel, cancelButtonProps, cancelButtonVisible, className, "data-testid": dataTestId, children, closeIconVisible, closeOnClickAway, closeOnSubmit, hasPrimaryAction, onCancel, onSubmit, open, submitButtonProps, title, }: DialogProps) => JSX.Element;
1
+ import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
+ import { BaseButtonProps } from '../BaseButtonProps';
3
+ import { CommonProps } from '../CommonProps';
4
+ export interface DialogButtonProps extends BaseButtonProps {
5
+ /** Icon placed after the children. */
6
+ endIcon?: ReactNode;
7
+ /** The text displayed on the button */
8
+ label?: string;
9
+ /** The icon to display on the button */
10
+ startIcon?: ReactNode;
11
+ }
12
+ export interface SubmitButtonProps extends DialogButtonProps {
13
+ /** The type of button to be used */
14
+ type?: 'primary' | 'destructive';
15
+ }
16
+ export interface DialogProps extends CommonProps {
17
+ /** props passed down to the cancel button */
18
+ cancelButtonProps?: DialogButtonProps;
19
+ /** boolean that toggles existence of the Cancel button */
20
+ cancelButtonVisible?: boolean;
21
+ /** components or string that is displayed in the dialog body */
22
+ children?: ReactNode;
23
+ /** boolean that toggles visibility of close icon on top right of dialog header*/
24
+ closeIconVisible?: boolean;
25
+ /** boolean if true then the dialog will close*/
26
+ closeOnClickAway?: boolean;
27
+ /** boolean if true then the dialog will be closed on submit **/
28
+ closeOnSubmit?: boolean;
29
+ /** boolean that toggles existence of primary action button */
30
+ hasPrimaryAction?: boolean;
31
+ /** The callback to be executed when the action is cancelled */
32
+ onCancel?: (event: KeyboardEvent | MouseEvent) => void;
33
+ /** The callback to be executed when the action is submitted */
34
+ onSubmit?: (event: KeyboardEvent | MouseEvent) => void;
35
+ /** if true, the dialog is visible to the user */
36
+ open: boolean;
37
+ /** props passed down to the submit button */
38
+ submitButtonProps?: SubmitButtonProps;
39
+ /** dialog heading */
40
+ title: ReactNode;
41
+ }
42
+ export declare const DotDialog: ({ ariaLabel, cancelButtonProps, cancelButtonVisible, className, "data-testid": dataTestId, children, closeIconVisible, closeOnClickAway, closeOnSubmit, hasPrimaryAction, onCancel, onSubmit, open, submitButtonProps, title, }: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { Dialog } from '@mui/material';
2
- export declare const rootClassName = "dot-dialog";
3
- export declare const StyledDialog: import("styled-components").StyledComponent<typeof Dialog, any, {}, never>;
1
+ import { Dialog } from '@mui/material';
2
+ export declare const rootClassName = "dot-dialog";
3
+ export declare const StyledDialog: import("styled-components").StyledComponent<typeof Dialog, any, {}, never>;
@@ -1,16 +1,16 @@
1
- import { CommonProps } from '../CommonProps';
2
- export declare type DividerOrientation = 'horizontal' | 'vertical';
3
- export declare type DividerVariant = 'fullWidth' | 'inset' | 'middle';
4
- export interface DividerProps extends CommonProps {
5
- /** Absolutely position the element. Default value: `false` */
6
- absolute?: boolean;
7
- /** If true, a vertical divider will have the correct height when used in flex container. (By default, a vertical divider will have a calculated height of 0px if it is the child of a flex container.) */
8
- flexItem?: boolean;
9
- /** If `true`, the divider will have a lighter color. Default value: `false` */
10
- light?: boolean;
11
- /** The divider orientation. (`horizontal`, `vertical`). Default value: `horizontal` */
12
- orientation?: DividerOrientation;
13
- /** The variant to use. (`fullWidth`, `inset`, `middle`) */
14
- variant?: DividerVariant;
15
- }
16
- export declare const DotDivider: ({ absolute, ariaLabel, className, "data-testid": dataTestId, flexItem, light, orientation, variant, }: DividerProps) => JSX.Element;
1
+ import { CommonProps } from '../CommonProps';
2
+ export type DividerOrientation = 'horizontal' | 'vertical';
3
+ export type DividerVariant = 'fullWidth' | 'inset' | 'middle';
4
+ export interface DividerProps extends CommonProps {
5
+ /** Absolutely position the element. Default value: `false` */
6
+ absolute?: boolean;
7
+ /** If true, a vertical divider will have the correct height when used in flex container. (By default, a vertical divider will have a calculated height of 0px if it is the child of a flex container.) */
8
+ flexItem?: boolean;
9
+ /** If `true`, the divider will have a lighter color. Default value: `false` */
10
+ light?: boolean;
11
+ /** The divider orientation. (`horizontal`, `vertical`). Default value: `horizontal` */
12
+ orientation?: DividerOrientation;
13
+ /** The variant to use. (`fullWidth`, `inset`, `middle`) */
14
+ variant?: DividerVariant;
15
+ }
16
+ export declare const DotDivider: ({ absolute, ariaLabel, className, "data-testid": dataTestId, flexItem, light, orientation, variant, }: DividerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-divider";
2
- export declare const StyledDivider: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").DividerTypeMap<{}, "hr">>, any, {}, never>;
1
+ export declare const rootClassName = "dot-divider";
2
+ export declare const StyledDivider: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").DividerTypeMap<{}, "hr">>, any, {}, never>;
@@ -1 +1 @@
1
- export * from './Divider';
1
+ export * from './Divider';
@@ -1,23 +1,23 @@
1
- import { CommonProps } from '../CommonProps';
2
- import { DraggableItem, DraggableListChangeHandler } from './utils/models';
3
- export declare const DEFAULT_LIST_WIDTH = "100%";
4
- export declare const DEFAULT_LIST_ITEM_HEIGHT = 36;
5
- export interface DraggableListProps extends CommonProps {
6
- /** If true, component will prevent items to be dragged. */
7
- disableDrag?: boolean;
8
- /**
9
- * A CSS selector for tags that will act as the draggable handle.
10
- * For example: `draggableHandle: '.MyDragHandleClassName'`
11
- * If you forget the leading . it will not work.
12
- */
13
- draggableHandle?: string;
14
- /** Array of draggable list items displayed */
15
- items: DraggableItem[];
16
- /** Callback function which gets executed when the list changes */
17
- onChange?: DraggableListChangeHandler;
18
- /** Height of the list item in pixels, defaults to 36px */
19
- rowHeight?: number;
20
- /** Width of the draggable list, defaults to '100%' */
21
- width?: number | string;
22
- }
23
- export declare const DotDraggableList: ({ ariaLabel, className, "data-testid": dataTestId, disableDrag, draggableHandle, items, onChange, rowHeight, width, }: DraggableListProps) => JSX.Element;
1
+ import { CommonProps } from '../CommonProps';
2
+ import { DraggableItem, DraggableListChangeHandler } from './utils/models';
3
+ export declare const DEFAULT_LIST_WIDTH = "100%";
4
+ export declare const DEFAULT_LIST_ITEM_HEIGHT = 36;
5
+ export interface DraggableListProps extends CommonProps {
6
+ /** If true, component will prevent items to be dragged. */
7
+ disableDrag?: boolean;
8
+ /**
9
+ * A CSS selector for tags that will act as the draggable handle.
10
+ * For example: `draggableHandle: '.MyDragHandleClassName'`
11
+ * If you forget the leading . it will not work.
12
+ */
13
+ draggableHandle?: string;
14
+ /** Array of draggable list items displayed */
15
+ items: DraggableItem[];
16
+ /** Callback function which gets executed when the list changes */
17
+ onChange?: DraggableListChangeHandler;
18
+ /** Height of the list item in pixels, defaults to 36px */
19
+ rowHeight?: number;
20
+ /** Width of the draggable list, defaults to '100%' */
21
+ width?: number | string;
22
+ }
23
+ export declare const DotDraggableList: ({ ariaLabel, className, "data-testid": dataTestId, disableDrag, draggableHandle, items, onChange, rowHeight, width, }: DraggableListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- export declare const rootClassName = "dot-draggable-list";
2
- export declare const listItemClassName = "dot-draggable-list-item";
3
- interface StyledDraggableListProps {
4
- draggableHandle?: string;
5
- width: string;
6
- }
7
- export declare const StyledDraggableList: import("styled-components").StyledComponent<"div", any, StyledDraggableListProps, never>;
8
- export {};
1
+ export declare const rootClassName = "dot-draggable-list";
2
+ export declare const listItemClassName = "dot-draggable-list-item";
3
+ interface StyledDraggableListProps {
4
+ draggableHandle?: string;
5
+ width: string;
6
+ }
7
+ export declare const StyledDraggableList: import("styled-components").StyledComponent<"div", any, StyledDraggableListProps, never>;
8
+ export {};
@@ -1,2 +1,2 @@
1
- export * from './DraggableList';
2
- export type { DraggableItem, DraggableListChangeHandler } from './utils/models';
1
+ export * from './DraggableList';
2
+ export type { DraggableItem, DraggableListChangeHandler } from './utils/models';
@@ -1,5 +1,5 @@
1
- import { Layout } from 'react-grid-layout';
2
- import { DraggableItem } from './models';
3
- export declare const getOrderedListItems: (layout: Layout[], listItems: DraggableItem[]) => DraggableItem[];
4
- export declare const checkIfEqual: (oldList: DraggableItem[], newList: DraggableItem[]) => boolean;
5
- export declare const getListItemLayout: (listItems: DraggableItem[]) => Layout[];
1
+ import { Layout } from 'react-grid-layout';
2
+ import { DraggableItem } from './models';
3
+ export declare const getOrderedListItems: (layout: Layout[], listItems: DraggableItem[]) => DraggableItem[];
4
+ export declare const checkIfEqual: (oldList: DraggableItem[], newList: DraggableItem[]) => boolean;
5
+ export declare const getListItemLayout: (listItems: DraggableItem[]) => Layout[];
@@ -1,5 +1,5 @@
1
- import { ListItemProps } from '@mui/material';
2
- export interface DraggableItem extends ListItemProps {
3
- id: string;
4
- }
5
- export declare type DraggableListChangeHandler = (listItems: DraggableItem[]) => void;
1
+ import { ListItemProps } from '@mui/material';
2
+ export interface DraggableItem extends ListItemProps {
3
+ id: string;
4
+ }
5
+ export type DraggableListChangeHandler = (listItems: DraggableItem[]) => void;
@@ -1,45 +1,45 @@
1
- import { CSSProperties, MouseEvent, ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- import { AriaRoles } from '../AccessibilityProps';
4
- export declare type DrawerAnchor = 'bottom' | 'left' | 'right' | 'top';
5
- export declare type DrawerVariant = 'permanent' | 'persistent' | 'temporary';
6
- export declare type DrawerModalProps = {
7
- container?: Element;
8
- hideBackdrop?: boolean;
9
- style?: CSSProperties;
10
- };
11
- export declare type DrawerPaperProps = {
12
- role?: AriaRoles;
13
- style?: CSSProperties;
14
- };
15
- export interface DrawerSection extends CommonProps {
16
- /** nested child component of drawer section */
17
- children: ReactNode;
18
- }
19
- export interface DrawerProps extends CommonProps {
20
- /** Props applied to the Modal element. */
21
- ModalProps?: DrawerModalProps;
22
- /** Props applied to the Paper element. */
23
- PaperProps?: DrawerPaperProps;
24
- /** Side from which the drawer will appear 'bottom', 'left', 'right', 'top' */
25
- anchor?: DrawerAnchor;
26
- /** string or JSX element that is displayed inside the drawer */
27
- children?: ReactNode;
28
- /** Props applied to drawer body */
29
- drawerBodyProps?: Omit<DrawerSection, 'ariaLabel'>;
30
- /** Props applied to drawer footer */
31
- drawerFooterProps?: Omit<DrawerSection, 'ariaLabel'>;
32
- /** Props applied to drawer header */
33
- drawerHeaderProps?: Omit<DrawerSection, 'ariaLabel'>;
34
- /** The height of the drawer when anchor is 'top' or 'bottom' */
35
- height?: string;
36
- /** Callback fired when the component requests to be closed. */
37
- onClose?: (event: MouseEvent | KeyboardEvent) => void;
38
- /** If true, the drawer is open. */
39
- open: boolean;
40
- /** The variant to use 'permanent', 'persistent', 'temporary' */
41
- variant?: DrawerVariant;
42
- /** The width of the drawer when anchor is 'left' or 'right' */
43
- width?: string;
44
- }
45
- export declare const DotDrawer: ({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element;
1
+ import { CSSProperties, MouseEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ import { AriaRoles } from '../AccessibilityProps';
4
+ export type DrawerAnchor = 'bottom' | 'left' | 'right' | 'top';
5
+ export type DrawerVariant = 'permanent' | 'persistent' | 'temporary';
6
+ export type DrawerModalProps = {
7
+ container?: Element;
8
+ hideBackdrop?: boolean;
9
+ style?: CSSProperties;
10
+ };
11
+ export type DrawerPaperProps = {
12
+ role?: AriaRoles;
13
+ style?: CSSProperties;
14
+ };
15
+ export interface DrawerSection extends CommonProps {
16
+ /** nested child component of drawer section */
17
+ children: ReactNode;
18
+ }
19
+ export interface DrawerProps extends CommonProps {
20
+ /** Props applied to the Modal element. */
21
+ ModalProps?: DrawerModalProps;
22
+ /** Props applied to the Paper element. */
23
+ PaperProps?: DrawerPaperProps;
24
+ /** Side from which the drawer will appear 'bottom', 'left', 'right', 'top' */
25
+ anchor?: DrawerAnchor;
26
+ /** string or JSX element that is displayed inside the drawer */
27
+ children?: ReactNode;
28
+ /** Props applied to drawer body */
29
+ drawerBodyProps?: Omit<DrawerSection, 'ariaLabel'>;
30
+ /** Props applied to drawer footer */
31
+ drawerFooterProps?: Omit<DrawerSection, 'ariaLabel'>;
32
+ /** Props applied to drawer header */
33
+ drawerHeaderProps?: Omit<DrawerSection, 'ariaLabel'>;
34
+ /** The height of the drawer when anchor is 'top' or 'bottom' */
35
+ height?: string;
36
+ /** Callback fired when the component requests to be closed. */
37
+ onClose?: (event: MouseEvent | KeyboardEvent) => void;
38
+ /** If true, the drawer is open. */
39
+ open: boolean;
40
+ /** The variant to use 'permanent', 'persistent', 'temporary' */
41
+ variant?: DrawerVariant;
42
+ /** The width of the drawer when anchor is 'left' or 'right' */
43
+ width?: string;
44
+ }
45
+ export declare const DotDrawer: ({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Drawer } from '@mui/material';
2
- import { DrawerProps } from './Drawer';
3
- export declare const rootClassName = "dot-drawer";
4
- export declare const StyledDrawer: import("styled-components").StyledComponent<typeof Drawer, any, DrawerProps, never>;
1
+ import { Drawer } from '@mui/material';
2
+ import { DrawerProps } from './Drawer';
3
+ export declare const rootClassName = "dot-drawer";
4
+ export declare const StyledDrawer: import("styled-components").StyledComponent<typeof Drawer, any, DrawerProps, never>;
@@ -1,9 +1,9 @@
1
- import { MouseEvent, ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export interface DrawerBodyProps extends CommonProps {
4
- children: ReactNode;
5
- headerExists: boolean;
6
- onClose: (event: MouseEvent | KeyboardEvent) => void;
7
- variant: string;
8
- }
9
- export declare const DotDrawerBody: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, headerExists, onClose, variant, }: DrawerBodyProps) => JSX.Element;
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export interface DrawerBodyProps extends CommonProps {
4
+ children: ReactNode;
5
+ headerExists: boolean;
6
+ onClose: (event: MouseEvent | KeyboardEvent) => void;
7
+ variant: string;
8
+ }
9
+ export declare const DotDrawerBody: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, headerExists, onClose, variant, }: DrawerBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-drawer-body";
2
- export declare const StyleDrawerBody: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const rootClassName = "dot-drawer-body";
2
+ export declare const StyleDrawerBody: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export interface DrawerFooterProps extends CommonProps {
4
- children: ReactNode;
5
- }
6
- export declare const DotDrawerFooter: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, }: DrawerFooterProps) => JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export interface DrawerFooterProps extends CommonProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare const DotDrawerFooter: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, }: DrawerFooterProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-drawer-footer";
2
- export declare const StyleDrawerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const rootClassName = "dot-drawer-footer";
2
+ export declare const StyleDrawerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,8 +1,8 @@
1
- import { MouseEvent, ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export interface DrawerHeaderProps extends CommonProps {
4
- children: ReactNode;
5
- onClose: (event: MouseEvent | KeyboardEvent) => void;
6
- variant: string;
7
- }
8
- export declare const DotDrawerHeader: ({ ariaLabel, children, className, "data-testid": dataTestId, onClose, variant, }: DrawerHeaderProps) => JSX.Element;
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export interface DrawerHeaderProps extends CommonProps {
4
+ children: ReactNode;
5
+ onClose: (event: MouseEvent | KeyboardEvent) => void;
6
+ variant: string;
7
+ }
8
+ export declare const DotDrawerHeader: ({ ariaLabel, children, className, "data-testid": dataTestId, onClose, variant, }: DrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-drawer-header";
2
- export declare const StyleDrawerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const rootClassName = "dot-drawer-header";
2
+ export declare const StyleDrawerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,10 +1,10 @@
1
- import { CommonProps } from '../CommonProps';
2
- import { DynamicFormConfig, DynamicFormOutputData, DynamicFormState } from './models';
3
- export interface DynamicFormProps extends CommonProps {
4
- config: DynamicFormConfig;
5
- disabled?: boolean;
6
- liveValidation?: boolean;
7
- onChange?: (formData: DynamicFormState) => void;
8
- onSubmit?: (formData: DynamicFormOutputData) => void;
9
- }
10
- export declare const DotDynamicForm: ({ ariaLabel, className, "data-testid": dataTestId, config, disabled: isFormDisabled, liveValidation, onChange, onSubmit, }: DynamicFormProps) => JSX.Element;
1
+ import { CommonProps } from '../CommonProps';
2
+ import { DynamicFormConfig, DynamicFormOutputData, DynamicFormState } from './models';
3
+ export interface DynamicFormProps extends CommonProps {
4
+ config: DynamicFormConfig;
5
+ disabled?: boolean;
6
+ liveValidation?: boolean;
7
+ onChange?: (formData: DynamicFormState) => void;
8
+ onSubmit?: (formData: DynamicFormOutputData) => void;
9
+ }
10
+ export declare const DotDynamicForm: ({ ariaLabel, className, "data-testid": dataTestId, config, disabled: isFormDisabled, liveValidation, onChange, onSubmit, }: DynamicFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-dynamic-form";
2
- export declare const StyledDynamicForm: import("styled-components").StyledComponent<({ ariaLabel, children, className, "data-testid": dataTestId, onSubmit, }: import("../form/Form").FormProps) => JSX.Element, any, {}, never>;
1
+ export declare const rootClassName = "dot-dynamic-form";
2
+ export declare const StyledDynamicForm: import("styled-components").StyledComponent<({ ariaLabel, children, className, "data-testid": dataTestId, onSubmit, }: import("../form/Form").FormProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
@@ -1,4 +1,4 @@
1
- import { DynamicFormControlType, DynamicFormStateItem } from './models';
2
- export declare const DATA_CONTROLS: DynamicFormControlType[];
3
- export declare const DATA_CONTROLS_WITHOUT_VALIDATION: DynamicFormControlType[];
4
- export declare const INITIAL_STATE_ITEM: DynamicFormStateItem;
1
+ import { DynamicFormControlType, DynamicFormStateItem } from './models';
2
+ export declare const DATA_CONTROLS: DynamicFormControlType[];
3
+ export declare const DATA_CONTROLS_WITHOUT_VALIDATION: DynamicFormControlType[];
4
+ export declare const INITIAL_STATE_ITEM: DynamicFormStateItem;
@@ -1,81 +1,81 @@
1
- import { ComponentType, ReactNode } from 'react';
2
- import { AutoCompleteProps } from '../auto-complete';
3
- import { ButtonProps } from '../button/Button';
4
- import { CheckboxProps } from '../checkbox/Checkbox';
5
- import { InputTextProps } from '../input-form-fields/InputText';
6
- import { InputSelectProps } from '../input-form-fields/InputSelect';
7
- import { CheckboxGroupProps } from '../checkbox/CheckboxGroup';
8
- import { RadioGroupProps } from '../radio/RadioGroup';
9
- import { SwitchProps } from '../switch/Switch';
10
- import { ProgressButtonProps } from '../progress-button/ProgressButton';
11
- export declare type DynamicFormControlType = 'dot-input-text' | 'dot-input-select' | 'dot-checkbox' | 'dot-checkbox-group' | 'dot-autocomplete' | 'dot-button' | 'dot-progress-button' | 'dot-radio-group' | 'dot-reset' | 'dot-submit' | 'dot-progress-submit' | 'dot-switch' | 'dot-form-section' | 'custom-element';
12
- export declare type DynamicFormControlProps = AutoCompleteProps | InputTextProps | InputSelectProps | CheckboxProps | CheckboxGroupProps | ButtonProps | ProgressButtonProps | RadioGroupProps | SwitchProps;
13
- export interface DynamicFormOutputData {
14
- [key: string]: unknown;
15
- }
16
- export declare type ConditionFunction = (formValues: DynamicFormOutputData) => boolean;
17
- export declare type DisabledConditionFunction = (formValues: DynamicFormOutputData, isFormValid: boolean) => boolean;
18
- export declare type ControlCondition = boolean | ConditionFunction;
19
- export declare type DisabledControlCondition = boolean | DisabledConditionFunction;
20
- export declare type ControlClickHandler = (formValues: DynamicFormOutputData) => void;
21
- export interface DynamicFormSectionProps {
22
- sectionControls: ReactNode[];
23
- }
24
- export interface DynamicFormSection {
25
- FormSectionComponent: ComponentType<DynamicFormSectionProps>;
26
- sectionControls: DynamicFormControl[];
27
- }
28
- export interface DynamicFormControl {
29
- controlName?: string;
30
- controlProps?: DynamicFormControlProps;
31
- controlType: DynamicFormControlType;
32
- customElement?: ReactNode;
33
- disabled?: DisabledControlCondition;
34
- formSection?: DynamicFormSection;
35
- hidden?: ControlCondition;
36
- initialValue?: unknown;
37
- onControlClick?: ControlClickHandler;
38
- validation?: DynamicFormValidation;
39
- }
40
- export interface FieldValidation {
41
- errorMessage: string | null;
42
- isValid: boolean;
43
- }
44
- export interface DynamicFormConfig {
45
- controls: DynamicFormControl[];
46
- }
47
- export interface ValidationField {
48
- condition?: ConditionFunction;
49
- errorMessage: string;
50
- }
51
- export interface IsRequired extends ValidationField {
52
- value: boolean;
53
- }
54
- export interface Length extends ValidationField {
55
- value: number;
56
- }
57
- export interface DynamicFormValidation {
58
- customValidator?: (value: unknown) => FieldValidation;
59
- isRequired?: IsRequired;
60
- maxLength?: Length;
61
- minLength?: Length;
62
- }
63
- export interface DynamicFormStateItem {
64
- errorMessage: string | null;
65
- hidden?: ControlCondition;
66
- isTouched: boolean;
67
- isValid: boolean;
68
- value: unknown;
69
- }
70
- export interface DynamicFormState {
71
- data: DynamicFormStateData;
72
- isValid: boolean;
73
- }
74
- export interface DynamicFormStateData {
75
- [key: string]: DynamicFormStateItem;
76
- }
77
- export interface FormStateUpdateArgs {
78
- controlName: string;
79
- newValue: unknown;
80
- validate?: boolean;
81
- }
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { AutoCompleteProps } from '../auto-complete';
3
+ import { ButtonProps } from '../button/Button';
4
+ import { CheckboxProps } from '../checkbox/Checkbox';
5
+ import { InputTextProps } from '../input-form-fields/InputText';
6
+ import { InputSelectProps } from '../input-form-fields/InputSelect';
7
+ import { CheckboxGroupProps } from '../checkbox/CheckboxGroup';
8
+ import { RadioGroupProps } from '../radio/RadioGroup';
9
+ import { SwitchProps } from '../switch/Switch';
10
+ import { ProgressButtonProps } from '../progress-button/ProgressButton';
11
+ export type DynamicFormControlType = 'dot-input-text' | 'dot-input-select' | 'dot-checkbox' | 'dot-checkbox-group' | 'dot-autocomplete' | 'dot-button' | 'dot-progress-button' | 'dot-radio-group' | 'dot-reset' | 'dot-submit' | 'dot-progress-submit' | 'dot-switch' | 'dot-form-section' | 'custom-element';
12
+ export type DynamicFormControlProps = AutoCompleteProps | InputTextProps | InputSelectProps | CheckboxProps | CheckboxGroupProps | ButtonProps | ProgressButtonProps | RadioGroupProps | SwitchProps;
13
+ export interface DynamicFormOutputData {
14
+ [key: string]: unknown;
15
+ }
16
+ export type ConditionFunction = (formValues: DynamicFormOutputData) => boolean;
17
+ export type DisabledConditionFunction = (formValues: DynamicFormOutputData, isFormValid: boolean) => boolean;
18
+ export type ControlCondition = boolean | ConditionFunction;
19
+ export type DisabledControlCondition = boolean | DisabledConditionFunction;
20
+ export type ControlClickHandler = (formValues: DynamicFormOutputData) => void;
21
+ export interface DynamicFormSectionProps {
22
+ sectionControls: ReactNode[];
23
+ }
24
+ export interface DynamicFormSection {
25
+ FormSectionComponent: ComponentType<DynamicFormSectionProps>;
26
+ sectionControls: DynamicFormControl[];
27
+ }
28
+ export interface DynamicFormControl {
29
+ controlName?: string;
30
+ controlProps?: DynamicFormControlProps;
31
+ controlType: DynamicFormControlType;
32
+ customElement?: ReactNode;
33
+ disabled?: DisabledControlCondition;
34
+ formSection?: DynamicFormSection;
35
+ hidden?: ControlCondition;
36
+ initialValue?: unknown;
37
+ onControlClick?: ControlClickHandler;
38
+ validation?: DynamicFormValidation;
39
+ }
40
+ export interface FieldValidation {
41
+ errorMessage: string | null;
42
+ isValid: boolean;
43
+ }
44
+ export interface DynamicFormConfig {
45
+ controls: DynamicFormControl[];
46
+ }
47
+ export interface ValidationField {
48
+ condition?: ConditionFunction;
49
+ errorMessage: string;
50
+ }
51
+ export interface IsRequired extends ValidationField {
52
+ value: boolean;
53
+ }
54
+ export interface Length extends ValidationField {
55
+ value: number;
56
+ }
57
+ export interface DynamicFormValidation {
58
+ customValidator?: (value: unknown) => FieldValidation;
59
+ isRequired?: IsRequired;
60
+ maxLength?: Length;
61
+ minLength?: Length;
62
+ }
63
+ export interface DynamicFormStateItem {
64
+ errorMessage: string | null;
65
+ hidden?: ControlCondition;
66
+ isTouched: boolean;
67
+ isValid: boolean;
68
+ value: unknown;
69
+ }
70
+ export interface DynamicFormState {
71
+ data: DynamicFormStateData;
72
+ isValid: boolean;
73
+ }
74
+ export interface DynamicFormStateData {
75
+ [key: string]: DynamicFormStateItem;
76
+ }
77
+ export interface FormStateUpdateArgs {
78
+ controlName: string;
79
+ newValue: unknown;
80
+ validate?: boolean;
81
+ }