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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (489) hide show
  1. package/.cspell/custom-words.txt +3 -0
  2. package/.github/CODEOWNERS +0 -5
  3. package/.github/workflows/pull_request_checks.yml +4 -4
  4. package/.storybook/public/component-parent-levels.json +95 -0
  5. package/.type-coverage +13 -0
  6. package/CHANGELOG.md +53 -0
  7. package/cspell.json +0 -1
  8. package/design-tokens/size/base-size.json +3 -0
  9. package/eslint.config.mjs +62 -29
  10. package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts.map +1 -1
  11. package/lib/components/Accordion/Accordion.d.ts +2 -2
  12. package/lib/components/Accordion/Accordion.d.ts.map +1 -1
  13. package/lib/components/Accordion/AccordionGroup.d.ts +2 -2
  14. package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
  15. package/lib/components/Accordion/AccordionGroup.stories.d.ts.map +1 -1
  16. package/lib/components/Avatar/Avatar.d.ts +5 -5
  17. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  18. package/lib/components/Avatar/Avatar.js +4 -13
  19. package/lib/components/AvatarGroup/AvatarGroup.d.ts +2 -2
  20. package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  21. package/lib/components/AvatarGroup/AvatarGroup.js +27 -14
  22. package/lib/components/Badge/Badge.d.ts +7 -8
  23. package/lib/components/Badge/Badge.d.ts.map +1 -1
  24. package/lib/components/Badge/Badge.stories.d.ts.map +1 -1
  25. package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -2
  26. package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
  27. package/lib/components/BadgedIcon/BadgedIcon.js +1 -4
  28. package/lib/components/Banner/Banner.d.ts +2 -3
  29. package/lib/components/Banner/Banner.d.ts.map +1 -1
  30. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +2 -3
  31. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
  32. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +2 -4
  33. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  34. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  35. package/lib/components/Breadcrumbs/Breadcrumbs.js +5 -6
  36. package/lib/components/Button/Button.d.ts +7 -8
  37. package/lib/components/Button/Button.d.ts.map +1 -1
  38. package/lib/components/Button/Button.js +7 -21
  39. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +3 -4
  40. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
  41. package/lib/components/ButtonDropdown/ButtonDropdown.js +4 -14
  42. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +70 -70
  43. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts.map +1 -1
  44. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +5 -6
  45. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
  46. package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +1 -9
  47. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts +109 -109
  48. package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts.map +1 -1
  49. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +2 -2
  50. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -1
  51. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +2 -3
  52. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
  53. package/lib/components/ButtonTabs/ButtonTabDropdown.js +5 -14
  54. package/lib/components/ButtonTabs/ButtonTabs.d.ts +2 -2
  55. package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -1
  56. package/lib/components/ButtonTabs/ButtonTabs.js +2 -3
  57. package/lib/components/Card/Card.d.ts +9 -7
  58. package/lib/components/Card/Card.d.ts.map +1 -1
  59. package/lib/components/Card/Card.js +2 -7
  60. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +9 -4
  61. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -1
  62. package/lib/components/Charts/ChartWrapper/ChartWrapper.js +6 -8
  63. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +8 -5
  64. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
  65. package/lib/components/Charts/ColumnChart/ColumnChart.js +16 -10
  66. package/lib/components/Charts/DonutChart/DonutChart.d.ts +4 -5
  67. package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  68. package/lib/components/Charts/DonutChart/DonutChart.js +1 -2
  69. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +4 -5
  70. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
  71. package/lib/components/Charts/LineChart/LineChart.d.ts +4 -5
  72. package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  73. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +21 -0
  74. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -0
  75. package/lib/components/Charts/SankeyChart/SankeyChart.js +104 -0
  76. package/lib/components/Charts/SankeyChart/SankeyChart.module.css +22 -0
  77. package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts +267 -0
  78. package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts.map +1 -0
  79. package/lib/components/Charts/SankeyChart/index.d.ts +2 -0
  80. package/lib/components/Charts/SankeyChart/index.d.ts.map +1 -0
  81. package/lib/components/Charts/SankeyChart/index.js +16 -0
  82. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +4 -5
  83. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
  84. package/lib/components/Charts/SpiderChart/SpiderChart.module.css +7 -2
  85. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +24 -0
  86. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -0
  87. package/lib/components/Charts/StackedBarChart/StackedBarChart.js +78 -0
  88. package/lib/components/Charts/StackedBarChart/StackedBarChart.module.css +22 -0
  89. package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts +192 -0
  90. package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts.map +1 -0
  91. package/lib/components/Charts/StackedBarChart/index.d.ts +2 -0
  92. package/lib/components/Charts/StackedBarChart/index.d.ts.map +1 -0
  93. package/lib/components/Charts/StackedBarChart/index.js +16 -0
  94. package/lib/components/Charts/index.d.ts +2 -0
  95. package/lib/components/Charts/index.d.ts.map +1 -1
  96. package/lib/components/Charts/index.js +22 -0
  97. package/lib/components/ChatBubble/ChatBubble.d.ts +14 -14
  98. package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
  99. package/lib/components/ChatBubble/ChatBubble.js +11 -4
  100. package/lib/components/Checkbox/Checkbox.d.ts +2 -3
  101. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  102. package/lib/components/Checkbox/Checkbox.js +1 -2
  103. package/lib/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  104. package/lib/components/Checkbox/CheckboxGroup.d.ts +2 -2
  105. package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  106. package/lib/components/Checkbox/CheckboxGroup.js +8 -12
  107. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts +2 -3
  108. package/lib/components/Checkbox/CheckboxGroup.stories.d.ts.map +1 -1
  109. package/lib/components/Chip/Chip.d.ts +10 -11
  110. package/lib/components/Chip/Chip.d.ts.map +1 -1
  111. package/lib/components/Chip/Chip.js +7 -13
  112. package/lib/components/CircularLoader/CircularLoader.d.ts +2 -2
  113. package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
  114. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  115. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
  116. package/lib/components/Combobox/Combobox.d.ts +16 -16
  117. package/lib/components/Combobox/Combobox.d.ts.map +1 -1
  118. package/lib/components/Combobox/Combobox.js +16 -19
  119. package/lib/components/Combobox/Combobox.stories.d.ts.map +1 -1
  120. package/lib/components/Combobox/helper.d.ts.map +1 -1
  121. package/lib/components/Combobox/helper.js +0 -1
  122. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +2 -2
  123. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -1
  124. package/lib/components/DateRangePicker/Calendar.d.ts +3 -3
  125. package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -1
  126. package/lib/components/DateRangePicker/Calendar.js +2 -6
  127. package/lib/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  128. package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  129. package/lib/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
  130. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +2 -2
  131. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
  132. package/lib/components/DateRangePicker/DateRangeWrapper.js +6 -14
  133. package/lib/components/DateRangePicker/Day.d.ts +2 -2
  134. package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
  135. package/lib/components/Dialog/Dialog.d.ts +10 -11
  136. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  137. package/lib/components/Disclaimer/Disclaimer.d.ts.map +1 -1
  138. package/lib/components/Disclaimer/Disclaimer.js +0 -1
  139. package/lib/components/Dropdown/Dropdown.d.ts +3 -4
  140. package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
  141. package/lib/components/Dropdown/Dropdown.js +17 -18
  142. package/lib/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
  143. package/lib/components/Dropdown/SimpleDropdown.d.ts +5 -6
  144. package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
  145. package/lib/components/Dropdown/SimpleDropdown.js +1 -7
  146. package/lib/components/Dropdown/SimpleDropdown.stories.d.ts.map +1 -1
  147. package/lib/components/EmptyState/EmptyState.d.ts +2 -2
  148. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  149. package/lib/components/ErrorMessage/ErrorMessage.d.ts +2 -2
  150. package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
  151. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +2 -2
  152. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
  153. package/lib/components/FileUpload/FileUpload.d.ts +14 -13
  154. package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
  155. package/lib/components/FileUpload/FileUpload.js +2 -7
  156. package/lib/components/FileUpload/FileUpload.stories.d.ts +2 -1
  157. package/lib/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
  158. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +3 -4
  159. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
  160. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +1 -9
  161. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.d.ts.map +1 -1
  162. package/lib/components/FocusManager/FocusManager.d.ts +2 -2
  163. package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
  164. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +4 -5
  165. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
  166. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +21 -17
  167. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts.map +1 -1
  168. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +2 -2
  169. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
  170. package/lib/components/Grid/Col.stories.d.ts +1 -1
  171. package/lib/components/Grid/Grid.d.ts +7 -7
  172. package/lib/components/Grid/Grid.d.ts.map +1 -1
  173. package/lib/components/Grid/Grid.js +6 -13
  174. package/lib/components/Grid/GridPatterns.stories.d.ts +1 -1
  175. package/lib/components/Grid/GridPatterns.stories.d.ts.map +1 -1
  176. package/lib/components/Grid/Row.stories.d.ts +1 -1
  177. package/lib/components/Icon/ClickableIcon.d.ts +6 -6
  178. package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
  179. package/lib/components/Icon/ClickableIcon.js +1 -1
  180. package/lib/components/Icon/Icon.d.ts +3 -3
  181. package/lib/components/Icon/Icon.d.ts.map +1 -1
  182. package/lib/components/Icon/Icon.js +1 -3
  183. package/lib/components/Icon/Icon.stories.d.ts +2 -2
  184. package/lib/components/Icon/Icon.stories.d.ts.map +1 -1
  185. package/lib/components/Icon/SemanticIcon.d.ts +2 -3
  186. package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
  187. package/lib/components/InContextAlert/InContextAlert.d.ts +4 -5
  188. package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
  189. package/lib/components/InContextAlert/InContextAlert.js +8 -6
  190. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +3 -4
  191. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
  192. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +7 -6
  193. package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -1
  194. package/lib/components/InfinitePagination/InfinitePagination.js +10 -11
  195. package/lib/components/InfinitePagination/InfinitePagination.stories.d.ts.map +1 -1
  196. package/lib/components/InlineDropdown/InlineDropdown.d.ts +3 -4
  197. package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
  198. package/lib/components/InlineDropdown/InlineDropdown.js +9 -14
  199. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts +45 -45
  200. package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts.map +1 -1
  201. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +5 -6
  202. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
  203. package/lib/components/InlineDropdown/SimpleInlineDropdown.js +2 -11
  204. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts +83 -83
  205. package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts.map +1 -1
  206. package/lib/components/Input/Input.d.ts +17 -16
  207. package/lib/components/Input/Input.d.ts.map +1 -1
  208. package/lib/components/Input/Input.js +7 -20
  209. package/lib/components/KPIBox/KPIBox.d.ts +2 -2
  210. package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
  211. package/lib/components/LinearLoader/LinearLoader.d.ts +2 -2
  212. package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
  213. package/lib/components/LinearLoader/LinearLoader.js +2 -2
  214. package/lib/components/Link/Link.d.ts +5 -6
  215. package/lib/components/Link/Link.d.ts.map +1 -1
  216. package/lib/components/Link/Link.js +4 -13
  217. package/lib/components/Menu/Menu.d.ts +12 -12
  218. package/lib/components/Menu/Menu.d.ts.map +1 -1
  219. package/lib/components/Menu/Menu.js +3 -5
  220. package/lib/components/Menu/Menu.stories.d.ts.map +1 -1
  221. package/lib/components/Menu/MenuOptionButton.d.ts +2 -3
  222. package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
  223. package/lib/components/Menu/MenuOptionButton.js +0 -1
  224. package/lib/components/Modal/Modal.d.ts +12 -30
  225. package/lib/components/Modal/Modal.d.ts.map +1 -1
  226. package/lib/components/Modal/Modal.js +5 -8
  227. package/lib/components/Notification/Notification.d.ts +6 -7
  228. package/lib/components/Notification/Notification.d.ts.map +1 -1
  229. package/lib/components/Notification/Notification.js +7 -4
  230. package/lib/components/OptionButton/OptionButton.d.ts +6 -7
  231. package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
  232. package/lib/components/OptionButton/OptionButton.js +2 -2
  233. package/lib/components/OptionButton/OptionButton.stories.d.ts.map +1 -1
  234. package/lib/components/OptionButton/SimpleOptionButton.d.ts +6 -7
  235. package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
  236. package/lib/components/OptionButton/SimpleOptionButton.js +1 -7
  237. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts +55 -55
  238. package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts.map +1 -1
  239. package/lib/components/PageTitle/PageTitle.d.ts +9 -8
  240. package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
  241. package/lib/components/PageTitle/PageTitle.js +15 -10
  242. package/lib/components/PageTitle/PageTitle.stories.d.ts.map +1 -1
  243. package/lib/components/Pagination/Pagination.d.ts +10 -12
  244. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  245. package/lib/components/Pagination/Pagination.stories.d.ts +1 -9
  246. package/lib/components/Pagination/Pagination.stories.d.ts.map +1 -1
  247. package/lib/components/Pagination/PaginationItem.d.ts.map +1 -1
  248. package/lib/components/Pagination/PaginationItem.js +0 -3
  249. package/lib/components/Panel/Panel.d.ts +9 -10
  250. package/lib/components/Panel/Panel.d.ts.map +1 -1
  251. package/lib/components/Panel/Panel.stories.d.ts.map +1 -1
  252. package/lib/components/ProgressDonut/ProgressDonut.d.ts +2 -2
  253. package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
  254. package/lib/components/ProgressDonut/ProgressDonut.js +2 -3
  255. package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
  256. package/lib/components/PromptChip/PromptChip.js +6 -5
  257. package/lib/components/PromptInput/PromptInput.d.ts +7 -7
  258. package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
  259. package/lib/components/PromptInput/PromptInput.js +0 -7
  260. package/lib/components/RadioButton/RadioButton.d.ts +2 -3
  261. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  262. package/lib/components/RadioButton/RadioButton.js +1 -2
  263. package/lib/components/RadioButton/RadioButton.stories.d.ts.map +1 -1
  264. package/lib/components/RadioButton/RadioGroup.d.ts +2 -2
  265. package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
  266. package/lib/components/RadioButton/RadioGroup.js +2 -1
  267. package/lib/components/RadioButton/RadioGroup.stories.d.ts.map +1 -1
  268. package/lib/components/RadioTile/RadioTile.d.ts +2 -2
  269. package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
  270. package/lib/components/RadioTile/RadioTile.js +1 -3
  271. package/lib/components/RadioTile/RadioTile.stories.d.ts.map +1 -1
  272. package/lib/components/RangeSlider/RangeSlider.d.ts +2 -2
  273. package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  274. package/lib/components/RangeSlider/RangeSlider.js +0 -3
  275. package/lib/components/Rating/Rating.d.ts +2 -2
  276. package/lib/components/Rating/Rating.d.ts.map +1 -1
  277. package/lib/components/ScoreBar/ScoreBar.d.ts +2 -2
  278. package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
  279. package/lib/components/SearchInput/SearchInput.d.ts +2 -3
  280. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  281. package/lib/components/Separator/Separator.d.ts +2 -2
  282. package/lib/components/Separator/Separator.d.ts.map +1 -1
  283. package/lib/components/Shimmer/Shimmer.d.ts +6 -6
  284. package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
  285. package/lib/components/Shimmer/Shimmer.js +1 -3
  286. package/lib/components/SideMenuLink/SideMenuLink.d.ts +2 -2
  287. package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
  288. package/lib/components/SideMenuLink/SideMenuLink.js +3 -9
  289. package/lib/components/SideMenuLink/SideMenuLink.stories.d.ts.map +1 -1
  290. package/lib/components/StatusIndicator/StatusIndicator.d.ts +2 -2
  291. package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  292. package/lib/components/Stepper/Step/Step.d.ts +2 -2
  293. package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
  294. package/lib/components/Stepper/Step/Step.js +13 -10
  295. package/lib/components/Stepper/Step/StepContent.d.ts +2 -2
  296. package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
  297. package/lib/components/Stepper/Step/StepLabel.d.ts +2 -2
  298. package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
  299. package/lib/components/Stepper/Stepper.d.ts +2 -2
  300. package/lib/components/Stepper/Stepper.d.ts.map +1 -1
  301. package/lib/components/Stepper/Stepper.js +23 -8
  302. package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -1
  303. package/lib/components/StickyBar/StickyBar.d.ts +4 -4
  304. package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
  305. package/lib/components/SubMenu/SubMenu.d.ts +2 -2
  306. package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
  307. package/lib/components/SubMenu/SubMenuGroup.d.ts +2 -2
  308. package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -1
  309. package/lib/components/SubMenu/SubMenuGroup.js +14 -11
  310. package/lib/components/SubMenu/SubMenuItem.d.ts +8 -8
  311. package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -1
  312. package/lib/components/SubMenu/SubMenuItem.js +16 -24
  313. package/lib/components/SubMenu/SubMenuLink.d.ts +3 -3
  314. package/lib/components/SubMenu/SubMenuLink.d.ts.map +1 -1
  315. package/lib/components/SubMenu/SubMenuLink.js +4 -8
  316. package/lib/components/Table/BasicTable.stories.d.ts +6 -6
  317. package/lib/components/Table/BasicTable.stories.d.ts.map +1 -1
  318. package/lib/components/Table/BulkActions.stories.d.ts.map +1 -1
  319. package/lib/components/Table/Cell.d.ts +3 -3
  320. package/lib/components/Table/Cell.d.ts.map +1 -1
  321. package/lib/components/Table/Cell.js +3 -7
  322. package/lib/components/Table/DefaultRow.d.ts +4 -4
  323. package/lib/components/Table/DefaultRow.d.ts.map +1 -1
  324. package/lib/components/Table/DefaultTableHeader.d.ts +4 -4
  325. package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -1
  326. package/lib/components/Table/DefaultTableHeader.js +2 -9
  327. package/lib/components/Table/InlineEdit.stories.d.ts.map +1 -1
  328. package/lib/components/Table/StaticTable.d.ts.map +1 -1
  329. package/lib/components/Table/StaticTable.js +13 -56
  330. package/lib/components/Table/Table.d.ts +7 -7
  331. package/lib/components/Table/Table.d.ts.map +1 -1
  332. package/lib/components/Table/Table.js +2 -24
  333. package/lib/components/Table/TableActionBar.d.ts +2 -2
  334. package/lib/components/Table/TableActionBar.d.ts.map +1 -1
  335. package/lib/components/Table/TableBottomBar.d.ts +2 -2
  336. package/lib/components/Table/TableBottomBar.d.ts.map +1 -1
  337. package/lib/components/Table/TableTopBar.d.ts +2 -2
  338. package/lib/components/Table/TableTopBar.d.ts.map +1 -1
  339. package/lib/components/Table/hooks.d.ts.map +1 -1
  340. package/lib/components/Table/hooks.js +4 -12
  341. package/lib/components/Tabs/Tab/Tab.d.ts +6 -4
  342. package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
  343. package/lib/components/Tabs/Tab/Tab.js +28 -8
  344. package/lib/components/Tabs/Tab/Tab.module.css +1 -1
  345. package/lib/components/Tabs/TabList/TabDropdown.d.ts +2 -2
  346. package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -1
  347. package/lib/components/Tabs/TabList/TabDropdown.js +3 -9
  348. package/lib/components/Tabs/TabList/TabList.d.ts +4 -3
  349. package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -1
  350. package/lib/components/Tabs/TabList/TabList.js +40 -50
  351. package/lib/components/Tabs/TabList/TabList.stories.d.ts +22 -0
  352. package/lib/components/Tabs/TabList/TabList.stories.d.ts.map +1 -1
  353. package/lib/components/Text/Text.d.ts +4 -4
  354. package/lib/components/Text/Text.d.ts.map +1 -1
  355. package/lib/components/Text/Text.js +0 -1
  356. package/lib/components/TextTile/TextTile.d.ts +2 -2
  357. package/lib/components/TextTile/TextTile.d.ts.map +1 -1
  358. package/lib/components/Textarea/Textarea.d.ts +6 -7
  359. package/lib/components/Textarea/Textarea.d.ts.map +1 -1
  360. package/lib/components/Textarea/Textarea.js +7 -17
  361. package/lib/components/Timeline/Timeline.d.ts +2 -2
  362. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  363. package/lib/components/Timeline/Timeline.js +20 -14
  364. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +2 -2
  365. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
  366. package/lib/components/Timeline/TimelineItem/TimelineItem.js +2 -9
  367. package/lib/components/Timeline/TimelineItem/TimelineItem.stories.d.ts.map +1 -1
  368. package/lib/components/Toast/Toast.d.ts +8 -8
  369. package/lib/components/Toast/Toast.d.ts.map +1 -1
  370. package/lib/components/Toast/Toast.js +31 -24
  371. package/lib/components/Toast/ToastContainer.d.ts.map +1 -1
  372. package/lib/components/Toast/ToastContainer.js +7 -6
  373. package/lib/components/Toast/ToastManager.d.ts +5 -5
  374. package/lib/components/Toast/ToastManager.d.ts.map +1 -1
  375. package/lib/components/Toast/ToastManager.js +1 -2
  376. package/lib/components/Toggle/Toggle.d.ts +2 -2
  377. package/lib/components/Toggle/Toggle.d.ts.map +1 -1
  378. package/lib/components/Toggle/Toggle.js +2 -6
  379. package/lib/components/Toggle/Toggle.stories.d.ts.map +1 -1
  380. package/lib/components/TokenListInput/TokenListInput.d.ts +13 -11
  381. package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
  382. package/lib/components/TokenListInput/TokenListInput.js +24 -38
  383. package/lib/components/TokenListInput/TokenListInput.stories.d.ts +3 -4
  384. package/lib/components/TokenListInput/TokenListInput.stories.d.ts.map +1 -1
  385. package/lib/components/TokenListInput/TokenValueChips.d.ts +4 -4
  386. package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -1
  387. package/lib/components/TokenListInput/TokenValueChips.js +14 -17
  388. package/lib/components/Tooltip/Tooltip.d.ts +5 -6
  389. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  390. package/lib/components/Tooltip/Tooltip.js +10 -9
  391. package/lib/components/Truncate/Truncate.d.ts +2 -2
  392. package/lib/components/Truncate/Truncate.d.ts.map +1 -1
  393. package/lib/components/Truncate/Truncate.js +4 -5
  394. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +3 -3
  395. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
  396. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +19 -10
  397. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +1 -1
  398. package/lib/components/Typeahead/SimpleTypeahead.d.ts +5 -6
  399. package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
  400. package/lib/components/Typeahead/SimpleTypeahead.js +1 -5
  401. package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts.map +1 -1
  402. package/lib/components/Typeahead/Typeahead.d.ts +5 -6
  403. package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
  404. package/lib/components/Typeahead/Typeahead.js +14 -11
  405. package/lib/components/Typeahead/Typeahead.stories.d.ts.map +1 -1
  406. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +4 -4
  407. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
  408. package/lib/components/WeekdayPicker/WeekdayPicker.stories.d.ts.map +1 -1
  409. package/lib/devtools/DependencyGraph/DependencyGraph.stories.d.ts.map +1 -1
  410. package/lib/flow-to-typescript-codemod.d.ts +1 -21
  411. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +2 -2
  412. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -1
  413. package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts.map +1 -1
  414. package/lib/hooks/useFileUpload/useFileUpload.d.ts +2 -2
  415. package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -1
  416. package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts.map +1 -1
  417. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +4 -4
  418. package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -1
  419. package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts.map +1 -1
  420. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +2 -2
  421. package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -1
  422. package/lib/hooks/useInputState/useInputState.d.ts.map +1 -1
  423. package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +1 -1
  424. package/lib/hooks/useModal/useModal.d.ts +13 -5
  425. package/lib/hooks/useModal/useModal.d.ts.map +1 -1
  426. package/lib/hooks/useToastPortal/useToastPortal.d.ts +2 -2
  427. package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -1
  428. package/lib/hooks/useToggle/useToggle.d.ts.map +1 -1
  429. package/lib/hooks/useWindowSize/useWindowSize.d.ts +2 -2
  430. package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +1 -1
  431. package/lib/stories/Border/Border.stories.d.ts.map +1 -1
  432. package/lib/stories/Color/Color.stories.d.ts.map +1 -1
  433. package/lib/stories/Elevation/Elevation.stories.d.ts.map +1 -1
  434. package/lib/stories/Motion/Motion.stories.d.ts.map +1 -1
  435. package/lib/stories/Opacity/Opacity.stories.d.ts.map +1 -1
  436. package/lib/stories/Shadow/Shadow.stories.d.ts.map +1 -1
  437. package/lib/stories/Size/Size.stories.d.ts.map +1 -1
  438. package/lib/stories/Space/Space.stories.d.ts.map +1 -1
  439. package/lib/stories/Tokens/index.d.ts.map +1 -1
  440. package/lib/styles/index.css +2 -0
  441. package/lib/styles/index.d.ts +1 -0
  442. package/lib/styles/index.d.ts.map +1 -1
  443. package/lib/styles/index.js +2 -1
  444. package/lib/styles/variables/_size.css +2 -0
  445. package/lib/styles/variables/_size.d.ts +1 -0
  446. package/lib/styles/variables/_size.d.ts.map +1 -1
  447. package/lib/styles/variables/_size.js +2 -1
  448. package/lib/types/charts.d.ts +45 -33
  449. package/lib/types/charts.d.ts.map +1 -1
  450. package/lib/types/date-range-picker.d.ts +8 -9
  451. package/lib/types/date-range-picker.d.ts.map +1 -1
  452. package/lib/types/menu.d.ts +2 -2
  453. package/lib/types/menu.d.ts.map +1 -1
  454. package/lib/types/toast.d.ts +9 -10
  455. package/lib/types/toast.d.ts.map +1 -1
  456. package/lib/utils/charts/charts.d.ts +1 -1
  457. package/lib/utils/charts/charts.d.ts.map +1 -1
  458. package/lib/utils/charts/donutChart.d.ts +2 -2
  459. package/lib/utils/charts/donutChart.d.ts.map +1 -1
  460. package/lib/utils/charts/donutChart.js +2 -0
  461. package/lib/utils/charts/funnelChart.d.ts.map +1 -1
  462. package/lib/utils/charts/helpers.d.ts +1 -1
  463. package/lib/utils/charts/helpers.d.ts.map +1 -1
  464. package/lib/utils/charts/index.d.ts +3 -0
  465. package/lib/utils/charts/index.d.ts.map +1 -1
  466. package/lib/utils/charts/index.js +33 -0
  467. package/lib/utils/charts/sankeyChart.d.ts +9 -0
  468. package/lib/utils/charts/sankeyChart.d.ts.map +1 -0
  469. package/lib/utils/charts/sankeyChart.js +50 -0
  470. package/lib/utils/charts/stackedBarChart.d.ts +3 -0
  471. package/lib/utils/charts/stackedBarChart.d.ts.map +1 -0
  472. package/lib/utils/charts/stackedBarChart.js +51 -0
  473. package/lib/utils/click-away/click-away.d.ts +11 -13
  474. package/lib/utils/click-away/click-away.d.ts.map +1 -1
  475. package/lib/utils/date-range-picker/date-range-picker.d.ts.map +1 -1
  476. package/lib/utils/dom/dom.d.ts +2 -2
  477. package/lib/utils/dom/dom.d.ts.map +1 -1
  478. package/lib/utils/helpers/helpers.d.ts.map +1 -1
  479. package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -1
  480. package/lib/utils/merge-refs/merge-refs.d.ts +2 -3
  481. package/lib/utils/merge-refs/merge-refs.d.ts.map +1 -1
  482. package/lib/utils/merge-refs/merge-refs.js +13 -7
  483. package/lib/utils/merge-refs/merge-refs.stories.d.ts.map +1 -1
  484. package/lib/utils/token-list-input/token-list-input.d.ts +5 -5
  485. package/lib/utils/token-list-input/token-list-input.d.ts.map +1 -1
  486. package/lib/utils/tokens/tokens.d.ts +7 -6
  487. package/lib/utils/tokens/tokens.d.ts.map +1 -1
  488. package/package.json +18 -10
  489. package/tsconfig.json +1 -1
@@ -35,7 +35,6 @@ const ELEVATION_TYPES = exports.ELEVATION_TYPES = Object.freeze({
35
35
  });
36
36
  const getElevationValue = elevation => {
37
37
  const elevationKey = 'elevation' + (0, _string.capitalize)(elevation);
38
- // @ts-ignore - TS7053 - Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/Users/diwaker/SpacedOut/ui-design-system/src/styles/variables/_elevation")'.
39
38
  return ELEVATION[elevationKey] || elevation;
40
39
  };
41
40
  exports.getElevationValue = getElevationValue;
@@ -69,11 +68,7 @@ const Tooltip = _ref => {
69
68
  }), (0, _react2.shift)()]
70
69
  });
71
70
  const motionDurationToken = 'motionDuration' + (0, _string.capitalize)(delayMotionDuration);
72
- const hoverDelay =
73
- // @ts-ignore - TS7053 - Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/Users/diwaker/SpacedOut/ui-design-system/src/styles/variables/_motion")'.
74
- parseInt(MOTION[motionDurationToken]) === NaN ? 0 :
75
- // @ts-ignore - TS7053 - Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/Users/diwaker/SpacedOut/ui-design-system/src/styles/variables/_motion")'.
76
- parseInt(MOTION[motionDurationToken]);
71
+ const hoverDelay = Number.isNaN(parseInt(MOTION[motionDurationToken])) ? 0 : parseInt(MOTION[motionDurationToken]);
77
72
  const {
78
73
  getReferenceProps,
79
74
  getFloatingProps
@@ -86,10 +81,16 @@ const Tooltip = _ref => {
86
81
  role: 'tooltip'
87
82
  }), (0, _react2.useDismiss)(context)]);
88
83
 
84
+ // Type guard to ensure children is a ReactElement
85
+ if (! /*#__PURE__*/React.isValidElement(children)) {
86
+ throw new Error('Tooltip children must be a valid React element');
87
+ }
88
+ const childElement = children;
89
+
89
90
  // Note(Nishant): Preserve the consumer's ref (React 19 safe)
90
- const mergedRef = (0, _react2.useMergeRefs)([refs.setReference, children.ref ?? null]);
91
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(children, getReferenceProps({
92
- ...children.props,
91
+ const mergedRef = (0, _react2.useMergeRefs)([refs.setReference, childElement.ref ?? null]);
92
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(childElement, getReferenceProps({
93
+ ...childElement.props,
93
94
  ref: mergedRef
94
95
  })), isOpen && /*#__PURE__*/React.createElement(_react2.FloatingPortal, null, /*#__PURE__*/React.createElement(React.Fragment, null, !hidden && /*#__PURE__*/React.createElement("div", _extends({
95
96
  ref: refs.setFloating,
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
- export type TruncateProps = {
3
+ export interface TruncateProps {
4
4
  children?: React.ReactNode;
5
5
  line?: number;
6
6
  showFullTextOnHover?: boolean;
7
7
  wordBreak?: string;
8
8
  className?: string;
9
- };
9
+ }
10
10
  export declare const BaseTruncate: Flow.AbstractComponent<TruncateProps, HTMLSpanElement>;
11
11
  export declare const Truncate: Flow.AbstractComponent<TruncateProps, HTMLSpanElement>;
12
12
  //# sourceMappingURL=Truncate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Truncate.d.ts","sourceRoot":"","sources":["../../../src/components/Truncate/Truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAOrD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,aAAa,EACb,eAAe,CAsBhB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,eAAe,CA6CzE,CAAC"}
1
+ {"version":3,"file":"Truncate.d.ts","sourceRoot":"","sources":["../../../src/components/Truncate/Truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAcrD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAC/C,aAAa,EACb,eAAe,CAqBhB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,eAAe,CA2CzE,CAAC"}
@@ -9,6 +9,9 @@ var _classify = require("../../utils/classify");
9
9
  var _TruncateModule = _interopRequireDefault(require("./Truncate.module.css"));
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
+ // Props expected when Truncate wraps an existing element
13
+ // Use standard DOM attributes so `title`, `className`, etc. are recognized.
14
+
12
15
  const BaseTruncate = exports.BaseTruncate = /*#__PURE__*/React.forwardRef((_ref, ref) => {
13
16
  let {
14
17
  children,
@@ -22,9 +25,7 @@ const BaseTruncate = exports.BaseTruncate = /*#__PURE__*/React.forwardRef((_ref,
22
25
  style: {
23
26
  '--line-clamp': line,
24
27
  '--word-break': wordBreak
25
- }
26
- // @ts-ignore - TS2322 - Type 'ReactNode' is not assignable to type 'string | undefined'.
27
- ,
28
+ },
28
29
  title: showFullTextOnHover ? children : '',
29
30
  ref: ref
30
31
  }, children);
@@ -41,13 +42,11 @@ const Truncate = exports.Truncate = /*#__PURE__*/React.forwardRef((_ref2, ref) =
41
42
  if (arrayChildren.length) {
42
43
  const child = arrayChildren[0];
43
44
  if (/*#__PURE__*/React.isValidElement(child)) {
44
- // @ts-ignore - TS2339 - Property 'className' does not exist on type 'unknown'. | TS2339 - Property 'children' does not exist on type 'unknown'.
45
45
  const {
46
46
  className,
47
47
  children
48
48
  } = child.props;
49
49
  return /*#__PURE__*/React.cloneElement(child, {
50
- // @ts-ignore - TS2769 - No overload matches this call.
51
50
  className: (0, _classify.classify)(_TruncateModule.default.truncateLineClamp, className, truncateClassName),
52
51
  style: {
53
52
  '--line-clamp': line,
@@ -3,14 +3,14 @@ import type { BaseTooltipProps } from '../Tooltip';
3
3
  type ClassNames = Readonly<{
4
4
  wrapper?: string;
5
5
  }>;
6
- export type TruncatedTextWithTooltipProps = {
6
+ export interface TruncatedTextWithTooltipProps {
7
7
  children?: React.ReactNode;
8
8
  tooltip?: BaseTooltipProps;
9
9
  classNames?: ClassNames;
10
10
  line?: number;
11
11
  wordBreak?: string;
12
12
  wrapText?: boolean;
13
- };
14
- export declare const TruncatedTextWithTooltip: ({ classNames, children, tooltip, wrapText, line, wordBreak, ...props }: TruncatedTextWithTooltipProps) => React.JSX.Element;
13
+ }
14
+ export declare const TruncatedTextWithTooltip: ({ classNames, children, tooltip, wrapText, line, wordBreak, }: TruncatedTextWithTooltipProps) => React.JSX.Element;
15
15
  export {};
16
16
  //# sourceMappingURL=TruncatedTextWithTooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TruncatedTextWithTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAMjD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,wEAStC,6BAA6B,sBAwE/B,CAAC"}
1
+ {"version":3,"file":"TruncatedTextWithTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAMjD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAWD,eAAO,MAAM,wBAAwB,GAAI,+DAOtC,6BAA6B,sBAgF/B,CAAC"}
@@ -14,6 +14,10 @@ var _TruncatedTextWithTooltipModule = _interopRequireDefault(require("./Truncate
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
16
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
+ // Define the expected props for the child element that can be cloned
18
+
19
+ // Type for a child element that can be cloned
20
+
17
21
  const TruncatedTextWithTooltip = _ref => {
18
22
  let {
19
23
  classNames,
@@ -21,16 +25,13 @@ const TruncatedTextWithTooltip = _ref => {
21
25
  tooltip,
22
26
  wrapText = false,
23
27
  line = 1,
24
- wordBreak = 'break-all',
25
- // @ts-ignore - TS6133 - 'props' is declared but its value is never read.
26
- ...props
28
+ wordBreak = 'break-all'
27
29
  } = _ref;
28
30
  const {
29
31
  width
30
32
  } = (0, _useWindowSize.useWindowSize)();
31
33
  const [showMouseTip, setShowMouseTip] = React.useState(false);
32
- // @ts-ignore - TS2554 - Expected 1 arguments, but got 0.
33
- const truncatedRef = React.useRef();
34
+ const truncatedRef = React.useRef(null);
34
35
  const checkIfTextOverflowing = React.useMemo(() => (0, _debounce.default)(() => {
35
36
  if (!wrapText && truncatedRef && truncatedRef.current && truncatedRef.current.scrollHeight > truncatedRef.current.clientHeight) {
36
37
  setShowMouseTip(true);
@@ -52,10 +53,20 @@ const TruncatedTextWithTooltip = _ref => {
52
53
  wrapper: children => {
53
54
  const child = React.Children.only(children);
54
55
 
56
+ // Type guard to ensure child is a ReactElement
57
+ if (! /*#__PURE__*/React.isValidElement(child)) {
58
+ return child;
59
+ }
60
+
61
+ // Cast to our typed child element
62
+ const childElement = child;
63
+ const childProps = childElement.props;
64
+
55
65
  //Vivek: This children in tooltip body is modified to remove line clamp style
56
- // @ts-ignore - TS2769 - No overload matches this call.
57
- const modifiedChild = /*#__PURE__*/React.cloneElement(child, {
66
+ const modifiedChild = /*#__PURE__*/React.cloneElement(childElement, {
67
+ ...childProps,
58
68
  style: {
69
+ ...childProps.style,
59
70
  '--line-clamp': tooltip?.bodyMaxLines || line,
60
71
  '--word-break': wordBreak
61
72
  }
@@ -69,9 +80,7 @@ const TruncatedTextWithTooltip = _ref => {
69
80
  }
70
81
  }, /*#__PURE__*/React.createElement("span", {
71
82
  className: (0, _classify.default)(_TruncatedTextWithTooltipModule.default.truncateLineClamp, classNames?.wrapper),
72
- style: styles
73
- // @ts-ignore - TS2322 - Type 'RefObject<HTMLSpanElement | null | undefined>' is not assignable to type 'Ref<HTMLSpanElement> | undefined'.
74
- ,
83
+ style: styles,
75
84
  ref: truncatedRef
76
85
  }, children));
77
86
  };
@@ -3,7 +3,7 @@ import type { TruncatedTextWithTooltipProps } from './';
3
3
  declare const _default: {
4
4
  tags: string[];
5
5
  title: string;
6
- component: ({ classNames, children, tooltip, wrapText, line, wordBreak, ...props }: TruncatedTextWithTooltipProps) => React.JSX.Element;
6
+ component: ({ classNames, children, tooltip, wrapText, line, wordBreak, }: TruncatedTextWithTooltipProps) => React.JSX.Element;
7
7
  argTypes: {
8
8
  children: {
9
9
  description: string;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
3
  import type { MenuClassNames, MenuLabelTooltip } from '../../types/menu';
4
- import type { Over } from '../../types/utils';
5
4
  import type { ClickAwayRefType } from '../../utils/click-away';
6
5
  import type { InputProps } from '../Input';
7
6
  import type { MenuOption, Virtualization } from '../Menu';
@@ -10,10 +9,10 @@ type ClassNames = Readonly<{
10
9
  wrapper?: string;
11
10
  box?: string;
12
11
  }>;
13
- export type SimpleTypeaheadRef = {
12
+ export interface SimpleTypeaheadRef {
14
13
  selectedKeys?: Array<string>;
15
- };
16
- export type SimpleTypeaheadProps = Over<InputProps, {
14
+ }
15
+ export interface SimpleTypeaheadProps extends Omit<InputProps, 'isLoading' | 'menuOpenOffset' | 'classNames' | 'options' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'elevation' | 'onSelect' | 'onSearch' | 'onMenuOpen' | 'onMenuClose' | 'onClear' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef' | 'allowInternalFilter' | 'typeaheadInputText'> {
17
16
  isLoading?: boolean;
18
17
  menuOpenOffset?: number;
19
18
  classNames?: ClassNames;
@@ -33,10 +32,10 @@ export type SimpleTypeaheadProps = Over<InputProps, {
33
32
  onClear?: () => void;
34
33
  resolveLabel?: (option: MenuOption) => string | React.ReactNode;
35
34
  resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
36
- clickAwayRef?: ClickAwayRefType;
35
+ clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
37
36
  allowInternalFilter?: boolean;
38
37
  typeaheadInputText?: string;
39
- }>;
38
+ }
40
39
  export declare const SimpleTypeahead: Flow.AbstractComponent<SimpleTypeaheadProps, SimpleTypeaheadRef>;
41
40
  export {};
42
41
  //# sourceMappingURL=SimpleTypeahead.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleTypeahead.d.ts","sourceRoot":"","sources":["../../../src/components/Typeahead/SimpleTypeahead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAK9C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC9B,IAAI,CACF,UAAU,EACV;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,kBAA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AAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,OAAO,CAAC;IACjE,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChE,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACzE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AA4GD,eAAO,MAAM,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAClD,oBAAoB,EACpB,kBAAkB,CAGnB,CAAC"}
@@ -51,8 +51,6 @@ const SimpleTypeaheadBase = (props, ref) => {
51
51
  onSelect?.(selectedOption, e);
52
52
  });
53
53
  };
54
-
55
- // @ts-ignore - TS2345 - Argument of type '{ current: SimpleTypeaheadRef | null; } | ((arg1: SimpleTypeaheadRef | null) => unknown)' is not assignable to parameter of type 'Ref<SimpleTypeaheadRef> | undefined'.
56
54
  React.useImperativeHandle(ref, () => ({
57
55
  selectedKeys: typeaheadSelectedKeys
58
56
  }));
@@ -91,6 +89,4 @@ const SimpleTypeaheadBase = (props, ref) => {
91
89
  elevation: elevation
92
90
  }));
93
91
  };
94
- const SimpleTypeahead = exports.SimpleTypeahead = /*#__PURE__*/React.forwardRef(
95
- //@ts-expect-error
96
- SimpleTypeaheadBase);
92
+ const SimpleTypeahead = exports.SimpleTypeahead = /*#__PURE__*/React.forwardRef(SimpleTypeaheadBase);
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleTypeahead.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Typeahead/SimpleTypeahead.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAIxC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU5D,wBAsYE;AAwCF,eAAO,MAAM,eAAe;WAAU,oBAAoB;;;;;CAMzD,CAAC;AAOF,eAAO,MAAM,4BAA4B;WAAU,oBAAoB;;;;;;;;CAMtE,CAAC;AAQF,eAAO,MAAM,oBAAoB;WAAU,oBAAoB;;;;;;CAqB9D,CAAC;AAgCF,eAAO,MAAM,gCAAgC;WACrC,oBAAoB;;;;;CAyC3B,CAAC"}
1
+ {"version":3,"file":"SimpleTypeahead.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Typeahead/SimpleTypeahead.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAIxC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU5D,wBAsYE;AAwCF,eAAO,MAAM,eAAe;WAAU,oBAAoB;;;;;CAMzD,CAAC;AAOF,eAAO,MAAM,4BAA4B;WAAU,oBAAoB;;;;;;;;CAMtE,CAAC;AAQF,eAAO,MAAM,oBAAoB;WAAU,oBAAoB;;;;;;CAoB9D,CAAC;AAgCF,eAAO,MAAM,gCAAgC;WACrC,oBAAoB;;;;;CAwC3B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { Flow } from 'flow-to-typescript-codemod';
3
- import type { Over } from '../../types/utils';
4
3
  import type { ClickAwayRefType } from '../../utils/click-away';
5
4
  import type { InputProps } from '../Input';
6
5
  import type { MenuOption, MenuProps } from '../Menu';
@@ -9,7 +8,7 @@ type ClassNames = Readonly<{
9
8
  wrapper?: string;
10
9
  box?: string;
11
10
  }>;
12
- type BaseTypeaheadProps = Over<InputProps, {
11
+ interface BaseTypeaheadProps extends Omit<InputProps, 'classNames' | 'onSelect' | 'onSearch' | 'onMenuOpen' | 'onMenuClose' | 'typeaheadInputText' | 'menu' | 'onClear' | 'isLoading' | 'menuOpenOffset' | 'clickAwayRef' | 'elevation'> {
13
12
  classNames?: ClassNames;
14
13
  onSelect?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
15
14
  onSearch?: (evt: React.ChangeEvent<HTMLInputElement>) => unknown;
@@ -20,12 +19,12 @@ type BaseTypeaheadProps = Over<InputProps, {
20
19
  onClear?: () => void;
21
20
  isLoading?: boolean;
22
21
  menuOpenOffset?: number;
23
- clickAwayRef?: ClickAwayRefType;
22
+ clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
24
23
  elevation?: ElevationType;
25
- }>;
26
- export type TypeaheadProps = Over<BaseTypeaheadProps, {
24
+ }
25
+ export interface TypeaheadProps extends Omit<BaseTypeaheadProps, 'allowInternalFilter'> {
27
26
  allowInternalFilter?: boolean;
28
- }>;
27
+ }
29
28
  export declare const Typeahead: Flow.AbstractComponent<TypeaheadProps, HTMLInputElement>;
30
29
  export {};
31
30
  //# sourceMappingURL=Typeahead.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Typeahead.d.ts","sourceRoot":"","sources":["../../../src/components/Typeahead/Typeahead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAIrD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAG7D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAGnD,OAAO,K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SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;IACvD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAgMD,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,cAAc,EACd,gBAAgB,CASjB,CAAC"}
@@ -51,11 +51,13 @@ const BaseTypeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
51
51
  whileElementsMounted: _react2.autoUpdate,
52
52
  middleware: [(0, _react2.flip)(), (0, _react2.offset)(parseInt(_space.spaceXXSmall))]
53
53
  });
54
-
55
- // @ts-ignore - TS2345 - Argument of type '(ReferenceType & ReferenceType) | null' is not assignable to parameter of type 'HTMLElement | null | undefined'.
56
54
  const dropdownWidth = (0, _hooks.useReferenceElementWidth)(refs.reference?.current);
57
55
  const onMenuToggle = isOpen => {
58
- isOpen ? onMenuOpen && onMenuOpen() : onMenuClose && onMenuClose();
56
+ if (isOpen) {
57
+ onMenuOpen?.();
58
+ } else {
59
+ onMenuClose?.();
60
+ }
59
61
  };
60
62
  return /*#__PURE__*/React.createElement(_clickAway.ClickAway, {
61
63
  onChange: onMenuToggle,
@@ -72,9 +74,7 @@ const BaseTypeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
72
74
  "data-testid": "Typeahead",
73
75
  className: (0, _classify.classify)(_TypeaheadModule.default.typeaheadContainer, classNames?.wrapper)
74
76
  }, /*#__PURE__*/React.createElement(_SearchInput.SearchInput, _extends({}, inputProps, {
75
- ref: ref
76
- // @ts-ignore - TS2322 - Type '((node: ReferenceType | null) => void) & ((node: ReferenceType | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
77
- ,
77
+ ref: ref,
78
78
  boxRef: (0, _mergeRefs.mergeRefs)([refs.setReference, triggerRef]),
79
79
  size: size,
80
80
  placeholder: placeholder,
@@ -85,16 +85,20 @@ const BaseTypeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
85
85
  isLoading: isLoading,
86
86
  onChange: e => {
87
87
  e.stopPropagation();
88
- onSearch && onSearch(e);
88
+ onSearch?.(e);
89
89
  if (e.target.value.length >= menuOpenOffset) {
90
- !isOpen && onOpen();
90
+ if (!isOpen) {
91
+ onOpen();
92
+ }
91
93
  } else {
92
94
  clickAway();
93
95
  }
94
96
  },
95
97
  onFocus: _e => {
96
98
  if (typeaheadInputText.length >= menuOpenOffset) {
97
- !isOpen && onOpen();
99
+ if (!isOpen) {
100
+ onOpen();
101
+ }
98
102
  } else {
99
103
  clickAway();
100
104
  }
@@ -109,7 +113,6 @@ const BaseTypeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
109
113
  returnFocus: false,
110
114
  initialFocus: refs.reference
111
115
  }, /*#__PURE__*/React.createElement("div", {
112
- // @ts-ignore - TS2322 - Type '((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
113
116
  ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
114
117
  className: _TypeaheadModule.default.menuWrapper,
115
118
  style: {
@@ -129,7 +132,7 @@ const BaseTypeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
129
132
  }, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({}, menu, {
130
133
  options: menuOptions,
131
134
  onSelect: (option, e) => {
132
- onSelect && onSelect(option, e);
135
+ onSelect?.(option, e);
133
136
  if (
134
137
  // option.keepMenuOpenOnOptionSelect - to allow the menu persist its open stat upon option selection in normal variant
135
138
  !option.keepMenuOpenOnOptionSelect && (!menu.optionsVariant || menu.optionsVariant === 'normal')) {
@@ -1 +1 @@
1
- {"version":3,"file":"Typeahead.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Typeahead/Typeahead.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,UAAU,EAAE,S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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2ChD,wBAsVE;AAMF,eAAO,MAAM,UAAU;WAAU,cAAc;;;;;CAe9C,CAAC;AAOF,eAAO,MAAM,4BAA4B;WAAU,cAAc;;;;;;;gDAnY1C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;sBAYtB,CAAD;uBAAqB,CAAC;kCACrB,CAAD;;;;;;;;CAqYA,CAAC;AAOF,eAAO,MAAM,oBAAoB;WAAU,cAAc;;;;CAExD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,cAAc,sBA6BvD,CAAC;AA8BF,eAAO,MAAM,gCAAgC;WAAU,cAAc;;;;;CAyCpE,CAAC"}
@@ -12,12 +12,12 @@ type ClassNames = Readonly<{
12
12
  selectedButton?: string;
13
13
  }>;
14
14
  type WeekdayPickerSize = (typeof WEEKDAY_PICKER_SIZE)[keyof typeof WEEKDAY_PICKER_SIZE];
15
- type Weekday = {
15
+ export interface Weekday {
16
16
  key: string;
17
17
  label: string;
18
18
  secondaryLabel?: string;
19
- };
20
- export type WeekdayPickerProps = {
19
+ }
20
+ export interface WeekdayPickerProps {
21
21
  size?: WeekdayPickerSize;
22
22
  selectedWeekDays?: Array<Weekday>;
23
23
  hiddenWeekDays?: Array<string>;
@@ -31,7 +31,7 @@ export type WeekdayPickerProps = {
31
31
  label?: React.ReactNode;
32
32
  helperText?: React.ReactNode;
33
33
  disableMultiSelect?: boolean;
34
- };
34
+ }
35
35
  export declare const WeekdayPicker: Flow.AbstractComponent<WeekdayPickerProps, HTMLDivElement>;
36
36
  export {};
37
37
  //# sourceMappingURL=WeekdayPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WeekdayPicker.d.ts","sourceRoot":"","sources":["../../../src/components/WeekdayPicker/WeekdayPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAoBrD,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AACH,KAAK,iBAAiB,GACpB,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,CACT,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,EAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAA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kBAAkB;;;;;CAWxD,CAAC;AAOF,eAAO,MAAM,eAAe;WAAU,kBAAkB;;;;;;CAEvD,CAAC;AAQF,eAAO,MAAM,iBAAiB;WAAU,kBAAkB;;;;;;;;;CAEzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DependencyGraph.stories.d.ts","sourceRoot":"","sources":["../../../src/devtools/DependencyGraph/DependencyGraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,8BAA8B,CAAC;;;;;;;;;;;;;;;AAItC,wBAYE;AAwUF,eAAO,MAAM,gBAAgB,yBAgC5B,CAAC"}
1
+ {"version":3,"file":"DependencyGraph.stories.d.ts","sourceRoot":"","sources":["../../../src/devtools/DependencyGraph/DependencyGraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,8BAA8B,CAAC;;;;;;;;;;;;;;;AAItC,wBAYE;AA0UF,eAAO,MAAM,gBAAgB,yBAgC5B,CAAC"}
@@ -2,7 +2,7 @@ declare module 'flow-to-typescript-codemod' {
2
2
  export declare namespace Flow {
3
3
  // Abstract Component utility type
4
4
  // https://flow.org/en/docs/react/types/#toc-react-abstractcomponent
5
- type AbstractComponent<Config, Instance = any> = React.ComponentType<
5
+ type AbstractComponent<Config, Instance = unknown> = React.ComponentType<
6
6
  React.PropsWithoutRef<Config> & React.RefAttributes<Instance>
7
7
  >;
8
8
 
@@ -18,32 +18,12 @@ declare module 'flow-to-typescript-codemod' {
18
18
  T,
19
19
  SetComplement<keyof T, keyof U>
20
20
  >;
21
-
22
- type ComponentProps<T> = T extends
23
- | React.ComponentType<infer P>
24
- | React.Component<infer P>
25
- ? // @ts-ignore - TS2344 - Type '(ComponentType<P> | Component<P, {}, any>) & T' does not satisfy the constraint 'JSXElementConstructor<any> | keyof IntrinsicElements'.
26
- React.ComponentProps<T>
27
- : HasComponentProps<T>;
28
-
29
- type ObjMap<
30
- O extends Record<string, any>,
31
- F extends (...args: any[]) => any,
32
- > = {[P in keyof O]: ReturnType<F>};
33
21
  }
34
22
 
35
23
  // Helper types
36
24
  type SetComplement<A, B extends A> = A extends B ? never : A;
37
25
 
38
- type DefaultProps<T> = T extends {defaultProps: infer D} ? D : {};
39
-
40
26
  type OmitDefaultProps<T, D> = Omit<T, keyof D> &
41
27
  Partial<Pick<T, Extract<keyof T, keyof D>>> &
42
28
  Partial<Pick<D, Extract<keyof D, keyof T>>>;
43
-
44
- type HasComponentProps<T, D extends unknown = DefaultProps<T>> = T extends (
45
- prop: infer P,
46
- ) => React.ReactElement
47
- ? OmitDefaultProps<P, D>
48
- : never;
49
29
  }
@@ -1,10 +1,10 @@
1
1
  import type { BaseOption, GroupTitleOption } from '../useFilteredOptions';
2
- export type ArbitraryOption = {
2
+ export interface ArbitraryOption {
3
3
  key: string;
4
4
  label: string;
5
5
  arbitrary?: boolean;
6
6
  multiArbitrary?: boolean;
7
- };
7
+ }
8
8
  export declare function useArbitraryOptionAddition<V extends BaseOption>({ searchTerm, options, excludedKeys, allowArbitraryValues, allowMultiArbitraryValues, validateArbitraryValue, makeArbitraryValue, makeMultiArbitraryValue, groupTitleOptions, arbitraryGroup, searchOptionsBy, }: {
9
9
  searchTerm: string;
10
10
  options?: V[];
@@ -1 +1 @@
1
- {"version":3,"file":"useArbitraryOptionAddition.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAIxE,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,UAAU,EAAE,EAC/D,UAAU,EACV,OAAY,EACZ,YAAiB,EACjB,oBAA2B,EAC3B,yBAAiC,EACjC,sBAAwE,EAExE,kBAKoB,EAEpB,uBAUC,EAED,iBAAsB,EACtB,cAAsE,EAEtE,eAMC,GACF,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACnD,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,CAAC;IACzC,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC;IAC1D,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,cAAc,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9D,GAAG;IACF,oBAAoB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/B,8BAA8B,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5D,CAkDA"}
1
+ {"version":3,"file":"useArbitraryOptionAddition.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAIxE,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,UAAU,EAAE,EAC/D,UAAU,EACV,OAAY,EACZ,YAAiB,EACjB,oBAA2B,EAC3B,yBAAiC,EACjC,sBAAwE,EAExE,kBAKoB,EAEpB,uBAUC,EAED,iBAAsB,EACtB,cAAsE,EAEtE,eAMC,GACF,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACnD,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,CAAC;IACzC,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC;IAC1D,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,cAAc,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9D,GAAG;IACF,oBAAoB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/B,8BAA8B,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5D,CAkDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useArbitraryOptionAddition.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;;;;;;;;;;;;;AAaxE,wBAmDE;AASF,eAAO,MAAM,KAAK,yBAgCjB,CAAC;AAwBF,eAAO,MAAM,OAAO,yBA+BnB,CAAC"}
1
+ {"version":3,"file":"useArbitraryOptionAddition.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;;;;;;;;;;;;;AAWxE,wBAmDE;AASF,eAAO,MAAM,KAAK,yBAgCjB,CAAC;AAwBF,eAAO,MAAM,OAAO,yBA+BnB,CAAC"}
@@ -2,7 +2,7 @@ import { type DropzoneInputProps, type DropzoneRootProps } from 'react-dropzone'
2
2
  import type { FileObject, FileProgress, FileUploadBaseProps } from '../../components/FileUpload';
3
3
  type GetRootProps = <T extends DropzoneRootProps>(props?: T) => T;
4
4
  type GetInputProps = <T extends DropzoneInputProps>(props?: T) => T;
5
- export type UseFileUploadReturnProps = {
5
+ export interface UseFileUploadReturnProps {
6
6
  validFiles: Array<FileObject>;
7
7
  rejectedFiles: Array<FileObject>;
8
8
  isDragActive: boolean;
@@ -15,7 +15,7 @@ export type UseFileUploadReturnProps = {
15
15
  moveFileToSuccess: (id: string, successMessage?: string) => void;
16
16
  moveFileToReject: (id: string, rejectReason?: string) => void;
17
17
  setShowReUpload: (id: string, showReUpload?: boolean) => void;
18
- };
18
+ }
19
19
  export declare const useFileUpload: ({ maxFiles, maxSize, accept, disabled, onValidFilesDrop, onRejectedFilesDrop, onFileClear, onClear, }: FileUploadBaseProps) => UseFileUploadReturnProps;
20
20
  export {};
21
21
  //# sourceMappingURL=useFileUpload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFileUpload/useF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pload.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFileUpload/useFileUpload.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;AAe1B,wBAiPE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CA0NxE,CAAC"}
1
+ {"version":3,"file":"useFileUpload.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFileUpload/useFileUpload.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;AAgB1B,wBAiPE;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CA4NxE,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
- export type GroupTitleOption<V> = {
2
+ export interface GroupTitleOption<V> {
3
3
  groupTitle: React.ReactNode;
4
4
  options?: V[];
5
5
  showLineDivider?: boolean;
6
- };
7
- export type BaseOption = {
6
+ }
7
+ export interface BaseOption {
8
8
  key: string;
9
9
  label?: string;
10
- };
10
+ }
11
11
  export declare function useFilteredOptions<V extends BaseOption>({ searchTerm, options, excludedKeys, groupTitleOptions, searchOptionsBy, }: {
12
12
  searchTerm: string;
13
13
  options?: V[];
@@ -1 +1 @@
1
- {"version":3,"file":"useFilteredOptions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilteredOptions/useFilteredOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,UAAU,EAAE,EACvD,UAAU,EACV,OAAY,EACZ,YAAiB,EACjB,iBAAsB,EAEtB,eAOC,GACF,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9D,GAAG;IACF,eAAe,EAAE,CAAC,EAAE,CAAC;IACrB,yBAAyB,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;CAClD,CA+CA"}
1
+ {"version":3,"file":"useFilteredOptions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilteredOptions/useFilteredOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAGD,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,UAAU,EAAE,EACvD,UAAU,EACV,OAAY,EACZ,YAAiB,EACjB,iBAAsB,EAEtB,eAOC,GACF,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9D,GAAG;IACF,eAAe,EAAE,CAAC,EAAE,CAAC;IACrB,yBAAyB,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;CAClD,CA+CA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFilteredOptions.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilteredOptions/useFilteredOptions.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;;;;;;;;;;;;;AAKxD,wBA+CE;AASF,eAAO,MAAM,KAAK,yBA2BjB,CAAC;AAsBF,eAAO,MAAM,OAAO,yBAyBnB,CAAC"}
1
+ {"version":3,"file":"useFilteredOptions.stories.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFilteredOptions/useFilteredOptions.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;;;;;;;;;;;;;AAKxD,wBA+CE;AASF,eAAO,MAAM,KAAK,yBA2BjB,CAAC;AAsBF,eAAO,MAAM,OAAO,yBAwBnB,CAAC"}
@@ -1,4 +1,4 @@
1
- type InfiniteScrollOptions = {
1
+ interface InfiniteScrollOptions {
2
2
  itemSize: number | ((index: number) => number);
3
3
  threshold: number;
4
4
  itemsLength: number;
@@ -6,7 +6,7 @@ type InfiniteScrollOptions = {
6
6
  loadMoreItems: () => Promise<void>;
7
7
  containerHeight: number;
8
8
  isVariableSizeList?: boolean;
9
- };
9
+ }
10
10
  export declare function useInfiniteScroll({ itemSize, threshold, itemsLength, hasNextPage, loadMoreItems, containerHeight, isVariableSizeList, }: InfiniteScrollOptions): (scrollData: {
11
11
  scrollOffset: number;
12
12
  scrollDirection: 'forward' | 'backward';
@@ -1 +1 @@
1
- {"version":3,"file":"useInfiniteScroll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useInfiniteScroll/useInfiniteScroll.ts"],"names":[],"mappings":"AAGA,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WAAW,EACX,aAAa,EACb,eAAe,EACf,kBAAkB,GACnB,EAAE,qBAAqB,GAAG,CAAC,UAAU,EAAE;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,SAAS,GAAG,UAAU,CAAC;CACzC,KAAK,IAAI,CAwDT"}
1
+ {"version":3,"file":"useInfiniteScroll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useInfiniteScroll/useInfiniteScroll.ts"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WAAW,EACX,aAAa,EACb,eAAe,EACf,kBAAkB,GACnB,EAAE,qBAAqB,GAAG,CAAC,UAAU,EAAE;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,SAAS,GAAG,UAAU,CAAC;CACzC,KAAK,IAAI,CAwDT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useInputState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useInputState/useInputState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,UAAU,GAAG;IAChB,MAAM;IACN,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI;CACrD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,eAAc,MAAW,KAAG,UAUzD,CAAC"}
1
+ {"version":3,"file":"useInputState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useInputState/useInputState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,UAAU,GAAG;IAChB,MAAM;IACN,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI;CACrD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,qBAAiB,KAAG,UAUjD,CAAC"}