@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
@@ -35,7 +35,6 @@ const TabDropdown = _ref => {
35
35
  } = (0, _react2.useFloating)({
36
36
  open: true,
37
37
  strategy: 'absolute',
38
- // @ts-ignore - TS2322 - Type 'string' is not assignable to type 'Placement | undefined'.
39
38
  placement: anchorPosition,
40
39
  whileElementsMounted: _react2.autoUpdate,
41
40
  middleware: [(0, _react2.shift)(), (0, _react2.flip)(), (0, _react2.offset)(parseInt(_space.spaceXXSmall))]
@@ -52,9 +51,7 @@ const TabDropdown = _ref => {
52
51
  "data-testid": "TabDropdown",
53
52
  className: (0, _classify.classify)(_TabDropdownModule.default.tabDropdownContainer, classNames?.wrapper)
54
53
  }, /*#__PURE__*/React.createElement(_Tab.Tab, _extends({}, props?.tab, {
55
- size: size
56
- // @ts-ignore - TS2322 - Type '((node: ReferenceType | null) => void) & ((node: ReferenceType | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
57
- ,
54
+ size: size,
58
55
  ref: (0, _mergeRefs.mergeRefs)([refs.setReference, triggerRef]),
59
56
  onClick: e => {
60
57
  e.stopPropagation();
@@ -66,12 +63,9 @@ const TabDropdown = _ref => {
66
63
  }
67
64
  })), isOpen && props?.menu && /*#__PURE__*/React.createElement(_react2.FloatingPortal, null, /*#__PURE__*/React.createElement(_react2.FloatingFocusManager, {
68
65
  modal: false,
69
- context: context
70
- // @ts-ignore - TS2322 - Type 'MutableRefObject<ReferenceType | null> & MutableRefObject<ReferenceType | null>' is not assignable to type 'number | MutableRefObject<HTMLElement | null> | undefined'.
71
- ,
66
+ context: context,
72
67
  initialFocus: refs.reference
73
68
  }, /*#__PURE__*/React.createElement("div", {
74
- // @ts-ignore - TS2322 - Type '((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
75
69
  ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
76
70
  className: _TabDropdownModule.default.menuWrapper,
77
71
  style: {
@@ -83,7 +77,7 @@ const TabDropdown = _ref => {
83
77
  }
84
78
  }, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({}, props.menu, {
85
79
  onSelect: (option, e) => {
86
- onOptionSelect && onOptionSelect(option, e);
80
+ onOptionSelect?.(option, e);
87
81
  clickAway();
88
82
  },
89
83
  size: props.menu.size || size,
@@ -4,21 +4,22 @@ import type { ElevationType } from '../../Tooltip';
4
4
  type ClassNames = Readonly<{
5
5
  wrapper?: string;
6
6
  }>;
7
- export type TabListProps = {
7
+ export interface TabListProps {
8
8
  classNames?: ClassNames;
9
9
  onSelect?: (arg1: {
10
10
  tabId: string;
11
11
  label?: string;
12
12
  }) => unknown;
13
13
  children?: React.ReactNode;
14
- size?: 'medium';
14
+ size?: 'medium' | 'small';
15
15
  selectedTab?: {
16
16
  tabId: string;
17
17
  label?: string;
18
18
  };
19
19
  menuWidth?: string;
20
20
  elevation?: ElevationType;
21
- };
21
+ maxTabWidth?: string;
22
+ }
22
23
  export declare const TabList: Flow.AbstractComponent<TabListProps, HTMLDivElement>;
23
24
  export {};
24
25
  //# sourceMappingURL=TabList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAOjD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC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AAC,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAkJtE,CAAC"}
@@ -13,6 +13,8 @@ var _TabDropdown = require("./TabDropdown");
13
13
  var _TabListModule = _interopRequireDefault(require("./TabList.module.css"));
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  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); }
16
+ // Type definitions for tab child props
17
+
16
18
  const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
17
19
  let {
18
20
  classNames,
@@ -21,10 +23,10 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
21
23
  onSelect,
22
24
  selectedTab,
23
25
  menuWidth,
24
- elevation = 'modal'
26
+ elevation = 'modal',
27
+ maxTabWidth = _size.size120
25
28
  } = _ref;
26
29
  const ref = React.useRef(null);
27
- // @ts-ignore - TS2322 - Type 'null' is not assignable to type 'HTMLDivElement'.
28
30
  React.useImperativeHandle(forwardRef, () => ref.current);
29
31
  const {
30
32
  width
@@ -34,55 +36,49 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
34
36
  const childrenArray = React.Children.toArray(children);
35
37
  const totalChildCount = childrenArray.length;
36
38
  let tabListWidth = 0;
37
- // @ts-ignore
38
39
  const menuOptions = [];
39
40
  let nodes = [];
40
41
  const tabListNodes = [];
41
42
  for (let i = 0; i < totalChildCount; i++) {
42
43
  const child = childrenArray[i];
43
- const {
44
- width = _size.size100,
45
- tabId,
46
- label,
47
- disabled,
48
- iconName,
49
- iconType
50
- // @ts-ignore - TS2339 - Property 'props' does not exist on type 'string | number | bigint | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>'.
51
- } = child.props;
52
- const widthInt = parseInt(width);
53
- tabListWidth = tabListWidth + widthInt;
54
- if (tabListWidth < containerWidth || i === 0) {
55
- const childOnSelect = params => {
56
- onSelect && onSelect(params); // call the tab level onSelect
57
- };
58
- tabListNodes.push(
59
- /*#__PURE__*/
60
- // @ts-ignore - TS2769 - No overload matches this call.
61
- React.cloneElement(child, {
62
- size,
63
- onSelect: childOnSelect,
64
- selectedTab
65
- }));
66
- } else {
67
- menuOptions.push({
68
- key: tabId,
44
+ if (/*#__PURE__*/React.isValidElement(child)) {
45
+ const {
46
+ maxWidth: maxWidthChild,
47
+ tabId,
69
48
  label,
70
49
  disabled,
71
- iconLeft: iconName,
72
- iconLeftType: iconType
73
- });
50
+ iconName,
51
+ iconType
52
+ } = child.props;
53
+ const effectiveMaxWidth = maxWidthChild || maxTabWidth;
54
+ const widthInt = parseInt(effectiveMaxWidth);
55
+ tabListWidth = tabListWidth + widthInt;
56
+ if (tabListWidth < containerWidth || i === 0) {
57
+ const childOnSelect = params => {
58
+ onSelect?.(params); // call the tab level onSelect
59
+ };
60
+ tabListNodes.push(/*#__PURE__*/React.cloneElement(child, {
61
+ size,
62
+ onSelect: childOnSelect,
63
+ selectedTab,
64
+ maxWidth: effectiveMaxWidth,
65
+ elevation
66
+ }));
67
+ } else {
68
+ menuOptions.push({
69
+ key: tabId,
70
+ label,
71
+ disabled,
72
+ iconLeft: iconName,
73
+ iconLeftType: iconType
74
+ });
75
+ }
74
76
  }
75
77
  }
76
-
77
- // @ts-ignore - TS7031 - Binding element 'key' implicitly has an 'any' type. | TS7031 - Binding element 'label' implicitly has an 'any' type.
78
- const menuOnSelect = _ref2 => {
79
- let {
80
- key,
81
- label
82
- } = _ref2;
83
- onSelect && onSelect({
84
- tabId: key,
85
- label
78
+ const menuOnSelect = option => {
79
+ onSelect?.({
80
+ tabId: option.key,
81
+ label: option.label
86
82
  });
87
83
  };
88
84
  const selectedKeys = [selectedTab?.tabId || ''];
@@ -96,9 +92,7 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
96
92
  })();
97
93
  const tabDropDownNode = menuOptions.length ? /*#__PURE__*/React.createElement(_TabDropdown.TabDropdown, {
98
94
  key: 'tabDropdown' + menuOptions.length,
99
- size: size
100
- // @ts-ignore - TS2322 - Type '({ key, label }: { key: any; label: any; }) => void' is not assignable to type '(option: MenuOption, arg2?: SyntheticEvent<HTMLElement, Event> | null | undefined) => unknown'.
101
- ,
95
+ size: size,
102
96
  onOptionSelect: menuOnSelect,
103
97
  props: {
104
98
  tab: {
@@ -122,11 +116,8 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
122
116
  return nodes;
123
117
  };
124
118
  React.useLayoutEffect(() => {
125
- // @ts-ignore - TS2339 - Property 'offsetWidth' does not exist on type 'never'.
126
119
  if (ref.current && ref.current.offsetWidth) {
127
- const availableContainerWidth =
128
- // @ts-ignore - TS2339 - Property 'offsetWidth' does not exist on type 'never'.
129
- ref.current.offsetWidth - (parseInt(_size.size36) + parseInt(_space.spaceMedium));
120
+ const availableContainerWidth = ref.current.offsetWidth - (parseInt(_size.size36) + parseInt(_space.spaceMedium));
130
121
  setContainerWidth(availableContainerWidth);
131
122
  }
132
123
  // it depends on width of the screen as ref.current.offsetWidth will not provide the events when changed.
@@ -136,7 +127,6 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
136
127
  "data-testid": "Tabs",
137
128
  className: (0, _classify.classify)(_TabListModule.default.tabsContainer, {
138
129
  [_TabListModule.default.mediumSize]: size === 'medium',
139
- // @ts-ignore - TS2367 - This condition will always return 'false' since the types '"medium" | undefined' and '"small"' have no overlap.
140
130
  [_TabListModule.default.smallSize]: size === 'small'
141
131
  }, classNames?.wrapper)
142
132
  }, containerWidth ? childrenWithProps() : null);
@@ -84,6 +84,17 @@ declare const _default: {
84
84
  };
85
85
  };
86
86
  };
87
+ maxTabWidth: {
88
+ description: string;
89
+ control: {
90
+ type: string;
91
+ };
92
+ table: {
93
+ type: {
94
+ summary: string;
95
+ };
96
+ };
97
+ };
87
98
  };
88
99
  parameters: {
89
100
  docs: {
@@ -108,4 +119,15 @@ export declare const _Tabs: {
108
119
  };
109
120
  };
110
121
  };
122
+ export declare const TabsWithMaxWidth: {
123
+ (args: TabListProps): React.JSX.Element;
124
+ args: {
125
+ size: string;
126
+ maxTabWidth: string;
127
+ selectedTab: {
128
+ tabId: string;
129
+ label: string;
130
+ };
131
+ };
132
+ };
111
133
  //# sourceMappingURL=TabList.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOrC,wBA2FE;AAEF,eAAO,MAAM,KAAK;WAAU,YAAY;;;;;;;;CAwDvC,CAAC"}
1
+ {"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOrC,wBAqGE;AAEF,eAAO,MAAM,KAAK;WAAU,YAAY;;;;;;;;CAwDvC,CAAC;AAOF,eAAO,MAAM,gBAAgB;WAAU,YAAY;;;;;;;;;CAgDlD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
3
  import type { ColorTypes } from '../../types/typography';
4
- export type TextProps = {
4
+ export interface TextProps {
5
5
  color?: ColorTypes;
6
6
  children?: React.ReactNode;
7
7
  className?: string;
@@ -9,14 +9,14 @@ export type TextProps = {
9
9
  highlightString?: string | string[];
10
10
  caseSensitiveHighlighting?: boolean;
11
11
  highlightWithBackground?: boolean;
12
- };
13
- export type HighlightTextProps = {
12
+ }
13
+ export interface HighlightTextProps {
14
14
  text: string;
15
15
  highlight: string | string[];
16
16
  highlightClassName?: string;
17
17
  caseSensitiveHighlighting?: boolean;
18
18
  highlightWithBackground?: boolean;
19
- };
19
+ }
20
20
  export declare const JumboLarge: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
21
21
  export declare const JumboMedium: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
22
22
  export declare const JumboSmall: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,wBAAwB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AC5D,SAAS,EACT,eAAe,CAsChB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,IAAI,CAAC,iBAAiB,CAC3D,SAAS,EACT,eAAe,CAsChB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,IAAI,CAAC,iBAAiB,CAChE,SAAS,EACT,eAAe,CAsChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAClD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAClD,SAAS,EACT,eAAe,CAiChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,SAAS,EACT,eAAe,CAiChB,CAAC"}
@@ -22,7 +22,6 @@ const HighlightText = /*#__PURE__*/React.forwardRef((_ref, ref) => {
22
22
  } = _ref;
23
23
  // Split text on highlight term, include term itself into parts, ignore case
24
24
  // Convert highlight to an array if it's not already
25
- // @ts-ignore - TS2769 - No overload matches this call.
26
25
  const highlightArray = [].concat(highlight).filter(item => item !== '');
27
26
  const highlights = highlightArray.map(_string.escapeRegExp).join('|');
28
27
  const parts = text.split(new RegExp(`(${highlights})`, caseSensitiveHighlighting ? '' : 'gi')).filter(part => part !== '');
@@ -5,12 +5,12 @@ type ClassNames = Readonly<{
5
5
  title?: string;
6
6
  wrapper?: string;
7
7
  }>;
8
- export type TextTileProps = {
8
+ export interface TextTileProps {
9
9
  header?: React.ReactNode;
10
10
  iconName?: string;
11
11
  classNames?: ClassNames;
12
12
  description?: React.ReactNode;
13
- };
13
+ }
14
14
  export declare const TextTile: Flow.AbstractComponent<TextTileProps, HTMLDivElement>;
15
15
  export {};
16
16
  //# sourceMappingURL=TextTile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CA+BxE,CAAC"}
1
+ {"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CA+BxE,CAAC"}
@@ -1,16 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
- import type { Over } from '../../types/utils';
4
3
  type ClassNames = Readonly<{
5
4
  box?: string;
6
5
  textarea?: string;
7
6
  }>;
8
- export type TextareaProps = Over<React.TextareaHTMLAttributes<HTMLTextAreaElement>, {
7
+ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'name' | 'disabled' | 'placeholder' | 'locked' | 'error' | 'errorText' | 'label' | 'helperText' | 'classNames' | 'size' | 'required' | 'textCountLimit'> {
9
8
  value?: string;
10
- onChange?: (evt: React.ChangeEvent<HTMLInputElement>, isEnter?: boolean) => unknown;
11
- onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
12
- onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
13
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => unknown;
9
+ onChange?: (evt: React.ChangeEvent<HTMLTextAreaElement>, isEnter?: boolean) => unknown;
10
+ onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => unknown;
11
+ onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => unknown;
12
+ onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => unknown;
14
13
  name?: string;
15
14
  disabled?: boolean;
16
15
  placeholder?: string;
@@ -23,7 +22,7 @@ export type TextareaProps = Over<React.TextareaHTMLAttributes<HTMLTextAreaElemen
23
22
  size?: 'medium' | 'small';
24
23
  required?: boolean;
25
24
  textCountLimit?: number;
26
- }>;
25
+ }
27
26
  export declare const Textarea: Flow.AbstractComponent<TextareaProps, HTMLTextAreaElement>;
28
27
  export {};
29
28
  //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAO5C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EACjD;IACE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CACT,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EACxC,OAAO,CAAC,EAAE,OAAO,KACd,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,OAAO,CAAC;IAC9D,MAAM,CAAC,EAAE,CAA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ref) => {
17
17
  onChange,
18
18
  onFocus,
19
19
  onBlur,
20
+ onKeyDown,
20
21
  name,
21
22
  disabled,
22
23
  placeholder,
@@ -66,21 +67,14 @@ const Textarea_ = (props, ref) => {
66
67
  }, classNames?.box)
67
68
  }, /*#__PURE__*/React.createElement("textarea", _extends({}, textareaProps, {
68
69
  disabled: locked || disabled,
69
- name: name
70
- // @ts-ignore - TS2322 - Type '{ current: HTMLTextAreaElement | null; } | ((arg1: HTMLTextAreaElement | null) => unknown)' is not assignable to type 'Ref<HTMLTextAreaElement> | undefined'.
71
- ,
70
+ name: name,
72
71
  ref: ref,
73
72
  placeholder: placeholder,
74
- value: value
75
- // @ts-ignore - TS2322 - Type '((evt: ChangeEvent<HTMLInputElement>, isEnter?: boolean | undefined) => unknown) | undefined' is not assignable to type 'ChangeEventHandler<HTMLTextAreaElement> | undefined'.
76
- ,
77
- onChange: onChange
78
- // @ts-ignore - TS2322 - Type '((e: ChangeEvent<HTMLInputElement>) => unknown) | undefined' is not assignable to type 'FocusEventHandler<HTMLTextAreaElement> | undefined'.
79
- ,
80
- onFocus: onFocus
81
- // @ts-ignore - TS2322 - Type '((e: ChangeEvent<HTMLInputElement>) => unknown) | undefined' is not assignable to type 'FocusEventHandler<HTMLTextAreaElement> | undefined'.
82
- ,
73
+ value: value,
74
+ onChange: onChange,
75
+ onFocus: onFocus,
83
76
  onBlur: onBlur,
77
+ onKeyDown: onKeyDown,
84
78
  className: classNames?.textarea
85
79
  }))), (Boolean(helperText) || error) && /*#__PURE__*/React.createElement("div", {
86
80
  className: _TextareaModule.default.info
@@ -88,8 +82,4 @@ const Textarea_ = (props, ref) => {
88
82
  color: error && errorText ? 'danger' : disabled ? 'disabled' : 'secondary'
89
83
  }, error && errorText ? errorText : helperText ?? '')));
90
84
  };
91
-
92
- // @ts-ignore - TS2345 - Argument of type '(props: TextareaProps, ref: { current: null | HTMLTextAreaElement; } | ((arg1: null | HTMLTextAreaElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLTextAreaElement, TextareaProps>'.
93
- const Textarea = exports.Textarea = /*#__PURE__*/React.forwardRef(
94
- //@ts-expect-error
95
- Textarea_);
85
+ const Textarea = exports.Textarea = /*#__PURE__*/React.forwardRef(Textarea_);
@@ -8,11 +8,11 @@ type ClassNames = Readonly<{
8
8
  wrapper?: string;
9
9
  }>;
10
10
  export type Orientation = (typeof ORIENTATION)[keyof typeof ORIENTATION];
11
- export type TimelineProps = {
11
+ export interface TimelineProps {
12
12
  children: React.ReactNode;
13
13
  classNames?: ClassNames;
14
14
  orientation?: Orientation;
15
- };
15
+ }
16
16
  export declare const Timeline: Flow.AbstractComponent<TimelineProps, HTMLDivElement>;
17
17
  export {};
18
18
  //# sourceMappingURL=Timeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAOrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAgCF,eAAO,MAAM,QAAQ,EAGhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAOrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAWzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAkCD,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC"}
@@ -13,6 +13,11 @@ const ORIENTATION = exports.ORIENTATION = Object.freeze({
13
13
  left: 'left',
14
14
  right: 'right'
15
15
  });
16
+
17
+ // Define the expected props for timeline item elements
18
+
19
+ // Type for a timeline item element that can be cloned
20
+
16
21
  const Timeline_ = (_ref, ref) => {
17
22
  let {
18
23
  classNames,
@@ -20,23 +25,24 @@ const Timeline_ = (_ref, ref) => {
20
25
  children
21
26
  } = _ref;
22
27
  const childrenArray = React.Children.toArray(children).filter(Boolean);
23
- const timelineItems = childrenArray.map(timelineItem =>
24
- /*#__PURE__*/
25
- // @ts-ignore - TS2769 - No overload matches this call.
26
- React.cloneElement(timelineItem, {
27
- // @ts-ignore - TS2339 - Property 'props' does not exist on type 'string | number | bigint | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>'.
28
- ...timelineItem.props,
29
- orientation
30
- }));
28
+ const timelineItems = childrenArray.map(timelineItem => {
29
+ // Type guard to ensure timelineItem is a ReactElement
30
+ if (! /*#__PURE__*/React.isValidElement(timelineItem)) {
31
+ return timelineItem;
32
+ }
33
+
34
+ // Cast to our typed timeline item element
35
+ const timelineItemElement = timelineItem;
36
+ const timelineItemProps = timelineItemElement.props;
37
+ return /*#__PURE__*/React.cloneElement(timelineItemElement, {
38
+ ...timelineItemProps,
39
+ orientation
40
+ });
41
+ });
31
42
  return /*#__PURE__*/React.createElement("div", {
32
- // @ts-ignore - TS2322 - Type '{ current: HTMLDivElement | null; } | ((arg1: HTMLDivElement | null) => unknown)' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
33
43
  ref: ref,
34
44
  className: (0, _classify.classify)(_TimelineModule.default.timelineWrapper, classNames?.wrapper),
35
45
  "data-testid": "Timeline"
36
46
  }, timelineItems);
37
47
  };
38
-
39
- // @ts-ignore - TS2345 - Argument of type '({ classNames, orientation, children, }: TimelineProps, ref: { current: null | HTMLDivElement; } | ((arg1: null | HTMLDivElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLDivElement, TimelineProps>'.
40
- const Timeline = exports.Timeline = /*#__PURE__*/React.forwardRef(
41
- //@ts-expect-error
42
- Timeline_);
48
+ const Timeline = exports.Timeline = /*#__PURE__*/React.forwardRef(Timeline_);
@@ -10,7 +10,7 @@ type ClassNames = Readonly<{
10
10
  wrapper?: string;
11
11
  description?: string;
12
12
  }>;
13
- export type TimelineItemProps = {
13
+ export interface TimelineItemProps {
14
14
  id?: string;
15
15
  title?: React.ReactNode;
16
16
  iconName: string;
@@ -22,7 +22,7 @@ export type TimelineItemProps = {
22
22
  orientation?: Orientation;
23
23
  parentComponent?: React.ReactNode;
24
24
  enableCardWrapper?: boolean;
25
- };
25
+ }
26
26
  export declare const TimelineItem: Flow.AbstractComponent<TimelineItemProps, HTMLDivElement>;
27
27
  export {};
28
28
  //# sourceMappingURL=TimelineItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.tsx"],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O,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAK1D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAM7C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAuFD,eAAO,MAAM,YAAY,EAEpB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC"}
@@ -19,7 +19,6 @@ const TimelineItem_ = (_ref, ref) => {
19
19
  id,
20
20
  title,
21
21
  iconName,
22
- // @ts-ignore - TS2322 - Type 'string' is not assignable to type '"regular" | "solid" | "duotone" | "brands"'.
23
22
  iconType = _Icon.ICON_TYPE.solid,
24
23
  children,
25
24
  iconColor = _typography.TEXT_COLORS.information,
@@ -36,9 +35,7 @@ const TimelineItem_ = (_ref, ref) => {
36
35
  className: (0, _classify.classify)(_TimelineModule.default.timelineItemWrapper, classNames?.wrapper),
37
36
  style: {
38
37
  '--align': orientation === 'left' ? 'flex-start' : 'flex-end'
39
- }
40
- // @ts-ignore - TS2322 - Type '{ current: HTMLDivElement | null; } | ((arg1: HTMLDivElement | null) => unknown)' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
41
- ,
38
+ },
42
39
  ref: ref
43
40
  }, parentComponent, /*#__PURE__*/React.createElement("div", {
44
41
  style: {
@@ -76,8 +73,4 @@ const TimelineItem_ = (_ref, ref) => {
76
73
  }, children)
77
74
  }, children))));
78
75
  };
79
-
80
- // @ts-ignore - TS2345 - Argument of type '({ id, title, iconName, iconType, children, iconColor, classNames, description, orientation, parentComponent, enableCardWrapper, }: TimelineItemProps, ref: { current: null | HTMLDivElement; } | ((arg1: null | HTMLDivElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLDivElement, TimelineItemProps>'.
81
- const TimelineItem = exports.TimelineItem = /*#__PURE__*/React.forwardRef(
82
- //@ts-expect-error
83
- TimelineItem_);
76
+ const TimelineItem = exports.TimelineItem = /*#__PURE__*/React.forwardRef(TimelineItem_);
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineItem.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAStD,wBAwIE;AAEF,eAAO,MAAM,QAAQ;WAAU,iBAAiB;;;;;;;CAS/C,CAAC;AASF,eAAO,MAAM,oBAAoB;WAAU,iBAAiB;;;;;;;CAqC3D,CAAC"}
1
+ {"version":3,"file":"TimelineItem.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAStD,wBAwIE;AAEF,eAAO,MAAM,QAAQ;WAAU,iBAAiB;;;;;;;CAS/C,CAAC;AASF,eAAO,MAAM,oBAAoB;WAAU,iBAAiB;;;;;;;CAoC3D,CAAC"}
@@ -12,7 +12,7 @@ export declare const TOAST_SEMANTIC: Readonly<{
12
12
  primary: "primary";
13
13
  }>;
14
14
  export type ToastSemanticType = (typeof TOAST_SEMANTIC)[keyof typeof TOAST_SEMANTIC];
15
- export type ToastProps = {
15
+ export interface ToastProps {
16
16
  classNames?: ClassNames;
17
17
  children?: React.ReactNode;
18
18
  time?: string;
@@ -21,22 +21,22 @@ export type ToastProps = {
21
21
  initialFocus?: number;
22
22
  customIcon?: React.ReactNode;
23
23
  hideCloseIcon?: boolean;
24
- };
25
- export type ToastTitleProps = {
24
+ }
25
+ export interface ToastTitleProps {
26
26
  children?: React.ReactNode;
27
27
  className?: string;
28
28
  semantic?: ToastSemanticType;
29
- };
29
+ }
30
30
  export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
31
- export type ToastBodyProps = {
31
+ export interface ToastBodyProps {
32
32
  children?: React.ReactNode;
33
33
  className?: string;
34
- };
34
+ }
35
35
  export declare const ToastBody: Flow.AbstractComponent<ToastBodyProps, HTMLDivElement>;
36
- export type ToastFooterProps = {
36
+ export interface ToastFooterProps {
37
37
  children?: React.ReactNode;
38
38
  onClose?: () => void;
39
- };
39
+ }
40
40
  export declare const ToastFooter: {
41
41
  ({ children, onClose }: ToastFooterProps): React.JSX.Element | null;
42
42
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAUrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAMzB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAwDF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EA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