@conveyorhq/arrow-ds 1.140.0 → 1.141.0

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 (653) hide show
  1. package/README.md +1 -1
  2. package/package.json +35 -31
  3. package/public/components/Absolute/Absolute.d.ts +2 -1
  4. package/public/components/Absolute/Absolute.js +1 -1
  5. package/public/components/Accordion/Accordion.d.ts +22 -24
  6. package/public/components/Accordion/Accordion.js +51 -28
  7. package/public/components/Accordion/context.d.ts +2 -2
  8. package/public/components/Accordion/context.js +4 -4
  9. package/public/components/Accordion/index.js +5 -1
  10. package/public/components/Accordion/types.d.ts +4 -4
  11. package/public/components/Appbar/Appbar.d.ts +15 -15
  12. package/public/components/Appbar/Appbar.js +2 -2
  13. package/public/components/Appbar/AppbarClaimProfileButton.d.ts +2 -1
  14. package/public/components/Appbar/AppbarDropdownIcon.d.ts +2 -1
  15. package/public/components/Appbar/AppbarLogInButton.d.ts +2 -1
  16. package/public/components/Appbar/AppbarLogInButton.js +2 -2
  17. package/public/components/Appbar/AppbarLogo.d.ts +2 -1
  18. package/public/components/Appbar/AppbarLogo.js +2 -2
  19. package/public/components/Appbar/AppbarOrganization.d.ts +6 -6
  20. package/public/components/Appbar/AppbarOrganization.js +3 -3
  21. package/public/components/Appbar/AppbarProductMenu.d.ts +5 -5
  22. package/public/components/Appbar/AppbarProductMenu.js +10 -10
  23. package/public/components/Appbar/AppbarTabMarker.d.ts +2 -1
  24. package/public/components/Appbar/AppbarTabMarker.js +1 -1
  25. package/public/components/Appbar/AppbarTabs.d.ts +3 -3
  26. package/public/components/Appbar/AppbarTabs.js +8 -4
  27. package/public/components/Appbar/AppbarUser.d.ts +10 -10
  28. package/public/components/Appbar/AppbarUser.js +16 -16
  29. package/public/components/Appbar/_story/index.d.ts +6 -0
  30. package/public/components/Appbar/_story/index.js +61 -0
  31. package/public/components/Appbar/config.js +1 -1
  32. package/public/components/Appbar/context.d.ts +1 -1
  33. package/public/components/Appbar/context.js +2 -2
  34. package/public/components/Appbar/index.js +5 -1
  35. package/public/components/AptibleLogo/AptibleLogo.d.ts +3 -2
  36. package/public/components/ArrowButton/ArrowButton.d.ts +2 -1
  37. package/public/components/ArrowButton/ArrowButton.js +2 -2
  38. package/public/components/ArrowButton/index.js +5 -1
  39. package/public/components/ArrowLink/ArrowLink.d.ts +2 -1
  40. package/public/components/ArrowLink/ArrowLink.js +1 -1
  41. package/public/components/ArrowLink/index.js +5 -1
  42. package/public/components/Aside/Aside.d.ts +4 -3
  43. package/public/components/Aside/Aside.js +3 -3
  44. package/public/components/Aside/index.js +5 -1
  45. package/public/components/Avatar/Avatar.d.ts +12 -11
  46. package/public/components/Avatar/Avatar.js +18 -14
  47. package/public/components/Avatar/AvatarGroup.d.ts +2 -2
  48. package/public/components/Avatar/AvatarGroup.js +8 -4
  49. package/public/components/Avatar/context.d.ts +1 -1
  50. package/public/components/Avatar/context.js +1 -1
  51. package/public/components/Avatar/index.js +5 -1
  52. package/public/components/Avatar/types.d.ts +1 -1
  53. package/public/components/Avatar/types.js +1 -1
  54. package/public/components/Badge/Badge.js +8 -4
  55. package/public/components/Badge/index.js +5 -1
  56. package/public/components/Banner/Banner.js +9 -5
  57. package/public/components/Banner/index.js +5 -1
  58. package/public/components/Box/Box.js +7 -3
  59. package/public/components/Box/index.js +5 -1
  60. package/public/components/Button/Button.d.ts +1 -1
  61. package/public/components/Button/Button.js +23 -19
  62. package/public/components/Button/ButtonGroup.d.ts +2 -1
  63. package/public/components/Button/ButtonGroup.js +9 -5
  64. package/public/components/Button/index.js +5 -1
  65. package/public/components/Card/Card.d.ts +3 -3
  66. package/public/components/Card/Card.js +13 -9
  67. package/public/components/Card/CardGroup.d.ts +2 -1
  68. package/public/components/Card/CardGroup.js +1 -1
  69. package/public/components/Card/index.js +5 -1
  70. package/public/components/Checkbox/Checkbox.d.ts +4 -3
  71. package/public/components/Checkbox/Checkbox.js +20 -17
  72. package/public/components/Checkbox/index.js +5 -1
  73. package/public/components/CloseButton/CloseButton.d.ts +1 -1
  74. package/public/components/CloseButton/CloseButton.js +7 -3
  75. package/public/components/CloseButton/index.js +5 -1
  76. package/public/components/Combobox/Combobox.d.ts +2 -1
  77. package/public/components/Combobox/Combobox.js +11 -7
  78. package/public/components/Combobox/ComboboxMulti.d.ts +2 -1
  79. package/public/components/Combobox/ComboboxMulti.js +4 -4
  80. package/public/components/Combobox/index.js +5 -1
  81. package/public/components/Combobox/ui.d.ts +6 -6
  82. package/public/components/Combobox/ui.js +22 -18
  83. package/public/components/Combobox/useSelect.d.ts +1 -1
  84. package/public/components/Combobox/useSelect.js +9 -9
  85. package/public/components/ConveyorLogo/ConveyorLogo.js +1 -1
  86. package/public/components/ConveyorLogo/index.js +5 -1
  87. package/public/components/DatePicker/DatePicker.d.ts +1 -1
  88. package/public/components/DatePicker/DatePicker.js +24 -20
  89. package/public/components/DateRangePicker/CustomDateRangeInput.js +9 -5
  90. package/public/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  91. package/public/components/DateRangePicker/DateRangePicker.js +40 -36
  92. package/public/components/DateRangePicker/index.js +5 -1
  93. package/public/components/Description/Description.d.ts +2 -1
  94. package/public/components/Description/Description.js +7 -3
  95. package/public/components/Description/index.js +5 -1
  96. package/public/components/Divider/Divider.d.ts +2 -1
  97. package/public/components/Divider/Divider.js +4 -4
  98. package/public/components/Divider/index.js +5 -1
  99. package/public/components/DragDrop/DragDrop.d.ts +2 -2
  100. package/public/components/DragDrop/index.js +5 -1
  101. package/public/components/Drawer/Drawer.d.ts +12 -12
  102. package/public/components/Drawer/Drawer.js +24 -20
  103. package/public/components/Drawer/index.js +5 -1
  104. package/public/components/FileUpload/FileUpload.d.ts +1 -1
  105. package/public/components/FileUpload/FileUpload.js +12 -8
  106. package/public/components/FileUpload/FileUploadDnD.d.ts +3 -3
  107. package/public/components/FileUpload/FileUploadDnD.js +21 -17
  108. package/public/components/FileUpload/index.js +5 -1
  109. package/public/components/FileUpload/useFileUpload.d.ts +1 -1
  110. package/public/components/FileUpload/useFileUpload.js +11 -11
  111. package/public/components/Fixed/Fixed.d.ts +2 -1
  112. package/public/components/Fixed/Fixed.js +1 -1
  113. package/public/components/Flex/Flex.js +7 -3
  114. package/public/components/Floating/FloatingTooltip.d.ts +10 -10
  115. package/public/components/Floating/FloatingTooltip.js +34 -30
  116. package/public/components/Floating/index.js +5 -1
  117. package/public/components/FormGroup/FormGroup.d.ts +1 -1
  118. package/public/components/FormGroup/FormGroup.js +10 -6
  119. package/public/components/FormGroup/index.js +5 -1
  120. package/public/components/Frame/Frame.d.ts +5 -5
  121. package/public/components/Frame/Frame.js +1 -1
  122. package/public/components/Frame/index.js +5 -1
  123. package/public/components/Grid/Grid.d.ts +4 -4
  124. package/public/components/Grid/Grid.js +10 -6
  125. package/public/components/Heading/Heading.d.ts +9 -9
  126. package/public/components/Heading/Heading.js +8 -8
  127. package/public/components/Heading/index.js +5 -1
  128. package/public/components/Icon/Icon.d.ts +4 -4
  129. package/public/components/Icon/Icon.js +18 -14
  130. package/public/components/Icon/index.js +5 -1
  131. package/public/components/Icon/svg/ArrowToBottom.d.ts +2 -1
  132. package/public/components/Icon/svg/ArrowToBottom.js +1 -1
  133. package/public/components/Icon/svg/ArrowToLeft.d.ts +2 -1
  134. package/public/components/Icon/svg/ArrowToLeft.js +1 -1
  135. package/public/components/Icon/svg/ArrowToRight.d.ts +2 -1
  136. package/public/components/Icon/svg/ArrowToRight.js +1 -1
  137. package/public/components/Icon/svg/BadgeCheck.d.ts +2 -1
  138. package/public/components/Icon/svg/BadgeCheck.js +1 -1
  139. package/public/components/Icon/svg/CommentAltCheck.d.ts +2 -1
  140. package/public/components/Icon/svg/CommentAltCheck.js +1 -1
  141. package/public/components/Icon/svg/ConveyorLogoIcon.d.ts +2 -1
  142. package/public/components/Icon/svg/ConveyorLogoIcon.js +1 -1
  143. package/public/components/Icon/svg/DialogCheck.d.ts +2 -1
  144. package/public/components/Icon/svg/DialogCheck.js +1 -1
  145. package/public/components/Icon/svg/Folders.d.ts +2 -1
  146. package/public/components/Icon/svg/Folders.js +1 -1
  147. package/public/components/Icon/svg/InsertEnd.d.ts +2 -1
  148. package/public/components/Icon/svg/InsertEnd.js +1 -1
  149. package/public/components/Icon/svg/InsertMiddle.d.ts +2 -1
  150. package/public/components/Icon/svg/InsertMiddle.js +1 -1
  151. package/public/components/Icon/svg/InsertStart.d.ts +2 -1
  152. package/public/components/Icon/svg/InsertStart.js +1 -1
  153. package/public/components/Icon/svg/Scroll.d.ts +2 -1
  154. package/public/components/Icon/svg/Scroll.js +1 -1
  155. package/public/components/Icon/svg/ShieldCheck.d.ts +2 -1
  156. package/public/components/Icon/svg/ShieldCheck.js +1 -1
  157. package/public/components/Icon/svg/Sparkle.d.ts +2 -1
  158. package/public/components/Icon/svg/Sparkle.js +1 -1
  159. package/public/components/Icon/svg/Triangle.d.ts +3 -2
  160. package/public/components/Icon/svg/Triangle.js +2 -2
  161. package/public/components/Icon/svg/index.js +5 -1
  162. package/public/components/Image/Image.d.ts +2 -2
  163. package/public/components/Image/Image.js +2 -2
  164. package/public/components/Input/Input.js +13 -9
  165. package/public/components/Input/index.js +5 -1
  166. package/public/components/InputFeedback/InputFeedback.d.ts +2 -1
  167. package/public/components/InputFeedback/InputFeedback.js +8 -4
  168. package/public/components/IntegrationLogo/IntegrationLogo.d.ts +3 -2
  169. package/public/components/IntegrationLogo/IntegrationLogo.js +1 -1
  170. package/public/components/IntegrationLogo/IntegrationLogoSvg.d.ts +2 -1
  171. package/public/components/IntegrationLogo/IntegrationLogoSvg.js +22 -22
  172. package/public/components/IntegrationLogo/index.js +5 -1
  173. package/public/components/IntegrationLogo/svg/addigy.d.ts +2 -1
  174. package/public/components/IntegrationLogo/svg/addigy.js +1 -1
  175. package/public/components/IntegrationLogo/svg/aws.d.ts +2 -1
  176. package/public/components/IntegrationLogo/svg/aws.js +1 -1
  177. package/public/components/IntegrationLogo/svg/bamboohr.d.ts +2 -1
  178. package/public/components/IntegrationLogo/svg/bamboohr.js +1 -1
  179. package/public/components/IntegrationLogo/svg/bitbucket.d.ts +2 -1
  180. package/public/components/IntegrationLogo/svg/bitbucket.js +1 -1
  181. package/public/components/IntegrationLogo/svg/conveyor.d.ts +2 -1
  182. package/public/components/IntegrationLogo/svg/conveyor.js +1 -1
  183. package/public/components/IntegrationLogo/svg/default.d.ts +2 -1
  184. package/public/components/IntegrationLogo/svg/default.js +1 -1
  185. package/public/components/IntegrationLogo/svg/deploy.d.ts +2 -1
  186. package/public/components/IntegrationLogo/svg/deploy.js +1 -1
  187. package/public/components/IntegrationLogo/svg/docusign.d.ts +2 -1
  188. package/public/components/IntegrationLogo/svg/docusign.js +1 -1
  189. package/public/components/IntegrationLogo/svg/events-api.d.ts +2 -1
  190. package/public/components/IntegrationLogo/svg/events-api.js +1 -1
  191. package/public/components/IntegrationLogo/svg/gcp.d.ts +2 -1
  192. package/public/components/IntegrationLogo/svg/gcp.js +1 -1
  193. package/public/components/IntegrationLogo/svg/github.d.ts +2 -1
  194. package/public/components/IntegrationLogo/svg/github.js +1 -1
  195. package/public/components/IntegrationLogo/svg/gitlab.d.ts +2 -1
  196. package/public/components/IntegrationLogo/svg/gitlab.js +1 -1
  197. package/public/components/IntegrationLogo/svg/gsuite.d.ts +2 -1
  198. package/public/components/IntegrationLogo/svg/gsuite.js +1 -1
  199. package/public/components/IntegrationLogo/svg/index.js +5 -1
  200. package/public/components/IntegrationLogo/svg/jamf.d.ts +2 -1
  201. package/public/components/IntegrationLogo/svg/jamf.js +1 -1
  202. package/public/components/IntegrationLogo/svg/jira.d.ts +2 -1
  203. package/public/components/IntegrationLogo/svg/jira.js +1 -1
  204. package/public/components/IntegrationLogo/svg/jumpcloud.d.ts +2 -1
  205. package/public/components/IntegrationLogo/svg/jumpcloud.js +1 -1
  206. package/public/components/IntegrationLogo/svg/okta.d.ts +2 -1
  207. package/public/components/IntegrationLogo/svg/okta.js +1 -1
  208. package/public/components/IntegrationLogo/svg/onelogin.d.ts +2 -1
  209. package/public/components/IntegrationLogo/svg/onelogin.js +1 -1
  210. package/public/components/IntegrationLogo/svg/salesforce.d.ts +2 -1
  211. package/public/components/IntegrationLogo/svg/salesforce.js +1 -1
  212. package/public/components/IntegrationLogo/svg/servicenow.d.ts +2 -1
  213. package/public/components/IntegrationLogo/svg/servicenow.js +1 -1
  214. package/public/components/IntegrationLogo/svg/slack.d.ts +2 -1
  215. package/public/components/IntegrationLogo/svg/slack.js +1 -1
  216. package/public/components/IntegrationLogo/svg/wrapper.d.ts +2 -1
  217. package/public/components/IntegrationLogo/svg/wrapper.js +1 -1
  218. package/public/components/IntegrationLogo/svg/zoom.d.ts +2 -1
  219. package/public/components/IntegrationLogo/svg/zoom.js +1 -1
  220. package/public/components/Kbd/Kbd.d.ts +3 -3
  221. package/public/components/Kbd/Kbd.js +2 -2
  222. package/public/components/Kbd/index.js +5 -1
  223. package/public/components/Label/Label.d.ts +1 -1
  224. package/public/components/Label/Label.js +8 -4
  225. package/public/components/Label/index.js +5 -1
  226. package/public/components/Link/Link.d.ts +1 -1
  227. package/public/components/Link/Link.js +9 -5
  228. package/public/components/Link/index.js +5 -1
  229. package/public/components/List/List.d.ts +1 -1
  230. package/public/components/List/List.js +9 -5
  231. package/public/components/Loading/Loading.d.ts +3 -2
  232. package/public/components/Loading/Loading.js +1 -1
  233. package/public/components/Loading/index.js +5 -1
  234. package/public/components/Markdown/Markdown.d.ts +2 -1
  235. package/public/components/Markdown/Markdown.js +2 -2
  236. package/public/components/MarkdownEditor/MarkdownEditor.d.ts +2 -1
  237. package/public/components/MarkdownEditor/MarkdownEditor.js +7 -7
  238. package/public/components/MarkdownEditor/MarkdownHelp.d.ts +2 -1
  239. package/public/components/MarkdownEditor/MarkdownHelp.js +7 -7
  240. package/public/components/MarkdownEditor/index.js +5 -1
  241. package/public/components/Menu/Menu.d.ts +2 -2
  242. package/public/components/Menu/Menu.js +1 -1
  243. package/public/components/Menu/MenuItem.d.ts +1 -1
  244. package/public/components/Menu/MenuItem.js +13 -9
  245. package/public/components/Menu/index.js +5 -1
  246. package/public/components/MenuRenderer/MenuRenderer.d.ts +5 -5
  247. package/public/components/MenuRenderer/MenuRenderer.js +21 -18
  248. package/public/components/MenuRenderer/context.d.ts +2 -2
  249. package/public/components/MenuRenderer/context.js +2 -2
  250. package/public/components/MenuRenderer/index.js +5 -1
  251. package/public/components/Meta/Meta.d.ts +2 -1
  252. package/public/components/Meta/Meta.js +1 -1
  253. package/public/components/Modal/Modal.d.ts +32 -32
  254. package/public/components/Modal/Modal.js +54 -50
  255. package/public/components/Modal/_story/index.d.ts +2 -0
  256. package/public/components/Modal/_story/index.js +19 -0
  257. package/public/components/Modal/context.d.ts +1 -1
  258. package/public/components/Modal/context.js +2 -2
  259. package/public/components/Modal/index.js +5 -1
  260. package/public/components/OptionButton/OptionButton.d.ts +19 -19
  261. package/public/components/OptionButton/OptionButton.js +27 -24
  262. package/public/components/OptionButton/context.d.ts +2 -2
  263. package/public/components/OptionButton/context.js +2 -2
  264. package/public/components/OptionButton/index.js +5 -1
  265. package/public/components/Overlay/Overlay.d.ts +2 -1
  266. package/public/components/Overlay/Overlay.js +1 -1
  267. package/public/components/Pagination/Pagination.d.ts +2 -1
  268. package/public/components/Pagination/Pagination.js +5 -5
  269. package/public/components/Pagination/index.js +5 -1
  270. package/public/components/Panel/Panel.d.ts +4 -3
  271. package/public/components/Panel/Panel.js +2 -2
  272. package/public/components/Panel/index.js +5 -1
  273. package/public/components/Paper/Paper.d.ts +4 -3
  274. package/public/components/Paper/Paper.js +3 -3
  275. package/public/components/Paper/index.js +5 -1
  276. package/public/components/Paragraph/Paragraph.d.ts +2 -1
  277. package/public/components/Paragraph/Paragraph.js +2 -2
  278. package/public/components/Popover/Popover.d.ts +3 -3
  279. package/public/components/Popover/Popover.js +15 -11
  280. package/public/components/Popover/index.js +5 -1
  281. package/public/components/PopoverMenu/PopoverMenu.js +7 -3
  282. package/public/components/Portal/Portal.d.ts +3 -3
  283. package/public/components/Portal/Portal.js +1 -1
  284. package/public/components/Portal/index.js +5 -1
  285. package/public/components/ProductIcon/ProductIcon.d.ts +2 -1
  286. package/public/components/ProductIcon/ProductIcon.js +6 -6
  287. package/public/components/ProductIcon/ProductIconComply.d.ts +2 -1
  288. package/public/components/ProductIcon/ProductIconComply.js +1 -1
  289. package/public/components/ProductIcon/ProductIconDeploy.d.ts +2 -1
  290. package/public/components/ProductIcon/ProductIconDeploy.js +1 -1
  291. package/public/components/ProductIcon/ProductIconExchange.d.ts +2 -1
  292. package/public/components/ProductIcon/ProductIconExchange.js +1 -1
  293. package/public/components/ProductIcon/ProductIconTrustCenter.d.ts +2 -1
  294. package/public/components/ProductIcon/ProductIconTrustCenter.js +1 -1
  295. package/public/components/PropertyDiff/PropertyDiff.d.ts +2 -1
  296. package/public/components/PropertyDiff/PropertyDiff.js +5 -5
  297. package/public/components/PropertyDiff/index.js +5 -1
  298. package/public/components/Radio/Radio.d.ts +3 -3
  299. package/public/components/Radio/Radio.js +16 -13
  300. package/public/components/Radio/index.js +5 -1
  301. package/public/components/Reference/Reference.d.ts +1 -1
  302. package/public/components/Reference/Reference.js +9 -5
  303. package/public/components/Reference/index.js +5 -1
  304. package/public/components/Relative/Relative.d.ts +2 -1
  305. package/public/components/Relative/Relative.js +1 -1
  306. package/public/components/ScrollPane/ScrollPane.d.ts +2 -2
  307. package/public/components/ScrollPane/ScrollPane.js +3 -3
  308. package/public/components/ScrollSpy/ScrollSpy.d.ts +8 -8
  309. package/public/components/ScrollSpy/ScrollSpy.js +38 -34
  310. package/public/components/ScrollSpy/index.js +5 -1
  311. package/public/components/ScrollSpy/types.d.ts +2 -2
  312. package/public/components/ScrollSpy/types.js +1 -1
  313. package/public/components/SearchFilter/SearchFilter.d.ts +1 -1
  314. package/public/components/SearchFilter/SearchFilter.js +16 -12
  315. package/public/components/SearchFilter/index.js +5 -1
  316. package/public/components/Select/Select.d.ts +13 -10
  317. package/public/components/Select/Select.js +24 -20
  318. package/public/components/Select/SelectNonceProvider.d.ts +1 -1
  319. package/public/components/Select/SelectNonceProvider.js +1 -1
  320. package/public/components/Select/SelectPopover.d.ts +2 -2
  321. package/public/components/Select/SelectPopover.js +19 -9
  322. package/public/components/Select/index.d.ts +1 -1
  323. package/public/components/Select/index.js +5 -1
  324. package/public/components/Select/theme.js +4 -4
  325. package/public/components/SelectNew/SingleSelect.d.ts +5 -5
  326. package/public/components/SelectNew/SingleSelect.js +6 -6
  327. package/public/components/SelectNew/SingleSelectCSF.story.d.ts +46 -17
  328. package/public/components/SelectNew/SingleSelectCSF.story.js +66 -37
  329. package/public/components/SelectNew/hooks/useDownshiftConfig.js +1 -1
  330. package/public/components/SelectNew/hooks/useSelectCreatable.js +3 -3
  331. package/public/components/SelectNew/hooks/useSelectLayout.js +21 -21
  332. package/public/components/SelectNew/hooks/useSelectOptionIndex.js +1 -1
  333. package/public/components/SelectNew/hooks/useTransformSelectOptions.d.ts +1 -1
  334. package/public/components/SelectNew/hooks/useTransformSelectOptions.js +1 -1
  335. package/public/components/SelectNew/index.js +5 -1
  336. package/public/components/SelectNew/shared/CreatableOption.d.ts +2 -2
  337. package/public/components/SelectNew/shared/CreatableOption.js +5 -5
  338. package/public/components/SelectNew/shared/SelectChildrenWithDefaultStatus.d.ts +2 -2
  339. package/public/components/SelectNew/shared/SelectControl.d.ts +2 -2
  340. package/public/components/SelectNew/shared/SelectControl.js +13 -9
  341. package/public/components/SelectNew/shared/SelectMenu.d.ts +2 -2
  342. package/public/components/SelectNew/shared/SelectMenu.js +2 -2
  343. package/public/components/SelectNew/shared/SelectOptionCategory.d.ts +2 -2
  344. package/public/components/SelectNew/shared/SelectPortal.js +2 -2
  345. package/public/components/SelectNew/shared/SelectSearch.js +7 -3
  346. package/public/components/SelectNew/shared/SelectStatus.d.ts +2 -2
  347. package/public/components/SelectNew/shared/types.d.ts +1 -1
  348. package/public/components/SelectNew/single/SingleSelectContext.d.ts +1 -1
  349. package/public/components/SelectNew/single/SingleSelectContext.js +1 -1
  350. package/public/components/SelectNew/single/SingleSelectOption.d.ts +2 -2
  351. package/public/components/SelectNew/single/SingleSelectOption.js +8 -4
  352. package/public/components/SelectNew/single/SingleSelectSelected.d.ts +2 -2
  353. package/public/components/SimpleTable/SimpleTable.d.ts +8 -8
  354. package/public/components/SimpleTable/SimpleTable.js +13 -13
  355. package/public/components/SimpleTable/index.js +5 -1
  356. package/public/components/Skeleton/Skeleton.d.ts +3 -2
  357. package/public/components/Skeleton/Skeleton.js +1 -1
  358. package/public/components/Skeleton/index.js +5 -1
  359. package/public/components/SmallCaps/SmallCaps.d.ts +2 -1
  360. package/public/components/SmallCaps/SmallCaps.js +1 -1
  361. package/public/components/Snackbar/Snackbar.d.ts +12 -11
  362. package/public/components/Snackbar/Snackbar.js +8 -8
  363. package/public/components/Snackbar/SnackbarProvider.d.ts +2 -1
  364. package/public/components/Snackbar/SnackbarProvider.js +1 -1
  365. package/public/components/Snackbar/constants.d.ts +1 -1
  366. package/public/components/Snackbar/constants.js +1 -1
  367. package/public/components/Snackbar/context.js +2 -2
  368. package/public/components/Snackbar/helpers.d.ts +3 -3
  369. package/public/components/Snackbar/helpers.js +13 -16
  370. package/public/components/Snackbar/hooks.js +8 -11
  371. package/public/components/Snackbar/index.js +5 -1
  372. package/public/components/Snackbar/types.d.ts +22 -23
  373. package/public/components/Sparkles/Sparkles.d.ts +1 -1
  374. package/public/components/Sparkles/Sparkles.js +16 -12
  375. package/public/components/Sparkles/index.js +5 -1
  376. package/public/components/SpeechBubble/SpeechBubble.d.ts +3 -2
  377. package/public/components/SpeechBubble/SpeechBubble.js +1 -1
  378. package/public/components/SpeechBubble/index.js +5 -1
  379. package/public/components/Stack/Stack.js +11 -7
  380. package/public/components/Stack/index.js +5 -1
  381. package/public/components/StatusLabel/StatusLabel.d.ts +2 -1
  382. package/public/components/StatusLabel/StatusLabel.js +7 -7
  383. package/public/components/StatusLabel/index.js +5 -1
  384. package/public/components/StatusPanel/StatusPanel.d.ts +2 -1
  385. package/public/components/StatusPanel/StatusPanel.js +3 -3
  386. package/public/components/StatusPanel/index.js +5 -1
  387. package/public/components/Sticky/Sticky.d.ts +2 -1
  388. package/public/components/Sticky/Sticky.js +1 -1
  389. package/public/components/Svg/Svg.d.ts +1 -1
  390. package/public/components/Svg/Svg.js +1 -1
  391. package/public/components/Svg/index.js +5 -1
  392. package/public/components/Tab/Tab.d.ts +4 -4
  393. package/public/components/Tab/Tab.js +3 -3
  394. package/public/components/Tab/index.js +5 -1
  395. package/public/components/Table/FilterDropdown.d.ts +2 -2
  396. package/public/components/Table/FilterDropdown.js +23 -19
  397. package/public/components/Table/Table.d.ts +5 -5
  398. package/public/components/Table/Table.js +9 -5
  399. package/public/components/Table/TableBody.d.ts +2 -2
  400. package/public/components/Table/TableBody.js +7 -3
  401. package/public/components/Table/TableCell.js +7 -3
  402. package/public/components/Table/TableContext.js +1 -1
  403. package/public/components/Table/TableHead.d.ts +1 -1
  404. package/public/components/Table/TableHead.js +1 -1
  405. package/public/components/Table/TableHeaderCell.d.ts +1 -1
  406. package/public/components/Table/TableHeaderCell.js +20 -16
  407. package/public/components/Table/TableRow.d.ts +1 -1
  408. package/public/components/Table/TableRow.js +1 -1
  409. package/public/components/Table/index.js +5 -1
  410. package/public/components/Tag/Tag.d.ts +3 -2
  411. package/public/components/Tag/Tag.js +5 -5
  412. package/public/components/Tag/TagGroup.d.ts +2 -1
  413. package/public/components/Tag/TagGroup.js +1 -1
  414. package/public/components/Tag/index.js +5 -1
  415. package/public/components/Text/Text.d.ts +3 -2
  416. package/public/components/Text/Text.js +1 -1
  417. package/public/components/Text/index.js +5 -1
  418. package/public/components/Textarea/Textarea.d.ts +2 -2
  419. package/public/components/Textarea/Textarea.js +15 -11
  420. package/public/components/Textarea/index.js +5 -1
  421. package/public/components/Toast/Toast.d.ts +9 -9
  422. package/public/components/Toast/Toast.js +20 -17
  423. package/public/components/Toast/index.js +5 -1
  424. package/public/components/Toggle/Toggle.d.ts +2 -2
  425. package/public/components/Toggle/Toggle.js +5 -5
  426. package/public/components/Toggle/index.js +5 -1
  427. package/public/components/Token/Token.d.ts +3 -3
  428. package/public/components/Token/Token.js +9 -9
  429. package/public/components/Tooltip/Tooltip.d.ts +2 -1
  430. package/public/components/Tooltip/Tooltip.js +16 -12
  431. package/public/components/Tooltip/TooltipLink.d.ts +1 -1
  432. package/public/components/Tooltip/TooltipLink.js +6 -2
  433. package/public/components/Tooltip/context.d.ts +1 -1
  434. package/public/components/Tooltip/context.js +2 -2
  435. package/public/components/Tooltip/index.js +5 -1
  436. package/public/components/TopBar/TopBar.d.ts +5 -5
  437. package/public/components/TopBar/TopBar.js +2 -2
  438. package/public/components/TopBar/TopBarBreadcrumbs.d.ts +2 -1
  439. package/public/components/TopBar/TopBarBreadcrumbs.js +5 -5
  440. package/public/components/TopBar/TopBarSubNav.d.ts +2 -1
  441. package/public/components/TopBar/TopBarSubNav.js +2 -2
  442. package/public/components/TopBar/TopBarSubNavItem.d.ts +2 -1
  443. package/public/components/TopBar/TopBarSubNavItem.js +3 -3
  444. package/public/components/TopBar/index.js +5 -1
  445. package/public/components/Truncate/Truncate.d.ts +2 -1
  446. package/public/components/Truncate/Truncate.js +2 -2
  447. package/public/components/Truncate/index.js +5 -1
  448. package/public/components/VendorLogo/VendorLogo.d.ts +4 -4
  449. package/public/components/VendorLogo/VendorLogo.js +14 -10
  450. package/public/components/VendorLogo/index.js +5 -1
  451. package/public/components/VisuallyHidden/VisuallyHidden.js +2 -2
  452. package/public/contexts/drawer.js +1 -1
  453. package/public/contexts/status.d.ts +1 -1
  454. package/public/contexts/status.js +1 -1
  455. package/public/contexts/theme.d.ts +1 -1
  456. package/public/contexts/theme.js +1 -1
  457. package/public/css/styles.css +126 -483
  458. package/public/css/styles.min.css +1 -1
  459. package/public/css/styles.min.css.map +1 -1
  460. package/public/docs/_story/index.d.ts +10 -0
  461. package/public/docs/_story/index.js +61 -0
  462. package/public/hooks/useDisclosure.d.ts +1 -1
  463. package/public/hooks/useDisclosure.js +4 -4
  464. package/public/hooks/useIntersection.js +3 -3
  465. package/public/hooks/useKeyPress.js +2 -2
  466. package/public/hooks/useMatchMedia.js +2 -2
  467. package/public/hooks/useOutsideClick.d.ts +1 -1
  468. package/public/hooks/useOutsideClick.js +1 -1
  469. package/public/hooks/usePrefersReducedMotion.js +1 -1
  470. package/public/hooks/useRandomInterval.d.ts +1 -1
  471. package/public/hooks/useRandomInterval.js +6 -6
  472. package/public/hooks/useScreenOrientation.js +3 -3
  473. package/public/hooks/useStep.d.ts +1 -1
  474. package/public/hooks/useStep.js +1 -1
  475. package/public/index.d.ts +2 -1
  476. package/public/index.js +8 -2
  477. package/public/storybook-components/Accessibility.d.ts +1 -1
  478. package/public/storybook-components/Code.d.ts +1 -1
  479. package/public/storybook-components/Code.js +1 -1
  480. package/public/storybook-components/ComponentHeading.d.ts +2 -1
  481. package/public/storybook-components/ComponentStatus.d.ts +2 -1
  482. package/public/storybook-components/ComponentStatus.js +1 -1
  483. package/public/storybook-components/CustomColorPalette.d.ts +2 -1
  484. package/public/storybook-components/EnumTable.d.ts +1 -1
  485. package/public/storybook-components/Examples.d.ts +1 -1
  486. package/public/storybook-components/Story.d.ts +2 -1
  487. package/public/storybook-components/Story.js +1 -1
  488. package/public/storybook-components/index.js +5 -1
  489. package/public/style-dictionary/dist/tokens.d.ts +76 -76
  490. package/public/style-dictionary/dist/tokens.module.d.ts +76 -76
  491. package/public/style-dictionary/src/border-radius.d.ts +8 -8
  492. package/public/style-dictionary/src/border-width.d.ts +1 -1
  493. package/public/style-dictionary/src/color.d.ts +21 -21
  494. package/public/style-dictionary/src/font-size.d.ts +11 -11
  495. package/public/style-dictionary/src/font-weight.d.ts +3 -3
  496. package/public/style-dictionary/src/height.d.ts +1 -1
  497. package/public/style-dictionary/src/leading.d.ts +4 -4
  498. package/public/style-dictionary/src/screen-width.d.ts +4 -4
  499. package/public/style-dictionary/src/shadow.d.ts +16 -16
  500. package/public/style-dictionary/src/spacing.d.ts +1 -1
  501. package/public/style-dictionary/src/tracking.d.ts +3 -3
  502. package/public/style-dictionary/src/type.d.ts +3 -3
  503. package/public/style-dictionary/src/width.d.ts +1 -1
  504. package/public/style-dictionary/src/z-index.d.ts +1 -1
  505. package/public/style-dictionary/tailwind.config.d.ts +8 -8
  506. package/public/tokens/index.js +5 -1
  507. package/public/types/index.d.ts +8 -9
  508. package/public/types/index.js +8 -8
  509. package/public/utilities/bem.d.ts +4 -4
  510. package/public/utilities/bem.js +1 -1
  511. package/public/utilities/index.js +5 -1
  512. package/public/utilities/isValidDate.js +1 -1
  513. package/public/utilities/parseDate.js +3 -3
  514. package/src/components/Absolute/{Absolute.story.mdx → Absolute.stories.mdx} +3 -3
  515. package/src/components/Accordion/{Accordion.story.mdx → Accordion.stories.mdx} +1 -1
  516. package/src/components/Accordion/Accordion.tsx +37 -55
  517. package/src/components/Appbar/Appbar.stories.mdx +103 -0
  518. package/src/components/Appbar/_story/index.tsx +97 -0
  519. package/src/components/AptibleLogo/{AptibleLogo.story.mdx → AptibleLogo.stories.mdx} +3 -3
  520. package/src/components/ArrowButton/{ArrowButton.story.mdx → ArrowButton.stories.mdx} +11 -11
  521. package/src/components/ArrowLink/{ArrowLink.story.mdx → ArrowLink.stories.mdx} +10 -10
  522. package/src/components/Aside/{Aside.story.mdx → Aside.stories.mdx} +3 -3
  523. package/src/components/Avatar/{Avatar.story.mdx → Avatar.stories.mdx} +1 -1
  524. package/src/components/Badge/{Badge.story.mdx → Badge.stories.mdx} +1 -1
  525. package/src/components/Banner/{Banner.story.mdx → Banner.stories.mdx} +1 -1
  526. package/src/components/Box/{Box.story.mdx → Box.stories.mdx} +1 -1
  527. package/src/components/Button/{Button.story.mdx → Button.stories.mdx} +1 -1
  528. package/src/components/Button/{ButtonGroup.story.mdx → ButtonGroup.stories.mdx} +1 -1
  529. package/src/components/Card/{Card.story.mdx → Card.stories.mdx} +1 -1
  530. package/src/components/Checkbox/{Checkbox.story.mdx → Checkbox.stories.mdx} +1 -1
  531. package/src/components/Checkbox/Checkbox.tsx +2 -2
  532. package/src/components/CloseButton/{CloseButton.story.mdx → CloseButton.stories.mdx} +1 -1
  533. package/src/components/Combobox/{Combobox.story.mdx → Combobox.stories.mdx} +25 -25
  534. package/src/components/ConveyorLogo/{ConveyorLogo.story.mdx → ConveyorLogo.stories.mdx} +1 -1
  535. package/src/components/DatePicker/{DatePicker.story.mdx → DatePicker.stories.mdx} +1 -1
  536. package/src/components/DateRangePicker/{DateRangePicker.story.mdx → DateRangePicker.stories.mdx} +1 -1
  537. package/src/components/Description/{Description.story.mdx → Description.stories.mdx} +1 -1
  538. package/src/components/Divider/{Divider.story.mdx → Divider.stories.mdx} +1 -1
  539. package/src/components/Drawer/{Drawer.story.mdx → Drawer.stories.mdx} +1 -1
  540. package/src/components/Drawer/Drawer.tsx +1 -1
  541. package/src/components/FileUpload/{FileUpload.story.mdx → FileUpload.stories.mdx} +1 -1
  542. package/src/components/Fixed/{Fixed.story.mdx → Fixed.stories.mdx} +3 -3
  543. package/src/components/Flex/{Flex.story.mdx → Flex.stories.mdx} +1 -1
  544. package/src/components/Floating/{FloatingTooltip.story.mdx → FloatingTooltip.stories.mdx} +1 -1
  545. package/src/components/FormGroup/{FormGroup.story.mdx → FormGroup.stories.mdx} +1 -1
  546. package/src/components/Frame/{Frame.story.mdx → Frame.stories.mdx} +1 -1
  547. package/src/components/Grid/{Grid.story.mdx → Grid.stories.mdx} +1 -1
  548. package/src/components/Grid/Grid.tsx +3 -3
  549. package/src/components/Heading/{Heading.story.mdx → Heading.stories.mdx} +1 -1
  550. package/src/components/Icon/{Icon.story.mdx → Icon.stories.mdx} +1 -1
  551. package/src/components/Image/{Image.story.mdx → Image.stories.mdx} +1 -1
  552. package/src/components/Input/{Input.story.mdx → Input.stories.mdx} +1 -1
  553. package/src/components/InputFeedback/{InputFeedback.story.mdx → InputFeedback.stories.mdx} +1 -1
  554. package/src/components/IntegrationLogo/{IntegrationLogo.story.mdx → IntegrationLogo.stories.mdx} +1 -1
  555. package/src/components/Kbd/{Kbd.story.mdx → Kbd.stories.mdx} +1 -1
  556. package/src/components/Label/{Label.story.mdx → Label.stories.mdx} +1 -1
  557. package/src/components/Link/{Link.story.mdx → Link.stories.mdx} +1 -1
  558. package/src/components/List/{List.story.mdx → List.stories.mdx} +1 -1
  559. package/src/components/Loading/{Loading.story.mdx → Loading.stories.mdx} +1 -1
  560. package/src/components/Markdown/{Markdown.story.mdx → Markdown.stories.mdx} +1 -1
  561. package/src/components/MarkdownEditor/{MarkdownEditor.story.mdx → MarkdownEditor.stories.mdx} +1 -1
  562. package/src/components/Menu/{Menu.story.mdx → Menu.stories.mdx} +1 -1
  563. package/src/components/Menu/Menu.tsx +1 -1
  564. package/src/components/MenuRenderer/{MenuRenderer.story.mdx → MenuRenderer.stories.mdx} +1 -1
  565. package/src/components/MenuRenderer/MenuRenderer.tsx +10 -10
  566. package/src/components/Meta/Meta.stories.mdx +48 -0
  567. package/src/components/Modal/{Modal.story.mdx → Modal.stories.mdx} +38 -64
  568. package/src/components/Modal/_story/index.tsx +28 -0
  569. package/src/components/OptionButton/{OptionButton.story.mdx → OptionButton.stories.mdx} +2 -1
  570. package/src/components/OptionButton/OptionButton.tsx +2 -3
  571. package/src/components/Overlay/{Overlay.story.mdx → Overlay.stories.mdx} +1 -1
  572. package/src/components/Pagination/{Pagination.story.mdx → Pagination.stories.mdx} +3 -3
  573. package/src/components/Panel/{Panel.story.mdx → Panel.stories.mdx} +1 -1
  574. package/src/components/Paper/{Paper.story.mdx → Paper.stories.mdx} +1 -1
  575. package/src/components/Paragraph/{Paragraph.story.mdx → Paragraph.stories.mdx} +1 -1
  576. package/src/components/Popover/{Popover.story.mdx → Popover.stories.mdx} +1 -1
  577. package/src/components/PopoverMenu/{PopoverMenu.story.mdx → PopoverMenu.stories.mdx} +1 -1
  578. package/src/components/Portal/{Portal.story.mdx → Portal.stories.mdx} +1 -1
  579. package/src/components/ProductIcon/{ProductIcon.story.mdx → ProductIcon.stories.mdx} +3 -3
  580. package/src/components/PropertyDiff/{PropertDiff.story.mdx → PropertDiff.stories.mdx} +9 -9
  581. package/src/components/Radio/{Radio.story.mdx → Radio.stories.mdx} +1 -1
  582. package/src/components/Radio/Radio.tsx +2 -3
  583. package/src/components/Reference/{Reference.story.mdx → Reference.stories.mdx} +1 -1
  584. package/src/components/Relative/{Relative.story.mdx → Relative.stories.mdx} +3 -3
  585. package/src/components/ScrollPane/{ScrollPane.story.mdx → ScrollPane.stories.mdx} +1 -1
  586. package/src/components/ScrollSpy/{ScrollSpy.story.mdx → ScrollSpy.stories.mdx} +1 -1
  587. package/src/components/SearchFilter/{SearchFilter.story.mdx → SearchFilter.stories.mdx} +1 -1
  588. package/src/components/Select/{Select.story.mdx → Select.stories.mdx} +1 -1
  589. package/src/components/Select/Select.tsx +20 -14
  590. package/src/components/Select/SelectPopover.tsx +10 -4
  591. package/src/components/Select/index.ts +0 -1
  592. package/src/components/SelectNew/{SingleSelect.story.mdx → SingleSelect.stories.mdx} +1 -1
  593. package/src/components/SelectNew/SingleSelectCSF.story.tsx +26 -0
  594. package/src/components/SimpleTable/{SimpleTable.story.mdx → SimpleTable.stories.mdx} +1 -1
  595. package/src/components/Skeleton/{Skeleton.story.mdx → Skeleton.stories.mdx} +1 -1
  596. package/src/components/SmallCaps/{SmallCaps.story.mdx → SmallCaps.stories.mdx} +1 -1
  597. package/src/components/Snackbar/{Snackbar.story.mdx → Snackbar.stories.mdx} +1 -1
  598. package/src/components/Snackbar/constants.ts +1 -1
  599. package/src/components/Snackbar/helpers.tsx +35 -38
  600. package/src/components/Snackbar/hooks.ts +8 -11
  601. package/src/components/Snackbar/index.css +0 -2
  602. package/src/components/Snackbar/types.ts +4 -21
  603. package/src/components/Sparkles/{Sparkles.story.mdx → Sparkles.stories.mdx} +1 -1
  604. package/src/components/SpeechBubble/{SpeechBubble.story.mdx → SpeechBubble.stories.mdx} +1 -1
  605. package/src/components/Stack/{Stack.story.mdx → Stack.stories.mdx} +1 -1
  606. package/src/components/StatusLabel/{StatusLabel.story.mdx → StatusLabel.stories.mdx} +21 -21
  607. package/src/components/StatusPanel/{StatusPanel.story.mdx → StatusPanel.stories.mdx} +9 -9
  608. package/src/components/Sticky/{Sticky.story.mdx → Sticky.stories.mdx} +3 -3
  609. package/src/components/Svg/{Svg.story.mdx → Svg.stories.mdx} +1 -1
  610. package/src/components/Tab/{Tab.story.mdx → Tab.stories.mdx} +1 -1
  611. package/src/components/Table/{Table.story.mdx → Table.stories.mdx} +1 -1
  612. package/src/components/Tag/{Tag.story.mdx → Tag.stories.mdx} +1 -1
  613. package/src/components/Text/{Text.story.mdx → Text.stories.mdx} +1 -1
  614. package/src/components/Textarea/{Textarea.story.mdx → Textarea.stories.mdx} +1 -1
  615. package/src/components/Toast/{Toast.story.mdx → Toast.stories.mdx} +1 -1
  616. package/src/components/Toast/Toast.tsx +14 -8
  617. package/src/components/Toast/index.css +1 -3
  618. package/src/components/Toggle/{Toggle.story.mdx → Toggle.stories.mdx} +1 -1
  619. package/src/components/Token/{Token.story.mdx → Token.stories.mdx} +1 -1
  620. package/src/components/Tooltip/{Tooltip.story.mdx → Tooltip.stories.mdx} +2 -1
  621. package/src/components/TopBar/{TopBar.story.mdx → TopBar.stories.mdx} +11 -11
  622. package/src/components/Truncate/{Truncate.story.mdx → Truncate.stories.mdx} +1 -1
  623. package/src/components/VendorLogo/{VendorLogo.story.mdx → VendorLogo.stories.mdx} +1 -1
  624. package/src/components/VisuallyHidden/{VisuallyHidden.story.mdx → VisuallyHidden.stories.mdx} +1 -1
  625. package/src/css/utilities/animations.css +32 -0
  626. package/src/docs/{About.story.mdx → About.mdx} +1 -1
  627. package/src/docs/{Colors.story.mdx → Colors.mdx} +1 -1
  628. package/src/docs/{Spacing.story.mdx → Spacing.mdx} +2 -27
  629. package/src/docs/{Tokens.story.mdx → Tokens.mdx} +14 -92
  630. package/src/docs/{Typography.story.mdx → Typography.mdx} +1 -1
  631. package/src/docs/_story/index.tsx +107 -0
  632. package/src/docs/brand-components/{BrandButton.story.mdx → BrandButton.mdx} +13 -13
  633. package/src/docs/brand-components/{BrandCheckbox.story.mdx → BrandCheckbox.mdx} +7 -7
  634. package/src/docs/brand-components/{BrandFormGroup.story.mdx → BrandFormGroup.mdx} +5 -5
  635. package/src/docs/brand-components/{BrandRadio.story.mdx → BrandRadio.mdx} +5 -5
  636. package/src/docs/brand-components/{BrandTextArea.story.mdx → BrandTextArea.mdx} +7 -7
  637. package/src/docs/hooks/{useDisclosureHook.story.mdx → useDisclosureHook.mdx} +1 -1
  638. package/src/docs/hooks/{useKeyPressHook.story.mdx → useKeyPressHook.mdx} +1 -1
  639. package/src/docs/hooks/{useMatchMediaHook.story.mdx → useMatchMediaHook.mdx} +1 -1
  640. package/src/docs/hooks/{useOutsideClickHook.story.mdx → useOutsideClickHook.mdx} +1 -1
  641. package/src/docs/hooks/{usePrefersReducedMotion.story.mdx → usePrefersReducedMotion.mdx} +1 -1
  642. package/src/docs/hooks/{useScreenOrientationHook.story.mdx → useScreenOrientationHook.mdx} +1 -1
  643. package/src/docs/hooks/{useStepHook.story.mdx → useStepHook.mdx} +1 -1
  644. package/src/index.ts +2 -1
  645. package/src/types/index.ts +2 -9
  646. package/public/components/Meta/Meta.story.d.ts +0 -1
  647. package/public/components/Meta/Meta.story.js +0 -39
  648. package/src/components/Appbar/Appbar.story.mdx +0 -207
  649. package/src/components/Meta/Meta.md +0 -14
  650. package/src/components/Meta/Meta.story.tsx +0 -24
  651. package/src/components/SmallCaps/SmallCaps.md +0 -14
  652. package/src/recipes/TopBarNavigation.story.mdx +0 -114
  653. package/src/templates/Index.story.mdx +0 -172
package/README.md CHANGED
@@ -93,7 +93,7 @@ All documentation exists within the `src` directory of this repo. If it applies
93
93
  Each MDX file should start with importing the `Meta` component and passing a `title` to it:
94
94
 
95
95
  ```mdx
96
- import { Meta } from "@storybook/addon-docs";
96
+ import { Meta } from "@storybook/blocks";
97
97
 
98
98
  <Meta title="Arrow Design System/Introduction" />
99
99
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.140.0",
5
+ "version": "1.141.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -25,9 +25,8 @@
25
25
  "@fortawesome/free-regular-svg-icons": "^5.14.0",
26
26
  "@fortawesome/free-solid-svg-icons": "^5.14.0",
27
27
  "@fortawesome/react-fontawesome": "^0.1.11",
28
- "@popperjs/core": "^2.4.2",
29
- "@reach/auto-id": "^0.6.1",
30
- "@reach/portal": "^0.6.1",
28
+ "@popperjs/core": "^2.11.8",
29
+ "@react-spring/web": "^9.7.3",
31
30
  "@rehooks/component-size": "^1.0.3",
32
31
  "@types/date-fns": "^2.6.0",
33
32
  "classnames": "^2.2.6",
@@ -41,17 +40,17 @@
41
40
  "mime-types": "^2.1.30",
42
41
  "react-codemirror2": "^7.1.0",
43
42
  "react-datepicker": "^3.1.3",
44
- "react-dnd": "^14.0.2",
45
- "react-dnd-html5-backend": "^14.0.0",
43
+ "react-dnd": "^16.0.1",
44
+ "react-dnd-html5-backend": "^16.0.1",
46
45
  "react-focus-lock": "^2.2.1",
46
+ "react-hot-toast": "^2.4.1",
47
47
  "react-markdown": "^4.3.1",
48
48
  "react-merge-refs": "^1.1.0",
49
- "react-popper-2": "npm:react-popper@^2.2.3",
49
+ "react-popper-2": "npm:react-popper@^2.3.0",
50
50
  "react-remove-scroll": "^2.2.0",
51
51
  "react-select": "^4.0.2",
52
52
  "react-spring": "^8.0.27",
53
- "remark-breaks": "^2.0.2",
54
- "toasted-notes": "^3.2.0"
53
+ "remark-breaks": "^2.0.2"
55
54
  },
56
55
  "scripts": {
57
56
  "prepublishOnly": "yarn run build",
@@ -63,8 +62,8 @@
63
62
  "build:copy-svg": "copyfiles -u 1 src/**/*.svg public/",
64
63
  "build:copy-style-dictionary": "copyfiles src/style-dictionary/dist/* src/style-dictionary/tailwind.config.js public/",
65
64
  "minify:css": "csso public/css/styles.css --output public/css/styles.min.css --comments none --source-map file",
66
- "storybook": "yarn run build && start-storybook --docs -p 9002 -c .storybook -s .storybook",
67
- "build-storybook": "yarn run build && build-storybook --docs -c .storybook -s .storybook -o storybook-static",
65
+ "storybook": "yarn run build && storybook dev --docs -p 9002 -c .storybook -s .storybook",
66
+ "build-storybook": "yarn run build && storybook build --docs -c .storybook -s .storybook -o storybook-static",
68
67
  "style-dictionary:build": "style-dictionary build --config ./style-dictionary.config.js",
69
68
  "style-dictionary:clean": "style-dictionary clean --config ./style-dictionary.config.js",
70
69
  "generate": "plop",
@@ -112,13 +111,15 @@
112
111
  "@babel/preset-typescript": "^7.7.2",
113
112
  "@commitlint/cli": "^16.2.1",
114
113
  "@commitlint/config-conventional": "^16.2.1",
115
- "@storybook/addon-actions": "^6.5.9",
116
- "@storybook/addon-docs": "^6.5.9",
117
- "@storybook/addon-postcss": "^2.0.0",
118
- "@storybook/builder-webpack5": "^6.5.9",
119
- "@storybook/manager-webpack5": "^6.5.9",
120
- "@storybook/react": "^6.5.9",
121
- "@storybook/theming": "^6.5.9",
114
+ "@storybook/addon-actions": "^7.6.3",
115
+ "@storybook/addon-docs": "^7.6.3",
116
+ "@storybook/addon-mdx-gfm": "^7.6.3",
117
+ "@storybook/addon-styling": "^1.3.7",
118
+ "@storybook/addon-styling-webpack": "^0.0.5",
119
+ "@storybook/blocks": "^7.6.3",
120
+ "@storybook/react": "^7.6.3",
121
+ "@storybook/react-webpack5": "^7.6.3",
122
+ "@storybook/theming": "^7.6.3",
122
123
  "@types/classnames": "^2.2.9",
123
124
  "@types/codemirror": "^0.0.91",
124
125
  "@types/d3-ease": "^1.0.9",
@@ -129,15 +130,15 @@
129
130
  "@types/md5": "^2.2.1",
130
131
  "@types/mime-types": "^2.1.0",
131
132
  "@types/node": "^12.12.6",
132
- "@types/react": "^16.9.11",
133
+ "@types/react": "^18.2.38",
133
134
  "@types/react-datepicker": "^3.1.0",
134
- "@types/react-dom": "^16.9.4",
135
+ "@types/react-dom": "^18.2.17",
135
136
  "@types/react-fontawesome": "^1.6.4",
136
- "@types/react-select": "^3.0.8",
137
+ "@types/react-select": "^4.0.2",
137
138
  "@types/tailwindcss": "^3.0.1",
138
- "@types/webpack": "^5.0.0",
139
- "@typescript-eslint/eslint-plugin": "^4.18.0",
140
- "@typescript-eslint/parser": "^4.18.0",
139
+ "@types/webpack": "^5.28.5",
140
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
141
+ "@typescript-eslint/parser": "^6.12.0",
141
142
  "autoprefixer": "^10.4.0",
142
143
  "babel-loader": "^8.0.6",
143
144
  "babel-plugin-inline-react-svg": "^2.0.0",
@@ -154,6 +155,7 @@
154
155
  "eslint-plugin-prettier": "^3.3.1",
155
156
  "eslint-plugin-react": "^7.22.0",
156
157
  "eslint-plugin-react-hooks": "^4.2.0",
158
+ "eslint-plugin-storybook": "^0.6.15",
157
159
  "fs-extra": "^8.1.0",
158
160
  "husky": "^3.1.0",
159
161
  "lodash.camelcase": "^4.3.0",
@@ -162,22 +164,24 @@
162
164
  "postcss-cli": "^9.0.2",
163
165
  "postcss-import": "^14.0.2",
164
166
  "prettier": "^2.2.1",
165
- "react": "^16.11.0",
167
+ "react": "^18.2.0",
166
168
  "react-docgen-typescript-loader": "^3.6.0",
167
- "react-dom": "^16.11.0",
168
- "react-is": "^16.12.0",
169
+ "react-dom": "^18.2.0",
170
+ "react-is": "^18.2.0",
169
171
  "regenerator-runtime": "^0.13.3",
172
+ "remark-gfm": "^4.0.0",
170
173
  "semantic-release": "^19.0.2",
174
+ "storybook": "^7.6.3",
171
175
  "style-dictionary": "^3.1.1",
172
176
  "tailwindcss": "^3.0.23",
173
177
  "ts-loader": "^6.2.1",
174
- "typescript": "^4.2.3",
175
- "webpack": "^5.0.0",
178
+ "typescript": "^5.3.2",
179
+ "webpack": "^5.89.0",
176
180
  "webpack-bundle-analyzer": "^4.5.0"
177
181
  },
178
182
  "peerDependencies": {
179
- "react": "^16.11.0",
180
- "react-dom": "^16.11.0"
183
+ "react": "^18.2.0",
184
+ "react-dom": "^18.2.0"
181
185
  },
182
186
  "browserslist": [
183
187
  ">0.2%",
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import { BoxProps } from "../Box";
2
- export declare const Absolute: (props: BoxProps) => JSX.Element;
3
+ export declare const Absolute: (props: BoxProps) => React.JSX.Element;
@@ -9,6 +9,6 @@ const classnames_1 = __importDefault(require("classnames"));
9
9
  const Box_1 = require("../Box");
10
10
  const Absolute = (props) => {
11
11
  const { className, ...rest } = props;
12
- return react_1.default.createElement(Box_1.Box, Object.assign({ className: classnames_1.default("absolute", className) }, rest));
12
+ return react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)("absolute", className), ...rest });
13
13
  };
14
14
  exports.Absolute = Absolute;
@@ -3,49 +3,47 @@ import { BoxProps } from "../Box";
3
3
  import { StackProps } from "../Stack";
4
4
  import { IconProps } from "../Icon";
5
5
  import type { AccordionOwnProps, AccordionItemOwnProps, AccordionDisclosureProps, AccordionGroupOwnProps } from "./types";
6
- declare type AccordionGroupChildProps = {
6
+ type AccordionGroupChildProps = {
7
7
  currentValue: string;
8
8
  };
9
- declare type AccordionGroupChildFunction = {
9
+ type AccordionGroupChildFunction = {
10
10
  children(props: AccordionGroupChildProps): React.ReactElement;
11
11
  };
12
- declare type AccordionGroupChildrenUnionType = AccordionGroupChildFunction | {
12
+ type AccordionGroupChildrenUnionType = AccordionGroupChildFunction | {
13
13
  children: React.ReactNode;
14
14
  };
15
- export declare type AccordionGroupProps = AccordionGroupOwnProps & AccordionGroupChildrenUnionType & Pick<StackProps, "spacing" | "className">;
16
- export declare const AccordionGroup: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => JSX.Element;
17
- export declare type AccordionItemProps = AccordionItemOwnProps & BoxProps;
18
- export declare const AccordionItem: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => JSX.Element;
19
- declare type AccordionButtonChildProps = Omit<AccordionDisclosureProps, "onToggle">;
20
- declare type AccordionButtonChildFunction = {
21
- children(props: AccordionButtonChildProps): React.ReactElement;
15
+ export type AccordionGroupProps = AccordionGroupOwnProps & AccordionGroupChildrenUnionType & Pick<StackProps, "spacing" | "className">;
16
+ export declare const AccordionGroup: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => React.JSX.Element;
17
+ export type AccordionItemProps = AccordionItemOwnProps & BoxProps;
18
+ export declare const AccordionItem: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => React.JSX.Element;
19
+ type AccordionButtonChildProps = Omit<AccordionDisclosureProps, "onToggle">;
20
+ declare type AccordionButtonOwnProps = {
21
+ children: React.ReactNode | ((props: AccordionButtonChildProps) => React.ReactNode);
22
22
  };
23
- declare type AccordionButtonOwnProps = AccordionButtonChildFunction | {
24
- children: React.ReactNode;
25
- };
26
- export declare type AccordionButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & AccordionButtonOwnProps;
23
+ export interface AccordionButtonProps extends AccordionButtonOwnProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
24
+ }
27
25
  export declare const AccordionButton: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
- export declare type AccordionIconProps = {
26
+ export type AccordionIconProps = {
29
27
  className?: string;
30
28
  direction?: "up" | "down" | "left" | "right";
31
29
  disabled?: boolean;
32
30
  } & Pick<IconProps, "color">;
33
- export declare const AccordionIcon: ({ className, direction, color, disabled, }: AccordionIconProps) => JSX.Element;
34
- export declare type AccordionContentProps = {
31
+ export declare const AccordionIcon: ({ className, direction, color, disabled, }: AccordionIconProps) => React.JSX.Element;
32
+ export type AccordionContentProps = {
35
33
  children: React.ReactNode;
36
34
  maxHeight?: string;
37
35
  style?: React.CSSProperties;
38
36
  className?: string;
39
37
  scrollClassName?: string;
40
38
  };
41
- export declare const AccordionContent: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => JSX.Element;
42
- export declare type AccordionProps = AccordionOwnProps & BoxProps;
39
+ export declare const AccordionContent: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => React.JSX.Element;
40
+ export type AccordionProps = AccordionOwnProps & BoxProps;
43
41
  export declare const Accordion: {
44
- (props: AccordionProps): JSX.Element;
45
- Group: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => JSX.Element;
46
- Item: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => JSX.Element;
42
+ (props: AccordionProps): React.JSX.Element;
43
+ Group: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => React.JSX.Element;
44
+ Item: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => React.JSX.Element;
47
45
  Button: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
48
- Icon: ({ className, direction, color, disabled, }: AccordionIconProps) => JSX.Element;
49
- Content: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => JSX.Element;
46
+ Icon: ({ className, direction, color, disabled, }: AccordionIconProps) => React.JSX.Element;
47
+ Content: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => React.JSX.Element;
50
48
  };
51
49
  export {};
@@ -1,14 +1,36 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.Accordion = exports.AccordionContent = exports.AccordionIcon = exports.AccordionButton = exports.AccordionItem = exports.AccordionGroup = void 0;
7
- const react_1 = __importDefault(require("react"));
30
+ const react_1 = __importStar(require("react"));
8
31
  const classnames_1 = __importDefault(require("classnames"));
9
- const renderprops_1 = require("react-spring/renderprops");
32
+ const web_1 = require("@react-spring/web");
10
33
  const component_size_1 = __importDefault(require("@rehooks/component-size"));
11
- const auto_id_1 = require("@reach/auto-id");
12
34
  const react_merge_refs_1 = __importDefault(require("react-merge-refs"));
13
35
  const utilities_1 = require("../../utilities");
14
36
  const hooks_1 = require("../../hooks");
@@ -19,7 +41,7 @@ const Stack_1 = require("../Stack");
19
41
  const Heading_1 = require("../Heading");
20
42
  const Icon_1 = require("../Icon");
21
43
  const context_1 = require("./context");
22
- const cn = utilities_1.bemHOF("Accordion");
44
+ const cn = (0, utilities_1.bemHOF)("Accordion");
23
45
  const AccordionGroup = ({ children, spacing = 0, defaultValue, disableAnimation, allowMultiple = true, allowToggle = true, className, ...rest }) => {
24
46
  const totalItems = react_1.default.Children.count(children);
25
47
  const [currentValue, setCurrentValue] = react_1.default.useState(defaultValue || "");
@@ -40,17 +62,17 @@ const AccordionGroup = ({ children, spacing = 0, defaultValue, disableAnimation,
40
62
  allowToggle,
41
63
  ]);
42
64
  return (react_1.default.createElement(context_1.AccordionGroupContext.Provider, { value: context },
43
- react_1.default.createElement(Stack_1.Stack, Object.assign({ orientation: types_1.ORIENTATION.VERTICAL, spacing: spacing, className: className }, rest), typeof children === "function" ? children({ currentValue }) : children)));
65
+ react_1.default.createElement(Stack_1.Stack, { orientation: types_1.ORIENTATION.VERTICAL, spacing: spacing, className: className, ...rest }, typeof children === "function" ? children({ currentValue }) : children)));
44
66
  };
45
67
  exports.AccordionGroup = AccordionGroup;
46
68
  const AccordionItem = ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }) => {
47
- const { defaultValue, currentValue, setCurrentValue, allowMultiple, allowToggle, } = context_1.useAccordionGroupContext();
69
+ const { defaultValue, currentValue, setCurrentValue, allowMultiple, allowToggle, } = (0, context_1.useAccordionGroupContext)();
48
70
  const hasDefaultValue = typeof defaultValue === "undefined" ? false : defaultValue === value;
49
71
  const defaultIsOpen = typeof defaultIsOpenProp === "undefined"
50
72
  ? hasDefaultValue
51
73
  : defaultIsOpenProp;
52
- const { isOpen, onToggle, onClose, onOpen } = hooks_1.useDisclosure(defaultIsOpen);
53
- const id = `accordion-${auto_id_1.useId()}`;
74
+ const { isOpen, onToggle, onClose, onOpen } = (0, hooks_1.useDisclosure)(defaultIsOpen);
75
+ const id = `accordion-${(0, react_1.useId)()}`;
54
76
  const buttonId = `${id}-button`;
55
77
  const contentId = `${id}-content`;
56
78
  const context = react_1.default.useMemo(() => ({
@@ -86,17 +108,17 @@ const AccordionItem = ({ value, defaultIsOpen: defaultIsOpenProp, children, clas
86
108
  }
87
109
  }, [allowMultiple, currentValue, value, onClose]);
88
110
  return (react_1.default.createElement(context_1.AccordionItemContext.Provider, { value: context },
89
- react_1.default.createElement(Box_1.Box, Object.assign({ "data-component": "accordion", className: classnames_1.default(cn(), className, {
111
+ react_1.default.createElement(Box_1.Box, { "data-component": "accordion", className: (0, classnames_1.default)(cn(), className, {
90
112
  [cn({ m: "isOpen" })]: isOpen,
91
- }) }, rest), children)));
113
+ }), ...rest }, children)));
92
114
  };
93
115
  exports.AccordionItem = AccordionItem;
94
116
  exports.AccordionButton = react_1.default.forwardRef((props, forwardedRef) => {
95
117
  const { children, className, onClick, disabled = false, ...rest } = props;
96
- const { buttonId, contentId, isOpen, onToggle, onClose, onOpen, value, setCurrentValue, allowToggle, } = context_1.useAccordionItemContext();
118
+ const { buttonId, contentId, isOpen, onToggle, onClose, onOpen, value, setCurrentValue, allowToggle, } = (0, context_1.useAccordionItemContext)();
97
119
  const buttonRef = react_1.default.useRef(null);
98
- const ref = react_merge_refs_1.default([forwardedRef, buttonRef]);
99
- return (react_1.default.createElement("button", Object.assign({ ref: ref, type: "button", className: className, id: buttonId, "aria-controls": contentId, "aria-expanded": isOpen, "aria-disabled": disabled, disabled: disabled, onClick: (event) => {
120
+ const ref = (0, react_merge_refs_1.default)([forwardedRef, buttonRef]);
121
+ return (react_1.default.createElement("button", { ref: ref, type: "button", className: className, id: buttonId, "aria-controls": contentId, "aria-expanded": isOpen, "aria-disabled": disabled, disabled: disabled, onClick: (event) => {
100
122
  event.stopPropagation();
101
123
  if (onClick) {
102
124
  onClick(event);
@@ -110,7 +132,7 @@ exports.AccordionButton = react_1.default.forwardRef((props, forwardedRef) => {
110
132
  if (onOpen && !allowToggle) {
111
133
  onOpen();
112
134
  }
113
- } }, rest), typeof children === "function"
135
+ }, ...rest }, typeof children === "function"
114
136
  ? children({ isOpen, onClose, onOpen })
115
137
  : children));
116
138
  });
@@ -121,44 +143,45 @@ const AccordionIcon = ({ className, direction = "down", color, disabled = false,
121
143
  left: Icon_1.ICON_TYPE.CHEVRON_LEFT,
122
144
  right: Icon_1.ICON_TYPE.CHEVRON_RIGHT,
123
145
  };
124
- return (react_1.default.createElement(Icon_1.Icon, { className: classnames_1.default([cn({ e: "icon" }), className]), "data-direction": disabled ? undefined : direction, icon: icon[direction], color: color }));
146
+ return (react_1.default.createElement(Icon_1.Icon, { className: (0, classnames_1.default)([cn({ e: "icon" }), className]), "data-direction": disabled ? undefined : direction, icon: icon[direction], color: color }));
125
147
  };
126
148
  exports.AccordionIcon = AccordionIcon;
127
149
  const AccordionContent = ({ children, maxHeight, style, className, scrollClassName, ...rest }) => {
128
- const { disableAnimation } = context_1.useAccordionGroupContext();
129
- const { buttonId, contentId, defaultIsOpen, isOpen, } = context_1.useAccordionItemContext();
150
+ const { buttonId, contentId, defaultIsOpen, isOpen, } = (0, context_1.useAccordionItemContext)();
130
151
  const [childrenRef, setChildrenRef] = react_1.default.useState({ current: null });
131
152
  const onRefChange = react_1.default.useCallback((node) => {
132
153
  if (node !== null) {
133
154
  setChildrenRef({ current: node });
134
155
  }
135
156
  }, []);
136
- const { height } = component_size_1.default(childrenRef);
137
- const heightObj = { height };
138
157
  const [enableTransition, setEnableTransition] = react_1.default.useState(!defaultIsOpen);
139
- return (react_1.default.createElement(renderprops_1.Transition, { items: isOpen, from: { height: 0, opacity: 0 }, enter: { height, opacity: 1 }, leave: { height: 0, opacity: 0 }, update: heightObj, onRest: () => {
158
+ const { height: componentHeight } = (0, component_size_1.default)(childrenRef);
159
+ const { height } = (0, web_1.useSpring)({
160
+ height: isOpen ? componentHeight : 0,
161
+ immediate: !enableTransition,
162
+ onRest: () => {
140
163
  if (defaultIsOpen && isOpen) {
141
164
  setEnableTransition(true);
142
165
  }
143
- }, immediate: disableAnimation || !enableTransition }, (show) => show
144
- ? (styles) => (react_1.default.createElement(Box_1.Box, Object.assign({ className: classnames_1.default("overflow-hidden box-content", className), style: { ...styles, ...style }, "aria-labelledby": buttonId, id: contentId, role: "region" }, rest),
145
- react_1.default.createElement(Box_1.Box, { ref: onRefChange, className: classnames_1.default(maxHeight && "overflow-y-auto", scrollClassName), style: maxHeight ? { maxHeight } : undefined }, children)))
146
- : null));
166
+ },
167
+ });
168
+ return (react_1.default.createElement(web_1.animated.div, { className: (0, classnames_1.default)("overflow-hidden box-content", className), style: { ...style, height }, "aria-labelledby": buttonId, id: contentId, role: "region", ...rest },
169
+ react_1.default.createElement(Box_1.Box, { ref: onRefChange, className: (0, classnames_1.default)(maxHeight && "overflow-y-auto"), style: maxHeight ? { maxHeight } : undefined }, children)));
147
170
  };
148
171
  exports.AccordionContent = AccordionContent;
149
172
  const Accordion = (props) => {
150
173
  const { title, isActive, maxHeight, children, iconSlot, className, removePadding, ...rest } = props;
151
- return (react_1.default.createElement(exports.AccordionItem, Object.assign({ className: className }, rest),
174
+ return (react_1.default.createElement(exports.AccordionItem, { className: className, ...rest },
152
175
  react_1.default.createElement(Heading_1.Heading.H5, null,
153
- react_1.default.createElement(exports.AccordionButton, { className: classnames_1.default(cn({ e: "button" }), {
176
+ react_1.default.createElement(exports.AccordionButton, { className: (0, classnames_1.default)(cn({ e: "button" }), {
154
177
  [cn({ e: "button", m: "isActive" })]: isActive,
155
178
  }) },
156
179
  react_1.default.createElement(Flex_1.Flex, { className: "items-center", as: "span" },
157
- iconSlot && (react_1.default.createElement(Box_1.Box, { className: classnames_1.default(cn({ e: "iconSlot" })), as: "span" }, iconSlot)),
180
+ iconSlot && (react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)(cn({ e: "iconSlot" })), as: "span" }, iconSlot)),
158
181
  title),
159
182
  react_1.default.createElement(Icon_1.Icon, { icon: Icon_1.ICON_TYPE.CHEVRON_DOWN, className: cn({ e: "chevronIcon" }) }))),
160
183
  react_1.default.createElement(exports.AccordionContent, { className: cn({ e: "content" }), maxHeight: maxHeight },
161
- react_1.default.createElement(Box_1.Box, { className: classnames_1.default(cn({ e: "children" }), !removePadding && cn({ e: "children", m: "padded" })) }, children))));
184
+ react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)(cn({ e: "children" }), !removePadding && cn({ e: "children", m: "padded" })) }, children))));
162
185
  };
163
186
  exports.Accordion = Accordion;
164
187
  exports.Accordion.Group = exports.AccordionGroup;
@@ -1,13 +1,13 @@
1
1
  import { Context } from "react";
2
2
  import type { AccordionGroupOwnProps, AccordionItemOwnProps, AccordionDisclosureProps } from "./types";
3
- declare type AccordionGroupContextType = {
3
+ type AccordionGroupContextType = {
4
4
  totalItems?: number;
5
5
  currentValue?: string;
6
6
  setCurrentValue?(value: string): void;
7
7
  } & AccordionGroupOwnProps;
8
8
  export declare const AccordionGroupContext: Context<AccordionGroupContextType>;
9
9
  export declare function useAccordionGroupContext(): AccordionGroupContextType;
10
- declare type AccordionItemContextType = AccordionItemOwnProps & AccordionDisclosureProps & {
10
+ type AccordionItemContextType = AccordionItemOwnProps & AccordionDisclosureProps & {
11
11
  buttonId: string;
12
12
  contentId: string;
13
13
  currentValue?: string;
@@ -11,9 +11,9 @@ const defaultGroupContext = {
11
11
  allowMultiple: true,
12
12
  allowToggle: true,
13
13
  };
14
- exports.AccordionGroupContext = react_1.createContext(defaultGroupContext);
14
+ exports.AccordionGroupContext = (0, react_1.createContext)(defaultGroupContext);
15
15
  function useAccordionGroupContext() {
16
- const context = react_1.useContext(exports.AccordionGroupContext) || {
16
+ const context = (0, react_1.useContext)(exports.AccordionGroupContext) || {
17
17
  ...defaultGroupContext,
18
18
  };
19
19
  return context;
@@ -32,9 +32,9 @@ const defaultContext = {
32
32
  allowMultiple: true,
33
33
  allowToggle: true,
34
34
  };
35
- exports.AccordionItemContext = react_1.createContext(defaultContext);
35
+ exports.AccordionItemContext = (0, react_1.createContext)(defaultContext);
36
36
  function useAccordionItemContext() {
37
- const context = react_1.useContext(exports.AccordionItemContext) || {
37
+ const context = (0, react_1.useContext)(exports.AccordionItemContext) || {
38
38
  ...defaultContext,
39
39
  };
40
40
  return context;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,20 +1,20 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { DisclosureProps } from "../../types";
3
- export declare type AccordionGroupOwnProps = {
3
+ export type AccordionGroupOwnProps = {
4
4
  defaultValue?: string;
5
5
  disableAnimation?: boolean;
6
6
  allowMultiple?: boolean;
7
7
  allowToggle?: boolean;
8
8
  };
9
- export declare type AccordionItemOwnProps = {
9
+ export type AccordionItemOwnProps = {
10
10
  defaultIsOpen?: boolean;
11
11
  value?: string;
12
12
  };
13
- export declare type AccordionOwnProps = Pick<AccordionItemOwnProps, "defaultIsOpen"> & {
13
+ export type AccordionOwnProps = Pick<AccordionItemOwnProps, "defaultIsOpen"> & {
14
14
  title: string;
15
15
  isActive?: boolean;
16
16
  maxHeight?: string;
17
17
  iconSlot?: ReactNode;
18
18
  removePadding?: ReactNode;
19
19
  };
20
- export declare type AccordionDisclosureProps = DisclosureProps;
20
+ export type AccordionDisclosureProps = DisclosureProps;
@@ -2,9 +2,9 @@ import React, { ReactNode } from "react";
2
2
  import { COMPLY_COMPANY_NAME, PRODUCT_ID } from "../../types";
3
3
  import { BoxProps } from "../Box";
4
4
  import { LinkProps } from "../Link";
5
- declare type NavComponent = ReactNode;
6
- declare type UserComponent = ReactNode;
7
- declare type OrganizationComponent = ReactNode;
5
+ type NavComponent = ReactNode;
6
+ type UserComponent = ReactNode;
7
+ type OrganizationComponent = ReactNode;
8
8
  export interface AppbarProps extends BoxProps {
9
9
  company?: COMPLY_COMPANY_NAME;
10
10
  currentProduct?: PRODUCT_ID;
@@ -16,9 +16,9 @@ export interface AppbarProps extends BoxProps {
16
16
  isProductMenuDisabled?: boolean;
17
17
  }
18
18
  export declare const Appbar: {
19
- (props: AppbarProps): JSX.Element;
20
- Tabs: (props: BoxProps) => JSX.Element;
21
- Tab: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<{
19
+ (props: AppbarProps): React.JSX.Element;
20
+ Tabs: (props: BoxProps) => React.JSX.Element;
21
+ Tab: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<{
22
22
  children: React.ReactNode;
23
23
  as?: any;
24
24
  active?: boolean | undefined;
@@ -26,28 +26,28 @@ export declare const Appbar: {
26
26
  User: ({ name, avatar }: {
27
27
  avatar: React.ReactElement<import("../Avatar").AvatarProps, string | React.JSXElementConstructor<any>>;
28
28
  name?: string | undefined;
29
- }) => JSX.Element;
29
+ }) => React.JSX.Element;
30
30
  UserDropdown: ({ name, avatar, children, onClose, }: {
31
31
  avatar: React.ReactElement<import("../Avatar").AvatarProps, string | React.JSXElementConstructor<any>>;
32
32
  children: React.ReactNode;
33
33
  name?: string | undefined;
34
34
  onClose?: (() => void) | undefined;
35
- }) => JSX.Element;
35
+ }) => React.JSX.Element;
36
36
  UserDropdownMenu: ({ children, }: {
37
37
  children: React.ReactNode;
38
- }) => JSX.Element;
38
+ }) => React.JSX.Element;
39
39
  UserDropdownMenuItem: ({ children, onClick, as, className, ...rest }: {
40
40
  [key: string]: any;
41
41
  as?: any;
42
42
  onClick?: (() => void) | undefined;
43
43
  selected?: boolean | undefined;
44
- }) => JSX.Element;
45
- LogInButton: (props: LinkProps) => JSX.Element;
46
- ClaimProfileButton: ({ onClick }: import("../Button").ButtonProps) => JSX.Element;
44
+ }) => React.JSX.Element;
45
+ LogInButton: (props: LinkProps) => React.JSX.Element;
46
+ ClaimProfileButton: ({ onClick }: import("../Button").ButtonProps) => React.JSX.Element;
47
47
  Organizations: ({ children, className, }: {
48
48
  children: React.ReactNode;
49
49
  className?: string | undefined;
50
- }) => JSX.Element;
50
+ }) => React.JSX.Element;
51
51
  Organization: ({ name, status, logoSrc, hideLogo, onClick, className, }: {
52
52
  name: string;
53
53
  status?: ("claimed" | "unclaimed" | "pending") | undefined;
@@ -55,7 +55,7 @@ export declare const Appbar: {
55
55
  hideLogo?: boolean | undefined;
56
56
  onClick?: (() => void) | undefined;
57
57
  className?: string | undefined;
58
- }) => JSX.Element;
59
- UserAvatar: (props: import("../Avatar").AvatarProps) => JSX.Element;
58
+ }) => React.JSX.Element;
59
+ UserAvatar: (props: import("../Avatar").AvatarProps) => React.JSX.Element;
60
60
  };
61
61
  export {};
@@ -21,8 +21,8 @@ const context_1 = require("./context");
21
21
  const Appbar = (props) => {
22
22
  const { company = types_1.COMPLY_COMPANY_NAME.CONVEYOR, logoProps, nav, user, organization, currentProduct, className, isDemoEnvironment, isProductMenuDisabled, ...rest } = props;
23
23
  return (react_1.default.createElement(context_1.AppbarContext.Provider, { value: { company } },
24
- react_1.default.createElement(Box_1.Box, Object.assign({ className: classnames_1.default(config_1.cn(), className, { isDemoEnvironment }) }, rest),
25
- react_1.default.createElement(AppbarLogo_1.AppbarLogo, Object.assign({}, logoProps)),
24
+ react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)((0, config_1.cn)(), className, { isDemoEnvironment }), ...rest },
25
+ react_1.default.createElement(AppbarLogo_1.AppbarLogo, { ...logoProps }),
26
26
  currentProduct && (react_1.default.createElement(AppbarProductMenu_1.AppbarProductMenu, { currentProductId: currentProduct, disabled: isProductMenuDisabled })),
27
27
  nav,
28
28
  (organization || user) && (react_1.default.createElement(Box_1.Box, { className: "h-full ml-auto mr-3" },
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import { ButtonProps } from "../Button";
2
- export declare const AppbarClaimProfileButton: ({ onClick }: ButtonProps) => JSX.Element;
3
+ export declare const AppbarClaimProfileButton: ({ onClick }: ButtonProps) => React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare const AppbarDropdownIcon: () => JSX.Element;
1
+ import React from "react";
2
+ export declare const AppbarDropdownIcon: () => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import { LinkProps } from "../Link";
2
- export declare const AppbarLogInButton: (props: LinkProps) => JSX.Element;
3
+ export declare const AppbarLogInButton: (props: LinkProps) => React.JSX.Element;
@@ -9,7 +9,7 @@ const classnames_1 = __importDefault(require("classnames"));
9
9
  const Link_1 = require("../Link");
10
10
  const AppbarLogInButton = (props) => {
11
11
  const { onClick, href, ...rest } = props;
12
- return (react_1.default.createElement(Link_1.Link, Object.assign({ className: classnames_1.default([
12
+ return (react_1.default.createElement(Link_1.Link, { className: (0, classnames_1.default)([
13
13
  "py-1",
14
14
  "px-2",
15
15
  "text-gray-500",
@@ -20,6 +20,6 @@ const AppbarLogInButton = (props) => {
20
20
  "hover:text-white",
21
21
  "focus:text-white",
22
22
  "focus:bg-gray-800",
23
- ]), noStyles: true }, rest), "Log in"));
23
+ ]), noStyles: true, ...rest }, "Log in"));
24
24
  };
25
25
  exports.AppbarLogInButton = AppbarLogInButton;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import { LinkProps } from "../Link";
2
- export declare const AppbarLogo: (props: LinkProps) => JSX.Element;
3
+ export declare const AppbarLogo: (props: LinkProps) => React.JSX.Element;
@@ -14,7 +14,7 @@ const config_1 = require("./config");
14
14
  const context_1 = require("./context");
15
15
  const types_1 = require("../../types");
16
16
  const AppbarLogo = (props) => {
17
- const { company } = context_1.useAppbarContext();
17
+ const { company } = (0, context_1.useAppbarContext)();
18
18
  const { href, onClick, className, noStyles, ...rest } = props;
19
19
  const logo = () => {
20
20
  switch (company) {
@@ -26,6 +26,6 @@ const AppbarLogo = (props) => {
26
26
  return react_1.default.createElement(ConveyorLogo_1.ConveyorLogo, { theme: types_1.THEME.BRAND, height: 20 });
27
27
  }
28
28
  };
29
- return (react_1.default.createElement(Flex_1.Flex, { className: config_1.cn({ e: "logo" }) }, href || onClick ? (react_1.default.createElement(Link_1.Link, Object.assign({ className: classnames_1.default(config_1.cn({ e: "logoLink" }), className), href: href, onClick: onClick, noStyles: true }, rest), logo())) : (react_1.default.createElement(react_1.default.Fragment, null, logo()))));
29
+ return (react_1.default.createElement(Flex_1.Flex, { className: (0, config_1.cn)({ e: "logo" }) }, href || onClick ? (react_1.default.createElement(Link_1.Link, { className: (0, classnames_1.default)((0, config_1.cn)({ e: "logoLink" }), className), href: href, onClick: onClick, noStyles: true, ...rest }, logo())) : (react_1.default.createElement(react_1.default.Fragment, null, logo()))));
30
30
  };
31
31
  exports.AppbarLogo = AppbarLogo;