@spaced-out/ui-design-system 0.5.6 → 0.5.7-beta.1

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 (489) hide show
  1. package/.cspell/custom-words.txt +3 -0
  2. package/.github/CODEOWNERS +0 -5
  3. package/.github/workflows/pull_request_checks.yml +4 -4
  4. package/.storybook/public/component-parent-levels.json +95 -0
  5. package/.type-coverage +13 -0
  6. package/CHANGELOG.md +53 -0
  7. package/cspell.json +0 -1
  8. package/design-tokens/size/base-size.json +3 -0
  9. package/eslint.config.mjs +62 -29
  10. package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts.map +1 -1
  11. package/lib/components/Accordion/Accordion.d.ts +2 -2
  12. package/lib/components/Accordion/Accordion.d.ts.map +1 -1
  13. package/lib/components/Accordion/AccordionGroup.d.ts +2 -2
  14. package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
  15. package/lib/components/Accordion/AccordionGroup.stories.d.ts.map +1 -1
  16. package/lib/components/Avatar/Avatar.d.ts +5 -5
  17. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  18. package/lib/components/Avatar/Avatar.js +4 -13
  19. package/lib/components/AvatarGroup/AvatarGroup.d.ts +2 -2
  20. package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  21. package/lib/components/AvatarGroup/AvatarGroup.js +27 -14
  22. package/lib/components/Badge/Badge.d.ts +7 -8
  23. package/lib/components/Badge/Badge.d.ts.map +1 -1
  24. package/lib/components/Badge/Badge.stories.d.ts.map +1 -1
  25. package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -2
  26. package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
  27. package/lib/components/BadgedIcon/BadgedIcon.js +1 -4
  28. package/lib/components/Banner/Banner.d.ts +2 -3
  29. package/lib/components/Banner/Banner.d.ts.map +1 -1
  30. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +2 -3
  31. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
  32. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +2 -4
  33. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  34. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  35. package/lib/components/Breadcrumbs/Breadcrumbs.js +5 -6
  36. package/lib/components/Button/Button.d.ts +7 -8
  37. package/lib/components/Button/Button.d.ts.map +1 -1
  38. package/lib/components/Button/Button.js +7 -21
  39. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +3 -4
  40. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
  41. package/lib/components/ButtonDropdown/ButtonDropdown.js +4 -14
  42. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +70 -70
  43. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts.map +1 -1
  44. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +5 -6
  45. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
  46. package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +1 -9
  47. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts +109 -109
  48. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts.map +1 -1
  49. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +2 -2
  50. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -1
  51. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +2 -3
  52. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
  53. package/lib/components/ButtonTabs/ButtonTabDropdown.js +5 -14
  54. package/lib/components/ButtonTabs/ButtonTabs.d.ts +2 -2
  55. package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -1
  56. package/lib/components/ButtonTabs/ButtonTabs.js +2 -3
  57. package/lib/components/Card/Card.d.ts +9 -7
  58. package/lib/components/Card/Card.d.ts.map +1 -1
  59. package/lib/components/Card/Card.js +2 -7
  60. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +9 -4
  61. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -1
  62. package/lib/components/Charts/ChartWrapper/ChartWrapper.js +6 -8
  63. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +8 -5
  64. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
  65. package/lib/components/Charts/ColumnChart/ColumnChart.js +16 -10
  66. package/lib/components/Charts/DonutChart/DonutChart.d.ts +4 -5
  67. package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  68. package/lib/components/Charts/DonutChart/DonutChart.js +1 -2
  69. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +4 -5
  70. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
  71. package/lib/components/Charts/LineChart/LineChart.d.ts +4 -5
  72. package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  73. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +21 -0
  74. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -0
  75. package/lib/components/Charts/SankeyChart/SankeyChart.js +104 -0
  76. package/lib/components/Charts/SankeyChart/SankeyChart.module.css +22 -0
  77. package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts +267 -0
  78. package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts.map +1 -0
  79. package/lib/components/Charts/SankeyChart/index.d.ts +2 -0
  80. package/lib/components/Charts/SankeyChart/index.d.ts.map +1 -0
  81. package/lib/components/Charts/SankeyChart/index.js +16 -0
  82. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +4 -5
  83. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
  84. package/lib/components/Charts/SpiderChart/SpiderChart.module.css +7 -2
  85. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +24 -0
  86. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -0
  87. package/lib/components/Charts/StackedBarChart/StackedBarChart.js +78 -0
  88. package/lib/components/Charts/StackedBarChart/StackedBarChart.module.css +22 -0
  89. package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts +192 -0
  90. package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts.map +1 -0
  91. package/lib/components/Charts/StackedBarChart/index.d.ts +2 -0
  92. package/lib/components/Charts/StackedBarChart/index.d.ts.map +1 -0
  93. package/lib/components/Charts/StackedBarChart/index.js +16 -0
  94. package/lib/components/Charts/index.d.ts +2 -0
  95. package/lib/components/Charts/index.d.ts.map +1 -1
  96. package/lib/components/Charts/index.js +22 -0
  97. package/lib/components/ChatBubble/ChatBubble.d.ts +14 -14
  98. package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
  99. package/lib/components/ChatBubble/ChatBubble.js +11 -4
  100. package/lib/components/Checkbox/Checkbox.d.ts +2 -3
  101. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  102. package/lib/components/Checkbox/Checkbox.js +1 -2
  103. package/lib/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  104. package/lib/components/Checkbox/CheckboxGroup.d.ts +2 -2
  105. package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  106. package/lib/components/Checkbox/CheckboxGroup.js +8 -12
  107. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts +2 -3
  108. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts.map +1 -1
  109. package/lib/components/Chip/Chip.d.ts +10 -11
  110. package/lib/components/Chip/Chip.d.ts.map +1 -1
  111. package/lib/components/Chip/Chip.js +7 -13
  112. package/lib/components/CircularLoader/CircularLoader.d.ts +2 -2
  113. package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
  114. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  115. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
  116. package/lib/components/Combobox/Combobox.d.ts +16 -16
  117. package/lib/components/Combobox/Combobox.d.ts.map +1 -1
  118. package/lib/components/Combobox/Combobox.js +16 -19
  119. package/lib/components/Combobox/Combobox.stories.d.ts.map +1 -1
  120. package/lib/components/Combobox/helper.d.ts.map +1 -1
  121. package/lib/components/Combobox/helper.js +0 -1
  122. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +2 -2
  123. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -1
  124. package/lib/components/DateRangePicker/Calendar.d.ts +3 -3
  125. package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -1
  126. package/lib/components/DateRangePicker/Calendar.js +2 -6
  127. package/lib/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  128. package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  129. package/lib/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
  130. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +2 -2
  131. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
  132. package/lib/components/DateRangePicker/DateRangeWrapper.js +6 -14
  133. package/lib/components/DateRangePicker/Day.d.ts +2 -2
  134. package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
  135. package/lib/components/Dialog/Dialog.d.ts +10 -11
  136. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  137. package/lib/components/Disclaimer/Disclaimer.d.ts.map +1 -1
  138. package/lib/components/Disclaimer/Disclaimer.js +0 -1
  139. package/lib/components/Dropdown/Dropdown.d.ts +3 -4
  140. package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
  141. package/lib/components/Dropdown/Dropdown.js +17 -18
  142. package/lib/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
  143. package/lib/components/Dropdown/SimpleDropdown.d.ts +5 -6
  144. package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
  145. package/lib/components/Dropdown/SimpleDropdown.js +1 -7
  146. package/lib/components/Dropdown/SimpleDropdown.stories.d.ts.map +1 -1
  147. package/lib/components/EmptyState/EmptyState.d.ts +2 -2
  148. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  149. package/lib/components/ErrorMessage/ErrorMessage.d.ts +2 -2
  150. package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
  151. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +2 -2
  152. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
  153. package/lib/components/FileUpload/FileUpload.d.ts +14 -13
  154. package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
  155. package/lib/components/FileUpload/FileUpload.js +2 -7
  156. package/lib/components/FileUpload/FileUpload.stories.d.ts +2 -1
  157. package/lib/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
  158. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +3 -4
  159. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
  160. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +1 -9
  161. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.d.ts.map +1 -1
  162. package/lib/components/FocusManager/FocusManager.d.ts +2 -2
  163. package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
  164. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +4 -5
  165. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
  166. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +21 -17
  167. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts.map +1 -1
  168. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +2 -2
  169. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
  170. package/lib/components/Grid/Col.stories.d.ts +1 -1
  171. package/lib/components/Grid/Grid.d.ts +7 -7
  172. package/lib/components/Grid/Grid.d.ts.map +1 -1
  173. package/lib/components/Grid/Grid.js +6 -13
  174. package/lib/components/Grid/GridPatterns.stories.d.ts +1 -1
  175. package/lib/components/Grid/GridPatterns.stories.d.ts.map +1 -1
  176. package/lib/components/Grid/Row.stories.d.ts +1 -1
  177. package/lib/components/Icon/ClickableIcon.d.ts +6 -6
  178. package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
  179. package/lib/components/Icon/ClickableIcon.js +1 -1
  180. package/lib/components/Icon/Icon.d.ts +3 -3
  181. package/lib/components/Icon/Icon.d.ts.map +1 -1
  182. package/lib/components/Icon/Icon.js +1 -3
  183. package/lib/components/Icon/Icon.stories.d.ts +2 -2
  184. package/lib/components/Icon/Icon.stories.d.ts.map +1 -1
  185. package/lib/components/Icon/SemanticIcon.d.ts +2 -3
  186. package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
  187. package/lib/components/InContextAlert/InContextAlert.d.ts +4 -5
  188. package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
  189. package/lib/components/InContextAlert/InContextAlert.js +8 -6
  190. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +3 -4
  191. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
  192. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +7 -6
  193. package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -1
  194. package/lib/components/InfinitePagination/InfinitePagination.js +10 -11
  195. package/lib/components/InfinitePagination/InfinitePagination.stories.d.ts.map +1 -1
  196. package/lib/components/InlineDropdown/InlineDropdown.d.ts +3 -4
  197. package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
  198. package/lib/components/InlineDropdown/InlineDropdown.js +9 -14
  199. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts +45 -45
  200. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts.map +1 -1
  201. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +5 -6
  202. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
  203. package/lib/components/InlineDropdown/SimpleInlineDropdown.js +2 -11
  204. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts +83 -83
  205. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts.map +1 -1
  206. package/lib/components/Input/Input.d.ts +17 -16
  207. package/lib/components/Input/Input.d.ts.map +1 -1
  208. package/lib/components/Input/Input.js +7 -20
  209. package/lib/components/KPIBox/KPIBox.d.ts +2 -2
  210. package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
  211. package/lib/components/LinearLoader/LinearLoader.d.ts +2 -2
  212. package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
  213. package/lib/components/LinearLoader/LinearLoader.js +2 -2
  214. package/lib/components/Link/Link.d.ts +5 -6
  215. package/lib/components/Link/Link.d.ts.map +1 -1
  216. package/lib/components/Link/Link.js +4 -13
  217. package/lib/components/Menu/Menu.d.ts +12 -12
  218. package/lib/components/Menu/Menu.d.ts.map +1 -1
  219. package/lib/components/Menu/Menu.js +3 -5
  220. package/lib/components/Menu/Menu.stories.d.ts.map +1 -1
  221. package/lib/components/Menu/MenuOptionButton.d.ts +2 -3
  222. package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
  223. package/lib/components/Menu/MenuOptionButton.js +0 -1
  224. package/lib/components/Modal/Modal.d.ts +12 -30
  225. package/lib/components/Modal/Modal.d.ts.map +1 -1
  226. package/lib/components/Modal/Modal.js +5 -8
  227. package/lib/components/Notification/Notification.d.ts +6 -7
  228. package/lib/components/Notification/Notification.d.ts.map +1 -1
  229. package/lib/components/Notification/Notification.js +7 -4
  230. package/lib/components/OptionButton/OptionButton.d.ts +6 -7
  231. package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
  232. package/lib/components/OptionButton/OptionButton.js +2 -2
  233. package/lib/components/OptionButton/OptionButton.stories.d.ts.map +1 -1
  234. package/lib/components/OptionButton/SimpleOptionButton.d.ts +6 -7
  235. package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
  236. package/lib/components/OptionButton/SimpleOptionButton.js +1 -7
  237. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts +55 -55
  238. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts.map +1 -1
  239. package/lib/components/PageTitle/PageTitle.d.ts +9 -8
  240. package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
  241. package/lib/components/PageTitle/PageTitle.js +15 -10
  242. package/lib/components/PageTitle/PageTitle.stories.d.ts.map +1 -1
  243. package/lib/components/Pagination/Pagination.d.ts +10 -12
  244. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  245. package/lib/components/Pagination/Pagination.stories.d.ts +1 -9
  246. package/lib/components/Pagination/Pagination.stories.d.ts.map +1 -1
  247. package/lib/components/Pagination/PaginationItem.d.ts.map +1 -1
  248. package/lib/components/Pagination/PaginationItem.js +0 -3
  249. package/lib/components/Panel/Panel.d.ts +9 -10
  250. package/lib/components/Panel/Panel.d.ts.map +1 -1
  251. package/lib/components/Panel/Panel.stories.d.ts.map +1 -1
  252. package/lib/components/ProgressDonut/ProgressDonut.d.ts +2 -2
  253. package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
  254. package/lib/components/ProgressDonut/ProgressDonut.js +2 -3
  255. package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
  256. package/lib/components/PromptChip/PromptChip.js +6 -5
  257. package/lib/components/PromptInput/PromptInput.d.ts +7 -7
  258. package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
  259. package/lib/components/PromptInput/PromptInput.js +0 -7
  260. package/lib/components/RadioButton/RadioButton.d.ts +2 -3
  261. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  262. package/lib/components/RadioButton/RadioButton.js +1 -2
  263. package/lib/components/RadioButton/RadioButton.stories.d.ts.map +1 -1
  264. package/lib/components/RadioButton/RadioGroup.d.ts +2 -2
  265. package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
  266. package/lib/components/RadioButton/RadioGroup.js +2 -1
  267. package/lib/components/RadioButton/RadioGroup.stories.d.ts.map +1 -1
  268. package/lib/components/RadioTile/RadioTile.d.ts +2 -2
  269. package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
  270. package/lib/components/RadioTile/RadioTile.js +1 -3
  271. package/lib/components/RadioTile/RadioTile.stories.d.ts.map +1 -1
  272. package/lib/components/RangeSlider/RangeSlider.d.ts +2 -2
  273. package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  274. package/lib/components/RangeSlider/RangeSlider.js +0 -3
  275. package/lib/components/Rating/Rating.d.ts +2 -2
  276. package/lib/components/Rating/Rating.d.ts.map +1 -1
  277. package/lib/components/ScoreBar/ScoreBar.d.ts +2 -2
  278. package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
  279. package/lib/components/SearchInput/SearchInput.d.ts +2 -3
  280. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  281. package/lib/components/Separator/Separator.d.ts +2 -2
  282. package/lib/components/Separator/Separator.d.ts.map +1 -1
  283. package/lib/components/Shimmer/Shimmer.d.ts +6 -6
  284. package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
  285. package/lib/components/Shimmer/Shimmer.js +1 -3
  286. package/lib/components/SideMenuLink/SideMenuLink.d.ts +2 -2
  287. package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
  288. package/lib/components/SideMenuLink/SideMenuLink.js +3 -9
  289. package/lib/components/SideMenuLink/SideMenuLink.stories.d.ts.map +1 -1
  290. package/lib/components/StatusIndicator/StatusIndicator.d.ts +2 -2
  291. package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  292. package/lib/components/Stepper/Step/Step.d.ts +2 -2
  293. package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
  294. package/lib/components/Stepper/Step/Step.js +13 -10
  295. package/lib/components/Stepper/Step/StepContent.d.ts +2 -2
  296. package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
  297. package/lib/components/Stepper/Step/StepLabel.d.ts +2 -2
  298. package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
  299. package/lib/components/Stepper/Stepper.d.ts +2 -2
  300. package/lib/components/Stepper/Stepper.d.ts.map +1 -1
  301. package/lib/components/Stepper/Stepper.js +23 -8
  302. package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -1
  303. package/lib/components/StickyBar/StickyBar.d.ts +4 -4
  304. package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
  305. package/lib/components/SubMenu/SubMenu.d.ts +2 -2
  306. package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
  307. package/lib/components/SubMenu/SubMenuGroup.d.ts +2 -2
  308. package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -1
  309. package/lib/components/SubMenu/SubMenuGroup.js +14 -11
  310. package/lib/components/SubMenu/SubMenuItem.d.ts +8 -8
  311. package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -1
  312. package/lib/components/SubMenu/SubMenuItem.js +16 -24
  313. package/lib/components/SubMenu/SubMenuLink.d.ts +3 -3
  314. package/lib/components/SubMenu/SubMenuLink.d.ts.map +1 -1
  315. package/lib/components/SubMenu/SubMenuLink.js +4 -8
  316. package/lib/components/Table/BasicTable.stories.d.ts +6 -6
  317. package/lib/components/Table/BasicTable.stories.d.ts.map +1 -1
  318. package/lib/components/Table/BulkActions.stories.d.ts.map +1 -1
  319. package/lib/components/Table/Cell.d.ts +3 -3
  320. package/lib/components/Table/Cell.d.ts.map +1 -1
  321. package/lib/components/Table/Cell.js +3 -7
  322. package/lib/components/Table/DefaultRow.d.ts +4 -4
  323. package/lib/components/Table/DefaultRow.d.ts.map +1 -1
  324. package/lib/components/Table/DefaultTableHeader.d.ts +4 -4
  325. package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -1
  326. package/lib/components/Table/DefaultTableHeader.js +2 -9
  327. package/lib/components/Table/InlineEdit.stories.d.ts.map +1 -1
  328. package/lib/components/Table/StaticTable.d.ts.map +1 -1
  329. package/lib/components/Table/StaticTable.js +13 -56
  330. package/lib/components/Table/Table.d.ts +7 -7
  331. package/lib/components/Table/Table.d.ts.map +1 -1
  332. package/lib/components/Table/Table.js +2 -24
  333. package/lib/components/Table/TableActionBar.d.ts +2 -2
  334. package/lib/components/Table/TableActionBar.d.ts.map +1 -1
  335. package/lib/components/Table/TableBottomBar.d.ts +2 -2
  336. package/lib/components/Table/TableBottomBar.d.ts.map +1 -1
  337. package/lib/components/Table/TableTopBar.d.ts +2 -2
  338. package/lib/components/Table/TableTopBar.d.ts.map +1 -1
  339. package/lib/components/Table/hooks.d.ts.map +1 -1
  340. package/lib/components/Table/hooks.js +4 -12
  341. package/lib/components/Tabs/Tab/Tab.d.ts +6 -4
  342. package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
  343. package/lib/components/Tabs/Tab/Tab.js +28 -8
  344. package/lib/components/Tabs/Tab/Tab.module.css +1 -1
  345. package/lib/components/Tabs/TabList/TabDropdown.d.ts +2 -2
  346. package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -1
  347. package/lib/components/Tabs/TabList/TabDropdown.js +3 -9
  348. package/lib/components/Tabs/TabList/TabList.d.ts +4 -3
  349. package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -1
  350. package/lib/components/Tabs/TabList/TabList.js +40 -50
  351. package/lib/components/Tabs/TabList/TabList.stories.d.ts +22 -0
  352. package/lib/components/Tabs/TabList/TabList.stories.d.ts.map +1 -1
  353. package/lib/components/Text/Text.d.ts +4 -4
  354. package/lib/components/Text/Text.d.ts.map +1 -1
  355. package/lib/components/Text/Text.js +0 -1
  356. package/lib/components/TextTile/TextTile.d.ts +2 -2
  357. package/lib/components/TextTile/TextTile.d.ts.map +1 -1
  358. package/lib/components/Textarea/Textarea.d.ts +6 -7
  359. package/lib/components/Textarea/Textarea.d.ts.map +1 -1
  360. package/lib/components/Textarea/Textarea.js +7 -17
  361. package/lib/components/Timeline/Timeline.d.ts +2 -2
  362. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  363. package/lib/components/Timeline/Timeline.js +20 -14
  364. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +2 -2
  365. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
  366. package/lib/components/Timeline/TimelineItem/TimelineItem.js +2 -9
  367. package/lib/components/Timeline/TimelineItem/TimelineItem.stories.d.ts.map +1 -1
  368. package/lib/components/Toast/Toast.d.ts +8 -8
  369. package/lib/components/Toast/Toast.d.ts.map +1 -1
  370. package/lib/components/Toast/Toast.js +31 -24
  371. package/lib/components/Toast/ToastContainer.d.ts.map +1 -1
  372. package/lib/components/Toast/ToastContainer.js +7 -6
  373. package/lib/components/Toast/ToastManager.d.ts +5 -5
  374. package/lib/components/Toast/ToastManager.d.ts.map +1 -1
  375. package/lib/components/Toast/ToastManager.js +1 -2
  376. package/lib/components/Toggle/Toggle.d.ts +2 -2
  377. package/lib/components/Toggle/Toggle.d.ts.map +1 -1
  378. package/lib/components/Toggle/Toggle.js +2 -6
  379. package/lib/components/Toggle/Toggle.stories.d.ts.map +1 -1
  380. package/lib/components/TokenListInput/TokenListInput.d.ts +13 -11
  381. package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
  382. package/lib/components/TokenListInput/TokenListInput.js +24 -38
  383. package/lib/components/TokenListInput/TokenListInput.stories.d.ts +3 -4
  384. package/lib/components/TokenListInput/TokenListInput.stories.d.ts.map +1 -1
  385. package/lib/components/TokenListInput/TokenValueChips.d.ts +4 -4
  386. package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -1
  387. package/lib/components/TokenListInput/TokenValueChips.js +14 -17
  388. package/lib/components/Tooltip/Tooltip.d.ts +5 -6
  389. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  390. package/lib/components/Tooltip/Tooltip.js +10 -9
  391. package/lib/components/Truncate/Truncate.d.ts +2 -2
  392. package/lib/components/Truncate/Truncate.d.ts.map +1 -1
  393. package/lib/components/Truncate/Truncate.js +4 -5
  394. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +3 -3
  395. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
  396. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +19 -10
  397. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +1 -1
  398. package/lib/components/Typeahead/SimpleTypeahead.d.ts +5 -6
  399. package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
  400. package/lib/components/Typeahead/SimpleTypeahead.js +1 -5
  401. package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts.map +1 -1
  402. package/lib/components/Typeahead/Typeahead.d.ts +5 -6
  403. package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
  404. package/lib/components/Typeahead/Typeahead.js +14 -11
  405. package/lib/components/Typeahead/Typeahead.stories.d.ts.map +1 -1
  406. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +4 -4
  407. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
  408. package/lib/components/WeekdayPicker/WeekdayPicker.stories.d.ts.map +1 -1
  409. package/lib/devtools/DependencyGraph/DependencyGraph.stories.d.ts.map +1 -1
  410. package/lib/flow-to-typescript-codemod.d.ts +1 -21
  411. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +2 -2
  412. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -1
  413. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts.map +1 -1
  414. package/lib/hooks/useFileUpload/useFileUpload.d.ts +2 -2
  415. package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -1
  416. package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts.map +1 -1
  417. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +4 -4
  418. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -1
  419. package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts.map +1 -1
  420. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +2 -2
  421. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -1
  422. package/lib/hooks/useInputState/useInputState.d.ts.map +1 -1
  423. package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +1 -1
  424. package/lib/hooks/useModal/useModal.d.ts +13 -5
  425. package/lib/hooks/useModal/useModal.d.ts.map +1 -1
  426. package/lib/hooks/useToastPortal/useToastPortal.d.ts +2 -2
  427. package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -1
  428. package/lib/hooks/useToggle/useToggle.d.ts.map +1 -1
  429. package/lib/hooks/useWindowSize/useWindowSize.d.ts +2 -2
  430. package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +1 -1
  431. package/lib/stories/Border/Border.stories.d.ts.map +1 -1
  432. package/lib/stories/Color/Color.stories.d.ts.map +1 -1
  433. package/lib/stories/Elevation/Elevation.stories.d.ts.map +1 -1
  434. package/lib/stories/Motion/Motion.stories.d.ts.map +1 -1
  435. package/lib/stories/Opacity/Opacity.stories.d.ts.map +1 -1
  436. package/lib/stories/Shadow/Shadow.stories.d.ts.map +1 -1
  437. package/lib/stories/Size/Size.stories.d.ts.map +1 -1
  438. package/lib/stories/Space/Space.stories.d.ts.map +1 -1
  439. package/lib/stories/Tokens/index.d.ts.map +1 -1
  440. package/lib/styles/index.css +2 -0
  441. package/lib/styles/index.d.ts +1 -0
  442. package/lib/styles/index.d.ts.map +1 -1
  443. package/lib/styles/index.js +2 -1
  444. package/lib/styles/variables/_size.css +2 -0
  445. package/lib/styles/variables/_size.d.ts +1 -0
  446. package/lib/styles/variables/_size.d.ts.map +1 -1
  447. package/lib/styles/variables/_size.js +2 -1
  448. package/lib/types/charts.d.ts +45 -33
  449. package/lib/types/charts.d.ts.map +1 -1
  450. package/lib/types/date-range-picker.d.ts +8 -9
  451. package/lib/types/date-range-picker.d.ts.map +1 -1
  452. package/lib/types/menu.d.ts +2 -2
  453. package/lib/types/menu.d.ts.map +1 -1
  454. package/lib/types/toast.d.ts +9 -10
  455. package/lib/types/toast.d.ts.map +1 -1
  456. package/lib/utils/charts/charts.d.ts +1 -1
  457. package/lib/utils/charts/charts.d.ts.map +1 -1
  458. package/lib/utils/charts/donutChart.d.ts +2 -2
  459. package/lib/utils/charts/donutChart.d.ts.map +1 -1
  460. package/lib/utils/charts/donutChart.js +2 -0
  461. package/lib/utils/charts/funnelChart.d.ts.map +1 -1
  462. package/lib/utils/charts/helpers.d.ts +1 -1
  463. package/lib/utils/charts/helpers.d.ts.map +1 -1
  464. package/lib/utils/charts/index.d.ts +3 -0
  465. package/lib/utils/charts/index.d.ts.map +1 -1
  466. package/lib/utils/charts/index.js +33 -0
  467. package/lib/utils/charts/sankeyChart.d.ts +9 -0
  468. package/lib/utils/charts/sankeyChart.d.ts.map +1 -0
  469. package/lib/utils/charts/sankeyChart.js +50 -0
  470. package/lib/utils/charts/stackedBarChart.d.ts +3 -0
  471. package/lib/utils/charts/stackedBarChart.d.ts.map +1 -0
  472. package/lib/utils/charts/stackedBarChart.js +51 -0
  473. package/lib/utils/click-away/click-away.d.ts +11 -13
  474. package/lib/utils/click-away/click-away.d.ts.map +1 -1
  475. package/lib/utils/date-range-picker/date-range-picker.d.ts.map +1 -1
  476. package/lib/utils/dom/dom.d.ts +2 -2
  477. package/lib/utils/dom/dom.d.ts.map +1 -1
  478. package/lib/utils/helpers/helpers.d.ts.map +1 -1
  479. package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -1
  480. package/lib/utils/merge-refs/merge-refs.d.ts +2 -3
  481. package/lib/utils/merge-refs/merge-refs.d.ts.map +1 -1
  482. package/lib/utils/merge-refs/merge-refs.js +13 -7
  483. package/lib/utils/merge-refs/merge-refs.stories.d.ts.map +1 -1
  484. package/lib/utils/token-list-input/token-list-input.d.ts +5 -5
  485. package/lib/utils/token-list-input/token-list-input.d.ts.map +1 -1
  486. package/lib/utils/tokens/tokens.d.ts +7 -6
  487. package/lib/utils/tokens/tokens.d.ts.map +1 -1
  488. package/package.json +18 -10
  489. package/tsconfig.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/DefaultTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AAO3E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAK3C,MAAM,MAAM,iBAAiB,CAC3B,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,aAAa,IACrB;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3B,IAAI,EAAE,CAAC,CAAC;QACR,MAAM,CAAC,EAAE,CAAC,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;CACJ,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,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACrC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,KAAK,OAAO,CAAC;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA4CD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,aAAa,EACvB,KAAK,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,qBAqI9B"}
@@ -15,8 +15,6 @@ var _DefaultRow = require("./DefaultRow");
15
15
  var _TableModule = _interopRequireDefault(require("./Table.module.css"));
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
- // @ts-ignore - TS2344 - Type 'T' does not satisfy the constraint 'GenericObject'.
19
-
20
18
  const BasicHeadCell = exports.BasicHeadCell = (0, _makeClassNameComponent.makeClassNameComponent)(_TableModule.default.defaultHeaderCell, 'th');
21
19
  const BasicTableHead = exports.BasicTableHead = (0, _makeClassNameComponent.makeClassNameComponent)(_TableModule.default.defaultTableHead, 'thead');
22
20
  const SortIcon = _ref => {
@@ -118,16 +116,11 @@ function DefaultTableHeader(props) {
118
116
  className: _TableModule.default.headerSubtext
119
117
  }, subtext && subtext)), (sortable || filterIcon != null) && /*#__PURE__*/React.createElement("div", {
120
118
  className: _TableModule.default.headerIconContainer
121
- }, columnSortable &&
122
- /*#__PURE__*/
123
- // @ts-ignore - TS2786 - 'SortIcon' cannot be used as a JSX component.
124
- React.createElement(SortIcon, {
119
+ }, columnSortable && /*#__PURE__*/React.createElement(SortIcon, {
125
120
  color: _Text.TEXT_COLORS.secondary,
126
121
  className: (0, _classify.default)(_TableModule.default.sortArrow, {
127
122
  [_TableModule.default.selectedSortArrow]: sortKey === key
128
- })
129
- // @ts-ignore - TS2322 - Type 'string' is not assignable to type 'SortDirection'.
130
- ,
123
+ }),
131
124
  sortDirection: columnSortDirection
132
125
  }), filterIcon != null && /*#__PURE__*/React.createElement("div", {
133
126
  className: _TableModule.default.filterIcon
@@ -1 +1 @@
1
- {"version":3,"file":"InlineEdit.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Table/InlineEdit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASnC,wBA+KE;AA4FF,eAAO,MAAM,WAAW;WAChB,UAAU,CACd;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,EACD;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CACF;;;;CAoFF,CAAC"}
1
+ {"version":3,"file":"InlineEdit.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Table/InlineEdit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BnC,wBA+KE;AAqFF,eAAO,MAAM,WAAW;WAChB,UAAU,CACd;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,EACD;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CACF;;;;CAsFF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StaticTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/StaticTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AAQ3E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAC,aAAa,EAAmB,UAAU,EAAC,MAAM,SAAS,CAAC;AAKxE,eA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;AAuMxD;;;;GAIG;AAEH,wBAAgB,WAAW,CACzB,IAAI,SAAS,aAAa,EAC1B,MAAM,SAAS,aAAa,EAE5B,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG;IAChC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,qBAqHF;AAED,wBAAgB,sBAAsB,CACpC,IAAI,SAAS,aAAa,EAC1B,MAAM,SAAS,aAAa,EAE5B,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG;IAChC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,qBAwNF"}
@@ -27,7 +27,7 @@ function useTableWidth(ref) {
27
27
  const {
28
28
  width
29
29
  } = (0, _useWindowSize.useWindowSize)();
30
- const [tableWidth, setTableWidth] = React.useState();
30
+ const [tableWidth, setTableWidth] = React.useState(undefined);
31
31
  React.useEffect(() => {
32
32
  if (ref.current) {
33
33
  setTableWidth(ref.current.offsetWidth);
@@ -36,7 +36,6 @@ function useTableWidth(ref) {
36
36
  return tableWidth;
37
37
  }
38
38
  function useMappedKeys(entries, rowKeys, idName) {
39
- // @ts-ignore - TS2322 - Type 'string[] | Data[string][]' is not assignable to type 'string[]'.
40
39
  return React.useMemo(() => rowKeys ?? entries.map(e => (0, _get.default)(e, idName)), [entries, idName, rowKeys]);
41
40
  }
42
41
  function useHeaderCheckboxHandler(selectedKeys, entries, idName, onSelect) {
@@ -49,7 +48,6 @@ function useHeaderCheckboxHandler(selectedKeys, entries, idName, onSelect) {
49
48
  } = _ref;
50
49
  const allIds = entries.map(row => (0, _get.default)(row, idName));
51
50
  const newSelection = checked ? allIds : [];
52
- // @ts-ignore - TS2345 - Argument of type 'Data[string][]' is not assignable to parameter of type 'string[]'.
53
51
  onSelect?.(newSelection);
54
52
  };
55
53
  }
@@ -115,9 +113,7 @@ function TableWrapper(_ref3) {
115
113
  return /*#__PURE__*/React.createElement("div", {
116
114
  className: (0, _classify.classify)(_TableModule.default.tableContainer, classNames?.wrapper),
117
115
  "data-id": 'table-wrap',
118
- ref: tableRef
119
- // @ts-ignore - TS2322 - Type '{ [key: string]: string | number | null | undefined; } | undefined' is not assignable to type 'CSSProperties | undefined'.
120
- ,
116
+ ref: tableRef,
121
117
  style: wrapperStyle
122
118
  }, /*#__PURE__*/React.createElement(BasicTable, {
123
119
  "data-id": "basic-table",
@@ -158,12 +154,6 @@ function StaticTable(props) {
158
154
  showHeader = true,
159
155
  tableHeaderClassName,
160
156
  sortable,
161
- // @ts-ignore - TS6133 - 'defaultSortKey' is declared but its value is never read.
162
- defaultSortKey,
163
- // @ts-ignore - TS6133 - 'defaultSortDirection' is declared but its value is never read.
164
- defaultSortDirection = 'original',
165
- // @ts-ignore - TS6133 - 'onSort' is declared but its value is never read.
166
- onSort,
167
157
  handleSortClick,
168
158
  sortKey,
169
159
  sortDirection,
@@ -182,16 +172,13 @@ function StaticTable(props) {
182
172
  // this is a fallback and honestly probably doesn't need the
183
173
  // memo'ing
184
174
  const tableRef = React.useRef(null);
185
- // @ts-ignore - TS2345 - Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'.
186
175
  const mappedKeys = useMappedKeys(entries, rowKeys, idName);
187
176
  const tableWidth = useTableWidth(tableRef);
188
177
 
189
178
  /**
190
179
  * this function is also used to decide weather to show checkbox in header or not. so it's value is undefined in case selectedKeys is not there.
191
180
  */
192
- const handleHeaderCheckboxClick = useHeaderCheckboxHandler(selectedKeys, entries,
193
- // @ts-ignore - TS2345 - Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'.
194
- idName, onSelect);
181
+ const handleHeaderCheckboxClick = useHeaderCheckboxHandler(selectedKeys, entries, idName, onSelect);
195
182
  return /*#__PURE__*/React.createElement(TableWrapper, {
196
183
  tableRef: tableRef,
197
184
  wrapperStyle: {
@@ -212,9 +199,7 @@ function StaticTable(props) {
212
199
  selectedKeys: selectedKeys,
213
200
  headers: headers,
214
201
  sortKey: sortKey,
215
- sortDirection: sortDirection
216
- // @ts-ignore - TS2322 - Type '((sortKey: string) => unknown) | undefined' is not assignable to type '((sortKey: keyof Data) => unknown) | undefined'.
217
- ,
202
+ sortDirection: sortDirection,
218
203
  handleSortClick: handleSortClick,
219
204
  handleHeaderCheckboxClick: handleHeaderCheckboxClick
220
205
  }, isLoading || !entries.length ? /*#__PURE__*/React.createElement(_DefaultRow.EmptyRow, {
@@ -227,12 +212,8 @@ function StaticTable(props) {
227
212
  if (data == null) {
228
213
  return null;
229
214
  }
230
- const selected = selectedKeys && Array.isArray(selectedKeys) ?
231
- // @ts-ignore - TS2345 - Argument of type 'Data["id"] | Data[keyof Data]' is not assignable to parameter of type 'string'.
232
- selectedKeys.includes((0, _get.default)(data, idName)) : undefined;
233
- const isRowDisabled = disabledKeys && Array.isArray(disabledKeys) ?
234
- // @ts-ignore - TS2345 - Argument of type 'Data["id"] | Data[keyof Data]' is not assignable to parameter of type 'string'.
235
- disabledKeys.includes((0, _get.default)(data, idName)) : false;
215
+ const selected = selectedKeys && Array.isArray(selectedKeys) ? selectedKeys.includes((0, _get.default)(data, idName)) : undefined;
216
+ const isRowDisabled = disabledKeys && Array.isArray(disabledKeys) ? disabledKeys.includes((0, _get.default)(data, idName)) : false;
236
217
  return /*#__PURE__*/React.createElement(RowRenderer, {
237
218
  TableRow: TableRow,
238
219
  keyId: key,
@@ -259,12 +240,6 @@ function StaticTableVirtualized(props) {
259
240
  showHeader = true,
260
241
  tableHeaderClassName,
261
242
  sortable,
262
- // @ts-ignore - TS6133 - 'defaultSortKey' is declared but its value is never read.
263
- defaultSortKey,
264
- // @ts-ignore - TS6133 - 'defaultSortDirection' is declared but its value is never read.
265
- defaultSortDirection = 'original',
266
- // @ts-ignore - TS6133 - 'onSort' is declared but its value is never read.
267
- onSort,
268
243
  handleSortClick,
269
244
  sortKey,
270
245
  sortDirection,
@@ -291,14 +266,12 @@ function StaticTableVirtualized(props) {
291
266
 
292
267
  // this is a fallback and honestly probably doesn't need the
293
268
  // memo'ing
294
- // @ts-ignore - TS2345 - Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'.
295
269
  const mappedKeys = useMappedKeys(entries, rowKeys, idName);
296
270
  const tableWidth = useTableWidth(tableRef);
297
271
  const virtualizer = (0, _reactVirtual.useVirtualizer)({
298
272
  count: entries.length,
299
273
  getScrollElement: () => tableRef.current,
300
274
  estimateSize: () => parseInt(rowHeight),
301
- // @ts-ignore - TS2322 - Type '(index: number) => Data["id" | keyof Data]' is not assignable to type '(index: number) => Key'.
302
275
  getItemKey: index => entries[index][idName],
303
276
  overscan: 1
304
277
  });
@@ -326,11 +299,8 @@ function StaticTableVirtualized(props) {
326
299
  hasTriggeredRef.current = false; // reset when scrolling up
327
300
  }
328
301
  };
329
-
330
- // @ts-ignore - TS2339 - Property 'addEventListener' does not exist on type 'never'.
331
302
  scrollElement.addEventListener('scroll', handleScroll);
332
303
  return () => {
333
- // @ts-ignore - TS2339 - Property 'removeEventListener' does not exist on type 'never'.
334
304
  scrollElement.removeEventListener('scroll', handleScroll);
335
305
  };
336
306
  }, [onEndReached, isAllDataFetched]);
@@ -339,9 +309,7 @@ function StaticTableVirtualized(props) {
339
309
  * this function is also used to decide weather to show checkbox in header or not. so it's value is undefined in case selectedKeys is not there.
340
310
  */
341
311
 
342
- const handleHeaderCheckboxClick = useHeaderCheckboxHandler(selectedKeys, entries,
343
- // @ts-ignore - TS2345 - Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'.
344
- idName, onSelect);
312
+ const handleHeaderCheckboxClick = useHeaderCheckboxHandler(selectedKeys, entries, idName, onSelect);
345
313
  const VirtualizedStartRow = () => /*#__PURE__*/React.createElement("tr", {
346
314
  style: {
347
315
  height: virtualizer.getVirtualItems()[0]?.start ?? _space.spaceNone,
@@ -357,9 +325,7 @@ function StaticTableVirtualized(props) {
357
325
  }));
358
326
  const VirtualizedEndRow = () => /*#__PURE__*/React.createElement("tr", {
359
327
  style: {
360
- height: virtualizer.getTotalSize() - (
361
- // @ts-ignore - TS2339 - Property 'at' does not exist on type 'VirtualItem[]'.
362
- virtualizer.getVirtualItems().at(-1)?.end ?? _space.spaceNone)
328
+ height: virtualizer.getTotalSize() - (virtualizer.getVirtualItems()[virtualizer.getVirtualItems().length - 1]?.end ?? _space.spaceNone)
363
329
  },
364
330
  "aria-hidden": true
365
331
  }, /*#__PURE__*/React.createElement("td", {
@@ -375,8 +341,7 @@ function StaticTableVirtualized(props) {
375
341
  wrapperStyle: {
376
342
  '--border-radius': borderRadius,
377
343
  '--table-width': tableWidth ? `${tableWidth}px` : _size.sizeFluid,
378
- // @ts-ignore - TS2532 - Object is possibly 'undefined'.
379
- '--table-height': `${(rowsCount + 1) * parseInt(rowHeight)}px`,
344
+ '--table-height': `${((rowsCount || 0) + 1) * parseInt(rowHeight)}px`,
380
345
  overflowY: 'auto'
381
346
  },
382
347
  classNames: classNames,
@@ -393,9 +358,7 @@ function StaticTableVirtualized(props) {
393
358
  selectedKeys: selectedKeys,
394
359
  headers: headers,
395
360
  sortKey: sortKey,
396
- sortDirection: sortDirection
397
- // @ts-ignore - TS2322 - Type '((sortKey: string) => unknown) | undefined' is not assignable to type '((sortKey: keyof Data) => unknown) | undefined'.
398
- ,
361
+ sortDirection: sortDirection,
399
362
  handleSortClick: handleSortClick,
400
363
  handleHeaderCheckboxClick: handleHeaderCheckboxClick
401
364
  }, /*#__PURE__*/React.createElement(VirtualizedStartRow, null), isLoading || !entries.length ? /*#__PURE__*/React.createElement(_DefaultRow.EmptyRow, {
@@ -409,16 +372,10 @@ function StaticTableVirtualized(props) {
409
372
  if (data == null) {
410
373
  return null;
411
374
  }
412
- const selected = selectedKeys && Array.isArray(selectedKeys) ?
413
- // @ts-ignore - TS2345 - Argument of type 'Data[keyof Data] | Data["id"]' is not assignable to parameter of type 'string'.
414
- selectedKeys.includes((0, _get.default)(data, idName)) : undefined;
415
- const isRowDisabled = disabledKeys && Array.isArray(disabledKeys) ?
416
- // @ts-ignore - TS2345 - Argument of type 'Data[keyof Data] | Data["id"]' is not assignable to parameter of type 'string'.
417
- disabledKeys.includes((0, _get.default)(data, idName)) : false;
375
+ const selected = selectedKeys && Array.isArray(selectedKeys) ? selectedKeys.includes((0, _get.default)(data, idName)) : undefined;
376
+ const isRowDisabled = disabledKeys && Array.isArray(disabledKeys) ? disabledKeys.includes((0, _get.default)(data, idName)) : false;
418
377
  return /*#__PURE__*/React.createElement(RowRenderer, {
419
- TableRow: TableRow
420
- // @ts-ignore - TS2322 - Type 'Key' is not assignable to type 'string'.
421
- ,
378
+ TableRow: TableRow,
422
379
  keyId: key,
423
380
  data: data,
424
381
  headers: headers,
@@ -2,9 +2,9 @@ import * as React from 'react';
2
2
  import type { TableRow } from './DefaultRow';
3
3
  import type { GenericHeaderItems } from './DefaultTableHeader';
4
4
  import type { SortDirection } from './hooks';
5
- export type GenericObject = {
6
- readonly [key: string]: unknown;
7
- };
5
+ export interface GenericObject {
6
+ [key: string]: unknown;
7
+ }
8
8
  export type TableClassNames = Readonly<{
9
9
  wrapper?: string;
10
10
  table?: string;
@@ -13,14 +13,14 @@ export type TableClassNames = Readonly<{
13
13
  tableRow?: string;
14
14
  checkbox?: string;
15
15
  }>;
16
- type VirtualizationOptions = {
16
+ interface VirtualizationOptions {
17
17
  rowsCount: number;
18
18
  rowHeight?: string;
19
19
  onEndReached?: () => void;
20
20
  isEndLoading?: boolean;
21
21
  isAllDataFetched?: boolean;
22
- };
23
- export type TableProps<T, U> = {
22
+ }
23
+ export interface TableProps<T, U> {
24
24
  classNames?: TableClassNames;
25
25
  className?: string;
26
26
  TableRow?: TableRow<T, U>;
@@ -46,7 +46,7 @@ export type TableProps<T, U> = {
46
46
  borderRadius?: string;
47
47
  stickyHeader?: boolean;
48
48
  virtualizationOptions?: VirtualizationOptions;
49
- };
49
+ }
50
50
  /**
51
51
  * Table
52
52
  * @param {React.ComponentType} Row - React.ComponentType<{data: Data, extras?: Extras, sortedKeys?: string[]}>
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAM3C,MAAM,MAAM,aAAa,GAAG;IAM1B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI;IAC7B,UAAU,CAAC,EAAE,eAAe,CAAC;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AAC,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IACnD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AAED;;;;;IAKI;AAEJ;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,SAAS,aAAa,EAAE,MAAM,SAAS,aAAa,EAC5E,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,qBAoDhC"}
@@ -26,31 +26,13 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
26
26
  */
27
27
  function Table(props) {
28
28
  const {
29
- // @ts-ignore - TS6133 - 'className' is declared but its value is never read.
30
- className,
31
- // @ts-ignore - TS6133 - 'classNames' is declared but its value is never read.
32
- classNames,
33
- // @ts-ignore - TS6133 - 'TableRow' is declared but its value is never read.
34
- TableRow,
35
29
  entries,
36
- // @ts-ignore - TS6133 - 'extras' is declared but its value is never read.
37
- extras,
38
- // @ts-ignore - TS6133 - 'headers' is declared but its value is never read.
39
- headers,
40
- // @ts-ignore - TS6133 - 'showHeader' is declared but its value is never read.
41
- showHeader = true,
42
- // @ts-ignore - TS6133 - 'tableHeaderClassName' is declared but its value is never read.
43
- tableHeaderClassName,
44
30
  sortable = true,
45
31
  defaultSortKey,
46
32
  defaultSortDirection = 'original',
47
33
  onSort,
48
34
  enableInternalSorting,
49
- // @ts-ignore - TS6133 - 'isLoading' is declared but its value is never read.
50
- isLoading,
51
35
  idName = 'id',
52
- // @ts-ignore - TS6133 - 'emptyText' is declared but its value is never read.
53
- emptyText,
54
36
  virtualizationOptions
55
37
  } = props;
56
38
 
@@ -73,15 +55,11 @@ function Table(props) {
73
55
  const virtualized = !!(virtualizationOptions && virtualizationOptions.rowsCount > 0 && entries.length > 0);
74
56
  return virtualized ? /*#__PURE__*/React.createElement(_StaticTable.StaticTableVirtualized, _extends({}, props, sortableProps, {
75
57
  sortable: sortable,
76
- entries: sortedEntries
77
- // @ts-ignore - TS2322 - Type 'keyof T[]' is not assignable to type 'string[] | undefined'.
78
- ,
58
+ entries: sortedEntries,
79
59
  rowKeys: sortedKeys
80
60
  })) : /*#__PURE__*/React.createElement(_StaticTable.StaticTable, _extends({}, props, sortableProps, {
81
61
  sortable: sortable,
82
- entries: sortedEntries
83
- // @ts-ignore - TS2322 - Type 'keyof T[]' is not assignable to type 'string[] | undefined'.
84
- ,
62
+ entries: sortedEntries,
85
63
  rowKeys: sortedKeys
86
64
  }));
87
65
  }
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import type { ButtonProps } from '../Button';
3
3
  import type { SimpleButtonDropdownProps } from '../ButtonDropdown';
4
- export type TableActionBarProps = {
4
+ export interface TableActionBarProps {
5
5
  children?: React.ReactNode;
6
6
  className?: string;
7
- };
7
+ }
8
8
  export declare const ButtonCta: ({ classNames, ...props }: ButtonProps) => React.JSX.Element;
9
9
  export declare const DropdownCta: ({ classNames, ...props }: SimpleButtonDropdownProps) => React.JSX.Element;
10
10
  export declare const TableActionBar: ({ children, className, ...props }: TableActionBarProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"TableActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAMjE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,0BAAwB,WAAW,sBAQ5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,0BAGzB,yBAAyB,sBAQ3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,sBAQrB,CAAC"}
1
+ {"version":3,"file":"TableActionBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAMjE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,GAAI,0BAAwB,WAAW,sBAQ5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,0BAGzB,yBAAyB,sBAQ3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,sBAQrB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- export type TableBottomBarProps = {
2
+ export interface TableBottomBarProps {
3
3
  children?: React.ReactNode;
4
4
  className?: string;
5
- };
5
+ }
6
6
  export declare const TableBottomBar: ({ children, className, ...props }: TableBottomBarProps) => React.JSX.Element;
7
7
  //# sourceMappingURL=TableBottomBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableBottomBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,sBAQrB,CAAC"}
1
+ {"version":3,"file":"TableBottomBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,sBAQrB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- export type TableTopBarProps = {
2
+ export interface TableTopBarProps {
3
3
  children?: React.ReactNode;
4
4
  className?: string;
5
- };
5
+ }
6
6
  export declare const TableTopBar: ({ children, className, ...props }: TableTopBarProps) => React.JSX.Element;
7
7
  //# sourceMappingURL=TableTopBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableTopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,sBAQlB,CAAC"}
1
+ {"version":3,"file":"TableTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableTopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,sBAQlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/Table/hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;AAExD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,aAAa,EACxD,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,CAAC,EACf,EACE,cAAqB,EACrB,oBAAiC,EACjC,MAAM,EACN,qBAA4B,GAC7B,EAAE;IACD,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;IACzB,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC;IACpE,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GACA;IACD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;IAC/C,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,CAAC,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;CACvB,CAwEA"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/Table/hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;AAExD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,aAAa,EACxD,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,CAAC,EACf,EACE,cAAqB,EACrB,oBAAiC,EACjC,MAAM,EACN,qBAA4B,GAC7B,EAAE;IACD,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;IACzB,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC;IACpE,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GACA;IACD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;IAC/C,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,CAAC,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;CACvB,CAiEA"}
@@ -32,9 +32,7 @@ function useSortableEntries(entries, idName, _ref) {
32
32
  };
33
33
  const advanceSortDirection = dir => {
34
34
  const nextDirection = getNextDirection(dir);
35
-
36
- // @ts-ignore - TS6133 - 'dir' is declared but its value is never read.
37
- setSortDirection(dir => nextDirection);
35
+ setSortDirection(_dir => nextDirection);
38
36
  return nextDirection;
39
37
  };
40
38
  const handleSortClick = React.useCallback(nextSortKey => {
@@ -45,9 +43,7 @@ function useSortableEntries(entries, idName, _ref) {
45
43
  setSortKey(nextSortKey);
46
44
  nextSortDirection = 'desc';
47
45
  }
48
- // @ts-ignore - TS2345 - Argument of type 'string' is not assignable to parameter of type 'SetStateAction<SortDirection>'.
49
46
  setSortDirection(nextSortDirection);
50
- // @ts-ignore - TS2345 - Argument of type 'string' is not assignable to parameter of type 'SortDirection'.
51
47
  onSort?.(nextSortKey, nextSortDirection);
52
48
  }, [sortKey, sortDirection, entries]);
53
49
  const sortedEntries = React.useMemo(() => {
@@ -56,7 +52,6 @@ function useSortableEntries(entries, idName, _ref) {
56
52
  }
57
53
  const caseInsensitiveSortFunction = entry => {
58
54
  if (typeof entry[sortKey] === 'string') {
59
- // @ts-ignore - TS2339 - Property 'toLowerCase' does not exist on type 'T[keyof T]'.
60
55
  return entry[sortKey].toLowerCase();
61
56
  }
62
57
  return entry[sortKey];
@@ -67,12 +62,9 @@ function useSortableEntries(entries, idName, _ref) {
67
62
  const sortedKeys = React.useMemo(() => sortedEntries.map(ent => (0, _get.default)(ent, idName)), [sortedEntries]);
68
63
  return {
69
64
  sortedEntries,
70
- // @ts-ignore - TS2322 - Type 'T[keyof T][]' is not assignable to type 'keyof T[]'.
71
- sortedKeys,
65
+ sortedKeys: sortedKeys,
72
66
  sortDirection,
73
- // @ts-ignore - TS2322 - Type 'string | number | symbol' is not assignable to type 'string | undefined'.
74
- sortKey,
75
- // @ts-ignore - TS2322 - Type '(nextSortKey: string) => void' is not assignable to type '(sortKey: keyof T) => unknown'.
76
- handleSortClick
67
+ sortKey: sortKey,
68
+ handleSortClick: handleSortClick
77
69
  };
78
70
  }
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
3
  import type { IconType } from '../../Icon';
4
+ import type { ElevationType } from '../../Tooltip';
4
5
  type ClassNames = Readonly<{
5
6
  wrapper?: string;
6
7
  iconTextWrap?: string;
@@ -11,7 +12,7 @@ export declare const TAB_SIZE: Readonly<{
11
12
  }>;
12
13
  export declare const tabSizeOptions: Array<unknown>;
13
14
  export type TabSize = keyof typeof TAB_SIZE;
14
- export type TabProps = {
15
+ export interface TabProps {
15
16
  classNames?: ClassNames;
16
17
  onSelect?: (arg1: {
17
18
  tabId?: string;
@@ -27,9 +28,10 @@ export type TabProps = {
27
28
  label?: string;
28
29
  iconName?: string;
29
30
  iconType?: IconType;
30
- width?: string;
31
- onClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined;
32
- };
31
+ maxWidth?: string;
32
+ elevation?: ElevationType;
33
+ onClick?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
34
+ }
33
35
  export declare const Tab: Flow.AbstractComponent<TabProps, HTMLButtonElement>;
34
36
  export {};
35
37
  //# sourceMappingURL=Tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tab/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAOzC,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ;;;EAGnB,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,OAAO,CAA8B,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,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AEH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,OAAO,CAA8B,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,KAAK,OAAO,CAAC;IAC/D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC;CAC7D;AAED,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAqHjE,CAAC"}
@@ -10,6 +10,7 @@ var _classify = require("../../../utils/classify");
10
10
  var _Button = require("../../Button");
11
11
  var _Icon = require("../../Icon");
12
12
  var _Text = require("../../Text");
13
+ var _TruncatedTextWithTooltip = require("../../TruncatedTextWithTooltip");
13
14
  var _TabModule = _interopRequireDefault(require("./Tab.module.css"));
14
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -31,22 +32,21 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
31
32
  iconName,
32
33
  iconType,
33
34
  onClick,
34
- width,
35
+ maxWidth,
36
+ elevation,
35
37
  ...props
36
38
  } = _ref;
37
39
  const tabRef = React.useRef(null);
38
- // @ts-ignore - TS2322 - Type 'null' is not assignable to type 'HTMLButtonElement'.
39
40
  React.useImperativeHandle(forwardRef, () => tabRef.current);
40
41
  const selected = tabId && tabId === selectedTab?.tabId;
41
42
  const onClickHandler = e => {
42
43
  if (!disabled) {
43
44
  e.preventDefault();
44
- onSelect && onSelect({
45
+ onSelect?.({
45
46
  tabId,
46
47
  label
47
48
  });
48
- onClick && onClick(e);
49
- // @ts-ignore - TS2339 - Property 'blur' does not exist on type 'never'.
49
+ onClick?.(e);
50
50
  tabRef.current?.blur();
51
51
  }
52
52
  };
@@ -60,7 +60,7 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
60
60
  }, classNames?.wrapper),
61
61
  onClick: onClickHandler,
62
62
  style: {
63
- width
63
+ maxWidth
64
64
  },
65
65
  tabIndex: disabled ? -1 : 0,
66
66
  ref: tabRef
@@ -81,12 +81,32 @@ const Tab = exports.Tab = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
81
81
  className: (0, _classify.classify)(_TabModule.default.tabContainer, {
82
82
  [_TabModule.default.disabled]: disabled === true
83
83
  })
84
- }, label) : /*#__PURE__*/React.createElement(_Text.ButtonTextSmall, {
84
+ }, /*#__PURE__*/React.createElement("div", {
85
+ style: {
86
+ maxWidth
87
+ }
88
+ }, /*#__PURE__*/React.createElement(_TruncatedTextWithTooltip.TruncatedTextWithTooltip, {
89
+ line: 1,
90
+ tooltip: {
91
+ body: label,
92
+ elevation
93
+ }
94
+ }, label))) : /*#__PURE__*/React.createElement(_Text.ButtonTextSmall, {
85
95
  color: _typography.TEXT_COLORS.secondary,
86
96
  className: (0, _classify.classify)(_TabModule.default.tabContainer, {
87
97
  [_TabModule.default.selected]: selected === true,
88
98
  [_TabModule.default.disabled]: disabled === true
89
99
  })
90
- }, label))));
100
+ }, /*#__PURE__*/React.createElement("div", {
101
+ style: {
102
+ maxWidth
103
+ }
104
+ }, /*#__PURE__*/React.createElement(_TruncatedTextWithTooltip.TruncatedTextWithTooltip, {
105
+ line: 1,
106
+ tooltip: {
107
+ body: label,
108
+ elevation
109
+ }
110
+ }, label))))));
91
111
  });
92
112
  Tab.displayName = 'Tab';
@@ -21,7 +21,7 @@
21
21
  height: size38;
22
22
  }
23
23
 
24
- .button:focus {
24
+ .button:focus-visible {
25
25
  border: borderWidthTertiary solid colorFocusPrimary;
26
26
  }
27
27
 
@@ -6,7 +6,7 @@ import type { TabProps } from '../Tab';
6
6
  type ClassNames = Readonly<{
7
7
  wrapper?: string;
8
8
  }>;
9
- export type TabDropdownProps = {
9
+ export interface TabDropdownProps {
10
10
  anchorPosition?: AnchorType;
11
11
  size?: 'medium' | 'small';
12
12
  props?: {
@@ -18,7 +18,7 @@ export type TabDropdownProps = {
18
18
  selected?: boolean;
19
19
  disabled?: boolean;
20
20
  elevation?: ElevationType;
21
- };
21
+ }
22
22
  export declare const TabDropdown: ({ anchorPosition, size, onOptionSelect, props, elevation, classNames, }: TabDropdownProps) => React.JSX.Element;
23
23
  export {};
24
24
  //# sourceMappingURL=TabDropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabDropdown.tsx"],"names":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