@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
@@ -0,0 +1,267 @@
1
+ import * as React from 'react';
2
+ import { EmptyState } from '../../EmptyState';
3
+ import type { SankeyChartProps } from './';
4
+ declare const _default: {
5
+ tags: string[];
6
+ title: string;
7
+ component: ({ series, emptyText, drilldown, cardTitle, isLoading, nodeWidth, showLegend, classNames, nodePadding, hasEmptyData, headerActions, customExportOptions, ...userOptions }: SankeyChartProps) => React.ReactNode;
8
+ argTypes: {
9
+ isLoading: {
10
+ description: string;
11
+ control: {
12
+ type: string;
13
+ };
14
+ table: {
15
+ type: {
16
+ summary: string;
17
+ };
18
+ defaultValue: {
19
+ summary: string;
20
+ };
21
+ };
22
+ };
23
+ classNames: {
24
+ description: string;
25
+ control: {
26
+ type: string;
27
+ };
28
+ table: {
29
+ type: {
30
+ summary: string;
31
+ };
32
+ };
33
+ };
34
+ cardTitle: {
35
+ description: string;
36
+ control: {
37
+ type: string;
38
+ };
39
+ type: {
40
+ summary: string;
41
+ };
42
+ };
43
+ customExportOptions: {
44
+ description: string;
45
+ control: {
46
+ type: string;
47
+ };
48
+ table: {
49
+ type: {
50
+ summary: string;
51
+ };
52
+ };
53
+ };
54
+ series: {
55
+ description: string;
56
+ table: {
57
+ type: {
58
+ summary: string;
59
+ };
60
+ };
61
+ };
62
+ headerActions: {
63
+ description: string;
64
+ table: {
65
+ type: {
66
+ summary: string;
67
+ };
68
+ };
69
+ };
70
+ nodeWidth: {
71
+ description: string;
72
+ control: {
73
+ type: string;
74
+ };
75
+ table: {
76
+ type: {
77
+ summary: string;
78
+ };
79
+ defaultValue: {
80
+ summary: string;
81
+ };
82
+ };
83
+ };
84
+ nodePadding: {
85
+ description: string;
86
+ control: {
87
+ type: string;
88
+ };
89
+ table: {
90
+ type: {
91
+ summary: string;
92
+ };
93
+ defaultValue: {
94
+ summary: string;
95
+ };
96
+ };
97
+ };
98
+ showLegend: {
99
+ description: string;
100
+ control: {
101
+ type: string;
102
+ };
103
+ table: {
104
+ type: {
105
+ summary: string;
106
+ };
107
+ defaultValue: {
108
+ summary: string;
109
+ };
110
+ };
111
+ };
112
+ hasEmptyData: {
113
+ description: string;
114
+ control: {
115
+ type: string;
116
+ };
117
+ };
118
+ emptyText: {
119
+ description: string;
120
+ table: {
121
+ type: {
122
+ summary: string;
123
+ };
124
+ };
125
+ };
126
+ };
127
+ parameters: {
128
+ componentSubtitle: string;
129
+ docs: {
130
+ description: {
131
+ component: string;
132
+ };
133
+ };
134
+ storySource: {
135
+ componentPath: string;
136
+ };
137
+ };
138
+ };
139
+ export default _default;
140
+ export declare const _SankeyChart: {
141
+ (args: SankeyChartProps): React.ReactNode;
142
+ args: {
143
+ classNames: {
144
+ wrapper: string;
145
+ };
146
+ cardTitle: string;
147
+ customExportOptions: {
148
+ key: string;
149
+ label: string;
150
+ format: string;
151
+ }[];
152
+ series: {
153
+ name: string;
154
+ data: {
155
+ from: string;
156
+ to: string;
157
+ }[];
158
+ nodes: {
159
+ id: string;
160
+ name: string;
161
+ }[];
162
+ }[];
163
+ nodeWidth: number;
164
+ nodePadding: number;
165
+ showLegend: boolean;
166
+ };
167
+ };
168
+ export declare const _SankeyChartWebsiteFlow: {
169
+ (args: SankeyChartProps): React.ReactNode;
170
+ args: {
171
+ classNames: {
172
+ wrapper: string;
173
+ };
174
+ cardTitle: string;
175
+ customExportOptions: {
176
+ key: string;
177
+ label: string;
178
+ format: string;
179
+ }[];
180
+ series: {
181
+ name: string;
182
+ data: {
183
+ from: string;
184
+ to: string;
185
+ }[];
186
+ nodes: {
187
+ id: string;
188
+ name: string;
189
+ }[];
190
+ }[];
191
+ nodeWidth: number;
192
+ nodePadding: number;
193
+ showLegend: boolean;
194
+ };
195
+ };
196
+ export declare const _SankeyChartBudgetAllocation: {
197
+ (args: SankeyChartProps): React.ReactNode;
198
+ args: {
199
+ classNames: {
200
+ wrapper: string;
201
+ };
202
+ cardTitle: string;
203
+ customExportOptions: {
204
+ key: string;
205
+ label: string;
206
+ format: string;
207
+ }[];
208
+ series: {
209
+ name: string;
210
+ data: {
211
+ from: string;
212
+ to: string;
213
+ }[];
214
+ nodes: {
215
+ id: string;
216
+ name: string;
217
+ }[];
218
+ }[];
219
+ nodeWidth: number;
220
+ nodePadding: number;
221
+ showLegend: boolean;
222
+ };
223
+ };
224
+ export declare const _SankeyChartWithEmptyData: {
225
+ (args: SankeyChartProps): React.ReactNode;
226
+ args: {
227
+ classNames: {
228
+ wrapper: string;
229
+ };
230
+ cardTitle: string;
231
+ customExportOptions: {
232
+ key: string;
233
+ label: string;
234
+ format: string;
235
+ }[];
236
+ series: {
237
+ name: string;
238
+ data: {
239
+ from: string;
240
+ to: string;
241
+ }[];
242
+ nodes: {
243
+ id: string;
244
+ name: string;
245
+ }[];
246
+ }[];
247
+ hasEmptyData: boolean;
248
+ emptyText: React.ReactElement<React.ComponentProps<typeof EmptyState>>;
249
+ };
250
+ };
251
+ export declare const _SankeyChartWithDrilldown: {
252
+ (args: SankeyChartProps): React.ReactNode;
253
+ args: {
254
+ classNames: {
255
+ wrapper: string;
256
+ };
257
+ customExportOptions: {
258
+ key: string;
259
+ label: string;
260
+ format: string;
261
+ }[];
262
+ nodeWidth: number;
263
+ nodePadding: number;
264
+ showLegend: boolean;
265
+ };
266
+ };
267
+ //# sourceMappingURL=SankeyChart.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SankeyChart.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SankeyChart/SankeyChart.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMzC,wBAyOE;AA4KF,eAAO,MAAM,YAAY;WAAU,gBAAgB,GAAG,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;CAepE,CAAC;AAYF,eAAO,MAAM,uBAAuB;WAC5B,gBAAgB,GACrB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AAYF,eAAO,MAAM,4BAA4B;WACjC,gBAAgB,GACrB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AAYF,eAAO,MAAM,yBAAyB;WAC9B,gBAAgB,GACrB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;mBAiCX,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;;CAlBjE,CAAC;AAqBF,eAAO,MAAM,yBAAyB;WAC9B,gBAAgB,GACrB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;CAkBjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './SankeyChart';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SankeyChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _SankeyChart = require("./SankeyChart");
7
+ Object.keys(_SankeyChart).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _SankeyChart[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _SankeyChart[key];
14
+ }
15
+ });
16
+ });
@@ -1,15 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import type { ChartOptions, DataOptionsType } from '../../../types/charts';
3
- import type { Over } from '../../../types/utils';
4
3
  import type { ChartWrapperClassNames, ExportOptionType } from '../ChartWrapper';
5
4
  type ClassNames = Readonly<ChartWrapperClassNames & {
6
5
  highChart?: string;
7
6
  }>;
8
- export type SpiderSeriesItem = {
7
+ export interface SpiderSeriesItem {
9
8
  name: string;
10
9
  data: DataOptionsType[];
11
- };
12
- export type SpiderChartProps = Over<ChartOptions, {
10
+ }
11
+ export interface SpiderChartProps extends Omit<ChartOptions, 'isLoading' | 'classNames' | 'cardTitle' | 'customExportOptions' | 'headerActions' | 'series' | 'hasEmptyData' | 'emptyText'> {
13
12
  isLoading?: boolean;
14
13
  classNames?: ClassNames;
15
14
  cardTitle?: React.ReactNode;
@@ -18,7 +17,7 @@ export type SpiderChartProps = Over<ChartOptions, {
18
17
  series: Array<SpiderSeriesItem>;
19
18
  hasEmptyData?: boolean;
20
19
  emptyText?: React.ReactNode;
21
- }>;
20
+ }
22
21
  export declare const SpiderChart: ({ isLoading, classNames, cardTitle, customExportOptions, headerActions, series, hasEmptyData, emptyText, ...userOptions }: SpiderChartProps) => React.JSX.Element;
23
22
  export {};
24
23
  //# sourceMappingURL=SpiderChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpiderChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SpiderChart/SpiderChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAO/C,OAAO,KAAK,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAe9E,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,YAAY,EACZ;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CACF,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2HAUzB,gBAAgB,sBAyClB,CAAC"}
1
+ {"version":3,"file":"SpiderChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SpiderChart/SpiderChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAOzE,OAAO,KAAK,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAe9E,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,WAAW,CACd;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,GAAI,2HAUzB,gBAAgB,sBAyClB,CAAC"}
@@ -1,5 +1,10 @@
1
- @value (colorFillPrimary) from '../../../styles/variables/_color.css';
2
- @value (size400, size540, size660, size880, sizeFluid) from '../../../styles/variables/_size.css';
1
+ @value (
2
+ size400,
3
+ size540,
4
+ size660,
5
+ size880,
6
+ sizeFluid
7
+ ) from '../../../styles/variables/_size.css';
3
8
 
4
9
  .wrapper {
5
10
  display: flex;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import type { ChartOptions, DataOptionsType, Drilldown } from '../../../types/charts';
3
+ import type { ChartWrapperClassNames, ExportOptionType } from '../ChartWrapper';
4
+ type ClassNames = Readonly<ChartWrapperClassNames & {
5
+ highChart?: string;
6
+ }>;
7
+ export interface StackedBarSeries {
8
+ name: string;
9
+ data: DataOptionsType[];
10
+ }
11
+ export interface StackedBarChartProps extends Omit<ChartOptions, 'series' | 'isLoading' | 'drilldown' | 'cardTitle' | 'emptyText' | 'classNames' | 'hasEmptyData' | 'headerActions' | 'customExportOptions'> {
12
+ series: Array<StackedBarSeries>;
13
+ isLoading?: boolean;
14
+ drilldown?: Drilldown;
15
+ cardTitle?: React.ReactNode;
16
+ emptyText?: React.ReactNode;
17
+ classNames?: ClassNames;
18
+ hasEmptyData?: boolean;
19
+ headerActions?: React.ReactNode;
20
+ customExportOptions?: Array<ExportOptionType> | null;
21
+ }
22
+ export declare const StackedBarChart: ({ series, isLoading, drilldown, emptyText, cardTitle, classNames, hasEmptyData, headerActions, customExportOptions, ...userOptions }: StackedBarChartProps) => React.ReactNode;
23
+ export {};
24
+ //# sourceMappingURL=StackedBarChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackedBarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,SAAS,EACV,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAe9E,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,YAAY,EACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,cAAc,GACd,eAAe,GACf,qBAAqB,CACxB;IACD,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,eAAe,GAAI,sIAW7B,oBAAoB,KAAG,KAAK,CAAC,SAmD/B,CAAC"}
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StackedBarChart = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _highcharts = _interopRequireDefault(require("highcharts"));
9
+ var _highchartsMore = _interopRequireDefault(require("highcharts/highcharts-more"));
10
+ var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
11
+ var _charts = require("../../../utils/charts");
12
+ var _classify = _interopRequireDefault(require("../../../utils/classify"));
13
+ var _ChartWrapper = require("../ChartWrapper");
14
+ var _StackedBarChartModule = _interopRequireDefault(require("./StackedBarChart.module.css"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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); }
17
+ if (!!_highchartsMore.default && !!_highcharts.default && typeof _highchartsMore.default === 'function' && typeof _highcharts.default === 'object') {
18
+ (0, _highchartsMore.default)(_highcharts.default);
19
+ }
20
+ const StackedBarChart = _ref => {
21
+ let {
22
+ series,
23
+ isLoading,
24
+ drilldown,
25
+ emptyText,
26
+ cardTitle,
27
+ classNames,
28
+ hasEmptyData,
29
+ headerActions,
30
+ customExportOptions,
31
+ ...userOptions
32
+ } = _ref;
33
+ const chartRef = React.useRef(null);
34
+ const stackedBarSeries = series.map((seriesItem, index) => ({
35
+ ...seriesItem,
36
+ name: seriesItem.name,
37
+ data: seriesItem.data,
38
+ color: (0, _charts.getDataVizColor)(index),
39
+ stacking: 'normal',
40
+ pointWidth: _charts.columnPlotWidth
41
+ }));
42
+ const defaultStackedBarChartOptions = (0, _charts.getStackedBarChartOptions)();
43
+ const stackedBarDrilldown = drilldown ? {
44
+ ...drilldown,
45
+ breadcrumbs: {
46
+ floating: false
47
+ }
48
+ } : {};
49
+
50
+ //$FlowFixMe[cannot-spread-inexact]
51
+ const chartOptions = (0, _charts.mergeChartUserOptions)(defaultStackedBarChartOptions, {
52
+ series: stackedBarSeries,
53
+ drilldown: stackedBarDrilldown,
54
+ ...userOptions
55
+ });
56
+ const {
57
+ highChart,
58
+ ...wrapperClassNames
59
+ } = classNames || {};
60
+ return /*#__PURE__*/React.createElement(_ChartWrapper.ChartWrapper, {
61
+ ref: chartRef,
62
+ title: cardTitle,
63
+ isLoading: isLoading,
64
+ emptyText: emptyText,
65
+ classNames: wrapperClassNames,
66
+ hasEmptyData: hasEmptyData,
67
+ headerActions: headerActions,
68
+ customExportOptions: customExportOptions
69
+ }, /*#__PURE__*/React.createElement(_highchartsReactOfficial.default, {
70
+ highcharts: _highcharts.default,
71
+ containerProps: {
72
+ className: (0, _classify.default)(_StackedBarChartModule.default.stackedBarChartContainer, highChart)
73
+ },
74
+ ref: chartRef,
75
+ options: chartOptions
76
+ }));
77
+ };
78
+ exports.StackedBarChart = StackedBarChart;
@@ -0,0 +1,22 @@
1
+ @value (
2
+ size400,
3
+ size540,
4
+ size660,
5
+ size880,
6
+ sizeFluid
7
+ ) from '../../../styles/variables/_size.css';
8
+
9
+ .wrapper {
10
+ display: flex;
11
+ }
12
+
13
+ .stackedBarChartContainer {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ width: sizeFluid;
18
+ min-width: size660;
19
+ max-width: size880;
20
+ min-height: size400;
21
+ max-height: size540;
22
+ }
@@ -0,0 +1,192 @@
1
+ import * as React from 'react';
2
+ import type { StackedBarChartProps } from './';
3
+ declare const _default: {
4
+ tags: string[];
5
+ title: string;
6
+ component: ({ series, isLoading, drilldown, emptyText, cardTitle, classNames, hasEmptyData, headerActions, customExportOptions, ...userOptions }: StackedBarChartProps) => React.ReactNode;
7
+ argTypes: {
8
+ isLoading: {
9
+ description: string;
10
+ control: {
11
+ type: string;
12
+ };
13
+ table: {
14
+ type: {
15
+ summary: string;
16
+ };
17
+ defaultValue: {
18
+ summary: string;
19
+ };
20
+ };
21
+ };
22
+ classNames: {
23
+ description: string;
24
+ control: {
25
+ type: string;
26
+ };
27
+ table: {
28
+ type: {
29
+ summary: string;
30
+ };
31
+ };
32
+ };
33
+ cardTitle: {
34
+ description: string;
35
+ control: {
36
+ type: string;
37
+ };
38
+ type: {
39
+ summary: string;
40
+ };
41
+ };
42
+ customExportOptions: {
43
+ description: string;
44
+ control: {
45
+ type: string;
46
+ };
47
+ table: {
48
+ type: {
49
+ summary: string;
50
+ };
51
+ };
52
+ };
53
+ series: {
54
+ description: string;
55
+ table: {
56
+ type: {
57
+ summary: string;
58
+ };
59
+ };
60
+ };
61
+ drilldown: {
62
+ description: string;
63
+ table: {
64
+ type: {
65
+ summary: string;
66
+ };
67
+ };
68
+ };
69
+ headerActions: {
70
+ description: string;
71
+ table: {
72
+ type: {
73
+ summary: string;
74
+ };
75
+ };
76
+ };
77
+ hasEmptyData: {
78
+ description: string;
79
+ control: {
80
+ type: string;
81
+ };
82
+ };
83
+ emptyText: {
84
+ description: string;
85
+ table: {
86
+ type: {
87
+ summary: string;
88
+ };
89
+ };
90
+ };
91
+ };
92
+ parameters: {
93
+ docs: {
94
+ subtitle: string;
95
+ description: {
96
+ component: string;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ export default _default;
102
+ export declare const _StackedBarChart: {
103
+ (args: StackedBarChartProps): React.ReactNode;
104
+ args: {
105
+ classNames: {
106
+ wrapper: string;
107
+ };
108
+ cardTitle: string;
109
+ customExportOptions: {
110
+ key: string;
111
+ label: string;
112
+ format: string;
113
+ }[];
114
+ series: {
115
+ name: string;
116
+ data: {
117
+ name: string;
118
+ y: number;
119
+ }[];
120
+ }[];
121
+ yAxis: {
122
+ title: {
123
+ text: string;
124
+ };
125
+ };
126
+ xAxis: {
127
+ title: {
128
+ text: string;
129
+ };
130
+ };
131
+ };
132
+ };
133
+ export declare const _StackedBarChartWithDrilldown: {
134
+ (args: StackedBarChartProps): React.ReactNode;
135
+ args: {
136
+ classNames: {
137
+ wrapper: string;
138
+ };
139
+ cardTitle: string;
140
+ customExportOptions: {
141
+ key: string;
142
+ label: string;
143
+ format: string;
144
+ }[];
145
+ series: {
146
+ name: string;
147
+ data: {
148
+ name: string;
149
+ y: number;
150
+ drilldown: string;
151
+ }[];
152
+ }[];
153
+ drilldown: {
154
+ series: {
155
+ id: string;
156
+ name: string;
157
+ data: {
158
+ name: string;
159
+ y: number;
160
+ }[];
161
+ }[];
162
+ };
163
+ yAxis: {
164
+ title: {
165
+ text: string;
166
+ };
167
+ };
168
+ xAxis: {
169
+ title: {
170
+ text: string;
171
+ };
172
+ };
173
+ };
174
+ };
175
+ export declare const _StackedBarChartWithEmptyData: {
176
+ (args: StackedBarChartProps): React.ReactNode;
177
+ args: {
178
+ classNames: {
179
+ wrapper: string;
180
+ };
181
+ cardTitle: string;
182
+ customExportOptions: {
183
+ key: string;
184
+ label: string;
185
+ format: string;
186
+ }[];
187
+ series: never[];
188
+ hasEmptyData: boolean;
189
+ emptyText: React.JSX.Element;
190
+ };
191
+ };
192
+ //# sourceMappingURL=StackedBarChart.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackedBarChart.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM7C,wBA6IE;AAqDF,eAAO,MAAM,gBAAgB;WACrB,oBAAoB,GACzB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AA4JF,eAAO,MAAM,6BAA6B;WAClC,oBAAoB,GACzB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AAiBF,eAAO,MAAM,6BAA6B;WAClC,oBAAoB,GACzB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;CAejB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StackedBarChart';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}