@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,64 +1,64 @@
1
- import { MouseEvent, KeyboardEvent, ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- import { CssCellProps } from '../css-grid/CssCell';
4
- export declare const defaultCellProps: CssCellProps;
5
- export declare type StepperOrientation = 'horizontal' | 'vertical';
6
- export declare type StepsPosition = 'left' | 'right';
7
- export interface StepProps extends CommonProps {
8
- /** if set to `true` the step will display a checkmark icon */
9
- completed?: boolean;
10
- /** will be displayed in the right-hand side of the step */
11
- content?: ReactNode;
12
- /** will be displayed below the label of the step */
13
- description?: ReactNode;
14
- /** if set to `true` the step will be completely disabled */
15
- disabled?: boolean;
16
- /** if set to `true` the step will display a error icon and color */
17
- error?: boolean;
18
- /** if set to `true`, content will take half of the width, otherwise it takes full width by default */
19
- halfWidthContent?: boolean;
20
- /** if specified, the icon will be used for the step instead of the default icon */
21
- iconId?: string;
22
- /** order of the step in the list */
23
- id: number;
24
- /** determines if the step is currently in progress */
25
- inProgress?: boolean;
26
- /** displays the step title */
27
- label: string;
28
- /** function that is called when the step is clicked */
29
- onClick?: () => void;
30
- /** callback function that is called when the step is completed */
31
- onComplete?: () => void;
32
- onError?: (isValid: boolean) => void;
33
- }
34
- export interface StepperProps extends CommonProps {
35
- /** determines the `id` of the step which is active */
36
- activeStep?: number;
37
- /** if set to `true`, clicking on a step is only allowed if the previous step is completed **/
38
- disableUncompletedStepNav: boolean;
39
- /** final content displayed after the last step is completed */
40
- finalContent?: ReactNode;
41
- /** initial content displayed before any step is active, ie when `activeStep` is 0 */
42
- initialContent?: ReactNode;
43
- /** if passed, will overwrite the default "next" button text */
44
- nextButtonText?: string;
45
- /** if set to `true`, the "next" button will be disabled */
46
- nextStepDisabled?: boolean;
47
- /** the number of pixels occupied by elements other than the stepper in the page height **/
48
- offset?: number;
49
- /** function that is called if the "previous" button is clicked */
50
- onBack?: () => void;
51
- /** function that is called if the "cancel" button is clicked */
52
- onCancel?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
53
- /** function that is called when all steps are finished and the "submit" button is clicked */
54
- onSubmit?: () => void;
55
- /** orientation of the stepper */
56
- orientation?: StepperOrientation;
57
- /** array of steps to be displayed */
58
- steps: StepProps[];
59
- /** determines where to display the array of steps */
60
- stepsPosition?: StepsPosition;
61
- /** if passed, will overwrite the default "submit" button text */
62
- submitButtonText?: string;
63
- }
64
- export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element;
1
+ import { MouseEvent, KeyboardEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ import { CssCellProps } from '../css-grid/CssCell';
4
+ export declare const defaultCellProps: CssCellProps;
5
+ export type StepperOrientation = 'horizontal' | 'vertical';
6
+ export type StepsPosition = 'left' | 'right';
7
+ export interface StepProps extends CommonProps {
8
+ /** if set to `true` the step will display a checkmark icon */
9
+ completed?: boolean;
10
+ /** will be displayed in the right-hand side of the step */
11
+ content?: ReactNode;
12
+ /** will be displayed below the label of the step */
13
+ description?: ReactNode;
14
+ /** if set to `true` the step will be completely disabled */
15
+ disabled?: boolean;
16
+ /** if set to `true` the step will display a error icon and color */
17
+ error?: boolean;
18
+ /** if set to `true`, content will take half of the width, otherwise it takes full width by default */
19
+ halfWidthContent?: boolean;
20
+ /** if specified, the icon will be used for the step instead of the default icon */
21
+ iconId?: string;
22
+ /** order of the step in the list */
23
+ id: number;
24
+ /** determines if the step is currently in progress */
25
+ inProgress?: boolean;
26
+ /** displays the step title */
27
+ label: string;
28
+ /** function that is called when the step is clicked */
29
+ onClick?: () => void;
30
+ /** callback function that is called when the step is completed */
31
+ onComplete?: () => void;
32
+ onError?: (isValid: boolean) => void;
33
+ }
34
+ export interface StepperProps extends CommonProps {
35
+ /** determines the `id` of the step which is active */
36
+ activeStep?: number;
37
+ /** if set to `true`, clicking on a step is only allowed if the previous step is completed **/
38
+ disableUncompletedStepNav: boolean;
39
+ /** final content displayed after the last step is completed */
40
+ finalContent?: ReactNode;
41
+ /** initial content displayed before any step is active, ie when `activeStep` is 0 */
42
+ initialContent?: ReactNode;
43
+ /** if passed, will overwrite the default "next" button text */
44
+ nextButtonText?: string;
45
+ /** if set to `true`, the "next" button will be disabled */
46
+ nextStepDisabled?: boolean;
47
+ /** the number of pixels occupied by elements other than the stepper in the page height **/
48
+ offset?: number;
49
+ /** function that is called if the "previous" button is clicked */
50
+ onBack?: () => void;
51
+ /** function that is called if the "cancel" button is clicked */
52
+ onCancel?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
53
+ /** function that is called when all steps are finished and the "submit" button is clicked */
54
+ onSubmit?: () => void;
55
+ /** orientation of the stepper */
56
+ orientation?: StepperOrientation;
57
+ /** array of steps to be displayed */
58
+ steps: StepProps[];
59
+ /** determines where to display the array of steps */
60
+ stepsPosition?: StepsPosition;
61
+ /** if passed, will overwrite the default "submit" button text */
62
+ submitButtonText?: string;
63
+ }
64
+ export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,15 @@
1
- export declare const rootClassName = "dot-stepper";
2
- export declare const stepListClassName = "dot-stepper-list";
3
- export declare const contentClassName = "dot-stepper-content";
4
- export declare const StyledStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- interface StyledScrollbarContainerProps {
6
- offset?: number;
7
- }
8
- export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, StyledScrollbarContainerProps, never>;
9
- export declare const StepContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const StepDescription: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../typography/Typography").TypographyProps) => JSX.Element, any, {}, never>;
11
- interface StyledStepActionsContainerProps {
12
- displayCancelButton?: boolean;
13
- }
14
- export declare const StepActionsContainer: import("styled-components").StyledComponent<"div", any, StyledStepActionsContainerProps, never>;
15
- export {};
1
+ export declare const rootClassName = "dot-stepper";
2
+ export declare const stepListClassName = "dot-stepper-list";
3
+ export declare const contentClassName = "dot-stepper-content";
4
+ export declare const StyledStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ interface StyledScrollbarContainerProps {
6
+ offset?: number;
7
+ }
8
+ export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, StyledScrollbarContainerProps, never>;
9
+ export declare const StepContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const StepDescription: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../typography/Typography").TypographyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
11
+ interface StyledStepActionsContainerProps {
12
+ displayCancelButton?: boolean;
13
+ }
14
+ export declare const StepActionsContainer: import("styled-components").StyledComponent<"div", any, StyledStepActionsContainerProps, never>;
15
+ export {};
@@ -1,26 +1,26 @@
1
- import { ChangeEvent, Ref } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export declare type SwitchColor = 'default' | 'primary' | 'secondary';
4
- export declare type SwitchSize = 'medium' | 'small';
5
- export declare type SwitchLabelPlacement = 'bottom' | 'end' | 'start' | 'top';
6
- export interface SwitchProps extends CommonProps {
7
- /** determines the default state of the switch */
8
- checked?: boolean;
9
- /** color options available 'default', 'primary', 'secondary' */
10
- color?: SwitchColor;
11
- /** if true makes the switch disabled */
12
- disabled?: boolean;
13
- /** id to identify the element */
14
- id?: string;
15
- /** pass a ref to the input element */
16
- inputRef?: Ref<HTMLInputElement>;
17
- /** text displayed next to the switch */
18
- label?: string;
19
- /** label placement options available 'bottom', 'end', 'start', 'top' */
20
- labelPlacement?: SwitchLabelPlacement;
21
- /** A function that should be executed when the value of the switch changes */
22
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
23
- /** controls the size of the switch 'medium', 'small' */
24
- size?: SwitchSize;
25
- }
26
- export declare const DotSwitch: ({ ariaLabel, checked, className, color, "data-testid": dataTestId, disabled, id, inputRef, label, labelPlacement, onChange, size, }: SwitchProps) => JSX.Element;
1
+ import { ChangeEvent, Ref } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export type SwitchColor = 'default' | 'primary' | 'secondary';
4
+ export type SwitchSize = 'medium' | 'small';
5
+ export type SwitchLabelPlacement = 'bottom' | 'end' | 'start' | 'top';
6
+ export interface SwitchProps extends CommonProps {
7
+ /** determines the default state of the switch */
8
+ checked?: boolean;
9
+ /** color options available 'default', 'primary', 'secondary' */
10
+ color?: SwitchColor;
11
+ /** if true makes the switch disabled */
12
+ disabled?: boolean;
13
+ /** id to identify the element */
14
+ id?: string;
15
+ /** pass a ref to the input element */
16
+ inputRef?: Ref<HTMLInputElement>;
17
+ /** text displayed next to the switch */
18
+ label?: string;
19
+ /** label placement options available 'bottom', 'end', 'start', 'top' */
20
+ labelPlacement?: SwitchLabelPlacement;
21
+ /** A function that should be executed when the value of the switch changes */
22
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
23
+ /** controls the size of the switch 'medium', 'small' */
24
+ size?: SwitchSize;
25
+ }
26
+ export declare const DotSwitch: ({ ariaLabel, checked, className, color, "data-testid": dataTestId, disabled, id, inputRef, label, labelPlacement, onChange, size, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { Switch } from '@mui/material';
2
- export declare const rootClassName = "dot-switch";
3
- export declare const StyledSwitch: import("styled-components").StyledComponent<typeof Switch, any, {}, never>;
1
+ import { Switch } from '@mui/material';
2
+ export declare const rootClassName = "dot-switch";
3
+ export declare const StyledSwitch: import("styled-components").StyledComponent<typeof Switch, any, {}, never>;
@@ -1,2 +1,2 @@
1
- export type { SwitchProps, SwitchColor, SwitchSize, SwitchLabelPlacement, } from './Switch';
2
- export { DotSwitch } from './Switch';
1
+ export type { SwitchProps, SwitchColor, SwitchSize, SwitchLabelPlacement, } from './Switch';
2
+ export { DotSwitch } from './Switch';
@@ -1,10 +1,10 @@
1
- import { Order } from './utils/models';
2
- import { TableProps, TableRowProps } from './utils/interfaces';
3
- export declare const sortComparator: (a: TableRowProps, b: TableRowProps, orderBy: string) => 0 | 1 | -1;
4
- export declare const getComparator: (order: Order, orderBy: string) => (a: TableRowProps, b: TableRowProps) => number;
5
- export declare function stableSort<T>(array: T[], comparator: (order: T, orderBy: T) => number): T[];
6
- /**
7
- * A wrapper component around the Table component from @material-ui. This component can be used for
8
- * creating a common structure for tables in the system.
9
- */
10
- export declare const DotTable: ({ actionsMenuPlacement, ariaLabel, bodyTypography, className, collapsibleTableOptions, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, labelRowsPerPage, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, rowsPerPageOptions, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element;
1
+ import { Order } from './utils/models';
2
+ import { TableProps, TableRowProps } from './utils/interfaces';
3
+ export declare const sortComparator: (a: TableRowProps, b: TableRowProps, orderBy: string) => 0 | 1 | -1;
4
+ export declare const getComparator: (order: Order, orderBy: string) => (a: TableRowProps, b: TableRowProps) => number;
5
+ export declare function stableSort<T>(array: T[], comparator: (order: T, orderBy: T) => number): T[];
6
+ /**
7
+ * A wrapper component around the Table component from @material-ui. This component can be used for
8
+ * creating a common structure for tables in the system.
9
+ */
10
+ export declare const DotTable: ({ actionsMenuPlacement, ariaLabel, bodyTypography, className, collapsibleTableOptions, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, labelRowsPerPage, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, rowsPerPageOptions, stickyHeader, sortable, toolbar, }: TableProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,42 +1,42 @@
1
- export declare const handleDeleteClick: () => void;
2
- export declare const handleBulkDeleteClick: () => void;
3
- export declare const actionItemArray: {
4
- actions: {
5
- children: JSX.Element;
6
- key: string;
7
- onClick: () => void;
8
- }[];
9
- }[];
10
- export declare const actionCol: {
11
- id: string;
12
- label: string;
13
- }[];
14
- export declare const tableData: {
15
- id: string;
16
- rowData: {
17
- action: {
18
- actions: {
19
- children: JSX.Element;
20
- key: string;
21
- onClick: () => void;
22
- }[];
23
- }[];
24
- type: string;
25
- };
26
- }[];
27
- export declare const testCols: ({
28
- id: string;
29
- label: string;
30
- truncate: boolean;
31
- } | {
32
- id: string;
33
- label: string;
34
- truncate?: undefined;
35
- })[];
36
- export declare const testData: {
37
- id: string;
38
- rowData: {
39
- name: string;
40
- type: string;
41
- };
42
- }[];
1
+ export declare const handleDeleteClick: () => void;
2
+ export declare const handleBulkDeleteClick: () => void;
3
+ export declare const actionItemArray: {
4
+ actions: {
5
+ children: import("react/jsx-runtime").JSX.Element;
6
+ key: string;
7
+ onClick: () => void;
8
+ }[];
9
+ }[];
10
+ export declare const actionCol: {
11
+ id: string;
12
+ label: string;
13
+ }[];
14
+ export declare const tableData: {
15
+ id: string;
16
+ rowData: {
17
+ action: {
18
+ actions: {
19
+ children: import("react/jsx-runtime").JSX.Element;
20
+ key: string;
21
+ onClick: () => void;
22
+ }[];
23
+ }[];
24
+ type: string;
25
+ };
26
+ }[];
27
+ export declare const testCols: ({
28
+ id: string;
29
+ label: string;
30
+ truncate: boolean;
31
+ } | {
32
+ id: string;
33
+ label: string;
34
+ truncate?: undefined;
35
+ })[];
36
+ export declare const testData: {
37
+ id: string;
38
+ rowData: {
39
+ name: string;
40
+ type: string;
41
+ };
42
+ }[];
@@ -1,4 +1,4 @@
1
- export declare const rootClassName = "dot-table";
2
- export declare const StyledPaper: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").PaperTypeMap<{}, "div">>, any, {}, never>;
3
- export declare const StyledTableContainer: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableContainerTypeMap<{}, "div">>, any, {}, never>;
4
- export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
1
+ export declare const rootClassName = "dot-table";
2
+ export declare const StyledPaper: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").PaperTypeMap<{}, "div">>, any, {}, never>;
3
+ export declare const StyledTableContainer: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableContainerTypeMap<{}, "div">>, any, {}, never>;
4
+ export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
@@ -1,12 +1,12 @@
1
- import { MouseEvent } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export interface TableActionProps extends CommonProps {
4
- disabled?: boolean;
5
- iconId: string;
6
- id?: string;
7
- label: string;
8
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- tooltip?: string;
10
- }
11
- export declare const getMenuItem: (action: TableActionProps) => JSX.Element;
12
- export declare const DotTableAction: ({ "data-testid": dataTestId, disabled, iconId, onClick, tooltip, }: TableActionProps) => JSX.Element;
1
+ import { MouseEvent } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export interface TableActionProps extends CommonProps {
4
+ disabled?: boolean;
5
+ iconId: string;
6
+ id?: string;
7
+ label: string;
8
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
+ tooltip?: string;
10
+ }
11
+ export declare const getMenuItem: (action: TableActionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const DotTableAction: ({ "data-testid": dataTestId, disabled, iconId, onClick, tooltip, }: TableActionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { CommonProps } from '../CommonProps';
2
- import { TableActionProps } from './TableAction';
3
- export interface TableActionsProps extends CommonProps {
4
- actions?: Array<TableActionProps>;
5
- id: string;
6
- }
7
- export declare const DotTableActions: ({ actions, id }: TableActionsProps) => JSX.Element;
1
+ import { CommonProps } from '../CommonProps';
2
+ import { TableActionProps } from './TableAction';
3
+ export interface TableActionsProps extends CommonProps {
4
+ actions?: Array<TableActionProps>;
5
+ id: string;
6
+ }
7
+ export declare const DotTableActions: ({ actions, id }: TableActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const rootClassName = "dot-table-actions";
2
- export declare const TableActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
1
+ export declare const rootClassName = "dot-table-actions";
2
+ export declare const TableActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
@@ -1,29 +1,29 @@
1
- import { MouseEvent } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- import { TypographyVariant } from '../typography/Typography';
4
- import { PopperPlacement } from '../menu/Menu';
5
- import { CollapsibleTableBodyProps } from './collapsible-table';
6
- import { DotColumnHeader, TableRowProps } from './utils/interfaces';
7
- import { MultiSelectBody } from './utils/models';
8
- export interface TableBodyProps extends CommonProps {
9
- /** The popper placement for the actions menu **/
10
- actionsMenuPlacement?: PopperPlacement;
11
- collapsibleTableBody?: CollapsibleTableBodyProps;
12
- /** The table column headers **/
13
- columns: Array<DotColumnHeader>;
14
- /** The table body row data **/
15
- data: Array<TableRowProps>;
16
- /** Message to show if no data **/
17
- emptyMessage?: string;
18
- /** Optional multi-select checkbox body object **/
19
- multiSelectBody?: MultiSelectBody;
20
- /** Row click event callback **/
21
- onRowClick?: (event: MouseEvent, id: string) => void;
22
- /** Typography variant which will be used for body cell values **/
23
- typography: TypographyVariant;
24
- }
25
- /**
26
- * A wrapper component around the TableBody component from @material-ui. This component can be used
27
- * to determine the functionality of the table.
28
- */
29
- export declare const DotTableBody: ({ actionsMenuPlacement, collapsibleTableBody, columns, data, emptyMessage, multiSelectBody, onRowClick, typography, }: TableBodyProps) => JSX.Element;
1
+ import { MouseEvent } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ import { TypographyVariant } from '../typography/Typography';
4
+ import { PopperPlacement } from '../menu/Menu';
5
+ import { CollapsibleTableBodyProps } from './collapsible-table';
6
+ import { DotColumnHeader, TableRowProps } from './utils/interfaces';
7
+ import { MultiSelectBody } from './utils/models';
8
+ export interface TableBodyProps extends CommonProps {
9
+ /** The popper placement for the actions menu **/
10
+ actionsMenuPlacement?: PopperPlacement;
11
+ collapsibleTableBody?: CollapsibleTableBodyProps;
12
+ /** The table column headers **/
13
+ columns: Array<DotColumnHeader>;
14
+ /** The table body row data **/
15
+ data: Array<TableRowProps>;
16
+ /** Message to show if no data **/
17
+ emptyMessage?: string;
18
+ /** Optional multi-select checkbox body object **/
19
+ multiSelectBody?: MultiSelectBody;
20
+ /** Row click event callback **/
21
+ onRowClick?: (event: MouseEvent, id: string) => void;
22
+ /** Typography variant which will be used for body cell values **/
23
+ typography: TypographyVariant;
24
+ }
25
+ /**
26
+ * A wrapper component around the TableBody component from @material-ui. This component can be used
27
+ * to determine the functionality of the table.
28
+ */
29
+ export declare const DotTableBody: ({ actionsMenuPlacement, collapsibleTableBody, columns, data, emptyMessage, multiSelectBody, onRowClick, typography, }: TableBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const rootClassName = "dot-tbody";
2
- export declare const StyledTableBody: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableBodyTypeMap<{}, "tbody">>, any, {}, never>;
1
+ export declare const rootClassName = "dot-tbody";
2
+ export declare const StyledTableBody: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableBodyTypeMap<{}, "tbody">>, any, {}, never>;
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- export interface DotBodyCheckboxCellProps extends CommonProps {
4
- isChecked: boolean;
5
- onChange: (isChecked: boolean, rowId: string) => void;
6
- rowId: string;
7
- }
8
- export declare const DotBodyCheckboxCell: ({ ariaLabel, className, "data-testid": dataTestId, isChecked, onChange, rowId, }: DotBodyCheckboxCellProps) => ReactElement;
1
+ import { ReactElement } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export interface DotBodyCheckboxCellProps extends CommonProps {
4
+ isChecked: boolean;
5
+ onChange: (isChecked: boolean, rowId: string) => void;
6
+ rowId: string;
7
+ }
8
+ export declare const DotBodyCheckboxCell: ({ ariaLabel, className, "data-testid": dataTestId, isChecked, onChange, rowId, }: DotBodyCheckboxCellProps) => ReactElement;
@@ -1,3 +1,3 @@
1
- import { TableCell } from '@mui/material';
2
- export declare const rootClassName = "dot-td-checkbox";
3
- export declare const StyledTableBodyCheckboxCell: import("styled-components").StyledComponent<typeof TableCell, any, {}, never>;
1
+ import { TableCell } from '@mui/material';
2
+ export declare const rootClassName = "dot-td-checkbox";
3
+ export declare const StyledTableBodyCheckboxCell: import("styled-components").StyledComponent<typeof TableCell, any, {}, never>;
@@ -1,19 +1,19 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { CommonProps } from '../CommonProps';
3
- import { TypographyVariant } from '../typography/Typography';
4
- export declare type TextAlignment = 'center' | 'inherit' | 'justify' | 'left' | 'right';
5
- export interface CellProps extends CommonProps {
6
- align?: TextAlignment;
7
- cellKey?: string;
8
- colspan?: number;
9
- id?: string;
10
- noWrap?: boolean;
11
- onActionMenuTrigger?: (el: HTMLElement, menuItem: Array<ReactNode>) => void;
12
- style?: CSSProperties;
13
- typography: TypographyVariant;
14
- value?: unknown;
15
- }
16
- /**
17
- * A wrapper component around the TableCell component from @material-ui.
18
- */
19
- export declare const DotBodyCell: ({ ariaLabel, align, cellKey, className, colspan, "data-testid": dataTestId, noWrap, onActionMenuTrigger, style, typography, value, }: CellProps) => JSX.Element;
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ import { TypographyVariant } from '../typography/Typography';
4
+ export type TextAlignment = 'center' | 'inherit' | 'justify' | 'left' | 'right';
5
+ export interface CellProps extends CommonProps {
6
+ align?: TextAlignment;
7
+ cellKey?: string;
8
+ colspan?: number;
9
+ id?: string;
10
+ noWrap?: boolean;
11
+ onActionMenuTrigger?: (el: HTMLElement, menuItem: Array<ReactNode>) => void;
12
+ style?: CSSProperties;
13
+ typography: TypographyVariant;
14
+ value?: unknown;
15
+ }
16
+ /**
17
+ * A wrapper component around the TableCell component from @material-ui.
18
+ */
19
+ export declare const DotBodyCell: ({ ariaLabel, align, cellKey, className, colspan, "data-testid": dataTestId, noWrap, onActionMenuTrigger, style, typography, value, }: CellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { TableCell } from '@mui/material';
2
- export declare const rootClassName = "dot-td";
3
- export declare const StyledTableCell: import("styled-components").StyledComponent<typeof TableCell, any, {}, never>;
1
+ import { TableCell } from '@mui/material';
2
+ export declare const rootClassName = "dot-td";
3
+ export declare const StyledTableCell: import("styled-components").StyledComponent<typeof TableCell, any, {}, never>;
@@ -1,11 +1,11 @@
1
- export interface TableDataWithPagination {
2
- data: Array<any>;
3
- pagination: {
4
- current_page: number;
5
- has_next: boolean;
6
- has_previous: boolean;
7
- size: number;
8
- total_elements: number;
9
- total_pages: number;
10
- };
11
- }
1
+ export interface TableDataWithPagination {
2
+ data: Array<any>;
3
+ pagination: {
4
+ current_page: number;
5
+ has_next: boolean;
6
+ has_previous: boolean;
7
+ size: number;
8
+ total_elements: number;
9
+ total_pages: number;
10
+ };
11
+ }
@@ -1,6 +1,6 @@
1
- import { HeaderProps } from './utils/interfaces';
2
- /**
3
- * A wrapper component around the TableHead component from @material-ui. This component can be used
4
- * to determine the functionality of the table header.
5
- */
6
- export declare const DotHeaderRow: ({ collapsibleTableOptions, columns, multiSelectHeader, onRequestSort, order, orderBy, sortable, typography, }: HeaderProps) => JSX.Element;
1
+ import { HeaderProps } from './utils/interfaces';
2
+ /**
3
+ * A wrapper component around the TableHead component from @material-ui. This component can be used
4
+ * to determine the functionality of the table header.
5
+ */
6
+ export declare const DotHeaderRow: ({ collapsibleTableOptions, columns, multiSelectHeader, onRequestSort, order, orderBy, sortable, typography, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;