@spaced-out/ui-design-system 0.4.15-beta.0 → 0.4.15

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 (1080) hide show
  1. package/.cspell/custom-words.txt +0 -5
  2. package/.storybook/main.js +6 -6
  3. package/CHANGELOG.md +6 -1
  4. package/babel.config.js +1 -1
  5. package/config.js +3 -3
  6. package/cspell.json +1 -3
  7. package/eslint.config.mjs +33 -54
  8. package/gulpfile.js +35 -6
  9. package/lib/components/Accordion/Accordion.js +5 -7
  10. package/lib/components/Accordion/Accordion.js.flow +115 -0
  11. package/lib/components/Accordion/AccordionGroup.js +9 -12
  12. package/lib/components/Accordion/AccordionGroup.js.flow +77 -0
  13. package/lib/components/Accordion/index.js.flow +4 -0
  14. package/lib/components/Avatar/Avatar.js +6 -14
  15. package/lib/components/Avatar/Avatar.js.flow +269 -0
  16. package/lib/components/Avatar/index.js.flow +3 -0
  17. package/lib/components/AvatarGroup/AvatarGroup.js +0 -5
  18. package/lib/components/AvatarGroup/AvatarGroup.js.flow +164 -0
  19. package/lib/components/AvatarGroup/index.js.flow +3 -0
  20. package/lib/components/Badge/Badge.js.flow +147 -0
  21. package/lib/components/Badge/index.js.flow +3 -0
  22. package/lib/components/BadgedIcon/BadgedIcon.js +1 -3
  23. package/lib/components/BadgedIcon/BadgedIcon.js.flow +73 -0
  24. package/lib/components/BadgedIcon/index.js.flow +3 -0
  25. package/lib/components/Banner/Banner.js.flow +60 -0
  26. package/lib/components/Banner/index.js.flow +3 -0
  27. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +1 -3
  28. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js.flow +58 -0
  29. package/lib/components/Breadcrumbs/BreadcrumbLink/index.js.flow +3 -0
  30. package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -5
  31. package/lib/components/Breadcrumbs/Breadcrumbs.js.flow +59 -0
  32. package/lib/components/Breadcrumbs/index.js.flow +4 -0
  33. package/lib/components/Button/Button.js +8 -26
  34. package/lib/components/Button/Button.js.flow +286 -0
  35. package/lib/components/Button/index.js.flow +16 -0
  36. package/lib/components/ButtonDropdown/ButtonDropdown.js +3 -13
  37. package/lib/components/ButtonDropdown/ButtonDropdown.js.flow +226 -0
  38. package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +0 -6
  39. package/lib/components/ButtonDropdown/SimpleButtonDropdown.js.flow +169 -0
  40. package/lib/components/ButtonDropdown/index.js.flow +4 -0
  41. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js.flow +82 -0
  42. package/lib/components/ButtonTabs/ButtonTab/index.js.flow +3 -0
  43. package/lib/components/ButtonTabs/ButtonTabDropdown.js +3 -12
  44. package/lib/components/ButtonTabs/ButtonTabDropdown.js.flow +150 -0
  45. package/lib/components/ButtonTabs/ButtonTabs.js +0 -3
  46. package/lib/components/ButtonTabs/ButtonTabs.js.flow +121 -0
  47. package/lib/components/ButtonTabs/index.js.flow +4 -0
  48. package/lib/components/Card/Card.js +1 -6
  49. package/lib/components/Card/Card.js.flow +174 -0
  50. package/lib/components/Card/index.js.flow +3 -0
  51. package/lib/components/Charts/ChartTooltip/index.js.flow +15 -0
  52. package/lib/components/Charts/ChartWrapper/ChartWrapper.js +7 -5
  53. package/lib/components/Charts/ChartWrapper/ChartWrapper.js.flow +190 -0
  54. package/lib/components/Charts/ChartWrapper/index.js.flow +3 -0
  55. package/lib/components/Charts/ColumnChart/ColumnChart.js +6 -8
  56. package/lib/components/Charts/ColumnChart/ColumnChart.js.flow +126 -0
  57. package/lib/components/Charts/ColumnChart/index.js.flow +3 -0
  58. package/lib/components/Charts/DonutChart/DonutChart.js +6 -7
  59. package/lib/components/Charts/DonutChart/DonutChart.js.flow +158 -0
  60. package/lib/components/Charts/DonutChart/index.js.flow +3 -0
  61. package/lib/components/Charts/FunnelChart/FunnelChart.js +7 -6
  62. package/lib/components/Charts/FunnelChart/FunnelChart.js.flow +115 -0
  63. package/lib/components/Charts/FunnelChart/index.js.flow +3 -0
  64. package/lib/components/Charts/LineChart/LineChart.js +6 -6
  65. package/lib/components/Charts/LineChart/LineChart.js.flow +113 -0
  66. package/lib/components/Charts/LineChart/index.js.flow +3 -0
  67. package/lib/components/Charts/SpiderChart/SpiderChart.js +5 -0
  68. package/lib/components/Charts/SpiderChart/SpiderChart.js.flow +111 -0
  69. package/lib/components/Charts/SpiderChart/index.js.flow +3 -0
  70. package/lib/components/Charts/index.js.flow +9 -0
  71. package/lib/components/ChatBubble/ChatBubble.js +2 -5
  72. package/lib/components/ChatBubble/ChatBubble.js.flow +222 -0
  73. package/lib/components/ChatBubble/index.js.flow +3 -0
  74. package/lib/components/Checkbox/Checkbox.js +0 -2
  75. package/lib/components/Checkbox/Checkbox.js.flow +168 -0
  76. package/lib/components/Checkbox/CheckboxGroup.js +0 -8
  77. package/lib/components/Checkbox/CheckboxGroup.js.flow +116 -0
  78. package/lib/components/Checkbox/index.js.flow +3 -0
  79. package/lib/components/Chip/Chip.js +2 -10
  80. package/lib/components/Chip/Chip.js.flow +199 -0
  81. package/lib/components/Chip/index.js.flow +4 -0
  82. package/lib/components/CircularLoader/CircularLoader.js.flow +58 -0
  83. package/lib/components/CircularLoader/index.js.flow +3 -0
  84. package/lib/components/CollapsibleCard/CollapsibleCard.js.flow +146 -0
  85. package/lib/components/CollapsibleCard/index.js.flow +3 -0
  86. package/lib/components/Combobox/Combobox.js +3 -16
  87. package/lib/components/Combobox/Combobox.js.flow +287 -0
  88. package/lib/components/Combobox/helper.js +0 -1
  89. package/lib/components/Combobox/helper.js.flow +204 -0
  90. package/lib/components/Combobox/index.js.flow +3 -0
  91. package/lib/components/ConditionalWrapper/ConditionalWrapper.js +2 -0
  92. package/lib/components/ConditionalWrapper/ConditionalWrapper.js.flow +16 -0
  93. package/lib/components/ConditionalWrapper/index.js.flow +3 -0
  94. package/lib/components/DateRangePicker/Calendar.js +2 -4
  95. package/lib/components/DateRangePicker/Calendar.js.flow +112 -0
  96. package/lib/components/DateRangePicker/DateRangePicker.js +1 -0
  97. package/lib/components/DateRangePicker/DateRangePicker.js.flow +214 -0
  98. package/lib/components/DateRangePicker/DateRangeWrapper.js +5 -13
  99. package/lib/components/DateRangePicker/DateRangeWrapper.js.flow +384 -0
  100. package/lib/components/DateRangePicker/Day.js +4 -6
  101. package/lib/components/DateRangePicker/Day.js.flow +75 -0
  102. package/lib/components/DateRangePicker/index.js.flow +3 -0
  103. package/lib/components/Dialog/Dialog.js.flow +228 -0
  104. package/lib/components/Dialog/index.js.flow +2 -0
  105. package/lib/components/Disclaimer/Disclaimer.js +0 -1
  106. package/lib/components/Disclaimer/Disclaimer.js.flow +41 -0
  107. package/lib/components/Disclaimer/index.js.flow +3 -0
  108. package/lib/components/Dropdown/Dropdown.js +3 -14
  109. package/lib/components/Dropdown/Dropdown.js.flow +176 -0
  110. package/lib/components/Dropdown/SimpleDropdown.js +1 -7
  111. package/lib/components/Dropdown/SimpleDropdown.js.flow +170 -0
  112. package/lib/components/Dropdown/index.js.flow +4 -0
  113. package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.js.flow +112 -0
  114. package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.js.flow +198 -0
  115. package/lib/components/EmptyState/EmptyImages/DataEmptyImage.js.flow +120 -0
  116. package/lib/components/EmptyState/EmptyImages/FileEmptyImage.js.flow +137 -0
  117. package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.js.flow +68 -0
  118. package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.js.flow +71 -0
  119. package/lib/components/EmptyState/EmptyImages/index.js.flow +8 -0
  120. package/lib/components/EmptyState/EmptyState.js.flow +91 -0
  121. package/lib/components/EmptyState/index.js.flow +3 -0
  122. package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js.flow +89 -0
  123. package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js.flow +121 -0
  124. package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js.flow +241 -0
  125. package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js.flow +77 -0
  126. package/lib/components/ErrorMessage/ErrorImages/index.js.flow +6 -0
  127. package/lib/components/ErrorMessage/ErrorMessage.js.flow +95 -0
  128. package/lib/components/ErrorMessage/index.js.flow +3 -0
  129. package/lib/components/FileUpload/FileBlock/FileBlock.js.flow +139 -0
  130. package/lib/components/FileUpload/FileBlock/index.js.flow +3 -0
  131. package/lib/components/FileUpload/FileUpload.js +1 -6
  132. package/lib/components/FileUpload/FileUpload.js.flow +212 -0
  133. package/lib/components/FileUpload/index.js.flow +4 -0
  134. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +1 -9
  135. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js.flow +166 -0
  136. package/lib/components/FilterButtonOverlay/index.js.flow +3 -0
  137. package/lib/components/FocusManager/FocusManager.js.flow +57 -0
  138. package/lib/components/FocusManager/index.js.flow +3 -0
  139. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +0 -11
  140. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js.flow +152 -0
  141. package/lib/components/FocusManagerWithArrowKeyNavigation/index.js.flow +3 -0
  142. package/lib/components/FormTitleWrapper/FormTitleWrapper.js.flow +68 -0
  143. package/lib/components/FormTitleWrapper/index.js.flow +3 -0
  144. package/lib/components/Grid/Grid.js +0 -8
  145. package/lib/components/Grid/Grid.js.flow +110 -0
  146. package/lib/components/Grid/index.js.flow +3 -0
  147. package/lib/components/Icon/ClickableIcon.js +2 -4
  148. package/lib/components/Icon/ClickableIcon.js.flow +111 -0
  149. package/lib/components/Icon/Icon.docs.js +1 -1
  150. package/lib/components/Icon/Icon.docs.js.flow +120 -0
  151. package/lib/components/Icon/Icon.js +1 -3
  152. package/lib/components/Icon/Icon.js.flow +77 -0
  153. package/lib/components/Icon/SemanticIcon.js +1 -3
  154. package/lib/components/Icon/SemanticIcon.js.flow +48 -0
  155. package/lib/components/Icon/index.js.flow +5 -0
  156. package/lib/components/InContextAlert/InContextAlert.js +0 -2
  157. package/lib/components/InContextAlert/InContextAlert.js.flow +208 -0
  158. package/lib/components/InContextAlert/index.js.flow +3 -0
  159. package/lib/components/InfinitePagination/InfinitePagination.js +2 -9
  160. package/lib/components/InfinitePagination/InfinitePagination.js.flow +122 -0
  161. package/lib/components/InfinitePagination/index.js.flow +3 -0
  162. package/lib/components/InlineDropdown/InlineDropdown.js +3 -12
  163. package/lib/components/InlineDropdown/InlineDropdown.js.flow +181 -0
  164. package/lib/components/InlineDropdown/SimpleInlineDropdown.js +0 -7
  165. package/lib/components/InlineDropdown/SimpleInlineDropdown.js.flow +167 -0
  166. package/lib/components/InlineDropdown/index.js.flow +4 -0
  167. package/lib/components/Input/Input.js +4 -15
  168. package/lib/components/Input/Input.js.flow +325 -0
  169. package/lib/components/Input/index.js.flow +3 -0
  170. package/lib/components/KPIBox/KPIBox.js.flow +98 -0
  171. package/lib/components/KPIBox/index.js.flow +3 -0
  172. package/lib/components/LinearLoader/LinearLoader.js.flow +49 -0
  173. package/lib/components/LinearLoader/index.js.flow +3 -0
  174. package/lib/components/Link/Link.js +5 -16
  175. package/lib/components/Link/Link.js.flow +231 -0
  176. package/lib/components/Link/index.js.flow +3 -0
  177. package/lib/components/Menu/Menu.js +2 -5
  178. package/lib/components/Menu/Menu.js.flow +391 -0
  179. package/lib/components/Menu/MenuOptionButton.js +1 -6
  180. package/lib/components/Menu/MenuOptionButton.js.flow +201 -0
  181. package/lib/components/Menu/index.js.flow +4 -0
  182. package/lib/components/Modal/Modal.js +2 -6
  183. package/lib/components/Modal/Modal.js.flow +370 -0
  184. package/lib/components/Modal/index.js.flow +15 -0
  185. package/lib/components/Notification/Notification.js +0 -1
  186. package/lib/components/Notification/Notification.js.flow +149 -0
  187. package/lib/components/Notification/index.js.flow +3 -0
  188. package/lib/components/OptionButton/OptionButton.js.flow +153 -0
  189. package/lib/components/OptionButton/SimpleOptionButton.js +0 -4
  190. package/lib/components/OptionButton/SimpleOptionButton.js.flow +161 -0
  191. package/lib/components/OptionButton/index.js.flow +4 -0
  192. package/lib/components/PageTitle/PageTitle.js +2 -7
  193. package/lib/components/PageTitle/PageTitle.js.flow +267 -0
  194. package/lib/components/PageTitle/index.js.flow +3 -0
  195. package/lib/components/Pagination/Pagination.js +1 -3
  196. package/lib/components/Pagination/Pagination.js.flow +158 -0
  197. package/lib/components/Pagination/PaginationItem.js +0 -3
  198. package/lib/components/Pagination/PaginationItem.js.flow +120 -0
  199. package/lib/components/Pagination/index.js.flow +3 -0
  200. package/lib/components/Panel/Panel.js.flow +181 -0
  201. package/lib/components/Panel/index.js.flow +10 -0
  202. package/lib/components/ProgressDonut/ProgressDonut.js +0 -1
  203. package/lib/components/ProgressDonut/ProgressDonut.js.flow +111 -0
  204. package/lib/components/ProgressDonut/index.js.flow +3 -0
  205. package/lib/components/PromptChip/PromptChip.js +2 -8
  206. package/lib/components/PromptChip/PromptChip.js.flow +166 -0
  207. package/lib/components/PromptChip/index.js.flow +3 -0
  208. package/lib/components/PromptInput/PromptInput.js +1 -10
  209. package/lib/components/PromptInput/PromptInput.js.flow +194 -0
  210. package/lib/components/PromptInput/index.js.flow +3 -0
  211. package/lib/components/RadioButton/RadioButton.js +0 -1
  212. package/lib/components/RadioButton/RadioButton.js.flow +134 -0
  213. package/lib/components/RadioButton/RadioGroup.js +0 -2
  214. package/lib/components/RadioButton/RadioGroup.js.flow +94 -0
  215. package/lib/components/RadioButton/index.js.flow +3 -0
  216. package/lib/components/RadioTile/RadioTile.js +0 -2
  217. package/lib/components/RadioTile/RadioTile.js.flow +110 -0
  218. package/lib/components/RadioTile/index.js.flow +3 -0
  219. package/lib/components/RangeSlider/RangeSlider.js +0 -3
  220. package/lib/components/RangeSlider/RangeSlider.js.flow +202 -0
  221. package/lib/components/RangeSlider/index.js.flow +3 -0
  222. package/lib/components/Rating/Rating.js +3 -7
  223. package/lib/components/Rating/Rating.js.flow +134 -0
  224. package/lib/components/Rating/index.js.flow +3 -0
  225. package/lib/components/ScoreBar/ScoreBar.js +1 -1
  226. package/lib/components/ScoreBar/ScoreBar.js.flow +135 -0
  227. package/lib/components/ScoreBar/index.js.flow +3 -0
  228. package/lib/components/SearchInput/SearchInput.js.flow +88 -0
  229. package/lib/components/SearchInput/index.js.flow +4 -0
  230. package/lib/components/Separator/Separator.js.flow +60 -0
  231. package/lib/components/Separator/index.js.flow +3 -0
  232. package/lib/components/Shimmer/Shimmer.js +1 -3
  233. package/lib/components/Shimmer/Shimmer.js.flow +141 -0
  234. package/lib/components/Shimmer/index.js.flow +3 -0
  235. package/lib/components/SideMenuLink/SideMenuLink.js +2 -8
  236. package/lib/components/SideMenuLink/SideMenuLink.js.flow +344 -0
  237. package/lib/components/SideMenuLink/index.js.flow +3 -0
  238. package/lib/components/StatusIndicator/StatusIndicator.js.flow +68 -0
  239. package/lib/components/StatusIndicator/index.js.flow +3 -0
  240. package/lib/components/Stepper/Step/Step.js +3 -12
  241. package/lib/components/Stepper/Step/Step.js.flow +123 -0
  242. package/lib/components/Stepper/Step/StepContent.js.flow +40 -0
  243. package/lib/components/Stepper/Step/StepLabel.js.flow +40 -0
  244. package/lib/components/Stepper/Step/index.js.flow +5 -0
  245. package/lib/components/Stepper/Stepper.js +0 -4
  246. package/lib/components/Stepper/Stepper.js.flow +64 -0
  247. package/lib/components/Stepper/index.js.flow +4 -0
  248. package/lib/components/StickyBar/StickyBar.js.flow +67 -0
  249. package/lib/components/StickyBar/index.js.flow +3 -0
  250. package/lib/components/SubMenu/SubMenu.js.flow +96 -0
  251. package/lib/components/SubMenu/SubMenuGroup.js +3 -11
  252. package/lib/components/SubMenu/SubMenuGroup.js.flow +156 -0
  253. package/lib/components/SubMenu/SubMenuItem.js +4 -14
  254. package/lib/components/SubMenu/SubMenuItem.js.flow +170 -0
  255. package/lib/components/SubMenu/SubMenuLink.js +2 -6
  256. package/lib/components/SubMenu/SubMenuLink.js.flow +89 -0
  257. package/lib/components/SubMenu/index.js.flow +6 -0
  258. package/lib/components/Table/Cell.js +3 -3
  259. package/lib/components/Table/Cell.js.flow +122 -0
  260. package/lib/components/Table/DefaultRow.js +1 -1
  261. package/lib/components/Table/DefaultRow.js.flow +152 -0
  262. package/lib/components/Table/DefaultTableHeader.js +2 -9
  263. package/lib/components/Table/DefaultTableHeader.js.flow +240 -0
  264. package/lib/components/Table/StaticTable.js +18 -48
  265. package/lib/components/Table/StaticTable.js.flow +576 -0
  266. package/lib/components/Table/Table.docs.js +4 -4
  267. package/lib/components/Table/Table.docs.js.flow +550 -0
  268. package/lib/components/Table/Table.js +11 -15
  269. package/lib/components/Table/Table.js.flow +154 -0
  270. package/lib/components/Table/TableActionBar.js.flow +55 -0
  271. package/lib/components/Table/TableBottomBar.js.flow +28 -0
  272. package/lib/components/Table/TableTopBar.js.flow +28 -0
  273. package/lib/components/Table/dummyTableData.js.flow +2191 -0
  274. package/lib/components/Table/hooks.js +1 -8
  275. package/lib/components/Table/hooks.js.flow +97 -0
  276. package/lib/components/Table/index.js.flow +10 -0
  277. package/lib/components/Tabs/Tab/Tab.js +1 -5
  278. package/lib/components/Tabs/Tab/Tab.js.flow +140 -0
  279. package/lib/components/Tabs/Tab/index.js.flow +3 -0
  280. package/lib/components/Tabs/TabList/TabDropdown.js +2 -8
  281. package/lib/components/Tabs/TabList/TabDropdown.js.flow +123 -0
  282. package/lib/components/Tabs/TabList/TabList.js +3 -17
  283. package/lib/components/Tabs/TabList/TabList.js.flow +161 -0
  284. package/lib/components/Tabs/TabList/index.js.flow +3 -0
  285. package/lib/components/Tabs/index.js.flow +4 -0
  286. package/lib/components/Text/Text.js +0 -1
  287. package/lib/components/Text/Text.js.flow +1060 -0
  288. package/lib/components/Text/index.js.flow +32 -0
  289. package/lib/components/TextTile/TextTile.js.flow +44 -0
  290. package/lib/components/TextTile/index.js.flow +3 -0
  291. package/lib/components/Textarea/Textarea.js +4 -14
  292. package/lib/components/Textarea/Textarea.js.flow +139 -0
  293. package/lib/components/Textarea/index.js.flow +4 -0
  294. package/lib/components/Timeline/Timeline.js +1 -8
  295. package/lib/components/Timeline/Timeline.js.flow +47 -0
  296. package/lib/components/Timeline/TimelineItem/TimelineItem.js +2 -9
  297. package/lib/components/Timeline/TimelineItem/TimelineItem.js.flow +127 -0
  298. package/lib/components/Timeline/TimelineItem/index.js.flow +3 -0
  299. package/lib/components/Timeline/index.js.flow +4 -0
  300. package/lib/components/Toast/Toast.js +1 -10
  301. package/lib/components/Toast/Toast.js.flow +249 -0
  302. package/lib/components/Toast/ToastContainer.js +5 -2
  303. package/lib/components/Toast/ToastContainer.js.flow +125 -0
  304. package/lib/components/Toast/ToastManager.js +0 -1
  305. package/lib/components/Toast/ToastManager.js.flow +67 -0
  306. package/lib/components/Toast/index.js.flow +12 -0
  307. package/lib/components/Toggle/Toggle.js +2 -2
  308. package/lib/components/Toggle/Toggle.js.flow +115 -0
  309. package/lib/components/Toggle/index.js.flow +2 -0
  310. package/lib/components/TokenListInput/TokenListInput.js +10 -27
  311. package/lib/components/TokenListInput/TokenListInput.js.flow +389 -0
  312. package/lib/components/TokenListInput/TokenValueChips.js +4 -2
  313. package/lib/components/TokenListInput/TokenValueChips.js.flow +69 -0
  314. package/lib/components/TokenListInput/index.js.flow +3 -0
  315. package/lib/components/Tooltip/Tooltip.js +3 -6
  316. package/lib/components/Tooltip/Tooltip.js.flow +206 -0
  317. package/lib/components/Tooltip/index.js.flow +3 -0
  318. package/lib/components/Truncate/Truncate.js +1 -5
  319. package/lib/components/Truncate/Truncate.js.flow +86 -0
  320. package/lib/components/Truncate/index.js.flow +4 -0
  321. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +1 -6
  322. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js.flow +104 -0
  323. package/lib/components/TruncatedTextWithTooltip/index.js.flow +3 -0
  324. package/lib/components/Typeahead/SimpleTypeahead.js +0 -4
  325. package/lib/components/Typeahead/SimpleTypeahead.js.flow +164 -0
  326. package/lib/components/Typeahead/Typeahead.js +3 -12
  327. package/lib/components/Typeahead/Typeahead.js.flow +250 -0
  328. package/lib/components/Typeahead/index.js.flow +4 -0
  329. package/lib/components/WeekdayPicker/WeekdayPicker.js.flow +229 -0
  330. package/lib/components/WeekdayPicker/index.js.flow +3 -0
  331. package/lib/components/index.js.flow +77 -0
  332. package/lib/hooks/index.js.flow +18 -0
  333. package/lib/hooks/useArbitraryOptionAddition/index.js.flow +3 -0
  334. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js +9 -9
  335. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js.flow +117 -0
  336. package/lib/hooks/useCopyToClipboard/index.js.flow +3 -0
  337. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +0 -1
  338. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js.flow +31 -0
  339. package/lib/hooks/useDebounce/index.js.flow +3 -0
  340. package/lib/hooks/useDebounce/useDebounce.js.flow +17 -0
  341. package/lib/hooks/useFileUpload/index.js.flow +3 -0
  342. package/lib/hooks/useFileUpload/useFileUpload.js +2 -7
  343. package/lib/hooks/useFileUpload/useFileUpload.js.flow +304 -0
  344. package/lib/hooks/useFilteredOptions/index.js.flow +3 -0
  345. package/lib/hooks/useFilteredOptions/useFilteredOptions.js +3 -5
  346. package/lib/hooks/useFilteredOptions/useFilteredOptions.js.flow +81 -0
  347. package/lib/hooks/useInfiniteScroll/index.js.flow +3 -0
  348. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.js.flow +82 -0
  349. package/lib/hooks/useInputState/index.js.flow +3 -0
  350. package/lib/hooks/useInputState/useInputState.js +1 -3
  351. package/lib/hooks/useInputState/useInputState.js.flow +28 -0
  352. package/lib/hooks/useLockedBody/index.js.flow +3 -0
  353. package/lib/hooks/useLockedBody/useLockedBody.js.flow +54 -0
  354. package/lib/hooks/useModal/index.js.flow +3 -0
  355. package/lib/hooks/useModal/useModal.js.flow +39 -0
  356. package/lib/hooks/useMountTransition/index.js +0 -2
  357. package/lib/hooks/useMountTransition/index.js.flow +27 -0
  358. package/lib/hooks/usePagination/index.js.flow +3 -0
  359. package/lib/hooks/usePagination/usePagination.js +0 -3
  360. package/lib/hooks/usePagination/usePagination.js.flow +155 -0
  361. package/lib/hooks/useReferenceElementWidth/index.js.flow +3 -0
  362. package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.js.flow +23 -0
  363. package/lib/hooks/useResizeObserver/index.js.flow +3 -0
  364. package/lib/hooks/useResizeObserver/useResizeObserver.js +0 -3
  365. package/lib/hooks/useResizeObserver/useResizeObserver.js.flow +28 -0
  366. package/lib/hooks/useToastPortal/index.js.flow +3 -0
  367. package/lib/hooks/useToastPortal/useToastPortal.js +3 -3
  368. package/lib/hooks/useToastPortal/useToastPortal.js.flow +30 -0
  369. package/lib/hooks/useToggle/index.js.flow +3 -0
  370. package/lib/hooks/useToggle/useToggle.js.flow +17 -0
  371. package/lib/hooks/useWindowSize/index.js.flow +3 -0
  372. package/lib/hooks/useWindowSize/useWindowSize.js.flow +41 -0
  373. package/lib/index.js.flow +7 -0
  374. package/lib/styles/index.js.flow +535 -0
  375. package/lib/styles/variables/_border.js.flow +25 -0
  376. package/lib/styles/variables/_color.js.flow +209 -0
  377. package/lib/styles/variables/_elevation.js.flow +15 -0
  378. package/lib/styles/variables/_font.js.flow +61 -0
  379. package/lib/styles/variables/_motion.js.flow +13 -0
  380. package/lib/styles/variables/_opacity.js.flow +31 -0
  381. package/lib/styles/variables/_shadow.js.flow +49 -0
  382. package/lib/styles/variables/_size.js.flow +115 -0
  383. package/lib/styles/variables/_space.js.flow +25 -0
  384. package/lib/types/charts.js +1 -5
  385. package/lib/types/charts.js.flow +263 -0
  386. package/lib/types/common.js.flow +13 -0
  387. package/lib/types/date-range-picker.js +1 -5
  388. package/lib/types/date-range-picker.js.flow +17 -0
  389. package/lib/types/index.js.flow +8 -0
  390. package/lib/types/menu.js +1 -5
  391. package/lib/types/menu.js.flow +15 -0
  392. package/lib/types/toast.js +2 -0
  393. package/lib/types/toast.js.flow +41 -0
  394. package/lib/types/typography.js.flow +19 -0
  395. package/lib/utils/array/are-arrays-equal.js.flow +14 -0
  396. package/lib/utils/array/index.js.flow +3 -0
  397. package/lib/utils/charts/charts.js +0 -4
  398. package/lib/utils/charts/charts.js.flow +111 -0
  399. package/lib/utils/charts/columnChart.js +1 -3
  400. package/lib/utils/charts/columnChart.js.flow +63 -0
  401. package/lib/utils/charts/donutChart.js +2 -7
  402. package/lib/utils/charts/donutChart.js.flow +119 -0
  403. package/lib/utils/charts/funnelChart.js +1 -5
  404. package/lib/utils/charts/funnelChart.js.flow +102 -0
  405. package/lib/utils/charts/helpers.js.flow +68 -0
  406. package/lib/utils/charts/index.js.flow +9 -0
  407. package/lib/utils/charts/lineChart.js +1 -3
  408. package/lib/utils/charts/lineChart.js.flow +51 -0
  409. package/lib/utils/charts/spiderChart.js.flow +59 -0
  410. package/lib/utils/charts/typography.js.flow +53 -0
  411. package/lib/utils/classify/index.js +1 -1
  412. package/lib/utils/classify/index.js.flow +29 -0
  413. package/lib/utils/click-away/click-away.js +5 -18
  414. package/lib/utils/click-away/click-away.js.flow +228 -0
  415. package/lib/utils/click-away/index.js.flow +3 -0
  416. package/lib/utils/date-range-picker/date-range-picker.js +2 -17
  417. package/lib/utils/date-range-picker/date-range-picker.js.flow +442 -0
  418. package/lib/utils/date-range-picker/index.js.flow +4 -0
  419. package/lib/utils/date-range-picker/timezones.js +1 -0
  420. package/lib/utils/date-range-picker/timezones.js.flow +269 -0
  421. package/lib/utils/dom/dom.js +7 -9
  422. package/lib/utils/dom/dom.js.flow +238 -0
  423. package/lib/utils/dom/index.js.flow +3 -0
  424. package/lib/utils/helpers/helpers.js.flow +53 -0
  425. package/lib/utils/helpers/index.js.flow +3 -0
  426. package/lib/utils/index.js.flow +16 -0
  427. package/lib/utils/makeClassNameComponent/index.js.flow +3 -0
  428. package/lib/utils/makeClassNameComponent/makeClassNameComponent.js +7 -20
  429. package/lib/utils/makeClassNameComponent/makeClassNameComponent.js.flow +70 -0
  430. package/lib/utils/menu/index.js.flow +3 -0
  431. package/lib/utils/menu/menu.js +2 -0
  432. package/lib/utils/menu/menu.js.flow +193 -0
  433. package/lib/utils/merge-refs/index.js.flow +3 -0
  434. package/lib/utils/merge-refs/merge-refs.js +0 -1
  435. package/lib/utils/merge-refs/merge-refs.js.flow +14 -0
  436. package/lib/utils/rating/index.js.flow +3 -0
  437. package/lib/utils/rating/rating.js.flow +35 -0
  438. package/lib/utils/score-bar/index.js.flow +3 -0
  439. package/lib/utils/score-bar/score-bar.js.flow +58 -0
  440. package/lib/utils/string/index.js.flow +3 -0
  441. package/lib/utils/string/string.js.flow +33 -0
  442. package/lib/utils/token-list-input/token-list-input.js +2 -0
  443. package/lib/utils/token-list-input/token-list-input.js.flow +37 -0
  444. package/lib/utils/tokens/index.js.flow +3 -0
  445. package/lib/utils/tokens/tokens.js.flow +244 -0
  446. package/package.json +13 -39
  447. package/lib/components/Accordion/Accordion.d.ts +0 -21
  448. package/lib/components/Accordion/Accordion.d.ts.map +0 -1
  449. package/lib/components/Accordion/AccordionGroup.d.ts +0 -17
  450. package/lib/components/Accordion/AccordionGroup.d.ts.map +0 -1
  451. package/lib/components/Accordion/index.d.ts +0 -3
  452. package/lib/components/Accordion/index.d.ts.map +0 -1
  453. package/lib/components/Avatar/Avatar.d.ts +0 -60
  454. package/lib/components/Avatar/Avatar.d.ts.map +0 -1
  455. package/lib/components/Avatar/index.d.ts +0 -2
  456. package/lib/components/Avatar/index.d.ts.map +0 -1
  457. package/lib/components/AvatarGroup/AvatarGroup.d.ts +0 -15
  458. package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +0 -1
  459. package/lib/components/AvatarGroup/index.d.ts +0 -2
  460. package/lib/components/AvatarGroup/index.d.ts.map +0 -1
  461. package/lib/components/Badge/Badge.d.ts +0 -40
  462. package/lib/components/Badge/Badge.d.ts.map +0 -1
  463. package/lib/components/Badge/index.d.ts +0 -2
  464. package/lib/components/Badge/index.d.ts.map +0 -1
  465. package/lib/components/BadgedIcon/BadgedIcon.d.ts +0 -18
  466. package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +0 -1
  467. package/lib/components/BadgedIcon/index.d.ts +0 -2
  468. package/lib/components/BadgedIcon/index.d.ts.map +0 -1
  469. package/lib/components/Banner/Banner.d.ts +0 -7
  470. package/lib/components/Banner/Banner.d.ts.map +0 -1
  471. package/lib/components/Banner/index.d.ts +0 -2
  472. package/lib/components/Banner/index.d.ts.map +0 -1
  473. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +0 -10
  474. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +0 -1
  475. package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts +0 -2
  476. package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts.map +0 -1
  477. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -14
  478. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  479. package/lib/components/Breadcrumbs/index.d.ts +0 -3
  480. package/lib/components/Breadcrumbs/index.d.ts.map +0 -1
  481. package/lib/components/Button/Button.d.ts +0 -64
  482. package/lib/components/Button/Button.d.ts.map +0 -1
  483. package/lib/components/Button/index.d.ts +0 -3
  484. package/lib/components/Button/index.d.ts.map +0 -1
  485. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +0 -40
  486. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +0 -1
  487. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +0 -42
  488. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +0 -1
  489. package/lib/components/ButtonDropdown/index.d.ts +0 -3
  490. package/lib/components/ButtonDropdown/index.d.ts.map +0 -1
  491. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +0 -25
  492. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +0 -1
  493. package/lib/components/ButtonTabs/ButtonTab/index.d.ts +0 -2
  494. package/lib/components/ButtonTabs/ButtonTab/index.d.ts.map +0 -1
  495. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +0 -12
  496. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +0 -1
  497. package/lib/components/ButtonTabs/ButtonTabs.d.ts +0 -24
  498. package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +0 -1
  499. package/lib/components/ButtonTabs/index.d.ts +0 -3
  500. package/lib/components/ButtonTabs/index.d.ts.map +0 -1
  501. package/lib/components/Card/Card.d.ts +0 -37
  502. package/lib/components/Card/Card.d.ts.map +0 -1
  503. package/lib/components/Card/index.d.ts +0 -2
  504. package/lib/components/Card/index.d.ts.map +0 -1
  505. package/lib/components/Charts/ChartTooltip/index.d.ts +0 -3
  506. package/lib/components/Charts/ChartTooltip/index.d.ts.map +0 -1
  507. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +0 -50
  508. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +0 -1
  509. package/lib/components/Charts/ChartWrapper/index.d.ts +0 -2
  510. package/lib/components/Charts/ChartWrapper/index.d.ts.map +0 -1
  511. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +0 -23
  512. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +0 -1
  513. package/lib/components/Charts/ColumnChart/index.d.ts +0 -2
  514. package/lib/components/Charts/ColumnChart/index.d.ts.map +0 -1
  515. package/lib/components/Charts/DonutChart/DonutChart.d.ts +0 -28
  516. package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +0 -1
  517. package/lib/components/Charts/DonutChart/index.d.ts +0 -2
  518. package/lib/components/Charts/DonutChart/index.d.ts.map +0 -1
  519. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +0 -25
  520. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +0 -1
  521. package/lib/components/Charts/FunnelChart/index.d.ts +0 -2
  522. package/lib/components/Charts/FunnelChart/index.d.ts.map +0 -1
  523. package/lib/components/Charts/LineChart/LineChart.d.ts +0 -23
  524. package/lib/components/Charts/LineChart/LineChart.d.ts.map +0 -1
  525. package/lib/components/Charts/LineChart/index.d.ts +0 -2
  526. package/lib/components/Charts/LineChart/index.d.ts.map +0 -1
  527. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +0 -22
  528. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +0 -1
  529. package/lib/components/Charts/SpiderChart/index.d.ts +0 -2
  530. package/lib/components/Charts/SpiderChart/index.d.ts.map +0 -1
  531. package/lib/components/Charts/index.d.ts +0 -8
  532. package/lib/components/Charts/index.d.ts.map +0 -1
  533. package/lib/components/ChatBubble/ChatBubble.d.ts +0 -76
  534. package/lib/components/ChatBubble/ChatBubble.d.ts.map +0 -1
  535. package/lib/components/ChatBubble/index.d.ts +0 -2
  536. package/lib/components/ChatBubble/index.d.ts.map +0 -1
  537. package/lib/components/Checkbox/Checkbox.d.ts +0 -29
  538. package/lib/components/Checkbox/Checkbox.d.ts.map +0 -1
  539. package/lib/components/Checkbox/CheckboxGroup.d.ts +0 -26
  540. package/lib/components/Checkbox/CheckboxGroup.d.ts.map +0 -1
  541. package/lib/components/Checkbox/index.d.ts +0 -3
  542. package/lib/components/Checkbox/index.d.ts.map +0 -1
  543. package/lib/components/Chip/Chip.d.ts +0 -47
  544. package/lib/components/Chip/Chip.d.ts.map +0 -1
  545. package/lib/components/Chip/index.d.ts +0 -3
  546. package/lib/components/Chip/index.d.ts.map +0 -1
  547. package/lib/components/CircularLoader/CircularLoader.d.ts +0 -10
  548. package/lib/components/CircularLoader/CircularLoader.d.ts.map +0 -1
  549. package/lib/components/CircularLoader/index.d.ts +0 -2
  550. package/lib/components/CircularLoader/index.d.ts.map +0 -1
  551. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +0 -40
  552. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +0 -1
  553. package/lib/components/CollapsibleCard/index.d.ts +0 -2
  554. package/lib/components/CollapsibleCard/index.d.ts.map +0 -1
  555. package/lib/components/Combobox/Combobox.d.ts +0 -78
  556. package/lib/components/Combobox/Combobox.d.ts.map +0 -1
  557. package/lib/components/Combobox/helper.d.ts +0 -12
  558. package/lib/components/Combobox/helper.d.ts.map +0 -1
  559. package/lib/components/Combobox/index.d.ts +0 -2
  560. package/lib/components/Combobox/index.d.ts.map +0 -1
  561. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -8
  562. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +0 -1
  563. package/lib/components/ConditionalWrapper/index.d.ts +0 -2
  564. package/lib/components/ConditionalWrapper/index.d.ts.map +0 -1
  565. package/lib/components/DateRangePicker/Calendar.d.ts +0 -22
  566. package/lib/components/DateRangePicker/Calendar.d.ts.map +0 -1
  567. package/lib/components/DateRangePicker/DateRangePicker.d.ts +0 -22
  568. package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +0 -1
  569. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +0 -33
  570. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +0 -1
  571. package/lib/components/DateRangePicker/Day.d.ts +0 -17
  572. package/lib/components/DateRangePicker/Day.d.ts.map +0 -1
  573. package/lib/components/DateRangePicker/index.d.ts +0 -2
  574. package/lib/components/DateRangePicker/index.d.ts.map +0 -1
  575. package/lib/components/Dialog/Dialog.d.ts +0 -46
  576. package/lib/components/Dialog/Dialog.d.ts.map +0 -1
  577. package/lib/components/Dialog/index.d.ts +0 -2
  578. package/lib/components/Dialog/index.d.ts.map +0 -1
  579. package/lib/components/Disclaimer/Disclaimer.d.ts +0 -5
  580. package/lib/components/Disclaimer/Disclaimer.d.ts.map +0 -1
  581. package/lib/components/Disclaimer/index.d.ts +0 -2
  582. package/lib/components/Disclaimer/index.d.ts.map +0 -1
  583. package/lib/components/Dropdown/Dropdown.d.ts +0 -25
  584. package/lib/components/Dropdown/Dropdown.d.ts.map +0 -1
  585. package/lib/components/Dropdown/SimpleDropdown.d.ts +0 -44
  586. package/lib/components/Dropdown/SimpleDropdown.d.ts.map +0 -1
  587. package/lib/components/Dropdown/index.d.ts +0 -3
  588. package/lib/components/Dropdown/index.d.ts.map +0 -1
  589. package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts +0 -3
  590. package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts.map +0 -1
  591. package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts +0 -3
  592. package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts.map +0 -1
  593. package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts +0 -3
  594. package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts.map +0 -1
  595. package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts +0 -3
  596. package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts.map +0 -1
  597. package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts +0 -3
  598. package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts.map +0 -1
  599. package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts +0 -3
  600. package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts.map +0 -1
  601. package/lib/components/EmptyState/EmptyImages/index.d.ts +0 -7
  602. package/lib/components/EmptyState/EmptyImages/index.d.ts.map +0 -1
  603. package/lib/components/EmptyState/EmptyState.d.ts +0 -20
  604. package/lib/components/EmptyState/EmptyState.d.ts.map +0 -1
  605. package/lib/components/EmptyState/index.d.ts +0 -2
  606. package/lib/components/EmptyState/index.d.ts.map +0 -1
  607. package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts +0 -3
  608. package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts.map +0 -1
  609. package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts +0 -3
  610. package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts.map +0 -1
  611. package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts +0 -3
  612. package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts.map +0 -1
  613. package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts +0 -3
  614. package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts.map +0 -1
  615. package/lib/components/ErrorMessage/ErrorImages/index.d.ts +0 -5
  616. package/lib/components/ErrorMessage/ErrorImages/index.d.ts.map +0 -1
  617. package/lib/components/ErrorMessage/ErrorMessage.d.ts +0 -22
  618. package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +0 -1
  619. package/lib/components/ErrorMessage/index.d.ts +0 -2
  620. package/lib/components/ErrorMessage/index.d.ts.map +0 -1
  621. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +0 -14
  622. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +0 -1
  623. package/lib/components/FileUpload/FileBlock/index.d.ts +0 -2
  624. package/lib/components/FileUpload/FileBlock/index.d.ts.map +0 -1
  625. package/lib/components/FileUpload/FileUpload.d.ts +0 -62
  626. package/lib/components/FileUpload/FileUpload.d.ts.map +0 -1
  627. package/lib/components/FileUpload/index.d.ts +0 -3
  628. package/lib/components/FileUpload/index.d.ts.map +0 -1
  629. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +0 -30
  630. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +0 -1
  631. package/lib/components/FilterButtonOverlay/index.d.ts +0 -2
  632. package/lib/components/FilterButtonOverlay/index.d.ts.map +0 -1
  633. package/lib/components/FocusManager/FocusManager.d.ts +0 -15
  634. package/lib/components/FocusManager/FocusManager.d.ts.map +0 -1
  635. package/lib/components/FocusManager/index.d.ts +0 -2
  636. package/lib/components/FocusManager/index.d.ts.map +0 -1
  637. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +0 -19
  638. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +0 -1
  639. package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts +0 -2
  640. package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts.map +0 -1
  641. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +0 -21
  642. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +0 -1
  643. package/lib/components/FormTitleWrapper/index.d.ts +0 -2
  644. package/lib/components/FormTitleWrapper/index.d.ts.map +0 -1
  645. package/lib/components/Grid/Grid.d.ts +0 -20
  646. package/lib/components/Grid/Grid.d.ts.map +0 -1
  647. package/lib/components/Grid/index.d.ts +0 -2
  648. package/lib/components/Grid/index.d.ts.map +0 -1
  649. package/lib/components/Icon/ClickableIcon.d.ts +0 -26
  650. package/lib/components/Icon/ClickableIcon.d.ts.map +0 -1
  651. package/lib/components/Icon/Icon.d.ts +0 -31
  652. package/lib/components/Icon/Icon.d.ts.map +0 -1
  653. package/lib/components/Icon/Icon.docs.d.ts +0 -134
  654. package/lib/components/Icon/Icon.docs.d.ts.map +0 -1
  655. package/lib/components/Icon/SemanticIcon.d.ts +0 -14
  656. package/lib/components/Icon/SemanticIcon.d.ts.map +0 -1
  657. package/lib/components/Icon/index.d.ts +0 -4
  658. package/lib/components/Icon/index.d.ts.map +0 -1
  659. package/lib/components/InContextAlert/InContextAlert.d.ts +0 -31
  660. package/lib/components/InContextAlert/InContextAlert.d.ts.map +0 -1
  661. package/lib/components/InContextAlert/index.d.ts +0 -2
  662. package/lib/components/InContextAlert/index.d.ts.map +0 -1
  663. package/lib/components/InfinitePagination/InfinitePagination.d.ts +0 -26
  664. package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +0 -1
  665. package/lib/components/InfinitePagination/index.d.ts +0 -2
  666. package/lib/components/InfinitePagination/index.d.ts.map +0 -1
  667. package/lib/components/InlineDropdown/InlineDropdown.d.ts +0 -25
  668. package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +0 -1
  669. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +0 -40
  670. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +0 -1
  671. package/lib/components/InlineDropdown/index.d.ts +0 -3
  672. package/lib/components/InlineDropdown/index.d.ts.map +0 -1
  673. package/lib/components/Input/Input.d.ts +0 -74
  674. package/lib/components/Input/Input.d.ts.map +0 -1
  675. package/lib/components/Input/index.d.ts +0 -2
  676. package/lib/components/Input/index.d.ts.map +0 -1
  677. package/lib/components/KPIBox/KPIBox.d.ts +0 -24
  678. package/lib/components/KPIBox/KPIBox.d.ts.map +0 -1
  679. package/lib/components/KPIBox/index.d.ts +0 -2
  680. package/lib/components/KPIBox/index.d.ts.map +0 -1
  681. package/lib/components/LinearLoader/LinearLoader.d.ts +0 -9
  682. package/lib/components/LinearLoader/LinearLoader.d.ts.map +0 -1
  683. package/lib/components/LinearLoader/index.d.ts +0 -2
  684. package/lib/components/LinearLoader/index.d.ts.map +0 -1
  685. package/lib/components/Link/Link.d.ts +0 -93
  686. package/lib/components/Link/Link.d.ts.map +0 -1
  687. package/lib/components/Link/index.d.ts +0 -2
  688. package/lib/components/Link/index.d.ts.map +0 -1
  689. package/lib/components/Menu/Menu.d.ts +0 -74
  690. package/lib/components/Menu/Menu.d.ts.map +0 -1
  691. package/lib/components/Menu/MenuOptionButton.d.ts +0 -9
  692. package/lib/components/Menu/MenuOptionButton.d.ts.map +0 -1
  693. package/lib/components/Menu/index.d.ts +0 -3
  694. package/lib/components/Menu/index.d.ts.map +0 -1
  695. package/lib/components/Modal/Modal.d.ts +0 -64
  696. package/lib/components/Modal/Modal.d.ts.map +0 -1
  697. package/lib/components/Modal/index.d.ts +0 -3
  698. package/lib/components/Modal/index.d.ts.map +0 -1
  699. package/lib/components/Notification/Notification.d.ts +0 -37
  700. package/lib/components/Notification/Notification.d.ts.map +0 -1
  701. package/lib/components/Notification/index.d.ts +0 -2
  702. package/lib/components/Notification/index.d.ts.map +0 -1
  703. package/lib/components/OptionButton/OptionButton.d.ts +0 -33
  704. package/lib/components/OptionButton/OptionButton.d.ts.map +0 -1
  705. package/lib/components/OptionButton/SimpleOptionButton.d.ts +0 -47
  706. package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +0 -1
  707. package/lib/components/OptionButton/index.d.ts +0 -3
  708. package/lib/components/OptionButton/index.d.ts.map +0 -1
  709. package/lib/components/PageTitle/PageTitle.d.ts +0 -156
  710. package/lib/components/PageTitle/PageTitle.d.ts.map +0 -1
  711. package/lib/components/PageTitle/index.d.ts +0 -2
  712. package/lib/components/PageTitle/index.d.ts.map +0 -1
  713. package/lib/components/Pagination/Pagination.d.ts +0 -39
  714. package/lib/components/Pagination/Pagination.d.ts.map +0 -1
  715. package/lib/components/Pagination/PaginationItem.d.ts +0 -5
  716. package/lib/components/Pagination/PaginationItem.d.ts.map +0 -1
  717. package/lib/components/Pagination/index.d.ts +0 -2
  718. package/lib/components/Pagination/index.d.ts.map +0 -1
  719. package/lib/components/Panel/Panel.d.ts +0 -35
  720. package/lib/components/Panel/Panel.d.ts.map +0 -1
  721. package/lib/components/Panel/index.d.ts +0 -3
  722. package/lib/components/Panel/index.d.ts.map +0 -1
  723. package/lib/components/ProgressDonut/ProgressDonut.d.ts +0 -13
  724. package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +0 -1
  725. package/lib/components/ProgressDonut/index.d.ts +0 -2
  726. package/lib/components/ProgressDonut/index.d.ts.map +0 -1
  727. package/lib/components/PromptChip/PromptChip.d.ts +0 -38
  728. package/lib/components/PromptChip/PromptChip.d.ts.map +0 -1
  729. package/lib/components/PromptChip/index.d.ts +0 -2
  730. package/lib/components/PromptChip/index.d.ts.map +0 -1
  731. package/lib/components/PromptInput/PromptInput.d.ts +0 -38
  732. package/lib/components/PromptInput/PromptInput.d.ts.map +0 -1
  733. package/lib/components/PromptInput/index.d.ts +0 -2
  734. package/lib/components/PromptInput/index.d.ts.map +0 -1
  735. package/lib/components/RadioButton/RadioButton.d.ts +0 -31
  736. package/lib/components/RadioButton/RadioButton.d.ts.map +0 -1
  737. package/lib/components/RadioButton/RadioGroup.d.ts +0 -27
  738. package/lib/components/RadioButton/RadioGroup.d.ts.map +0 -1
  739. package/lib/components/RadioButton/index.d.ts +0 -3
  740. package/lib/components/RadioButton/index.d.ts.map +0 -1
  741. package/lib/components/RadioTile/RadioTile.d.ts +0 -23
  742. package/lib/components/RadioTile/RadioTile.d.ts.map +0 -1
  743. package/lib/components/RadioTile/index.d.ts +0 -2
  744. package/lib/components/RadioTile/index.d.ts.map +0 -1
  745. package/lib/components/RangeSlider/RangeSlider.d.ts +0 -27
  746. package/lib/components/RangeSlider/RangeSlider.d.ts.map +0 -1
  747. package/lib/components/RangeSlider/index.d.ts +0 -2
  748. package/lib/components/RangeSlider/index.d.ts.map +0 -1
  749. package/lib/components/Rating/Rating.d.ts +0 -32
  750. package/lib/components/Rating/Rating.d.ts.map +0 -1
  751. package/lib/components/Rating/index.d.ts +0 -2
  752. package/lib/components/Rating/index.d.ts.map +0 -1
  753. package/lib/components/ScoreBar/ScoreBar.d.ts +0 -28
  754. package/lib/components/ScoreBar/ScoreBar.d.ts.map +0 -1
  755. package/lib/components/ScoreBar/index.d.ts +0 -2
  756. package/lib/components/ScoreBar/index.d.ts.map +0 -1
  757. package/lib/components/SearchInput/SearchInput.d.ts +0 -15
  758. package/lib/components/SearchInput/SearchInput.d.ts.map +0 -1
  759. package/lib/components/SearchInput/index.d.ts +0 -3
  760. package/lib/components/SearchInput/index.d.ts.map +0 -1
  761. package/lib/components/Separator/Separator.d.ts +0 -18
  762. package/lib/components/Separator/Separator.d.ts.map +0 -1
  763. package/lib/components/Separator/index.d.ts +0 -2
  764. package/lib/components/Separator/index.d.ts.map +0 -1
  765. package/lib/components/Shimmer/Shimmer.d.ts +0 -57
  766. package/lib/components/Shimmer/Shimmer.d.ts.map +0 -1
  767. package/lib/components/Shimmer/index.d.ts +0 -2
  768. package/lib/components/Shimmer/index.d.ts.map +0 -1
  769. package/lib/components/SideMenuLink/SideMenuLink.d.ts +0 -211
  770. package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +0 -1
  771. package/lib/components/SideMenuLink/index.d.ts +0 -2
  772. package/lib/components/SideMenuLink/index.d.ts.map +0 -1
  773. package/lib/components/StatusIndicator/StatusIndicator.d.ts +0 -25
  774. package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +0 -1
  775. package/lib/components/StatusIndicator/index.d.ts +0 -2
  776. package/lib/components/StatusIndicator/index.d.ts.map +0 -1
  777. package/lib/components/Stepper/Step/Step.d.ts +0 -25
  778. package/lib/components/Stepper/Step/Step.d.ts.map +0 -1
  779. package/lib/components/Stepper/Step/StepContent.d.ts +0 -14
  780. package/lib/components/Stepper/Step/StepContent.d.ts.map +0 -1
  781. package/lib/components/Stepper/Step/StepLabel.d.ts +0 -14
  782. package/lib/components/Stepper/Step/StepLabel.d.ts.map +0 -1
  783. package/lib/components/Stepper/Step/index.d.ts +0 -4
  784. package/lib/components/Stepper/Step/index.d.ts.map +0 -1
  785. package/lib/components/Stepper/Stepper.d.ts +0 -15
  786. package/lib/components/Stepper/Stepper.d.ts.map +0 -1
  787. package/lib/components/Stepper/index.d.ts +0 -3
  788. package/lib/components/Stepper/index.d.ts.map +0 -1
  789. package/lib/components/StickyBar/StickyBar.d.ts +0 -15
  790. package/lib/components/StickyBar/StickyBar.d.ts.map +0 -1
  791. package/lib/components/StickyBar/index.d.ts +0 -2
  792. package/lib/components/StickyBar/index.d.ts.map +0 -1
  793. package/lib/components/SubMenu/SubMenu.d.ts +0 -19
  794. package/lib/components/SubMenu/SubMenu.d.ts.map +0 -1
  795. package/lib/components/SubMenu/SubMenuGroup.d.ts +0 -24
  796. package/lib/components/SubMenu/SubMenuGroup.d.ts.map +0 -1
  797. package/lib/components/SubMenu/SubMenuItem.d.ts +0 -42
  798. package/lib/components/SubMenu/SubMenuItem.d.ts.map +0 -1
  799. package/lib/components/SubMenu/SubMenuLink.d.ts +0 -14
  800. package/lib/components/SubMenu/SubMenuLink.d.ts.map +0 -1
  801. package/lib/components/SubMenu/index.d.ts +0 -5
  802. package/lib/components/SubMenu/index.d.ts.map +0 -1
  803. package/lib/components/Table/Cell.d.ts +0 -37
  804. package/lib/components/Table/Cell.d.ts.map +0 -1
  805. package/lib/components/Table/DefaultRow.d.ts +0 -39
  806. package/lib/components/Table/DefaultRow.d.ts.map +0 -1
  807. package/lib/components/Table/DefaultTableHeader.d.ts +0 -43
  808. package/lib/components/Table/DefaultTableHeader.d.ts.map +0 -1
  809. package/lib/components/Table/StaticTable.d.ts +0 -24
  810. package/lib/components/Table/StaticTable.d.ts.map +0 -1
  811. package/lib/components/Table/Table.d.ts +0 -64
  812. package/lib/components/Table/Table.d.ts.map +0 -1
  813. package/lib/components/Table/Table.docs.d.ts +0 -299
  814. package/lib/components/Table/Table.docs.d.ts.map +0 -1
  815. package/lib/components/Table/TableActionBar.d.ts +0 -11
  816. package/lib/components/Table/TableActionBar.d.ts.map +0 -1
  817. package/lib/components/Table/TableBottomBar.d.ts +0 -7
  818. package/lib/components/Table/TableBottomBar.d.ts.map +0 -1
  819. package/lib/components/Table/TableTopBar.d.ts +0 -7
  820. package/lib/components/Table/TableTopBar.d.ts.map +0 -1
  821. package/lib/components/Table/dummyTableData.d.ts +0 -1946
  822. package/lib/components/Table/dummyTableData.d.ts.map +0 -1
  823. package/lib/components/Table/hooks.d.ts +0 -15
  824. package/lib/components/Table/hooks.d.ts.map +0 -1
  825. package/lib/components/Table/index.d.ts +0 -9
  826. package/lib/components/Table/index.d.ts.map +0 -1
  827. package/lib/components/Tabs/Tab/Tab.d.ts +0 -35
  828. package/lib/components/Tabs/Tab/Tab.d.ts.map +0 -1
  829. package/lib/components/Tabs/Tab/index.d.ts +0 -2
  830. package/lib/components/Tabs/Tab/index.d.ts.map +0 -1
  831. package/lib/components/Tabs/TabList/TabDropdown.d.ts +0 -24
  832. package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +0 -1
  833. package/lib/components/Tabs/TabList/TabList.d.ts +0 -24
  834. package/lib/components/Tabs/TabList/TabList.d.ts.map +0 -1
  835. package/lib/components/Tabs/TabList/index.d.ts +0 -2
  836. package/lib/components/Tabs/TabList/index.d.ts.map +0 -1
  837. package/lib/components/Tabs/index.d.ts +0 -3
  838. package/lib/components/Tabs/index.d.ts.map +0 -1
  839. package/lib/components/Text/Text.d.ts +0 -46
  840. package/lib/components/Text/Text.d.ts.map +0 -1
  841. package/lib/components/Text/index.d.ts +0 -4
  842. package/lib/components/Text/index.d.ts.map +0 -1
  843. package/lib/components/TextTile/TextTile.d.ts +0 -14
  844. package/lib/components/TextTile/TextTile.d.ts.map +0 -1
  845. package/lib/components/TextTile/index.d.ts +0 -2
  846. package/lib/components/TextTile/index.d.ts.map +0 -1
  847. package/lib/components/Textarea/Textarea.d.ts +0 -28
  848. package/lib/components/Textarea/Textarea.d.ts.map +0 -1
  849. package/lib/components/Textarea/index.d.ts +0 -3
  850. package/lib/components/Textarea/index.d.ts.map +0 -1
  851. package/lib/components/Timeline/Timeline.d.ts +0 -18
  852. package/lib/components/Timeline/Timeline.d.ts.map +0 -1
  853. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +0 -28
  854. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +0 -1
  855. package/lib/components/Timeline/TimelineItem/index.d.ts +0 -2
  856. package/lib/components/Timeline/TimelineItem/index.d.ts.map +0 -1
  857. package/lib/components/Timeline/index.d.ts +0 -3
  858. package/lib/components/Timeline/index.d.ts.map +0 -1
  859. package/lib/components/Toast/Toast.d.ts +0 -46
  860. package/lib/components/Toast/Toast.d.ts.map +0 -1
  861. package/lib/components/Toast/ToastContainer.d.ts +0 -3
  862. package/lib/components/Toast/ToastContainer.d.ts.map +0 -1
  863. package/lib/components/Toast/ToastManager.d.ts +0 -23
  864. package/lib/components/Toast/ToastManager.d.ts.map +0 -1
  865. package/lib/components/Toast/index.d.ts +0 -5
  866. package/lib/components/Toast/index.d.ts.map +0 -1
  867. package/lib/components/Toggle/Toggle.d.ts +0 -30
  868. package/lib/components/Toggle/Toggle.d.ts.map +0 -1
  869. package/lib/components/Toggle/index.d.ts +0 -2
  870. package/lib/components/Toggle/index.d.ts.map +0 -1
  871. package/lib/components/TokenListInput/TokenListInput.d.ts +0 -57
  872. package/lib/components/TokenListInput/TokenListInput.d.ts.map +0 -1
  873. package/lib/components/TokenListInput/TokenValueChips.d.ts +0 -20
  874. package/lib/components/TokenListInput/TokenValueChips.d.ts.map +0 -1
  875. package/lib/components/TokenListInput/index.d.ts +0 -2
  876. package/lib/components/TokenListInput/index.d.ts.map +0 -1
  877. package/lib/components/Tooltip/Tooltip.d.ts +0 -44
  878. package/lib/components/Tooltip/Tooltip.d.ts.map +0 -1
  879. package/lib/components/Tooltip/index.d.ts +0 -2
  880. package/lib/components/Tooltip/index.d.ts.map +0 -1
  881. package/lib/components/Truncate/Truncate.d.ts +0 -12
  882. package/lib/components/Truncate/Truncate.d.ts.map +0 -1
  883. package/lib/components/Truncate/index.d.ts +0 -3
  884. package/lib/components/Truncate/index.d.ts.map +0 -1
  885. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +0 -16
  886. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +0 -1
  887. package/lib/components/TruncatedTextWithTooltip/index.d.ts +0 -2
  888. package/lib/components/TruncatedTextWithTooltip/index.d.ts.map +0 -1
  889. package/lib/components/Typeahead/SimpleTypeahead.d.ts +0 -41
  890. package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +0 -1
  891. package/lib/components/Typeahead/Typeahead.d.ts +0 -30
  892. package/lib/components/Typeahead/Typeahead.d.ts.map +0 -1
  893. package/lib/components/Typeahead/index.d.ts +0 -3
  894. package/lib/components/Typeahead/index.d.ts.map +0 -1
  895. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +0 -36
  896. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +0 -1
  897. package/lib/components/WeekdayPicker/index.d.ts +0 -2
  898. package/lib/components/WeekdayPicker/index.d.ts.map +0 -1
  899. package/lib/components/index.d.ts +0 -76
  900. package/lib/components/index.d.ts.map +0 -1
  901. package/lib/flow-to-typescript-codemod.d.ts +0 -49
  902. package/lib/hooks/index.d.ts +0 -17
  903. package/lib/hooks/index.d.ts.map +0 -1
  904. package/lib/hooks/useArbitraryOptionAddition/index.d.ts +0 -2
  905. package/lib/hooks/useArbitraryOptionAddition/index.d.ts.map +0 -1
  906. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +0 -24
  907. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +0 -1
  908. package/lib/hooks/useCopyToClipboard/index.d.ts +0 -2
  909. package/lib/hooks/useCopyToClipboard/index.d.ts.map +0 -1
  910. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +0 -5
  911. package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts.map +0 -1
  912. package/lib/hooks/useDebounce/index.d.ts +0 -2
  913. package/lib/hooks/useDebounce/index.d.ts.map +0 -1
  914. package/lib/hooks/useDebounce/useDebounce.d.ts +0 -2
  915. package/lib/hooks/useDebounce/useDebounce.d.ts.map +0 -1
  916. package/lib/hooks/useFileUpload/index.d.ts +0 -2
  917. package/lib/hooks/useFileUpload/index.d.ts.map +0 -1
  918. package/lib/hooks/useFileUpload/useFileUpload.d.ts +0 -17
  919. package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +0 -1
  920. package/lib/hooks/useFilteredOptions/index.d.ts +0 -2
  921. package/lib/hooks/useFilteredOptions/index.d.ts.map +0 -1
  922. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +0 -17
  923. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +0 -1
  924. package/lib/hooks/useInfiniteScroll/index.d.ts +0 -2
  925. package/lib/hooks/useInfiniteScroll/index.d.ts.map +0 -1
  926. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +0 -15
  927. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +0 -1
  928. package/lib/hooks/useInputState/index.d.ts +0 -2
  929. package/lib/hooks/useInputState/index.d.ts.map +0 -1
  930. package/lib/hooks/useInputState/useInputState.d.ts +0 -13
  931. package/lib/hooks/useInputState/useInputState.d.ts.map +0 -1
  932. package/lib/hooks/useLockedBody/index.d.ts +0 -2
  933. package/lib/hooks/useLockedBody/index.d.ts.map +0 -1
  934. package/lib/hooks/useLockedBody/useLockedBody.d.ts +0 -4
  935. package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +0 -1
  936. package/lib/hooks/useModal/index.d.ts +0 -2
  937. package/lib/hooks/useModal/index.d.ts.map +0 -1
  938. package/lib/hooks/useModal/useModal.d.ts +0 -11
  939. package/lib/hooks/useModal/useModal.d.ts.map +0 -1
  940. package/lib/hooks/useMountTransition/index.d.ts +0 -3
  941. package/lib/hooks/useMountTransition/index.d.ts.map +0 -1
  942. package/lib/hooks/usePagination/index.d.ts +0 -2
  943. package/lib/hooks/usePagination/index.d.ts.map +0 -1
  944. package/lib/hooks/usePagination/usePagination.d.ts +0 -5
  945. package/lib/hooks/usePagination/usePagination.d.ts.map +0 -1
  946. package/lib/hooks/useReferenceElementWidth/index.d.ts +0 -2
  947. package/lib/hooks/useReferenceElementWidth/index.d.ts.map +0 -1
  948. package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts +0 -2
  949. package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts.map +0 -1
  950. package/lib/hooks/useResizeObserver/index.d.ts +0 -2
  951. package/lib/hooks/useResizeObserver/index.d.ts.map +0 -1
  952. package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +0 -3
  953. package/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +0 -1
  954. package/lib/hooks/useToastPortal/index.d.ts +0 -2
  955. package/lib/hooks/useToastPortal/index.d.ts.map +0 -1
  956. package/lib/hooks/useToastPortal/useToastPortal.d.ts +0 -10
  957. package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +0 -1
  958. package/lib/hooks/useToggle/index.d.ts +0 -2
  959. package/lib/hooks/useToggle/index.d.ts.map +0 -1
  960. package/lib/hooks/useToggle/useToggle.d.ts +0 -2
  961. package/lib/hooks/useToggle/useToggle.d.ts.map +0 -1
  962. package/lib/hooks/useWindowSize/index.d.ts +0 -2
  963. package/lib/hooks/useWindowSize/index.d.ts.map +0 -1
  964. package/lib/hooks/useWindowSize/useWindowSize.d.ts +0 -7
  965. package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +0 -1
  966. package/lib/index.d.ts +0 -6
  967. package/lib/index.d.ts.map +0 -1
  968. package/lib/styles/index.d.ts +0 -268
  969. package/lib/styles/index.d.ts.map +0 -1
  970. package/lib/styles/variables/_border.d.ts +0 -13
  971. package/lib/styles/variables/_border.d.ts.map +0 -1
  972. package/lib/styles/variables/_color.d.ts +0 -105
  973. package/lib/styles/variables/_color.d.ts.map +0 -1
  974. package/lib/styles/variables/_elevation.d.ts +0 -8
  975. package/lib/styles/variables/_elevation.d.ts.map +0 -1
  976. package/lib/styles/variables/_font.d.ts +0 -31
  977. package/lib/styles/variables/_font.d.ts.map +0 -1
  978. package/lib/styles/variables/_motion.d.ts +0 -7
  979. package/lib/styles/variables/_motion.d.ts.map +0 -1
  980. package/lib/styles/variables/_opacity.d.ts +0 -16
  981. package/lib/styles/variables/_opacity.d.ts.map +0 -1
  982. package/lib/styles/variables/_shadow.d.ts +0 -25
  983. package/lib/styles/variables/_shadow.d.ts.map +0 -1
  984. package/lib/styles/variables/_size.d.ts +0 -58
  985. package/lib/styles/variables/_size.d.ts.map +0 -1
  986. package/lib/styles/variables/_space.d.ts +0 -13
  987. package/lib/styles/variables/_space.d.ts.map +0 -1
  988. package/lib/types/charts.d.ts +0 -224
  989. package/lib/types/charts.d.ts.map +0 -1
  990. package/lib/types/common.d.ts +0 -10
  991. package/lib/types/common.d.ts.map +0 -1
  992. package/lib/types/cssvariables.d.js +0 -3
  993. package/lib/types/date-range-picker.d.ts +0 -21
  994. package/lib/types/date-range-picker.d.ts.map +0 -1
  995. package/lib/types/flow-to-typescript-codemod.d.js +0 -1
  996. package/lib/types/global.d.js +0 -1
  997. package/lib/types/index.d.ts +0 -7
  998. package/lib/types/index.d.ts.map +0 -1
  999. package/lib/types/menu.d.ts +0 -13
  1000. package/lib/types/menu.d.ts.map +0 -1
  1001. package/lib/types/toast.d.ts +0 -28
  1002. package/lib/types/toast.d.ts.map +0 -1
  1003. package/lib/types/typography.d.ts +0 -17
  1004. package/lib/types/typography.d.ts.map +0 -1
  1005. package/lib/utils/array/are-arrays-equal.d.ts +0 -4
  1006. package/lib/utils/array/are-arrays-equal.d.ts.map +0 -1
  1007. package/lib/utils/array/index.d.ts +0 -2
  1008. package/lib/utils/array/index.d.ts.map +0 -1
  1009. package/lib/utils/charts/charts.d.ts +0 -17
  1010. package/lib/utils/charts/charts.d.ts.map +0 -1
  1011. package/lib/utils/charts/columnChart.d.ts +0 -8
  1012. package/lib/utils/charts/columnChart.d.ts.map +0 -1
  1013. package/lib/utils/charts/donutChart.d.ts +0 -21
  1014. package/lib/utils/charts/donutChart.d.ts.map +0 -1
  1015. package/lib/utils/charts/funnelChart.d.ts +0 -10
  1016. package/lib/utils/charts/funnelChart.d.ts.map +0 -1
  1017. package/lib/utils/charts/helpers.d.ts +0 -76
  1018. package/lib/utils/charts/helpers.d.ts.map +0 -1
  1019. package/lib/utils/charts/index.d.ts +0 -8
  1020. package/lib/utils/charts/index.d.ts.map +0 -1
  1021. package/lib/utils/charts/lineChart.d.ts +0 -7
  1022. package/lib/utils/charts/lineChart.d.ts.map +0 -1
  1023. package/lib/utils/charts/spiderChart.d.ts +0 -18
  1024. package/lib/utils/charts/spiderChart.d.ts.map +0 -1
  1025. package/lib/utils/charts/typography.d.ts +0 -58
  1026. package/lib/utils/charts/typography.d.ts.map +0 -1
  1027. package/lib/utils/classify/index.d.ts +0 -3
  1028. package/lib/utils/classify/index.d.ts.map +0 -1
  1029. package/lib/utils/click-away/click-away.d.ts +0 -77
  1030. package/lib/utils/click-away/click-away.d.ts.map +0 -1
  1031. package/lib/utils/click-away/index.d.ts +0 -2
  1032. package/lib/utils/click-away/index.d.ts.map +0 -1
  1033. package/lib/utils/date-range-picker/date-range-picker.d.ts +0 -63
  1034. package/lib/utils/date-range-picker/date-range-picker.d.ts.map +0 -1
  1035. package/lib/utils/date-range-picker/index.d.ts +0 -3
  1036. package/lib/utils/date-range-picker/index.d.ts.map +0 -1
  1037. package/lib/utils/date-range-picker/timezones.d.ts +0 -258
  1038. package/lib/utils/date-range-picker/timezones.d.ts.map +0 -1
  1039. package/lib/utils/dom/dom.d.ts +0 -38
  1040. package/lib/utils/dom/dom.d.ts.map +0 -1
  1041. package/lib/utils/dom/index.d.ts +0 -2
  1042. package/lib/utils/dom/index.d.ts.map +0 -1
  1043. package/lib/utils/helpers/helpers.d.ts +0 -4
  1044. package/lib/utils/helpers/helpers.d.ts.map +0 -1
  1045. package/lib/utils/helpers/index.d.ts +0 -2
  1046. package/lib/utils/helpers/index.d.ts.map +0 -1
  1047. package/lib/utils/index.d.ts +0 -15
  1048. package/lib/utils/index.d.ts.map +0 -1
  1049. package/lib/utils/makeClassNameComponent/index.d.ts +0 -2
  1050. package/lib/utils/makeClassNameComponent/index.d.ts.map +0 -1
  1051. package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts +0 -9
  1052. package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +0 -1
  1053. package/lib/utils/menu/index.d.ts +0 -2
  1054. package/lib/utils/menu/index.d.ts.map +0 -1
  1055. package/lib/utils/menu/menu.d.ts +0 -20
  1056. package/lib/utils/menu/menu.d.ts.map +0 -1
  1057. package/lib/utils/merge-refs/index.d.ts +0 -2
  1058. package/lib/utils/merge-refs/index.d.ts.map +0 -1
  1059. package/lib/utils/merge-refs/merge-refs.d.ts +0 -4
  1060. package/lib/utils/merge-refs/merge-refs.d.ts.map +0 -1
  1061. package/lib/utils/rating/index.d.ts +0 -2
  1062. package/lib/utils/rating/index.d.ts.map +0 -1
  1063. package/lib/utils/rating/rating.d.ts +0 -13
  1064. package/lib/utils/rating/rating.d.ts.map +0 -1
  1065. package/lib/utils/score-bar/index.d.ts +0 -2
  1066. package/lib/utils/score-bar/index.d.ts.map +0 -1
  1067. package/lib/utils/score-bar/score-bar.d.ts +0 -10
  1068. package/lib/utils/score-bar/score-bar.d.ts.map +0 -1
  1069. package/lib/utils/string/index.d.ts +0 -2
  1070. package/lib/utils/string/index.d.ts.map +0 -1
  1071. package/lib/utils/string/string.d.ts +0 -6
  1072. package/lib/utils/string/string.d.ts.map +0 -1
  1073. package/lib/utils/token-list-input/token-list-input.d.ts +0 -15
  1074. package/lib/utils/token-list-input/token-list-input.d.ts.map +0 -1
  1075. package/lib/utils/tokens/index.d.ts +0 -2
  1076. package/lib/utils/tokens/index.d.ts.map +0 -1
  1077. package/lib/utils/tokens/tokens.d.ts +0 -41
  1078. package/lib/utils/tokens/tokens.d.ts.map +0 -1
  1079. package/tsconfig.declaration.json +0 -11
  1080. package/tsconfig.json +0 -41
@@ -0,0 +1,119 @@
1
+ // @flow strict
2
+
3
+ import type {ChartOptions, LegendOptionsType} from '../../types/charts';
4
+
5
+ import {commonChartOptions} from './charts';
6
+ import {deepMerge} from './helpers';
7
+
8
+
9
+ type DonutChartPropsType = {
10
+ legend?: LegendOptionsType,
11
+ defaultCenterHTML?: string,
12
+ };
13
+
14
+ /**
15
+ * Defining these constants here so that internal calculations are self explanatory.
16
+ */
17
+ const INNER_SIZE = 0.5; // set .5 here for 50% inner size w.r.t the pie chart outer circle.
18
+ const LEGEND_WIDTH = 0.4; // set .4 here for 40% legend width w.r.t the plot width.
19
+ const CHART_WIDTH = 1 - LEGEND_WIDTH;
20
+ const CHART_CENTER = (1 - LEGEND_WIDTH) / 2;
21
+ const CHART_SIZE = 0.8; // chart size w.r.t area allocated to chart drawing;
22
+
23
+ export const rightLegendColumn = {
24
+ layout: 'vertical',
25
+ align: 'right',
26
+ verticalAlign: 'middle',
27
+ itemMarginBottom: 12,
28
+ symbolPadding: 8,
29
+ symbolWidth: 8,
30
+ // take it as 10% of width as left margin
31
+ width: `${LEGEND_WIDTH * 90}%`,
32
+ };
33
+
34
+ /**
35
+ * This function modifies the the common chart behavior to donut chart default behavior.
36
+ * It will not take userPassed option into account.
37
+ */
38
+
39
+ export const getDonutChartOptions = ({
40
+ legend,
41
+ defaultCenterHTML,
42
+ }: DonutChartPropsType): ChartOptions => {
43
+ const legendOption = deepMerge(commonChartOptions.legend, legend);
44
+ const isLegendEnabled = legendOption.enabled;
45
+ return {
46
+ ...commonChartOptions,
47
+ chart: {
48
+ ...commonChartOptions.chart,
49
+ type: 'pie',
50
+ spacing: [0, 0, 0, 0],
51
+ margin: [0, 0, 0, 0],
52
+ events: {
53
+ render() {
54
+ //$FlowFixMe[object-this-reference]
55
+ const chart = this;
56
+ const containerWidth = chart.renderTo.offsetWidth;
57
+ const desiredHeight = CHART_WIDTH * containerWidth;
58
+ // 5px adjustment required due to borderWidth mostly.
59
+ const centerTextX = isLegendEnabled
60
+ ? parseInt(chart.plotWidth) * CHART_CENTER + 5
61
+ : 0;
62
+ chart.update(
63
+ {
64
+ chart: {
65
+ height: desiredHeight, // Set the height dynamically based on the container's width
66
+ },
67
+ subtitle: {
68
+ x: centerTextX,
69
+ },
70
+ },
71
+ false,
72
+ );
73
+ },
74
+ },
75
+ },
76
+ legend: {
77
+ ...legendOption,
78
+ ...rightLegendColumn,
79
+ },
80
+ plotOptions: {
81
+ pie: {
82
+ innerSize: `${INNER_SIZE * 100}%`,
83
+ allowPointSelect: true,
84
+ cursor: 'pointer',
85
+ dataLabels: {
86
+ // auto disabling the data label when legend is enabled.
87
+ enabled: !isLegendEnabled,
88
+ distance: 20,
89
+ },
90
+ showInLegend: true,
91
+ center: isLegendEnabled
92
+ ? [`${CHART_CENTER * 100}%`, '50%']
93
+ : ['50%', '50%'],
94
+ size: `${CHART_SIZE * 100}%`,
95
+ borderWidth: 5,
96
+ borderRadius: 10,
97
+ minSize: 240,
98
+ clip: false,
99
+ },
100
+ },
101
+ subtitle: {
102
+ useHTML: true,
103
+ text: defaultCenterHTML,
104
+ verticalAlign: 'middle',
105
+ align: isLegendEnabled ? 'left' : 'center',
106
+ style: {
107
+ alignContent: 'center',
108
+ // Note: Width was not working, have given miWidth and maxWidth
109
+ minWidth: isLegendEnabled
110
+ ? `${CHART_WIDTH * CHART_SIZE * INNER_SIZE * 80}%`
111
+ : `${CHART_SIZE * INNER_SIZE * 80}%`,
112
+ maxWidth: isLegendEnabled
113
+ ? `${CHART_WIDTH * CHART_SIZE * INNER_SIZE * 80}%`
114
+ : `${CHART_SIZE * INNER_SIZE * 80}%`,
115
+ ...(isLegendEnabled ? {transform: 'translate(-50%)'} : {}),
116
+ },
117
+ },
118
+ };
119
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getFunnelChartOptions = exports.addColorsToFunnelSeries = exports.addColorsToFunnelDrilldownSeries = void 0;
7
- var _color = require("../../styles/variables/_color");
7
+ var _color = require("../../styles/variables/_color.js");
8
8
  var _charts = require("./charts");
9
9
  var _helpers = require("./helpers");
10
10
  var _typography = require("./typography");
@@ -12,7 +12,6 @@ var _typography = require("./typography");
12
12
  * This function modifies the the common chart behavior to funnel chart default behavior.
13
13
  * It will not take userPassed option into account.
14
14
  */
15
-
16
15
  const getFunnelChartOptions = () => ({
17
16
  ..._charts.commonChartOptions,
18
17
  chart: {
@@ -32,7 +31,6 @@ const getFunnelChartOptions = () => ({
32
31
  margin: 12,
33
32
  style: _helpers.xAxisTitleStyle
34
33
  },
35
- // @ts-ignore - TS2322 - Type '{ labels: { style: { readonly fontSize: "12px"; readonly fontFamily: "Centra No 2"; readonly fontStyle: "normal"; readonly margin: 0; readonly color: "#17172A"; readonly letterSpacing: "0em"; readonly fontWeight: "500"; readonly display: "flex"; readonly alignItems: "center"; }; }; ... 6 more ...; type?: string | un...' is not assignable to type 'AxisOptions'.
36
34
  lineColor: _color.colorBorderPrimary
37
35
  },
38
36
  yAxis: {
@@ -83,10 +81,8 @@ exports.addColorsToFunnelSeries = addColorsToFunnelSeries;
83
81
  const addColorsToFunnelDrilldownSeries = function (drilldownSeries) {
84
82
  let showInLegend = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
85
83
  return {
86
- // @ts-ignore - TS7006 - Parameter 'series' implicitly has an 'any' type.
87
84
  series: drilldownSeries.series?.map(series => ({
88
85
  ...series,
89
- // @ts-ignore - TS7006 - Parameter 'dataPoint' implicitly has an 'any' type. | TS7006 - Parameter 'index' implicitly has an 'any' type.
90
86
  data: series.data.map((dataPoint, index) => ({
91
87
  ...dataPoint,
92
88
  color: (0, _charts.getDataVizColor)(index) // Assign a color dynamically based on index
@@ -0,0 +1,102 @@
1
+ // @flow strict
2
+ import type {FunnelSeriesItem} from '../../components/Charts/FunnelChart/FunnelChart.js';
3
+ import {colorBorderPrimary} from '../../styles/variables/_color.js';
4
+ import type {
5
+ ChartOptions,
6
+ DataOptionsType,
7
+ Drilldown,
8
+ } from '../../types/charts';
9
+
10
+ import {commonChartOptions, getDataVizColor} from './charts';
11
+ import {
12
+ bottomLegendRow,
13
+ xAxisTitleStyle,
14
+ yAxisLabelStyle,
15
+ yAxisTitleStyle,
16
+ } from './helpers';
17
+ import {formLabelSmall} from './typography';
18
+
19
+ /**
20
+ * This function modifies the the common chart behavior to funnel chart default behavior.
21
+ * It will not take userPassed option into account.
22
+ */
23
+
24
+ export const getFunnelChartOptions = (): ChartOptions => ({
25
+ ...commonChartOptions,
26
+ chart: {
27
+ type: 'funnel',
28
+ },
29
+ legend: {
30
+ ...commonChartOptions.legend,
31
+ ...bottomLegendRow,
32
+ symbolWidth: 18,
33
+ },
34
+ xAxis: {
35
+ ...commonChartOptions.xAxis,
36
+ labels: {
37
+ style: formLabelSmall,
38
+ },
39
+ title: {
40
+ margin: 12,
41
+ style: xAxisTitleStyle,
42
+ },
43
+ lineColor: colorBorderPrimary,
44
+ },
45
+ yAxis: {
46
+ labels: {
47
+ align: 'right',
48
+ distance: 12,
49
+ style: yAxisLabelStyle,
50
+ },
51
+ title: {
52
+ margin: 12,
53
+ style: yAxisTitleStyle,
54
+ },
55
+ },
56
+ plotOptions: {
57
+ funnel: {
58
+ neckWidth: '15%',
59
+ neckHeight: '10%',
60
+ minSize: '50%',
61
+ width: '55%',
62
+ dataLabels: {
63
+ enabled: true,
64
+ useHTML: true, // Allows custom HTML formatting
65
+ format: `<div style="text-align: center">
66
+ <span>{point.name}</span><br>
67
+ <span>{point.y}</span>
68
+ </div>`,
69
+ style: {
70
+ fontWeight: 'bold',
71
+ },
72
+ },
73
+ },
74
+ },
75
+ });
76
+
77
+ export const addColorsToFunnelSeries = (
78
+ series: Array<FunnelSeriesItem>,
79
+ showInLegend?: boolean = true,
80
+ ): Array<FunnelSeriesItem> =>
81
+ series.map((item: FunnelSeriesItem) => ({
82
+ ...item,
83
+ data: item.data.map((seriesItem: DataOptionsType, index: number) => ({
84
+ ...seriesItem,
85
+ color: getDataVizColor(index), // Apply color based on index
86
+ })),
87
+ showInLegend, // Ensure legend visibility
88
+ }));
89
+
90
+ export const addColorsToFunnelDrilldownSeries = (
91
+ drilldownSeries: Drilldown,
92
+ showInLegend?: boolean = true,
93
+ ): Drilldown => ({
94
+ series: drilldownSeries.series?.map((series) => ({
95
+ ...series,
96
+ data: series.data.map((dataPoint, index) => ({
97
+ ...dataPoint,
98
+ color: getDataVizColor(index), // Assign a color dynamically based on index
99
+ })),
100
+ showInLegend, // Ensure legend is displayed
101
+ })),
102
+ });
@@ -0,0 +1,68 @@
1
+ // @flow strict
2
+
3
+ import merge from 'lodash/merge';
4
+
5
+ import {
6
+ colorTextPrimary,
7
+ colorTextSecondary,
8
+ } from '../../styles/variables/_color';
9
+
10
+ import {
11
+ bodySmall,
12
+ buttonTextExtraSmall,
13
+ formLabelSmall,
14
+ underline,
15
+ } from './typography';
16
+
17
+
18
+ export const deepMerge = <T: {}>(
19
+ obj1?: $Shape<T>,
20
+ obj2?: $Shape<T>,
21
+ ...args: Array<?$Shape<T>>
22
+ ): T =>
23
+ // {} is used here to ensure obj1 is not modified
24
+ merge({}, obj1, obj2, ...args);
25
+
26
+ export const rightLineLegendColumn = {
27
+ layout: 'vertical',
28
+ align: 'right',
29
+ verticalAlign: 'middle',
30
+ itemMarginBottom: 12,
31
+ symbolPadding: 4,
32
+ symbolWidth: 16,
33
+ width: '40%',
34
+ };
35
+
36
+ export const bottomLegendRow = {
37
+ layout: 'horizontal',
38
+ align: 'center',
39
+ verticalAlign: 'bottom',
40
+ itemDistance: 20,
41
+ symbolPadding: 4,
42
+ symbolWidth: 16,
43
+ };
44
+
45
+ export const yAxisTitleStyle = {
46
+ ...bodySmall,
47
+ color: colorTextSecondary,
48
+ };
49
+
50
+ export const xAxisTitleStyle = {
51
+ ...bodySmall,
52
+ color: colorTextSecondary,
53
+ };
54
+
55
+ export const yAxisLabelStyle = {
56
+ ...formLabelSmall,
57
+ };
58
+
59
+ export const xAxisLabelStyle = {
60
+ ...buttonTextExtraSmall,
61
+ };
62
+
63
+ export const activeLabelStyle = {
64
+ ...buttonTextExtraSmall,
65
+ ...underline,
66
+ color: colorTextPrimary,
67
+ fill: colorTextPrimary,
68
+ };
@@ -0,0 +1,9 @@
1
+ // @flow strict
2
+
3
+ export * from './charts';
4
+ export * from './columnChart';
5
+ export * from './donutChart';
6
+ export * from './helpers';
7
+ export * from './lineChart';
8
+ export * from './spiderChart';
9
+ export * from './typography';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getLineChartOptions = void 0;
7
- var _color = require("../../styles/variables/_color");
7
+ var _color = require("../../styles/variables/_color.js");
8
8
  var _charts = require("./charts");
9
9
  var _helpers = require("./helpers");
10
10
  var _typography = require("./typography");
@@ -12,7 +12,6 @@ var _typography = require("./typography");
12
12
  * This function modifies the the common chart behavior to line chart default behavior.
13
13
  * It will not take userPassed option into account.
14
14
  */
15
-
16
15
  const getLineChartOptions = () => ({
17
16
  ..._charts.commonChartOptions,
18
17
  chart: {
@@ -32,7 +31,6 @@ const getLineChartOptions = () => ({
32
31
  margin: 12,
33
32
  style: _helpers.xAxisTitleStyle
34
33
  },
35
- // @ts-ignore - TS2322 - Type '{ labels: { style: { readonly fontSize: "12px"; readonly fontFamily: "Centra No 2"; readonly fontStyle: "normal"; readonly margin: 0; readonly color: "#17172A"; readonly letterSpacing: "0em"; readonly fontWeight: "500"; readonly display: "flex"; readonly alignItems: "center"; }; }; ... 6 more ...; type?: string | un...' is not assignable to type 'AxisOptions'.
36
34
  lineColor: _color.colorBorderPrimary
37
35
  },
38
36
  yAxis: {
@@ -0,0 +1,51 @@
1
+ // @flow strict
2
+ import {colorBorderPrimary} from '../../styles/variables/_color.js';
3
+ import type {ChartOptions} from '../../types/charts';
4
+
5
+ import {commonChartOptions} from './charts';
6
+ import {
7
+ bottomLegendRow,
8
+ xAxisTitleStyle,
9
+ yAxisLabelStyle,
10
+ yAxisTitleStyle,
11
+ } from './helpers';
12
+ import {formLabelSmall} from './typography';
13
+
14
+ /**
15
+ * This function modifies the the common chart behavior to line chart default behavior.
16
+ * It will not take userPassed option into account.
17
+ */
18
+
19
+ export const getLineChartOptions = (): ChartOptions => ({
20
+ ...commonChartOptions,
21
+ chart: {
22
+ type: 'line',
23
+ },
24
+ legend: {
25
+ ...commonChartOptions.legend,
26
+ ...bottomLegendRow,
27
+ symbolWidth: 18,
28
+ },
29
+ xAxis: {
30
+ ...commonChartOptions.xAxis,
31
+ labels: {
32
+ style: formLabelSmall,
33
+ },
34
+ title: {
35
+ margin: 12,
36
+ style: xAxisTitleStyle,
37
+ },
38
+ lineColor: colorBorderPrimary,
39
+ },
40
+ yAxis: {
41
+ labels: {
42
+ align: 'right',
43
+ distance: 12,
44
+ style: yAxisLabelStyle,
45
+ },
46
+ title: {
47
+ margin: 12,
48
+ style: yAxisTitleStyle,
49
+ },
50
+ },
51
+ });
@@ -0,0 +1,59 @@
1
+ // @flow strict
2
+
3
+ import {colorTextSecondary} from '../../styles/variables/_color';
4
+ import type {ChartOptions} from '../../types/charts';
5
+
6
+ import {commonChartOptions} from './charts';
7
+ import {rightLineLegendColumn} from './helpers';
8
+ import {bodySmall} from './typography';
9
+
10
+
11
+ export const bodySmallSecondary = {
12
+ ...bodySmall,
13
+ color: colorTextSecondary,
14
+ };
15
+
16
+ /**
17
+ * This function modifies the the common chart behavior to spider chart default behavior.
18
+ * It will not take userPassed option into account.
19
+ */
20
+
21
+ export const getSpiderChartOptions = (): ChartOptions => ({
22
+ ...commonChartOptions,
23
+ chart: {
24
+ ...commonChartOptions.chart,
25
+ polar: true,
26
+ type: 'line',
27
+ spacing: [0, 0, 0, 0],
28
+ margin: [0, 0, 0, 0],
29
+ },
30
+ xAxis: {
31
+ ...commonChartOptions.xAxis,
32
+ labels: {
33
+ style: bodySmallSecondary,
34
+ },
35
+ lineWidth: 0,
36
+ tickmarkPlacement: 'on',
37
+ },
38
+ yAxis: {
39
+ labels: {
40
+ style: bodySmallSecondary,
41
+ },
42
+ gridLineInterpolation: 'polygon',
43
+ lineWidth: 0,
44
+ },
45
+ legend: {
46
+ ...commonChartOptions.legend,
47
+ ...rightLineLegendColumn,
48
+ symbolWidth: 18,
49
+ },
50
+ pane: {
51
+ center: ['30%', '50%'],
52
+ size: '70%',
53
+ },
54
+ tooltip: {
55
+ ...commonChartOptions.tooltip,
56
+ followPointer: false,
57
+ shared: true,
58
+ },
59
+ });
@@ -0,0 +1,53 @@
1
+ // @flow strict
2
+ import {colorTextPrimary} from '../../styles/variables/_color';
3
+ import {
4
+ fontLetterSpacing0,
5
+ fontLetterSpacing1,
6
+ fontLetterSpacing4,
7
+ fontSize12,
8
+ fontWeightBook,
9
+ fontWeightMedium,
10
+ } from '../../styles/variables/_font';
11
+
12
+
13
+ export const baseType = {
14
+ fontFamily: 'Centra No 2',
15
+ fontStyle: 'normal',
16
+ margin: 0,
17
+ color: colorTextPrimary,
18
+ letterSpacing: fontLetterSpacing0,
19
+ fontWeight: fontWeightMedium,
20
+ display: 'flex',
21
+ alignItems: 'center',
22
+ };
23
+
24
+ export const bodySmall = {
25
+ ...baseType,
26
+ fontSize: fontSize12,
27
+ fontWeight: fontWeightBook,
28
+ letterSpacing: fontLetterSpacing4,
29
+ };
30
+
31
+ export const formLabelSmall = {
32
+ ...baseType,
33
+ fontSize: fontSize12,
34
+ // Removing the font height as its breaking the chart axis labels
35
+ };
36
+
37
+ export const buttonTextExtraSmall = {
38
+ ...baseType,
39
+ fontSize: fontSize12,
40
+ letterSpacing: fontLetterSpacing1,
41
+ // Removing the font height as its breaking the chart axis labels
42
+ };
43
+
44
+ export const underline = {
45
+ textDecoration: 'underline',
46
+ };
47
+
48
+ export const subTitleExtraSmall = {
49
+ ...baseType,
50
+ fontSize: fontSize12,
51
+ letterSpacing: fontLetterSpacing0,
52
+ // Removing the font height as its breaking the chart axis labels
53
+ };
@@ -15,7 +15,7 @@ function classify() {
15
15
  return args.map(arg => {
16
16
  let mappedArg = arg;
17
17
  if ((0, _isPlainObject.default)(arg)) {
18
- // @ts-ignore - TS2769 - No overload matches this call.
18
+ // $FlowFixMe[incompatible-call]
19
19
  mappedArg = (0, _map.default)(arg, (test, name) => test ? name : null);
20
20
  }
21
21
  return mappedArg;
@@ -0,0 +1,29 @@
1
+ // @flow strict
2
+
3
+ import isPlainObject from 'lodash/isPlainObject';
4
+ import map from 'lodash/map';
5
+
6
+
7
+ export function classify(...args: Array<mixed>): string {
8
+ return args
9
+ .map((arg) => {
10
+ let mappedArg = arg;
11
+ if (isPlainObject(arg)) {
12
+ // $FlowFixMe[incompatible-call]
13
+ mappedArg = map(arg, (test, name: string) => (test ? name : null));
14
+ }
15
+ return mappedArg;
16
+ })
17
+ .reduce((array, current) => {
18
+ if (Array.isArray(current)) {
19
+ array.push(...current);
20
+ } else {
21
+ array.push(current);
22
+ }
23
+ return array;
24
+ }, [])
25
+ .filter((val) => val)
26
+ .join(' ');
27
+ }
28
+
29
+ export default classify;
@@ -10,7 +10,6 @@ var _dom = require("../dom");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  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); }
12
12
  // TODO(Nishant): Make this a functional component
13
-
14
13
  class ClickAway extends React.Component {
15
14
  static defaultProps = {
16
15
  containsNestedFloatingPortals: false,
@@ -32,8 +31,6 @@ class ClickAway extends React.Component {
32
31
  });
33
32
  }
34
33
  }
35
-
36
- // @ts-ignore - TS6133 - 'prevProps' is declared but its value is never read.
37
34
  componentDidUpdate(prevProps, prevState) {
38
35
  const {
39
36
  isOpen
@@ -44,17 +41,13 @@ class ClickAway extends React.Component {
44
41
  capture: true
45
42
  });
46
43
  if (this.props.closeOnEscapeKeypress) {
47
- window.document.addEventListener('keyup',
48
- // @ts-ignore - TS2769 - No overload matches this call.
49
- this.handleCloseOnEscapeKeypress);
44
+ window.document.addEventListener('keyup', this.handleCloseOnEscapeKeypress);
50
45
  }
51
46
  } else {
52
47
  window.document.removeEventListener('click', this.handleCloseClick, {
53
48
  capture: true
54
49
  });
55
- window.document.removeEventListener('keyup',
56
- // @ts-ignore - TS2769 - No overload matches this call.
57
- this.handleCloseOnEscapeKeypress);
50
+ window.document.removeEventListener('keyup', this.handleCloseOnEscapeKeypress);
58
51
  }
59
52
  }
60
53
  }
@@ -62,9 +55,7 @@ class ClickAway extends React.Component {
62
55
  window.document.removeEventListener('click', this.handleCloseClick, {
63
56
  capture: true
64
57
  });
65
- window.document.removeEventListener('keyup',
66
- // @ts-ignore - TS2769 - No overload matches this call.
67
- this.handleCloseOnEscapeKeypress);
58
+ window.document.removeEventListener('keyup', this.handleCloseOnEscapeKeypress);
68
59
  }
69
60
  render() {
70
61
  const {
@@ -109,14 +100,10 @@ class ClickAway extends React.Component {
109
100
  if (evt.target instanceof Node && this.props.containsNestedFloatingPortals && this.boundaryRef.current?.parentElement && (this.boundaryRef.current.parentElement === evt.target || this.boundaryRef.current.parentElement.contains(evt.target))) {
110
101
  return;
111
102
  }
112
- if (evt.target instanceof Node && this.boundaryRef && (
113
- // @ts-ignore - TS2367 - This condition will always return 'false' since the types 'BoundaryRefType<HTMLElement | null | undefined>' and 'Node' have no overlap.
114
- this.boundaryRef === evt.target || this.boundaryRef.current?.contains(evt.target))) {
103
+ if (evt.target instanceof Node && this.boundaryRef && (this.boundaryRef === evt.target || this.boundaryRef.current?.contains(evt.target))) {
115
104
  return;
116
105
  }
117
- if (evt.target instanceof Node && this.triggerRef && (
118
- // @ts-ignore - TS2367 - This condition will always return 'false' since the types 'TriggerRefType<HTMLElement | null | undefined>' and 'Node' have no overlap.
119
- this.triggerRef === evt.target || this.triggerRef.current?.contains(evt.target))) {
106
+ if (evt.target instanceof Node && this.triggerRef && (this.triggerRef === evt.target || this.triggerRef.current?.contains(evt.target))) {
120
107
  return;
121
108
  }
122
109
  this.setState({