@loadsmart/loadsmart-ui 8.0.0 → 8.0.2

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 (300) hide show
  1. package/dist/DragDropFile.context-oKnUu6d3.js.map +1 -1
  2. package/dist/common/BackButton/BackButton.d.ts +2 -1
  3. package/dist/common/CloseButton/CloseButton.d.ts +3 -2
  4. package/dist/common/SelectionWrapper.d.ts +9 -9
  5. package/dist/components/Accordion/Accordion.context.d.ts +6 -6
  6. package/dist/components/Accordion/Accordion.d.ts +11 -11
  7. package/dist/components/Banner/Banner.d.ts +17 -17
  8. package/dist/components/Breadcrumbs/Breadcrumb.d.ts +5 -5
  9. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  10. package/dist/components/Button/Button.d.ts +11 -10
  11. package/dist/components/Calendar/Calendar.d.ts +3 -2
  12. package/dist/components/Calendar/Calendar.helpers.d.ts +2 -1
  13. package/dist/components/Calendar/Calendar.types.d.ts +4 -4
  14. package/dist/components/Calendar/Date.helper.d.ts +27 -54
  15. package/dist/components/Calendar/DateFormat.helper.d.ts +1 -3
  16. package/dist/components/Calendar/Month.helper.d.ts +5 -5
  17. package/dist/components/Calendar/PickerModeToggle.d.ts +2 -1
  18. package/dist/components/Calendar/Pickers/DayPicker.d.ts +4 -2
  19. package/dist/components/Calendar/Pickers/MonthPicker.d.ts +2 -1
  20. package/dist/components/Calendar/Pickers/PickerButton.d.ts +2 -3
  21. package/dist/components/Calendar/Pickers/YearPicker.d.ts +2 -1
  22. package/dist/components/Calendar/useCalendar.d.ts +4 -9
  23. package/dist/components/Card/Card.d.ts +5 -5
  24. package/dist/components/Card/CardTitle.d.ts +5 -4
  25. package/dist/components/Checkbox/Checkbox.d.ts +7 -7
  26. package/dist/components/DatePicker/DatePicker.d.ts +6 -6
  27. package/dist/components/DatePicker/DateRangePicker.d.ts +3 -2
  28. package/dist/components/DatePicker/useDatePicker.d.ts +7 -586
  29. package/dist/components/DatePicker/useDateRangePicker.d.ts +5 -889
  30. package/dist/components/Dialog/Dialog.d.ts +14 -16
  31. package/dist/components/DragDropFile/DragDropFile.context.d.ts +1 -1
  32. package/dist/components/DragDropFile/DragDropFile.d.ts +4 -3
  33. package/dist/components/DragDropFile/components/DropZone.d.ts +2 -1
  34. package/dist/components/DragDropFile/components/FileItem.d.ts +2 -1
  35. package/dist/components/DragDropFile/components/FileList.d.ts +2 -1
  36. package/dist/components/DragDropFile/styles.d.ts +8 -9
  37. package/dist/components/DragDropFile/types.d.ts +4 -4
  38. package/dist/components/Drawer/Drawer.d.ts +7 -7
  39. package/dist/components/Dropdown/Dropdown.context.d.ts +2 -1
  40. package/dist/components/Dropdown/Dropdown.d.ts +2 -5
  41. package/dist/components/Dropdown/Dropdown.types.d.ts +1 -1
  42. package/dist/components/Dropdown/DropdownMenu.d.ts +4 -3
  43. package/dist/components/Dropdown/DropdownTrigger.d.ts +10 -10
  44. package/dist/components/EmptyState/EmptyState.d.ts +3 -3
  45. package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
  46. package/dist/components/EmptyState/index.d.ts +1 -1
  47. package/dist/components/HighlightMatch/HighlightMatch.d.ts +4 -4
  48. package/dist/components/Icon/Icon.d.ts +3 -2
  49. package/dist/components/IconFactory/IconFactory.d.ts +8 -8
  50. package/dist/components/IconFactory/IconFactory.fixtures.d.ts +6 -6
  51. package/dist/components/Label/Label.d.ts +10 -10
  52. package/dist/components/Layout/Box.d.ts +8 -9
  53. package/dist/components/Layout/Grid.d.ts +4 -5
  54. package/dist/components/Layout/Group.d.ts +5 -6
  55. package/dist/components/Layout/Sidebar.d.ts +6 -7
  56. package/dist/components/Layout/Stack.d.ts +7 -7
  57. package/dist/components/Layout/Switcher.d.ts +5 -6
  58. package/dist/components/Link/Link.d.ts +3 -3
  59. package/dist/components/Loaders/LoadingBar.d.ts +8 -7
  60. package/dist/components/Loaders/LoadingDots.d.ts +4 -3
  61. package/dist/components/Loaders/Spinner.d.ts +4 -3
  62. package/dist/components/Modal/Modal.d.ts +4 -7
  63. package/dist/components/Pagination/Pagination.d.ts +2 -1
  64. package/dist/components/Pagination/Pagination.types.d.ts +4 -4
  65. package/dist/components/Pagination/PaginationItem.d.ts +2 -1
  66. package/dist/components/Popover/Popover.d.ts +4 -3
  67. package/dist/components/ProgressBar/ProgressBar.d.ts +6 -6
  68. package/dist/components/Radio/Radio.d.ts +7 -7
  69. package/dist/components/Section/Section.d.ts +4 -4
  70. package/dist/components/Select/Select.context.d.ts +3 -2
  71. package/dist/components/Select/Select.d.ts +2 -2
  72. package/dist/components/Select/Select.fixtures.d.ts +4 -4
  73. package/dist/components/Select/Select.types.d.ts +14 -14
  74. package/dist/components/Select/SelectCreatableOption.d.ts +2 -1
  75. package/dist/components/Select/SelectEmpty.d.ts +2 -1
  76. package/dist/components/Select/SelectOption.d.ts +2 -1
  77. package/dist/components/Select/SelectTrigger.d.ts +1 -1
  78. package/dist/components/Select/useSelect.d.ts +0 -2
  79. package/dist/components/SideNavigation/Logo/Logo.d.ts +6 -5
  80. package/dist/components/SideNavigation/Menu/Menu.d.ts +3 -13
  81. package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +7 -7
  82. package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +3 -3
  83. package/dist/components/SideNavigation/Menu/MenuLink.d.ts +7 -6
  84. package/dist/components/SideNavigation/Separator/Separator.d.ts +3 -2
  85. package/dist/components/SideNavigation/SideNavigation.d.ts +7 -22
  86. package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +5 -5
  87. package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +4 -3
  88. package/dist/components/Steps/Steps.d.ts +8 -8
  89. package/dist/components/Steps/Steps.types.d.ts +2 -2
  90. package/dist/components/Steps/StepsStep.d.ts +6 -5
  91. package/dist/components/Steps/useSteps.d.ts +2 -2
  92. package/dist/components/Switch/Switch.d.ts +6 -6
  93. package/dist/components/Table/Selection.d.ts +6 -6
  94. package/dist/components/Table/Table.d.ts +14 -13
  95. package/dist/components/Table/Table.types.d.ts +5 -5
  96. package/dist/components/Table/TableSortHandle.d.ts +3 -2
  97. package/dist/components/Table/useSortBy.d.ts +3 -3
  98. package/dist/components/TablePagination/RowsPerPage.d.ts +2 -1
  99. package/dist/components/TablePagination/TablePagination.d.ts +2 -1
  100. package/dist/components/TablePagination/TablePagination.styles.d.ts +2 -4
  101. package/dist/components/TablePagination/TablePaginationActions.d.ts +3 -8
  102. package/dist/components/Tabs/Tabs.d.ts +10 -10
  103. package/dist/components/Tabs/TabsContext.d.ts +2 -1
  104. package/dist/components/Tag/Tag.d.ts +11 -11
  105. package/dist/components/Text/Text.d.ts +2 -1
  106. package/dist/components/TextField/TextField.d.ts +11 -10
  107. package/dist/components/Textarea/Textarea.d.ts +8 -8
  108. package/dist/components/Toast/Toast.d.ts +7 -7
  109. package/dist/components/ToggleGroup/Toggle.d.ts +4 -2
  110. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -2
  111. package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +1 -1
  112. package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +2 -2
  113. package/dist/components/Tooltip/Tooltip.d.ts +7 -7
  114. package/dist/components/TopNavigation/Logo/Logo.d.ts +6 -5
  115. package/dist/components/TopNavigation/Menu/Menu.d.ts +7 -7
  116. package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +12 -12
  117. package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +7 -7
  118. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +8 -6
  119. package/dist/components/TopNavigation/TopNavigation.d.ts +5 -5
  120. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -1
  121. package/dist/hooks/useDidMount/useDidMount.d.ts +1 -1
  122. package/dist/hooks/useFingerprint/useFingerprint.d.ts +0 -1
  123. package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +7 -8
  124. package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +1 -1
  125. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +3 -3
  126. package/dist/hooks/useSelectable/SelectableStrategy.d.ts +4 -4
  127. package/dist/hooks/useSelectable/useSelectable.types.d.ts +2 -2
  128. package/dist/index.js +316 -257
  129. package/dist/index.js.map +1 -1
  130. package/dist/{miranda-compatibility.theme-kYNEZ7mW.js → miranda-compatibility.theme-CIu9fa89.js} +2 -2
  131. package/dist/miranda-compatibility.theme-CIu9fa89.js.map +1 -0
  132. package/dist/{prop-K2Z3EsyG.js → prop-Fs2axl9W.js} +12 -18
  133. package/dist/prop-Fs2axl9W.js.map +1 -0
  134. package/dist/styles/activatable.d.ts +2 -3
  135. package/dist/styles/disableable.d.ts +3 -3
  136. package/dist/styles/ellipsizable.d.ts +1 -2
  137. package/dist/styles/focusable.d.ts +3 -3
  138. package/dist/styles/font.d.ts +0 -1
  139. package/dist/styles/hidden.d.ts +1 -2
  140. package/dist/styles/hoverable.d.ts +3 -3
  141. package/dist/styles/transition.d.ts +0 -1
  142. package/dist/styles/typography.d.ts +8 -8
  143. package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +7 -12
  144. package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +7 -12
  145. package/dist/testing/SelectEvent/SelectEvent.d.ts +11 -19
  146. package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +2 -2
  147. package/dist/testing/index.js +7 -9
  148. package/dist/testing/index.js.map +1 -1
  149. package/dist/tests/generator.d.ts +2 -2
  150. package/dist/tests/renderer.d.ts +6 -5
  151. package/dist/theming/index.d.ts +3 -3
  152. package/dist/theming/index.js +2 -2
  153. package/dist/theming/index.js.map +1 -1
  154. package/dist/theming/theming.helpers.d.ts +2 -2
  155. package/dist/toArray-BJJzFRD1.js +13 -0
  156. package/dist/toArray-BJJzFRD1.js.map +1 -0
  157. package/dist/tools/conditional.d.ts +3 -3
  158. package/dist/tools/index.js +1 -1
  159. package/dist/tools/prop.d.ts +1 -1
  160. package/dist/utils/toolset/getID.d.ts +0 -6
  161. package/dist/utils/toolset/highlightMatch.d.ts +5 -6
  162. package/dist/utils/toolset/keyboard.d.ts +3 -4
  163. package/dist/utils/toolset/toArray.d.ts +7 -1
  164. package/dist/utils/types/ColorScheme.d.ts +1 -2
  165. package/package.json +65 -66
  166. package/dist/components/Accordion/Accordion.stories.d.ts +0 -8
  167. package/dist/components/Accordion/Accordion.test.d.ts +0 -1
  168. package/dist/components/Banner/Banner.stories.d.ts +0 -107
  169. package/dist/components/Banner/Banner.test.d.ts +0 -1
  170. package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +0 -1
  171. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -5
  172. package/dist/components/Button/Button.stories.d.ts +0 -33
  173. package/dist/components/Button/Button.test.d.ts +0 -1
  174. package/dist/components/Calendar/Calendar.stories.d.ts +0 -21
  175. package/dist/components/Calendar/Calendar.test.d.ts +0 -1
  176. package/dist/components/Calendar/Date.helper.test.d.ts +0 -1
  177. package/dist/components/Calendar/DateFormat.helper.test.d.ts +0 -1
  178. package/dist/components/Calendar/Month.helper.test.d.ts +0 -1
  179. package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +0 -1
  180. package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +0 -1
  181. package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +0 -1
  182. package/dist/components/Card/Card.stories.d.ts +0 -8
  183. package/dist/components/Card/Card.test.d.ts +0 -1
  184. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -8
  185. package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
  186. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -22
  187. package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
  188. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +0 -21
  189. package/dist/components/DatePicker/DateRangePicker.test.d.ts +0 -1
  190. package/dist/components/Dialog/Dialog.stories.d.ts +0 -67
  191. package/dist/components/Dialog/Dialog.test.d.ts +0 -1
  192. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +0 -33
  193. package/dist/components/DragDropFile/components/DropZone.test.d.ts +0 -1
  194. package/dist/components/DragDropFile/components/FileList.test.d.ts +0 -1
  195. package/dist/components/Drawer/Drawer.stories.d.ts +0 -6
  196. package/dist/components/Drawer/Drawer.test.d.ts +0 -1
  197. package/dist/components/Dropdown/Dropdown.stories.d.ts +0 -12
  198. package/dist/components/Dropdown/Dropdown.test.d.ts +0 -1
  199. package/dist/components/Dropdown/useDropdown.test.d.ts +0 -1
  200. package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -32
  201. package/dist/components/EmptyState/EmptyState.test.d.ts +0 -1
  202. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +0 -13
  203. package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +0 -1
  204. package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +0 -5
  205. package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +0 -1
  206. package/dist/components/IconFactory/IconFactory.stories.d.ts +0 -6
  207. package/dist/components/IconFactory/IconFactory.test.d.ts +0 -1
  208. package/dist/components/Label/Label.stories.d.ts +0 -14
  209. package/dist/components/Label/Label.test.d.ts +0 -1
  210. package/dist/components/Layout/Layout.stories.d.ts +0 -146
  211. package/dist/components/Link/Link.stories.d.ts +0 -5
  212. package/dist/components/Link/Link.test.d.ts +0 -1
  213. package/dist/components/Loaders/LoadingBar.stories.d.ts +0 -5
  214. package/dist/components/Loaders/LoadingBar.test.d.ts +0 -1
  215. package/dist/components/Loaders/LoadingDots.stories.d.ts +0 -6
  216. package/dist/components/Loaders/LoadingDots.test.d.ts +0 -1
  217. package/dist/components/Loaders/Spinner.stories.d.ts +0 -5
  218. package/dist/components/Loaders/Spinner.test.d.ts +0 -1
  219. package/dist/components/Modal/Modal.stories.d.ts +0 -30
  220. package/dist/components/Modal/Modal.test.d.ts +0 -1
  221. package/dist/components/Pagination/Pagination.stories.d.ts +0 -5
  222. package/dist/components/Pagination/Pagination.test.d.ts +0 -1
  223. package/dist/components/Pagination/usePagination.test.d.ts +0 -1
  224. package/dist/components/Popover/Popover.stories.d.ts +0 -5
  225. package/dist/components/Popover/Popover.test.d.ts +0 -1
  226. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +0 -12
  227. package/dist/components/ProgressBar/ProgressBar.test.d.ts +0 -1
  228. package/dist/components/Radio/Radio.stories.d.ts +0 -8
  229. package/dist/components/Radio/Radio.test.d.ts +0 -1
  230. package/dist/components/Section/Section.test.d.ts +0 -1
  231. package/dist/components/Section/Sections.stories.d.ts +0 -5
  232. package/dist/components/Select/Select.stories.d.ts +0 -19
  233. package/dist/components/Select/Select.test.d.ts +0 -1
  234. package/dist/components/Select/SelectEmpty.test.d.ts +0 -1
  235. package/dist/components/Select/SelectOption.test.d.ts +0 -1
  236. package/dist/components/Select/useSelect.helpers.test.d.ts +0 -1
  237. package/dist/components/Select/useSelect.test.d.ts +0 -1
  238. package/dist/components/SideNavigation/Logo/Logo.test.d.ts +0 -1
  239. package/dist/components/SideNavigation/Menu/Menu.test.d.ts +0 -1
  240. package/dist/components/SideNavigation/Separator/Separator.test.d.ts +0 -1
  241. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +0 -5
  242. package/dist/components/SideNavigation/SideNavigation.test.d.ts +0 -1
  243. package/dist/components/Steps/Steps.stories.d.ts +0 -5
  244. package/dist/components/Steps/Steps.test.d.ts +0 -1
  245. package/dist/components/Steps/useStep.test.d.ts +0 -1
  246. package/dist/components/Switch/Switch.stories.d.ts +0 -5
  247. package/dist/components/Switch/Switch.test.d.ts +0 -1
  248. package/dist/components/Table/Table.stories.d.ts +0 -61
  249. package/dist/components/Table/Table.test.d.ts +0 -1
  250. package/dist/components/Table/useSortBy.test.d.ts +0 -1
  251. package/dist/components/TablePagination/TablePagination.stories.d.ts +0 -5
  252. package/dist/components/TablePagination/TablePagination.test.d.ts +0 -1
  253. package/dist/components/Tabs/Tabs.stories.d.ts +0 -23
  254. package/dist/components/Tabs/Tabs.test.d.ts +0 -1
  255. package/dist/components/Tag/Tag.stories.d.ts +0 -63
  256. package/dist/components/Tag/Tag.test.d.ts +0 -1
  257. package/dist/components/Text/Text.stories.d.ts +0 -7
  258. package/dist/components/Text/Text.test.d.ts +0 -1
  259. package/dist/components/TextField/TextField.stories.d.ts +0 -11
  260. package/dist/components/TextField/TextField.test.d.ts +0 -1
  261. package/dist/components/Textarea/Textarea.stories.d.ts +0 -11
  262. package/dist/components/Textarea/Textarea.test.d.ts +0 -1
  263. package/dist/components/Toast/Toast.stories.d.ts +0 -12
  264. package/dist/components/Toast/Toast.test.d.ts +0 -1
  265. package/dist/components/ToggleGroup/Toggle.test.d.ts +0 -1
  266. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -6
  267. package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +0 -1
  268. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
  269. package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
  270. package/dist/components/TopNavigation/Logo/Logo.test.d.ts +0 -1
  271. package/dist/components/TopNavigation/Menu/Menu.test.d.ts +0 -1
  272. package/dist/components/TopNavigation/TopNavigation.stories.d.ts +0 -5
  273. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -11
  274. package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +0 -1
  275. package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +0 -1
  276. package/dist/hooks/useDidMount/useDidMount.test.d.ts +0 -1
  277. package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +0 -1
  278. package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +0 -7
  279. package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +0 -1
  280. package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +0 -1
  281. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +0 -1
  282. package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +0 -1
  283. package/dist/hooks/useSelectable/useSelectable.test.d.ts +0 -1
  284. package/dist/miranda-compatibility.theme-kYNEZ7mW.js.map +0 -1
  285. package/dist/prop-K2Z3EsyG.js.map +0 -1
  286. package/dist/styles/font.test.d.ts +0 -1
  287. package/dist/styles/typography.test.d.ts +0 -1
  288. package/dist/testing/SelectEvent/SelectEvent.test.d.ts +0 -1
  289. package/dist/toArray-Dxb1kUxx.js +0 -14
  290. package/dist/toArray-Dxb1kUxx.js.map +0 -1
  291. package/dist/tools/conditional.test.d.ts +0 -1
  292. package/dist/tools/prop.test.d.ts +0 -1
  293. package/dist/utils/toolset/flatten.d.ts +0 -2
  294. package/dist/utils/toolset/formatBytes.test.d.ts +0 -1
  295. package/dist/utils/toolset/getID.test.d.ts +0 -1
  296. package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +0 -1
  297. package/dist/utils/toolset/highlightMatch.test.d.ts +0 -1
  298. package/dist/utils/toolset/interleave.test.d.ts +0 -1
  299. package/dist/utils/toolset/isThenable.d.ts +0 -5
  300. package/dist/utils/toolset/isThenable.test.d.ts +0 -1
@@ -29,20 +29,20 @@ export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, 'onChange'> & {
29
29
  siblingCount?: number;
30
30
  };
31
31
  export type usePaginationProps = Pick<PaginationProps, 'boundaryCount' | 'count' | 'disabled' | 'onChange' | 'page' | 'siblingCount'>;
32
- export type usePaginationReturn = {
32
+ export interface usePaginationReturn {
33
33
  'aria-current'?: boolean | undefined;
34
34
  disabled: boolean;
35
35
  itemType: string;
36
36
  onClick: () => void;
37
37
  page: number | null;
38
- };
38
+ }
39
39
  export type PaginationItemProps = ButtonProps & {
40
40
  itemType: string;
41
41
  page: number | null;
42
42
  };
43
- export type PaginationHelperArgs = {
43
+ export interface PaginationHelperArgs {
44
44
  boundaryCount: number;
45
45
  count: number;
46
46
  page: number;
47
47
  siblingCount: number;
48
- };
48
+ }
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { PaginationItemProps } from './Pagination.types';
2
- declare function PaginationItem(props: PaginationItemProps): JSX.Element;
3
+ declare function PaginationItem(props: PaginationItemProps): React.JSX.Element;
3
4
  export default PaginationItem;
@@ -1,10 +1,11 @@
1
+ import { default as React } from 'react';
1
2
  import { PopoverFloatingProps, PopoverProps, PopoverReferenceProps, UsePopoverReturn } from './Popover.types';
2
3
  export declare function usePopover(): UsePopoverReturn;
3
- declare function Popover(props: PopoverProps): JSX.Element;
4
+ declare function Popover(props: PopoverProps): React.JSX.Element;
4
5
  declare namespace Popover {
5
6
  var Floating: typeof PopoverFloating;
6
7
  var Reference: typeof PopoverReference;
7
8
  }
8
- declare function PopoverReference({ children, ...others }: PopoverReferenceProps): JSX.Element;
9
- declare function PopoverFloating({ children, style, ...others }: PopoverFloatingProps): JSX.Element;
9
+ declare function PopoverReference({ children, ...others }: PopoverReferenceProps): React.JSX.Element;
10
+ declare function PopoverFloating({ children, style, ...others }: PopoverFloatingProps): React.JSX.Element;
10
11
  export default Popover;
@@ -1,9 +1,9 @@
1
- import { BaseHTMLAttributes } from 'react';
1
+ import { BaseHTMLAttributes, default as React } from 'react';
2
2
  export interface ProgressBarProps extends BaseHTMLAttributes<HTMLDivElement> {
3
- value?: number;
4
- status?: string;
5
- rounded?: boolean;
6
- showLine?: boolean;
3
+ readonly value?: number;
4
+ readonly status?: string;
5
+ readonly rounded?: boolean;
6
+ readonly showLine?: boolean;
7
7
  }
8
- export declare function ProgressBar({ value, status, rounded, showLine, ...extra }: ProgressBarProps): JSX.Element;
8
+ export declare function ProgressBar({ value, status, rounded, showLine, ...extra }: ProgressBarProps): React.JSX.Element;
9
9
  export default ProgressBar;
@@ -1,10 +1,10 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
- import { default as ColorScheme } from '../../utils/types/ColorScheme';
1
+ import { InputHTMLAttributes, ReactNode, default as React } from 'react';
2
+ import { ColorScheme } from '../../utils/types/ColorScheme';
3
3
  import { SelectionStyleProps } from '../../common/SelectionWrapper';
4
- export interface RadioProps extends InputHTMLAttributes<HTMLInputElement>, SelectionStyleProps {
5
- leading?: ReactNode;
6
- scheme?: ColorScheme;
7
- trailing?: ReactNode;
4
+ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled'>, SelectionStyleProps {
5
+ readonly leading?: ReactNode;
6
+ readonly scheme?: ColorScheme;
7
+ readonly trailing?: ReactNode;
8
8
  }
9
- declare function Radio({ className, disabled, children, leading, trailing, scheme, ...others }: RadioProps): JSX.Element;
9
+ declare function Radio({ className, disabled, children, leading, trailing, scheme, ...others }: RadioProps): React.JSX.Element;
10
10
  export default Radio;
@@ -1,11 +1,11 @@
1
- import { default as React, HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode, default as React } from 'react';
2
2
  export type SectionProps = HTMLAttributes<HTMLElement>;
3
3
  export interface SectionTitleProps extends HTMLAttributes<HTMLElement> {
4
- children: ReactNode;
5
- leading?: ReactNode;
4
+ readonly children: ReactNode;
5
+ readonly leading?: ReactNode;
6
6
  }
7
7
  declare function SectionTitle({ children, leading, ...others }: SectionTitleProps): React.JSX.Element;
8
- declare function Section({ children, ...others }: SectionProps): JSX.Element;
8
+ declare function Section({ children, ...others }: SectionProps): React.JSX.Element;
9
9
  declare namespace Section {
10
10
  var Title: typeof SectionTitle;
11
11
  }
@@ -1,5 +1,6 @@
1
1
  import { useSelectReturn } from './Select.types';
2
- declare const SelectableContext: import('react').Context<import('../../hooks/useSelectable/useSelectable.types').useSelectableReturn<import('../../hooks/useSelectable').Selectable>>, useSelectable: (props: import('../../hooks/useSelectable/useSelectable.types').useSelectableProps<import('../../hooks/useSelectable').Selectable>) => import('../../hooks/useSelectable/useSelectable.types').useSelectableReturn<import('../../hooks/useSelectable').Selectable>;
2
+ import { Context } from 'react';
3
+ declare const SelectableContext: any, useSelectable: any;
3
4
  export { SelectableContext, useSelectable };
4
- declare const SelectContext: import('react').Context<useSelectReturn | null>;
5
+ declare const SelectContext: Context<useSelectReturn | null>;
5
6
  export { SelectContext };
@@ -3,9 +3,9 @@ import { default as SelectOption } from './SelectOption';
3
3
  import { default as SelectEmpty } from './SelectEmpty';
4
4
  import { default as SelectCreatableOption } from './SelectCreatableOption';
5
5
  import { SelectProps } from './Select.types';
6
- declare function Select(props: SelectProps): JSX.Element;
6
+ declare function Select(props: SelectProps): React.JSX.Element;
7
7
  declare namespace Select {
8
- var Trigger: React.ForwardRefExoticComponent<import("../TextField").TextFieldProps & React.RefAttributes<HTMLInputElement>>;
8
+ var Trigger: React.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
9
9
  var Option: typeof SelectOption;
10
10
  var Empty: typeof SelectEmpty;
11
11
  var CreatableOption: typeof SelectCreatableOption;
@@ -1,14 +1,14 @@
1
1
  import { SelectableKeyType } from '../../hooks/useSelectable';
2
2
  import { SelectDatasource } from './Select.types';
3
- export type Fruit = {
3
+ export interface Fruit {
4
4
  label: string;
5
5
  value: string;
6
6
  family: string;
7
- };
8
- export type User = {
7
+ }
8
+ export interface User {
9
9
  uuid: string;
10
10
  name: string;
11
- };
11
+ }
12
12
  export type Customer = User;
13
13
  export declare const SelectableKeyTypeOptions: {
14
14
  label: string;
@@ -3,7 +3,7 @@ import { DropdownMenuItemProps, DropdownProps } from '../Dropdown';
3
3
  import { TextFieldProps } from '../TextField';
4
4
  import { Selectable, SelectableAdapter, SelectableKeyType, SelectableState } from '../../hooks/useSelectable';
5
5
  import { useSelectableReturn } from '../../hooks/useSelectable/useSelectable.types';
6
- import { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes } from 'react';
6
+ import { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes, ReactNode } from 'react';
7
7
  export type Option = Selectable;
8
8
  export interface GenericOption {
9
9
  label: string;
@@ -29,27 +29,27 @@ export interface SelectAdapter<T> extends SelectableAdapter<T> {
29
29
  getLabel: (o: T) => string;
30
30
  }
31
31
  export type Adapters = Record<string, SelectAdapter<any>>;
32
- export type SelectDatasource<T> = {
32
+ export interface SelectDatasource<T> {
33
33
  type: string;
34
34
  adapter: SelectAdapter<T>;
35
35
  fetch: ({ query, regex }: {
36
36
  query: string;
37
37
  regex: RegExp;
38
38
  }) => T[] | Promise<T[]>;
39
- };
39
+ }
40
40
  export type SelectDatasourceFunction<T> = () => SelectDatasource<T>;
41
- export type SelectComponentsOptionProps = {
41
+ export interface SelectComponentsOptionProps {
42
42
  value: SelectOptionProps['value'];
43
- };
44
- export type SelectComponentsEmptyProps = {
43
+ }
44
+ export interface SelectComponentsEmptyProps {
45
45
  children: SelectEmptyProps['children'];
46
- };
47
- export type CreatableOptionType = () => React.ReactElement<any, any> | null;
48
- export type Components = {
46
+ }
47
+ export type CreatableOptionType = () => ReactNode | null;
48
+ export interface Components {
49
49
  Option?: ComponentType<SelectComponentsOptionProps>;
50
50
  Empty?: ComponentType<SelectComponentsEmptyProps>;
51
51
  CreatableOption?: CreatableOptionType;
52
- };
52
+ }
53
53
  export type CreateOptionPosition = 'first' | 'last';
54
54
  export type OnChange = (event: EventLike<Option | Option[] | null>) => void;
55
55
  export type OnCreate = (query: string) => Promise<void | Option> | void | Option;
@@ -81,7 +81,7 @@ export type SelectEmptyProps = HTMLAttributes<HTMLDivElement>;
81
81
  export type SelectCreatableOptionProps = Omit<DropdownMenuItemProps, keyof CreatableProps>;
82
82
  export type SelectStatus = 'idle' | 'querying' | 'pending-query' | 'queried';
83
83
  export type SelectTriggerProps = TextFieldProps;
84
- export type useSelectReturn = {
84
+ export interface useSelectReturn {
85
85
  status: SelectStatus;
86
86
  options: Option[];
87
87
  value: Selectable | Selectable[] | null;
@@ -114,9 +114,9 @@ export type useSelectReturn = {
114
114
  getCreatebleProps: () => CreatableProps;
115
115
  isCreatable: () => boolean;
116
116
  createOptionPosition?: CreateOptionPosition;
117
- };
118
- export type useSelectExternalReturn = {
117
+ }
118
+ export interface useSelectExternalReturn {
119
119
  getOption: useSelectReturn['getOption'];
120
120
  query: useSelectReturn['query'];
121
121
  isChecked: (option: Option) => boolean;
122
- };
122
+ }
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SelectCreatableOptionProps } from './Select.types';
2
- declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): JSX.Element;
3
+ declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): React.JSX.Element;
3
4
  export default SelectCreatableOption;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SelectEmptyProps } from './Select.types';
2
- declare function SelectEmpty({ children, ...others }: SelectEmptyProps): JSX.Element;
3
+ declare function SelectEmpty({ children, ...others }: SelectEmptyProps): React.JSX.Element;
3
4
  export default SelectEmpty;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SelectOptionProps } from './Select.types';
2
- declare function SelectOption({ children, value, leading, trailing, ...rest }: SelectOptionProps): JSX.Element;
3
+ declare function SelectOption({ children, value, leading, trailing, ...rest }: SelectOptionProps): React.JSX.Element;
3
4
  export default SelectOption;
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
- declare const SelectTrigger: React.ForwardRefExoticComponent<import('../TextField').TextFieldProps & React.RefAttributes<HTMLInputElement>>;
2
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
3
  export default SelectTrigger;
@@ -1,8 +1,6 @@
1
1
  import { SelectProps, useSelectReturn } from './Select.types';
2
2
  /**
3
3
  * Based on https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html
4
- * @param props
5
- * @returns
6
4
  */
7
5
  declare function useSelect(props: SelectProps): useSelectReturn;
8
6
  export default useSelect;
@@ -1,8 +1,9 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
+ import { StyledComponent } from 'styled-components';
2
3
  export type LogoProps = PropsWithChildren<{
3
- url: string;
4
- className?: string;
4
+ readonly url: string;
5
+ readonly className?: string;
5
6
  }>;
6
- declare function Logo({ className, url, children }: LogoProps): JSX.Element;
7
- declare const _default: import('styled-components').StyledComponent<typeof Logo, any, LogoProps, never>;
7
+ declare function Logo({ className, url, children }: LogoProps): React.JSX.Element;
8
+ declare const _default: StyledComponent<typeof Logo, any, LogoProps, never>;
8
9
  export default _default;
@@ -1,16 +1,6 @@
1
- import { default as React, PropsWithChildren } from 'react';
2
- import { MenuExpandableProps } from './MenuExpandable';
3
- import { MenuLinkProps } from './MenuLink';
1
+ import { default as React } from 'react';
4
2
  export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
5
- label?: string;
3
+ readonly label?: string;
6
4
  }
7
- declare function Menu({ label, children, ...props }: MenuProps): JSX.Element;
8
- type MenuItemProps = {
9
- active?: boolean;
10
- } & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
11
- declare function MenuItem(props: MenuItemProps): React.JSX.Element;
12
- declare const _default: string & import('styled-components').StyledComponentBase<typeof Menu, any, {}, never> & import('hoist-non-react-statics').NonReactStatics<typeof Menu, {}> & {
13
- Item: typeof MenuItem;
14
- SubItem: import('styled-components').StyledComponent<({ url, ...props }: MenuLinkProps) => JSX.Element, any, {}, never>;
15
- };
5
+ declare const _default: any;
16
6
  export default _default;
@@ -1,11 +1,11 @@
1
- import { ReactNode, HTMLAttributes } from 'react';
1
+ import { default as React, ReactNode, HTMLAttributes } from 'react';
2
2
  import { MenuLinkProps } from './MenuLink';
3
3
  export type MenuBaseItemProps = HTMLAttributes<HTMLElement> & {
4
- label: string;
5
- leading?: ReactNode;
6
- trailing?: ReactNode;
7
- url?: string;
8
- subItems?: MenuLinkProps[];
4
+ readonly label: string;
5
+ readonly leading?: ReactNode;
6
+ readonly trailing?: ReactNode;
7
+ readonly url?: string;
8
+ readonly subItems?: MenuLinkProps[];
9
9
  };
10
- declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): JSX.Element;
10
+ declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): React.JSX.Element;
11
11
  export default MenuBaseItem;
@@ -1,6 +1,6 @@
1
- import { PropsWithChildren, HTMLAttributes } from 'react';
1
+ import { default as React, PropsWithChildren, HTMLAttributes } from 'react';
2
2
  export type MenuExpandableProps = HTMLAttributes<HTMLDivElement> & PropsWithChildren<{
3
- label: string;
3
+ readonly label: string;
4
4
  }>;
5
- declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): JSX.Element;
5
+ declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): React.JSX.Element;
6
6
  export default MenuExpandable;
@@ -1,10 +1,11 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { StyledComponent } from 'styled-components';
2
3
  export type MenuLinkProps = React.HTMLAttributes<HTMLAnchorElement> & {
3
- label: string;
4
- leading?: ReactNode;
5
- trailing?: ReactNode;
6
- url?: string;
4
+ readonly label: string;
5
+ readonly leading?: ReactNode;
6
+ readonly trailing?: ReactNode;
7
+ readonly url?: string;
7
8
  };
8
- declare function MenuLink({ url, ...props }: MenuLinkProps): JSX.Element;
9
- declare const _default: import('styled-components').StyledComponent<typeof MenuLink, any, {}, never>;
9
+ declare function MenuLink({ url, ...props }: MenuLinkProps): React.JSX.Element;
10
+ declare const _default: StyledComponent<typeof MenuLink, any, {}, never>;
10
11
  export default _default;
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
  export interface SeparatorProps {
2
- className?: string;
3
+ readonly className?: string;
3
4
  }
4
- declare function Separator(props: SeparatorProps): JSX.Element;
5
+ declare function Separator(props: SeparatorProps): React.JSX.Element;
5
6
  export default Separator;
@@ -1,28 +1,13 @@
1
- import { CloseButtonProps } from '../../common/CloseButton';
2
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode, default as React } from 'react';
3
2
  export interface SideNavigationProps {
4
- className?: string;
5
- children: ReactNode;
3
+ readonly className?: string;
4
+ readonly children: ReactNode;
6
5
  }
7
- declare function SideNavigation({ className, children }: SideNavigationProps): JSX.Element;
6
+ declare function SideNavigation({ className, children }: SideNavigationProps): React.JSX.Element;
8
7
  declare namespace SideNavigation {
9
- var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
10
- var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, {}> & {
11
- Item: (props: {
12
- active?: boolean;
13
- } & React.HTMLAttributes<HTMLAnchorElement> & {
14
- label: string;
15
- leading?: ReactNode;
16
- trailing?: ReactNode;
17
- url?: string;
18
- } & React.HTMLAttributes<HTMLDivElement> & {
19
- label: string;
20
- } & {
21
- children?: ReactNode | undefined;
22
- }) => React.JSX.Element;
23
- SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
24
- };
8
+ var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => React.JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
9
+ var Menu: any;
25
10
  var Separator: typeof import("./Separator").Separator;
26
- var CloseButton: import("styled-components").StyledComponent<typeof import("common/CloseButton").default, any, CloseButtonProps, never>;
11
+ var CloseButton: import("styled-components").StyledComponent<any, any, any, any>;
27
12
  }
28
13
  export default SideNavigation;
@@ -1,12 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, default as React } from 'react';
2
2
  import { Step } from '../Steps.types';
3
3
  export interface StepsProgressProps {
4
4
  steps: Array<Step>;
5
5
  current: number | string;
6
6
  }
7
7
  declare function ProgressStep(props: {
8
- step: Step;
9
- current: boolean;
10
- indicator: ReactNode;
11
- }): JSX.Element;
8
+ readonly step: Step;
9
+ readonly current: boolean;
10
+ readonly indicator: ReactNode;
11
+ }): React.JSX.Element;
12
12
  export default ProgressStep;
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { Step } from '../Steps.types';
2
3
  export interface StepsProgressProps {
3
- steps: Array<Step>;
4
- current: number | string;
4
+ readonly steps: Array<Step>;
5
+ readonly current: number | string;
5
6
  }
6
- declare function StepsProgress(props: StepsProgressProps): JSX.Element;
7
+ declare function StepsProgress(props: StepsProgressProps): React.JSX.Element;
7
8
  export default StepsProgress;
@@ -1,15 +1,15 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { default as StepsStep } from './StepsStep';
3
- import { default as ColorScheme } from '../../utils/types/ColorScheme';
3
+ import { ColorScheme } from '../../utils/types/ColorScheme';
4
4
  import { Step } from './Steps.types';
5
5
  export interface StepsProps {
6
- current: number | string;
7
- id: number | string;
8
- steps: Array<Step>;
9
- className?: string;
10
- scheme?: ColorScheme;
6
+ readonly current: number | string;
7
+ readonly id: number | string;
8
+ readonly steps: Array<Step>;
9
+ readonly className?: string;
10
+ readonly scheme?: ColorScheme;
11
11
  }
12
- declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): JSX.Element;
12
+ declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): React.JSX.Element;
13
13
  declare namespace Steps {
14
14
  var Step: typeof StepsStep;
15
15
  }
@@ -1,5 +1,5 @@
1
- export type Step = {
1
+ export interface Step {
2
2
  id: number | string;
3
3
  label: string;
4
4
  complete: boolean;
5
- };
5
+ }
@@ -1,8 +1,9 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
+ import { StyledComponent } from 'styled-components';
2
3
  export interface StepsStepProps {
3
- id: number | string;
4
- className?: string;
4
+ readonly id: number | string;
5
+ readonly className?: string;
5
6
  }
6
- export declare const StepWrapper: import('styled-components').StyledComponent<"article", any, import('../../theming').ThemedProps, never>;
7
- declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): JSX.Element;
7
+ export declare const StepWrapper: StyledComponent<"article", any, {}, never>;
8
+ declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): React.JSX.Element;
8
9
  export default StepsStep;
@@ -4,10 +4,10 @@ export interface useStepsProps {
4
4
  steps: Array<Step>;
5
5
  current?: number | string;
6
6
  }
7
- type State = {
7
+ interface State {
8
8
  current: number | string;
9
9
  steps: Array<Step>;
10
- };
10
+ }
11
11
  type Action = {
12
12
  type: 'navigate';
13
13
  payload: {
@@ -1,11 +1,11 @@
1
- import { ChangeEvent, InputHTMLAttributes } from 'react';
1
+ import { ChangeEvent, InputHTMLAttributes, default as React } from 'react';
2
2
  interface WithAdditionalProps {
3
- active?: boolean;
4
- onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
5
- scale?: 'default' | 'large';
3
+ readonly active?: boolean;
4
+ readonly onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
5
+ readonly scale?: 'default' | 'large';
6
6
  }
7
7
  export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
8
- className?: string;
8
+ readonly className?: string;
9
9
  }
10
- declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): JSX.Element;
10
+ declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): React.JSX.Element;
11
11
  export default Switch;
@@ -18,17 +18,17 @@ export interface TableSelectionCore<T extends Selectable = TableSelectableRow> {
18
18
  register: (key?: T) => void;
19
19
  }
20
20
  export declare function useTableSelectionCore<T extends Selectable>(config?: TableSelectionConfig<T>): TableSelectionCore<T>;
21
- export declare const TableSelectionContext: React.Context<TableSelectionCore<TableSelectableRow>>;
21
+ export declare const TableSelectionContext: React.Context<TableSelectionCore<any>>;
22
22
  type TableSelectionProviderProps = PropsWithChildren<{
23
- selection?: TableSelectionConfig;
23
+ readonly selection?: TableSelectionConfig;
24
24
  }>;
25
- export declare function TableSelectionProvider({ children, selection, }: TableSelectionProviderProps): JSX.Element;
25
+ export declare function TableSelectionProvider({ children, selection }: TableSelectionProviderProps): React.JSX.Element;
26
26
  export declare function useTableSelection<T extends Selectable = TableSelectableRow>(): TableSelectionCore<T>;
27
- type TableSelectionHook<T extends Selectable = TableSelectableRow> = {
27
+ interface TableSelectionHook<T extends Selectable = TableSelectableRow> {
28
28
  values: T[];
29
29
  clear: TableSelectionCore<T>['clear'];
30
- };
30
+ }
31
31
  export declare function useSelection<T extends Selectable = TableSelectableRow>(): TableSelectionHook<T>;
32
32
  export declare function isCellSelected<T extends Selectable>(value: T, selectedRows: SelectableState<T>, config: TableSelectionSelectable<T>): boolean;
33
- export declare function useIsCellSelected<T extends Selectable = TableSelectableRow>(value?: T): boolean;
33
+ export declare function useIsCellSelected(value?: Selectable): boolean;
34
34
  export {};
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { useSelection, TableSelectableRow } from './Selection';
2
3
  import { default as TableSortHandle } from './TableSortHandle';
3
4
  import { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
4
- declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
5
+ declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): React.JSX.Element;
5
6
  declare namespace Table {
6
7
  var Head: typeof TableHead;
7
8
  var Body: typeof TableBody;
@@ -19,18 +20,18 @@ declare namespace Table {
19
20
  var SortHandle: typeof TableSortHandle;
20
21
  var Picker: typeof TablePicker;
21
22
  }
22
- declare function TableCaption({ children, position, height }: TableCaptionProps): JSX.Element;
23
- declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
24
- declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
25
- declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
26
- declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
27
- declare function SelectionHeadCell<T extends TableSelectableRow>(props: SelectionCellProps<T>): JSX.Element;
28
- declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
29
- declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
30
- declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
31
- declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): JSX.Element;
32
- declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): JSX.Element;
33
- declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): JSX.Element;
23
+ declare function TableCaption({ children, position, height }: TableCaptionProps): React.JSX.Element;
24
+ declare function TableHead({ children, ...others }: TableSectionProps): React.JSX.Element;
25
+ declare function TableBody({ children, ...others }: TableSectionProps): React.JSX.Element;
26
+ declare function TableCell({ children, alignment, format, ...others }: TableCellProps): React.JSX.Element;
27
+ declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): React.JSX.Element;
28
+ declare function SelectionHeadCell<T extends TableSelectableRow>({ children, ...props }: SelectionCellProps<T>): React.JSX.Element;
29
+ declare function TableRow({ children, ...others }: TableRowProps): React.JSX.Element;
30
+ declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): React.JSX.Element;
31
+ declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): React.JSX.Element;
32
+ declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): React.JSX.Element;
33
+ declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): React.JSX.Element;
34
+ declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): React.JSX.Element;
34
35
  declare namespace TablePicker {
35
36
  var Item: typeof TablePickerItem;
36
37
  }
@@ -1,5 +1,5 @@
1
1
  import { Selectable } from '../../hooks/useSelectable';
2
- import { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode, ReactElement } from 'react';
2
+ import { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
3
  import { DropdownMenuItemProps, DropdownMenuProps } from '../Dropdown';
4
4
  import { DropdownTriggerButtonProps } from '../Dropdown/DropdownTrigger';
5
5
  import { TableSelectableRow, TableSelectionConfig } from './Selection';
@@ -22,7 +22,7 @@ export interface SelectionCellProps<T extends TableSelectableRow = TableSelectab
22
22
  children?: (props: {
23
23
  selected: boolean;
24
24
  toggle: () => void;
25
- }) => ReactElement;
25
+ }) => ReactNode;
26
26
  }
27
27
  export interface TableSectionProps extends HTMLAttributes<HTMLTableSectionElement> {
28
28
  scale?: Scale;
@@ -42,11 +42,11 @@ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
42
42
  scale?: Scale;
43
43
  selected?: boolean;
44
44
  }
45
- export type TableColumn<T = Record<string, unknown>> = {
45
+ export interface TableColumn<T = Record<string, unknown>> {
46
46
  /**
47
47
  * The accessor of you entry interface
48
48
  */
49
- key: keyof T;
49
+ key: Exclude<keyof T, symbol>;
50
50
  /**
51
51
  * The label that should go in the Header cell
52
52
  */
@@ -56,7 +56,7 @@ export type TableColumn<T = Record<string, unknown>> = {
56
56
  * If omitted, `title` is used
57
57
  */
58
58
  option?: string;
59
- };
59
+ }
60
60
  export type TableColumns<T> = Array<TableColumn<T>>;
61
61
  export interface TablePickerItemProps<T> extends DropdownMenuItemProps {
62
62
  option?: TableColumn<T>;
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { SortDirection } from './useSortBy.types';
2
3
  import { BoxProps } from '../Layout/Box';
3
4
  interface TableSortHandleProps extends BoxProps {
4
- order?: SortDirection | null;
5
+ readonly order?: SortDirection | null;
5
6
  }
6
- declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): JSX.Element | null;
7
+ declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): React.JSX.Element;
7
8
  export default TableSortHandle;