@loadsmart/loadsmart-ui 6.0.1 → 6.0.3

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 (455) hide show
  1. package/dist/{DragDropFile.context-0f0ede42.js → DragDropFile.context-50968b55.js} +1 -1
  2. package/dist/{DragDropFile.context-0f0ede42.js.map → DragDropFile.context-50968b55.js.map} +1 -1
  3. package/dist/common/BackButton/BackButton.d.ts +4 -4
  4. package/dist/common/BackButton/index.d.ts +2 -2
  5. package/dist/common/CloseButton/CloseButton.d.ts +6 -6
  6. package/dist/common/CloseButton/index.d.ts +2 -2
  7. package/dist/common/SelectionWrapper.d.ts +14 -14
  8. package/dist/components/Accordion/Accordion.context.d.ts +10 -10
  9. package/dist/components/Accordion/Accordion.d.ts +19 -19
  10. package/dist/components/Accordion/Accordion.stories.d.ts +8 -8
  11. package/dist/components/Accordion/Accordion.test.d.ts +1 -1
  12. package/dist/components/Accordion/index.d.ts +2 -2
  13. package/dist/components/Banner/Banner.d.ts +25 -25
  14. package/dist/components/Banner/Banner.stories.d.ts +106 -106
  15. package/dist/components/Banner/Banner.test.d.ts +1 -1
  16. package/dist/components/Banner/index.d.ts +2 -2
  17. package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +1 -1
  18. package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -8
  19. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -10
  20. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -5
  21. package/dist/components/Breadcrumbs/index.d.ts +3 -3
  22. package/dist/components/Button/Button.d.ts +22 -22
  23. package/dist/components/Button/Button.stories.d.ts +32 -32
  24. package/dist/components/Button/Button.test.d.ts +1 -1
  25. package/dist/components/Button/index.d.ts +2 -2
  26. package/dist/components/Calendar/Calendar.d.ts +9 -9
  27. package/dist/components/Calendar/Calendar.helpers.d.ts +2 -2
  28. package/dist/components/Calendar/Calendar.stories.d.ts +21 -21
  29. package/dist/components/Calendar/Calendar.test.d.ts +1 -1
  30. package/dist/components/Calendar/Calendar.types.d.ts +63 -63
  31. package/dist/components/Calendar/Date.helper.d.ts +214 -214
  32. package/dist/components/Calendar/Date.helper.test.d.ts +1 -1
  33. package/dist/components/Calendar/DateFormat.helper.d.ts +35 -35
  34. package/dist/components/Calendar/DateFormat.helper.test.d.ts +1 -1
  35. package/dist/components/Calendar/Month.helper.d.ts +58 -58
  36. package/dist/components/Calendar/Month.helper.test.d.ts +1 -1
  37. package/dist/components/Calendar/PickerModeToggle.d.ts +5 -5
  38. package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -9
  39. package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
  40. package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -3
  41. package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
  42. package/dist/components/Calendar/Pickers/PickerButton.d.ts +5 -5
  43. package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -3
  44. package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +1 -1
  45. package/dist/components/Calendar/index.d.ts +9 -9
  46. package/dist/components/Calendar/useCalendar.d.ts +19 -19
  47. package/dist/components/Calendar/usePickerMode.d.ts +3 -3
  48. package/dist/components/Card/Card.d.ts +16 -16
  49. package/dist/components/Card/Card.stories.d.ts +8 -8
  50. package/dist/components/Card/Card.test.d.ts +1 -1
  51. package/dist/components/Card/CardTitle.d.ts +8 -8
  52. package/dist/components/Card/index.d.ts +2 -2
  53. package/dist/components/Checkbox/Checkbox.d.ts +10 -10
  54. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  55. package/dist/components/Checkbox/Checkbox.test.d.ts +1 -1
  56. package/dist/components/Checkbox/index.d.ts +2 -2
  57. package/dist/components/DatePicker/DatePicker.d.ts +13 -13
  58. package/dist/components/DatePicker/DatePicker.stories.d.ts +22 -22
  59. package/dist/components/DatePicker/DatePicker.test.d.ts +1 -1
  60. package/dist/components/DatePicker/DatePicker.types.d.ts +27 -27
  61. package/dist/components/DatePicker/DateRangePicker.d.ts +4 -4
  62. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -21
  63. package/dist/components/DatePicker/DateRangePicker.test.d.ts +1 -1
  64. package/dist/components/DatePicker/index.d.ts +3 -3
  65. package/dist/components/DatePicker/useDatePicker.d.ts +584 -584
  66. package/dist/components/DatePicker/useDateRangePicker.d.ts +876 -876
  67. package/dist/components/Dialog/Dialog.d.ts +37 -37
  68. package/dist/components/Dialog/Dialog.stories.d.ts +67 -67
  69. package/dist/components/Dialog/Dialog.test.d.ts +1 -1
  70. package/dist/components/Dialog/index.d.ts +4 -4
  71. package/dist/components/Dialog/useDialog.d.ts +12 -12
  72. package/dist/components/DragDropFile/DragDropFile.context.d.ts +5 -5
  73. package/dist/components/DragDropFile/DragDropFile.d.ts +7 -7
  74. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
  75. package/dist/components/DragDropFile/components/DropZone.d.ts +3 -3
  76. package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
  77. package/dist/components/DragDropFile/components/FileItem.d.ts +3 -3
  78. package/dist/components/DragDropFile/components/FileList.d.ts +3 -3
  79. package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
  80. package/dist/components/DragDropFile/components/Wrapper.d.ts +6 -6
  81. package/dist/components/DragDropFile/index.d.ts +3 -3
  82. package/dist/components/DragDropFile/mocks.d.ts +9 -9
  83. package/dist/components/DragDropFile/styles.d.ts +10 -10
  84. package/dist/components/DragDropFile/types.d.ts +71 -71
  85. package/dist/components/Drawer/Drawer.d.ts +28 -28
  86. package/dist/components/Drawer/Drawer.stories.d.ts +6 -6
  87. package/dist/components/Drawer/Drawer.test.d.ts +1 -1
  88. package/dist/components/Drawer/index.d.ts +3 -3
  89. package/dist/components/Dropdown/Dropdown.context.d.ts +4 -4
  90. package/dist/components/Dropdown/Dropdown.d.ts +47 -47
  91. package/dist/components/Dropdown/Dropdown.fixtures.d.ts +12 -12
  92. package/dist/components/Dropdown/Dropdown.stories.d.ts +12 -12
  93. package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
  94. package/dist/components/Dropdown/Dropdown.types.d.ts +49 -49
  95. package/dist/components/Dropdown/DropdownMenu.d.ts +8 -8
  96. package/dist/components/Dropdown/DropdownTrigger.d.ts +21 -21
  97. package/dist/components/Dropdown/index.d.ts +6 -6
  98. package/dist/components/Dropdown/useDropdown.d.ts +14 -14
  99. package/dist/components/Dropdown/useDropdown.test.d.ts +1 -1
  100. package/dist/components/EmptyState/EmptyState.d.ts +7 -7
  101. package/dist/components/EmptyState/EmptyState.mocks.d.ts +7 -7
  102. package/dist/components/EmptyState/EmptyState.stories.d.ts +32 -32
  103. package/dist/components/EmptyState/EmptyState.test.d.ts +1 -1
  104. package/dist/components/EmptyState/EmptyState.types.d.ts +22 -22
  105. package/dist/components/EmptyState/EmptyStateWithIcon.d.ts +4 -4
  106. package/dist/components/EmptyState/EmptyStateWithIllustration.d.ts +4 -4
  107. package/dist/components/EmptyState/Illustration.d.ts +4 -4
  108. package/dist/components/EmptyState/index.d.ts +3 -3
  109. package/dist/components/ErrorMessage/ErrorMessage.d.ts +4 -4
  110. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +13 -13
  111. package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +1 -1
  112. package/dist/components/ErrorMessage/index.d.ts +2 -2
  113. package/dist/components/HighlightMatch/HighlightMatch.d.ts +7 -7
  114. package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +5 -5
  115. package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +1 -1
  116. package/dist/components/HighlightMatch/index.d.ts +2 -2
  117. package/dist/components/Icon/Icon.d.ts +27 -27
  118. package/dist/components/Icon/index.d.ts +2 -2
  119. package/dist/components/IconFactory/IconFactory.d.ts +16 -16
  120. package/dist/components/IconFactory/IconFactory.fixtures.d.ts +10 -10
  121. package/dist/components/IconFactory/IconFactory.stories.d.ts +6 -6
  122. package/dist/components/IconFactory/IconFactory.test.d.ts +1 -1
  123. package/dist/components/IconFactory/index.d.ts +2 -2
  124. package/dist/components/Label/Label.d.ts +18 -18
  125. package/dist/components/Label/Label.stories.d.ts +14 -14
  126. package/dist/components/Label/Label.test.d.ts +1 -1
  127. package/dist/components/Label/index.d.ts +2 -2
  128. package/dist/components/Layout/Box.d.ts +15 -15
  129. package/dist/components/Layout/Grid.d.ts +11 -11
  130. package/dist/components/Layout/Group.d.ts +14 -14
  131. package/dist/components/Layout/Layout.d.ts +16 -16
  132. package/dist/components/Layout/Layout.stories.d.ts +146 -146
  133. package/dist/components/Layout/Layout.types.d.ts +3 -3
  134. package/dist/components/Layout/Layout.utils.d.ts +3 -3
  135. package/dist/components/Layout/Sidebar.d.ts +13 -13
  136. package/dist/components/Layout/Stack.d.ts +19 -19
  137. package/dist/components/Layout/Switcher.d.ts +12 -12
  138. package/dist/components/Layout/index.d.ts +7 -7
  139. package/dist/components/Link/Link.d.ts +9 -9
  140. package/dist/components/Link/Link.stories.d.ts +5 -5
  141. package/dist/components/Link/Link.test.d.ts +1 -1
  142. package/dist/components/Link/index.d.ts +3 -3
  143. package/dist/components/Link/useSafeLink.d.ts +3 -3
  144. package/dist/components/Loaders/LoadingBar.d.ts +13 -13
  145. package/dist/components/Loaders/LoadingBar.stories.d.ts +5 -5
  146. package/dist/components/Loaders/LoadingBar.test.d.ts +1 -1
  147. package/dist/components/Loaders/LoadingDots.d.ts +5 -5
  148. package/dist/components/Loaders/LoadingDots.stories.d.ts +6 -6
  149. package/dist/components/Loaders/LoadingDots.test.d.ts +1 -1
  150. package/dist/components/Loaders/Spinner.d.ts +5 -5
  151. package/dist/components/Loaders/Spinner.stories.d.ts +5 -5
  152. package/dist/components/Loaders/Spinner.test.d.ts +1 -1
  153. package/dist/components/Loaders/index.d.ts +3 -3
  154. package/dist/components/Modal/Modal.d.ts +22 -22
  155. package/dist/components/Modal/Modal.stories.d.ts +30 -30
  156. package/dist/components/Modal/Modal.test.d.ts +1 -1
  157. package/dist/components/Modal/index.d.ts +2 -2
  158. package/dist/components/Pagination/Pagination.constants.d.ts +7 -7
  159. package/dist/components/Pagination/Pagination.d.ts +3 -3
  160. package/dist/components/Pagination/Pagination.helper.d.ts +15 -15
  161. package/dist/components/Pagination/Pagination.stories.d.ts +5 -5
  162. package/dist/components/Pagination/Pagination.test.d.ts +1 -1
  163. package/dist/components/Pagination/Pagination.types.d.ts +48 -48
  164. package/dist/components/Pagination/PaginationItem.d.ts +3 -3
  165. package/dist/components/Pagination/index.d.ts +2 -2
  166. package/dist/components/Pagination/usePagination.d.ts +3 -3
  167. package/dist/components/Pagination/usePagination.test.d.ts +1 -1
  168. package/dist/components/Popover/Popover.d.ts +10 -10
  169. package/dist/components/Popover/Popover.stories.d.ts +5 -5
  170. package/dist/components/Popover/Popover.test.d.ts +1 -1
  171. package/dist/components/Popover/Popover.types.d.ts +33 -33
  172. package/dist/components/Popover/index.d.ts +2 -2
  173. package/dist/components/ProgressBar/ProgressBar.d.ts +9 -9
  174. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +12 -12
  175. package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -1
  176. package/dist/components/ProgressBar/index.d.ts +2 -2
  177. package/dist/components/Radio/Radio.d.ts +10 -10
  178. package/dist/components/Radio/Radio.stories.d.ts +8 -8
  179. package/dist/components/Radio/Radio.test.d.ts +1 -1
  180. package/dist/components/Radio/index.d.ts +2 -2
  181. package/dist/components/Section/Section.d.ts +12 -12
  182. package/dist/components/Section/Section.test.d.ts +1 -1
  183. package/dist/components/Section/Sections.stories.d.ts +5 -5
  184. package/dist/components/Section/index.d.ts +2 -2
  185. package/dist/components/Select/Select.constants.d.ts +2 -2
  186. package/dist/components/Select/Select.context.d.ts +6 -6
  187. package/dist/components/Select/Select.d.ts +13 -13
  188. package/dist/components/Select/Select.fixtures.d.ts +28 -28
  189. package/dist/components/Select/Select.stories.d.ts +18 -18
  190. package/dist/components/Select/Select.test.d.ts +1 -1
  191. package/dist/components/Select/Select.types.d.ts +121 -121
  192. package/dist/components/Select/SelectCreatableOption.d.ts +3 -3
  193. package/dist/components/Select/SelectEmpty.d.ts +3 -3
  194. package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
  195. package/dist/components/Select/SelectOption.d.ts +3 -3
  196. package/dist/components/Select/SelectOption.test.d.ts +1 -1
  197. package/dist/components/Select/SelectTrigger.d.ts +3 -3
  198. package/dist/components/Select/components.d.ts +2 -2
  199. package/dist/components/Select/index.d.ts +3 -3
  200. package/dist/components/Select/useSelect.d.ts +8 -8
  201. package/dist/components/Select/useSelect.helpers.d.ts +6 -6
  202. package/dist/components/Select/useSelect.helpers.test.d.ts +1 -1
  203. package/dist/components/Select/useSelect.test.d.ts +1 -1
  204. package/dist/components/Select/useSelectExternal.d.ts +2 -2
  205. package/dist/components/SideNavigation/Logo/Logo.d.ts +14 -14
  206. package/dist/components/SideNavigation/Logo/Logo.test.d.ts +1 -1
  207. package/dist/components/SideNavigation/Logo/index.d.ts +1 -1
  208. package/dist/components/SideNavigation/Menu/Menu.d.ts +17 -17
  209. package/dist/components/SideNavigation/Menu/Menu.test.d.ts +1 -1
  210. package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +11 -11
  211. package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +6 -6
  212. package/dist/components/SideNavigation/Menu/MenuLink.d.ts +11 -11
  213. package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
  214. package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -5
  215. package/dist/components/SideNavigation/Separator/Separator.test.d.ts +1 -1
  216. package/dist/components/SideNavigation/Separator/index.d.ts +1 -1
  217. package/dist/components/SideNavigation/SideNavigation.d.ts +34 -34
  218. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +5 -5
  219. package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -1
  220. package/dist/components/SideNavigation/index.d.ts +4 -4
  221. package/dist/components/SideNavigation/useSideNavigation.d.ts +8 -8
  222. package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +12 -12
  223. package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +7 -7
  224. package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
  225. package/dist/components/Steps/Steps.d.ts +19 -19
  226. package/dist/components/Steps/Steps.fixtures.d.ts +6 -6
  227. package/dist/components/Steps/Steps.helpers.d.ts +2 -2
  228. package/dist/components/Steps/Steps.stories.d.ts +5 -5
  229. package/dist/components/Steps/Steps.test.d.ts +1 -1
  230. package/dist/components/Steps/Steps.types.d.ts +5 -5
  231. package/dist/components/Steps/StepsContext.d.ts +3 -3
  232. package/dist/components/Steps/StepsStep.d.ts +8 -8
  233. package/dist/components/Steps/index.d.ts +5 -5
  234. package/dist/components/Steps/useStep.test.d.ts +1 -1
  235. package/dist/components/Steps/useSteps.d.ts +30 -30
  236. package/dist/components/Switch/Switch.d.ts +11 -11
  237. package/dist/components/Switch/Switch.stories.d.ts +5 -5
  238. package/dist/components/Switch/Switch.test.d.ts +1 -1
  239. package/dist/components/Switch/index.d.ts +2 -2
  240. package/dist/components/Table/Selection.d.ts +35 -35
  241. package/dist/components/Table/Table.d.ts +44 -44
  242. package/dist/components/Table/Table.fixtures.d.ts +29 -29
  243. package/dist/components/Table/Table.stories.d.ts +61 -61
  244. package/dist/components/Table/Table.test.d.ts +1 -1
  245. package/dist/components/Table/Table.types.d.ts +73 -73
  246. package/dist/components/Table/TableSortHandle.d.ts +7 -7
  247. package/dist/components/Table/index.d.ts +2 -2
  248. package/dist/components/Table/useSortBy.d.ts +16 -16
  249. package/dist/components/Table/useSortBy.test.d.ts +1 -1
  250. package/dist/components/Table/useSortBy.types.d.ts +16 -16
  251. package/dist/components/TablePagination/RowsPerPage.d.ts +3 -3
  252. package/dist/components/TablePagination/TablePagination.d.ts +3 -3
  253. package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
  254. package/dist/components/TablePagination/TablePagination.styles.d.ts +5 -5
  255. package/dist/components/TablePagination/TablePagination.test.d.ts +1 -1
  256. package/dist/components/TablePagination/TablePagination.types.d.ts +59 -59
  257. package/dist/components/TablePagination/TablePaginationActions.d.ts +10 -10
  258. package/dist/components/TablePagination/index.d.ts +2 -2
  259. package/dist/components/Tabs/Tabs.d.ts +54 -54
  260. package/dist/components/Tabs/Tabs.stories.d.ts +23 -23
  261. package/dist/components/Tabs/Tabs.test.d.ts +1 -1
  262. package/dist/components/Tabs/Tabs.types.d.ts +6 -6
  263. package/dist/components/Tabs/TabsContext.d.ts +9 -9
  264. package/dist/components/Tabs/index.d.ts +2 -2
  265. package/dist/components/Tag/Tag.d.ts +19 -19
  266. package/dist/components/Tag/Tag.stories.d.ts +41 -41
  267. package/dist/components/Tag/Tag.test.d.ts +1 -1
  268. package/dist/components/Tag/index.d.ts +2 -2
  269. package/dist/components/Text/Text.d.ts +15 -15
  270. package/dist/components/Text/Text.stories.d.ts +5 -5
  271. package/dist/components/Text/Text.test.d.ts +1 -1
  272. package/dist/components/Text/index.d.ts +2 -2
  273. package/dist/components/TextField/TextField.d.ts +19 -19
  274. package/dist/components/TextField/TextField.stories.d.ts +11 -11
  275. package/dist/components/TextField/TextField.test.d.ts +1 -1
  276. package/dist/components/TextField/index.d.ts +4 -4
  277. package/dist/components/TextField/useTextField.d.ts +6 -6
  278. package/dist/components/Textarea/Textarea.d.ts +17 -17
  279. package/dist/components/Textarea/Textarea.stories.d.ts +11 -11
  280. package/dist/components/Textarea/Textarea.test.d.ts +1 -1
  281. package/dist/components/Textarea/index.d.ts +2 -2
  282. package/dist/components/Toast/Toast.d.ts +11 -11
  283. package/dist/components/Toast/Toast.stories.d.ts +12 -12
  284. package/dist/components/Toast/Toast.test.d.ts +1 -1
  285. package/dist/components/Toast/index.d.ts +2 -2
  286. package/dist/components/ToggleGroup/Toggle.d.ts +4 -4
  287. package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -1
  288. package/dist/components/ToggleGroup/ToggleGroup.constants.d.ts +2 -2
  289. package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -6
  290. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -6
  291. package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +1 -1
  292. package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +26 -26
  293. package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +5 -5
  294. package/dist/components/ToggleGroup/index.d.ts +2 -2
  295. package/dist/components/Tooltip/Tooltip.d.ts +23 -23
  296. package/dist/components/Tooltip/Tooltip.stories.d.ts +13 -13
  297. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -1
  298. package/dist/components/Tooltip/index.d.ts +2 -2
  299. package/dist/components/TopNavigation/Logo/Logo.d.ts +14 -14
  300. package/dist/components/TopNavigation/Logo/Logo.test.d.ts +1 -1
  301. package/dist/components/TopNavigation/Logo/index.d.ts +1 -1
  302. package/dist/components/TopNavigation/Menu/Menu.d.ts +18 -18
  303. package/dist/components/TopNavigation/Menu/Menu.test.d.ts +1 -1
  304. package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +17 -17
  305. package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +8 -8
  306. package/dist/components/TopNavigation/Menu/index.d.ts +1 -1
  307. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +7 -7
  308. package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
  309. package/dist/components/TopNavigation/TopNavigation.d.ts +17 -17
  310. package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -5
  311. package/dist/components/TopNavigation/index.d.ts +2 -2
  312. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  313. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +13 -12
  314. package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +1 -1
  315. package/dist/components/VisuallyHidden/index.d.ts +1 -1
  316. package/dist/hooks/useClickOutside/index.d.ts +1 -1
  317. package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -3
  318. package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +1 -1
  319. package/dist/hooks/useDidMount/index.d.ts +1 -1
  320. package/dist/hooks/useDidMount/useDidMount.d.ts +9 -9
  321. package/dist/hooks/useDidMount/useDidMount.test.d.ts +1 -1
  322. package/dist/hooks/useFingerprint/index.d.ts +1 -1
  323. package/dist/hooks/useFingerprint/useFingerprint.d.ts +18 -18
  324. package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +1 -1
  325. package/dist/hooks/useFocusTrap/index.d.ts +2 -2
  326. package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +27 -27
  327. package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +7 -7
  328. package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +1 -1
  329. package/dist/hooks/useFocusWithin/index.d.ts +2 -2
  330. package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +15 -15
  331. package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +1 -1
  332. package/dist/hooks/useHeightExpansionToggler/index.d.ts +2 -2
  333. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +14 -14
  334. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +1 -1
  335. package/dist/hooks/useID/index.d.ts +1 -1
  336. package/dist/hooks/useID/useID.d.ts +2 -2
  337. package/dist/hooks/useSelectable/SelectableStrategy.d.ts +11 -11
  338. package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +1 -1
  339. package/dist/hooks/useSelectable/index.d.ts +2 -2
  340. package/dist/hooks/useSelectable/useSelectable.d.ts +6 -6
  341. package/dist/hooks/useSelectable/useSelectable.test.d.ts +1 -1
  342. package/dist/hooks/useSelectable/useSelectable.types.d.ts +46 -46
  343. package/dist/hooks/useWindowResize/index.d.ts +1 -1
  344. package/dist/hooks/useWindowResize/useWindowResize.d.ts +5 -5
  345. package/dist/index.d.ts +97 -97
  346. package/dist/index.js +3 -3
  347. package/dist/index.js.map +1 -1
  348. package/dist/{miranda-compatibility.theme-97e29e8e.js → miranda-compatibility.theme-781b0886.js} +1 -1
  349. package/dist/miranda-compatibility.theme-781b0886.js.map +1 -0
  350. package/dist/prop-32998961.js +2 -0
  351. package/dist/prop-32998961.js.map +1 -0
  352. package/dist/styles/activatable.d.ts +10 -10
  353. package/dist/styles/disableable.d.ts +10 -10
  354. package/dist/styles/ellipsizable.d.ts +7 -7
  355. package/dist/styles/focusable.d.ts +10 -10
  356. package/dist/styles/font.d.ts +16 -16
  357. package/dist/styles/font.test.d.ts +1 -1
  358. package/dist/styles/hidden.d.ts +7 -7
  359. package/dist/styles/hoverable.d.ts +10 -10
  360. package/dist/styles/transition.d.ts +11 -11
  361. package/dist/styles/typography.d.ts +27 -27
  362. package/dist/styles/typography.test.d.ts +1 -1
  363. package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +42 -42
  364. package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +41 -41
  365. package/dist/testing/DatePickerEvent/index.d.ts +2 -2
  366. package/dist/testing/DragDropFileEvent/DragDropFileEvent.d.ts +6 -6
  367. package/dist/testing/DragDropFileEvent/index.d.ts +1 -1
  368. package/dist/testing/SelectEvent/SelectEvent.d.ts +66 -66
  369. package/dist/testing/SelectEvent/SelectEvent.test.d.ts +1 -1
  370. package/dist/testing/SelectEvent/index.d.ts +1 -1
  371. package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +10 -10
  372. package/dist/testing/getInterpolatedStyles/index.d.ts +1 -1
  373. package/dist/testing/index.d.ts +5 -5
  374. package/dist/testing/index.js +1 -1
  375. package/dist/testing/index.js.map +1 -1
  376. package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
  377. package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
  378. package/dist/tests/generator.d.ts +35 -35
  379. package/dist/tests/renderer.d.ts +10 -10
  380. package/dist/theming/index.d.ts +16 -16
  381. package/dist/theming/index.js +1 -1
  382. package/dist/theming/index.js.map +1 -1
  383. package/dist/theming/themes/alice.theme.d.ts +755 -755
  384. package/dist/theming/themes/index.d.ts +3 -3
  385. package/dist/theming/themes/loadsmart.theme.d.ts +737 -737
  386. package/dist/theming/themes/miranda-compatibility.theme.d.ts +750 -750
  387. package/dist/theming/theming.helpers.d.ts +22 -22
  388. package/dist/{toArray-b56541b4.js → toArray-8fc577bb.js} +1 -1
  389. package/dist/toArray-8fc577bb.js.map +1 -0
  390. package/dist/tools/conditional.d.ts +39 -39
  391. package/dist/tools/conditional.test.d.ts +1 -1
  392. package/dist/tools/index.d.ts +2 -2
  393. package/dist/tools/index.js +1 -1
  394. package/dist/tools/prop.d.ts +15 -15
  395. package/dist/tools/prop.test.d.ts +1 -1
  396. package/dist/utils/toolset/awaitTo.d.ts +10 -10
  397. package/dist/utils/toolset/debounce.d.ts +1 -1
  398. package/dist/utils/toolset/flatten.d.ts +1 -1
  399. package/dist/utils/toolset/formatBytes.d.ts +4 -4
  400. package/dist/utils/toolset/formatBytes.test.d.ts +1 -1
  401. package/dist/utils/toolset/get.d.ts +1 -1
  402. package/dist/utils/toolset/getID.d.ts +13 -13
  403. package/dist/utils/toolset/getID.test.d.ts +1 -1
  404. package/dist/utils/toolset/getOrdinalSuffix.d.ts +1 -1
  405. package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +1 -1
  406. package/dist/utils/toolset/highlightMatch.d.ts +9 -9
  407. package/dist/utils/toolset/highlightMatch.test.d.ts +1 -1
  408. package/dist/utils/toolset/interleave.d.ts +2 -2
  409. package/dist/utils/toolset/interleave.test.d.ts +1 -1
  410. package/dist/utils/toolset/isEmpty.d.ts +1 -1
  411. package/dist/utils/toolset/isThenable.d.ts +5 -5
  412. package/dist/utils/toolset/isThenable.test.d.ts +1 -1
  413. package/dist/utils/toolset/keyboard.d.ts +24 -24
  414. package/dist/utils/toolset/omit.d.ts +1 -1
  415. package/dist/utils/toolset/pluralize.d.ts +14 -14
  416. package/dist/utils/toolset/range.d.ts +1 -1
  417. package/dist/utils/toolset/rem.d.ts +3 -3
  418. package/dist/utils/toolset/styledCompounds.d.ts +13 -13
  419. package/dist/utils/toolset/toArray.d.ts +2 -2
  420. package/dist/utils/types/ColorScheme.d.ts +2 -2
  421. package/dist/utils/types/EventLike.d.ts +10 -10
  422. package/dist/utils/types/InterpolatedStyle.d.ts +2 -2
  423. package/dist/utils/types/Status.d.ts +7 -7
  424. package/package.json +8 -9
  425. package/src/@types/@loadsmart/utilsFunction.d.ts +2 -2
  426. package/src/@types/@loadsmart/utilsObject.d.ts +2 -2
  427. package/src/@types/svg.d.ts +3 -3
  428. package/src/components/Calendar/Date.helper.test.ts +3 -6
  429. package/src/components/Calendar/Month.helper.test.ts +66 -66
  430. package/src/components/Calendar/Month.helper.ts +1 -3
  431. package/src/components/Dialog/useDialog.tsx +1 -5
  432. package/src/components/DragDropFile/DragDropFile.context.tsx +4 -6
  433. package/src/components/Dropdown/Dropdown.tsx +4 -6
  434. package/src/components/Dropdown/useDropdown.ts +1 -4
  435. package/src/components/Select/Select.stories.tsx +2 -2
  436. package/src/components/Select/Select.test.tsx +2 -2
  437. package/src/components/Select/SelectOption.test.tsx +1 -1
  438. package/src/components/Select/useSelect.ts +4 -4
  439. package/src/components/Table/Table.fixtures.ts +1 -1
  440. package/src/components/Table/Table.tsx +1 -1
  441. package/src/components/TopNavigation/Menu/Menu.test.tsx +33 -0
  442. package/src/components/TopNavigation/Menu/MenuItemDropdown.tsx +6 -2
  443. package/src/components/TopNavigation/TopNavigation.stories.tsx +4 -1
  444. package/src/docs/tools/DragDropFileEvent.stories.mdx +1 -5
  445. package/src/docs/tools/conditional.stories.mdx +35 -28
  446. package/src/hooks/useClickOutside/useClickOutside.ts +1 -1
  447. package/src/hooks/useFocusTrap/useFocusTrap.ts +1 -1
  448. package/src/hooks/useFocusWithin/useFocusWithin.ts +5 -4
  449. package/src/tools/conditional.ts +1 -1
  450. package/src/utils/toolset/highlightMatch.test.tsx +1 -1
  451. package/src/utils/toolset/keyboard.ts +1 -3
  452. package/dist/miranda-compatibility.theme-97e29e8e.js.map +0 -1
  453. package/dist/prop-5c502a5a.js +0 -2
  454. package/dist/prop-5c502a5a.js.map +0 -1
  455. package/dist/toArray-b56541b4.js.map +0 -1
@@ -1,61 +1,61 @@
1
- import type { Meta } from '@storybook/react/types-6-0';
2
- import type { TableProps } from './Table.types';
3
- declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
- export default _default;
5
- export declare function Playground(args: TableProps): JSX.Element;
6
- export declare namespace Playground {
7
- var args: {
8
- scale: string;
9
- };
10
- }
11
- export declare function WithSorting(args: TableProps): JSX.Element;
12
- export declare namespace WithSorting {
13
- var args: {
14
- scale: string;
15
- };
16
- }
17
- export declare function WithColumnPicker(args: TableProps): JSX.Element;
18
- export declare namespace WithColumnPicker {
19
- var args: {
20
- scale: string;
21
- };
22
- var parameters: {
23
- docs: {
24
- description: {
25
- story: string;
26
- };
27
- };
28
- source: {
29
- type: string;
30
- };
31
- };
32
- }
33
- export declare function WithRowSelection(args: TableProps): JSX.Element;
34
- export declare namespace WithRowSelection {
35
- var parameters: {
36
- docs: {
37
- description: {
38
- story: string;
39
- };
40
- };
41
- };
42
- var args: {
43
- scale: string;
44
- };
45
- }
46
- export declare function WithCustomRowSelection(): JSX.Element;
47
- export declare namespace WithCustomRowSelection {
48
- var parameters: {
49
- docs: {
50
- description: {
51
- story: string;
52
- };
53
- };
54
- };
55
- }
56
- export declare function WithExpandableRow(args: TableProps): JSX.Element;
57
- export declare namespace WithExpandableRow {
58
- var args: {
59
- scale: string;
60
- };
61
- }
1
+ import type { Meta } from '@storybook/react/types-6-0';
2
+ import type { TableProps } from './Table.types';
3
+ declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
+ export default _default;
5
+ export declare function Playground(args: TableProps): JSX.Element;
6
+ export declare namespace Playground {
7
+ var args: {
8
+ scale: string;
9
+ };
10
+ }
11
+ export declare function WithSorting(args: TableProps): JSX.Element;
12
+ export declare namespace WithSorting {
13
+ var args: {
14
+ scale: string;
15
+ };
16
+ }
17
+ export declare function WithColumnPicker(args: TableProps): JSX.Element;
18
+ export declare namespace WithColumnPicker {
19
+ var args: {
20
+ scale: string;
21
+ };
22
+ var parameters: {
23
+ docs: {
24
+ description: {
25
+ story: string;
26
+ };
27
+ };
28
+ source: {
29
+ type: string;
30
+ };
31
+ };
32
+ }
33
+ export declare function WithRowSelection(args: TableProps): JSX.Element;
34
+ export declare namespace WithRowSelection {
35
+ var parameters: {
36
+ docs: {
37
+ description: {
38
+ story: string;
39
+ };
40
+ };
41
+ };
42
+ var args: {
43
+ scale: string;
44
+ };
45
+ }
46
+ export declare function WithCustomRowSelection(): JSX.Element;
47
+ export declare namespace WithCustomRowSelection {
48
+ var parameters: {
49
+ docs: {
50
+ description: {
51
+ story: string;
52
+ };
53
+ };
54
+ };
55
+ }
56
+ export declare function WithExpandableRow(args: TableProps): JSX.Element;
57
+ export declare namespace WithExpandableRow {
58
+ var args: {
59
+ scale: string;
60
+ };
61
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,73 +1,73 @@
1
- import type { Selectable } from "../../hooks/useSelectable";
2
- import type { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode, ReactElement } from 'react';
3
- import type { DropdownMenuItemProps, DropdownMenuProps } from "../Dropdown";
4
- import type { DropdownTriggerButtonProps } from "../Dropdown/DropdownTrigger";
5
- import type { TableSelectableRow, TableSelectionConfig } from './Selection';
6
- declare type Scale = 'default' | 'small' | 'large';
7
- export interface TableProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableElement> {
8
- scale?: Scale;
9
- selection?: TableSelectionConfig<T>;
10
- }
11
- export interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
12
- position?: 'top' | 'bottom';
13
- height?: number;
14
- }
15
- export interface TableSelectionProps extends HTMLAttributes<HTMLDivElement> {
16
- buttons: ComponentType<{
17
- values: TableSelectableRow[];
18
- }>[];
19
- }
20
- export interface SelectionCellProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableCellElement> {
21
- value?: T;
22
- children?: (props: {
23
- selected: boolean;
24
- toggle: () => void;
25
- }) => ReactElement;
26
- }
27
- export interface TableSectionProps extends HTMLAttributes<HTMLTableSectionElement> {
28
- scale?: Scale;
29
- }
30
- export declare type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
31
- export declare type ExpandableTableRowProps = TableRowProps & {
32
- index: number;
33
- expandableContent?: ReactNode;
34
- leading?: ReactNode | ((expanded: boolean) => ReactNode);
35
- initialExpanded?: boolean;
36
- expanded?: boolean;
37
- onExpandedChange?: (expanded: boolean) => void;
38
- };
39
- export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
40
- alignment?: 'left' | 'right';
41
- format?: 'default' | 'number' | 'currency';
42
- columnWidth?: string;
43
- scale?: Scale;
44
- selected?: boolean;
45
- }
46
- export declare type TableColumn<T = Record<string, unknown>> = {
47
- /**
48
- * The accessor of you entry interface
49
- */
50
- key: keyof T;
51
- /**
52
- * The label that should go in the Header cell
53
- */
54
- title: ReactNode;
55
- /**
56
- * The text of the Dropdown.Item
57
- * If omitted, `title` is used
58
- */
59
- option?: string;
60
- };
61
- export declare type TableColumns<T> = Array<TableColumn<T>>;
62
- export interface TablePickerItemProps<T> extends DropdownMenuItemProps {
63
- option?: TableColumn<T>;
64
- checked?: boolean;
65
- }
66
- export interface TablePickerProps<T> extends PropsWithChildren<Partial<Omit<DropdownTriggerButtonProps, 'onChange' | 'value' | 'children'>>> {
67
- value?: TableColumn<T>;
68
- onChange?: (value: TableColumn<T>) => void;
69
- options?: TableColumns<T>;
70
- trigger?: ReactNode | ((expanded: boolean) => ReactNode);
71
- align?: DropdownMenuProps['align'];
72
- }
73
- export {};
1
+ import type { Selectable } from 'hooks/useSelectable';
2
+ import type { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode, ReactElement } from 'react';
3
+ import type { DropdownMenuItemProps, DropdownMenuProps } from 'components/Dropdown';
4
+ import type { DropdownTriggerButtonProps } from 'components/Dropdown/DropdownTrigger';
5
+ import type { TableSelectableRow, TableSelectionConfig } from './Selection';
6
+ type Scale = 'default' | 'small' | 'large';
7
+ export interface TableProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableElement> {
8
+ scale?: Scale;
9
+ selection?: TableSelectionConfig<T>;
10
+ }
11
+ export interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
12
+ position?: 'top' | 'bottom';
13
+ height?: number;
14
+ }
15
+ export interface TableSelectionProps extends HTMLAttributes<HTMLDivElement> {
16
+ buttons: ComponentType<{
17
+ values: TableSelectableRow[];
18
+ }>[];
19
+ }
20
+ export interface SelectionCellProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableCellElement> {
21
+ value?: T;
22
+ children?: (props: {
23
+ selected: boolean;
24
+ toggle: () => void;
25
+ }) => ReactElement;
26
+ }
27
+ export interface TableSectionProps extends HTMLAttributes<HTMLTableSectionElement> {
28
+ scale?: Scale;
29
+ }
30
+ export type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
31
+ export type ExpandableTableRowProps = TableRowProps & {
32
+ index: number;
33
+ expandableContent?: ReactNode;
34
+ leading?: ReactNode | ((expanded: boolean) => ReactNode);
35
+ initialExpanded?: boolean;
36
+ expanded?: boolean;
37
+ onExpandedChange?: (expanded: boolean) => void;
38
+ };
39
+ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
40
+ alignment?: 'left' | 'right';
41
+ format?: 'default' | 'number' | 'currency';
42
+ columnWidth?: string;
43
+ scale?: Scale;
44
+ selected?: boolean;
45
+ }
46
+ export type TableColumn<T = Record<string, unknown>> = {
47
+ /**
48
+ * The accessor of you entry interface
49
+ */
50
+ key: keyof T;
51
+ /**
52
+ * The label that should go in the Header cell
53
+ */
54
+ title: ReactNode;
55
+ /**
56
+ * The text of the Dropdown.Item
57
+ * If omitted, `title` is used
58
+ */
59
+ option?: string;
60
+ };
61
+ export type TableColumns<T> = Array<TableColumn<T>>;
62
+ export interface TablePickerItemProps<T> extends DropdownMenuItemProps {
63
+ option?: TableColumn<T>;
64
+ checked?: boolean;
65
+ }
66
+ export interface TablePickerProps<T> extends PropsWithChildren<Partial<Omit<DropdownTriggerButtonProps, 'onChange' | 'value' | 'children'>>> {
67
+ value?: TableColumn<T>;
68
+ onChange?: (value: TableColumn<T>) => void;
69
+ options?: TableColumns<T>;
70
+ trigger?: ReactNode | ((expanded: boolean) => ReactNode);
71
+ align?: DropdownMenuProps['align'];
72
+ }
73
+ export {};
@@ -1,7 +1,7 @@
1
- import type { SortDirection } from './useSortBy.types';
2
- import type { BoxProps } from "../Layout/Box";
3
- interface TableSortHandleProps extends BoxProps {
4
- order?: SortDirection | null;
5
- }
6
- declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): JSX.Element | null;
7
- export default TableSortHandle;
1
+ import type { SortDirection } from './useSortBy.types';
2
+ import type { BoxProps } from 'components/Layout/Box';
3
+ interface TableSortHandleProps extends BoxProps {
4
+ order?: SortDirection | null;
5
+ }
6
+ declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): JSX.Element | null;
7
+ export default TableSortHandle;
@@ -1,2 +1,2 @@
1
- export { default as Table } from './Table';
2
- export type { TableProps, TableCellProps, TableRowProps, TableSectionProps } from './Table.types';
1
+ export { default as Table } from './Table';
2
+ export type { TableProps, TableCellProps, TableRowProps, TableSectionProps } from './Table.types';
@@ -1,16 +1,16 @@
1
- import type { TableRowGroup, SortableColumn, ColumnGroup } from './useSortBy.types';
2
- /**
3
- * A hook that receives columns and table rows to sort them when sortByColumn function is called.
4
- * Exposes columnData, tableData and sortByColumn to be consumed by the Table component.
5
- *
6
- * @param {ColumnGroup} columnGroup a group of table columns
7
- * @param {TableRowGroup} tableRowGroup a group of table rows
8
- *
9
- * @returns {TableRowGroup} sorted table rows
10
- */
11
- declare function useSortBy(columnGroup: ColumnGroup, tableRowGroup: TableRowGroup): {
12
- tableData: TableRowGroup;
13
- columnData: ColumnGroup;
14
- sortByColumn: (column: SortableColumn) => void;
15
- };
16
- export default useSortBy;
1
+ import type { TableRowGroup, SortableColumn, ColumnGroup } from './useSortBy.types';
2
+ /**
3
+ * A hook that receives columns and table rows to sort them when sortByColumn function is called.
4
+ * Exposes columnData, tableData and sortByColumn to be consumed by the Table component.
5
+ *
6
+ * @param {ColumnGroup} columnGroup a group of table columns
7
+ * @param {TableRowGroup} tableRowGroup a group of table rows
8
+ *
9
+ * @returns {TableRowGroup} sorted table rows
10
+ */
11
+ declare function useSortBy(columnGroup: ColumnGroup, tableRowGroup: TableRowGroup): {
12
+ tableData: TableRowGroup;
13
+ columnData: ColumnGroup;
14
+ sortByColumn: (column: SortableColumn) => void;
15
+ };
16
+ export default useSortBy;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,16 +1,16 @@
1
- import type { TableColumn } from './Table.types';
2
- export declare type TableRowGroup = Array<Record<string, string | number>>;
3
- export interface SortableColumn extends TableColumn {
4
- isSortable?: boolean;
5
- order?: SortDirection | null;
6
- }
7
- export declare type ColumnGroup = Array<SortableColumn>;
8
- export interface SortState {
9
- sortConfig: SortableColumn;
10
- columnGroup: ColumnGroup;
11
- tableRowGroup: TableRowGroup;
12
- }
13
- export declare enum SortDirection {
14
- ASC = "ASC",
15
- DESC = "DESC"
16
- }
1
+ import type { TableColumn } from './Table.types';
2
+ export type TableRowGroup = Array<Record<string, string | number>>;
3
+ export interface SortableColumn extends TableColumn {
4
+ isSortable?: boolean;
5
+ order?: SortDirection | null;
6
+ }
7
+ export type ColumnGroup = Array<SortableColumn>;
8
+ export interface SortState {
9
+ sortConfig: SortableColumn;
10
+ columnGroup: ColumnGroup;
11
+ tableRowGroup: TableRowGroup;
12
+ }
13
+ export declare enum SortDirection {
14
+ ASC = "ASC",
15
+ DESC = "DESC"
16
+ }
@@ -1,3 +1,3 @@
1
- import type { RowsPerPageProps } from './TablePagination.types';
2
- declare function RowsPerPage({ page, rowsPerPage, onRowsPerPageChange, labelRowsPerPage, count, rowsPerPageOptions, disabled, position, align, }: RowsPerPageProps): JSX.Element;
3
- export default RowsPerPage;
1
+ import type { RowsPerPageProps } from './TablePagination.types';
2
+ declare function RowsPerPage({ page, rowsPerPage, onRowsPerPageChange, labelRowsPerPage, count, rowsPerPageOptions, disabled, position, align, }: RowsPerPageProps): JSX.Element;
3
+ export default RowsPerPage;
@@ -1,3 +1,3 @@
1
- import type { TablePaginationProps } from './TablePagination.types';
2
- declare function TablePagination(props: TablePaginationProps): JSX.Element;
3
- export default TablePagination;
1
+ import type { TablePaginationProps } from './TablePagination.types';
2
+ declare function TablePagination(props: TablePaginationProps): JSX.Element;
3
+ export default TablePagination;
@@ -1,5 +1,5 @@
1
- import type { Meta, Story } from '@storybook/react/types-6-0';
2
- import type { TablePaginationProps } from './TablePagination.types';
3
- declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
- export default _default;
5
- export declare const Playground: Story<TablePaginationProps>;
1
+ import type { Meta, Story } from '@storybook/react/types-6-0';
2
+ import type { TablePaginationProps } from './TablePagination.types';
3
+ declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
+ export default _default;
5
+ export declare const Playground: Story<TablePaginationProps>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const NoPaddingButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {
3
- variant: "tertiary";
4
- scale: "small";
5
- }, "scale" | "variant">;
1
+ /// <reference types="react" />
2
+ export declare const NoPaddingButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {
3
+ variant: "tertiary";
4
+ scale: "small";
5
+ }, "scale" | "variant">;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,59 +1,59 @@
1
- import type { GroupProps } from "../Layout/Group";
2
- import type { PopoverPlacement } from "../Popover";
3
- export interface TablePaginationProps extends GroupProps {
4
- /**
5
- * The pagination variant
6
- * @default 'default'
7
- */
8
- variant?: 'compact' | 'default';
9
- /**
10
- * The total number of paginated items
11
- */
12
- count: number;
13
- /**
14
- * Customize the rows per page label.
15
- * @default 'Rows per page:'
16
- */
17
- labelRowsPerPage?: string;
18
- /**
19
- * Callback fired when the page is changed.
20
- */
21
- onPageChange: (page: number) => void;
22
- /**
23
- * Callback fired when the number of rows per page is changed.
24
- *
25
- * Note: Resetting the page to zero after the number of rows per page is changed isn't part of
26
- * the component and has to be implemented where it's necessary
27
- */
28
- onRowsPerPageChange: (rowsPerPage: number) => void;
29
- /**
30
- * The number of rows per page.
31
- * @default 50
32
- */
33
- rowsPerPage?: number;
34
- /**
35
- * The zero-based index of the current page.
36
- */
37
- page: number;
38
- /**
39
- * Customizes the options of the rows per page select field.
40
- * @default [10, 25, 50, 100]
41
- */
42
- rowsPerPageOptions?: number[];
43
- /**
44
- * Disable all the pagination actions
45
- */
46
- disabled?: boolean;
47
- /**
48
- * Customizes the placement of the rows per page select field.
49
- * @default { position: 'bottom', align: 'start' }
50
- */
51
- rowsPerPagePlacement?: PopoverPlacement;
52
- }
53
- export declare type TablePaginationActionsProps = Omit<TablePaginationProps, 'labelRowsPerPage' | 'onRowsPerPageChange' | 'rowsPerPageOptions' | 'rowsPerPage'> & {
54
- rowsPerPage: number;
55
- };
56
- export declare type RowsPerPageProps = Omit<TablePaginationProps, 'rowsPerPageOptions' | 'onPageChange' | 'rowsPerPage' | 'align'> & PopoverPlacement & {
57
- rowsPerPageOptions: number[];
58
- rowsPerPage: number;
59
- };
1
+ import type { GroupProps } from 'components/Layout/Group';
2
+ import type { PopoverPlacement } from 'components/Popover';
3
+ export interface TablePaginationProps extends GroupProps {
4
+ /**
5
+ * The pagination variant
6
+ * @default 'default'
7
+ */
8
+ variant?: 'compact' | 'default';
9
+ /**
10
+ * The total number of paginated items
11
+ */
12
+ count: number;
13
+ /**
14
+ * Customize the rows per page label.
15
+ * @default 'Rows per page:'
16
+ */
17
+ labelRowsPerPage?: string;
18
+ /**
19
+ * Callback fired when the page is changed.
20
+ */
21
+ onPageChange: (page: number) => void;
22
+ /**
23
+ * Callback fired when the number of rows per page is changed.
24
+ *
25
+ * Note: Resetting the page to zero after the number of rows per page is changed isn't part of
26
+ * the component and has to be implemented where it's necessary
27
+ */
28
+ onRowsPerPageChange: (rowsPerPage: number) => void;
29
+ /**
30
+ * The number of rows per page.
31
+ * @default 50
32
+ */
33
+ rowsPerPage?: number;
34
+ /**
35
+ * The zero-based index of the current page.
36
+ */
37
+ page: number;
38
+ /**
39
+ * Customizes the options of the rows per page select field.
40
+ * @default [10, 25, 50, 100]
41
+ */
42
+ rowsPerPageOptions?: number[];
43
+ /**
44
+ * Disable all the pagination actions
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * Customizes the placement of the rows per page select field.
49
+ * @default { position: 'bottom', align: 'start' }
50
+ */
51
+ rowsPerPagePlacement?: PopoverPlacement;
52
+ }
53
+ export type TablePaginationActionsProps = Omit<TablePaginationProps, 'labelRowsPerPage' | 'onRowsPerPageChange' | 'rowsPerPageOptions' | 'rowsPerPage'> & {
54
+ rowsPerPage: number;
55
+ };
56
+ export type RowsPerPageProps = Omit<TablePaginationProps, 'rowsPerPageOptions' | 'onPageChange' | 'rowsPerPage' | 'align'> & PopoverPlacement & {
57
+ rowsPerPageOptions: number[];
58
+ rowsPerPage: number;
59
+ };
@@ -1,10 +1,10 @@
1
- import type { TablePaginationActionsProps } from "./TablePagination.types";
2
- import { IconProps } from "../Icon";
3
- export declare const ActionIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {
4
- color: "neutral-darker";
5
- size: "16";
6
- } & IconProps & {
7
- rotate?: number | undefined;
8
- }, "size" | "color">;
9
- declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): JSX.Element;
10
- export default TablePaginationActions;
1
+ import type { TablePaginationActionsProps } from 'components/TablePagination/TablePagination.types';
2
+ import { IconProps } from 'components/Icon';
3
+ export declare const ActionIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {
4
+ color: "neutral-darker";
5
+ size: "16";
6
+ } & IconProps & {
7
+ rotate?: number | undefined;
8
+ }, "size" | "color">;
9
+ declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): JSX.Element;
10
+ export default TablePaginationActions;
@@ -1,2 +1,2 @@
1
- export { default as TablePagination } from './TablePagination';
2
- export type { TablePaginationProps } from './TablePagination.types';
1
+ export { default as TablePagination } from './TablePagination';
2
+ export type { TablePaginationProps } from './TablePagination.types';