@rocket.chat/fuselage 0.80.0 → 0.82.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 (261) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +3 -0
  2. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  3. package/dist/components/AudioPlayer/AudioPlayer.d.ts +6 -3
  4. package/dist/components/AudioPlayer/AudioPlayer.d.ts.map +1 -1
  5. package/dist/components/AudioPlayer/AudioPlayerControls.d.ts +28 -0
  6. package/dist/components/AudioPlayer/AudioPlayerControls.d.ts.map +1 -0
  7. package/dist/components/AudioPlayer/index.d.ts +1 -0
  8. package/dist/components/AudioPlayer/index.d.ts.map +1 -1
  9. package/dist/components/AutoComplete/AutoComplete.d.ts +6 -4
  10. package/dist/components/AutoComplete/AutoComplete.d.ts.map +1 -1
  11. package/dist/components/Badge/Badge.d.ts +3 -0
  12. package/dist/components/Badge/Badge.d.ts.map +1 -1
  13. package/dist/components/Box/Box.d.ts +6 -3
  14. package/dist/components/Box/Box.d.ts.map +1 -1
  15. package/dist/components/Box/StylingBox.d.ts +6 -0
  16. package/dist/components/Box/StylingBox.d.ts.map +1 -1
  17. package/dist/components/Button/Button.d.ts +7 -20
  18. package/dist/components/Button/Button.d.ts.map +1 -1
  19. package/dist/components/Button/IconButton.d.ts +1 -10
  20. package/dist/components/Button/IconButton.d.ts.map +1 -1
  21. package/dist/components/Button/index.d.ts +0 -1
  22. package/dist/components/Button/index.d.ts.map +1 -1
  23. package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -10
  24. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  25. package/dist/components/Callout/Callout.d.ts +3 -0
  26. package/dist/components/Callout/Callout.d.ts.map +1 -1
  27. package/dist/components/CheckBox/CheckBox.d.ts +3 -6
  28. package/dist/components/CheckBox/CheckBox.d.ts.map +1 -1
  29. package/dist/components/CodeSnippet/CodeSnippet.d.ts +7 -0
  30. package/dist/components/CodeSnippet/CodeSnippet.d.ts.map +1 -1
  31. package/dist/components/Contextualbar/Contextualbar.d.ts +7 -2
  32. package/dist/components/Contextualbar/Contextualbar.d.ts.map +1 -1
  33. package/dist/components/Contextualbar/ContextualbarContent.d.ts +4 -2
  34. package/dist/components/Contextualbar/ContextualbarContent.d.ts.map +1 -1
  35. package/dist/components/Contextualbar/ContextualbarEmptyContent.d.ts +4 -6
  36. package/dist/components/Contextualbar/ContextualbarEmptyContent.d.ts.map +1 -1
  37. package/dist/components/Contextualbar/ContextualbarFooter.d.ts +4 -2
  38. package/dist/components/Contextualbar/ContextualbarFooter.d.ts.map +1 -1
  39. package/dist/components/Contextualbar/ContextualbarSection.d.ts +4 -2
  40. package/dist/components/Contextualbar/ContextualbarSection.d.ts.map +1 -1
  41. package/dist/components/ContextualbarV2/Contextualbar.d.ts +7 -2
  42. package/dist/components/ContextualbarV2/Contextualbar.d.ts.map +1 -1
  43. package/dist/components/ContextualbarV2/ContextualbarContent.d.ts +4 -2
  44. package/dist/components/ContextualbarV2/ContextualbarContent.d.ts.map +1 -1
  45. package/dist/components/ContextualbarV2/ContextualbarEmptyContent.d.ts +2 -5
  46. package/dist/components/ContextualbarV2/ContextualbarEmptyContent.d.ts.map +1 -1
  47. package/dist/components/ContextualbarV2/ContextualbarFooter.d.ts +4 -2
  48. package/dist/components/ContextualbarV2/ContextualbarFooter.d.ts.map +1 -1
  49. package/dist/components/ContextualbarV2/ContextualbarSection.d.ts +4 -2
  50. package/dist/components/ContextualbarV2/ContextualbarSection.d.ts.map +1 -1
  51. package/dist/components/Dropdown/Dropdown.d.ts +3 -3
  52. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
  53. package/dist/components/Dropdown/DropdownDesktop.d.ts +3 -3
  54. package/dist/components/Dropdown/DropdownDesktop.d.ts.map +1 -1
  55. package/dist/components/Dropdown/DropdownDesktopWrapper.d.ts +3 -3
  56. package/dist/components/Dropdown/DropdownDesktopWrapper.d.ts.map +1 -1
  57. package/dist/components/Dropdown/DropdownMobile.d.ts +3 -3
  58. package/dist/components/Dropdown/DropdownMobile.d.ts.map +1 -1
  59. package/dist/components/EmailInput/EmailInput.d.ts +5 -9
  60. package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
  61. package/dist/components/Field/Field.d.ts +3 -0
  62. package/dist/components/Field/Field.d.ts.map +1 -1
  63. package/dist/components/Field/FieldLabel.d.ts +1 -5
  64. package/dist/components/Field/FieldLabel.d.ts.map +1 -1
  65. package/dist/components/FieldGroup/FieldGroup.d.ts +3 -0
  66. package/dist/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  67. package/dist/components/Flex/index.d.ts +0 -6
  68. package/dist/components/Flex/index.d.ts.map +1 -1
  69. package/dist/components/Icon/Icon.d.ts +3 -5
  70. package/dist/components/Icon/Icon.d.ts.map +1 -1
  71. package/dist/components/InputBox/Input.d.ts +3 -2
  72. package/dist/components/InputBox/Input.d.ts.map +1 -1
  73. package/dist/components/InputBox/InputBox.d.ts +9 -15
  74. package/dist/components/InputBox/InputBox.d.ts.map +1 -1
  75. package/dist/components/InputBox/InputBoxAddon.d.ts +6 -2
  76. package/dist/components/InputBox/InputBoxAddon.d.ts.map +1 -1
  77. package/dist/components/Label/Label.d.ts +6 -8
  78. package/dist/components/Label/Label.d.ts.map +1 -1
  79. package/dist/components/Margins/Margins.d.ts +3 -0
  80. package/dist/components/Margins/Margins.d.ts.map +1 -1
  81. package/dist/components/Menu/Menu.d.ts +3 -0
  82. package/dist/components/Menu/Menu.d.ts.map +1 -1
  83. package/dist/components/Menu/MenuOption.d.ts +4 -4
  84. package/dist/components/Menu/MenuOption.d.ts.map +1 -1
  85. package/dist/components/Message/Message.d.ts +3 -11
  86. package/dist/components/Message/Message.d.ts.map +1 -1
  87. package/dist/components/Message/MessageBlock.d.ts +4 -5
  88. package/dist/components/Message/MessageBlock.d.ts.map +1 -1
  89. package/dist/components/Message/MessageNameContainer.d.ts +3 -3
  90. package/dist/components/Message/MessageNameContainer.d.ts.map +1 -1
  91. package/dist/components/Message/MessageReactions/MessageReaction.d.ts +3 -8
  92. package/dist/components/Message/MessageReactions/MessageReaction.d.ts.map +1 -1
  93. package/dist/components/Message/MessageReactions/MessageReactions.d.ts +3 -3
  94. package/dist/components/Message/MessageReactions/MessageReactions.d.ts.map +1 -1
  95. package/dist/components/Message/MessageStatusIndicator/MessageStatusIndicator.d.ts +3 -3
  96. package/dist/components/Message/MessageStatusIndicator/MessageStatusIndicator.d.ts.map +1 -1
  97. package/dist/components/Message/MessageToolbar/MessageToolbar.d.ts +1 -8
  98. package/dist/components/Message/MessageToolbar/MessageToolbar.d.ts.map +1 -1
  99. package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts +3 -11
  100. package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts.map +1 -1
  101. package/dist/components/Message/MessageToolbar/MessageToolbarWrapper.d.ts +3 -5
  102. package/dist/components/Message/MessageToolbar/MessageToolbarWrapper.d.ts.map +1 -1
  103. package/dist/components/Modal/Modal.d.ts +4 -7
  104. package/dist/components/Modal/Modal.d.ts.map +1 -1
  105. package/dist/components/MultiSelect/MultiSelect.d.ts +9 -24
  106. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  107. package/dist/components/MultiSelect/MultiSelectAnchor.d.ts +4 -3
  108. package/dist/components/MultiSelect/MultiSelectAnchor.d.ts.map +1 -1
  109. package/dist/components/MultiSelect/MultiSelectFiltered.d.ts +1 -25
  110. package/dist/components/MultiSelect/MultiSelectFiltered.d.ts.map +1 -1
  111. package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts +3 -15
  112. package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts.map +1 -1
  113. package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts +7 -0
  114. package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts.map +1 -0
  115. package/dist/components/NavBar/NavBarGroup.d.ts +1 -8
  116. package/dist/components/NavBar/NavBarGroup.d.ts.map +1 -1
  117. package/dist/components/NavBar/NavBarItem.d.ts +3 -3
  118. package/dist/components/NavBar/NavBarItem.d.ts.map +1 -1
  119. package/dist/components/NavBar/NavBarSection.d.ts.map +1 -1
  120. package/dist/components/NumberInput/NumberInput.d.ts +5 -2
  121. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  122. package/dist/components/Option/Option.d.ts +9 -6
  123. package/dist/components/Option/Option.d.ts.map +1 -1
  124. package/dist/components/Options/OptionContainer.d.ts +3 -2
  125. package/dist/components/Options/OptionContainer.d.ts.map +1 -1
  126. package/dist/components/Options/OptionType.d.ts +15 -1
  127. package/dist/components/Options/OptionType.d.ts.map +1 -1
  128. package/dist/components/Options/Options.d.ts +8 -5
  129. package/dist/components/Options/Options.d.ts.map +1 -1
  130. package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +9 -26
  131. package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
  132. package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -1
  133. package/dist/components/PaginatedSelect/PaginatedMultiSelectFiltered.d.ts.map +1 -1
  134. package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts +2 -1
  135. package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts.map +1 -1
  136. package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts +3 -1
  137. package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts.map +1 -1
  138. package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts +19 -0
  139. package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts.map +1 -1
  140. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
  141. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
  142. package/dist/components/{Position → PositionAnimated}/Position.d.ts +2 -2
  143. package/dist/components/PositionAnimated/Position.d.ts.map +1 -0
  144. package/dist/components/PositionAnimated/PositionAnimated.d.ts +9 -3
  145. package/dist/components/PositionAnimated/PositionAnimated.d.ts.map +1 -1
  146. package/dist/components/ProgressBar/ProgressBar.d.ts +6 -9
  147. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  148. package/dist/components/RadioButton/RadioButton.d.ts +3 -5
  149. package/dist/components/RadioButton/RadioButton.d.ts.map +1 -1
  150. package/dist/components/Scrollable/Scrollable.d.ts +3 -0
  151. package/dist/components/Scrollable/Scrollable.d.ts.map +1 -1
  152. package/dist/components/SearchInput/SearchInput.d.ts +5 -9
  153. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  154. package/dist/components/Select/Select.d.ts +6 -10
  155. package/dist/components/Select/Select.d.ts.map +1 -1
  156. package/dist/components/Select/SelectAddon.d.ts +3 -1
  157. package/dist/components/Select/SelectAddon.d.ts.map +1 -1
  158. package/dist/components/Select/SelectAria.d.ts +3 -9
  159. package/dist/components/Select/SelectAria.d.ts.map +1 -1
  160. package/dist/components/Select/SelectFiltered.d.ts +3 -20
  161. package/dist/components/Select/SelectFiltered.d.ts.map +1 -1
  162. package/dist/components/Select/SelectFilteredAnchor.d.ts +3 -13
  163. package/dist/components/Select/SelectFilteredAnchor.d.ts.map +1 -1
  164. package/dist/components/Select/SelectFilteredContext.d.ts +7 -0
  165. package/dist/components/Select/SelectFilteredContext.d.ts.map +1 -0
  166. package/dist/components/Select/SelectFocus.d.ts +3 -1
  167. package/dist/components/Select/SelectFocus.d.ts.map +1 -1
  168. package/dist/components/Select/SelectLegacy.d.ts +3 -16
  169. package/dist/components/Select/SelectLegacy.d.ts.map +1 -1
  170. package/dist/components/Select/SelectTrigger.d.ts +5 -3
  171. package/dist/components/Select/SelectTrigger.d.ts.map +1 -1
  172. package/dist/components/Sidebar/Item.d.ts +6 -29
  173. package/dist/components/Sidebar/Item.d.ts.map +1 -1
  174. package/dist/components/Sidebar/Section.d.ts +1 -3
  175. package/dist/components/Sidebar/Section.d.ts.map +1 -1
  176. package/dist/components/Sidebar/Sidebar.d.ts +1 -56
  177. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  178. package/dist/components/Sidebar/SidebarActions.d.ts +4 -19
  179. package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
  180. package/dist/components/Sidebar/TopBar/TopBar.d.ts +3 -0
  181. package/dist/components/Sidebar/TopBar/TopBar.d.ts.map +1 -1
  182. package/dist/components/Sidebar/TopBar/TopBarAction.d.ts +4 -10
  183. package/dist/components/Sidebar/TopBar/TopBarAction.d.ts.map +1 -1
  184. package/dist/components/Sidebar/TopBar/TopBarActions.d.ts +4 -8
  185. package/dist/components/Sidebar/TopBar/TopBarActions.d.ts.map +1 -1
  186. package/dist/components/Sidebar/TopBar/index.d.ts +0 -29
  187. package/dist/components/Sidebar/TopBar/index.d.ts.map +1 -1
  188. package/dist/components/Sidebar/index.d.ts +1 -1
  189. package/dist/components/Sidebar/index.d.ts.map +1 -1
  190. package/dist/components/SidebarV2/Sidebar.d.ts +4 -6
  191. package/dist/components/SidebarV2/Sidebar.d.ts.map +1 -1
  192. package/dist/components/SidebarV2/SidebarAction.d.ts +3 -11
  193. package/dist/components/SidebarV2/SidebarAction.d.ts.map +1 -1
  194. package/dist/components/SidebarV2/SidebarActions.d.ts +1 -8
  195. package/dist/components/SidebarV2/SidebarActions.d.ts.map +1 -1
  196. package/dist/components/SidebarV2/SidebarCollapseGroup.d.ts +5 -3
  197. package/dist/components/SidebarV2/SidebarCollapseGroup.d.ts.map +1 -1
  198. package/dist/components/SidebarV2/SidebarItem/SidebarListItem.d.ts +5 -3
  199. package/dist/components/SidebarV2/SidebarItem/SidebarListItem.d.ts.map +1 -1
  200. package/dist/components/Sidepanel/SidepanelList.d.ts +3 -3
  201. package/dist/components/Sidepanel/SidepanelList.d.ts.map +1 -1
  202. package/dist/components/Sidepanel/SidepanelListItem.d.ts +3 -3
  203. package/dist/components/Sidepanel/SidepanelListItem.d.ts.map +1 -1
  204. package/dist/components/Slider/Slider.d.ts +20 -4
  205. package/dist/components/Slider/Slider.d.ts.map +1 -1
  206. package/dist/components/StatusBullet/StatusBullet.d.ts +3 -0
  207. package/dist/components/StatusBullet/StatusBullet.d.ts.map +1 -1
  208. package/dist/components/Tabs/Tabs.d.ts +3 -6
  209. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  210. package/dist/components/Tabs/TabsItem.d.ts +3 -5
  211. package/dist/components/Tabs/TabsItem.d.ts.map +1 -1
  212. package/dist/components/Tag/Tag.d.ts +3 -0
  213. package/dist/components/Tag/Tag.d.ts.map +1 -1
  214. package/dist/components/TextAreaInput/TextAreaInput.d.ts +5 -9
  215. package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
  216. package/dist/components/TextInput/TextInput.d.ts +5 -9
  217. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  218. package/dist/components/Throbber/Throbber.d.ts +6 -6
  219. package/dist/components/Throbber/Throbber.d.ts.map +1 -1
  220. package/dist/components/Tile/Tile.d.ts +3 -2
  221. package/dist/components/Tile/Tile.d.ts.map +1 -1
  222. package/dist/components/ToastBar/ToastBar.d.ts +3 -0
  223. package/dist/components/ToastBar/ToastBar.d.ts.map +1 -1
  224. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -5
  225. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  226. package/dist/components/Tooltip/Tooltip.d.ts +3 -5
  227. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  228. package/dist/components/UrlInput/UrlInput.d.ts +2 -2
  229. package/dist/components/UrlInput/UrlInput.d.ts.map +1 -1
  230. package/dist/components/index.d.ts +0 -3
  231. package/dist/components/index.d.ts.map +1 -1
  232. package/dist/fuselage.css.map +1 -1
  233. package/dist/fuselage.development.js +629 -718
  234. package/dist/fuselage.development.js.map +1 -1
  235. package/dist/fuselage.production.js +15 -15
  236. package/dist/helpers/composeClassNames.d.ts +32 -0
  237. package/dist/helpers/composeClassNames.d.ts.map +1 -1
  238. package/dist/helpers/exhaustiveCheck.d.ts +27 -0
  239. package/dist/helpers/exhaustiveCheck.d.ts.map +1 -1
  240. package/dist/styleTokens.d.ts +1 -0
  241. package/dist/styleTokens.d.ts.map +1 -1
  242. package/package.json +5 -5
  243. package/dist/components/Button/ActionButton.d.ts +0 -31
  244. package/dist/components/Button/ActionButton.d.ts.map +0 -1
  245. package/dist/components/Position/Position.d.ts.map +0 -1
  246. package/dist/components/Position/index.d.ts +0 -2
  247. package/dist/components/Position/index.d.ts.map +0 -1
  248. package/dist/components/SelectInput/SelectInput.d.ts +0 -17
  249. package/dist/components/SelectInput/SelectInput.d.ts.map +0 -1
  250. package/dist/components/SelectInput/SelectInputOption.d.ts +0 -5
  251. package/dist/components/SelectInput/SelectInputOption.d.ts.map +0 -1
  252. package/dist/components/SelectInput/SelectInputPlaceholder.d.ts +0 -5
  253. package/dist/components/SelectInput/SelectInputPlaceholder.d.ts.map +0 -1
  254. package/dist/components/SelectInput/index.d.ts +0 -3
  255. package/dist/components/SelectInput/index.d.ts.map +0 -1
  256. package/dist/components/TelephoneInput/TelephoneInput.d.ts +0 -14
  257. package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +0 -1
  258. package/dist/components/TelephoneInput/index.d.ts +0 -2
  259. package/dist/components/TelephoneInput/index.d.ts.map +0 -1
  260. package/dist/helpers/isForwardRefType.d.ts +0 -3
  261. package/dist/helpers/isForwardRefType.d.ts.map +0 -1
@@ -2,17 +2,7 @@
2
2
 
3
3
  if (process.env.NODE_ENV !== "production") {
4
4
  (function() {
5
- (function webpackUniversalModuleDefinition(root, factory) {
6
- if(typeof exports === 'object' && typeof module === 'object')
7
- module.exports = factory(require("@rocket.chat/css-in-js"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/fuselage-tokens/colors.json"), require("@rocket.chat/fuselage-tokens/dist/badge.json"), require("@rocket.chat/fuselage-tokens/dist/button.json"), require("@rocket.chat/fuselage-tokens/dist/font.json"), require("@rocket.chat/fuselage-tokens/dist/shadow.json"), require("@rocket.chat/fuselage-tokens/dist/status.json"), require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"), require("@rocket.chat/fuselage-tokens/dist/stroke.json"), require("@rocket.chat/fuselage-tokens/dist/surface.json"), require("@rocket.chat/fuselage-tokens/typography.json"), require("@rocket.chat/icons"), require("@rocket.chat/memo"), require("invariant"), require("react"), require("react-aria"), require("react-dom"), require("react-is"), require("react-keyed-flatten-children"), require("react-stately"), require("react-virtuoso"), require("react/jsx-runtime"));
8
- else if(typeof define === 'function' && define.amd)
9
- define("RocketChatFuselage", ["@rocket.chat/css-in-js", "@rocket.chat/fuselage-hooks", "@rocket.chat/fuselage-tokens/colors.json", "@rocket.chat/fuselage-tokens/dist/badge.json", "@rocket.chat/fuselage-tokens/dist/button.json", "@rocket.chat/fuselage-tokens/dist/font.json", "@rocket.chat/fuselage-tokens/dist/shadow.json", "@rocket.chat/fuselage-tokens/dist/status.json", "@rocket.chat/fuselage-tokens/dist/statusBullet.json", "@rocket.chat/fuselage-tokens/dist/stroke.json", "@rocket.chat/fuselage-tokens/dist/surface.json", "@rocket.chat/fuselage-tokens/typography.json", "@rocket.chat/icons", "@rocket.chat/memo", "invariant", "react", "react-aria", "react-dom", "react-is", "react-keyed-flatten-children", "react-stately", "react-virtuoso", "react/jsx-runtime"], factory);
10
- else if(typeof exports === 'object')
11
- exports["RocketChatFuselage"] = factory(require("@rocket.chat/css-in-js"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/fuselage-tokens/colors.json"), require("@rocket.chat/fuselage-tokens/dist/badge.json"), require("@rocket.chat/fuselage-tokens/dist/button.json"), require("@rocket.chat/fuselage-tokens/dist/font.json"), require("@rocket.chat/fuselage-tokens/dist/shadow.json"), require("@rocket.chat/fuselage-tokens/dist/status.json"), require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"), require("@rocket.chat/fuselage-tokens/dist/stroke.json"), require("@rocket.chat/fuselage-tokens/dist/surface.json"), require("@rocket.chat/fuselage-tokens/typography.json"), require("@rocket.chat/icons"), require("@rocket.chat/memo"), require("invariant"), require("react"), require("react-aria"), require("react-dom"), require("react-is"), require("react-keyed-flatten-children"), require("react-stately"), require("react-virtuoso"), require("react/jsx-runtime"));
12
- else
13
- root["RocketChatFuselage"] = factory(root["@rocket.chat/css-in-js"], root["@rocket.chat/fuselage-hooks"], root["@rocket.chat/fuselage-tokens/colors.json"], root["@rocket.chat/fuselage-tokens/dist/badge.json"], root["@rocket.chat/fuselage-tokens/dist/button.json"], root["@rocket.chat/fuselage-tokens/dist/font.json"], root["@rocket.chat/fuselage-tokens/dist/shadow.json"], root["@rocket.chat/fuselage-tokens/dist/status.json"], root["@rocket.chat/fuselage-tokens/dist/statusBullet.json"], root["@rocket.chat/fuselage-tokens/dist/stroke.json"], root["@rocket.chat/fuselage-tokens/dist/surface.json"], root["@rocket.chat/fuselage-tokens/typography.json"], root["@rocket.chat/icons"], root["@rocket.chat/memo"], root["invariant"], root["react"], root["react-aria"], root["react-dom"], root["react-is"], root["react-keyed-flatten-children"], root["react-stately"], root["react-virtuoso"], root["react/jsx-runtime"]);
14
- })(self, (__WEBPACK_EXTERNAL_MODULE__rocket_chat_css_in_js__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_colors_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_badge_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_button_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_font_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_shadow_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_status_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_statusBullet_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_stroke_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_surface_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_typography_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_memo__, __WEBPACK_EXTERNAL_MODULE_invariant__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_aria__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_is__, __WEBPACK_EXTERNAL_MODULE_react_keyed_flatten_children__, __WEBPACK_EXTERNAL_MODULE_react_stately__, __WEBPACK_EXTERNAL_MODULE_react_virtuoso__, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__) => {
15
- return /******/ (() => { // webpackBootstrap
5
+ /******/ (() => { // webpackBootstrap
16
6
  /******/ "use strict";
17
7
  /******/ var __webpack_modules__ = ({
18
8
 
@@ -289,6 +279,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
289
279
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
290
280
  const composeClassNames_1 = __webpack_require__(/*! ../../helpers/composeClassNames */ "./src/helpers/composeClassNames.ts");
291
281
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
282
+ /**
283
+ * An `Accordion` allows users to toggle the display of sections of content.
284
+ */
292
285
  const Accordion = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.StylingBox, { ...props, children: (0, jsx_runtime_1.jsx)("div", { className: (0, composeClassNames_1.cx)((0, composeClassNames_1.cxx)('rcx-box')('full', 'animated'), 'rcx-accordion'), children: children }) }));
293
286
  exports["default"] = Accordion;
294
287
 
@@ -495,16 +488,16 @@ Object.defineProperty(exports, "AnimatedVisibility", ({ enumerable: true, get: f
495
488
  (__unused_webpack_module, exports, __webpack_require__) {
496
489
 
497
490
 
491
+ var __importDefault = (this && this.__importDefault) || function (mod) {
492
+ return (mod && mod.__esModule) ? mod : { "default": mod };
493
+ };
498
494
  Object.defineProperty(exports, "__esModule", ({ value: true }));
499
495
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
500
496
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
501
497
  const react_1 = __webpack_require__(/*! react */ "react");
502
498
  const __1 = __webpack_require__(/*! ../.. */ "./src/index.ts");
503
499
  const contexts_1 = __webpack_require__(/*! ../../contexts */ "./src/contexts/index.ts");
504
- const Slider_1 = __webpack_require__(/*! ../Slider */ "./src/components/Slider/index.ts");
505
- const getMaskTime = (durationTime) => new Date(durationTime * 1000)
506
- .toISOString()
507
- .slice(durationTime > 60 * 60 ? 11 : 14, 19);
500
+ const AudioPlayerControls_1 = __importDefault(__webpack_require__(/*! ./AudioPlayerControls */ "./src/components/AudioPlayer/AudioPlayerControls.tsx"));
508
501
  function forceDownload(ownerDocument, url, fileName) {
509
502
  const xhr = new XMLHttpRequest();
510
503
  xhr.open('GET', url, true);
@@ -542,7 +535,7 @@ const getDurationForInfinityDurationAudioFile = (src, callback) => {
542
535
  audioElement.remove();
543
536
  });
544
537
  };
545
- const AudioPlayer = (0, react_1.forwardRef)(({ src, type = 'audio/mpeg', maxPlaybackSpeed = 2, minPlaybackSpeed = 0.5, playbackSpeedStep = 0.25, download = false, playLabel = 'Play', pauseLabel = 'Pause', audioPlaybackRangeLabel = 'Audio Playback Range', changePlaybackSpeedLabel = 'Change Playback Speed', downloadAudioFileLabel = 'Download Audio File', trackProps, }, ref) => {
538
+ const AudioPlayer = ({ ref, src, type = 'audio/mpeg', maxPlaybackSpeed = 2, minPlaybackSpeed = 0.5, playbackSpeedStep = 0.25, download = false, playLabel = 'Play', pauseLabel = 'Pause', audioPlaybackRangeLabel = 'Audio Playback Range', changePlaybackSpeedLabel = 'Change Playback Speed', downloadAudioFileLabel = 'Download Audio File', trackProps, }) => {
546
539
  const audioRef = (0, react_1.useRef)(null);
547
540
  const refs = (0, fuselage_hooks_1.useMergedRefs)(ref, audioRef);
548
541
  const [isPlaying, setIsPlaying] = (0, react_1.useState)(false);
@@ -575,19 +568,17 @@ const AudioPlayer = (0, react_1.forwardRef)(({ src, type = 'audio/mpeg', maxPlay
575
568
  handlePlaybackSpeed(1);
576
569
  };
577
570
  const { document: ownerDocument } = (0, contexts_1.useOwnerDocument)();
578
- return ((0, jsx_runtime_1.jsxs)(__1.Box, { borderWidth: 'default', bg: 'tint', borderColor: 'extra-light', pb: 12, pie: 8, pis: 16, borderRadius: 'x4', w: '100%', maxWidth: 'x300', ref: containerRef, display: 'flex', alignItems: 'center', children: [(0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, medium: true, onClick: handlePlay, "aria-label": isPlaying ? pauseLabel : playLabel, icon: isPlaying ? 'pause-shape-filled' : 'play-shape-filled' }), (0, jsx_runtime_1.jsxs)(__1.Margins, { inline: 8, children: [(0, jsx_runtime_1.jsx)(__1.Box, { fontScale: 'p2', color: 'secondary-info', children: isPlaying || currentTime > 0
579
- ? getMaskTime(currentTime)
580
- : getMaskTime(durationTime) }), (0, jsx_runtime_1.jsx)(__1.Box, { mi: 16, w: 'full', children: (0, jsx_runtime_1.jsx)(Slider_1.Slider, { "aria-label": audioPlaybackRangeLabel, showOutput: false, value: currentTime, maxValue: durationTime, onChange: (value) => {
581
- if (audioRef.current) {
582
- audioRef.current.currentTime = value;
583
- }
584
- } }) }), (0, jsx_runtime_1.jsxs)(__1.Button, { secondary: true, small: true, onClick: handlePlaybackSpeedSingleControl, "aria-label": changePlaybackSpeedLabel, children: [playbackSpeed, "x"] })] }), download && ((0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, "aria-label": downloadAudioFileLabel, is: 'a', href: src, download: true, icon: 'download', medium: true, onClick: (e) => {
571
+ return ((0, jsx_runtime_1.jsxs)(__1.Box, { borderWidth: 'default', bg: 'tint', borderColor: 'extra-light', pb: 12, pie: 8, pis: 16, borderRadius: 'x4', w: '100%', maxWidth: 'x300', ref: containerRef, display: 'flex', alignItems: 'center', children: [(0, jsx_runtime_1.jsx)(AudioPlayerControls_1.default, { isPlaying: isPlaying, currentTime: currentTime, durationTime: durationTime, playbackSpeed: playbackSpeed, onTogglePlay: handlePlay, onSeek: (time) => {
572
+ if (audioRef.current) {
573
+ audioRef.current.currentTime = time;
574
+ }
575
+ }, onChangePlaybackSpeed: handlePlaybackSpeedSingleControl, download: download, downloadHref: src, onDownload: (e) => {
585
576
  const { host } = new URL(src);
586
577
  if (host !== ownerDocument.defaultView?.location.host) {
587
578
  e.preventDefault();
588
579
  forceDownload(ownerDocument, src);
589
580
  }
590
- } })), (0, jsx_runtime_1.jsxs)("audio", { style: { display: 'none' }, onTimeUpdate: (e) => {
581
+ }, playLabel: playLabel, pauseLabel: pauseLabel, audioPlaybackRangeLabel: audioPlaybackRangeLabel, changePlaybackSpeedLabel: changePlaybackSpeedLabel, downloadAudioFileLabel: downloadAudioFileLabel }), (0, jsx_runtime_1.jsxs)("audio", { style: { display: 'none' }, onTimeUpdate: (e) => {
591
582
  setCurrentTime(e.target.currentTime);
592
583
  }, onLoadedMetadata: (e) => {
593
584
  const { duration } = e.target;
@@ -602,10 +593,39 @@ const AudioPlayer = (0, react_1.forwardRef)(({ src, type = 'audio/mpeg', maxPlay
602
593
  }, onPause: () => {
603
594
  setIsPlaying(false);
604
595
  }, controls: true, children: [(0, jsx_runtime_1.jsx)("source", { src: src, type: type }), (0, jsx_runtime_1.jsx)("track", { kind: 'captions', ...trackProps })] })] }));
605
- });
596
+ };
606
597
  exports["default"] = AudioPlayer;
607
598
 
608
599
 
600
+ /***/ },
601
+
602
+ /***/ "./src/components/AudioPlayer/AudioPlayerControls.tsx"
603
+ /*!************************************************************!*\
604
+ !*** ./src/components/AudioPlayer/AudioPlayerControls.tsx ***!
605
+ \************************************************************/
606
+ (__unused_webpack_module, exports, __webpack_require__) {
607
+
608
+
609
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
610
+ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
611
+ const __1 = __webpack_require__(/*! ../.. */ "./src/index.ts");
612
+ const Slider_1 = __webpack_require__(/*! ../Slider */ "./src/components/Slider/index.ts");
613
+ const getMaskTime = (durationTime) => new Date(durationTime * 1000)
614
+ .toISOString()
615
+ .slice(durationTime > 60 * 60 ? 11 : 14, 19);
616
+ /**
617
+ * Presentational, fully controlled audio controls (play/pause, seek, elapsed
618
+ * time, playback speed and optional download). It owns no `<audio>` element and
619
+ * no playback state, so it can be driven by any source — a local element or a
620
+ * shared/persistent one. `AudioPlayer` wraps this with its own element for the
621
+ * common self-contained case.
622
+ */
623
+ const AudioPlayerControls = ({ isPlaying, currentTime, durationTime, playbackSpeed, onTogglePlay, onSeek, onChangePlaybackSpeed, download = false, downloadHref, onDownload, playLabel = 'Play', pauseLabel = 'Pause', audioPlaybackRangeLabel = 'Audio Playback Range', changePlaybackSpeedLabel = 'Change Playback Speed', downloadAudioFileLabel = 'Download Audio File', }) => ((0, jsx_runtime_1.jsxs)(__1.Box, { display: 'flex', alignItems: 'center', w: 'full', children: [(0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, medium: true, onClick: onTogglePlay, "aria-label": isPlaying ? pauseLabel : playLabel, icon: isPlaying ? 'pause-shape-filled' : 'play-shape-filled' }), (0, jsx_runtime_1.jsxs)(__1.Margins, { inline: 8, children: [(0, jsx_runtime_1.jsx)(__1.Box, { fontScale: 'p2', color: 'secondary-info', children: isPlaying || currentTime > 0
624
+ ? getMaskTime(currentTime)
625
+ : getMaskTime(durationTime) }), (0, jsx_runtime_1.jsx)(__1.Box, { mi: 16, w: 'full', children: (0, jsx_runtime_1.jsx)(Slider_1.Slider, { "aria-label": audioPlaybackRangeLabel, showOutput: false, value: currentTime, maxValue: durationTime, onChange: (value) => onSeek(Array.isArray(value) ? value[0] : value) }) }), (0, jsx_runtime_1.jsxs)(__1.Button, { secondary: true, small: true, onClick: onChangePlaybackSpeed, "aria-label": changePlaybackSpeedLabel, children: [playbackSpeed, "x"] })] }), download && ((0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, medium: true, is: 'a', href: downloadHref, download: true, icon: 'download', "aria-label": downloadAudioFileLabel, onClick: onDownload }))] }));
626
+ exports["default"] = AudioPlayerControls;
627
+
628
+
609
629
  /***/ },
610
630
 
611
631
  /***/ "./src/components/AudioPlayer/index.ts"
@@ -619,9 +639,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
619
639
  return (mod && mod.__esModule) ? mod : { "default": mod };
620
640
  };
621
641
  Object.defineProperty(exports, "__esModule", ({ value: true }));
622
- exports.AudioPlayer = void 0;
642
+ exports.AudioPlayerControls = exports.AudioPlayer = void 0;
623
643
  var AudioPlayer_1 = __webpack_require__(/*! ./AudioPlayer */ "./src/components/AudioPlayer/AudioPlayer.tsx");
624
644
  Object.defineProperty(exports, "AudioPlayer", ({ enumerable: true, get: function () { return __importDefault(AudioPlayer_1).default; } }));
645
+ var AudioPlayerControls_1 = __webpack_require__(/*! ./AudioPlayerControls */ "./src/components/AudioPlayer/AudioPlayerControls.tsx");
646
+ Object.defineProperty(exports, "AudioPlayerControls", ({ enumerable: true, get: function () { return __importDefault(AudioPlayerControls_1).default; } }));
625
647
 
626
648
 
627
649
  /***/ },
@@ -661,12 +683,16 @@ const isSelectedValid = (value) => (selected) => {
661
683
  ? selected.value === value
662
684
  : value.includes(selected.value);
663
685
  };
664
- const AutoComplete = (0, react_1.forwardRef)(function AutoComplete({ value, filter, setFilter, options = [], renderItem, renderSelected: RenderSelected, onChange, renderEmpty, placeholder, error, disabled, multiple, onBlur: onBlurAction = () => { }, ...props }, ref) {
686
+ /**
687
+ * An input for selection of options.
688
+ */
689
+ function AutoComplete({ ref, value, filter, setFilter, options = [], renderItem, renderSelected: RenderSelected, onChange, renderEmpty, placeholder, error, disabled, multiple, onBlur: onBlurAction = () => { }, ...props }) {
665
690
  const innerRef = (0, react_1.useRef)(null);
666
691
  const mergedRefs = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
667
692
  const { ref: containerRef, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
668
693
  const [selected, setSelected] = (0, react_1.useState)(() => getSelected(value, options) || []);
669
694
  (0, react_1.useEffect)(() => {
695
+ // Validates if selected items are still valid after value changes
670
696
  setSelected((selected) => {
671
697
  return !selected.every(isSelectedValid(value))
672
698
  ? selected.filter(isSelectedValid(value))
@@ -713,7 +739,7 @@ const AutoComplete = (0, react_1.forwardRef)(function AutoComplete({ value, filt
713
739
  : undefined, order: 1, "rcx-input-box--undecorated": true, value: filter, disabled: disabled, ...props }), selected.map((itemSelected) => RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { selected: itemSelected, onRemove: handleRemove }, itemSelected.value)) : ((0, jsx_runtime_1.jsx)(Chip_1.Chip, { value: itemSelected.value, children: itemSelected.label, onClick: handleRemove }, itemSelected.value)))] }) }), (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-autocomplete__addon": true, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: optionsAreVisible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
714
740
  ? 'cross'
715
741
  : 'magnifier', size: 'x20', color: 'default' }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: optionsAreVisible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(Options_1.Options, { width: borderBoxSize.inlineSize, onSelect: handleSelect, renderItem: renderItem, renderEmpty: renderEmpty, cursor: cursor, value: value, options: memoizedOptions }) })] }));
716
- });
742
+ }
717
743
  exports["default"] = AutoComplete;
718
744
 
719
745
 
@@ -842,6 +868,9 @@ Object.defineProperty(exports, "AvatarStack", ({ enumerable: true, get: function
842
868
  Object.defineProperty(exports, "__esModule", ({ value: true }));
843
869
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
844
870
  const prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
871
+ /**
872
+ * Communicates notification’s amount and types.
873
+ */
845
874
  function Badge({ is: Tag = 'span', variant = 'secondary', small, className, disabled, ...props }) {
846
875
  const modifiers = [variant, small && 'small', disabled && 'disabled']
847
876
  .filter(Boolean)
@@ -946,32 +975,27 @@ Object.defineProperty(exports, "Banner", ({ enumerable: true, get: function () {
946
975
 
947
976
 
948
977
  Object.defineProperty(exports, "__esModule", ({ value: true }));
949
- exports.Box = void 0;
950
978
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
951
979
  const react_1 = __webpack_require__(/*! react */ "react");
952
980
  const useArrayLikeClassNameProp_1 = __webpack_require__(/*! ../../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
953
981
  const useBoxOnlyProps_1 = __webpack_require__(/*! ../../hooks/useBoxOnlyProps */ "./src/hooks/useBoxOnlyProps.ts");
954
982
  const BoxTransforms_1 = __webpack_require__(/*! ./BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
955
983
  const useStylingProps_1 = __webpack_require__(/*! ./useStylingProps */ "./src/components/Box/useStylingProps.ts");
956
- exports.Box = (0, react_1.forwardRef)(function Box({ is = 'div', children, ...props }, ref) {
957
- const propsWithRef = props;
958
- if (ref) {
959
- propsWithRef.ref = ref;
960
- }
961
- let propsWithStringClassName = (0, useArrayLikeClassNameProp_1.useArrayLikeClassNameProp)(propsWithRef);
984
+ function Box({ is = 'div', ...props }) {
985
+ let propsWithStringClassName = (0, useArrayLikeClassNameProp_1.useArrayLikeClassNameProp)(props);
962
986
  const transformFn = (0, BoxTransforms_1.useBoxTransform)();
963
987
  if (transformFn) {
964
988
  propsWithStringClassName = transformFn(propsWithStringClassName);
965
989
  }
966
990
  const propsWithoutStylingProps = (0, useStylingProps_1.useStylingProps)(propsWithStringClassName);
967
991
  const propsWithoutBoxOnlyProps = (0, useBoxOnlyProps_1.useBoxOnlyProps)(propsWithoutStylingProps);
968
- const element = (0, react_1.createElement)(is, propsWithoutBoxOnlyProps, children);
992
+ const element = (0, react_1.createElement)(is, propsWithoutBoxOnlyProps);
969
993
  if (transformFn) {
970
994
  return (0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { children: element, value: null });
971
995
  }
972
996
  return element;
973
- });
974
- exports["default"] = (0, react_1.memo)(exports.Box);
997
+ }
998
+ exports["default"] = (0, react_1.memo)(Box);
975
999
 
976
1000
 
977
1001
  /***/ },
@@ -1018,6 +1042,12 @@ exports.StylingBox = void 0;
1018
1042
  const react_1 = __webpack_require__(/*! react */ "react");
1019
1043
  const useArrayLikeClassNameProp_1 = __webpack_require__(/*! ../../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
1020
1044
  const useStylingProps_1 = __webpack_require__(/*! ./useStylingProps */ "./src/components/Box/useStylingProps.ts");
1045
+ /**
1046
+ * Merges its `StylingProps` props into a `className` prop passed to a child element.
1047
+ *
1048
+ * This is intended to be used as a wrapper for components that accept styling props but don't need the weight of the
1049
+ * `Box` component prop handling internally.
1050
+ */
1021
1051
  const StylingBox = ({ children, ...props }) => {
1022
1052
  const propsWithStringClassName = (0, useArrayLikeClassNameProp_1.useArrayLikeClassNameProp)(props);
1023
1053
  propsWithStringClassName.className = [
@@ -1521,33 +1551,6 @@ var Bubble_1 = __webpack_require__(/*! ./Bubble */ "./src/components/Bubble/Bubb
1521
1551
  Object.defineProperty(exports, "Bubble", ({ enumerable: true, get: function () { return __importDefault(Bubble_1).default; } }));
1522
1552
 
1523
1553
 
1524
- /***/ },
1525
-
1526
- /***/ "./src/components/Button/ActionButton.tsx"
1527
- /*!************************************************!*\
1528
- !*** ./src/components/Button/ActionButton.tsx ***!
1529
- \************************************************/
1530
- (__unused_webpack_module, exports, __webpack_require__) {
1531
-
1532
-
1533
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1534
- const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
1535
- const react_1 = __webpack_require__(/*! react */ "react");
1536
- const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
1537
- const _1 = __webpack_require__(/*! . */ "./src/components/Button/index.ts");
1538
- const getSize = ({ tiny, mini, small }) => {
1539
- if (mini) {
1540
- return 'x16';
1541
- }
1542
- if (tiny || small) {
1543
- return 'x20';
1544
- }
1545
- return 'x20';
1546
- };
1547
- const ActionButton = (0, react_1.forwardRef)(({ icon, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(_1.Button, { ref: ref, square: true, flexShrink: 0, ...props, children: [children, (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: getSize(props) })] })));
1548
- exports["default"] = ActionButton;
1549
-
1550
-
1551
1554
  /***/ },
1552
1555
 
1553
1556
  /***/ "./src/components/Button/Button.tsx"
@@ -1562,7 +1565,10 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
1562
1565
  const react_1 = __webpack_require__(/*! react */ "react");
1563
1566
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
1564
1567
  const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
1565
- const Button = (0, react_1.forwardRef)(function Button({ primary, secondary, danger, warning, success, external, icon, is = 'button', rel: _rel, tiny, mini, small, medium, large, square, loading, disabled, children, ...props }, ref) {
1568
+ /**
1569
+ * Indicates an actionable user action.
1570
+ */
1571
+ function Button({ ref, primary, secondary, danger, warning, success, external, icon, is = 'button', rel: _rel, tiny, mini, small, medium, large, square, loading, disabled, children, ...props }) {
1566
1572
  const extraProps = (is === 'a' && {
1567
1573
  rel: external ? 'noopener noreferrer' : undefined,
1568
1574
  target: external ? '_blank' : undefined,
@@ -1588,7 +1594,7 @@ const Button = (0, react_1.forwardRef)(function Button({ primary, secondary, dan
1588
1594
  return {};
1589
1595
  }, [primary, secondary, danger, warning, success]);
1590
1596
  return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: is, type: 'button', "rcx-button": true, ...kindAndVariantProps, "rcx-button--small": small, "rcx-button--medium": medium, "rcx-button--large": large, "rcx-button--square": square, "rcx-button--tiny-square": tiny && square, "rcx-button--mini-square": mini && square, "rcx-button--small-square": small && square, "rcx-button--medium-square": medium && square, "rcx-button--large-square": large && square, "rcx-button--loading": loading, disabled: disabled || loading, ref: ref, ...extraProps, ...props, children: (0, jsx_runtime_1.jsxs)("span", { className: 'rcx-button--content', children: [icon && !loading && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 'x16', name: icon, mie: 4 }), loading && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 'x16', name: 'loading', mie: 4 }), children] }) }));
1591
- });
1597
+ }
1592
1598
  exports["default"] = Button;
1593
1599
 
1594
1600
 
@@ -1621,7 +1627,7 @@ const getPressedClass = (variant) => {
1621
1627
  ];
1622
1628
  return variantClass;
1623
1629
  };
1624
- const IconButton = (0, react_1.forwardRef)(({ icon, primary, info, secondary, danger, warning, success, mini, large, tiny, small, medium, pressed, children, ...props }, ref) => {
1630
+ function IconButton({ icon, primary, info, secondary, danger, warning, success, mini, large, tiny, small, medium, pressed, children, ...props }) {
1625
1631
  const variant = (0, react_1.useMemo)(() => (secondary && danger && 'secondary-danger') ||
1626
1632
  (secondary && warning && 'secondary-warning') ||
1627
1633
  (secondary && success && 'secondary-success') ||
@@ -1656,8 +1662,8 @@ const IconButton = (0, react_1.forwardRef)(({ icon, primary, info, secondary, da
1656
1662
  (tiny && 'x16') ||
1657
1663
  (mini && 'x12') ||
1658
1664
  'x28';
1659
- return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'button', type: 'button', "rcx-button": true, "rcx-button--icon": true, "rcx-button--square": true, ...kindAndVariantProps, ...getSizeClass(), "rcx-button--icon-pressed": pressed, ref: ref, ...props, children: [(0, react_1.isValidElement)(icon) ? (icon) : ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: getIconSize() })), children] }));
1660
- });
1665
+ return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'button', type: 'button', "rcx-button": true, "rcx-button--icon": true, "rcx-button--square": true, ...kindAndVariantProps, ...getSizeClass(), "rcx-button--icon-pressed": pressed, ...props, children: [(0, react_1.isValidElement)(icon) ? (icon) : ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: getIconSize() })), children] }));
1666
+ }
1661
1667
  exports["default"] = IconButton;
1662
1668
 
1663
1669
 
@@ -1674,11 +1680,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1674
1680
  return (mod && mod.__esModule) ? mod : { "default": mod };
1675
1681
  };
1676
1682
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1677
- exports.IconButton = exports.ActionButton = exports.Button = void 0;
1683
+ exports.IconButton = exports.Button = void 0;
1678
1684
  var Button_1 = __webpack_require__(/*! ./Button */ "./src/components/Button/Button.tsx");
1679
1685
  Object.defineProperty(exports, "Button", ({ enumerable: true, get: function () { return __importDefault(Button_1).default; } }));
1680
- var ActionButton_1 = __webpack_require__(/*! ./ActionButton */ "./src/components/Button/ActionButton.tsx");
1681
- Object.defineProperty(exports, "ActionButton", ({ enumerable: true, get: function () { return __importDefault(ActionButton_1).default; } }));
1682
1686
  var IconButton_1 = __webpack_require__(/*! ./IconButton */ "./src/components/Button/IconButton.tsx");
1683
1687
  Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function () { return __importDefault(IconButton_1).default; } }));
1684
1688
 
@@ -1694,9 +1698,11 @@ Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function
1694
1698
 
1695
1699
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1696
1700
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
1697
- const react_1 = __webpack_require__(/*! react */ "react");
1698
- const ButtonGroup = (0, react_1.forwardRef)(function ButtonGroup({ align = 'start', children, stretch, vertical, wrap, small, large, className, ...props }, ref) {
1699
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: [
1701
+ /**
1702
+ * A container for grouping buttons that semantically share a common action context.
1703
+ */
1704
+ function ButtonGroup({ align = 'start', children, stretch, vertical, wrap, small, large, className, ...props }) {
1705
+ return ((0, jsx_runtime_1.jsx)("div", { className: [
1700
1706
  'rcx-button-group',
1701
1707
  stretch && 'rcx-button-group--stretch',
1702
1708
  vertical && 'rcx-button-group--vertical',
@@ -1708,7 +1714,7 @@ const ButtonGroup = (0, react_1.forwardRef)(function ButtonGroup({ align = 'star
1708
1714
  ]
1709
1715
  .filter(Boolean)
1710
1716
  .join(' '), role: 'group', ...props, children: children }));
1711
- });
1717
+ }
1712
1718
  exports["default"] = ButtonGroup;
1713
1719
 
1714
1720
 
@@ -1745,6 +1751,9 @@ const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */
1745
1751
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
1746
1752
  const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
1747
1753
  const WRAPPER_LIMIT_SIZE = 420;
1754
+ /**
1755
+ * The `Callout` is used to get the user's attention explaining something important in the content of the current page.
1756
+ */
1748
1757
  const Callout = ({ type, title, children, icon, className, actions, ...props }) => {
1749
1758
  const { ref, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
1750
1759
  const isLarge = borderBoxSize.inlineSize && borderBoxSize.inlineSize >= WRAPPER_LIMIT_SIZE;
@@ -2009,7 +2018,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
2009
2018
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
2010
2019
  const react_1 = __webpack_require__(/*! react */ "react");
2011
2020
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2012
- const CheckBox = (0, react_1.forwardRef)(function CheckBox({ indeterminate, onChange, className, labelChildren, ...props }, ref) {
2021
+ function CheckBox({ ref, indeterminate, onChange, className, labelChildren, ...props }) {
2013
2022
  const innerRef = (0, react_1.useRef)(null);
2014
2023
  const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
2015
2024
  (0, react_1.useLayoutEffect)(() => {
@@ -2024,7 +2033,7 @@ const CheckBox = (0, react_1.forwardRef)(function CheckBox({ indeterminate, onCh
2024
2033
  onChange?.call(innerRef.current, event);
2025
2034
  }, [innerRef, indeterminate, onChange]);
2026
2035
  return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'label', className: className, "rcx-check-box": true, children: [labelChildren, (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', type: 'checkbox', "rcx-check-box__input": true, ref: mergedRef, onChange: handleChange, ...props }), (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-check-box__fake": true, "aria-hidden": 'true' })] }));
2027
- });
2036
+ }
2028
2037
  exports["default"] = CheckBox;
2029
2038
 
2030
2039
 
@@ -2143,6 +2152,13 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
2143
2152
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2144
2153
  const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
2145
2154
  const Skeleton_1 = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.ts");
2155
+ /**
2156
+ * The `CodeSnippet` is used to show code or commands and make easier to copy them.
2157
+ *
2158
+ * The default button text is `Copy` but you can use the `buttonText` prop to handle translations in your project.
2159
+ *
2160
+ * Please check the `useClipBoard` hook in `fuselage-hooks` package, to handle the copy behaviour.
2161
+ */
2146
2162
  const CodeSnippet = ({ children, onClick, buttonText = 'Copy', buttonDisabled = false, ...props }) => {
2147
2163
  if (!children) {
2148
2164
  return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'pre', "rcx-code-snippet": true, ...props, children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { w: '100%', "aria-hidden": true, "aria-busy": true }) }));
@@ -2183,9 +2199,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2183
2199
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2184
2200
  const react_1 = __webpack_require__(/*! react */ "react");
2185
2201
  const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
2186
- const Contextualbar = (0, react_1.forwardRef)(function Contextualbar({ children, width, position, bg = 'room', ...props }, ref) {
2187
- return ((0, jsx_runtime_1.jsx)(__1.Box, { ref: ref, "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props, children: children }));
2188
- });
2202
+ /**
2203
+ * The `Contextualbar` has the purpose to persist and input information about the scope of the related page.
2204
+ */
2205
+ function Contextualbar({ width, position, bg = 'room', ...props }) {
2206
+ return ((0, jsx_runtime_1.jsx)(__1.Box, { "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props }));
2207
+ }
2189
2208
  exports["default"] = (0, react_1.memo)(Contextualbar);
2190
2209
 
2191
2210
 
@@ -2253,9 +2272,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2253
2272
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2254
2273
  const react_1 = __webpack_require__(/*! react */ "react");
2255
2274
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2256
- const ContextualbarContent = (0, react_1.forwardRef)(function ContextualbarContent(props, ref) {
2257
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-vertical-bar__content": true, paddingInline: 24, display: 'flex', flexDirection: 'column', overflowY: 'hidden', height: 'full', ...props }));
2258
- });
2275
+ function ContextualbarContent(props) {
2276
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__content": true, paddingInline: 24, display: 'flex', flexDirection: 'column', overflowY: 'hidden', height: 'full', ...props }));
2277
+ }
2259
2278
  exports["default"] = (0, react_1.memo)(ContextualbarContent);
2260
2279
 
2261
2280
 
@@ -2276,9 +2295,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
2276
2295
  const react_1 = __webpack_require__(/*! react */ "react");
2277
2296
  const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
2278
2297
  const ContextualbarContent_1 = __importDefault(__webpack_require__(/*! ./ContextualbarContent */ "./src/components/Contextualbar/ContextualbarContent.tsx"));
2279
- const ContextualbarEmptyContent = (0, react_1.forwardRef)(function ContextualbarEmptyContent({ icon = 'magnifier', title = 'Nothing Found', subtitle, ...props }, ref) {
2280
- return ((0, jsx_runtime_1.jsx)(ContextualbarContent_1.default, { justifyContent: 'center', ...props, ref: ref, children: (0, jsx_runtime_1.jsxs)(__1.States, { children: [(0, jsx_runtime_1.jsx)(__1.StatesIcon, { name: icon }), (0, jsx_runtime_1.jsx)(__1.StatesTitle, { children: title }), subtitle && (0, jsx_runtime_1.jsx)(__1.StatesSubtitle, { children: subtitle })] }) }));
2281
- });
2298
+ function ContextualbarEmptyContent({ icon = 'magnifier', title = 'Nothing Found', subtitle, ...props }) {
2299
+ return ((0, jsx_runtime_1.jsx)(ContextualbarContent_1.default, { justifyContent: 'center', ...props, children: (0, jsx_runtime_1.jsxs)(__1.States, { children: [(0, jsx_runtime_1.jsx)(__1.StatesIcon, { name: icon }), (0, jsx_runtime_1.jsx)(__1.StatesTitle, { children: title }), subtitle && (0, jsx_runtime_1.jsx)(__1.StatesSubtitle, { children: subtitle })] }) }));
2300
+ }
2282
2301
  exports["default"] = (0, react_1.memo)(ContextualbarEmptyContent);
2283
2302
 
2284
2303
 
@@ -2295,9 +2314,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2295
2314
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2296
2315
  const react_1 = __webpack_require__(/*! react */ "react");
2297
2316
  const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
2298
- const ContextualbarFooter = (0, react_1.forwardRef)(function ContextualbarFooter({ children, ...props }, ref) {
2299
- return ((0, jsx_runtime_1.jsx)(__1.Box, { ref: ref, p: 24, ...props, children: children }));
2300
- });
2317
+ function ContextualbarFooter(props) {
2318
+ return (0, jsx_runtime_1.jsx)(__1.Box, { p: 24, ...props });
2319
+ }
2301
2320
  exports["default"] = (0, react_1.memo)(ContextualbarFooter);
2302
2321
 
2303
2322
 
@@ -2349,9 +2368,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2349
2368
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2350
2369
  const react_1 = __webpack_require__(/*! react */ "react");
2351
2370
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2352
- const ContextualbarSection = (0, react_1.forwardRef)(function ContextualbarSection(props, ref) {
2353
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-vertical-bar__section": true, pi: 24, pb: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
2354
- });
2371
+ function ContextualbarSection(props) {
2372
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true, pi: 24, pb: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
2373
+ }
2355
2374
  exports["default"] = (0, react_1.memo)(ContextualbarSection);
2356
2375
 
2357
2376
 
@@ -2450,9 +2469,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2450
2469
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2451
2470
  const react_1 = __webpack_require__(/*! react */ "react");
2452
2471
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2453
- const Contextualbar = (0, react_1.forwardRef)(function Contextualbar({ children, width, position, bg = 'room', ...props }, ref) {
2454
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props, children: children }));
2455
- });
2472
+ /**
2473
+ * The `Contextualbar` has the purpose to persist and input information about the scope of the related page.
2474
+ */
2475
+ function Contextualbar({ width, position, bg = 'room', ...props }) {
2476
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props }));
2477
+ }
2456
2478
  exports["default"] = (0, react_1.memo)(Contextualbar);
2457
2479
 
2458
2480
 
@@ -2520,9 +2542,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2520
2542
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2521
2543
  const react_1 = __webpack_require__(/*! react */ "react");
2522
2544
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2523
- const ContextualbarContent = (0, react_1.forwardRef)(function ContextualbarContent(props, ref) {
2524
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-vertical-bar__content": true, paddingInline: 24, display: 'flex', flexDirection: 'column', overflowY: 'hidden', height: 'full', ...props }));
2525
- });
2545
+ function ContextualbarContent(props) {
2546
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__content": true, paddingInline: 24, display: 'flex', flexDirection: 'column', overflowY: 'hidden', height: 'full', ...props }));
2547
+ }
2526
2548
  exports["default"] = (0, react_1.memo)(ContextualbarContent);
2527
2549
 
2528
2550
 
@@ -2543,9 +2565,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
2543
2565
  const react_1 = __webpack_require__(/*! react */ "react");
2544
2566
  const States_1 = __webpack_require__(/*! ../States */ "./src/components/States/index.ts");
2545
2567
  const ContextualbarContent_1 = __importDefault(__webpack_require__(/*! ./ContextualbarContent */ "./src/components/ContextualbarV2/ContextualbarContent.tsx"));
2546
- const ContextualbarEmptyContent = (0, react_1.forwardRef)(function ContextualbarEmptyContent({ icon = 'magnifier', title = 'Nothing Found', subtitle, ...props }, ref) {
2547
- return ((0, jsx_runtime_1.jsx)(ContextualbarContent_1.default, { justifyContent: 'center', ...props, ref: ref, children: (0, jsx_runtime_1.jsxs)(States_1.States, { children: [(0, jsx_runtime_1.jsx)(States_1.StatesIcon, { name: icon }), (0, jsx_runtime_1.jsx)(States_1.StatesTitle, { children: title }), subtitle && (0, jsx_runtime_1.jsx)(States_1.StatesSubtitle, { children: subtitle })] }) }));
2548
- });
2568
+ function ContextualbarEmptyContent({ icon = 'magnifier', title = 'Nothing Found', subtitle, ...props }) {
2569
+ return ((0, jsx_runtime_1.jsx)(ContextualbarContent_1.default, { justifyContent: 'center', ...props, children: (0, jsx_runtime_1.jsxs)(States_1.States, { children: [(0, jsx_runtime_1.jsx)(States_1.StatesIcon, { name: icon }), (0, jsx_runtime_1.jsx)(States_1.StatesTitle, { children: title }), subtitle && (0, jsx_runtime_1.jsx)(States_1.StatesSubtitle, { children: subtitle })] }) }));
2570
+ }
2549
2571
  exports["default"] = (0, react_1.memo)(ContextualbarEmptyContent);
2550
2572
 
2551
2573
 
@@ -2562,9 +2584,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2562
2584
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2563
2585
  const react_1 = __webpack_require__(/*! react */ "react");
2564
2586
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2565
- const ContextualbarFooter = (0, react_1.forwardRef)(function ContextualbarFooter({ children, ...props }, ref) {
2566
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, pi: 16, pb: 20, ...props, children: children }));
2567
- });
2587
+ function ContextualbarFooter(props) {
2588
+ return (0, jsx_runtime_1.jsx)(Box_1.Box, { pi: 16, pb: 20, ...props });
2589
+ }
2568
2590
  exports["default"] = (0, react_1.memo)(ContextualbarFooter);
2569
2591
 
2570
2592
 
@@ -2618,9 +2640,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2618
2640
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2619
2641
  const react_1 = __webpack_require__(/*! react */ "react");
2620
2642
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2621
- const ContextualbarSection = (0, react_1.forwardRef)(function ContextualbarSection(props, ref) {
2622
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-vertical-bar__section": true, p: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
2623
- });
2643
+ function ContextualbarSection(props) {
2644
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true, p: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
2645
+ }
2624
2646
  exports["default"] = (0, react_1.memo)(ContextualbarSection);
2625
2647
 
2626
2648
 
@@ -2757,13 +2779,12 @@ Object.defineProperty(exports, "Divider", ({ enumerable: true, get: function ()
2757
2779
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2758
2780
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2759
2781
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
2760
- const react_1 = __webpack_require__(/*! react */ "react");
2761
2782
  const DropdownDesktopWrapper_1 = __webpack_require__(/*! ./DropdownDesktopWrapper */ "./src/components/Dropdown/DropdownDesktopWrapper.tsx");
2762
2783
  const DropdownMobile_1 = __webpack_require__(/*! ./DropdownMobile */ "./src/components/Dropdown/DropdownMobile.tsx");
2763
- const Dropdown = (0, react_1.forwardRef)(function Dropdown({ children, reference, placement = 'bottom-start' }, ref) {
2784
+ function Dropdown({ ref, children, reference, placement = 'bottom-start', }) {
2764
2785
  const notSmall = (0, fuselage_hooks_1.useMediaQuery)('(min-width: 500px)');
2765
2786
  return notSmall ? ((0, jsx_runtime_1.jsx)(DropdownDesktopWrapper_1.DropdownDesktopWrapper, { reference: reference, children: children, placement: placement, ref: ref })) : ((0, jsx_runtime_1.jsx)(DropdownMobile_1.DropdownMobile, { children: children, ref: ref }));
2766
- });
2787
+ }
2767
2788
  exports["default"] = Dropdown;
2768
2789
 
2769
2790
 
@@ -2777,13 +2798,12 @@ exports["default"] = Dropdown;
2777
2798
 
2778
2799
 
2779
2800
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2780
- exports.DropdownDesktop = void 0;
2801
+ exports.DropdownDesktop = DropdownDesktop;
2781
2802
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2782
- const react_1 = __webpack_require__(/*! react */ "react");
2783
2803
  const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
2784
- exports.DropdownDesktop = (0, react_1.forwardRef)(function DropdownDesktop({ children, style, ...props }, ref) {
2785
- return ((0, jsx_runtime_1.jsx)(__1.Tile, { style: style, ref: ref, elevation: '2', pi: '0', pb: '0', display: 'flex', flexDirection: 'column', overflow: 'auto', "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, pb: 12, children: style?.visibility === 'hidden' ? null : children }) }));
2786
- });
2804
+ function DropdownDesktop({ children, style, ...props }) {
2805
+ return ((0, jsx_runtime_1.jsx)(__1.Tile, { style: style, elevation: '2', pi: '0', pb: '0', display: 'flex', flexDirection: 'column', overflow: 'auto', "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, pb: 12, children: style?.visibility === 'hidden' ? null : children }) }));
2806
+ }
2787
2807
 
2788
2808
 
2789
2809
  /***/ },
@@ -2796,17 +2816,16 @@ exports.DropdownDesktop = (0, react_1.forwardRef)(function DropdownDesktop({ chi
2796
2816
 
2797
2817
 
2798
2818
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2799
- exports.DropdownDesktopWrapper = void 0;
2819
+ exports.DropdownDesktopWrapper = DropdownDesktopWrapper;
2800
2820
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2801
2821
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
2802
- const react_1 = __webpack_require__(/*! react */ "react");
2803
2822
  const DropdownDesktop_1 = __webpack_require__(/*! ./DropdownDesktop */ "./src/components/Dropdown/DropdownDesktop.tsx");
2804
- exports.DropdownDesktopWrapper = (0, react_1.forwardRef)(function DropdownDesktopWrapper({ children, reference, placement = 'bottom-start', ...props }, ref) {
2823
+ function DropdownDesktopWrapper({ ref, reference, placement = 'bottom-start', ...props }) {
2805
2824
  const { style } = (0, fuselage_hooks_1.usePosition)(reference, ref, {
2806
2825
  placement,
2807
2826
  });
2808
- return ((0, jsx_runtime_1.jsx)(DropdownDesktop_1.DropdownDesktop, { style: style, children: children, ref: ref, ...props }));
2809
- });
2827
+ return (0, jsx_runtime_1.jsx)(DropdownDesktop_1.DropdownDesktop, { style: style, ref: ref, ...props });
2828
+ }
2810
2829
 
2811
2830
 
2812
2831
  /***/ },
@@ -2819,13 +2838,12 @@ exports.DropdownDesktopWrapper = (0, react_1.forwardRef)(function DropdownDeskto
2819
2838
 
2820
2839
 
2821
2840
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2822
- exports.DropdownMobile = void 0;
2841
+ exports.DropdownMobile = DropdownMobile;
2823
2842
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2824
- const react_1 = __webpack_require__(/*! react */ "react");
2825
2843
  const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
2826
- exports.DropdownMobile = (0, react_1.forwardRef)(function DropdownMobile({ children, ...props }, ref) {
2827
- return ((0, jsx_runtime_1.jsx)(__1.Tile, { ref: ref, elevation: '2', pi: '0', pb: '0', w: '100vw', maxHeight: '80%', position: 'fixed', display: 'flex', flexDirection: 'column', overflow: 'auto', style: { bottom: 0, left: 0 }, zIndex: 2, "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, pb: 16, children: children }) }));
2828
- });
2844
+ function DropdownMobile({ children, ...props }) {
2845
+ return ((0, jsx_runtime_1.jsx)(__1.Tile, { elevation: '2', pi: '0', pb: '0', w: '100vw', maxHeight: '80%', position: 'fixed', display: 'flex', flexDirection: 'column', overflow: 'auto', style: { bottom: 0, left: 0 }, zIndex: 2, "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, pb: 16, children: children }) }));
2846
+ }
2829
2847
 
2830
2848
 
2831
2849
  /***/ },
@@ -2857,12 +2875,13 @@ Object.defineProperty(exports, "Dropdown", ({ enumerable: true, get: function ()
2857
2875
 
2858
2876
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2859
2877
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
2860
- const react_1 = __webpack_require__(/*! react */ "react");
2861
2878
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
2862
- const type = 'email';
2863
- const EmailInput = (0, react_1.forwardRef)(function EmailInput(props, ref) {
2864
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: type, ref: ref, ...props });
2865
- });
2879
+ /**
2880
+ * An input for email addresses.
2881
+ */
2882
+ function EmailInput(props) {
2883
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'email', ...props });
2884
+ }
2866
2885
  exports["default"] = EmailInput;
2867
2886
 
2868
2887
 
@@ -2899,6 +2918,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
2899
2918
  const react_1 = __webpack_require__(/*! react */ "react");
2900
2919
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
2901
2920
  exports.FieldContext = (0, react_1.createContext)(false);
2921
+ /**
2922
+ * A `Field` is a wrapper representing an entry in a form.
2923
+ */
2902
2924
  function Field(props) {
2903
2925
  return ((0, jsx_runtime_1.jsx)(exports.FieldContext.Provider, { value: true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-field": true, ...props }) }));
2904
2926
  }
@@ -3003,18 +3025,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3003
3025
  };
3004
3026
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3005
3027
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
3006
- const react_1 = __webpack_require__(/*! react */ "react");
3007
3028
  const WithErrorWrapper_1 = __importDefault(__webpack_require__(/*! ../../helpers/WithErrorWrapper */ "./src/helpers/WithErrorWrapper.tsx"));
3008
3029
  const Label_1 = __webpack_require__(/*! ../Label */ "./src/components/Label/index.ts");
3009
3030
  const Field_1 = __webpack_require__(/*! ./Field */ "./src/components/Field/Field.tsx");
3010
- const FieldLabel = (0, react_1.forwardRef)(function FieldLabel(props, ref) {
3011
- const component = (0, jsx_runtime_1.jsx)(Label_1.Label, { "rcx-field__label": true, ...props, ref: ref });
3031
+ function FieldLabel(props) {
3032
+ const component = (0, jsx_runtime_1.jsx)(Label_1.Label, { "rcx-field__label": true, ...props });
3012
3033
  if (true) {
3013
3034
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: FieldLabel.name, children: component }));
3014
3035
  }
3015
3036
  // removed by dead control flow
3016
3037
 
3017
- });
3038
+ }
3018
3039
  exports["default"] = FieldLabel;
3019
3040
 
3020
3041
 
@@ -3148,6 +3169,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
3148
3169
  const appendClassName_1 = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
3149
3170
  const patchChildren_1 = __webpack_require__(/*! ../../helpers/patchChildren */ "./src/helpers/patchChildren.ts");
3150
3171
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
3172
+ /**
3173
+ * A container for grouping fields that semantically share a common data context.
3174
+ */
3151
3175
  const FieldGroup = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'fieldset', "rcx-field-group": true, role: 'group', ...props, children: (0, patchChildren_1.patchChildren)(children, (childProps) => ({
3152
3176
  className: (0, appendClassName_1.appendClassName)(childProps.className, 'rcx-field-group__item'),
3153
3177
  })) }));
@@ -3274,17 +3298,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3274
3298
  return (mod && mod.__esModule) ? mod : { "default": mod };
3275
3299
  };
3276
3300
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3277
- exports.Flex = exports.FlexItem = exports.FlexContainer = void 0;
3278
- const FlexContainer_1 = __importDefault(__webpack_require__(/*! ./FlexContainer */ "./src/components/Flex/FlexContainer.tsx"));
3279
- const FlexItem_1 = __importDefault(__webpack_require__(/*! ./FlexItem */ "./src/components/Flex/FlexItem.tsx"));
3280
- var FlexContainer_2 = __webpack_require__(/*! ./FlexContainer */ "./src/components/Flex/FlexContainer.tsx");
3281
- Object.defineProperty(exports, "FlexContainer", ({ enumerable: true, get: function () { return __importDefault(FlexContainer_2).default; } }));
3282
- var FlexItem_2 = __webpack_require__(/*! ./FlexItem */ "./src/components/Flex/FlexItem.tsx");
3283
- Object.defineProperty(exports, "FlexItem", ({ enumerable: true, get: function () { return __importDefault(FlexItem_2).default; } }));
3284
- exports.Flex = {
3285
- Container: FlexContainer_1.default,
3286
- Item: FlexItem_1.default,
3287
- };
3301
+ exports.FlexItem = exports.FlexContainer = void 0;
3302
+ var FlexContainer_1 = __webpack_require__(/*! ./FlexContainer */ "./src/components/Flex/FlexContainer.tsx");
3303
+ Object.defineProperty(exports, "FlexContainer", ({ enumerable: true, get: function () { return __importDefault(FlexContainer_1).default; } }));
3304
+ var FlexItem_1 = __webpack_require__(/*! ./FlexItem */ "./src/components/Flex/FlexItem.tsx");
3305
+ Object.defineProperty(exports, "FlexItem", ({ enumerable: true, get: function () { return __importDefault(FlexItem_1).default; } }));
3288
3306
 
3289
3307
 
3290
3308
  /***/ },
@@ -3393,11 +3411,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3393
3411
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3394
3412
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
3395
3413
  const icons_1 = __importDefault(__webpack_require__(/*! @rocket.chat/icons */ "@rocket.chat/icons"));
3396
- const react_1 = __webpack_require__(/*! react */ "react");
3397
3414
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
3398
- const Icon = (0, react_1.forwardRef)(function Icon({ name, size, ...props }, ref) {
3399
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-icon": true, "rcx-icon--name": name, children: icons_1.default[name], "aria-hidden": 'true', fontSize: size, ref: ref, ...props }));
3400
- });
3415
+ function Icon({ name, size, ...props }) {
3416
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-icon": true, "rcx-icon--name": name, children: icons_1.default[name], "aria-hidden": 'true', fontSize: size, ...props }));
3417
+ }
3401
3418
  exports["default"] = Icon;
3402
3419
 
3403
3420
 
@@ -3430,11 +3447,10 @@ Object.defineProperty(exports, "Icon", ({ enumerable: true, get: function () { r
3430
3447
 
3431
3448
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3432
3449
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
3433
- const react_1 = __webpack_require__(/*! react */ "react");
3434
3450
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
3435
- const Input = (0, react_1.forwardRef)(function Input(props, ref) {
3436
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', animated: true, "rcx-input-box": true, ref: ref, ...props });
3437
- });
3451
+ function Input(props) {
3452
+ return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', animated: true, "rcx-input-box": true, ...props });
3453
+ }
3438
3454
  exports["default"] = Input;
3439
3455
 
3440
3456
 
@@ -3458,10 +3474,17 @@ const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.t
3458
3474
  const Input_1 = __importDefault(__webpack_require__(/*! ./Input */ "./src/components/InputBox/Input.tsx"));
3459
3475
  const InputBoxAddon_1 = __importDefault(__webpack_require__(/*! ./InputBoxAddon */ "./src/components/InputBox/InputBoxAddon.tsx"));
3460
3476
  const InputBoxWrapper_1 = __importDefault(__webpack_require__(/*! ./InputBoxWrapper */ "./src/components/InputBox/InputBoxWrapper.tsx"));
3461
- const InputBox = (0, react_1.forwardRef)(function InputBox({ className, addon, startAddon, endAddon, error, hidden, invisible, multiple, placeholderVisible, type = 'text', small, onChange, ...props }, ref) {
3477
+ /**
3478
+ * A decorated input control with support for addons.
3479
+ *
3480
+ * Usually you'll perfer to use `-Input` (e.g. <LinkTo kind='Forms/TextInput' story='Default'>`TextInput`</LinkTo>)
3481
+ * components over this one because it works as a construction block for them.
3482
+ */
3483
+ // eslint-disable-next-line complexity
3484
+ function InputBox({ ref, className, startAddon, endAddon, error, hidden, invisible, multiple, placeholderVisible, type = 'text', small, onChange, ...props }) {
3462
3485
  const innerRef = (0, react_1.useRef)(null);
3463
3486
  const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
3464
- let defaultAddon = endAddon ?? addon;
3487
+ let defaultAddon = endAddon;
3465
3488
  (0, react_1.useLayoutEffect)(() => {
3466
3489
  if (innerRef.current && innerRef.current.setCustomValidity) {
3467
3490
  innerRef.current.setCustomValidity(error || '');
@@ -3496,7 +3519,7 @@ const InputBox = (0, react_1.forwardRef)(function InputBox({ className, addon, s
3496
3519
  ], hidden: hidden, invisible: invisible, children: [startAddon && (0, jsx_runtime_1.jsx)(InputBoxAddon_1.default, { children: startAddon }), (0, jsx_runtime_1.jsx)(Input_1.default, { is: (type === 'textarea' && 'textarea') ||
3497
3520
  (type === 'select' && 'select') ||
3498
3521
  'input', className: className, cols: (type === 'textarea' && 1) || (type === 'select' && 0) || 0, multiple: multiple, ref: mergedRef, htmlSize: (type === 'textarea' && undefined) || (type === 'select' && 1) || 1, type: type === 'textarea' || type === 'select' ? undefined : type, onChange: handleChange, "rcx-input-box--multiple": multiple, "rcx-input-box--placeholder-visible": placeholderVisible, "rcx-input-box--type": type, "rcx-input-box--undecorated": true, "rcx-input-box--small": small, ...props }), defaultAddon && (0, jsx_runtime_1.jsx)(InputBoxAddon_1.default, { children: defaultAddon })] }));
3499
- });
3522
+ }
3500
3523
  exports["default"] = InputBox;
3501
3524
 
3502
3525
 
@@ -3511,11 +3534,13 @@ exports["default"] = InputBox;
3511
3534
 
3512
3535
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3513
3536
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
3514
- const react_1 = __webpack_require__(/*! react */ "react");
3515
3537
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
3516
- const InputBoxAddon = (0, react_1.forwardRef)(function InputBoxAddon(props, ref) {
3517
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-input-box__addon": true, ref: ref, ...props });
3518
- });
3538
+ /**
3539
+ * An addon for the input box.
3540
+ */
3541
+ function InputBoxAddon(props) {
3542
+ return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-input-box__addon": true, ...props });
3543
+ }
3519
3544
  exports["default"] = InputBoxAddon;
3520
3545
 
3521
3546
 
@@ -3589,11 +3614,14 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
3589
3614
  const react_1 = __webpack_require__(/*! react */ "react");
3590
3615
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
3591
3616
  const LabelContext = (0, react_1.createContext)(false);
3592
- const Label = (0, react_1.forwardRef)(function Label({ disabled, is, required, children, ...props }, ref) {
3617
+ /**
3618
+ * A caption for an input component.
3619
+ */
3620
+ function Label({ disabled, is, required, children, ...props }) {
3593
3621
  const isInsideLabel = (0, react_1.useContext)(LabelContext);
3594
3622
  const component = is || (isInsideLabel && 'span') || 'label';
3595
- return ((0, jsx_runtime_1.jsx)(LabelContext.Provider, { value: true, children: (0, jsx_runtime_1.jsxs)(Box_1.Box, { is: component, "rcx-label": true, "rcx-label--disabled": disabled, ...props, ref: ref, children: [children, required && ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-label__required": true, mis: 'x4', "aria-hidden": 'true', children: "*" }))] }) }));
3596
- });
3623
+ return ((0, jsx_runtime_1.jsx)(LabelContext.Provider, { value: true, children: (0, jsx_runtime_1.jsxs)(Box_1.Box, { is: component, "rcx-label": true, "rcx-label--disabled": disabled, ...props, children: [children, required && ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-label__required": true, mis: 'x4', "aria-hidden": 'true', children: "*" }))] }) }));
3624
+ }
3597
3625
  exports["default"] = Label;
3598
3626
 
3599
3627
 
@@ -3651,6 +3679,9 @@ const patchChildren_1 = __webpack_require__(/*! ../../helpers/patchChildren */ "
3651
3679
  const useStyle_1 = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
3652
3680
  const styleTokens_1 = __webpack_require__(/*! ../../styleTokens */ "./src/styleTokens.ts");
3653
3681
  const BoxTransforms_1 = __webpack_require__(/*! ../Box/BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
3682
+ /**
3683
+ * Add margins to the wrapped component.
3684
+ */
3654
3685
  const Margins = (props) => {
3655
3686
  const { children, className, all, block, blockStart, blockEnd, inline, inlineStart, inlineEnd, } = props;
3656
3687
  const transformFn = (0, react_1.useCallback)((props) => {
@@ -3835,6 +3866,8 @@ const MenuOption_1 = __importDefault(__webpack_require__(/*! ./MenuOption */ "./
3835
3866
  function MenuItem({ item, state }) {
3836
3867
  const ref = (0, react_1.useRef)(null);
3837
3868
  const { menuItemProps: { onPointerUp, ...menuItemProps }, isFocused, isDisabled, } = (0, react_aria_1.useMenuItem)({ key: item.key }, state, ref);
3869
+ // There's an issue caused by conflicting event handlers. The popover opens on onPointerDown and the selection event for both, the menu (listbox), happens on onPointerUp.
3870
+ // As a workaround, we are overwriting `onPointerDown` event with `onPointerUp`
3838
3871
  return ((0, jsx_runtime_1.jsxs)(MenuOption_1.default, { ...(0, react_aria_1.mergeProps)(menuItemProps, { onPointerDown: onPointerUp }), ref: ref, focus: isFocused, disabled: isDisabled, is: 'label', variant: item.value?.variant, children: [(0, jsx_runtime_1.jsx)("div", { className: 'rcx-option__wrapper', children: item.rendered }), item.value && item.value.description && ((0, jsx_runtime_1.jsx)(_1.MenuItemDescription, { children: item.value.description }))] }));
3839
3872
  }
3840
3873
  exports["default"] = MenuItem;
@@ -3853,8 +3886,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3853
3886
  const react_1 = __webpack_require__(/*! react */ "react");
3854
3887
  const react_2 = __webpack_require__(/*! react */ "react");
3855
3888
  const prevent_1 = __webpack_require__(/*! ../../helpers/prevent */ "./src/helpers/prevent.ts");
3856
- const MenuOption = (0, react_2.forwardRef)(function MenuOption({ is: Tag = 'li', id, children, focus, selected, className, title, disabled, variant, onClick, ...props }, ref) {
3857
- return ((0, react_1.createElement)(Tag, { ...props, key: id, id: id, ref: ref, "aria-selected": !!selected, "aria-disabled": !!disabled, title: title, onClick: (e) => {
3889
+ function MenuOption({ is: Tag = 'li', id, children, focus, selected, className, title, disabled, variant, onClick, ...props }) {
3890
+ return ((0, react_1.createElement)(Tag, { ...props, key: id, id: id, "aria-selected": !!selected, "aria-disabled": !!disabled, title: title, onClick: (e) => {
3858
3891
  if (disabled) {
3859
3892
  (0, prevent_1.prevent)(e);
3860
3893
  return;
@@ -3870,7 +3903,7 @@ const MenuOption = (0, react_2.forwardRef)(function MenuOption({ is: Tag = 'li',
3870
3903
  ]
3871
3904
  .filter(Boolean)
3872
3905
  .join(' ') }, children));
3873
- });
3906
+ }
3874
3907
  exports["default"] = (0, react_2.memo)(MenuOption);
3875
3908
 
3876
3909
 
@@ -3926,6 +3959,7 @@ function MenuSection({ section, state, }) {
3926
3959
  const { separatorProps } = (0, react_aria_1.useSeparator)({
3927
3960
  elementType: 'span',
3928
3961
  });
3962
+ // If the section is not the first, add a separator element.
3929
3963
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [section.key !== state.collection.getFirstKey() && ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { ...separatorProps })), (0, jsx_runtime_1.jsxs)("div", { ...itemProps, children: [section.rendered && ((0, jsx_runtime_1.jsx)(Option_1.OptionTitle, { ...headingProps, children: section.rendered })), (0, jsx_runtime_1.jsx)(Box_1.Box, { ...groupProps, p: '0', children: [...section.childNodes].map((node) => ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { item: node, state: state }, node.key))) })] })] }));
3930
3964
  }
3931
3965
  exports["default"] = MenuSection;
@@ -3943,6 +3977,7 @@ exports["default"] = MenuSection;
3943
3977
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3944
3978
  exports.getPlacement = void 0;
3945
3979
  const getPlacement = (placement) => {
3980
+ // switch case for placement from usePosition placement to react-aria
3946
3981
  switch (placement) {
3947
3982
  case 'bottom':
3948
3983
  return 'bottom';
@@ -4136,10 +4171,9 @@ exports["default"] = MenuSection;
4136
4171
 
4137
4172
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4138
4173
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4139
- const react_1 = __webpack_require__(/*! react */ "react");
4140
4174
  const prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
4141
- const Message = (0, react_1.forwardRef)(function Message({ className, clickable, sequential, isSelected, isEditing, isPending, highlight, ...props }, ref) {
4142
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, prependClassName_1.prependClassName)(className, [
4175
+ function Message({ className, clickable, sequential, isSelected, isEditing, isPending, highlight, ...props }) {
4176
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, prependClassName_1.prependClassName)(className, [
4143
4177
  'rcx-message',
4144
4178
  (clickable || props.onClick) && 'rcx-message--clickable',
4145
4179
  sequential && 'rcx-message--sequential',
@@ -4150,7 +4184,7 @@ const Message = (0, react_1.forwardRef)(function Message({ className, clickable,
4150
4184
  ]
4151
4185
  .filter(Boolean)
4152
4186
  .join(' ')), ...props }));
4153
- });
4187
+ }
4154
4188
  exports["default"] = Message;
4155
4189
 
4156
4190
 
@@ -4165,9 +4199,10 @@ exports["default"] = Message;
4165
4199
 
4166
4200
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4167
4201
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4168
- const react_1 = __webpack_require__(/*! react */ "react");
4169
4202
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
4170
- const MessageBlock = (0, react_1.forwardRef)(({ className: _className, fixedWidth, ...props }, ref) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-message-block": true, "rcx-message-block--width-fixed": fixedWidth, ref: ref, ...props })));
4203
+ function MessageBlock({ className: _className, fixedWidth, ...props }) {
4204
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-message-block": true, "rcx-message-block--width-fixed": fixedWidth, ...props }));
4205
+ }
4171
4206
  exports["default"] = MessageBlock;
4172
4207
 
4173
4208
 
@@ -4767,10 +4802,9 @@ exports["default"] = MessageName;
4767
4802
 
4768
4803
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4769
4804
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4770
- const react_1 = __webpack_require__(/*! react */ "react");
4771
- const MessageNameContainer = (0, react_1.forwardRef)(function MessageNameContainer(props, ref) {
4772
- return ((0, jsx_runtime_1.jsx)("span", { ref: ref, className: 'rcx-box rcx-box--full rcx-message-header__name-container', ...props }));
4773
- });
4805
+ function MessageNameContainer(props) {
4806
+ return ((0, jsx_runtime_1.jsx)("span", { className: 'rcx-box rcx-box--full rcx-message-header__name-container', ...props }));
4807
+ }
4774
4808
  exports["default"] = MessageNameContainer;
4775
4809
 
4776
4810
 
@@ -4788,18 +4822,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4788
4822
  };
4789
4823
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4790
4824
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4791
- const react_1 = __webpack_require__(/*! react */ "react");
4792
4825
  const MessageReactionCounter_1 = __importDefault(__webpack_require__(/*! ./MessageReactionCounter */ "./src/components/Message/MessageReactions/MessageReactionCounter.tsx"));
4793
4826
  const MessageReactionEmoji_1 = __importDefault(__webpack_require__(/*! ./MessageReactionEmoji */ "./src/components/Message/MessageReactions/MessageReactionEmoji.tsx"));
4794
- const MessageReaction = (0, react_1.forwardRef)(function Reaction({ name, counter, mine, children, className, ...props }, ref) {
4827
+ function MessageReaction({ name, counter, mine, children, className, ...props }) {
4795
4828
  return ((0, jsx_runtime_1.jsx)("div", { className: [
4796
4829
  `rcx-message-reactions__reaction`,
4797
4830
  mine && 'rcx-message-reactions__reaction--mine',
4798
4831
  className,
4799
4832
  ]
4800
4833
  .filter(Boolean)
4801
- .join(' '), ref: ref, role: 'button', tabIndex: 0, ...props, children: children || ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [name && (0, jsx_runtime_1.jsx)(MessageReactionEmoji_1.default, { name: name }), counter && (0, jsx_runtime_1.jsx)(MessageReactionCounter_1.default, { counter: counter })] })) }));
4802
- });
4834
+ .join(' '), role: 'button', tabIndex: 0, ...props, children: children || ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [name && (0, jsx_runtime_1.jsx)(MessageReactionEmoji_1.default, { name: name }), counter && (0, jsx_runtime_1.jsx)(MessageReactionCounter_1.default, { counter: counter })] })) }));
4835
+ }
4803
4836
  exports["default"] = MessageReaction;
4804
4837
 
4805
4838
 
@@ -4872,11 +4905,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4872
4905
  };
4873
4906
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4874
4907
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4875
- const react_1 = __webpack_require__(/*! react */ "react");
4876
4908
  const MessageBlock_1 = __importDefault(__webpack_require__(/*! ../MessageBlock */ "./src/components/Message/MessageBlock.tsx"));
4877
- const MessageReactions = (0, react_1.forwardRef)(function MessageReactions(props, ref) {
4878
- return ((0, jsx_runtime_1.jsx)(MessageBlock_1.default, { className: 'rcx-message-reactions', children: (0, jsx_runtime_1.jsx)("div", { ref: ref, className: 'rcx-message-reactions__container', ...props }) }));
4879
- });
4909
+ function MessageReactions(props) {
4910
+ return ((0, jsx_runtime_1.jsx)(MessageBlock_1.default, { className: 'rcx-message-reactions', children: (0, jsx_runtime_1.jsx)("div", { className: 'rcx-message-reactions__container', ...props }) }));
4911
+ }
4880
4912
  exports["default"] = MessageReactions;
4881
4913
 
4882
4914
 
@@ -4949,11 +4981,10 @@ exports["default"] = MessageRoles;
4949
4981
 
4950
4982
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4951
4983
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
4952
- const react_1 = __webpack_require__(/*! react */ "react");
4953
4984
  __webpack_require__(/*! ./MessageStatusIndicator.styles.scss */ "./src/components/Message/MessageStatusIndicator/MessageStatusIndicator.styles.scss");
4954
- const MessageStatusIndicator = (0, react_1.forwardRef)(function MessageStatusIndicator(props, ref) {
4955
- return (0, jsx_runtime_1.jsx)("div", { ref: ref, className: 'rcx-message-status-indicator', ...props });
4956
- });
4985
+ function MessageStatusIndicator(props) {
4986
+ return (0, jsx_runtime_1.jsx)("div", { className: 'rcx-message-status-indicator', ...props });
4987
+ }
4957
4988
  exports["default"] = MessageStatusIndicator;
4958
4989
 
4959
4990
 
@@ -5189,11 +5220,10 @@ exports["default"] = MessageTimestamp;
5189
5220
 
5190
5221
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5191
5222
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5192
- const react_1 = __webpack_require__(/*! react */ "react");
5193
5223
  const ButtonGroup_1 = __webpack_require__(/*! ../../ButtonGroup */ "./src/components/ButtonGroup/index.ts");
5194
- const MessageToolbar = (0, react_1.forwardRef)(function MessageToolbar(props, ref) {
5195
- return ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-message-toolbar', children: (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { role: 'toolbar', ref: ref, small: true, ...props }) }));
5196
- });
5224
+ function MessageToolbar(props) {
5225
+ return ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-message-toolbar', children: (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { role: 'toolbar', small: true, ...props }) }));
5226
+ }
5197
5227
  exports["default"] = MessageToolbar;
5198
5228
 
5199
5229
 
@@ -5208,11 +5238,10 @@ exports["default"] = MessageToolbar;
5208
5238
 
5209
5239
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5210
5240
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5211
- const react_1 = __webpack_require__(/*! react */ "react");
5212
5241
  const Button_1 = __webpack_require__(/*! ../../Button */ "./src/components/Button/index.ts");
5213
- const MessageToolbarItem = (0, react_1.forwardRef)(function MessageToolbarItem(props, ref) {
5214
- return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { ref: ref, small: true, ...props });
5215
- });
5242
+ function MessageToolbarItem(props) {
5243
+ return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, ...props });
5244
+ }
5216
5245
  exports["default"] = MessageToolbarItem;
5217
5246
 
5218
5247
 
@@ -5227,16 +5256,15 @@ exports["default"] = MessageToolbarItem;
5227
5256
 
5228
5257
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5229
5258
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5230
- const react_1 = __webpack_require__(/*! react */ "react");
5231
- const MessageToolbarWrapper = (0, react_1.forwardRef)(function MessageToolbarWrapper({ className, visible, ...props }, ref) {
5232
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: [
5259
+ function MessageToolbarWrapper({ className, visible, ...props }) {
5260
+ return ((0, jsx_runtime_1.jsx)("div", { className: [
5233
5261
  'rcx-box rcx-box--full rcx-message-toolbar__wrapper',
5234
5262
  visible && 'rcx-message-toolbar__wrapper--visible',
5235
5263
  className,
5236
5264
  ]
5237
5265
  .filter(Boolean)
5238
5266
  .join(' '), ...props }));
5239
- });
5267
+ }
5240
5268
  exports["default"] = MessageToolbarWrapper;
5241
5269
 
5242
5270
 
@@ -5585,16 +5613,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
5585
5613
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5586
5614
  const react_1 = __webpack_require__(/*! react */ "react");
5587
5615
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
5588
- const Modal = (0, react_1.forwardRef)(({ children, wrapper = Box_1.Box, wrapperFunction, ...props }, ref) => {
5616
+ const Modal = ({ children, wrapper = Box_1.Box, wrapperFunction, ...props }) => {
5589
5617
  const wrapperProps = {
5590
5618
  children,
5591
5619
  className: 'rcx-modal__inner',
5592
5620
  elevation: '2',
5593
5621
  };
5594
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'dialog', open: true, "aria-modal": 'true', "rcx-modal": true, ref: ref, ...props, children: wrapperFunction
5622
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'dialog', open: true, "aria-modal": 'true', "rcx-modal": true, ...props, children: wrapperFunction
5595
5623
  ? wrapperFunction(wrapperProps)
5596
5624
  : (0, react_1.createElement)(wrapper, wrapperProps) }));
5597
- });
5625
+ };
5598
5626
  exports["default"] = Modal;
5599
5627
 
5600
5628
 
@@ -5870,7 +5898,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
5870
5898
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5871
5899
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
5872
5900
  const react_1 = __webpack_require__(/*! react */ "react");
5873
- const isForwardRefType_1 = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
5874
5901
  const prevent_1 = __webpack_require__(/*! ../../helpers/prevent */ "./src/helpers/prevent.ts");
5875
5902
  const AnimatedVisibility_1 = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
5876
5903
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
@@ -5879,11 +5906,14 @@ const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.t
5879
5906
  const Margins_1 = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
5880
5907
  const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/index.ts");
5881
5908
  const Options_1 = __webpack_require__(/*! ../Options */ "./src/components/Options/index.ts");
5882
- const Position_1 = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
5909
+ const PositionAnimated_1 = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
5883
5910
  const SelectAddon_1 = __importDefault(__webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx"));
5884
5911
  const MultiSelectAnchor_1 = __importDefault(__webpack_require__(/*! ./MultiSelectAnchor */ "./src/components/MultiSelect/MultiSelectAnchor.tsx"));
5885
5912
  const SelectedOptions_1 = __webpack_require__(/*! ./SelectedOptions */ "./src/components/MultiSelect/SelectedOptions.tsx");
5886
- const MultiSelect = (0, react_1.forwardRef)(({ value, filter, setFilter, options = [], error, disabled, anchor: Anchor = MultiSelectAnchor_1.default, onChange = () => { }, getLabel = ([, label] = ['', '']) => label, getValue = ([value]) => value, placeholder, renderOptions: _Options = Options_1.Options, renderItem, customEmpty, renderSelected: RenderSelected, addonIcon, ...props }, ref) => {
5913
+ /**
5914
+ * An input for selection of options.
5915
+ */
5916
+ function MultiSelect({ ref, value, filter, setFilter, options = [], error, disabled, anchor: Anchor = MultiSelectAnchor_1.default, onChange = () => { }, getLabel = ([, label] = ['', '']) => label, getValue = ([value]) => value, placeholder, renderOptions: _Options = Options_1.Options, renderItem, customEmpty, renderSelected: RenderSelected, addonIcon, ...props }) {
5887
5917
  const [internalValue, setInternalValue] = (0, react_1.useState)(value || []);
5888
5918
  (0, react_1.useEffect)(() => setInternalValue(value || []), [value]);
5889
5919
  const [currentOptionValue, setCurrentOption] = (0, react_1.useState)();
@@ -5918,15 +5948,6 @@ const MultiSelect = (0, react_1.forwardRef)(({ value, filter, setFilter, options
5918
5948
  const anchorRef = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
5919
5949
  const { ref: containerRef, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
5920
5950
  (0, fuselage_hooks_1.useOutsideClick)([containerRef], removeFocusClass);
5921
- const renderAnchor = (params) => {
5922
- if ((0, isForwardRefType_1.isForwardRefType)(Anchor)) {
5923
- return (0, jsx_runtime_1.jsx)(Anchor, { ...params });
5924
- }
5925
- if (typeof Anchor === 'function') {
5926
- return Anchor(params);
5927
- }
5928
- return null;
5929
- };
5930
5951
  const handleClick = (0, fuselage_hooks_1.useStableCallback)(() => {
5931
5952
  if (visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE) {
5932
5953
  return hide();
@@ -5936,26 +5957,7 @@ const MultiSelect = (0, react_1.forwardRef)(({ value, filter, setFilter, options
5936
5957
  });
5937
5958
  const listboxId = props.id ? `${props.id}-listbox` : undefined;
5938
5959
  const { id, name, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, 'aria-required': ariaRequired, ...containerProps } = props;
5939
- return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: handleClick, disabled: disabled, ...containerProps, children: [(0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(Flex_1.FlexContainer, { children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', children: (0, jsx_runtime_1.jsxs)(Margins_1.Margins, { all: 'x4', children: [renderAnchor({
5940
- 'ref': anchorRef,
5941
- 'children': internalValue.length === 0 ? placeholder : null,
5942
- 'disabled': disabled ?? false,
5943
- 'onClick': show,
5944
- 'onBlur': hide,
5945
- 'onKeyDown': handleKeyDown,
5946
- 'onKeyUp': handleKeyUp,
5947
- 'role': 'combobox',
5948
- 'aria-expanded': visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE,
5949
- 'aria-haspopup': 'listbox',
5950
- 'aria-controls': listboxId,
5951
- id,
5952
- name,
5953
- 'aria-label': ariaLabel,
5954
- 'aria-labelledby': ariaLabelledBy,
5955
- 'aria-describedby': ariaDescribedBy,
5956
- 'aria-invalid': ariaInvalid,
5957
- 'aria-required': ariaRequired,
5958
- }), internalValue.map((value) => {
5960
+ return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: handleClick, disabled: disabled, ...containerProps, children: [(0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(Flex_1.FlexContainer, { children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', children: (0, jsx_runtime_1.jsxs)(Margins_1.Margins, { all: 'x4', children: [(0, jsx_runtime_1.jsx)(Anchor, { ref: anchorRef, disabled: disabled ?? false, onClick: show, onBlur: hide, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, role: 'combobox', "aria-expanded": visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE, "aria-haspopup": 'listbox', "aria-controls": listboxId, id: id, name: name, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, children: internalValue.length === 0 ? placeholder : null }), internalValue.map((value) => {
5959
5961
  const currentOption = options.find(([val]) => val === value);
5960
5962
  return RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { value: value, label: getLabel(currentOption), onMouseDown: (e) => {
5961
5963
  (0, prevent_1.prevent)(e);
@@ -5968,8 +5970,8 @@ const MultiSelect = (0, react_1.forwardRef)(({ value, filter, setFilter, options
5968
5970
  }, children: getLabel(currentOption) }, String(value)));
5969
5971
  })] }) }) }) }) }) }), (0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 0, shrink: 0, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
5970
5972
  ? 'chevron-up'
5971
- : addonIcon || 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.Position, { anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, renderItem: renderItem || Option_1.CheckOption, id: listboxId, options: filteredOptions, onSelect: internalChanged, cursor: cursor, customEmpty: customEmpty }) }) })] }));
5972
- });
5973
+ : addonIcon || 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, renderItem: renderItem || Option_1.CheckOption, id: listboxId, options: filteredOptions, onSelect: internalChanged, cursor: cursor, customEmpty: customEmpty }) })] }));
5974
+ }
5973
5975
  exports["default"] = MultiSelect;
5974
5976
 
5975
5977
 
@@ -5987,11 +5989,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5987
5989
  };
5988
5990
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5989
5991
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
5990
- const react_1 = __webpack_require__(/*! react */ "react");
5991
5992
  const SelectFocus_1 = __importDefault(__webpack_require__(/*! ../Select/SelectFocus */ "./src/components/Select/SelectFocus.tsx"));
5992
- const MultiSelectAnchor = (0, react_1.forwardRef)(function MultiSelectAnchor({ children, ...props }, ref) {
5993
- return ((0, jsx_runtime_1.jsx)(SelectFocus_1.default, { "rcx-input-box--undecorated": true, ref: ref, order: 1, ...props, children: children }));
5994
- });
5993
+ function MultiSelectAnchor(props) {
5994
+ return (0, jsx_runtime_1.jsx)(SelectFocus_1.default, { "rcx-input-box--undecorated": true, order: 1, ...props });
5995
+ }
5995
5996
  exports["default"] = MultiSelectAnchor;
5996
5997
 
5997
5998
 
@@ -6012,10 +6013,15 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
6012
6013
  const react_1 = __webpack_require__(/*! react */ "react");
6013
6014
  const MultiSelect_1 = __importDefault(__webpack_require__(/*! ./MultiSelect */ "./src/components/MultiSelect/MultiSelect.tsx"));
6014
6015
  const MultiSelectFilteredAnchor_1 = __importDefault(__webpack_require__(/*! ./MultiSelectFilteredAnchor */ "./src/components/MultiSelect/MultiSelectFilteredAnchor.tsx"));
6015
- const MultiSelectFiltered = (0, react_1.forwardRef)(({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }, ref) => {
6016
+ const MultiSelectFilteredContext_1 = __webpack_require__(/*! ./MultiSelectFilteredContext */ "./src/components/MultiSelect/MultiSelectFilteredContext.ts");
6017
+ function MultiSelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }) {
6016
6018
  const [filter, setFilter] = (0, react_1.useState)('');
6017
- return ((0, jsx_runtime_1.jsx)(MultiSelect_1.default, { ...props, ref: ref, filter: propFilter || filter, setFilter: propSetFilter || setFilter, options: options, anchor: (params) => ((0, jsx_runtime_1.jsx)(MultiSelectFilteredAnchor_1.default, { placeholder: placeholder, filter: propFilter || filter, onChangeFilter: propSetFilter || setFilter, ...params })) }));
6018
- });
6019
+ return ((0, jsx_runtime_1.jsx)(MultiSelectFilteredContext_1.MultiSelectFilteredContext.Provider, { value: {
6020
+ placeholder,
6021
+ filter: propFilter || filter,
6022
+ setFilter: propSetFilter || setFilter,
6023
+ }, children: (0, jsx_runtime_1.jsx)(MultiSelect_1.default, { ...props, filter: propFilter || filter, setFilter: propSetFilter || setFilter, options: options, anchor: MultiSelectFilteredAnchor_1.default }) }));
6024
+ }
6019
6025
  exports["default"] = MultiSelectFiltered;
6020
6026
 
6021
6027
 
@@ -6033,12 +6039,29 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
6033
6039
  const react_1 = __webpack_require__(/*! react */ "react");
6034
6040
  const Flex_1 = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
6035
6041
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
6036
- const MultiSelectFilteredAnchor = (0, react_1.forwardRef)(function MultiSelectFilteredAnchor({ children: _children, filter, onChangeFilter, placeholder, ...props }, ref) {
6037
- return ((0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(InputBox_1.Input, { ref: ref, placeholder: placeholder, value: filter, onInput: (e) => onChangeFilter(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true, order: 1, autoComplete: 'off' }) }));
6038
- });
6042
+ const MultiSelectFilteredContext_1 = __webpack_require__(/*! ./MultiSelectFilteredContext */ "./src/components/MultiSelect/MultiSelectFilteredContext.ts");
6043
+ function MultiSelectFilteredAnchor({ children: _children, ...props }) {
6044
+ const { placeholder, filter, setFilter } = (0, react_1.use)(MultiSelectFilteredContext_1.MultiSelectFilteredContext);
6045
+ return ((0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(InputBox_1.Input, { placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true, order: 1, autoComplete: 'off' }) }));
6046
+ }
6039
6047
  exports["default"] = MultiSelectFilteredAnchor;
6040
6048
 
6041
6049
 
6050
+ /***/ },
6051
+
6052
+ /***/ "./src/components/MultiSelect/MultiSelectFilteredContext.ts"
6053
+ /*!******************************************************************!*\
6054
+ !*** ./src/components/MultiSelect/MultiSelectFilteredContext.ts ***!
6055
+ \******************************************************************/
6056
+ (__unused_webpack_module, exports, __webpack_require__) {
6057
+
6058
+
6059
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
6060
+ exports.MultiSelectFilteredContext = void 0;
6061
+ const react_1 = __webpack_require__(/*! react */ "react");
6062
+ exports.MultiSelectFilteredContext = (0, react_1.createContext)({});
6063
+
6064
+
6042
6065
  /***/ },
6043
6066
 
6044
6067
  /***/ "./src/components/MultiSelect/SelectedOptions.tsx"
@@ -6120,9 +6143,10 @@ exports["default"] = NavBarDivider;
6120
6143
 
6121
6144
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6122
6145
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6123
- const react_1 = __webpack_require__(/*! react */ "react");
6124
6146
  const ButtonGroup_1 = __webpack_require__(/*! ../ButtonGroup */ "./src/components/ButtonGroup/index.ts");
6125
- const NavBarGroup = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { className: 'rcx-navbar-group', ref: ref, ...props })));
6147
+ function NavBarGroup(props) {
6148
+ return (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { className: 'rcx-navbar-group', ...props });
6149
+ }
6126
6150
  exports["default"] = NavBarGroup;
6127
6151
 
6128
6152
 
@@ -6137,17 +6161,15 @@ exports["default"] = NavBarGroup;
6137
6161
 
6138
6162
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6139
6163
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6140
- const react_1 = __webpack_require__(/*! react */ "react");
6141
6164
  const appendClassName_1 = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
6142
6165
  const patchChildren_1 = __webpack_require__(/*! ../../helpers/patchChildren */ "./src/helpers/patchChildren.ts");
6143
6166
  const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
6144
- const NavBarItem = (0, react_1.forwardRef)(function NavBarItem({ children, icon, ...props }, ref) {
6145
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ? ((0, jsx_runtime_1.jsx)(Button_1.IconButton, { ref: ref, "rcx-navbar-item": true, icon: icon, small: true, ...props })) : ((0, patchChildren_1.patchChildren)(children, (childProps) => ({
6167
+ function NavBarItem({ children, icon, ...props }) {
6168
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ? ((0, jsx_runtime_1.jsx)(Button_1.IconButton, { "rcx-navbar-item": true, icon: icon, small: true, ...props })) : ((0, patchChildren_1.patchChildren)(children, (childProps) => ({
6146
6169
  className: (0, appendClassName_1.appendClassName)(childProps.className, 'rcx-navbar-item'),
6147
- ref,
6148
6170
  ...props,
6149
6171
  }))) }));
6150
- });
6172
+ }
6151
6173
  exports["default"] = NavBarItem;
6152
6174
 
6153
6175
 
@@ -6166,17 +6188,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6166
6188
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6167
6189
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6168
6190
  const react_1 = __webpack_require__(/*! react */ "react");
6191
+ const react_is_1 = __webpack_require__(/*! react-is */ "react-is");
6192
+ const react_keyed_flatten_children_1 = __importDefault(__webpack_require__(/*! react-keyed-flatten-children */ "react-keyed-flatten-children"));
6169
6193
  const NavBarDivider_1 = __importDefault(__webpack_require__(/*! ./NavBarDivider */ "./src/components/NavBar/NavBarDivider.tsx"));
6170
- const NavBarGroup_1 = __importDefault(__webpack_require__(/*! ./NavBarGroup */ "./src/components/NavBar/NavBarGroup.tsx"));
6171
- const isNavBarGroup = (child) => {
6172
- if (!(0, react_1.isValidElement)(child))
6173
- return false;
6174
- const component = child.type;
6175
- return component.displayName === NavBarGroup_1.default.displayName;
6176
- };
6177
6194
  const NavBarSection = ({ children, ...props }) => {
6178
- const validChildren = react_1.Children.toArray(children).filter(isNavBarGroup);
6179
- return ((0, jsx_runtime_1.jsx)("span", { className: 'rcx-navbar-section', ...props, children: react_1.Children.toArray(children).map((child, index) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [child, index < validChildren.length - 1 && (0, jsx_runtime_1.jsx)(NavBarDivider_1.default, {})] }, index))) }));
6195
+ const groups = (0, react_keyed_flatten_children_1.default)(children).filter(react_is_1.isElement);
6196
+ return ((0, jsx_runtime_1.jsx)("span", { className: 'rcx-navbar-section', ...props, children: groups.map((child, index) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [child, index < groups.length - 1 && (0, jsx_runtime_1.jsx)(NavBarDivider_1.default, {})] }, index))) }));
6180
6197
  };
6181
6198
  exports["default"] = NavBarSection;
6182
6199
 
@@ -6218,11 +6235,13 @@ Object.defineProperty(exports, "NavBarSection", ({ enumerable: true, get: functi
6218
6235
 
6219
6236
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6220
6237
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6221
- const react_1 = __webpack_require__(/*! react */ "react");
6222
6238
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
6223
- const NumberInput = (0, react_1.forwardRef)(function NumberInput(props, ref) {
6224
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'number', ref: ref, ...props });
6225
- });
6239
+ /**
6240
+ * An input for numbers.
6241
+ */
6242
+ function NumberInput(props) {
6243
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'number', ...props });
6244
+ }
6226
6245
  exports["default"] = NumberInput;
6227
6246
 
6228
6247
 
@@ -6288,8 +6307,11 @@ const OptionAvatar_1 = __importDefault(__webpack_require__(/*! ./OptionAvatar */
6288
6307
  const OptionColumn_1 = __importDefault(__webpack_require__(/*! ./OptionColumn */ "./src/components/Option/OptionColumn.tsx"));
6289
6308
  const OptionContent_1 = __importDefault(__webpack_require__(/*! ./OptionContent */ "./src/components/Option/OptionContent.tsx"));
6290
6309
  const OptionIcon_1 = __importDefault(__webpack_require__(/*! ./OptionIcon */ "./src/components/Option/OptionIcon.tsx"));
6291
- const Option = (0, react_2.forwardRef)(function Option({ is: Tag = 'li', id, children, label, focus, selected, className, icon, gap, avatar, title, disabled, variant, onClick, description, ...props }, ref) {
6292
- return ((0, react_1.createElement)(Tag, { ...props, key: id, id: id, ref: ref, "aria-selected": !!selected, "aria-disabled": !!disabled, title: title, onClick: (e) => {
6310
+ /**
6311
+ * The generic `Option` item of options. Can be freely used or inside the `Options` as well.
6312
+ */
6313
+ function Option({ is: Tag = 'li', id, children, label, focus, selected, className, icon, gap, avatar, title, disabled, variant, onClick, description, ...props }) {
6314
+ return ((0, react_1.createElement)(Tag, { ...props, key: id, id: id, "aria-selected": !!selected, "aria-disabled": !!disabled, title: title, onClick: (e) => {
6293
6315
  if (disabled) {
6294
6316
  (0, prevent_1.prevent)(e);
6295
6317
  return;
@@ -6311,7 +6333,7 @@ const Option = (0, react_2.forwardRef)(function Option({ is: Tag = 'li', id, chi
6311
6333
  ]
6312
6334
  .filter(Boolean)
6313
6335
  .join(' '), children: [avatar && (0, jsx_runtime_1.jsx)(OptionAvatar_1.default, { children: avatar }), icon && (0, jsx_runtime_1.jsx)(OptionIcon_1.default, { name: icon }), gap && (0, jsx_runtime_1.jsx)(OptionColumn_1.default, {}), label && (0, jsx_runtime_1.jsx)(OptionContent_1.default, { children: label }), label !== children && children] })));
6314
- });
6336
+ }
6315
6337
  exports["default"] = (0, react_2.memo)(Option);
6316
6338
 
6317
6339
 
@@ -6561,13 +6583,12 @@ Object.defineProperty(exports, "OptionHeader", ({ enumerable: true, get: functio
6561
6583
 
6562
6584
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6563
6585
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6564
- const react_1 = __webpack_require__(/*! react */ "react");
6565
6586
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
6566
6587
  const Scrollable_1 = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
6567
6588
  const Tile_1 = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
6568
- const OptionContainer = (0, react_1.forwardRef)(function OptionContainer({ children, ...props }, ref) {
6569
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, children: (0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, smooth: true, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { ref: ref, elevation: '0', padding: 'none', maxHeight: 'x240', ...props, children: children }) }) }) }));
6570
- });
6589
+ function OptionContainer(props) {
6590
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, children: (0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, smooth: true, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { elevation: '0', padding: 'none', maxHeight: 'x240', ...props }) }) }) }));
6591
+ }
6571
6592
  exports["default"] = OptionContainer;
6572
6593
 
6573
6594
 
@@ -6592,7 +6613,10 @@ const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/i
6592
6613
  const Scrollable_1 = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
6593
6614
  const Tile_1 = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
6594
6615
  const OptionsEmpty_1 = __importDefault(__webpack_require__(/*! ./OptionsEmpty */ "./src/components/Options/OptionsEmpty.tsx"));
6595
- const Options = (0, react_1.forwardRef)(function Options({ maxHeight = 'x144', multiple, renderEmpty: EmptyComponent = OptionsEmpty_1.default, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, customEmpty, id, ...props }, ref) {
6616
+ /**
6617
+ * An input for selection of options.
6618
+ */
6619
+ function Options({ maxHeight = 'x144', multiple, renderEmpty: EmptyComponent = OptionsEmpty_1.default, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, customEmpty, id, ...props }) {
6596
6620
  const liRef = (0, react_1.useRef)(null);
6597
6621
  (0, react_1.useLayoutEffect)(() => {
6598
6622
  if (!liRef.current) {
@@ -6609,7 +6633,7 @@ const Options = (0, react_1.forwardRef)(function Options({ maxHeight = 'x144', m
6609
6633
  current.scrollTop = li.offsetTop;
6610
6634
  }
6611
6635
  }, [cursor]);
6612
- const optionsMemoized = (0, react_1.useMemo)(() => options?.map(([value, label, selected, disabled, type, url], i) => {
6636
+ const optionsMemoized = (0, react_1.useMemo)(() => options.map(([value, label, selected, disabled, type, url], i) => {
6613
6637
  switch (type) {
6614
6638
  case 'heading':
6615
6639
  return (0, jsx_runtime_1.jsx)(Option_1.OptionHeader, { children: label }, value);
@@ -6617,19 +6641,17 @@ const Options = (0, react_1.forwardRef)(function Options({ maxHeight = 'x144', m
6617
6641
  return (0, jsx_runtime_1.jsx)(Option_1.OptionDivider, {}, value);
6618
6642
  default:
6619
6643
  return ((0, jsx_runtime_1.jsx)(OptionComponent, { role: 'option', label: label, onMouseDown: (e) => {
6620
- if (disabled) {
6644
+ if (disabled)
6621
6645
  return;
6622
- }
6623
6646
  (0, prevent_1.prevent)(e);
6624
6647
  onSelect([value, label, selected, disabled, type, url]);
6625
- return false;
6626
- }, value: value, selected: selected || (multiple !== true && undefined), disabled: disabled, focus: cursor === i || undefined }, value));
6648
+ }, value: value, selected: selected, disabled: disabled, focus: cursor === i }, value));
6627
6649
  }
6628
- }), [options, multiple, cursor, onSelect, OptionComponent]);
6629
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: (0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, smooth: true, children: (0, jsx_runtime_1.jsxs)(Tile_1.Tile, { ref: liRef, elevation: '0', padding: 'none', maxHeight: maxHeight, onMouseDown: prevent_1.prevent, onClick: prevent_1.prevent, is: 'ol', "aria-multiselectable": multiple || true, role: 'listbox', id: id, "aria-activedescendant": options?.[cursor]?.[0]
6650
+ }), [options, cursor, onSelect, OptionComponent]);
6651
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: (0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, smooth: true, children: (0, jsx_runtime_1.jsxs)(Tile_1.Tile, { ref: liRef, elevation: '0', padding: 'none', maxHeight: maxHeight, onMouseDown: prevent_1.prevent, onClick: prevent_1.prevent, is: 'ol', "aria-multiselectable": multiple || true, role: 'listbox', id: id, "aria-activedescendant": options?.[cursor]?.[0]
6630
6652
  ? String(options?.[cursor]?.[0])
6631
6653
  : undefined, children: [!options.length && (0, jsx_runtime_1.jsx)(EmptyComponent, { customEmpty: customEmpty }), optionsMemoized] }) }) }) }));
6632
- });
6654
+ }
6633
6655
  exports["default"] = Options;
6634
6656
 
6635
6657
 
@@ -6763,7 +6785,7 @@ const useCursor = (initial, options, onChange) => {
6763
6785
  e.preventDefault();
6764
6786
  if (visibility === AnimatedVisibility_1.AnimatedVisibility.VISIBLE) {
6765
6787
  e.persist();
6766
- e.nativeEvent.stopImmediatePropagation();
6788
+ e.nativeEvent.stopImmediatePropagation(); // TODO
6767
6789
  e.stopPropagation();
6768
6790
  }
6769
6791
  hide();
@@ -6775,7 +6797,7 @@ const useCursor = (initial, options, onChange) => {
6775
6797
  hide();
6776
6798
  if (visibility === AnimatedVisibility_1.AnimatedVisibility.VISIBLE) {
6777
6799
  e.persist();
6778
- e.nativeEvent.stopImmediatePropagation();
6800
+ e.nativeEvent.stopImmediatePropagation(); // TODO
6779
6801
  e.stopPropagation();
6780
6802
  return false;
6781
6803
  }
@@ -6831,7 +6853,8 @@ exports.useVisible = useVisible;
6831
6853
 
6832
6854
 
6833
6855
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6834
- exports.useVisible = exports.OptionsPaginated = exports.CheckOption = exports.Empty = void 0;
6856
+ exports.useVisible = exports.CheckOption = exports.Empty = void 0;
6857
+ exports.OptionsPaginated = OptionsPaginated;
6835
6858
  const react_1 = __webpack_require__(/*! react */ "react");
6836
6859
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6837
6860
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
@@ -6847,7 +6870,10 @@ exports.Empty = (0, react_2.memo)(() => (0, jsx_runtime_1.jsx)(Option_1.Option,
6847
6870
  exports.CheckOption = (0, react_2.memo)(function CheckOption({ selected, children: label, ...options }) {
6848
6871
  return ((0, jsx_runtime_1.jsx)(Option_1.Option, { label: label, selected: selected, ...options, children: (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { checked: selected }) }));
6849
6872
  });
6850
- exports.OptionsPaginated = (0, react_2.forwardRef)(({ withTitle, multiple, renderEmpty: EmptyComponent = exports.Empty, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, endReached, ...props }, ref) => {
6873
+ /**
6874
+ * An input for selection of options.
6875
+ */
6876
+ function OptionsPaginated({ ref, withTitle, multiple, renderEmpty: EmptyComponent = exports.Empty, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, endReached, ...props }) {
6851
6877
  const OptionsComponentWithData = ({ index, data, }) => {
6852
6878
  const { value, label, selected } = data;
6853
6879
  return ((0, react_1.createElement)(OptionComponent, { ...(withTitle && { title: label }), index: index, role: 'option', label: label, onMouseDown: (e) => {
@@ -6856,8 +6882,11 @@ exports.OptionsPaginated = (0, react_2.forwardRef)(({ withTitle, multiple, rende
6856
6882
  return false;
6857
6883
  }, key: value, value: value, selected: selected || (multiple !== true && undefined), focus: cursor === index || undefined }));
6858
6884
  };
6859
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: !options.length ? ((0, jsx_runtime_1.jsx)(EmptyComponent, {})) : ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options, itemContent: (index, data) => ((0, jsx_runtime_1.jsx)(OptionsComponentWithData, { index: index, data: data })) })) }) }));
6860
- });
6885
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: !options.length ? ((0, jsx_runtime_1.jsx)(EmptyComponent, {})) : ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
6886
+ // TODO Add a scroller element
6887
+ // components={{ Scroller: ScrollableContentWrapper }}
6888
+ itemContent: (index, data) => ((0, jsx_runtime_1.jsx)(OptionsComponentWithData, { index: index, data: data })) })) }) }));
6889
+ }
6861
6890
  const useVisible = (initialVisibility = AnimatedVisibility_1.AnimatedVisibility.HIDDEN) => {
6862
6891
  const [visible, setVisible] = (0, fuselage_hooks_1.useDebouncedState)(initialVisibility, 10);
6863
6892
  const hide = (0, fuselage_hooks_1.useStableCallback)(() => setVisible(AnimatedVisibility_1.AnimatedVisibility.HIDDEN));
@@ -6920,7 +6949,7 @@ const Margins_1 = __webpack_require__(/*! ../Margins */ "./src/components/Margin
6920
6949
  const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/index.ts");
6921
6950
  const useVisible_1 = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
6922
6951
  const OptionsPaginated_1 = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
6923
- const Position_1 = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
6952
+ const PositionAnimated_1 = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
6924
6953
  const SelectAddon_1 = __importDefault(__webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx"));
6925
6954
  const SelectFocus_1 = __importDefault(__webpack_require__(/*! ../Select/SelectFocus */ "./src/components/Select/SelectFocus.tsx"));
6926
6955
  const PaginatedMultiSelect = ({ withTitle, value, filter, options = [], error, disabled, anchor: Anchor = SelectFocus_1.default, onChange = () => { }, placeholder, renderOptions: OptionsComponent = OptionsPaginated_1.OptionsPaginated, renderItem = Option_1.Option, endReached, ...props }) => {
@@ -6965,9 +6994,9 @@ const PaginatedMultiSelect = ({ withTitle, value, filter, options = [], error, d
6965
6994
  removeOption(value);
6966
6995
  }, children: label }, value ?? index)))] }) }) }) }) }) }), (0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 0, shrink: 0, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
6967
6996
  ? 'cross'
6968
- : 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.Position, { anchor: containerRef, children: (0, jsx_runtime_1.jsx)(OptionsComponent, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, role: 'listbox', options: options, cursor: -1, endReached: endReached, renderItem: renderItem, onSelect: ([value]) => {
6969
- toggleOption(value);
6970
- } }) }) })] }));
6997
+ : 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(OptionsComponent, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, role: 'listbox', options: options, cursor: -1, endReached: endReached, renderItem: renderItem, onSelect: ([value]) => {
6998
+ toggleOption(value);
6999
+ } }) })] }));
6971
7000
  };
6972
7001
  exports["default"] = PaginatedMultiSelect;
6973
7002
 
@@ -6986,12 +7015,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6986
7015
  };
6987
7016
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6988
7017
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
6989
- const react_1 = __webpack_require__(/*! react */ "react");
7018
+ const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
6990
7019
  const Flex_1 = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
6991
7020
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
6992
7021
  const PaginatedMultiSelect_1 = __importDefault(__webpack_require__(/*! ./PaginatedMultiSelect */ "./src/components/PaginatedSelect/PaginatedMultiSelect.tsx"));
6993
7022
  const PaginatedMultiSelectFiltered = ({ filter, setFilter, options, placeholder, ...props }) => {
6994
- const anchor = (0, react_1.useCallback)((0, react_1.forwardRef)(({ children: _children, filter, ...props }, ref) => ((0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(InputBox_1.Input, { ref: ref, placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true }) }))), []);
7023
+ const anchor = (0, fuselage_hooks_1.useStableCallback)(({ children: _children, filter, ...props }) => ((0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(InputBox_1.Input, { placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true }) })));
6995
7024
  return ((0, jsx_runtime_1.jsx)(PaginatedMultiSelect_1.default, { filter: filter, options: options, anchor: anchor, ...props }));
6996
7025
  };
6997
7026
  exports["default"] = PaginatedMultiSelectFiltered;
@@ -7033,7 +7062,7 @@ const PaginatedSelect = ({ value, withTitle, filter, setFilter: _setFilter, erro
7033
7062
  const [visible, hide, show] = (0, useVisible_1.useVisible)();
7034
7063
  const internalChangedByClick = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
7035
7064
  setInternalValue(value);
7036
- onChange(value);
7065
+ onChange(value); // FIXME
7037
7066
  hide();
7038
7067
  });
7039
7068
  const ref = (0, react_1.useRef)(null);
@@ -7070,14 +7099,13 @@ exports.PaginatedSelect = PaginatedSelect;
7070
7099
 
7071
7100
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7072
7101
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7073
- const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
7074
7102
  const react_1 = __webpack_require__(/*! react */ "react");
7075
7103
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
7076
7104
  const PaginatedSelect_1 = __webpack_require__(/*! ./PaginatedSelect */ "./src/components/PaginatedSelect/PaginatedSelect.tsx");
7077
7105
  const PaginatedSelectFiltered = ({ filter, setFilter, options, placeholder, ...props }) => {
7078
- const anchor = (0, react_1.useMemo)(() => (0, react_1.forwardRef)(({ filter, onChange: _onChange, ...props }, ref) => ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { mi: 4, flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onChange: (0, fuselage_hooks_1.useStableCallback)((e) => {
7106
+ const anchor = (0, react_1.useMemo)(() => ({ filter, onChange: _onChange, ...props }) => ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { mi: 4, flexGrow: 1, className: 'rcx-select__focus', placeholder: placeholder, value: filter, onChange: (e) => {
7079
7107
  setFilter(e.currentTarget.value);
7080
- }), ...props, "rcx-input-box--undecorated": true }))), [placeholder, setFilter]);
7108
+ }, ...props, "rcx-input-box--undecorated": true })), [placeholder, setFilter]);
7081
7109
  return ((0, jsx_runtime_1.jsx)(PaginatedSelect_1.PaginatedSelect, { placeholder: undefined, filter: filter, options: options, ...props, anchor: anchor }));
7082
7110
  };
7083
7111
  exports["default"] = PaginatedSelectFiltered;
@@ -7094,11 +7122,10 @@ exports["default"] = PaginatedSelectFiltered;
7094
7122
 
7095
7123
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7096
7124
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7097
- const react_1 = __webpack_require__(/*! react */ "react");
7098
7125
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
7099
- const PaginatedSelectWrapper = (0, react_1.forwardRef)(function PaginatedSelectWrapper(props, ref) {
7100
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__wrapper": true, ref: ref, ...props });
7101
- });
7126
+ function PaginatedSelectWrapper(props) {
7127
+ return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__wrapper": true, ...props });
7128
+ }
7102
7129
  exports["default"] = PaginatedSelectWrapper;
7103
7130
 
7104
7131
 
@@ -7146,14 +7173,18 @@ const Pagination = ({ count, current = 0, itemsPerPage = 25, itemsPerPageLabel =
7146
7173
  const pages = Math.ceil(count / itemsPerPage);
7147
7174
  const displayedPages = (0, react_1.useMemo)(() => {
7148
7175
  if (pages <= 7) {
7176
+ // 0 1 2 3 4 5 6
7149
7177
  return Array.from({ length: pages }, (_, i) => i);
7150
7178
  }
7151
7179
  if (currentPage < 5) {
7180
+ // 0 1 2 3 4 ... N
7152
7181
  return [0, 1, 2, 3, 4, '⋯', pages - 1];
7153
7182
  }
7154
7183
  if (currentPage > pages - 5) {
7184
+ // 0 ... N-4 N-3 N-2 N-1 N
7155
7185
  return [0, '⋯', pages - 5, pages - 4, pages - 3, pages - 2, pages - 1];
7156
7186
  }
7187
+ // 0 ... x-1 x x-2 ... N
7157
7188
  return [
7158
7189
  0,
7159
7190
  '⋯',
@@ -7220,6 +7251,13 @@ const themes = {
7220
7251
  dark: themePalettes_1.dark,
7221
7252
  'high-contrast': themePalettes_1.highContrast,
7222
7253
  };
7254
+ /**
7255
+ * Style tag to handle the theme of the application.
7256
+ *
7257
+ * Import `PaletteStyleTag` and use it on the application informing the desired theme.
7258
+ *
7259
+ * Toggle the theme on Storybook's Control panel to see the color changes.
7260
+ */
7223
7261
  function PaletteStyleTag({ theme = 'light', tagId = 'main-palette', prefix = '--rcx-color', selector, palette, }) {
7224
7262
  const themePalette = palette || (0, convertToCss_1.convertToCss)(themes[theme], prefix, selector);
7225
7263
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)(themePalette, (0, useCreateStyleContainer_1.useCreateStyleContainer)(tagId)) });
@@ -7700,16 +7738,15 @@ exports.dark = (0, getPalette_1.getThemePalette)('dark');
7700
7738
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7701
7739
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7702
7740
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
7703
- const react_1 = __webpack_require__(/*! react */ "react");
7704
7741
  const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
7705
7742
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
7706
- const PasswordInput = (0, react_1.forwardRef)(function PasswordInput(props, ref) {
7743
+ function PasswordInput(props) {
7707
7744
  const [hidden, toggle] = (0, fuselage_hooks_1.useToggle)(true);
7708
7745
  const handleAddonClick = () => {
7709
7746
  toggle();
7710
7747
  };
7711
- return ((0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: hidden ? 'password' : 'text', addon: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: hidden ? 'eye-off' : 'eye', size: 20, onClick: handleAddonClick }), ref: ref, ...props }));
7712
- });
7748
+ return ((0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: hidden ? 'password' : 'text', endAddon: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: hidden ? 'eye-off' : 'eye', size: 20, onClick: handleAddonClick }), ...props }));
7749
+ }
7713
7750
  exports["default"] = PasswordInput;
7714
7751
 
7715
7752
 
@@ -7779,10 +7816,10 @@ Object.defineProperty(exports, "Popover", ({ enumerable: true, get: function ()
7779
7816
 
7780
7817
  /***/ },
7781
7818
 
7782
- /***/ "./src/components/Position/Position.tsx"
7783
- /*!**********************************************!*\
7784
- !*** ./src/components/Position/Position.tsx ***!
7785
- \**********************************************/
7819
+ /***/ "./src/components/PositionAnimated/Position.tsx"
7820
+ /*!******************************************************!*\
7821
+ !*** ./src/components/PositionAnimated/Position.tsx ***!
7822
+ \******************************************************/
7786
7823
  (__unused_webpack_module, exports, __webpack_require__) {
7787
7824
 
7788
7825
 
@@ -7821,24 +7858,6 @@ const Position = ({ anchor, children, placement, margin, className: _className,
7821
7858
  exports["default"] = Position;
7822
7859
 
7823
7860
 
7824
- /***/ },
7825
-
7826
- /***/ "./src/components/Position/index.ts"
7827
- /*!******************************************!*\
7828
- !*** ./src/components/Position/index.ts ***!
7829
- \******************************************/
7830
- (__unused_webpack_module, exports, __webpack_require__) {
7831
-
7832
-
7833
- var __importDefault = (this && this.__importDefault) || function (mod) {
7834
- return (mod && mod.__esModule) ? mod : { "default": mod };
7835
- };
7836
- Object.defineProperty(exports, "__esModule", ({ value: true }));
7837
- exports.Position = void 0;
7838
- var Position_1 = __webpack_require__(/*! ./Position */ "./src/components/Position/Position.tsx");
7839
- Object.defineProperty(exports, "Position", ({ enumerable: true, get: function () { return __importDefault(Position_1).default; } }));
7840
-
7841
-
7842
7861
  /***/ },
7843
7862
 
7844
7863
  /***/ "./src/components/PositionAnimated/PositionAnimated.tsx"
@@ -7848,11 +7867,14 @@ Object.defineProperty(exports, "Position", ({ enumerable: true, get: function ()
7848
7867
  (__unused_webpack_module, exports, __webpack_require__) {
7849
7868
 
7850
7869
 
7870
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7871
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7872
+ };
7851
7873
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7852
7874
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7853
7875
  const AnimatedVisibility_1 = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
7854
- const Position_1 = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
7855
- const PositionAnimated = ({ width: _width, visible, children, ...props }) => ((0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.Position, { ...props, children: children }) }));
7876
+ const Position_1 = __importDefault(__webpack_require__(/*! ./Position */ "./src/components/PositionAnimated/Position.tsx"));
7877
+ const PositionAnimated = ({ width: _width, visible, children, ...props }) => ((0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.default, { ...props, children: children }) }));
7856
7878
  exports["default"] = PositionAnimated;
7857
7879
 
7858
7880
 
@@ -7885,7 +7907,6 @@ Object.defineProperty(exports, "PositionAnimated", ({ enumerable: true, get: fun
7885
7907
 
7886
7908
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7887
7909
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7888
- const react_1 = __webpack_require__(/*! react */ "react");
7889
7910
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
7890
7911
  const getWidth = (percentage) => `${Math.min(Math.max(0, percentage), 100).toFixed(1)}%`;
7891
7912
  const colors = {
@@ -7906,9 +7927,12 @@ const getColor = (isLight, variant, error) => {
7906
7927
  }
7907
7928
  return isLight ? lightColors[variant] : colors[variant];
7908
7929
  };
7909
- const ProgressBar = (0, react_1.forwardRef)(function ProgressBar({ percentage, variant = 'info', error, animated, light = false, ...props }, ref) {
7910
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-progress-bar": true, title: error || undefined, overflow: 'hidden', ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { bg: getColor(light, variant, error), "rcx-progress-bar__fill--animated": animated, "rcx-progress-bar__fill": true, width: getWidth(percentage) }) }));
7911
- });
7930
+ /**
7931
+ * The `ProgressBar` is used to inform the user the progress of an operation.
7932
+ */
7933
+ function ProgressBar({ percentage, variant = 'info', error, animated, light = false, ...props }) {
7934
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-progress-bar": true, title: error || undefined, overflow: 'hidden', ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { bg: getColor(light, variant, error), "rcx-progress-bar__fill--animated": animated, "rcx-progress-bar__fill": true, width: getWidth(percentage) }) }));
7935
+ }
7912
7936
  exports["default"] = ProgressBar;
7913
7937
 
7914
7938
 
@@ -7941,11 +7965,10 @@ Object.defineProperty(exports, "ProgressBar", ({ enumerable: true, get: function
7941
7965
 
7942
7966
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7943
7967
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
7944
- const react_1 = __webpack_require__(/*! react */ "react");
7945
7968
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
7946
- const RadioButton = (0, react_1.forwardRef)(function RadioButton({ className, labelChildren, ...props }, ref) {
7947
- return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'label', className: className, "rcx-radio-button": true, children: [labelChildren, (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', "rcx-radio-button__input": true, type: 'radio', ref: ref, ...props }), (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-radio-button__fake": true, "aria-hidden": 'true' })] }));
7948
- });
7969
+ function RadioButton({ className, labelChildren, ...props }) {
7970
+ return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'label', className: className, "rcx-radio-button": true, children: [labelChildren, (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', "rcx-radio-button__input": true, type: 'radio', ...props }), (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-radio-button__fake": true, "aria-hidden": 'true' })] }));
7971
+ }
7949
7972
  exports["default"] = RadioButton;
7950
7973
 
7951
7974
 
@@ -8003,6 +8026,9 @@ const pollTouchingEdges = (element, touchingEdgesRef, onScrollContent) => {
8003
8026
  onScrollContent?.(newTouchingEdges);
8004
8027
  }
8005
8028
  };
8029
+ /**
8030
+ * Add scroll capability to the wrapped component.
8031
+ */
8006
8032
  const Scrollable = ({ children, horizontal, vertical, smooth, onScrollContent, }) => {
8007
8033
  const scrollTimeoutRef = (0, react_1.useRef)(undefined);
8008
8034
  const touchingEdgesRef = (0, react_1.useRef)({});
@@ -8104,11 +8130,13 @@ Object.defineProperty(exports, "Scrollable", ({ enumerable: true, get: function
8104
8130
 
8105
8131
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8106
8132
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8107
- const react_1 = __webpack_require__(/*! react */ "react");
8108
8133
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
8109
- const SearchInput = (0, react_1.forwardRef)(function SearchInput(props, ref) {
8110
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'search', ref: ref, ...props });
8111
- });
8134
+ /**
8135
+ * An input for search queries.
8136
+ */
8137
+ function SearchInput(props) {
8138
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'search', ...props });
8139
+ }
8112
8140
  exports["default"] = SearchInput;
8113
8141
 
8114
8142
 
@@ -8178,12 +8206,14 @@ function OptionAria({ item, state }) {
8178
8206
 
8179
8207
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8180
8208
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8181
- const react_1 = __webpack_require__(/*! react */ "react");
8182
8209
  const react_stately_1 = __webpack_require__(/*! react-stately */ "react-stately");
8183
8210
  const SelectAria_1 = __webpack_require__(/*! ./SelectAria */ "./src/components/Select/SelectAria.tsx");
8184
- const Select = (0, react_1.forwardRef)(function Select({ options, ...props }, ref) {
8211
+ /**
8212
+ * An input for selection of options.
8213
+ */
8214
+ function Select({ options, ref, ...props }) {
8185
8215
  return ((0, jsx_runtime_1.jsx)(SelectAria_1.SelectAria, { ref: ref, ...props, children: options.map((option) => ((0, jsx_runtime_1.jsx)(react_stately_1.Item, { title: option[1] ?? option[0], textValue: option[0], children: option[1] ?? option[0] }, option[0]))) }));
8186
- });
8216
+ }
8187
8217
  exports["default"] = Select;
8188
8218
 
8189
8219
 
@@ -8198,11 +8228,10 @@ exports["default"] = Select;
8198
8228
 
8199
8229
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8200
8230
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8201
- const react_1 = __webpack_require__(/*! react */ "react");
8202
8231
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8203
- const SelectAddon = (0, react_1.forwardRef)(function SelectAddon(props, ref) {
8204
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__addon": true, ref: ref, ...props });
8205
- });
8232
+ function SelectAddon(props) {
8233
+ return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__addon": true, ...props });
8234
+ }
8206
8235
  exports["default"] = SelectAddon;
8207
8236
 
8208
8237
 
@@ -8216,10 +8245,10 @@ exports["default"] = SelectAddon;
8216
8245
 
8217
8246
 
8218
8247
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8219
- exports.SelectAria = exports.Item = void 0;
8248
+ exports.Item = void 0;
8249
+ exports.SelectAria = SelectAria;
8220
8250
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8221
8251
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
8222
- const react_1 = __webpack_require__(/*! react */ "react");
8223
8252
  const react_aria_1 = __webpack_require__(/*! react-aria */ "react-aria");
8224
8253
  const react_stately_1 = __webpack_require__(/*! react-stately */ "react-stately");
8225
8254
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
@@ -8230,7 +8259,7 @@ const Listbox_1 = __webpack_require__(/*! ./Listbox */ "./src/components/Select/
8230
8259
  const SelectTrigger_1 = __webpack_require__(/*! ./SelectTrigger */ "./src/components/Select/SelectTrigger.tsx");
8231
8260
  var react_stately_2 = __webpack_require__(/*! react-stately */ "react-stately");
8232
8261
  Object.defineProperty(exports, "Item", ({ enumerable: true, get: function () { return react_stately_2.Item; } }));
8233
- exports.SelectAria = (0, react_1.forwardRef)(function SelectAria({ error, placeholder, value, onChange, small, isDisabled: isDisabledProps, disabled, id, ...props }, outerRef) {
8262
+ function SelectAria({ ref: outerRef, error, placeholder, value, onChange, small, isDisabled: isDisabledProps, disabled, id, ...props }) {
8234
8263
  const isDisabled = isDisabledProps || disabled;
8235
8264
  const state = (0, react_stately_1.useSelectState)({
8236
8265
  isDisabled,
@@ -8245,7 +8274,7 @@ exports.SelectAria = (0, react_1.forwardRef)(function SelectAria({ error, placeh
8245
8274
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Box_1.Box, { position: 'relative', size: 0, children: (0, jsx_runtime_1.jsx)(react_aria_1.HiddenSelect, { state: state, triggerRef: ref, label: props.label, name: props.name, isDisabled: isDisabled }) }), (0, jsx_runtime_1.jsxs)(SelectTrigger_1.SelectTrigger, { ...(0, react_aria_1.mergeProps)(focusProps, triggerProps), ref: mergedRef, small: small, focus: isFocusVisible || state.isOpen, error: error, id: id, children: [(0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', color: state.selectedItem ? 'default' : 'hint', ...valueProps, ...(small && { fontScale: 'c1' }), children: state.selectedItem ? state.selectedItem.rendered : placeholder }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { color: 'default', name: state.isOpen ? 'chevron-up' : 'chevron-down', size: 'x20' })] }), state.isOpen && ((0, jsx_runtime_1.jsx)(Popover_1.Popover, { state: state, triggerRef: ref, placement: 'bottom', offset: 4, containerPadding: 8, children: (0, jsx_runtime_1.jsx)(Options_1.OptionContainer, { style: {
8246
8275
  width: borderBoxSize?.inlineSize,
8247
8276
  }, children: (0, jsx_runtime_1.jsx)(Listbox_1.ListBox, { ...menuProps, state: state }) }) }))] }));
8248
- });
8277
+ }
8249
8278
 
8250
8279
 
8251
8280
  /***/ },
@@ -8263,12 +8292,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8263
8292
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8264
8293
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8265
8294
  const react_1 = __webpack_require__(/*! react */ "react");
8266
- const _1 = __webpack_require__(/*! . */ "./src/components/Select/index.ts");
8267
8295
  const SelectFilteredAnchor_1 = __importDefault(__webpack_require__(/*! ./SelectFilteredAnchor */ "./src/components/Select/SelectFilteredAnchor.tsx"));
8268
- const SelectFiltered = (0, react_1.forwardRef)(function SelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }, ref) {
8296
+ const SelectFilteredContext_1 = __webpack_require__(/*! ./SelectFilteredContext */ "./src/components/Select/SelectFilteredContext.ts");
8297
+ const SelectLegacy_1 = __importDefault(__webpack_require__(/*! ./SelectLegacy */ "./src/components/Select/SelectLegacy.tsx"));
8298
+ function SelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }) {
8269
8299
  const [filter, setFilter] = (0, react_1.useState)('');
8270
- return ((0, jsx_runtime_1.jsx)(_1.SelectLegacy, { ref: ref, placeholder: placeholder, filter: propFilter || filter, options: options, ...props, anchor: (params) => ((0, jsx_runtime_1.jsx)(SelectFilteredAnchor_1.default, { placeholder: placeholder, filter: propFilter || filter, onChangeFilter: propSetFilter || setFilter, ...params })) }));
8271
- });
8300
+ return ((0, jsx_runtime_1.jsx)(SelectFilteredContext_1.SelectFilteredContext.Provider, { value: {
8301
+ placeholder,
8302
+ filter: propFilter || filter,
8303
+ setFilter: propSetFilter || setFilter,
8304
+ }, children: (0, jsx_runtime_1.jsx)(SelectLegacy_1.default, { placeholder: placeholder, filter: propFilter || filter, options: options, ...props, anchor: SelectFilteredAnchor_1.default }) }));
8305
+ }
8272
8306
  exports["default"] = SelectFiltered;
8273
8307
 
8274
8308
 
@@ -8285,12 +8319,29 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
8285
8319
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8286
8320
  const react_1 = __webpack_require__(/*! react */ "react");
8287
8321
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
8288
- const SelectFilteredAnchor = (0, react_1.forwardRef)(function SelectFilteredAnchor({ children: _children, filter, onChangeFilter, placeholder, ...props }, ref) {
8289
- return ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { mi: 4, flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onInput: (e) => onChangeFilter(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true }));
8290
- });
8322
+ const SelectFilteredContext_1 = __webpack_require__(/*! ./SelectFilteredContext */ "./src/components/Select/SelectFilteredContext.ts");
8323
+ function SelectFilteredAnchor({ children: _children, ...props }) {
8324
+ const { placeholder, filter, setFilter } = (0, react_1.use)(SelectFilteredContext_1.SelectFilteredContext);
8325
+ return ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { mi: 4, flexGrow: 1, className: 'rcx-select__focus', placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true }));
8326
+ }
8291
8327
  exports["default"] = SelectFilteredAnchor;
8292
8328
 
8293
8329
 
8330
+ /***/ },
8331
+
8332
+ /***/ "./src/components/Select/SelectFilteredContext.ts"
8333
+ /*!********************************************************!*\
8334
+ !*** ./src/components/Select/SelectFilteredContext.ts ***!
8335
+ \********************************************************/
8336
+ (__unused_webpack_module, exports, __webpack_require__) {
8337
+
8338
+
8339
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
8340
+ exports.SelectFilteredContext = void 0;
8341
+ const react_1 = __webpack_require__(/*! react */ "react");
8342
+ exports.SelectFilteredContext = (0, react_1.createContext)({});
8343
+
8344
+
8294
8345
  /***/ },
8295
8346
 
8296
8347
  /***/ "./src/components/Select/SelectFocus.tsx"
@@ -8302,11 +8353,10 @@ exports["default"] = SelectFilteredAnchor;
8302
8353
 
8303
8354
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8304
8355
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8305
- const react_1 = __webpack_require__(/*! react */ "react");
8306
8356
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8307
- const SelectFocus = (0, react_1.forwardRef)(function SelectFocus(props, ref) {
8308
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button', ...props }));
8309
- });
8357
+ function SelectFocus(props) {
8358
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button', ...props }));
8359
+ }
8310
8360
  exports["default"] = SelectFocus;
8311
8361
 
8312
8362
 
@@ -8326,7 +8376,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
8326
8376
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8327
8377
  const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
8328
8378
  const react_1 = __webpack_require__(/*! react */ "react");
8329
- const isForwardRefType_1 = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
8330
8379
  const AnimatedVisibility_1 = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
8331
8380
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8332
8381
  const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
@@ -8335,7 +8384,7 @@ const Options_1 = __webpack_require__(/*! ../Options */ "./src/components/Option
8335
8384
  const PositionAnimated_1 = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
8336
8385
  const SelectAddon_1 = __importDefault(__webpack_require__(/*! ./SelectAddon */ "./src/components/Select/SelectAddon.tsx"));
8337
8386
  const SelectFocus_1 = __importDefault(__webpack_require__(/*! ./SelectFocus */ "./src/components/Select/SelectFocus.tsx"));
8338
- const Wrapper = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__wrapper": true, ref: ref, ...props })));
8387
+ const Wrapper = (props) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-select__wrapper": true, ...props }));
8339
8388
  const useDidUpdate = (func, deps) => {
8340
8389
  const didMount = (0, react_1.useRef)(false);
8341
8390
  const fn = (0, fuselage_hooks_1.useStableCallback)(func);
@@ -8346,11 +8395,11 @@ const useDidUpdate = (func, deps) => {
8346
8395
  didMount.current = true;
8347
8396
  }, deps || []);
8348
8397
  };
8349
- const SelectLegacy = (0, react_1.forwardRef)(function SelectLegacy({ value, filter, error, disabled, options = [], anchor: Anchor = SelectFocus_1.default, onChange = () => { }, getValue = ([value] = ['', '']) => value, getLabel = ([, label] = ['', '']) => label, placeholder = '', renderItem, renderSelected: RenderSelected, renderOptions: _Options = Options_1.Options, addonIcon, customEmpty, ...props }, ref) {
8398
+ function SelectLegacy({ ref, value, filter, error, disabled, options = [], anchor: Anchor = SelectFocus_1.default, onChange = () => { }, getValue = ([value] = ['', '']) => value, getLabel = ([, label] = ['', '']) => label, placeholder = '', renderItem, renderSelected: RenderSelected, renderOptions: _Options = Options_1.Options, addonIcon, customEmpty, ...props }) {
8350
8399
  const [internalValue, setInternalValue] = (0, react_1.useState)(value || '');
8351
8400
  const internalChangedByKeyboard = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
8352
8401
  setInternalValue(value);
8353
- onChange(value);
8402
+ onChange(value); // FIXME
8354
8403
  });
8355
8404
  const option = options.find((option) => getValue(option) === internalValue);
8356
8405
  const index = options.indexOf(option);
@@ -8370,19 +8419,10 @@ const SelectLegacy = (0, react_1.forwardRef)(function SelectLegacy({ value, filt
8370
8419
  const removeFocusClass = () => innerRef.current?.classList.remove('focus-visible');
8371
8420
  const internalChangedByClick = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
8372
8421
  setInternalValue(value);
8373
- onChange(value);
8422
+ onChange(value); // FIXME
8374
8423
  removeFocusClass();
8375
8424
  hide();
8376
8425
  });
8377
- const renderAnchor = (params) => {
8378
- if ((0, isForwardRefType_1.isForwardRefType)(Anchor)) {
8379
- return (0, jsx_runtime_1.jsx)(Anchor, { ...params });
8380
- }
8381
- if (typeof Anchor === 'function') {
8382
- return Anchor(params);
8383
- }
8384
- return null;
8385
- };
8386
8426
  const { ref: containerRef, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
8387
8427
  useDidUpdate(reset, [filter, internalValue]);
8388
8428
  (0, fuselage_hooks_1.useOutsideClick)([containerRef], removeFocusClass);
@@ -8399,18 +8439,10 @@ const SelectLegacy = (0, react_1.forwardRef)(function SelectLegacy({ value, filt
8399
8439
  return show();
8400
8440
  });
8401
8441
  return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), ...props, children: [(0, jsx_runtime_1.jsxs)(Wrapper, { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText, children: [visibleText &&
8402
- (RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, onClick: internalChangedByClick }, getValue(option))) : ((0, jsx_runtime_1.jsx)(Box_1.Box, { flexGrow: 1, is: 'span', mi: 4, "rcx-select__item": true, fontScale: 'p2', color: valueLabel ? 'default' : 'hint', children: visibleText }))), renderAnchor({
8403
- ref: anchorRef,
8404
- children: !value ? option || placeholder : null,
8405
- disabled: disabled ?? false,
8406
- onClick: show,
8407
- onBlur: hide,
8408
- onKeyDown: handleKeyDown,
8409
- onKeyUp: handleKeyUp,
8410
- }), (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
8442
+ (RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, onClick: internalChangedByClick }, getValue(option))) : ((0, jsx_runtime_1.jsx)(Box_1.Box, { flexGrow: 1, is: 'span', mi: 4, "rcx-select__item": true, fontScale: 'p2', color: valueLabel ? 'default' : 'hint', children: visibleText }))), (0, jsx_runtime_1.jsx)(Anchor, { ref: anchorRef, disabled: disabled ?? false, onClick: show, onBlur: hide, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, children: !value ? option || placeholder : null }), (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
8411
8443
  ? 'chevron-up'
8412
8444
  : addonIcon || 'chevron-down', size: 'x20' }) }) })] }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: filteredOptions, onSelect: internalChangedByClick, renderItem: renderItem, cursor: cursor, customEmpty: customEmpty }) })] }));
8413
- });
8445
+ }
8414
8446
  exports["default"] = SelectLegacy;
8415
8447
 
8416
8448
 
@@ -8424,12 +8456,11 @@ exports["default"] = SelectLegacy;
8424
8456
 
8425
8457
 
8426
8458
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8427
- exports.SelectTrigger = void 0;
8459
+ exports.SelectTrigger = SelectTrigger;
8428
8460
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8429
- const react_1 = __webpack_require__(/*! react */ "react");
8430
8461
  const react_aria_1 = __webpack_require__(/*! react-aria */ "react-aria");
8431
8462
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8432
- exports.SelectTrigger = (0, react_1.forwardRef)(({ small, error, isDisabled, focus, id, ...props }, ref) => {
8463
+ function SelectTrigger({ ref, small, error, isDisabled, focus, id, ...props }) {
8433
8464
  const { buttonProps } = (0, react_aria_1.useButton)(props, ref);
8434
8465
  return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ...buttonProps, id: id, "rcx-select": true, ref: ref, is: 'button', display: 'flex', flexDirection: 'row', fontScale: 'p2', justifyContent: 'space-between', "rcx-input-box--small": small, className: [
8435
8466
  error && 'invalid',
@@ -8438,7 +8469,7 @@ exports.SelectTrigger = (0, react_1.forwardRef)(({ small, error, isDisabled, foc
8438
8469
  ]
8439
8470
  .filter(Boolean)
8440
8471
  .join(' '), children: props.children }));
8441
- });
8472
+ }
8442
8473
 
8443
8474
 
8444
8475
  /***/ },
@@ -8463,96 +8494,6 @@ var SelectFiltered_1 = __webpack_require__(/*! ./SelectFiltered */ "./src/compon
8463
8494
  Object.defineProperty(exports, "SelectFiltered", ({ enumerable: true, get: function () { return __importDefault(SelectFiltered_1).default; } }));
8464
8495
 
8465
8496
 
8466
- /***/ },
8467
-
8468
- /***/ "./src/components/SelectInput/SelectInput.tsx"
8469
- /*!****************************************************!*\
8470
- !*** ./src/components/SelectInput/SelectInput.tsx ***!
8471
- \****************************************************/
8472
- (__unused_webpack_module, exports, __webpack_require__) {
8473
-
8474
-
8475
- var __importDefault = (this && this.__importDefault) || function (mod) {
8476
- return (mod && mod.__esModule) ? mod : { "default": mod };
8477
- };
8478
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8479
- const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8480
- const react_1 = __webpack_require__(/*! react */ "react");
8481
- const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
8482
- const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
8483
- const SelectInputPlaceholder_1 = __importDefault(__webpack_require__(/*! ./SelectInputPlaceholder */ "./src/components/SelectInput/SelectInputPlaceholder.tsx"));
8484
- const SelectInput = (0, react_1.forwardRef)(function SelectInput({ children, multiple, placeholder, onChange, ...props }, ref) {
8485
- const [isPlaceholderVisible, setPlaceholderVisible] = (0, react_1.useState)(!props.value && !props.defaultValue);
8486
- const handleChange = (0, react_1.useCallback)((event) => {
8487
- setPlaceholderVisible(!event.currentTarget.value);
8488
- onChange?.call(event.currentTarget, event);
8489
- }, [onChange]);
8490
- if (multiple) {
8491
- return ((0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { children: children, ...props, multiple: true, type: 'select', onChange: handleChange }));
8492
- }
8493
- return ((0, jsx_runtime_1.jsxs)(InputBox_1.InputBox, { placeholderVisible: isPlaceholderVisible ? !!placeholder : undefined, ref: ref, ...props, addon: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: 'chevron-down', size: 'x20' }), type: 'select', onChange: handleChange, children: [placeholder && ((0, jsx_runtime_1.jsx)(SelectInputPlaceholder_1.default, { value: '', children: placeholder })), children] }));
8494
- });
8495
- exports["default"] = SelectInput;
8496
-
8497
-
8498
- /***/ },
8499
-
8500
- /***/ "./src/components/SelectInput/SelectInputOption.tsx"
8501
- /*!**********************************************************!*\
8502
- !*** ./src/components/SelectInput/SelectInputOption.tsx ***!
8503
- \**********************************************************/
8504
- (__unused_webpack_module, exports, __webpack_require__) {
8505
-
8506
-
8507
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8508
- const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8509
- const react_1 = __webpack_require__(/*! react */ "react");
8510
- const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8511
- const SelectInputOption = (0, react_1.forwardRef)(function SelectInputOption(props, ref) {
8512
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'option', "rcx-input-box__option": true, ref: ref, ...props });
8513
- });
8514
- exports["default"] = SelectInputOption;
8515
-
8516
-
8517
- /***/ },
8518
-
8519
- /***/ "./src/components/SelectInput/SelectInputPlaceholder.tsx"
8520
- /*!***************************************************************!*\
8521
- !*** ./src/components/SelectInput/SelectInputPlaceholder.tsx ***!
8522
- \***************************************************************/
8523
- (__unused_webpack_module, exports, __webpack_require__) {
8524
-
8525
-
8526
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8527
- const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8528
- const react_1 = __webpack_require__(/*! react */ "react");
8529
- const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8530
- const SelectInputPlaceholder = (0, react_1.forwardRef)(function Placeholder(props, ref) {
8531
- return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'option', "rcx-input-box__placeholder": true, ref: ref, ...props });
8532
- });
8533
- exports["default"] = SelectInputPlaceholder;
8534
-
8535
-
8536
- /***/ },
8537
-
8538
- /***/ "./src/components/SelectInput/index.ts"
8539
- /*!*********************************************!*\
8540
- !*** ./src/components/SelectInput/index.ts ***!
8541
- \*********************************************/
8542
- (__unused_webpack_module, exports, __webpack_require__) {
8543
-
8544
-
8545
- var __importDefault = (this && this.__importDefault) || function (mod) {
8546
- return (mod && mod.__esModule) ? mod : { "default": mod };
8547
- };
8548
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8549
- exports.SelectInputOption = exports.SelectInput = void 0;
8550
- var SelectInput_1 = __webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/SelectInput.tsx");
8551
- Object.defineProperty(exports, "SelectInput", ({ enumerable: true, get: function () { return __importDefault(SelectInput_1).default; } }));
8552
- var SelectInputOption_1 = __webpack_require__(/*! ./SelectInputOption */ "./src/components/SelectInput/SelectInputOption.tsx");
8553
- Object.defineProperty(exports, "SelectInputOption", ({ enumerable: true, get: function () { return __importDefault(SelectInputOption_1).default; } }));
8554
-
8555
-
8556
8497
  /***/ },
8557
8498
 
8558
8499
  /***/ "./src/components/Sidebar/Item.tsx"
@@ -8595,7 +8536,10 @@ exports.SidebarItemAvatar = SidebarItemAvatar;
8595
8536
  exports.SidebarItemActions = SidebarActions_1.SidebarActions;
8596
8537
  const SidebarItemAction = (props) => ((0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarAction, { ...props }));
8597
8538
  exports.SidebarItemAction = SidebarItemAction;
8598
- exports.SidebarItem = Object.assign(({ selected, highlighted, clickable, featured, is: Tag = 'div', children, ...props }) => ((0, jsx_runtime_1.jsx)(Tag, { className: [
8539
+ /**
8540
+ * Item component to be used inside Sidebar.
8541
+ */
8542
+ const SidebarItem = ({ selected, highlighted, clickable, featured, is: Tag = 'div', children, ...props }) => ((0, jsx_runtime_1.jsx)(Tag, { className: [
8599
8543
  'rc-box rcx-box--full rcx-sidebar-item',
8600
8544
  highlighted && 'rcx-sidebar-item--highlighted',
8601
8545
  (clickable || Tag === 'a') && 'rcx-sidebar-item--clickable',
@@ -8603,20 +8547,8 @@ exports.SidebarItem = Object.assign(({ selected, highlighted, clickable, feature
8603
8547
  featured && 'rcx-sidebar-item--featured',
8604
8548
  ]
8605
8549
  .filter(Boolean)
8606
- .join(' '), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-item__wrapper', children: children }) })), {
8607
- Menu: exports.SidebarItemMenu,
8608
- Container: exports.SidebarItemContainer,
8609
- Content: exports.SidebarItemContent,
8610
- Title: exports.SidebarItemTitle,
8611
- Subtitle: exports.SidebarItemSubtitle,
8612
- Time: exports.SidebarItemTime,
8613
- Wrapper: exports.SidebarItemWrapper,
8614
- Icon: exports.SidebarItemIcon,
8615
- Avatar: exports.SidebarItemAvatar,
8616
- Actions: exports.SidebarItemActions,
8617
- Action: exports.SidebarItemAction,
8618
- Badge: exports.SidebarItemBadge,
8619
- });
8550
+ .join(' '), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-item__wrapper', children: children }) }));
8551
+ exports.SidebarItem = SidebarItem;
8620
8552
 
8621
8553
 
8622
8554
  /***/ },
@@ -8633,9 +8565,8 @@ exports.SidebarSection = exports.SidebarSectionTitle = void 0;
8633
8565
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8634
8566
  const SidebarSectionTitle = (props) => ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-title', ...props }));
8635
8567
  exports.SidebarSectionTitle = SidebarSectionTitle;
8636
- exports.SidebarSection = Object.assign((props) => ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-section', ...props })), {
8637
- Title: exports.SidebarSectionTitle,
8638
- });
8568
+ const SidebarSection = (props) => ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-section', ...props }));
8569
+ exports.SidebarSection = SidebarSection;
8639
8570
 
8640
8571
 
8641
8572
  /***/ },
@@ -8647,24 +8578,10 @@ exports.SidebarSection = Object.assign((props) => ((0, jsx_runtime_1.jsx)("div",
8647
8578
  (__unused_webpack_module, exports, __webpack_require__) {
8648
8579
 
8649
8580
 
8650
- var __importDefault = (this && this.__importDefault) || function (mod) {
8651
- return (mod && mod.__esModule) ? mod : { "default": mod };
8652
- };
8653
8581
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8654
8582
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8655
8583
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
8656
- const Item_1 = __webpack_require__(/*! ./Item */ "./src/components/Sidebar/Item.tsx");
8657
- const Section_1 = __webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx");
8658
- const SidebarBanner_1 = __importDefault(__webpack_require__(/*! ./SidebarBanner */ "./src/components/Sidebar/SidebarBanner.tsx"));
8659
- const SidebarDivider_1 = __importDefault(__webpack_require__(/*! ./SidebarDivider */ "./src/components/Sidebar/SidebarDivider.tsx"));
8660
- const TopBar_1 = __importDefault(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts"));
8661
- const Sidebar = Object.assign((props) => (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-sidebar": true, ...props }), {
8662
- TopBar: TopBar_1.default,
8663
- Item: Item_1.SidebarItem,
8664
- Section: Section_1.SidebarSection,
8665
- Divider: SidebarDivider_1.default,
8666
- Banner: SidebarBanner_1.default,
8667
- });
8584
+ const Sidebar = (props) => (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-sidebar": true, ...props });
8668
8585
  exports["default"] = Sidebar;
8669
8586
 
8670
8587
 
@@ -8678,17 +8595,17 @@ exports["default"] = Sidebar;
8678
8595
 
8679
8596
 
8680
8597
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8681
- exports.SidebarAction = exports.SidebarActions = void 0;
8598
+ exports.SidebarActions = SidebarActions;
8599
+ exports.SidebarAction = SidebarAction;
8682
8600
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8683
- const react_1 = __webpack_require__(/*! react */ "react");
8684
8601
  const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
8685
8602
  const ButtonGroup_1 = __webpack_require__(/*! ../ButtonGroup */ "./src/components/ButtonGroup/index.ts");
8686
- exports.SidebarActions = (0, react_1.forwardRef)(function SidebarActions(props, ref) {
8687
- return (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { ref: ref, ...props });
8688
- });
8689
- exports.SidebarAction = (0, react_1.forwardRef)(function SidebarAction(props, ref) {
8690
- return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, ref: ref, ...props });
8691
- });
8603
+ function SidebarActions(props) {
8604
+ return (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { ...props });
8605
+ }
8606
+ function SidebarAction(props) {
8607
+ return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, ...props });
8608
+ }
8692
8609
 
8693
8610
 
8694
8611
  /***/ },
@@ -8763,6 +8680,9 @@ exports.SidebarFooterHighlight = SidebarFooterHighlight;
8763
8680
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8764
8681
  exports.TopBar = void 0;
8765
8682
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8683
+ /**
8684
+ * Sidebar TopBar and ToolBox.
8685
+ */
8766
8686
  const TopBar = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: ['rc-box rc-box--full rcx-sidebar-topbar', className]
8767
8687
  .filter(Boolean)
8768
8688
  .join(' '), ...props }));
@@ -8779,13 +8699,12 @@ exports.TopBar = TopBar;
8779
8699
 
8780
8700
 
8781
8701
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8782
- exports.TopBarAction = void 0;
8702
+ exports.TopBarAction = TopBarAction;
8783
8703
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8784
- const react_1 = __webpack_require__(/*! react */ "react");
8785
8704
  const SidebarActions_1 = __webpack_require__(/*! ../SidebarActions */ "./src/components/Sidebar/SidebarActions.tsx");
8786
- exports.TopBarAction = (0, react_1.forwardRef)(function TopBarAction(props, ref) {
8787
- return (0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarAction, { ref: ref, ...props });
8788
- });
8705
+ function TopBarAction(props) {
8706
+ return (0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarAction, { ...props });
8707
+ }
8789
8708
 
8790
8709
 
8791
8710
  /***/ },
@@ -8798,13 +8717,12 @@ exports.TopBarAction = (0, react_1.forwardRef)(function TopBarAction(props, ref)
8798
8717
 
8799
8718
 
8800
8719
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8801
- exports.TopBarActions = void 0;
8720
+ exports.TopBarActions = TopBarActions;
8802
8721
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
8803
- const react_1 = __webpack_require__(/*! react */ "react");
8804
8722
  const SidebarActions_1 = __webpack_require__(/*! ../SidebarActions */ "./src/components/Sidebar/SidebarActions.tsx");
8805
- exports.TopBarActions = (0, react_1.forwardRef)(function TopBarActions(props, ref) {
8806
- return (0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarActions, { ref: ref, ...props });
8807
- });
8723
+ function TopBarActions(props) {
8724
+ return (0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarActions, { ...props });
8725
+ }
8808
8726
 
8809
8727
 
8810
8728
  /***/ },
@@ -8932,31 +8850,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
8932
8850
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
8933
8851
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
8934
8852
  };
8935
- var __importDefault = (this && this.__importDefault) || function (mod) {
8936
- return (mod && mod.__esModule) ? mod : { "default": mod };
8937
- };
8938
8853
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8939
8854
  exports.TopBarAvatar = void 0;
8940
- const SidebarDivider_1 = __importDefault(__webpack_require__(/*! ../SidebarDivider */ "./src/components/Sidebar/SidebarDivider.tsx"));
8941
- const TopBar_1 = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/TopBar.tsx");
8942
- const TopBarAction_1 = __webpack_require__(/*! ./TopBarAction */ "./src/components/Sidebar/TopBar/TopBarAction.tsx");
8943
- const TopBarActions_1 = __webpack_require__(/*! ./TopBarActions */ "./src/components/Sidebar/TopBar/TopBarActions.tsx");
8944
- const TopBarSection_1 = __webpack_require__(/*! ./TopBarSection */ "./src/components/Sidebar/TopBar/TopBarSection.tsx");
8945
- const TopBarTitle_1 = __webpack_require__(/*! ./TopBarTitle */ "./src/components/Sidebar/TopBar/TopBarTitle.tsx");
8946
- const TopBarToolBox_1 = __webpack_require__(/*! ./TopBarToolBox */ "./src/components/Sidebar/TopBar/TopBarToolBox.tsx");
8947
- const TopBarWrapper_1 = __webpack_require__(/*! ./TopBarWrapper */ "./src/components/Sidebar/TopBar/TopBarWrapper.tsx");
8948
- const Avatar = { size: 'x24' };
8949
- exports.TopBarAvatar = Avatar;
8950
- exports["default"] = Object.assign(TopBar_1.TopBar, {
8951
- Section: TopBarSection_1.TopBarSection,
8952
- ToolBox: TopBarToolBox_1.TopBarToolBox,
8953
- Wrapper: TopBarWrapper_1.TopBarWrapper,
8954
- Avatar: exports.TopBarAvatar,
8955
- Actions: TopBarActions_1.TopBarActions,
8956
- Action: TopBarAction_1.TopBarAction,
8957
- Divider: SidebarDivider_1.default,
8958
- Title: TopBarTitle_1.TopBarTitle,
8959
- });
8855
+ exports.TopBarAvatar = { size: 'x24' };
8960
8856
  __exportStar(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/TopBar.tsx"), exports);
8961
8857
  __exportStar(__webpack_require__(/*! ./TopBarV2 */ "./src/components/Sidebar/TopBar/TopBarV2.tsx"), exports);
8962
8858
  __exportStar(__webpack_require__(/*! ./TopBarAction */ "./src/components/Sidebar/TopBar/TopBarAction.tsx"), exports);
@@ -8994,14 +8890,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8994
8890
  return (mod && mod.__esModule) ? mod : { "default": mod };
8995
8891
  };
8996
8892
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8997
- exports.SidebarDivider = exports.SidebarBanner = exports.SidebarTopBar = exports.Sidebar = void 0;
8893
+ exports.SidebarDivider = exports.SidebarBanner = exports.SidebarTopBarToolBox = exports.SidebarTopBarAvatar = exports.SidebarTopBarActions = exports.SidebarTopBarAction = exports.SidebarTopBarTitle = exports.SidebarTopBar = exports.Sidebar = void 0;
8998
8894
  var Sidebar_1 = __webpack_require__(/*! ./Sidebar */ "./src/components/Sidebar/Sidebar.tsx");
8999
8895
  Object.defineProperty(exports, "Sidebar", ({ enumerable: true, get: function () { return __importDefault(Sidebar_1).default; } }));
9000
8896
  __exportStar(__webpack_require__(/*! ./Item */ "./src/components/Sidebar/Item.tsx"), exports);
9001
8897
  __exportStar(__webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx"), exports);
9002
8898
  __exportStar(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts"), exports);
9003
8899
  var TopBar_1 = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts");
9004
- Object.defineProperty(exports, "SidebarTopBar", ({ enumerable: true, get: function () { return __importDefault(TopBar_1).default; } }));
8900
+ Object.defineProperty(exports, "SidebarTopBar", ({ enumerable: true, get: function () { return TopBar_1.TopBar; } }));
8901
+ Object.defineProperty(exports, "SidebarTopBarTitle", ({ enumerable: true, get: function () { return TopBar_1.TopBarTitle; } }));
8902
+ Object.defineProperty(exports, "SidebarTopBarAction", ({ enumerable: true, get: function () { return TopBar_1.TopBarAction; } }));
8903
+ Object.defineProperty(exports, "SidebarTopBarActions", ({ enumerable: true, get: function () { return TopBar_1.TopBarActions; } }));
8904
+ Object.defineProperty(exports, "SidebarTopBarAvatar", ({ enumerable: true, get: function () { return TopBar_1.TopBarAvatar; } }));
8905
+ Object.defineProperty(exports, "SidebarTopBarToolBox", ({ enumerable: true, get: function () { return TopBar_1.TopBarToolBox; } }));
9005
8906
  var SidebarBanner_1 = __webpack_require__(/*! ./SidebarBanner */ "./src/components/Sidebar/SidebarBanner.tsx");
9006
8907
  Object.defineProperty(exports, "SidebarBanner", ({ enumerable: true, get: function () { return __importDefault(SidebarBanner_1).default; } }));
9007
8908
  __exportStar(__webpack_require__(/*! ./SidebarFooter */ "./src/components/Sidebar/SidebarFooter.tsx"), exports);
@@ -9019,17 +8920,18 @@ Object.defineProperty(exports, "SidebarDivider", ({ enumerable: true, get: funct
9019
8920
 
9020
8921
 
9021
8922
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9022
- exports.Sidebar = void 0;
8923
+ exports.Sidebar = Sidebar;
9023
8924
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9024
- const react_1 = __webpack_require__(/*! react */ "react");
9025
- exports.Sidebar = (0, react_1.forwardRef)(({ collapsed, className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("nav", { ref: ref, className: [
9026
- 'rcx-box rcx-box--full rcx-sidebar-v2',
9027
- 'rcx-box--animated',
9028
- collapsed && 'rcx-sidebar-v2--collapsed',
9029
- className,
9030
- ]
9031
- .filter(Boolean)
9032
- .join(' '), ...props })));
8925
+ function Sidebar({ collapsed, className, ...props }) {
8926
+ return ((0, jsx_runtime_1.jsx)("nav", { className: [
8927
+ 'rcx-box rcx-box--full rcx-sidebar-v2',
8928
+ 'rcx-box--animated',
8929
+ collapsed && 'rcx-sidebar-v2--collapsed',
8930
+ className,
8931
+ ]
8932
+ .filter(Boolean)
8933
+ .join(' '), ...props }));
8934
+ }
9033
8935
 
9034
8936
 
9035
8937
  /***/ },
@@ -9100,11 +9002,10 @@ exports["default"] = SidebarAccordionItem;
9100
9002
 
9101
9003
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9102
9004
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9103
- const react_1 = __webpack_require__(/*! react */ "react");
9104
9005
  const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
9105
- const SidebarAction = (0, react_1.forwardRef)(function SidebarAction(props, ref) {
9106
- return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, ref: ref, ...props });
9107
- });
9006
+ function SidebarAction(props) {
9007
+ return (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, ...props });
9008
+ }
9108
9009
  exports["default"] = SidebarAction;
9109
9010
 
9110
9011
 
@@ -9119,11 +9020,10 @@ exports["default"] = SidebarAction;
9119
9020
 
9120
9021
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9121
9022
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9122
- const react_1 = __webpack_require__(/*! react */ "react");
9123
9023
  const ButtonGroup_1 = __webpack_require__(/*! ../ButtonGroup */ "./src/components/ButtonGroup/index.ts");
9124
- const SidebarActions = (0, react_1.forwardRef)(function SidebarActions(props, ref) {
9125
- return (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { ref: ref, ...props });
9126
- });
9024
+ function SidebarActions(props) {
9025
+ return (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, { ...props });
9026
+ }
9127
9027
  exports["default"] = SidebarActions;
9128
9028
 
9129
9029
 
@@ -9171,12 +9071,11 @@ exports.SidebarButtonGroup = SidebarButtonGroup;
9171
9071
 
9172
9072
 
9173
9073
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9174
- exports.SidebarCollapseGroup = void 0;
9074
+ exports.SidebarCollapseGroup = SidebarCollapseGroup;
9175
9075
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9176
- const react_1 = __webpack_require__(/*! react */ "react");
9177
9076
  const SidebarGroupTitle_1 = __webpack_require__(/*! ./SidebarGroupTitle */ "./src/components/SidebarV2/SidebarGroupTitle.tsx");
9178
9077
  const useCollapse_1 = __webpack_require__(/*! ./hooks/useCollapse */ "./src/components/SidebarV2/hooks/useCollapse.tsx");
9179
- exports.SidebarCollapseGroup = (0, react_1.forwardRef)(({ expanded: propExpanded, defaultExpanded, tabIndex, children, badge, title, ...props }, ref) => {
9078
+ function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, title, ...props }) {
9180
9079
  const { barProps, expanded, panelExpanded, panelId, titleId } = (0, useCollapse_1.useCollapse)({
9181
9080
  expanded: propExpanded,
9182
9081
  defaultExpanded,
@@ -9188,7 +9087,7 @@ exports.SidebarCollapseGroup = (0, react_1.forwardRef)(({ expanded: propExpanded
9188
9087
  ]
9189
9088
  .filter(Boolean)
9190
9089
  .join(' '), id: panelId, children: children })] }));
9191
- });
9090
+ }
9192
9091
 
9193
9092
 
9194
9093
  /***/ },
@@ -9535,15 +9434,16 @@ exports.SidebarItemTitle = SidebarItemTitle;
9535
9434
 
9536
9435
 
9537
9436
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9538
- exports.SidebarListItem = void 0;
9437
+ exports.SidebarListItem = SidebarListItem;
9539
9438
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9540
- const react_1 = __webpack_require__(/*! react */ "react");
9541
- exports.SidebarListItem = (0, react_1.forwardRef)(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, role: 'listitem', className: [
9542
- 'rcx-box rcx-box--full rcx-sidebar-item__list-item',
9543
- className,
9544
- ]
9545
- .filter(Boolean)
9546
- .join(' '), ...props, children: children })));
9439
+ function SidebarListItem({ className, children, ...props }) {
9440
+ return ((0, jsx_runtime_1.jsx)("div", { role: 'listitem', className: [
9441
+ 'rcx-box rcx-box--full rcx-sidebar-item__list-item',
9442
+ className,
9443
+ ]
9444
+ .filter(Boolean)
9445
+ .join(' '), ...props, children: children }));
9446
+ }
9547
9447
 
9548
9448
 
9549
9449
  /***/ },
@@ -9894,10 +9794,9 @@ exports["default"] = SidepanelHeaderTitle;
9894
9794
 
9895
9795
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9896
9796
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9897
- const react_1 = __webpack_require__(/*! react */ "react");
9898
- const SidepanelList = (0, react_1.forwardRef)(function SidepanelList({ className, ...props }, ref) {
9899
- return ((0, jsx_runtime_1.jsx)("div", { role: 'list', ref: ref, className: ['rcx-sidepanel-list', className].filter(Boolean).join(' '), ...props }));
9900
- });
9797
+ function SidepanelList({ className, ...props }) {
9798
+ return ((0, jsx_runtime_1.jsx)("div", { role: 'list', className: ['rcx-sidepanel-list', className].filter(Boolean).join(' '), ...props }));
9799
+ }
9901
9800
  exports["default"] = SidepanelList;
9902
9801
 
9903
9802
 
@@ -9912,12 +9811,11 @@ exports["default"] = SidepanelList;
9912
9811
 
9913
9812
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9914
9813
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
9915
- const react_1 = __webpack_require__(/*! react */ "react");
9916
- const SidepanelListItem = (0, react_1.forwardRef)(function SidepanelListItem({ className, ...props }, ref) {
9917
- return ((0, jsx_runtime_1.jsx)("div", { role: 'listitem', ref: ref, className: ['rcx-sidepanel-list__item', className]
9814
+ function SidepanelListItem({ className, ...props }) {
9815
+ return ((0, jsx_runtime_1.jsx)("div", { role: 'listitem', className: ['rcx-sidepanel-list__item', className]
9918
9816
  .filter(Boolean)
9919
9817
  .join(' '), ...props }));
9920
- });
9818
+ }
9921
9819
  exports["default"] = SidepanelListItem;
9922
9820
 
9923
9821
 
@@ -10043,8 +9941,9 @@ const useStyle_1 = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/
10043
9941
  const SliderHead_1 = __webpack_require__(/*! ./SliderHead */ "./src/components/Slider/SliderHead.tsx");
10044
9942
  const SliderThumb_1 = __webpack_require__(/*! ./SliderThumb */ "./src/components/Slider/SliderThumb.tsx");
10045
9943
  const SliderTrack_1 = __webpack_require__(/*! ./SliderTrack */ "./src/components/Slider/SliderTrack.tsx");
10046
- function Slider(props, ref) {
9944
+ function Slider({ ref, ...props }) {
10047
9945
  const { label, formatOptions, showOutput = true, multiThumb, maxValue, minValue, } = props;
9946
+ // Get a defaultValue in the range for multiThumb
10048
9947
  const getMultiThumbDefaultValue = () => {
10049
9948
  if (multiThumb && !props.defaultValue) {
10050
9949
  if (minValue && maxValue) {
@@ -10090,7 +9989,7 @@ function Slider(props, ref) {
10090
9989
  `, sliderState);
10091
9990
  return ((0, jsx_runtime_1.jsxs)("div", { ...groupProps, ref: ref, className: slider, children: [(0, jsx_runtime_1.jsx)(SliderHead_1.SliderHead, { labelProps: labelProps, outputProps: outputProps, state: sliderState, showOutput: showOutput, label: label, multiThumb: multiThumb }), (0, jsx_runtime_1.jsxs)(SliderTrack_1.SliderTrack, { state: sliderState, trackProps: trackProps, trackRef: trackRef, multiThumb: multiThumb, children: [(0, jsx_runtime_1.jsx)(SliderThumb_1.SliderThumb, { index: 0, state: sliderState, trackRef: trackRef }), multiThumb && ((0, jsx_runtime_1.jsx)(SliderThumb_1.SliderThumb, { index: 1, state: sliderState, trackRef: trackRef }))] })] }));
10092
9991
  }
10093
- exports["default"] = (0, react_1.forwardRef)(Slider);
9992
+ exports["default"] = Slider;
10094
9993
 
10095
9994
 
10096
9995
  /***/ },
@@ -10497,6 +10396,9 @@ const Disabled_1 = __importDefault(__webpack_require__(/*! ./icons/Disabled */ "
10497
10396
  const Loading_1 = __importDefault(__webpack_require__(/*! ./icons/Loading */ "./src/components/StatusBullet/icons/Loading.tsx"));
10498
10397
  const Offline_1 = __importDefault(__webpack_require__(/*! ./icons/Offline */ "./src/components/StatusBullet/icons/Offline.tsx"));
10499
10398
  const Online_1 = __importDefault(__webpack_require__(/*! ./icons/Online */ "./src/components/StatusBullet/icons/Online.tsx"));
10399
+ /**
10400
+ * The `StatusBullet` is used to inform the user status.
10401
+ */
10500
10402
  const StatusBullet = ({ status = 'loading', ...props }) => {
10501
10403
  switch (status) {
10502
10404
  case 'online':
@@ -10852,17 +10754,15 @@ __exportStar(__webpack_require__(/*! ./TableSelection */ "./src/components/Table
10852
10754
  (__unused_webpack_module, exports, __webpack_require__) {
10853
10755
 
10854
10756
 
10855
- var __importDefault = (this && this.__importDefault) || function (mod) {
10856
- return (mod && mod.__esModule) ? mod : { "default": mod };
10857
- };
10858
10757
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10859
10758
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
10860
10759
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
10861
- const TabsItem_1 = __importDefault(__webpack_require__(/*! ./TabsItem */ "./src/components/Tabs/TabsItem.tsx"));
10760
+ /**
10761
+ * Tabs is a component to navigate around the UI using buttons arranged together with the selected tab highlighted.
10762
+ */
10862
10763
  function Tabs({ children, divider = true, ...props }) {
10863
10764
  return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs": true, "rcx-tabs--with-divider": divider, ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__scroll-box": true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__wrapper": true, children: children, role: 'tablist' }) }) }));
10864
10765
  }
10865
- Tabs.Item = TabsItem_1.default;
10866
10766
  exports["default"] = Tabs;
10867
10767
 
10868
10768
 
@@ -10877,11 +10777,10 @@ exports["default"] = Tabs;
10877
10777
 
10878
10778
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10879
10779
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
10880
- const react_1 = __webpack_require__(/*! react */ "react");
10881
10780
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
10882
- const TabsItem = (0, react_1.forwardRef)(function TabsItem({ selected, disabled, ...props }, ref) {
10883
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'button', "rcx-tabs__item": true, "rcx-tabs__item--selected": selected, "rcx-tabs__item--disabled": disabled, "rcx-tabs__item--selected--disabled": selected && disabled, "aria-selected": selected ? 'true' : 'false', ref: ref, role: 'tab', ...props }));
10884
- });
10781
+ function TabsItem({ selected, disabled, ...props }) {
10782
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'button', "rcx-tabs__item": true, "rcx-tabs__item--selected": selected, "rcx-tabs__item--disabled": disabled, "rcx-tabs__item--selected--disabled": selected && disabled, "aria-selected": selected ? 'true' : 'false', role: 'tab', ...props }));
10783
+ }
10885
10784
  exports["default"] = TabsItem;
10886
10785
 
10887
10786
 
@@ -10918,6 +10817,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
10918
10817
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
10919
10818
  const prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
10920
10819
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
10820
+ /**
10821
+ * Used for mentions
10822
+ */
10921
10823
  const Tag = ({ large, medium, className, disabled, onClick, variant, children, icon, href, ...props }) => {
10922
10824
  const modifiers = [
10923
10825
  variant,
@@ -10953,43 +10855,6 @@ var Tag_1 = __webpack_require__(/*! ./Tag */ "./src/components/Tag/Tag.tsx");
10953
10855
  Object.defineProperty(exports, "Tag", ({ enumerable: true, get: function () { return __importDefault(Tag_1).default; } }));
10954
10856
 
10955
10857
 
10956
- /***/ },
10957
-
10958
- /***/ "./src/components/TelephoneInput/TelephoneInput.tsx"
10959
- /*!**********************************************************!*\
10960
- !*** ./src/components/TelephoneInput/TelephoneInput.tsx ***!
10961
- \**********************************************************/
10962
- (__unused_webpack_module, exports, __webpack_require__) {
10963
-
10964
-
10965
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10966
- const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
10967
- const react_1 = __webpack_require__(/*! react */ "react");
10968
- const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
10969
- const TelephoneInput = (0, react_1.forwardRef)(function TelephoneInput(props, ref) {
10970
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'tel', ref: ref, ...props });
10971
- });
10972
- exports["default"] = TelephoneInput;
10973
-
10974
-
10975
- /***/ },
10976
-
10977
- /***/ "./src/components/TelephoneInput/index.ts"
10978
- /*!************************************************!*\
10979
- !*** ./src/components/TelephoneInput/index.ts ***!
10980
- \************************************************/
10981
- (__unused_webpack_module, exports, __webpack_require__) {
10982
-
10983
-
10984
- var __importDefault = (this && this.__importDefault) || function (mod) {
10985
- return (mod && mod.__esModule) ? mod : { "default": mod };
10986
- };
10987
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10988
- exports.TelephoneInput = void 0;
10989
- var TelephoneInput_1 = __webpack_require__(/*! ./TelephoneInput */ "./src/components/TelephoneInput/TelephoneInput.tsx");
10990
- Object.defineProperty(exports, "TelephoneInput", ({ enumerable: true, get: function () { return __importDefault(TelephoneInput_1).default; } }));
10991
-
10992
-
10993
10858
  /***/ },
10994
10859
 
10995
10860
  /***/ "./src/components/TextAreaInput/TextAreaInput.tsx"
@@ -11001,11 +10866,13 @@ Object.defineProperty(exports, "TelephoneInput", ({ enumerable: true, get: funct
11001
10866
 
11002
10867
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11003
10868
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11004
- const react_1 = __webpack_require__(/*! react */ "react");
11005
10869
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
11006
- const TextAreaInput = (0, react_1.forwardRef)(function TextAreaInput(props, ref) {
11007
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'textarea', ref: ref, ...props });
11008
- });
10870
+ /**
10871
+ * An input for multi-line plain-text editing.
10872
+ */
10873
+ function TextAreaInput(props) {
10874
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'textarea', ...props });
10875
+ }
11009
10876
  exports["default"] = TextAreaInput;
11010
10877
 
11011
10878
 
@@ -11038,11 +10905,13 @@ Object.defineProperty(exports, "TextAreaInput", ({ enumerable: true, get: functi
11038
10905
 
11039
10906
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11040
10907
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11041
- const react_1 = __webpack_require__(/*! react */ "react");
11042
10908
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
11043
- const TextInput = (0, react_1.forwardRef)(function TextInput(props, ref) {
11044
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'text', ref: ref, ...props });
11045
- });
10909
+ /**
10910
+ * An input for any kind of single-line text.
10911
+ */
10912
+ function TextInput(props) {
10913
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'text', ...props });
10914
+ }
11046
10915
  exports["default"] = TextInput;
11047
10916
 
11048
10917
 
@@ -11076,7 +10945,6 @@ Object.defineProperty(exports, "TextInput", ({ enumerable: true, get: function (
11076
10945
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11077
10946
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11078
10947
  const css_in_js_1 = __webpack_require__(/*! @rocket.chat/css-in-js */ "@rocket.chat/css-in-js");
11079
- const react_1 = __webpack_require__(/*! react */ "react");
11080
10948
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
11081
10949
  function Circle({ disabled, circleCount, iteration, inheritColor, ...props }) {
11082
10950
  return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', className: (0, css_in_js_1.css) `
@@ -11084,9 +10952,12 @@ function Circle({ disabled, circleCount, iteration, inheritColor, ...props }) {
11084
10952
  animation-delay: ${iteration * 0.16}s;
11085
10953
  `, "rcx-throbber__circle": true, "rcx-throbber__circle--disabled": disabled, "rcx-throbber__circle--inherit-color": inheritColor, ...props }));
11086
10954
  }
11087
- const Throbber = (0, react_1.forwardRef)(function Throbber({ disabled, size = 'x16', circleCount = 3, inheritColor, ...props }, ref) {
11088
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-throbber": true, ref: ref, ...props, children: Array.from({ length: circleCount || 3 }, (_, iteration) => ((0, jsx_runtime_1.jsx)(Circle, { circleCount: circleCount, iteration: iteration, disabled: !!disabled, size: size, inheritColor: !!inheritColor }, iteration))) }));
11089
- });
10955
+ /**
10956
+ * Indicates content that has not loaded yet.
10957
+ */
10958
+ function Throbber({ disabled, size = 'x16', circleCount = 3, inheritColor, ...props }) {
10959
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-throbber": true, ...props, children: Array.from({ length: circleCount || 3 }, (_, iteration) => ((0, jsx_runtime_1.jsx)(Circle, { circleCount: circleCount, iteration: iteration, disabled: !!disabled, size: size, inheritColor: !!inheritColor }, iteration))) }));
10960
+ }
11090
10961
  exports["default"] = Throbber;
11091
10962
 
11092
10963
 
@@ -11119,11 +10990,10 @@ Object.defineProperty(exports, "Throbber", ({ enumerable: true, get: function ()
11119
10990
 
11120
10991
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11121
10992
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11122
- const react_1 = __webpack_require__(/*! react */ "react");
11123
10993
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
11124
- const Tile = (0, react_1.forwardRef)(function Tile({ elevation = '1', padding = 16, ...props }, ref) {
11125
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { ref: ref, "rcx-tile": true, "rcx-tile--elevation": elevation, padding: padding, ...props }));
11126
- });
10994
+ function Tile({ elevation = '1', padding = 16, ...props }) {
10995
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-tile": true, "rcx-tile--elevation": elevation, padding: padding, ...props }));
10996
+ }
11127
10997
  exports["default"] = Tile;
11128
10998
 
11129
10999
 
@@ -11161,6 +11031,9 @@ const react_1 = __webpack_require__(/*! react */ "react");
11161
11031
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
11162
11032
  const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
11163
11033
  const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
11034
+ /**
11035
+ * Shows alerts in a toast component.
11036
+ */
11164
11037
  function ToastBar({ children, className = '', variant = 'info', time = 5, isPaused, id, onClose, buttonLabel = 'Dismiss alert', ...props }) {
11165
11038
  const iconName = (variant === 'success' && 'circle-check') ||
11166
11039
  (variant === 'error' && 'ban') ||
@@ -11233,11 +11106,10 @@ Object.defineProperty(exports, "ToastBar", ({ enumerable: true, get: function ()
11233
11106
 
11234
11107
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11235
11108
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11236
- const react_1 = __webpack_require__(/*! react */ "react");
11237
11109
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
11238
- const ToggleSwitch = (0, react_1.forwardRef)(function ToggleSwitch({ className, labelChildren, ...props }, ref) {
11239
- return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'label', className: className, "rcx-toggle-switch": true, children: [labelChildren, (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', ref: ref, "rcx-toggle-switch__input": true, type: 'checkbox', ...props }), (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-toggle-switch__fake": true, "aria-hidden": 'true' })] }));
11240
- });
11110
+ function ToggleSwitch({ className, labelChildren, ...props }) {
11111
+ return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'label', className: className, "rcx-toggle-switch": true, children: [labelChildren, (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'input', "rcx-toggle-switch__input": true, type: 'checkbox', ...props }), (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-toggle-switch__fake": true, "aria-hidden": 'true' })] }));
11112
+ }
11241
11113
  exports["default"] = ToggleSwitch;
11242
11114
 
11243
11115
 
@@ -11270,7 +11142,6 @@ Object.defineProperty(exports, "ToggleSwitch", ({ enumerable: true, get: functio
11270
11142
 
11271
11143
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11272
11144
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11273
- const react_1 = __webpack_require__(/*! react */ "react");
11274
11145
  const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
11275
11146
  const parsePlacement = (placement) => {
11276
11147
  const [direction, position] = placement
@@ -11281,10 +11152,10 @@ const parsePlacement = (placement) => {
11281
11152
  }
11282
11153
  return [direction, position];
11283
11154
  };
11284
- const Tooltip = (0, react_1.forwardRef)(function Tooltip({ variation = 'dark', placement, ...props }, ref) {
11155
+ function Tooltip({ variation = 'dark', placement, ...props }) {
11285
11156
  const [direction, position] = parsePlacement(placement);
11286
- return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', ref: ref, "rcx-tooltip": true, "rcx-tooltip--dir": direction, "rcx-tooltip--pos": position, "rcx-tooltip--light": variation === 'light', "rcx-tooltip--dark": variation === 'dark', ...props }));
11287
- });
11157
+ return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tooltip": true, "rcx-tooltip--dir": direction, "rcx-tooltip--pos": position, "rcx-tooltip--light": variation === 'light', "rcx-tooltip--dark": variation === 'dark', ...props }));
11158
+ }
11288
11159
  exports["default"] = Tooltip;
11289
11160
 
11290
11161
 
@@ -11317,11 +11188,10 @@ Object.defineProperty(exports, "Tooltip", ({ enumerable: true, get: function ()
11317
11188
 
11318
11189
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11319
11190
  const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
11320
- const react_1 = __webpack_require__(/*! react */ "react");
11321
11191
  const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
11322
- const UrlInput = (0, react_1.forwardRef)(function UrlInput(props, ref) {
11323
- return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'url', ref: ref, ...props });
11324
- });
11192
+ function UrlInput(props) {
11193
+ return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'url', ...props });
11194
+ }
11325
11195
  exports["default"] = UrlInput;
11326
11196
 
11327
11197
 
@@ -11413,14 +11283,12 @@ __exportStar(__webpack_require__(/*! ./Pagination */ "./src/components/Paginatio
11413
11283
  __exportStar(__webpack_require__(/*! ./PaletteStyleTag */ "./src/components/PaletteStyleTag/index.ts"), exports);
11414
11284
  __exportStar(__webpack_require__(/*! ./PasswordInput */ "./src/components/PasswordInput/index.ts"), exports);
11415
11285
  __exportStar(__webpack_require__(/*! ./Popover */ "./src/components/Popover/index.ts"), exports);
11416
- __exportStar(__webpack_require__(/*! ./Position */ "./src/components/Position/index.ts"), exports);
11417
11286
  __exportStar(__webpack_require__(/*! ./PositionAnimated */ "./src/components/PositionAnimated/index.ts"), exports);
11418
11287
  __exportStar(__webpack_require__(/*! ./ProgressBar */ "./src/components/ProgressBar/index.ts"), exports);
11419
11288
  __exportStar(__webpack_require__(/*! ./RadioButton */ "./src/components/RadioButton/index.ts"), exports);
11420
11289
  __exportStar(__webpack_require__(/*! ./Scrollable */ "./src/components/Scrollable/index.ts"), exports);
11421
11290
  __exportStar(__webpack_require__(/*! ./SearchInput */ "./src/components/SearchInput/index.ts"), exports);
11422
11291
  __exportStar(__webpack_require__(/*! ./Select */ "./src/components/Select/index.ts"), exports);
11423
- __exportStar(__webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/index.ts"), exports);
11424
11292
  __exportStar(__webpack_require__(/*! ./Sidebar */ "./src/components/Sidebar/index.ts"), exports);
11425
11293
  __exportStar(__webpack_require__(/*! ./SidebarV2 */ "./src/components/SidebarV2/index.ts"), exports);
11426
11294
  __exportStar(__webpack_require__(/*! ./Sidepanel */ "./src/components/Sidepanel/index.ts"), exports);
@@ -11431,7 +11299,6 @@ __exportStar(__webpack_require__(/*! ./StatusBullet */ "./src/components/StatusB
11431
11299
  __exportStar(__webpack_require__(/*! ./Table */ "./src/components/Table/index.ts"), exports);
11432
11300
  __exportStar(__webpack_require__(/*! ./Tabs */ "./src/components/Tabs/index.ts"), exports);
11433
11301
  __exportStar(__webpack_require__(/*! ./Tag */ "./src/components/Tag/index.ts"), exports);
11434
- __exportStar(__webpack_require__(/*! ./TelephoneInput */ "./src/components/TelephoneInput/index.ts"), exports);
11435
11302
  __exportStar(__webpack_require__(/*! ./TextAreaInput */ "./src/components/TextAreaInput/index.ts"), exports);
11436
11303
  __exportStar(__webpack_require__(/*! ./TextInput */ "./src/components/TextInput/index.ts"), exports);
11437
11304
  __exportStar(__webpack_require__(/*! ./Throbber */ "./src/components/Throbber/index.ts"), exports);
@@ -11624,6 +11491,24 @@ const composeClassNames = (prefix) => (...args) => {
11624
11491
  return [prefix, classNames].filter(Boolean).join(' ');
11625
11492
  };
11626
11493
  exports.composeClassNames = composeClassNames;
11494
+ /**
11495
+ * Composes class names into a single string based on flags.
11496
+ *
11497
+ * Any falsy value passed as an argument will be ignored.
11498
+ *
11499
+ * If a string is passed, it will be used as a class name.
11500
+ *
11501
+ * If a dictionary object is passed, its keys will be used as class names and its values will be used as modifiers --
11502
+ * unless the value is a boolean, in which case the key will be used as a class name if the value is `true`.
11503
+ *
11504
+ * @example
11505
+ * ```ts
11506
+ * cx('a', false, 'b', null, { c: true, d: false, e: 'f', f: 1 }); // 'a b c e-f f-1'
11507
+ * ```
11508
+ *
11509
+ * @param args a sequence of falsy values, strings and dictionary objects containing the class names
11510
+ * @returns a space-separated string of class names
11511
+ */
11627
11512
  const cx = (...args) => args
11628
11513
  .flatMap((arg) => {
11629
11514
  if (!arg) {
@@ -11644,6 +11529,20 @@ const cx = (...args) => args
11644
11529
  })
11645
11530
  .join(' ');
11646
11531
  exports.cx = cx;
11532
+ /**
11533
+ * Composes class name modifiers under a class name into a single class names' string based on flags.
11534
+ *
11535
+ * This function returns a function similar to `cx`, with the difference it handles the arguments as class name
11536
+ * modifiers (based on BEM CSS conventions). However, it's recommended to use `cxx` as a curried function.
11537
+ *
11538
+ * @example
11539
+ * ```ts
11540
+ * cxx('z')('a', false, 'b', null, { c: true, d: false, e: 'f', f: 1 }); // 'z z--a z--b z--c z--e-f z--f-1'
11541
+ * ```
11542
+ * @param className the class name
11543
+ * @param args a sequence of falsy values, strings and dictionary objects containing the modifiers
11544
+ * @returns a space-separated string of class names
11545
+ */
11647
11546
  const cxx = (className) => (...args) => {
11648
11547
  const classNames = args.flatMap((arg) => {
11649
11548
  if (!arg) {
@@ -11679,6 +11578,33 @@ exports.cxx = cxx;
11679
11578
 
11680
11579
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11681
11580
  exports.exhaustiveCheck = void 0;
11581
+ /**
11582
+ * Utility function to check exhaustiveness of a switch statement or if-else statements.
11583
+ *
11584
+ * In TypeScript, variables going through a sequence of conditionals, like cases in switch statements or if-else
11585
+ * statements, the variable type is incrementally narrowed as the conditionals are evaluated until it reaches the
11586
+ * `never` type, meaning all possible cases have been covered. This function is used to check, at compilation time, that
11587
+ * all possible cases have been covered (i.e. if the conditional checks were exhaustive) and should only be called in
11588
+ * unreachable blocks of code.
11589
+ *
11590
+ * @example
11591
+ * ```ts
11592
+ * declare const value: 'foo' | 'bar';
11593
+ * switch (value) {
11594
+ * case 'foo':
11595
+ * // ...
11596
+ * break;
11597
+ * case 'bar':
11598
+ * // ...
11599
+ * break;
11600
+ * default: // should be unreachable
11601
+ * exhaustiveCheck(value); // `value` type should be `never`, otherwise the compilation fails
11602
+ * }
11603
+ * ```
11604
+ *
11605
+ * @param _ the value which type should be `never`
11606
+ * @throws {Error} will always throw an error if it's reached
11607
+ */
11682
11608
  const exhaustiveCheck = (_) => {
11683
11609
  throw new Error('Exhaustive check failed');
11684
11610
  };
@@ -11718,21 +11644,6 @@ const fromCamelToKebab = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])
11718
11644
  exports.fromCamelToKebab = fromCamelToKebab;
11719
11645
 
11720
11646
 
11721
- /***/ },
11722
-
11723
- /***/ "./src/helpers/isForwardRefType.ts"
11724
- /*!*****************************************!*\
11725
- !*** ./src/helpers/isForwardRefType.ts ***!
11726
- \*****************************************/
11727
- (__unused_webpack_module, exports) {
11728
-
11729
-
11730
- Object.defineProperty(exports, "__esModule", ({ value: true }));
11731
- exports.isForwardRefType = void 0;
11732
- const isForwardRefType = (type) => type.$$typeof === Symbol.for('react.forward_ref');
11733
- exports.isForwardRefType = isForwardRefType;
11734
-
11735
-
11736
11647
  /***/ },
11737
11648
 
11738
11649
  /***/ "./src/helpers/patchChildren.ts"
@@ -12138,6 +12049,7 @@ exports.fontColor = (0, memo_1.memoize)((value) => {
12138
12049
  }
12139
12050
  return (0, exports.color)(value);
12140
12051
  });
12052
+ /** @deprecated **/
12141
12053
  exports.color = (0, memo_1.memoize)((value) => {
12142
12054
  if (typeof value !== 'string') {
12143
12055
  return;
@@ -12243,7 +12155,7 @@ exports.fontScale = (0, memo_1.memoize)((value) => {
12243
12155
  \*****************************************/
12244
12156
  (module) {
12245
12157
 
12246
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_css_in_js__;
12158
+ module.exports = require("@rocket.chat/css-in-js");
12247
12159
 
12248
12160
  /***/ },
12249
12161
 
@@ -12253,7 +12165,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_css_in_js__;
12253
12165
  \**********************************************/
12254
12166
  (module) {
12255
12167
 
12256
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__;
12168
+ module.exports = require("@rocket.chat/fuselage-hooks");
12257
12169
 
12258
12170
  /***/ },
12259
12171
 
@@ -12263,7 +12175,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__;
12263
12175
  \***********************************************************/
12264
12176
  (module) {
12265
12177
 
12266
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_colors_json__;
12178
+ module.exports = require("@rocket.chat/fuselage-tokens/colors.json");
12267
12179
 
12268
12180
  /***/ },
12269
12181
 
@@ -12273,7 +12185,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_colors_j
12273
12185
  \***************************************************************/
12274
12186
  (module) {
12275
12187
 
12276
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_badge_json__;
12188
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/badge.json");
12277
12189
 
12278
12190
  /***/ },
12279
12191
 
@@ -12283,7 +12195,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_bad
12283
12195
  \****************************************************************/
12284
12196
  (module) {
12285
12197
 
12286
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_button_json__;
12198
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/button.json");
12287
12199
 
12288
12200
  /***/ },
12289
12201
 
@@ -12293,7 +12205,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_but
12293
12205
  \**************************************************************/
12294
12206
  (module) {
12295
12207
 
12296
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_font_json__;
12208
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/font.json");
12297
12209
 
12298
12210
  /***/ },
12299
12211
 
@@ -12303,7 +12215,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_fon
12303
12215
  \****************************************************************/
12304
12216
  (module) {
12305
12217
 
12306
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_shadow_json__;
12218
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/shadow.json");
12307
12219
 
12308
12220
  /***/ },
12309
12221
 
@@ -12313,7 +12225,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sha
12313
12225
  \****************************************************************/
12314
12226
  (module) {
12315
12227
 
12316
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_status_json__;
12228
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/status.json");
12317
12229
 
12318
12230
  /***/ },
12319
12231
 
@@ -12323,7 +12235,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sta
12323
12235
  \**********************************************************************/
12324
12236
  (module) {
12325
12237
 
12326
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_statusBullet_json__;
12238
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/statusBullet.json");
12327
12239
 
12328
12240
  /***/ },
12329
12241
 
@@ -12333,7 +12245,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sta
12333
12245
  \****************************************************************/
12334
12246
  (module) {
12335
12247
 
12336
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_stroke_json__;
12248
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/stroke.json");
12337
12249
 
12338
12250
  /***/ },
12339
12251
 
@@ -12343,7 +12255,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_str
12343
12255
  \*****************************************************************/
12344
12256
  (module) {
12345
12257
 
12346
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_surface_json__;
12258
+ module.exports = require("@rocket.chat/fuselage-tokens/dist/surface.json");
12347
12259
 
12348
12260
  /***/ },
12349
12261
 
@@ -12353,7 +12265,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sur
12353
12265
  \***************************************************************/
12354
12266
  (module) {
12355
12267
 
12356
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_typography_json__;
12268
+ module.exports = require("@rocket.chat/fuselage-tokens/typography.json");
12357
12269
 
12358
12270
  /***/ },
12359
12271
 
@@ -12363,7 +12275,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_typograp
12363
12275
  \*************************************/
12364
12276
  (module) {
12365
12277
 
12366
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__;
12278
+ module.exports = require("@rocket.chat/icons");
12367
12279
 
12368
12280
  /***/ },
12369
12281
 
@@ -12373,7 +12285,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__;
12373
12285
  \************************************/
12374
12286
  (module) {
12375
12287
 
12376
- module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_memo__;
12288
+ module.exports = require("@rocket.chat/memo");
12377
12289
 
12378
12290
  /***/ },
12379
12291
 
@@ -12383,7 +12295,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_memo__;
12383
12295
  \****************************/
12384
12296
  (module) {
12385
12297
 
12386
- module.exports = __WEBPACK_EXTERNAL_MODULE_invariant__;
12298
+ module.exports = require("invariant");
12387
12299
 
12388
12300
  /***/ },
12389
12301
 
@@ -12393,7 +12305,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_invariant__;
12393
12305
  \************************/
12394
12306
  (module) {
12395
12307
 
12396
- module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
12308
+ module.exports = require("react");
12397
12309
 
12398
12310
  /***/ },
12399
12311
 
@@ -12403,7 +12315,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
12403
12315
  \*****************************/
12404
12316
  (module) {
12405
12317
 
12406
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_aria__;
12318
+ module.exports = require("react-aria");
12407
12319
 
12408
12320
  /***/ },
12409
12321
 
@@ -12413,7 +12325,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_aria__;
12413
12325
  \****************************/
12414
12326
  (module) {
12415
12327
 
12416
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;
12328
+ module.exports = require("react-dom");
12417
12329
 
12418
12330
  /***/ },
12419
12331
 
@@ -12423,7 +12335,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;
12423
12335
  \***************************/
12424
12336
  (module) {
12425
12337
 
12426
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_is__;
12338
+ module.exports = require("react-is");
12427
12339
 
12428
12340
  /***/ },
12429
12341
 
@@ -12433,7 +12345,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_is__;
12433
12345
  \***********************************************/
12434
12346
  (module) {
12435
12347
 
12436
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_keyed_flatten_children__;
12348
+ module.exports = require("react-keyed-flatten-children");
12437
12349
 
12438
12350
  /***/ },
12439
12351
 
@@ -12443,7 +12355,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_keyed_flatten_children__;
12443
12355
  \********************************/
12444
12356
  (module) {
12445
12357
 
12446
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_stately__;
12358
+ module.exports = require("react-stately");
12447
12359
 
12448
12360
  /***/ },
12449
12361
 
@@ -12453,7 +12365,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_stately__;
12453
12365
  \*********************************/
12454
12366
  (module) {
12455
12367
 
12456
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_virtuoso__;
12368
+ module.exports = require("react-virtuoso");
12457
12369
 
12458
12370
  /***/ },
12459
12371
 
@@ -12463,7 +12375,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_virtuoso__;
12463
12375
  \************************************/
12464
12376
  (module) {
12465
12377
 
12466
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
12378
+ module.exports = require("react/jsx-runtime");
12467
12379
 
12468
12380
  /***/ }
12469
12381
 
@@ -12517,11 +12429,10 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
12517
12429
  /******/ // Load entry module and return exports
12518
12430
  /******/ // This entry module is referenced by other modules so it can't be inlined
12519
12431
  /******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
12432
+ /******/ module.exports = __webpack_exports__;
12520
12433
  /******/
12521
- /******/ return __webpack_exports__;
12522
12434
  /******/ })()
12523
12435
  ;
12524
- });
12525
12436
  })();
12526
12437
  }
12527
12438
  //# sourceMappingURL=fuselage.development.js.map