@rocket.chat/fuselage 0.31.6-dev.2 → 0.32.0-dev.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 (226) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +1 -1
  2. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  3. package/dist/components/Box/Box.d.ts +19 -0
  4. package/dist/components/Box/Box.d.ts.map +1 -0
  5. package/dist/components/Box/BoxTransforms.d.ts.map +1 -1
  6. package/dist/components/Box/index.d.ts +2 -188
  7. package/dist/components/Box/index.d.ts.map +1 -0
  8. package/dist/components/Box/stylingProps.d.ts +131 -0
  9. package/dist/components/Box/stylingProps.d.ts.map +1 -0
  10. package/dist/components/Box/useStylingProps.d.ts +5 -0
  11. package/dist/components/Box/useStylingProps.d.ts.map +1 -0
  12. package/dist/components/Box/withBoxStyling.d.ts +3 -0
  13. package/dist/components/Box/withBoxStyling.d.ts.map +1 -0
  14. package/dist/components/Button/ActionButton.d.ts +5 -2
  15. package/dist/components/Button/ActionButton.d.ts.map +1 -1
  16. package/dist/components/Button/Button.d.ts +6 -3
  17. package/dist/components/Button/Button.d.ts.map +1 -1
  18. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  19. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  20. package/dist/components/Callout/Callout.d.ts +1 -1
  21. package/dist/components/Callout/Callout.d.ts.map +1 -1
  22. package/dist/components/CheckBox/CheckBox.d.ts +5 -2
  23. package/dist/components/CheckBox/CheckBox.d.ts.map +1 -1
  24. package/dist/components/Chevron/Chevron.d.ts +1 -1
  25. package/dist/components/Chevron/Chevron.d.ts.map +1 -1
  26. package/dist/components/Chip/Chip.d.ts +1 -1
  27. package/dist/components/Chip/Chip.d.ts.map +1 -1
  28. package/dist/components/Chip/index.d.ts +8 -4
  29. package/dist/components/Chip/index.d.ts.map +1 -1
  30. package/dist/components/CodeSnippet/CodeSnippet.d.ts +1 -1
  31. package/dist/components/CodeSnippet/CodeSnippet.d.ts.map +1 -1
  32. package/dist/components/Divider/Divider.d.ts +1 -1
  33. package/dist/components/Divider/Divider.d.ts.map +1 -1
  34. package/dist/components/EmailInput/EmailInput.d.ts +6 -3
  35. package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
  36. package/dist/components/Field/Field.d.ts +1 -1
  37. package/dist/components/Field/Field.d.ts.map +1 -1
  38. package/dist/components/Field/FieldDescription.d.ts +1 -1
  39. package/dist/components/Field/FieldDescription.d.ts.map +1 -1
  40. package/dist/components/Field/FieldError.d.ts +1 -1
  41. package/dist/components/Field/FieldError.d.ts.map +1 -1
  42. package/dist/components/Field/FieldHint.d.ts +1 -1
  43. package/dist/components/Field/FieldHint.d.ts.map +1 -1
  44. package/dist/components/Field/FieldLabel.d.ts +1 -1
  45. package/dist/components/Field/FieldLabel.d.ts.map +1 -1
  46. package/dist/components/Field/FieldLink.d.ts +1 -1
  47. package/dist/components/Field/FieldLink.d.ts.map +1 -1
  48. package/dist/components/Field/FieldRow.d.ts +1 -1
  49. package/dist/components/Field/FieldRow.d.ts.map +1 -1
  50. package/dist/components/Field/index.d.ts +24 -6
  51. package/dist/components/Field/index.d.ts.map +1 -1
  52. package/dist/components/FieldGroup/FieldGroup.d.ts +1 -1
  53. package/dist/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  54. package/dist/components/Grid/Grid.d.ts +5 -2
  55. package/dist/components/Grid/Grid.d.ts.map +1 -1
  56. package/dist/components/Grid/GridItem.d.ts +1 -1
  57. package/dist/components/Grid/GridItem.d.ts.map +1 -1
  58. package/dist/components/Icon/Icon.d.ts +6 -3
  59. package/dist/components/Icon/Icon.d.ts.map +1 -1
  60. package/dist/components/InputBox/Addon.d.ts +4 -1
  61. package/dist/components/InputBox/Addon.d.ts.map +1 -1
  62. package/dist/components/InputBox/Input.d.ts +4 -1
  63. package/dist/components/InputBox/Input.d.ts.map +1 -1
  64. package/dist/components/InputBox/InputBox.d.ts +1 -1
  65. package/dist/components/InputBox/InputBox.d.ts.map +1 -1
  66. package/dist/components/InputBox/InputBoxSkeleton.d.ts +1 -1
  67. package/dist/components/InputBox/InputBoxSkeleton.d.ts.map +1 -1
  68. package/dist/components/InputBox/Option.d.ts +4 -1
  69. package/dist/components/InputBox/Option.d.ts.map +1 -1
  70. package/dist/components/InputBox/Placeholder.d.ts +4 -1
  71. package/dist/components/InputBox/Placeholder.d.ts.map +1 -1
  72. package/dist/components/InputBox/Wrapper.d.ts +1 -1
  73. package/dist/components/InputBox/Wrapper.d.ts.map +1 -1
  74. package/dist/components/InputBox/index.d.ts +45 -12
  75. package/dist/components/InputBox/index.d.ts.map +1 -1
  76. package/dist/components/Label/Label.d.ts +1 -1
  77. package/dist/components/Label/Label.d.ts.map +1 -1
  78. package/dist/components/Margins/Margins.d.ts +1 -1
  79. package/dist/components/Margins/Margins.d.ts.map +1 -1
  80. package/dist/components/Menu/Menu.d.ts +1 -1
  81. package/dist/components/Menu/Menu.d.ts.map +1 -1
  82. package/dist/components/Message/MessageBlock.d.ts +1 -1
  83. package/dist/components/Message/MessageBlock.d.ts.map +1 -1
  84. package/dist/components/Message/MessageMetrics/index.d.ts +5 -2
  85. package/dist/components/Message/MessageMetrics/index.d.ts.map +1 -1
  86. package/dist/components/Message/MessageReactions/index.d.ts +4 -1
  87. package/dist/components/Message/MessageReactions/index.d.ts.map +1 -1
  88. package/dist/components/Message/MessageToolbox/MessageToolboxItem.d.ts +7 -4
  89. package/dist/components/Message/MessageToolbox/MessageToolboxItem.d.ts.map +1 -1
  90. package/dist/components/Message/MessageToolbox/index.d.ts +18 -9
  91. package/dist/components/Message/MessageToolbox/index.d.ts.map +1 -1
  92. package/dist/components/Message/index.d.ts +27 -12
  93. package/dist/components/Message/index.d.ts.map +1 -1
  94. package/dist/components/Modal/Modal.d.ts +4 -1
  95. package/dist/components/Modal/Modal.d.ts.map +1 -1
  96. package/dist/components/Modal/ModalBackdrop.d.ts +1 -1
  97. package/dist/components/Modal/ModalBackdrop.d.ts.map +1 -1
  98. package/dist/components/Modal/ModalClose.d.ts +1 -1
  99. package/dist/components/Modal/ModalClose.d.ts.map +1 -1
  100. package/dist/components/Modal/ModalContent.d.ts +1 -1
  101. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  102. package/dist/components/Modal/ModalFooter.d.ts +1 -1
  103. package/dist/components/Modal/ModalFooter.d.ts.map +1 -1
  104. package/dist/components/Modal/ModalHeader.d.ts +1 -1
  105. package/dist/components/Modal/ModalHeader.d.ts.map +1 -1
  106. package/dist/components/Modal/ModalTitle.d.ts +1 -1
  107. package/dist/components/Modal/ModalTitle.d.ts.map +1 -1
  108. package/dist/components/Modal/index.d.ts +30 -9
  109. package/dist/components/Modal/index.d.ts.map +1 -1
  110. package/dist/components/MultiSelect/MultiSelect.d.ts +6 -3
  111. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  112. package/dist/components/MultiSelect/SelectedOptions.d.ts +4 -3
  113. package/dist/components/MultiSelect/SelectedOptions.d.ts.map +1 -1
  114. package/dist/components/NumberInput/NumberInput.d.ts +1 -1
  115. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  116. package/dist/components/Options/CheckOption.d.ts +1 -1
  117. package/dist/components/Options/Option/Option.d.ts +1 -1
  118. package/dist/components/Options/Option/Option.d.ts.map +1 -1
  119. package/dist/components/Options/Option/index.d.ts +9 -6
  120. package/dist/components/Options/Option/index.d.ts.map +1 -1
  121. package/dist/components/Options/Options.d.ts +5 -2
  122. package/dist/components/Options/Options.d.ts.map +1 -1
  123. package/dist/components/Options/index.d.ts +5 -2
  124. package/dist/components/Options/index.d.ts.map +1 -1
  125. package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +6 -3
  126. package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
  127. package/dist/components/{SelectPaginated → PaginatedSelect}/PaginatedMultiSelect.d.ts +1 -1
  128. package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -0
  129. package/dist/components/{SelectPaginated → PaginatedSelect}/PaginatedSelect.d.ts +2 -2
  130. package/dist/components/PaginatedSelect/PaginatedSelect.d.ts.map +1 -0
  131. package/dist/components/PaginatedSelect/PaginatedSelectAddon.d.ts +10 -0
  132. package/dist/components/PaginatedSelect/PaginatedSelectAddon.d.ts.map +1 -0
  133. package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts +7 -0
  134. package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts.map +1 -0
  135. package/dist/components/PaginatedSelect/PaginatedSelectFocus.d.ts +10 -0
  136. package/dist/components/PaginatedSelect/PaginatedSelectFocus.d.ts.map +1 -0
  137. package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts +10 -0
  138. package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts.map +1 -0
  139. package/dist/components/PaginatedSelect/index.d.ts +3 -0
  140. package/dist/components/PaginatedSelect/index.d.ts.map +1 -0
  141. package/dist/components/Pagination/Pagination.d.ts +1 -1
  142. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  143. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  144. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
  145. package/dist/components/Position/Position.d.ts +1 -1
  146. package/dist/components/Position/Position.d.ts.map +1 -1
  147. package/dist/components/ProgressBar/ProgressBar.d.ts +6 -3
  148. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  149. package/dist/components/RadioButton/RadioButton.d.ts +5 -2
  150. package/dist/components/RadioButton/RadioButton.d.ts.map +1 -1
  151. package/dist/components/SearchInput/SearchInput.d.ts +6 -3
  152. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  153. package/dist/components/Select/Select.d.ts +7 -4
  154. package/dist/components/Select/Select.d.ts.map +1 -1
  155. package/dist/components/Select/SelectAddon.d.ts +4 -1
  156. package/dist/components/Select/SelectAddon.d.ts.map +1 -1
  157. package/dist/components/Select/SelectFocus.d.ts +4 -1
  158. package/dist/components/Select/SelectFocus.d.ts.map +1 -1
  159. package/dist/components/SelectInput/SelectInput.d.ts +6 -3
  160. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  161. package/dist/components/SelectInput/index.d.ts +4 -1
  162. package/dist/components/SelectInput/index.d.ts.map +1 -1
  163. package/dist/components/Sidebar/Item.d.ts +15 -6
  164. package/dist/components/Sidebar/Item.d.ts.map +1 -1
  165. package/dist/components/Sidebar/TopBar.d.ts +14 -5
  166. package/dist/components/Sidebar/TopBar.d.ts.map +1 -1
  167. package/dist/components/Sidebar/index.d.ts +26 -11
  168. package/dist/components/Sidebar/index.d.ts.map +1 -1
  169. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  170. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
  171. package/dist/components/Table/Table.d.ts +9 -3
  172. package/dist/components/Table/Table.d.ts.map +1 -1
  173. package/dist/components/Table/TableRow.d.ts +1 -1
  174. package/dist/components/Table/TableRow.d.ts.map +1 -1
  175. package/dist/components/Table/TableSelection.d.ts +1 -1
  176. package/dist/components/Table/TableSelection.d.ts.map +1 -1
  177. package/dist/components/Table/TableSelectionButton.d.ts +1 -1
  178. package/dist/components/Table/TableSelectionButton.d.ts.map +1 -1
  179. package/dist/components/Table/index.d.ts +16 -4
  180. package/dist/components/Table/index.d.ts.map +1 -1
  181. package/dist/components/Tabs/Tabs.d.ts +6 -3
  182. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  183. package/dist/components/Tabs/TabsItem.d.ts +5 -2
  184. package/dist/components/Tabs/TabsItem.d.ts.map +1 -1
  185. package/dist/components/Tag/Tag.d.ts +1 -1
  186. package/dist/components/Tag/Tag.d.ts.map +1 -1
  187. package/dist/components/TelephoneInput/TelephoneInput.d.ts +6 -3
  188. package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +1 -1
  189. package/dist/components/TextAreaInput/TextArea.d.ts +6 -3
  190. package/dist/components/TextAreaInput/TextArea.d.ts.map +1 -1
  191. package/dist/components/TextInput/TextInput.d.ts +6 -3
  192. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  193. package/dist/components/Throbber/Throbber.d.ts +5 -2
  194. package/dist/components/Throbber/Throbber.d.ts.map +1 -1
  195. package/dist/components/Tile/Tile.d.ts +5 -2
  196. package/dist/components/Tile/Tile.d.ts.map +1 -1
  197. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +5 -2
  198. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  199. package/dist/components/Tooltip/Tooltip.d.ts +5 -2
  200. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  201. package/dist/components/UrlInput/UrlInput.d.ts +1 -1
  202. package/dist/components/UrlInput/UrlInput.d.ts.map +1 -1
  203. package/dist/components/index.d.ts +2 -2
  204. package/dist/components/index.d.ts.map +1 -1
  205. package/dist/fuselage.development.js +1578 -1545
  206. package/dist/fuselage.development.js.map +1 -1
  207. package/dist/fuselage.production.js +1 -1
  208. package/dist/hooks/useArrayLikeClassNameProp.d.ts +1 -1
  209. package/dist/hooks/useArrayLikeClassNameProp.d.ts.map +1 -1
  210. package/dist/hooks/useBoxOnlyProps.d.ts +4 -0
  211. package/dist/hooks/useBoxOnlyProps.d.ts.map +1 -1
  212. package/dist/hooks/useStyle.d.ts +1 -1
  213. package/dist/hooks/useStyle.d.ts.map +1 -1
  214. package/dist/types/Falsy.d.ts +2 -0
  215. package/dist/types/Falsy.d.ts.map +1 -0
  216. package/package.json +14 -13
  217. package/dist/components/Icon/IconsList.d.ts +0 -4
  218. package/dist/components/Icon/IconsList.d.ts.map +0 -1
  219. package/dist/components/SelectPaginated/PaginatedMultiSelect.d.ts.map +0 -1
  220. package/dist/components/SelectPaginated/PaginatedSelect.d.ts.map +0 -1
  221. package/dist/components/SelectPaginated/PaginatedSelectFiltered.d.ts +0 -5
  222. package/dist/components/SelectPaginated/PaginatedSelectFiltered.d.ts.map +0 -1
  223. package/dist/components/SelectPaginated/hugeList.d.ts +0 -5
  224. package/dist/components/SelectPaginated/hugeList.d.ts.map +0 -1
  225. package/dist/components/SelectPaginated/index.d.ts +0 -4
  226. package/dist/components/SelectPaginated/index.d.ts.map +0 -1
@@ -96,62 +96,6 @@ module.exports = _nonIterableRest;
96
96
 
97
97
  /***/ }),
98
98
 
99
- /***/ "../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
100
- /*!****************************************************************************!*\
101
- !*** ../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
102
- \****************************************************************************/
103
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
104
-
105
- var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");
106
-
107
- function _objectWithoutProperties(source, excluded) {
108
- if (source == null) return {};
109
- var target = objectWithoutPropertiesLoose(source, excluded);
110
- var key, i;
111
-
112
- if (Object.getOwnPropertySymbols) {
113
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
114
-
115
- for (i = 0; i < sourceSymbolKeys.length; i++) {
116
- key = sourceSymbolKeys[i];
117
- if (excluded.indexOf(key) >= 0) continue;
118
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
119
- target[key] = source[key];
120
- }
121
- }
122
-
123
- return target;
124
- }
125
-
126
- module.exports = _objectWithoutProperties;
127
-
128
- /***/ }),
129
-
130
- /***/ "../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
131
- /*!*********************************************************************************!*\
132
- !*** ../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
133
- \*********************************************************************************/
134
- /***/ (function(module) {
135
-
136
- function _objectWithoutPropertiesLoose(source, excluded) {
137
- if (source == null) return {};
138
- var target = {};
139
- var sourceKeys = Object.keys(source);
140
- var key, i;
141
-
142
- for (i = 0; i < sourceKeys.length; i++) {
143
- key = sourceKeys[i];
144
- if (excluded.indexOf(key) >= 0) continue;
145
- target[key] = source[key];
146
- }
147
-
148
- return target;
149
- }
150
-
151
- module.exports = _objectWithoutPropertiesLoose;
152
-
153
- /***/ }),
154
-
155
99
  /***/ "../../node_modules/@babel/runtime/helpers/slicedToArray.js":
156
100
  /*!******************************************************************!*\
157
101
  !*** ../../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
@@ -174,28 +118,6 @@ module.exports = _slicedToArray;
174
118
 
175
119
  /***/ }),
176
120
 
177
- /***/ "../../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js":
178
- /*!**************************************************************************!*\
179
- !*** ../../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js ***!
180
- \**************************************************************************/
181
- /***/ (function(module) {
182
-
183
- function _taggedTemplateLiteral(strings, raw) {
184
- if (!raw) {
185
- raw = strings.slice(0);
186
- }
187
-
188
- return Object.freeze(Object.defineProperties(strings, {
189
- raw: {
190
- value: Object.freeze(raw)
191
- }
192
- }));
193
- }
194
-
195
- module.exports = _taggedTemplateLiteral;
196
-
197
- /***/ }),
198
-
199
121
  /***/ "../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
200
122
  /*!*******************************************************************************!*\
201
123
  !*** ../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
@@ -3041,7 +2963,7 @@ __webpack_require__.r(__webpack_exports__);
3041
2963
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
3042
2964
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
3043
2965
  /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
3044
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
2966
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
3045
2967
  /* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Chip */ "./src/components/Chip/index.ts");
3046
2968
  /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
3047
2969
  /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
@@ -3065,7 +2987,7 @@ var _jsxFileName = "/home/runner/work/Rocket.Chat.Fuselage/Rocket.Chat.Fuselage/
3065
2987
 
3066
2988
 
3067
2989
  var Addon = function Addon(props) {
3068
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, Object.assign({
2990
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], Object.assign({
3069
2991
  "rcx-autocomplete__addon": true
3070
2992
  }, props, {
3071
2993
  __self: _this,
@@ -3171,7 +3093,7 @@ function AutoComplete(_ref) {
3171
3093
  hide();
3172
3094
  });
3173
3095
  (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(reset, [filter]);
3174
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, {
3096
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], {
3175
3097
  "rcx-autocomplete": true,
3176
3098
  ref: containerRef,
3177
3099
  onClick: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__.useMutableCallback)(function () {
@@ -3187,7 +3109,7 @@ function AutoComplete(_ref) {
3187
3109
  lineNumber: 66,
3188
3110
  columnNumber: 5
3189
3111
  }
3190
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, {
3112
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], {
3191
3113
  display: "flex",
3192
3114
  flexGrow: 1,
3193
3115
  alignItems: "center",
@@ -3283,461 +3205,6 @@ function AutoComplete(_ref) {
3283
3205
 
3284
3206
  /***/ }),
3285
3207
 
3286
- /***/ "./src/components/Box/index.js":
3287
- /*!*************************************!*\
3288
- !*** ./src/components/Box/index.js ***!
3289
- \*************************************/
3290
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3291
-
3292
- "use strict";
3293
- __webpack_require__.r(__webpack_exports__);
3294
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3295
- /* harmony export */ "Box": function() { return /* binding */ Box; }
3296
- /* harmony export */ });
3297
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js");
3298
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
3299
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
3300
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
3301
- /* harmony import */ var _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
3302
- /* harmony import */ var _hooks_useBoxOnlyProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks/useBoxOnlyProps */ "./src/hooks/useBoxOnlyProps.ts");
3303
- /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
3304
- /* harmony import */ var _BoxTransforms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
3305
- /* harmony import */ var _stylingProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./stylingProps */ "./src/components/Box/stylingProps.js");
3306
-
3307
- var _excluded = ["is", "children"];
3308
- var _jsxFileName = "/home/runner/work/Rocket.Chat.Fuselage/Rocket.Chat.Fuselage/packages/fuselage/src/components/Box/index.js";
3309
-
3310
-
3311
-
3312
-
3313
-
3314
-
3315
- var Box = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Box(_ref, ref) {
3316
- var _ref$is = _ref.is,
3317
- is = _ref$is === void 0 ? 'div' : _ref$is,
3318
- children = _ref.children,
3319
- props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, _excluded);
3320
-
3321
- (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_4__.useStyleSheet)();
3322
-
3323
- if (ref) {
3324
- props.ref = ref;
3325
- }
3326
-
3327
- props = (0,_hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_2__.useArrayLikeClassNameProp)(props);
3328
- var transformFn = (0,_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.useBoxTransform)();
3329
-
3330
- if (transformFn) {
3331
- props = transformFn(props);
3332
- }
3333
-
3334
- props = (0,_hooks_useBoxOnlyProps__WEBPACK_IMPORTED_MODULE_3__.useBoxOnlyProps)(props);
3335
- props = (0,_stylingProps__WEBPACK_IMPORTED_MODULE_6__.useStylingProps)(props);
3336
- var element = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(is, props, children);
3337
-
3338
- if (transformFn) {
3339
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.BoxTransforms.Provider, {
3340
- children: element,
3341
- value: null,
3342
- __self: this,
3343
- __source: {
3344
- fileName: _jsxFileName,
3345
- lineNumber: 30,
3346
- columnNumber: 14
3347
- }
3348
- });
3349
- }
3350
-
3351
- return element;
3352
- }));
3353
- Box.displayName = 'Box';
3354
-
3355
- /***/ }),
3356
-
3357
- /***/ "./src/components/Box/stylingProps.js":
3358
- /*!********************************************!*\
3359
- !*** ./src/components/Box/stylingProps.js ***!
3360
- \********************************************/
3361
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3362
-
3363
- "use strict";
3364
- __webpack_require__.r(__webpack_exports__);
3365
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3366
- /* harmony export */ "useStylingProps": function() { return /* binding */ useStylingProps; }
3367
- /* harmony export */ });
3368
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../../node_modules/@babel/runtime/helpers/slicedToArray.js");
3369
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
3370
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js");
3371
- /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
3372
- /* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ "../../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js");
3373
- /* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2__);
3374
- /* harmony import */ var _rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rocket.chat/css-in-js */ "../css-in-js/dist/index.module.js");
3375
- /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
3376
- /* harmony import */ var _helpers_fromCamelToKebab__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/fromCamelToKebab */ "./src/helpers/fromCamelToKebab.ts");
3377
- /* harmony import */ var _hooks_useStyle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
3378
- /* harmony import */ var _styleTokens__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../styleTokens */ "./src/styleTokens.ts");
3379
-
3380
-
3381
-
3382
- var _excluded = ["htmlSize"];
3383
-
3384
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
3385
-
3386
-
3387
-
3388
-
3389
-
3390
-
3391
- var stringProp = {
3392
- toCSSValue: function toCSSValue(value) {
3393
- return typeof value === 'string' ? value : undefined;
3394
- }
3395
- };
3396
- var numberOrStringProp = {
3397
- toCSSValue: function toCSSValue(value) {
3398
- if (typeof value === 'number' || typeof value === 'string') {
3399
- return String(value);
3400
- }
3401
- }
3402
- };
3403
- var borderWidthProp = {
3404
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.borderWidth
3405
- };
3406
- var borderRadiusProp = {
3407
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.borderRadius
3408
- };
3409
- var colorProp = {
3410
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.color
3411
- };
3412
- var sizeProp = {
3413
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.size
3414
- };
3415
- var insetProp = {
3416
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.inset
3417
- };
3418
- var marginProp = {
3419
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.margin
3420
- };
3421
- var paddingProp = {
3422
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.padding
3423
- };
3424
- var fontFamilyProp = {
3425
- toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontFamily
3426
- };
3427
- var fontSizeProp = {
3428
- toCSSValue: function toCSSValue(value) {
3429
- var _fontScale;
3430
-
3431
- return ((_fontScale = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale === void 0 ? void 0 : _fontScale.fontSize) || (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value);
3432
- }
3433
- };
3434
- var fontWeightProp = {
3435
- toCSSValue: function toCSSValue(value) {
3436
- var _fontScale2;
3437
-
3438
- return ((_fontScale2 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale2 === void 0 ? void 0 : _fontScale2.fontWeight) || value;
3439
- }
3440
- };
3441
- var lineHeightProp = {
3442
- toCSSValue: function toCSSValue(value) {
3443
- var _fontScale3;
3444
-
3445
- return ((_fontScale3 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale3 === void 0 ? void 0 : _fontScale3.lineHeight) || (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value);
3446
- }
3447
- };
3448
- var letterSpacingProp = {
3449
- toCSSValue: function toCSSValue(value) {
3450
- var _fontScale4;
3451
-
3452
- return ((_fontScale4 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale4 === void 0 ? void 0 : _fontScale4.letterSpacing) || value;
3453
- }
3454
- };
3455
-
3456
- var aliasOf = function aliasOf(propName) {
3457
- return {
3458
- aliasOf: propName
3459
- };
3460
- };
3461
-
3462
- var propDefs = {
3463
- border: stringProp,
3464
- borderBlock: stringProp,
3465
- borderBlockStart: stringProp,
3466
- borderBlockEnd: stringProp,
3467
- borderInline: stringProp,
3468
- borderInlineStart: stringProp,
3469
- borderInlineEnd: stringProp,
3470
- borderWidth: borderWidthProp,
3471
- borderBlockWidth: borderWidthProp,
3472
- borderBlockStartWidth: borderWidthProp,
3473
- borderBlockEndWidth: borderWidthProp,
3474
- borderInlineWidth: borderWidthProp,
3475
- borderInlineStartWidth: borderWidthProp,
3476
- borderInlineEndWidth: borderWidthProp,
3477
- borderStyle: stringProp,
3478
- borderBlockStyle: stringProp,
3479
- borderBlockStartStyle: stringProp,
3480
- borderBlockEndStyle: stringProp,
3481
- borderInlineStyle: stringProp,
3482
- borderInlineStartStyle: stringProp,
3483
- borderInlineEndStyle: stringProp,
3484
- borderColor: colorProp,
3485
- borderBlockColor: colorProp,
3486
- borderBlockStartColor: colorProp,
3487
- borderBlockEndColor: colorProp,
3488
- borderInlineColor: colorProp,
3489
- borderInlineStartColor: colorProp,
3490
- borderInlineEndColor: colorProp,
3491
- borderRadius: borderRadiusProp,
3492
- borderStartStartRadius: borderRadiusProp,
3493
- borderStartEndRadius: borderRadiusProp,
3494
- borderEndStartRadius: borderRadiusProp,
3495
- borderEndEndRadius: borderRadiusProp,
3496
- color: colorProp,
3497
- backgroundColor: colorProp,
3498
- bg: aliasOf('backgroundColor'),
3499
- opacity: numberOrStringProp,
3500
- alignItems: stringProp,
3501
- alignContent: stringProp,
3502
- justifyItems: stringProp,
3503
- justifyContent: stringProp,
3504
- flexWrap: stringProp,
3505
- flexDirection: stringProp,
3506
- flexGrow: numberOrStringProp,
3507
- flexShrink: numberOrStringProp,
3508
- flexBasis: stringProp,
3509
- justifySelf: stringProp,
3510
- alignSelf: stringProp,
3511
- order: numberOrStringProp,
3512
- w: aliasOf('width'),
3513
- width: sizeProp,
3514
- minWidth: sizeProp,
3515
- maxWidth: sizeProp,
3516
- h: aliasOf('height'),
3517
- height: sizeProp,
3518
- minHeight: sizeProp,
3519
- maxHeight: sizeProp,
3520
- display: stringProp,
3521
- verticalAlign: stringProp,
3522
- overflow: stringProp,
3523
- overflowX: stringProp,
3524
- overflowY: stringProp,
3525
- position: stringProp,
3526
- zIndex: numberOrStringProp,
3527
- inset: insetProp,
3528
- insetBlock: insetProp,
3529
- insetBlockStart: insetProp,
3530
- insetBlockEnd: insetProp,
3531
- insetInline: insetProp,
3532
- insetInlineStart: insetProp,
3533
- insetInlineEnd: insetProp,
3534
- m: aliasOf('margin'),
3535
- margin: marginProp,
3536
- mb: aliasOf('marginBlock'),
3537
- marginBlock: marginProp,
3538
- mbs: aliasOf('marginBlockStart'),
3539
- marginBlockStart: marginProp,
3540
- mbe: aliasOf('marginBlockEnd'),
3541
- marginBlockEnd: marginProp,
3542
- mi: aliasOf('marginInline'),
3543
- marginInline: marginProp,
3544
- mis: aliasOf('marginInlineStart'),
3545
- marginInlineStart: marginProp,
3546
- mie: aliasOf('marginInlineEnd'),
3547
- marginInlineEnd: marginProp,
3548
- p: aliasOf('padding'),
3549
- padding: paddingProp,
3550
- pb: aliasOf('paddingBlock'),
3551
- paddingBlock: paddingProp,
3552
- pbs: aliasOf('paddingBlockStart'),
3553
- paddingBlockStart: paddingProp,
3554
- pbe: aliasOf('paddingBlockEnd'),
3555
- paddingBlockEnd: paddingProp,
3556
- pi: aliasOf('paddingInline'),
3557
- paddingInline: paddingProp,
3558
- pis: aliasOf('paddingInlineStart'),
3559
- paddingInlineStart: paddingProp,
3560
- pie: aliasOf('paddingInlineEnd'),
3561
- paddingInlineEnd: paddingProp,
3562
- fontFamily: fontFamilyProp,
3563
- fontSize: fontSizeProp,
3564
- fontStyle: stringProp,
3565
- fontWeight: fontWeightProp,
3566
- letterSpacing: letterSpacingProp,
3567
- lineHeight: lineHeightProp,
3568
- textAlign: stringProp,
3569
- textTransform: stringProp,
3570
- textDecorationLine: stringProp,
3571
- elevation: {
3572
- toStyle: function toStyle(value) {
3573
- if (value === '0') {
3574
- return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject || (_templateObject = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n box-shadow: none;\n "])));
3575
- }
3576
-
3577
- if (value === '1') {
3578
- return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject2 || (_templateObject2 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n box-shadow: 0px 0px 12px 0px ", ";\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.color)('neutral-800-10'));
3579
- }
3580
-
3581
- if (value === '2') {
3582
- return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject3 || (_templateObject3 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n box-shadow: 0px 0px 2px 0px ", ",\n 0px 0px 12px 0px ", ";\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.color)('neutral-800-8'), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.color)('neutral-800-12'));
3583
- }
3584
- }
3585
- },
3586
- invisible: {
3587
- toStyle: function toStyle(value) {
3588
- return value ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject4 || (_templateObject4 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n visibility: hidden;\n opacity: 0;\n "]))) : undefined;
3589
- }
3590
- },
3591
- withTruncatedText: {
3592
- toStyle: function toStyle(value) {
3593
- return value ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject5 || (_templateObject5 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))) : undefined;
3594
- }
3595
- },
3596
- size: {
3597
- toStyle: function toStyle(value) {
3598
- return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value) ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject6 || (_templateObject6 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n width: ", " !important;\n height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value)) : undefined;
3599
- }
3600
- },
3601
- minSize: {
3602
- toStyle: function toStyle(value) {
3603
- return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value) ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject7 || (_templateObject7 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n min-width: ", " !important;\n min-height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value)) : undefined;
3604
- }
3605
- },
3606
- maxSize: {
3607
- toStyle: function toStyle(value) {
3608
- return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value) ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject8 || (_templateObject8 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n max-width: ", " !important;\n max-height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.size)(value)) : undefined;
3609
- }
3610
- },
3611
- fontScale: {
3612
- toStyle: function toStyle(value) {
3613
- var _fontScale5, _fontScale6, _fontScale7, _fontScale8;
3614
-
3615
- return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject9 || (_templateObject9 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n font-size: ", " !important;\n font-weight: ", " !important;\n letter-spacing: ", " !important;\n line-height: ", " !important;\n "])), (_fontScale5 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale5 === void 0 ? void 0 : _fontScale5.fontSize, (_fontScale6 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale6 === void 0 ? void 0 : _fontScale6.fontWeight, (_fontScale7 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale7 === void 0 ? void 0 : _fontScale7.letterSpacing, (_fontScale8 = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_7__.fontScale)(value)) === null || _fontScale8 === void 0 ? void 0 : _fontScale8.lineHeight);
3616
- }
3617
- }
3618
- };
3619
- var useStylingProps = function useStylingProps(originalProps) {
3620
- var htmlSize = originalProps.htmlSize,
3621
- props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(originalProps, _excluded);
3622
-
3623
- var stylingProps = new Map();
3624
-
3625
- for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
3626
- var entry = _Object$entries[_i];
3627
-
3628
- var _entry = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(entry, 2),
3629
- propName = _entry[0],
3630
- propValue = _entry[1];
3631
-
3632
- var propDef = propDefs[propName];
3633
-
3634
- if (!propDef) {
3635
- continue;
3636
- }
3637
-
3638
- delete props[propName];
3639
-
3640
- if (propValue === undefined) {
3641
- continue;
3642
- }
3643
-
3644
- var effectivePropName = propName;
3645
- var effectivePropDef = propDef;
3646
-
3647
- if (effectivePropDef.aliasOf) {
3648
- if (stylingProps.has(effectivePropDef.aliasOf)) {
3649
- continue;
3650
- }
3651
-
3652
- effectivePropName = effectivePropDef.aliasOf;
3653
- effectivePropDef = propDefs[effectivePropName];
3654
- }
3655
-
3656
- var _effectivePropDef = effectivePropDef,
3657
- toStyle = _effectivePropDef.toStyle;
3658
-
3659
- if (effectivePropDef.toCSSValue) {
3660
- (function () {
3661
- var cssProperty = (0,_helpers_fromCamelToKebab__WEBPACK_IMPORTED_MODULE_5__.fromCamelToKebab)(effectivePropName);
3662
- var _effectivePropDef2 = effectivePropDef,
3663
- toCSSValue = _effectivePropDef2.toCSSValue;
3664
-
3665
- toStyle = function toStyle(value) {
3666
- var cssValue = toCSSValue(value);
3667
-
3668
- if (cssValue === undefined) {
3669
- return;
3670
- }
3671
-
3672
- return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject10 || (_templateObject10 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n ", ": ", " !important;\n "])), cssProperty, cssValue);
3673
- };
3674
- })();
3675
- }
3676
-
3677
- var style = toStyle(propValue);
3678
-
3679
- if (style === undefined) {
3680
- continue;
3681
- }
3682
-
3683
- stylingProps.set(effectivePropName, style);
3684
- }
3685
-
3686
- var styles = stylingProps.size ? Array.from(stylingProps.values()) : undefined;
3687
- var newClassName = (0,_hooks_useStyle__WEBPACK_IMPORTED_MODULE_6__.useStyle)((0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_3__.css)(_templateObject11 || (_templateObject11 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_2___default()(["\n ", "\n "])), styles));
3688
-
3689
- if (newClassName) {
3690
- props.className = (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_4__.appendClassName)(props.className, newClassName);
3691
- }
3692
-
3693
- if (htmlSize) {
3694
- props.size = htmlSize;
3695
- }
3696
-
3697
- return props;
3698
- };
3699
-
3700
- /***/ }),
3701
-
3702
- /***/ "./src/components/Box/withBoxStyling.js":
3703
- /*!**********************************************!*\
3704
- !*** ./src/components/Box/withBoxStyling.js ***!
3705
- \**********************************************/
3706
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3707
-
3708
- "use strict";
3709
- __webpack_require__.r(__webpack_exports__);
3710
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3711
- /* harmony export */ "withBoxStyling": function() { return /* binding */ withBoxStyling; }
3712
- /* harmony export */ });
3713
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3714
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3715
- /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
3716
- /* harmony import */ var _stylingProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stylingProps */ "./src/components/Box/stylingProps.js");
3717
-
3718
-
3719
-
3720
- var withBoxStyling = function withBoxStyling(component) {
3721
- var render = function render(props) {
3722
- if (typeof component === 'function') {
3723
- return component(props);
3724
- }
3725
-
3726
- return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, props);
3727
- };
3728
-
3729
- var WithBoxStyling = function WithBoxStyling(props) {
3730
- (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
3731
- props = (0,_stylingProps__WEBPACK_IMPORTED_MODULE_2__.useStylingProps)(props);
3732
- return render(props);
3733
- };
3734
-
3735
- WithBoxStyling.displayName = "WithBoxStyling(".concat(component.displayName || component.name || 'Component', ")");
3736
- return WithBoxStyling;
3737
- };
3738
-
3739
- /***/ }),
3740
-
3741
3208
  /***/ "../memo/dist/esm/index.js":
3742
3209
  /*!*********************************!*\
3743
3210
  !*** ../memo/dist/esm/index.js ***!
@@ -5216,7 +4683,7 @@ __webpack_require__.r(__webpack_exports__);
5216
4683
  /* harmony export */ });
5217
4684
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5218
4685
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5219
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
4686
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
5220
4687
  /* harmony import */ var _AccordionItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AccordionItem */ "./src/components/Accordion/AccordionItem.tsx");
5221
4688
  var __assign = (undefined && undefined.__assign) || function () {
5222
4689
  __assign = Object.assign || function(t) {
@@ -5233,7 +4700,7 @@ var __assign = (undefined && undefined.__assign) || function () {
5233
4700
 
5234
4701
 
5235
4702
  function Accordion(props) {
5236
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ animated: true, "rcx-accordion": true }, props));
4703
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ animated: true, "rcx-accordion": true }, props));
5237
4704
  }
5238
4705
  Accordion.Item = _AccordionItem__WEBPACK_IMPORTED_MODULE_2__.AccordionItem;
5239
4706
 
@@ -5255,7 +4722,7 @@ __webpack_require__.r(__webpack_exports__);
5255
4722
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
5256
4723
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5257
4724
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5258
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
4725
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
5259
4726
  /* harmony import */ var _Chevron__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Chevron */ "./src/components/Chevron/index.tsx");
5260
4727
  /* harmony import */ var _ToggleSwitch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ToggleSwitch */ "./src/components/ToggleSwitch/index.tsx");
5261
4728
  var __assign = (undefined && undefined.__assign) || function () {
@@ -5351,14 +4818,14 @@ var AccordionItem = function Item(_a) {
5351
4818
  'aria-labelledby': titleId,
5352
4819
  };
5353
4820
  var barProps = noncollapsible ? nonCollapsibleProps : collapsibleProps;
5354
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ is: 'section', "rcx-accordion-item": true, className: className }, props),
5355
- title && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ animated: true, "rcx-accordion-item__bar": true, "rcx-accordion-item__bar--disabled": disabled }, barProps),
5356
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, { is: 'h1', "rcx-accordion-item__title": true, id: titleId }, title),
4821
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ is: 'section', "rcx-accordion-item": true, className: className }, props),
4822
+ title && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ animated: true, "rcx-accordion-item__bar": true, "rcx-accordion-item__bar--disabled": disabled }, barProps),
4823
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], { is: 'h1', "rcx-accordion-item__title": true, id: titleId }, title),
5357
4824
  !noncollapsible && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null,
5358
- (disabled || onToggleEnabled) && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, { "rcx-accordion-item__toggle-switch": true },
4825
+ (disabled || onToggleEnabled) && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], { "rcx-accordion-item__toggle-switch": true },
5359
4826
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ToggleSwitch__WEBPACK_IMPORTED_MODULE_4__.ToggleSwitch, { checked: !disabled, onClick: handleToggleClick, onChange: onToggleEnabled }))),
5360
4827
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_3__.Chevron, { size: 'x24', up: expanded }))))),
5361
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, { animated: true, "rcx-accordion-item__panel": true, "rcx-accordion-item__panel--expanded": panelExpanded, id: panelId, role: 'region' }, children)));
4828
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], { animated: true, "rcx-accordion-item__panel": true, "rcx-accordion-item__panel--expanded": panelExpanded, id: panelId, role: 'region' }, children)));
5362
4829
  };
5363
4830
 
5364
4831
 
@@ -5767,38 +5234,526 @@ __webpack_require__.r(__webpack_exports__);
5767
5234
 
5768
5235
  /***/ }),
5769
5236
 
5770
- /***/ "./src/components/Box/BoxTransforms.ts":
5771
- /*!*********************************************!*\
5772
- !*** ./src/components/Box/BoxTransforms.ts ***!
5773
- \*********************************************/
5237
+ /***/ "./src/components/Box/Box.tsx":
5238
+ /*!************************************!*\
5239
+ !*** ./src/components/Box/Box.tsx ***!
5240
+ \************************************/
5774
5241
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5775
5242
 
5776
5243
  "use strict";
5777
5244
  __webpack_require__.r(__webpack_exports__);
5778
5245
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5779
- /* harmony export */ "BoxTransforms": function() { return /* binding */ BoxTransforms; },
5780
- /* harmony export */ "useBoxTransform": function() { return /* binding */ useBoxTransform; },
5781
- /* harmony export */ "useComposedBoxTransform": function() { return /* binding */ useComposedBoxTransform; }
5246
+ /* harmony export */ "Box": function() { return /* binding */ Box; }
5782
5247
  /* harmony export */ });
5783
5248
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5784
5249
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5785
-
5786
- var BoxTransforms = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
5787
- var useBoxTransform = function () { return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BoxTransforms); };
5788
- var useComposedBoxTransform = function (fn) {
5789
- var parentFn = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BoxTransforms);
5790
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
5791
- if (!parentFn) {
5792
- return fn;
5793
- }
5794
- if (!fn) {
5795
- return parentFn;
5250
+ /* harmony import */ var _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
5251
+ /* harmony import */ var _hooks_useBoxOnlyProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks/useBoxOnlyProps */ "./src/hooks/useBoxOnlyProps.ts");
5252
+ /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
5253
+ /* harmony import */ var _BoxTransforms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
5254
+ /* harmony import */ var _useStylingProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useStylingProps */ "./src/components/Box/useStylingProps.ts");
5255
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
5256
+ var t = {};
5257
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5258
+ t[p] = s[p];
5259
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
5260
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5261
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5262
+ t[p[i]] = s[p[i]];
5263
+ }
5264
+ return t;
5265
+ };
5266
+
5267
+
5268
+
5269
+
5270
+
5271
+
5272
+ var Box = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Box(_a, ref) {
5273
+ var _b = _a.is, is = _b === void 0 ? 'div' : _b, children = _a.children, props = __rest(_a, ["is", "children"]);
5274
+ (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_3__.useStyleSheet)();
5275
+ var propsWithRef = props;
5276
+ if (ref) {
5277
+ propsWithRef.ref = ref;
5278
+ }
5279
+ var propsWithStringClassName = (0,_hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_1__.useArrayLikeClassNameProp)(propsWithRef);
5280
+ var transformFn = (0,_BoxTransforms__WEBPACK_IMPORTED_MODULE_4__.useBoxTransform)();
5281
+ if (transformFn) {
5282
+ propsWithStringClassName = transformFn(propsWithStringClassName);
5283
+ }
5284
+ var propsWithoutStylingProps = (0,_useStylingProps__WEBPACK_IMPORTED_MODULE_5__.useStylingProps)(propsWithStringClassName);
5285
+ var propsWithoutBoxOnlyProps = (0,_hooks_useBoxOnlyProps__WEBPACK_IMPORTED_MODULE_2__.useBoxOnlyProps)(propsWithoutStylingProps);
5286
+ var element = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(is, propsWithoutBoxOnlyProps, children);
5287
+ if (transformFn) {
5288
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_BoxTransforms__WEBPACK_IMPORTED_MODULE_4__.BoxTransforms.Provider, { children: element, value: null });
5289
+ }
5290
+ return element;
5291
+ });
5292
+ /* harmony default export */ __webpack_exports__["default"] = ((0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(Box));
5293
+
5294
+
5295
+ /***/ }),
5296
+
5297
+ /***/ "./src/components/Box/BoxTransforms.ts":
5298
+ /*!*********************************************!*\
5299
+ !*** ./src/components/Box/BoxTransforms.ts ***!
5300
+ \*********************************************/
5301
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5302
+
5303
+ "use strict";
5304
+ __webpack_require__.r(__webpack_exports__);
5305
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5306
+ /* harmony export */ "BoxTransforms": function() { return /* binding */ BoxTransforms; },
5307
+ /* harmony export */ "useBoxTransform": function() { return /* binding */ useBoxTransform; },
5308
+ /* harmony export */ "useComposedBoxTransform": function() { return /* binding */ useComposedBoxTransform; }
5309
+ /* harmony export */ });
5310
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5311
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5312
+
5313
+ var BoxTransforms = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
5314
+ var useBoxTransform = function () { return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BoxTransforms); };
5315
+ var useComposedBoxTransform = function (fn) {
5316
+ var parentFn = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BoxTransforms);
5317
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
5318
+ if (!parentFn) {
5319
+ return fn;
5320
+ }
5321
+ if (!fn) {
5322
+ return parentFn;
5796
5323
  }
5797
5324
  return function (props) { return fn(parentFn(props)); };
5798
5325
  }, [fn, parentFn]);
5799
5326
  };
5800
5327
 
5801
5328
 
5329
+ /***/ }),
5330
+
5331
+ /***/ "./src/components/Box/index.tsx":
5332
+ /*!**************************************!*\
5333
+ !*** ./src/components/Box/index.tsx ***!
5334
+ \**************************************/
5335
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5336
+
5337
+ "use strict";
5338
+ __webpack_require__.r(__webpack_exports__);
5339
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5340
+ /* harmony export */ "default": function() { return /* reexport safe */ _Box__WEBPACK_IMPORTED_MODULE_0__["default"]; }
5341
+ /* harmony export */ });
5342
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Box */ "./src/components/Box/Box.tsx");
5343
+
5344
+
5345
+
5346
+ /***/ }),
5347
+
5348
+ /***/ "./src/components/Box/stylingProps.ts":
5349
+ /*!********************************************!*\
5350
+ !*** ./src/components/Box/stylingProps.ts ***!
5351
+ \********************************************/
5352
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5353
+
5354
+ "use strict";
5355
+ __webpack_require__.r(__webpack_exports__);
5356
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5357
+ /* harmony export */ "propDefs": function() { return /* binding */ propDefs; },
5358
+ /* harmony export */ "extractStylingProps": function() { return /* binding */ extractStylingProps; }
5359
+ /* harmony export */ });
5360
+ /* harmony import */ var _rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/css-in-js */ "../css-in-js/dist/index.module.js");
5361
+ /* harmony import */ var _helpers_fromCamelToKebab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/fromCamelToKebab */ "./src/helpers/fromCamelToKebab.ts");
5362
+ /* harmony import */ var _styleTokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../styleTokens */ "./src/styleTokens.ts");
5363
+ var __makeTemplateObject = (undefined && undefined.__makeTemplateObject) || function (cooked, raw) {
5364
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5365
+ return cooked;
5366
+ };
5367
+ var __read = (undefined && undefined.__read) || function (o, n) {
5368
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5369
+ if (!m) return o;
5370
+ var i = m.call(o), r, ar = [], e;
5371
+ try {
5372
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5373
+ }
5374
+ catch (error) { e = { error: error }; }
5375
+ finally {
5376
+ try {
5377
+ if (r && !r.done && (m = i["return"])) m.call(i);
5378
+ }
5379
+ finally { if (e) throw e.error; }
5380
+ }
5381
+ return ar;
5382
+ };
5383
+ var __values = (undefined && undefined.__values) || function(o) {
5384
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5385
+ if (m) return m.call(o);
5386
+ if (o && typeof o.length === "number") return {
5387
+ next: function () {
5388
+ if (o && i >= o.length) o = void 0;
5389
+ return { value: o && o[i++], done: !o };
5390
+ }
5391
+ };
5392
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5393
+ };
5394
+
5395
+
5396
+
5397
+ var stringProp = {
5398
+ toCSSValue: function (value) { return (typeof value === 'string' ? value : undefined); },
5399
+ };
5400
+ var numberOrStringProp = {
5401
+ toCSSValue: function (value) {
5402
+ if (typeof value === 'number' || typeof value === 'string') {
5403
+ return String(value);
5404
+ }
5405
+ return undefined;
5406
+ },
5407
+ };
5408
+ var borderWidthProp = {
5409
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.borderWidth,
5410
+ };
5411
+ var borderRadiusProp = {
5412
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.borderRadius,
5413
+ };
5414
+ var colorProp = {
5415
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.color,
5416
+ };
5417
+ var sizeProp = {
5418
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.size,
5419
+ };
5420
+ var insetProp = {
5421
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.inset,
5422
+ };
5423
+ var marginProp = {
5424
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.margin,
5425
+ };
5426
+ var paddingProp = {
5427
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.padding,
5428
+ };
5429
+ var fontFamilyProp = {
5430
+ toCSSValue: _styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontFamily,
5431
+ };
5432
+ var fontSizeProp = {
5433
+ toCSSValue: function (value) { var _a; return ((_a = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _a === void 0 ? void 0 : _a.fontSize) || (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value); },
5434
+ };
5435
+ var fontWeightProp = {
5436
+ toCSSValue: function (value) { var _a; return value ? String(((_a = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _a === void 0 ? void 0 : _a.fontWeight) || value) : undefined; },
5437
+ };
5438
+ var lineHeightProp = {
5439
+ toCSSValue: function (value) { var _a; return ((_a = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _a === void 0 ? void 0 : _a.lineHeight) || (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value); },
5440
+ };
5441
+ var letterSpacingProp = {
5442
+ toCSSValue: function (value) { var _a; return value ? String(((_a = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _a === void 0 ? void 0 : _a.letterSpacing) || value) : undefined; },
5443
+ };
5444
+ var aliasOf = function (propName) { return ({
5445
+ aliasOf: propName,
5446
+ }); };
5447
+ var propDefs = {
5448
+ border: stringProp,
5449
+ borderBlock: stringProp,
5450
+ borderBlockStart: stringProp,
5451
+ borderBlockEnd: stringProp,
5452
+ borderInline: stringProp,
5453
+ borderInlineStart: stringProp,
5454
+ borderInlineEnd: stringProp,
5455
+ borderWidth: borderWidthProp,
5456
+ borderBlockWidth: borderWidthProp,
5457
+ borderBlockStartWidth: borderWidthProp,
5458
+ borderBlockEndWidth: borderWidthProp,
5459
+ borderInlineWidth: borderWidthProp,
5460
+ borderInlineStartWidth: borderWidthProp,
5461
+ borderInlineEndWidth: borderWidthProp,
5462
+ borderStyle: stringProp,
5463
+ borderBlockStyle: stringProp,
5464
+ borderBlockStartStyle: stringProp,
5465
+ borderBlockEndStyle: stringProp,
5466
+ borderInlineStyle: stringProp,
5467
+ borderInlineStartStyle: stringProp,
5468
+ borderInlineEndStyle: stringProp,
5469
+ borderColor: colorProp,
5470
+ borderBlockColor: colorProp,
5471
+ borderBlockStartColor: colorProp,
5472
+ borderBlockEndColor: colorProp,
5473
+ borderInlineColor: colorProp,
5474
+ borderInlineStartColor: colorProp,
5475
+ borderInlineEndColor: colorProp,
5476
+ borderRadius: borderRadiusProp,
5477
+ borderStartStartRadius: borderRadiusProp,
5478
+ borderStartEndRadius: borderRadiusProp,
5479
+ borderEndStartRadius: borderRadiusProp,
5480
+ borderEndEndRadius: borderRadiusProp,
5481
+ color: colorProp,
5482
+ backgroundColor: colorProp,
5483
+ bg: aliasOf('backgroundColor'),
5484
+ opacity: numberOrStringProp,
5485
+ alignItems: stringProp,
5486
+ alignContent: stringProp,
5487
+ justifyItems: stringProp,
5488
+ justifyContent: stringProp,
5489
+ flexWrap: stringProp,
5490
+ flexDirection: stringProp,
5491
+ flexGrow: numberOrStringProp,
5492
+ flexShrink: numberOrStringProp,
5493
+ flexBasis: stringProp,
5494
+ justifySelf: stringProp,
5495
+ alignSelf: stringProp,
5496
+ order: numberOrStringProp,
5497
+ w: aliasOf('width'),
5498
+ width: sizeProp,
5499
+ minWidth: sizeProp,
5500
+ maxWidth: sizeProp,
5501
+ h: aliasOf('height'),
5502
+ height: sizeProp,
5503
+ minHeight: sizeProp,
5504
+ maxHeight: sizeProp,
5505
+ display: stringProp,
5506
+ verticalAlign: stringProp,
5507
+ overflow: stringProp,
5508
+ overflowX: stringProp,
5509
+ overflowY: stringProp,
5510
+ position: stringProp,
5511
+ zIndex: numberOrStringProp,
5512
+ inset: insetProp,
5513
+ insetBlock: insetProp,
5514
+ insetBlockStart: insetProp,
5515
+ insetBlockEnd: insetProp,
5516
+ insetInline: insetProp,
5517
+ insetInlineStart: insetProp,
5518
+ insetInlineEnd: insetProp,
5519
+ m: aliasOf('margin'),
5520
+ margin: marginProp,
5521
+ mb: aliasOf('marginBlock'),
5522
+ marginBlock: marginProp,
5523
+ mbs: aliasOf('marginBlockStart'),
5524
+ marginBlockStart: marginProp,
5525
+ mbe: aliasOf('marginBlockEnd'),
5526
+ marginBlockEnd: marginProp,
5527
+ mi: aliasOf('marginInline'),
5528
+ marginInline: marginProp,
5529
+ mis: aliasOf('marginInlineStart'),
5530
+ marginInlineStart: marginProp,
5531
+ mie: aliasOf('marginInlineEnd'),
5532
+ marginInlineEnd: marginProp,
5533
+ p: aliasOf('padding'),
5534
+ padding: paddingProp,
5535
+ pb: aliasOf('paddingBlock'),
5536
+ paddingBlock: paddingProp,
5537
+ pbs: aliasOf('paddingBlockStart'),
5538
+ paddingBlockStart: paddingProp,
5539
+ pbe: aliasOf('paddingBlockEnd'),
5540
+ paddingBlockEnd: paddingProp,
5541
+ pi: aliasOf('paddingInline'),
5542
+ paddingInline: paddingProp,
5543
+ pis: aliasOf('paddingInlineStart'),
5544
+ paddingInlineStart: paddingProp,
5545
+ pie: aliasOf('paddingInlineEnd'),
5546
+ paddingInlineEnd: paddingProp,
5547
+ fontFamily: fontFamilyProp,
5548
+ fontSize: fontSizeProp,
5549
+ fontStyle: stringProp,
5550
+ fontWeight: fontWeightProp,
5551
+ letterSpacing: letterSpacingProp,
5552
+ lineHeight: lineHeightProp,
5553
+ textAlign: stringProp,
5554
+ textTransform: stringProp,
5555
+ textDecorationLine: stringProp,
5556
+ elevation: {
5557
+ toStyle: function (value) {
5558
+ if (value === '0') {
5559
+ return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: none;\n "], ["\n box-shadow: none;\n "])));
5560
+ }
5561
+ if (value === '1') {
5562
+ return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-shadow: 0px 0px 12px 0px ", ";\n "], ["\n box-shadow: 0px 0px 12px 0px ", ";\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.color)('neutral-800-10'));
5563
+ }
5564
+ if (value === '2') {
5565
+ return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-shadow: 0px 0px 2px 0px ", ",\n 0px 0px 12px 0px ", ";\n "], ["\n box-shadow: 0px 0px 2px 0px ", ",\n 0px 0px 12px 0px ", ";\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.color)('neutral-800-8'), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.color)('neutral-800-12'));
5566
+ }
5567
+ },
5568
+ },
5569
+ invisible: {
5570
+ toStyle: function (value) {
5571
+ return value
5572
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n visibility: hidden;\n opacity: 0;\n "], ["\n visibility: hidden;\n opacity: 0;\n "]))) : undefined;
5573
+ },
5574
+ },
5575
+ withTruncatedText: {
5576
+ toStyle: function (value) {
5577
+ return value
5578
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))) : undefined;
5579
+ },
5580
+ },
5581
+ size: {
5582
+ toStyle: function (value) {
5583
+ return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)
5584
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: ", " !important;\n height: ", " !important;\n "], ["\n width: ", " !important;\n height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)) : undefined;
5585
+ },
5586
+ },
5587
+ minSize: {
5588
+ toStyle: function (value) {
5589
+ return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)
5590
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n min-width: ", " !important;\n min-height: ", " !important;\n "], ["\n min-width: ", " !important;\n min-height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)) : undefined;
5591
+ },
5592
+ },
5593
+ maxSize: {
5594
+ toStyle: function (value) {
5595
+ return (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)
5596
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n max-width: ", " !important;\n max-height: ", " !important;\n "], ["\n max-width: ", " !important;\n max-height: ", " !important;\n "])), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value), (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.size)(value)) : undefined;
5597
+ },
5598
+ },
5599
+ fontScale: {
5600
+ toStyle: function (value) {
5601
+ var _a, _b, _c, _d;
5602
+ return (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: ", " !important;\n font-weight: ", " !important;\n letter-spacing: ", " !important;\n line-height: ", " !important;\n "], ["\n font-size: ", " !important;\n font-weight: ", " !important;\n letter-spacing: ", " !important;\n line-height: ", " !important;\n "])), (_a = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _a === void 0 ? void 0 : _a.fontSize, (_b = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _b === void 0 ? void 0 : _b.fontWeight, (_c = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _c === void 0 ? void 0 : _c.letterSpacing, (_d = (0,_styleTokens__WEBPACK_IMPORTED_MODULE_2__.fontScale)(value)) === null || _d === void 0 ? void 0 : _d.lineHeight);
5603
+ },
5604
+ },
5605
+ };
5606
+ var compiledPropDefs = new Map(Object.entries(propDefs).map(function (_a) {
5607
+ var _b = __read(_a, 2), propName = _b[0], propDef = _b[1];
5608
+ if ('aliasOf' in propDef) {
5609
+ var effectivePropName_1 = propDef.aliasOf;
5610
+ return [
5611
+ propName,
5612
+ function (value, stylingProps) {
5613
+ if (stylingProps.has(effectivePropName_1)) {
5614
+ return;
5615
+ }
5616
+ var inject = compiledPropDefs.get(effectivePropName_1);
5617
+ inject === null || inject === void 0 ? void 0 : inject(value, stylingProps);
5618
+ },
5619
+ ];
5620
+ }
5621
+ if ('toCSSValue' in propDef) {
5622
+ var cssProperty_1 = (0,_helpers_fromCamelToKebab__WEBPACK_IMPORTED_MODULE_1__.fromCamelToKebab)(propName);
5623
+ var toCSSValue_1 = propDef.toCSSValue;
5624
+ return [
5625
+ propName,
5626
+ function (value, stylingProps) {
5627
+ var cssValue = toCSSValue_1(value);
5628
+ if (cssValue === undefined) {
5629
+ return;
5630
+ }
5631
+ stylingProps.set(propName, (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ": ", " !important;\n "], ["\n ", ": ", " !important;\n "])), cssProperty_1, cssValue));
5632
+ },
5633
+ ];
5634
+ }
5635
+ var toStyle = propDef.toStyle;
5636
+ return [
5637
+ propName,
5638
+ function (value, stylingProps) {
5639
+ var style = toStyle(value);
5640
+ if (style === undefined) {
5641
+ return;
5642
+ }
5643
+ stylingProps.set(propName, style);
5644
+ },
5645
+ ];
5646
+ }));
5647
+ var extractStylingProps = function (props) {
5648
+ var e_1, _a;
5649
+ var stylingProps = new Map();
5650
+ var newProps = {};
5651
+ try {
5652
+ for (var _b = __values(Object.entries(props)), _c = _b.next(); !_c.done; _c = _b.next()) {
5653
+ var _d = __read(_c.value, 2), propName = _d[0], value = _d[1];
5654
+ var inject = compiledPropDefs.get(propName);
5655
+ if (!inject) {
5656
+ newProps[propName] = value;
5657
+ continue;
5658
+ }
5659
+ if (value === undefined) {
5660
+ continue;
5661
+ }
5662
+ inject(value, stylingProps);
5663
+ }
5664
+ }
5665
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5666
+ finally {
5667
+ try {
5668
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5669
+ }
5670
+ finally { if (e_1) throw e_1.error; }
5671
+ }
5672
+ var styles = stylingProps.size
5673
+ ? (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), Array.from(stylingProps.values())) : undefined;
5674
+ return [newProps, styles];
5675
+ };
5676
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
5677
+
5678
+
5679
+ /***/ }),
5680
+
5681
+ /***/ "./src/components/Box/useStylingProps.ts":
5682
+ /*!***********************************************!*\
5683
+ !*** ./src/components/Box/useStylingProps.ts ***!
5684
+ \***********************************************/
5685
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5686
+
5687
+ "use strict";
5688
+ __webpack_require__.r(__webpack_exports__);
5689
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5690
+ /* harmony export */ "useStylingProps": function() { return /* binding */ useStylingProps; }
5691
+ /* harmony export */ });
5692
+ /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
5693
+ /* harmony import */ var _hooks_useStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
5694
+ /* harmony import */ var _stylingProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stylingProps */ "./src/components/Box/stylingProps.ts");
5695
+ var __read = (undefined && undefined.__read) || function (o, n) {
5696
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5697
+ if (!m) return o;
5698
+ var i = m.call(o), r, ar = [], e;
5699
+ try {
5700
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5701
+ }
5702
+ catch (error) { e = { error: error }; }
5703
+ finally {
5704
+ try {
5705
+ if (r && !r.done && (m = i["return"])) m.call(i);
5706
+ }
5707
+ finally { if (e) throw e.error; }
5708
+ }
5709
+ return ar;
5710
+ };
5711
+
5712
+
5713
+
5714
+ var useStylingProps = function (originalProps) {
5715
+ var _a = __read((0,_stylingProps__WEBPACK_IMPORTED_MODULE_2__.extractStylingProps)(originalProps), 2), props = _a[0], styles = _a[1];
5716
+ var newClassName = (0,_hooks_useStyle__WEBPACK_IMPORTED_MODULE_1__.useStyle)(styles, undefined);
5717
+ if (newClassName) {
5718
+ props.className = props.className
5719
+ ? (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_0__.appendClassName)(props.className, newClassName)
5720
+ : newClassName;
5721
+ }
5722
+ return props;
5723
+ };
5724
+
5725
+
5726
+ /***/ }),
5727
+
5728
+ /***/ "./src/components/Box/withBoxStyling.ts":
5729
+ /*!**********************************************!*\
5730
+ !*** ./src/components/Box/withBoxStyling.ts ***!
5731
+ \**********************************************/
5732
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5733
+
5734
+ "use strict";
5735
+ __webpack_require__.r(__webpack_exports__);
5736
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5737
+ /* harmony export */ "withBoxStyling": function() { return /* binding */ withBoxStyling; }
5738
+ /* harmony export */ });
5739
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5740
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5741
+ /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
5742
+ /* harmony import */ var _useStylingProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useStylingProps */ "./src/components/Box/useStylingProps.ts");
5743
+
5744
+
5745
+
5746
+ var withBoxStyling = function (component) {
5747
+ var WithBoxStyling = function (props) {
5748
+ (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
5749
+ var propsWithoutStylingProps = (0,_useStylingProps__WEBPACK_IMPORTED_MODULE_2__.useStylingProps)(props);
5750
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, propsWithoutStylingProps);
5751
+ };
5752
+ WithBoxStyling.displayName = "WithBoxStyling(" + (component.displayName || component.name || 'Component') + ")";
5753
+ return WithBoxStyling;
5754
+ };
5755
+
5756
+
5802
5757
  /***/ }),
5803
5758
 
5804
5759
  /***/ "./src/components/Button/ActionButton.tsx":
@@ -5874,7 +5829,7 @@ __webpack_require__.r(__webpack_exports__);
5874
5829
  /* harmony export */ });
5875
5830
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5876
5831
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5877
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
5832
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
5878
5833
  var __assign = (undefined && undefined.__assign) || function () {
5879
5834
  __assign = Object.assign || function(t) {
5880
5835
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -5926,7 +5881,7 @@ var Button = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Button(_
5926
5881
  }
5927
5882
  return {};
5928
5883
  }, [danger, ghost, ghostish, info, nude, primary, success, warning]);
5929
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ animated: true, is: is, "rcx-button": true }, kindAndVariantProps, { "rcx-button--small": small, "rcx-button--square": square, "rcx-button--small-square": small && square, "rcx-button--tiny-square": tiny && square, "rcx-button--mini-square": mini && square, ref: ref }, extraProps, props)));
5884
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ animated: true, is: is, "rcx-button": true }, kindAndVariantProps, { "rcx-button--small": small, "rcx-button--square": square, "rcx-button--small-square": small && square, "rcx-button--tiny-square": tiny && square, "rcx-button--mini-square": mini && square, ref: ref }, extraProps, props)));
5930
5885
  });
5931
5886
  /* harmony default export */ __webpack_exports__["default"] = (Button);
5932
5887
 
@@ -5969,7 +5924,7 @@ __webpack_require__.r(__webpack_exports__);
5969
5924
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5970
5925
  /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
5971
5926
  /* harmony import */ var _helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/patchChildren */ "./src/helpers/patchChildren.ts");
5972
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
5927
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
5973
5928
  var __assign = (undefined && undefined.__assign) || function () {
5974
5929
  __assign = Object.assign || function(t) {
5975
5930
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -5998,7 +5953,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
5998
5953
 
5999
5954
  var ButtonGroup = function (_a) {
6000
5955
  var _b = _a.align, align = _b === void 0 ? 'start' : _b, children = _a.children, stretch = _a.stretch, vertical = _a.vertical, wrap = _a.wrap, small = _a.small, medium = _a.medium, props = __rest(_a, ["align", "children", "stretch", "vertical", "wrap", "small", "medium"]);
6001
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ "rcx-button-group": true, "rcx-button-group--align": align, "rcx-button-group--stretch": stretch, "rcx-button-group--vertical": vertical, "rcx-button-group--small": small, "rcx-button-group--medium": medium, "rcx-button-group--wrap": wrap, role: 'group' }, props), (0,_helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__.patchChildren)(children, function (childProps) { return ({
5956
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], __assign({ "rcx-button-group": true, "rcx-button-group--align": align, "rcx-button-group--stretch": stretch, "rcx-button-group--vertical": vertical, "rcx-button-group--small": small, "rcx-button-group--medium": medium, "rcx-button-group--wrap": wrap, role: 'group' }, props), (0,_helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__.patchChildren)(children, function (childProps) { return ({
6002
5957
  className: (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_1__.appendClassName)(childProps.className, 'rcx-button-group__item'),
6003
5958
  }); })));
6004
5959
  };
@@ -6036,7 +5991,7 @@ __webpack_require__.r(__webpack_exports__);
6036
5991
  /* harmony export */ });
6037
5992
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6038
5993
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6039
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
5994
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6040
5995
  /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
6041
5996
  var __assign = (undefined && undefined.__assign) || function () {
6042
5997
  __assign = Object.assign || function(t) {
@@ -6070,11 +6025,11 @@ var Callout = function (_a) {
6070
6025
  (type === 'warning' && 'warning') ||
6071
6026
  (type === 'danger' && 'ban') ||
6072
6027
  'info-circled';
6073
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'section', "rcx-callout": true, "rcx-callout--type": type }, props),
6028
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'section', "rcx-callout": true, "rcx-callout--type": type }, props),
6074
6029
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__.Icon, { name: iconName, size: 'x20' }),
6075
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-callout__wrapper": true },
6076
- title && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'h1', "rcx-callout__title": true }, title)),
6077
- children && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-callout__children": true }, children))));
6030
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-callout__wrapper": true },
6031
+ title && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'h1', "rcx-callout__title": true }, title)),
6032
+ children && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-callout__children": true }, children))));
6078
6033
  };
6079
6034
 
6080
6035
 
@@ -6112,7 +6067,7 @@ __webpack_require__.r(__webpack_exports__);
6112
6067
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
6113
6068
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6114
6069
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6115
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6070
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6116
6071
  /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
6117
6072
  var __assign = (undefined && undefined.__assign) || function () {
6118
6073
  __assign = Object.assign || function(t) {
@@ -6155,9 +6110,9 @@ var CheckBox = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function CheckB
6155
6110
  }
6156
6111
  onChange && onChange.call(innerRef.current, event);
6157
6112
  }, [innerRef, indeterminate, onChange]);
6158
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_3__.Label, "rcx-check-box": true }, props),
6159
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, { is: 'input', "rcx-check-box__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'checkbox', value: value, "data-qa": dataQa || qa, ref: mergedRef, onChange: handleChange, onInput: onInput, onInvalid: onInvalid }),
6160
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, { is: 'i', "rcx-check-box__fake": true, "aria-hidden": 'true' })));
6113
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_3__.Label, "rcx-check-box": true }, props),
6114
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], { is: 'input', "rcx-check-box__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'checkbox', value: value, "data-qa": dataQa || qa, ref: mergedRef, onChange: handleChange, onInput: onInput, onInvalid: onInvalid }),
6115
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], { is: 'i', "rcx-check-box__fake": true, "aria-hidden": 'true' })));
6161
6116
  });
6162
6117
 
6163
6118
 
@@ -6193,7 +6148,7 @@ __webpack_require__.r(__webpack_exports__);
6193
6148
  /* harmony export */ });
6194
6149
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6195
6150
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6196
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6151
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6197
6152
  /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
6198
6153
  var __assign = (undefined && undefined.__assign) || function () {
6199
6154
  __assign = Object.assign || function(t) {
@@ -6223,7 +6178,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
6223
6178
  function Chevron(_a) {
6224
6179
  var up = _a.up, right = _a.right, down = _a.down, left = _a.left, size = _a.size, props = __rest(_a, ["up", "right", "down", "left", "size"]);
6225
6180
  var children = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__.Icon, { name: 'chevron-down', size: size }); }, [size]);
6226
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', children: children, "rcx-chevron": true, "rcx-chevron--up": up, "rcx-chevron--right": right, "rcx-chevron--down": down, "rcx-chevron--left": left }, props)));
6181
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', children: children, "rcx-chevron": true, "rcx-chevron--up": up, "rcx-chevron--right": right, "rcx-chevron--down": down, "rcx-chevron--left": left }, props)));
6227
6182
  }
6228
6183
 
6229
6184
 
@@ -6318,7 +6273,7 @@ Chip.displayName = 'Chip';
6318
6273
 
6319
6274
  "use strict";
6320
6275
  __webpack_require__.r(__webpack_exports__);
6321
- /* harmony import */ var _Box_withBoxStyling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Box/withBoxStyling */ "./src/components/Box/withBoxStyling.js");
6276
+ /* harmony import */ var _Box_withBoxStyling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Box/withBoxStyling */ "./src/components/Box/withBoxStyling.ts");
6322
6277
  /* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Chip */ "./src/components/Chip/Chip.tsx");
6323
6278
 
6324
6279
 
@@ -6337,7 +6292,7 @@ __webpack_require__.r(__webpack_exports__);
6337
6292
  __webpack_require__.r(__webpack_exports__);
6338
6293
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6339
6294
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6340
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6295
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6341
6296
  /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
6342
6297
  /* harmony import */ var _Skeleton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.tsx");
6343
6298
  var __assign = (undefined && undefined.__assign) || function () {
@@ -6369,13 +6324,13 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
6369
6324
  var CodeSnippet = function (_a) {
6370
6325
  var children = _a.children, onClick = _a.onClick, _b = _a.buttonText, buttonText = _b === void 0 ? 'Copy' : _b, props = __rest(_a, ["children", "onClick", "buttonText"]);
6371
6326
  if (!children) {
6372
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'pre', "rcx-code-snippet": true }, props),
6327
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'pre', "rcx-code-snippet": true }, props),
6373
6328
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Skeleton__WEBPACK_IMPORTED_MODULE_3__.Skeleton, { w: '100%' })));
6374
6329
  }
6375
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'pre', "rcx-code-snippet": true }, props),
6376
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-code-snippet__codebox": true },
6330
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'pre', "rcx-code-snippet": true }, props),
6331
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-code-snippet__codebox": true },
6377
6332
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", null, children)),
6378
- onClick && children && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, null,
6333
+ onClick && children && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], null,
6379
6334
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_2__.Button, { small: true, primary: true, onClick: onClick }, buttonText)))));
6380
6335
  };
6381
6336
  /* harmony default export */ __webpack_exports__["default"] = (CodeSnippet);
@@ -6413,7 +6368,7 @@ __webpack_require__.r(__webpack_exports__);
6413
6368
  /* harmony export */ });
6414
6369
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6415
6370
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6416
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6371
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6417
6372
  var __assign = (undefined && undefined.__assign) || function () {
6418
6373
  __assign = Object.assign || function(t) {
6419
6374
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6427,7 +6382,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6427
6382
  };
6428
6383
 
6429
6384
 
6430
- var Divider = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'hr', "rcx-divider": true }, props)); };
6385
+ var Divider = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'hr', "rcx-divider": true }, props)); };
6431
6386
 
6432
6387
 
6433
6388
 
@@ -6616,7 +6571,7 @@ __webpack_require__.r(__webpack_exports__);
6616
6571
  /* harmony export */ });
6617
6572
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6618
6573
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6619
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6574
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6620
6575
  var __assign = (undefined && undefined.__assign) || function () {
6621
6576
  __assign = Object.assign || function(t) {
6622
6577
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6631,7 +6586,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6631
6586
 
6632
6587
 
6633
6588
  function Field(props) {
6634
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-field": true }, props));
6589
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-field": true }, props));
6635
6590
  }
6636
6591
 
6637
6592
 
@@ -6650,7 +6605,7 @@ __webpack_require__.r(__webpack_exports__);
6650
6605
  /* harmony export */ });
6651
6606
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6652
6607
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6653
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6608
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6654
6609
  var __assign = (undefined && undefined.__assign) || function () {
6655
6610
  __assign = Object.assign || function(t) {
6656
6611
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6664,7 +6619,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6664
6619
  };
6665
6620
 
6666
6621
 
6667
- var FieldDescription = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-field__description": true }, props))); };
6622
+ var FieldDescription = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-field__description": true }, props))); };
6668
6623
 
6669
6624
 
6670
6625
  /***/ }),
@@ -6682,7 +6637,7 @@ __webpack_require__.r(__webpack_exports__);
6682
6637
  /* harmony export */ });
6683
6638
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6684
6639
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6685
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6640
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6686
6641
  var __assign = (undefined && undefined.__assign) || function () {
6687
6642
  __assign = Object.assign || function(t) {
6688
6643
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6696,7 +6651,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6696
6651
  };
6697
6652
 
6698
6653
 
6699
- var FieldError = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-field__error": true }, props))); };
6654
+ var FieldError = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-field__error": true }, props))); };
6700
6655
 
6701
6656
 
6702
6657
  /***/ }),
@@ -6714,7 +6669,7 @@ __webpack_require__.r(__webpack_exports__);
6714
6669
  /* harmony export */ });
6715
6670
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6716
6671
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6717
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6672
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6718
6673
  var __assign = (undefined && undefined.__assign) || function () {
6719
6674
  __assign = Object.assign || function(t) {
6720
6675
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6728,7 +6683,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6728
6683
  };
6729
6684
 
6730
6685
 
6731
- var FieldHint = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-field__hint": true }, props))); };
6686
+ var FieldHint = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-field__hint": true }, props))); };
6732
6687
 
6733
6688
 
6734
6689
  /***/ }),
@@ -6746,7 +6701,7 @@ __webpack_require__.r(__webpack_exports__);
6746
6701
  /* harmony export */ });
6747
6702
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6748
6703
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6749
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6704
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6750
6705
  /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
6751
6706
  var __assign = (undefined && undefined.__assign) || function () {
6752
6707
  __assign = Object.assign || function(t) {
@@ -6762,7 +6717,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6762
6717
 
6763
6718
 
6764
6719
 
6765
- var FieldLabel = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-field__label": true }, props))); };
6720
+ var FieldLabel = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-field__label": true }, props))); };
6766
6721
 
6767
6722
 
6768
6723
  /***/ }),
@@ -6777,7 +6732,7 @@ var FieldLabel = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___d
6777
6732
  __webpack_require__.r(__webpack_exports__);
6778
6733
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6779
6734
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6780
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6735
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6781
6736
  var __assign = (undefined && undefined.__assign) || function () {
6782
6737
  __assign = Object.assign || function(t) {
6783
6738
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6791,7 +6746,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6791
6746
  };
6792
6747
 
6793
6748
 
6794
- var FieldLink = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'a', target: '_blank', "rcx-field__link": true }, props))); };
6749
+ var FieldLink = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'a', target: '_blank', "rcx-field__link": true }, props))); };
6795
6750
  /* harmony default export */ __webpack_exports__["default"] = (FieldLink);
6796
6751
 
6797
6752
 
@@ -6810,7 +6765,7 @@ __webpack_require__.r(__webpack_exports__);
6810
6765
  /* harmony export */ });
6811
6766
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6812
6767
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6813
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6768
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6814
6769
  var __assign = (undefined && undefined.__assign) || function () {
6815
6770
  __assign = Object.assign || function(t) {
6816
6771
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6824,7 +6779,7 @@ var __assign = (undefined && undefined.__assign) || function () {
6824
6779
  };
6825
6780
 
6826
6781
 
6827
- var FieldRow = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-field__row": true }, props))); };
6782
+ var FieldRow = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-field__row": true }, props))); };
6828
6783
 
6829
6784
 
6830
6785
  /***/ }),
@@ -6878,7 +6833,7 @@ __webpack_require__.r(__webpack_exports__);
6878
6833
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6879
6834
  /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
6880
6835
  /* harmony import */ var _helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/patchChildren */ "./src/helpers/patchChildren.ts");
6881
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
6836
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
6882
6837
  var __assign = (undefined && undefined.__assign) || function () {
6883
6838
  __assign = Object.assign || function(t) {
6884
6839
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6907,7 +6862,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
6907
6862
 
6908
6863
  var FieldGroup = function (_a) {
6909
6864
  var children = _a.children, props = __rest(_a, ["children"]);
6910
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ is: 'fieldset', "rcx-field-group": true, role: 'group' }, props), (0,_helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__.patchChildren)(children, function (childProps) { return ({
6865
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], __assign({ is: 'fieldset', "rcx-field-group": true, role: 'group' }, props), (0,_helpers_patchChildren__WEBPACK_IMPORTED_MODULE_2__.patchChildren)(children, function (childProps) { return ({
6911
6866
  className: (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_1__.appendClassName)(childProps.className, 'rcx-field-group__item'),
6912
6867
  }); })));
6913
6868
  };
@@ -7060,7 +7015,7 @@ __webpack_require__.r(__webpack_exports__);
7060
7015
  /* harmony export */ });
7061
7016
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7062
7017
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7063
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7018
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7064
7019
  /* harmony import */ var _GridItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GridItem */ "./src/components/Grid/GridItem.tsx");
7065
7020
  var __assign = (undefined && undefined.__assign) || function () {
7066
7021
  __assign = Object.assign || function(t) {
@@ -7089,8 +7044,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
7089
7044
 
7090
7045
  var Grid = function (_a) {
7091
7046
  var xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, props = __rest(_a, ["xs", "sm", "md", "lg", "xl"]);
7092
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-grid__wrapper": true },
7093
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-grid": true, "rcx-grid--xs": xs, "rcx-grid--sm": sm, "rcx-grid--md": md, "rcx-grid--lg": lg, "rcx-grid--xl": xl }, props))));
7047
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-grid__wrapper": true },
7048
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-grid": true, "rcx-grid--xs": xs, "rcx-grid--sm": sm, "rcx-grid--md": md, "rcx-grid--lg": lg, "rcx-grid--xl": xl }, props))));
7094
7049
  };
7095
7050
  Grid.Item = _GridItem__WEBPACK_IMPORTED_MODULE_2__.GridItem;
7096
7051
 
@@ -7110,7 +7065,7 @@ __webpack_require__.r(__webpack_exports__);
7110
7065
  /* harmony export */ });
7111
7066
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7112
7067
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7113
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7068
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7114
7069
  var __assign = (undefined && undefined.__assign) || function () {
7115
7070
  __assign = Object.assign || function(t) {
7116
7071
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7137,7 +7092,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
7137
7092
 
7138
7093
  var GridItem = function (_a) {
7139
7094
  var xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, props = __rest(_a, ["xs", "sm", "md", "lg", "xl"]);
7140
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-grid__item": true, "rcx-grid__item--xs": xs, "rcx-grid__item--sm": sm, "rcx-grid__item--md": md, "rcx-grid__item--lg": lg, "rcx-grid__item--xl": xl }, props)));
7095
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-grid__item": true, "rcx-grid__item--xs": xs, "rcx-grid__item--sm": sm, "rcx-grid__item--md": md, "rcx-grid__item--lg": lg, "rcx-grid__item--xl": xl }, props)));
7141
7096
  };
7142
7097
 
7143
7098
 
@@ -7180,7 +7135,7 @@ __webpack_require__.r(__webpack_exports__);
7180
7135
  /* harmony import */ var _rocket_chat_icons__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_icons__WEBPACK_IMPORTED_MODULE_0__);
7181
7136
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
7182
7137
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
7183
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7138
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7184
7139
  var __assign = (undefined && undefined.__assign) || function () {
7185
7140
  __assign = Object.assign || function(t) {
7186
7141
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7208,7 +7163,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
7208
7163
 
7209
7164
  var Icon = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Icon(_a, ref) {
7210
7165
  var name = _a.name, size = _a.size, props = __rest(_a, ["name", "size"]);
7211
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ is: 'i', "rcx-icon": true, "rcx-icon--name": name, children: (_rocket_chat_icons__WEBPACK_IMPORTED_MODULE_0___default())[name], "aria-hidden": 'true', fontSize: size, ref: ref }, props)));
7166
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ is: 'i', "rcx-icon": true, "rcx-icon--name": name, children: (_rocket_chat_icons__WEBPACK_IMPORTED_MODULE_0___default())[name], "aria-hidden": 'true', fontSize: size, ref: ref }, props)));
7212
7167
  });
7213
7168
 
7214
7169
 
@@ -7244,7 +7199,7 @@ __webpack_require__.r(__webpack_exports__);
7244
7199
  /* harmony export */ });
7245
7200
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7246
7201
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7247
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7202
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7248
7203
  var __assign = (undefined && undefined.__assign) || function () {
7249
7204
  __assign = Object.assign || function(t) {
7250
7205
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7259,7 +7214,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7259
7214
 
7260
7215
 
7261
7216
  var Addon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Addon(props, ref) {
7262
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-input-box__addon": true, ref: ref }, props));
7217
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-input-box__addon": true, ref: ref }, props));
7263
7218
  });
7264
7219
 
7265
7220
 
@@ -7278,7 +7233,7 @@ __webpack_require__.r(__webpack_exports__);
7278
7233
  /* harmony export */ });
7279
7234
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7280
7235
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7281
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7236
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7282
7237
  var __assign = (undefined && undefined.__assign) || function () {
7283
7238
  __assign = Object.assign || function(t) {
7284
7239
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7293,7 +7248,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7293
7248
 
7294
7249
 
7295
7250
  var Input = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Input(props, ref) {
7296
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'input', animated: true, "rcx-input-box": true, ref: ref }, props));
7251
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'input', animated: true, "rcx-input-box": true, ref: ref }, props));
7297
7252
  });
7298
7253
 
7299
7254
 
@@ -7415,7 +7370,7 @@ __webpack_require__.r(__webpack_exports__);
7415
7370
  /* harmony export */ });
7416
7371
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7417
7372
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7418
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7373
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7419
7374
  /* harmony import */ var _Skeleton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.tsx");
7420
7375
  var __assign = (undefined && undefined.__assign) || function () {
7421
7376
  __assign = Object.assign || function(t) {
@@ -7431,7 +7386,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7431
7386
 
7432
7387
 
7433
7388
 
7434
- var InputBoxSkeleton = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-skeleton__input": true }, props),
7389
+ var InputBoxSkeleton = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-skeleton__input": true }, props),
7435
7390
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Skeleton__WEBPACK_IMPORTED_MODULE_2__.Skeleton, { width: '100%' }))); };
7436
7391
 
7437
7392
 
@@ -7450,7 +7405,7 @@ __webpack_require__.r(__webpack_exports__);
7450
7405
  /* harmony export */ });
7451
7406
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7452
7407
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7453
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7408
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7454
7409
  var __assign = (undefined && undefined.__assign) || function () {
7455
7410
  __assign = Object.assign || function(t) {
7456
7411
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7465,7 +7420,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7465
7420
 
7466
7421
 
7467
7422
  var Option = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Option(props, ref) {
7468
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'option', "rcx-input-box__option": true, ref: ref }, props));
7423
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'option', "rcx-input-box__option": true, ref: ref }, props));
7469
7424
  });
7470
7425
 
7471
7426
 
@@ -7484,7 +7439,7 @@ __webpack_require__.r(__webpack_exports__);
7484
7439
  /* harmony export */ });
7485
7440
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7486
7441
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7487
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7442
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7488
7443
  var __assign = (undefined && undefined.__assign) || function () {
7489
7444
  __assign = Object.assign || function(t) {
7490
7445
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7499,7 +7454,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7499
7454
 
7500
7455
 
7501
7456
  var Placeholder = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Placeholder(props, ref) {
7502
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'option', "rcx-input-box__placeholder": true, ref: ref }, props));
7457
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'option', "rcx-input-box__placeholder": true, ref: ref }, props));
7503
7458
  });
7504
7459
 
7505
7460
 
@@ -7518,7 +7473,7 @@ __webpack_require__.r(__webpack_exports__);
7518
7473
  /* harmony export */ });
7519
7474
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7520
7475
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7521
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7476
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7522
7477
  /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
7523
7478
  var __assign = (undefined && undefined.__assign) || function () {
7524
7479
  __assign = Object.assign || function(t) {
@@ -7534,7 +7489,7 @@ var __assign = (undefined && undefined.__assign) || function () {
7534
7489
 
7535
7490
 
7536
7491
 
7537
- var Wrapper = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ animated: true, is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-input-box__wrapper": true }, props))); };
7492
+ var Wrapper = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ animated: true, is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-input-box__wrapper": true }, props))); };
7538
7493
 
7539
7494
 
7540
7495
  /***/ }),
@@ -7596,7 +7551,7 @@ __webpack_require__.r(__webpack_exports__);
7596
7551
  /* harmony export */ });
7597
7552
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7598
7553
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7599
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7554
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7600
7555
  var __assign = (undefined && undefined.__assign) || function () {
7601
7556
  __assign = Object.assign || function(t) {
7602
7557
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7627,7 +7582,7 @@ function Label(_a) {
7627
7582
  var isInsideLabel = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LabelContext);
7628
7583
  var component = is || (isInsideLabel && 'span') || 'label';
7629
7584
  return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LabelContext.Provider, { value: true },
7630
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: component, "rcx-label": true, "rcx-label--disabled": disabled, "rcx-label--required": required }, props))));
7585
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: component, "rcx-label": true, "rcx-label--disabled": disabled, "rcx-label--required": required }, props))));
7631
7586
  }
7632
7587
 
7633
7588
 
@@ -7922,7 +7877,7 @@ __webpack_require__.r(__webpack_exports__);
7922
7877
  /* harmony export */ });
7923
7878
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7924
7879
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7925
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
7880
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
7926
7881
  var __assign = (undefined && undefined.__assign) || function () {
7927
7882
  __assign = Object.assign || function(t) {
7928
7883
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -7949,7 +7904,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
7949
7904
 
7950
7905
  var MessageBlock = function (_a) {
7951
7906
  var _className = _a.className, props = __rest(_a, ["className"]);
7952
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-message-block": true }, props));
7907
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-message-block": true }, props));
7953
7908
  };
7954
7909
 
7955
7910
 
@@ -10089,7 +10044,7 @@ __webpack_require__.r(__webpack_exports__);
10089
10044
  /* harmony export */ });
10090
10045
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10091
10046
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10092
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10047
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10093
10048
  var __assign = (undefined && undefined.__assign) || function () {
10094
10049
  __assign = Object.assign || function(t) {
10095
10050
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10116,8 +10071,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
10116
10071
 
10117
10072
  var Modal = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_a, ref) {
10118
10073
  var children = _a.children, props = __rest(_a, ["children"]);
10119
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'dialog', "rcx-modal": true }, props),
10120
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { ref: ref, "rcx-modal__inner": true, elevation: '2' }, children)));
10074
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'dialog', "rcx-modal": true }, props),
10075
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { ref: ref, "rcx-modal__inner": true, elevation: '2' }, children)));
10121
10076
  });
10122
10077
 
10123
10078
 
@@ -10136,7 +10091,7 @@ __webpack_require__.r(__webpack_exports__);
10136
10091
  /* harmony export */ });
10137
10092
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10138
10093
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10139
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10094
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10140
10095
  var __assign = (undefined && undefined.__assign) || function () {
10141
10096
  __assign = Object.assign || function(t) {
10142
10097
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10150,7 +10105,7 @@ var __assign = (undefined && undefined.__assign) || function () {
10150
10105
  };
10151
10106
 
10152
10107
 
10153
- var ModalBackdrop = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-modal__backdrop": true }, props))); };
10108
+ var ModalBackdrop = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-modal__backdrop": true }, props))); };
10154
10109
 
10155
10110
 
10156
10111
  /***/ }),
@@ -10200,7 +10155,7 @@ __webpack_require__.r(__webpack_exports__);
10200
10155
  /* harmony export */ });
10201
10156
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10202
10157
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10203
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10158
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10204
10159
  /* harmony import */ var _Scrollable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
10205
10160
  var __assign = (undefined && undefined.__assign) || function () {
10206
10161
  __assign = Object.assign || function(t) {
@@ -10230,8 +10185,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
10230
10185
  var ModalContent = function (_a) {
10231
10186
  var children = _a.children, onScrollContent = _a.onScrollContent, props = __rest(_a, ["children", "onScrollContent"]);
10232
10187
  return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Scrollable__WEBPACK_IMPORTED_MODULE_2__["default"], { vertical: true, onScrollContent: onScrollContent },
10233
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-modal__content": true },
10234
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-modal__content-wrapper": true }, props), children))));
10188
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-modal__content": true },
10189
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-modal__content-wrapper": true }, props), children))));
10235
10190
  };
10236
10191
 
10237
10192
 
@@ -10250,12 +10205,12 @@ __webpack_require__.r(__webpack_exports__);
10250
10205
  /* harmony export */ });
10251
10206
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10252
10207
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10253
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10208
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10254
10209
 
10255
10210
 
10256
10211
  var ModalFooter = function (_a) {
10257
10212
  var children = _a.children;
10258
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-modal__footer": true }, children));
10213
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-modal__footer": true }, children));
10259
10214
  };
10260
10215
 
10261
10216
 
@@ -10274,7 +10229,7 @@ __webpack_require__.r(__webpack_exports__);
10274
10229
  /* harmony export */ });
10275
10230
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10276
10231
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10277
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10232
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10278
10233
  /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
10279
10234
  var __assign = (undefined && undefined.__assign) || function () {
10280
10235
  __assign = Object.assign || function(t) {
@@ -10303,8 +10258,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
10303
10258
 
10304
10259
  var ModalHeader = function (_a) {
10305
10260
  var children = _a.children, props = __rest(_a, ["children"]);
10306
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-modal__header": true, is: 'header' }, props),
10307
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-modal__header-inner": true },
10261
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-modal__header": true, is: 'header' }, props),
10262
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-modal__header-inner": true },
10308
10263
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_2__["default"], { all: 'x8' }, children))));
10309
10264
  };
10310
10265
 
@@ -10371,7 +10326,7 @@ __webpack_require__.r(__webpack_exports__);
10371
10326
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10372
10327
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10373
10328
  /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Avatar */ "./src/components/Avatar/index.tsx");
10374
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10329
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10375
10330
  var __assign = (undefined && undefined.__assign) || function () {
10376
10331
  __assign = Object.assign || function(t) {
10377
10332
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10386,7 +10341,7 @@ var __assign = (undefined && undefined.__assign) || function () {
10386
10341
 
10387
10342
 
10388
10343
 
10389
- var ModalThumb = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, null,
10344
+ var ModalThumb = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], null,
10390
10345
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Avatar__WEBPACK_IMPORTED_MODULE_1__.Avatar, __assign({ size: 'x32' }, props)))); };
10391
10346
 
10392
10347
 
@@ -10405,7 +10360,7 @@ __webpack_require__.r(__webpack_exports__);
10405
10360
  /* harmony export */ });
10406
10361
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10407
10362
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10408
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10363
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10409
10364
  var __assign = (undefined && undefined.__assign) || function () {
10410
10365
  __assign = Object.assign || function(t) {
10411
10366
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10432,7 +10387,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
10432
10387
 
10433
10388
  var ModalTitle = function (_a) {
10434
10389
  var children = _a.children, props = __rest(_a, ["children"]);
10435
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-modal__title": true }, props), children));
10390
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-modal__title": true }, props), children));
10436
10391
  };
10437
10392
 
10438
10393
 
@@ -10507,7 +10462,7 @@ __webpack_require__.r(__webpack_exports__);
10507
10462
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
10508
10463
  /* harmony import */ var _helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
10509
10464
  /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
10510
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
10465
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10511
10466
  /* harmony import */ var _Flex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
10512
10467
  /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
10513
10468
  /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
@@ -10630,7 +10585,7 @@ var MultiSelect = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a
10630
10585
  }
10631
10586
  return null;
10632
10587
  };
10633
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, __assign({ is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
10588
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
10634
10589
  var _a;
10635
10590
  if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE) {
10636
10591
  return hide();
@@ -10641,8 +10596,8 @@ var MultiSelect = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a
10641
10596
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
10642
10597
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_7__["default"], { inline: 'x4' },
10643
10598
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Container, null,
10644
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, { is: 'div' },
10645
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', role: 'listbox' },
10599
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], { is: 'div' },
10600
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', role: 'listbox' },
10646
10601
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_7__["default"], { all: 'x4' },
10647
10602
  renderAnchor({
10648
10603
  ref: anchorRef,
@@ -10852,7 +10807,9 @@ var __assign = (undefined && undefined.__assign) || function () {
10852
10807
  };
10853
10808
 
10854
10809
 
10855
- var SelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chip__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({}, props)); });
10810
+ var SelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function SelectedOptions(props) {
10811
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chip__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({}, props));
10812
+ });
10856
10813
 
10857
10814
 
10858
10815
  /***/ }),
@@ -11400,7 +11357,7 @@ __webpack_require__.r(__webpack_exports__);
11400
11357
  /* harmony export */ });
11401
11358
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11402
11359
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11403
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
11360
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
11404
11361
  /* harmony import */ var _Scrollable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
11405
11362
  /* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
11406
11363
  /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Option */ "./src/components/Options/Option/index.tsx");
@@ -11494,7 +11451,7 @@ var Options = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_a, re
11494
11451
  }
11495
11452
  });
11496
11453
  }, [options, multiple, cursor, onSelect, OptionComponent]);
11497
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-options": true }, props, { ref: ref }),
11454
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-options": true }, props, { ref: ref }),
11498
11455
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_3__["default"], { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2' },
11499
11456
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Scrollable__WEBPACK_IMPORTED_MODULE_2__["default"], { vertical: true, smooth: true },
11500
11457
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_3__["default"], { ref: liRef, elevation: '0', padding: 'none', maxHeight: maxHeight, onMouseDown: prevent, onClick: prevent, is: 'ol', "aria-multiselectable": multiple || true, role: 'listbox', "aria-activedescendant": ((_b = options === null || options === void 0 ? void 0 : options[cursor]) === null || _b === void 0 ? void 0 : _b[0])
@@ -11754,7 +11711,7 @@ __webpack_require__.r(__webpack_exports__);
11754
11711
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
11755
11712
  /* harmony import */ var react_virtuoso__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-virtuoso */ "../../node_modules/react-virtuoso/dist/index.m.js");
11756
11713
  /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
11757
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
11714
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
11758
11715
  /* harmony import */ var _CheckBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../CheckBox */ "./src/components/CheckBox/index.ts");
11759
11716
  /* harmony import */ var _Options_Option__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Options/Option */ "./src/components/Options/Option/index.tsx");
11760
11717
  /* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
@@ -11825,7 +11782,7 @@ var OptionsPaginated = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(functio
11825
11782
  return false;
11826
11783
  }, key: value, value: value, selected: selected || (multiple !== true && null), focus: cursor === index || null })));
11827
11784
  };
11828
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ "rcx-options": true }, props, { ref: ref }),
11785
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], __assign({ "rcx-options": true }, props, { ref: ref }),
11829
11786
  react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_6__["default"], { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2' }, !options.length ? (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyComponent, null)) : (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtuoso__WEBPACK_IMPORTED_MODULE_7__.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
11830
11787
  // TODO Add a scroller element
11831
11788
  // components={{ Scroller: ScrollableContentWrapper }}
@@ -11862,139 +11819,34 @@ __webpack_require__.r(__webpack_exports__);
11862
11819
 
11863
11820
  /***/ }),
11864
11821
 
11865
- /***/ "./src/components/Pagination/Pagination.tsx":
11866
- /*!**************************************************!*\
11867
- !*** ./src/components/Pagination/Pagination.tsx ***!
11868
- \**************************************************/
11822
+ /***/ "./src/components/PaginatedSelect/PaginatedMultiSelect.tsx":
11823
+ /*!*****************************************************************!*\
11824
+ !*** ./src/components/PaginatedSelect/PaginatedMultiSelect.tsx ***!
11825
+ \*****************************************************************/
11869
11826
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11870
11827
 
11871
11828
  "use strict";
11872
11829
  __webpack_require__.r(__webpack_exports__);
11873
11830
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11874
- /* harmony export */ "Pagination": function() { return /* binding */ Pagination; }
11831
+ /* harmony export */ "PaginatedMultiSelect": function() { return /* binding */ PaginatedMultiSelect; },
11832
+ /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* binding */ PaginatedMultiSelectFiltered; }
11875
11833
  /* harmony export */ });
11876
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11877
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11878
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
11879
- /* harmony import */ var _Chevron__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Chevron */ "./src/components/Chevron/index.tsx");
11880
- var __assign = (undefined && undefined.__assign) || function () {
11881
- __assign = Object.assign || function(t) {
11882
- for (var s, i = 1, n = arguments.length; i < n; i++) {
11883
- s = arguments[i];
11884
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11885
- t[p] = s[p];
11886
- }
11887
- return t;
11888
- };
11889
- return __assign.apply(this, arguments);
11890
- };
11891
- var __rest = (undefined && undefined.__rest) || function (s, e) {
11892
- var t = {};
11893
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11894
- t[p] = s[p];
11895
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
11896
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
11897
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
11898
- t[p[i]] = s[p[i]];
11899
- }
11900
- return t;
11901
- };
11902
-
11903
-
11904
-
11905
- var defaultItemsPerPageLabel = function () { return 'Items per page:'; };
11906
- var defaultShowingResultsLabel = function (_a) {
11907
- var count = _a.count, current = _a.current, itemsPerPage = _a.itemsPerPage;
11908
- return "Showing results " + (current + 1) + " - " + Math.min(current + itemsPerPage, count) + " of " + count;
11909
- };
11910
- var Pagination = function (_a) {
11911
- var count = _a.count, _b = _a.current, current = _b === void 0 ? 0 : _b, _c = _a.itemsPerPage, itemsPerPage = _c === void 0 ? 25 : _c, _d = _a.itemsPerPageLabel, itemsPerPageLabel = _d === void 0 ? defaultItemsPerPageLabel : _d, _e = _a.showingResultsLabel, showingResultsLabel = _e === void 0 ? defaultShowingResultsLabel : _e, onSetItemsPerPage = _a.onSetItemsPerPage, onSetCurrent = _a.onSetCurrent, divider = _a.divider, props = __rest(_a, ["count", "current", "itemsPerPage", "itemsPerPageLabel", "showingResultsLabel", "onSetItemsPerPage", "onSetCurrent", "divider"]);
11912
- var itemsPerPageOptions = [25, 50, 100].filter(function (i) { return i <= count; });
11913
- var hasItemsPerPageSelection = itemsPerPageOptions.length > 1;
11914
- var currentPage = Math.floor(current / itemsPerPage);
11915
- var pages = Math.ceil(count / itemsPerPage);
11916
- var displayedPages = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
11917
- if (pages <= 7) {
11918
- // 0 1 2 3 4 5 6
11919
- return Array.from({ length: pages }, function (_, i) { return i; });
11920
- }
11921
- if (currentPage < 5) {
11922
- // 0 1 2 3 4 ... N
11923
- return [0, 1, 2, 3, 4, '⋯', pages - 1];
11924
- }
11925
- if (currentPage > pages - 5) {
11926
- // 0 ... N-4 N-3 N-2 N-1 N
11927
- return [0, '⋯', pages - 5, pages - 4, pages - 3, pages - 2, pages - 1];
11928
- }
11929
- // 0 ... x-1 x x-2 ... N
11930
- return [
11931
- 0,
11932
- '⋯',
11933
- currentPage - 1,
11934
- currentPage,
11935
- currentPage + 1,
11936
- '⋯',
11937
- pages - 1,
11938
- ];
11939
- }, [pages, currentPage]);
11940
- var renderingContext = { count: count, pages: pages, current: current, currentPage: currentPage, itemsPerPage: itemsPerPage };
11941
- var handleSetItemsPerPageLinkClick = function (itemsPerPageOption) { return function () {
11942
- onSetItemsPerPage === null || onSetItemsPerPage === void 0 ? void 0 : onSetItemsPerPage(itemsPerPageOption);
11943
- }; };
11944
- var handleSetPageLinkClick = function (page) { return function () {
11945
- onSetCurrent === null || onSetCurrent === void 0 ? void 0 : onSetCurrent(page * itemsPerPage);
11946
- }; };
11947
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'nav', "rcx-pagination": true, "rcx-pagination--divider": divider }, props),
11948
- hasItemsPerPageSelection && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-pagination__left": true },
11949
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'span', "rcx-pagination__label": true }, itemsPerPageLabel(renderingContext)),
11950
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'ol', "rcx-pagination__list": true }, itemsPerPageOptions.map(function (itemsPerPageOption) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { key: itemsPerPageOption, is: 'li', "rcx-pagination__list-item": true },
11951
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'button', "rcx-pagination__link": true, tabIndex: itemsPerPage === itemsPerPageOption ? -1 : 0, disabled: itemsPerPage === itemsPerPageOption, onClick: handleSetItemsPerPageLinkClick(itemsPerPageOption) }, itemsPerPageOption))); })))),
11952
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-pagination__right": true },
11953
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'span', "rcx-pagination__label": true }, showingResultsLabel(renderingContext)),
11954
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'ol', "rcx-pagination__list": true },
11955
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'li', "rcx-pagination__list-item": true },
11956
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'button', "rcx-pagination__back": true, disabled: currentPage === 0, onClick: handleSetPageLinkClick(currentPage - 1) },
11957
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { left: true, size: 'x16' }))),
11958
- displayedPages.map(function (page, i) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { key: i, is: 'li', "rcx-pagination__list-item": true }, page === '⋯' ? ('⋯') : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'button', "rcx-pagination__link": true, disabled: currentPage === page, onClick: handleSetPageLinkClick(page) }, page + 1)))); }),
11959
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'li', "rcx-pagination__list-item": true },
11960
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'button', "rcx-pagination__forward": true, disabled: currentPage === pages - 1, onClick: handleSetPageLinkClick(currentPage + 1) },
11961
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { right: true, size: 'x16' })))))));
11962
- };
11963
-
11964
-
11965
- /***/ }),
11966
-
11967
- /***/ "./src/components/Pagination/index.ts":
11968
- /*!********************************************!*\
11969
- !*** ./src/components/Pagination/index.ts ***!
11970
- \********************************************/
11971
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11972
-
11973
- "use strict";
11974
- __webpack_require__.r(__webpack_exports__);
11975
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11976
- /* harmony export */ "Pagination": function() { return /* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_0__.Pagination; }
11977
- /* harmony export */ });
11978
- /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./src/components/Pagination/Pagination.tsx");
11979
-
11980
-
11981
-
11982
- /***/ }),
11983
-
11984
- /***/ "./src/components/PasswordInput/PasswordInput.tsx":
11985
- /*!********************************************************!*\
11986
- !*** ./src/components/PasswordInput/PasswordInput.tsx ***!
11987
- \********************************************************/
11988
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11989
-
11990
- "use strict";
11991
- __webpack_require__.r(__webpack_exports__);
11992
11834
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
11993
11835
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
11994
11836
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
11995
11837
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
11996
- /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
11997
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
11838
+ /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
11839
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
11840
+ /* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Chip */ "./src/components/Chip/index.ts");
11841
+ /* harmony import */ var _Flex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
11842
+ /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
11843
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
11844
+ /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
11845
+ /* harmony import */ var _Options_useVisible__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
11846
+ /* harmony import */ var _OptionsPaginated__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
11847
+ /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
11848
+ /* harmony import */ var _Select_SelectAddon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx");
11849
+ /* harmony import */ var _Select_SelectFocus__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Select/SelectFocus */ "./src/components/Select/SelectFocus.tsx");
11998
11850
  var __assign = (undefined && undefined.__assign) || function () {
11999
11851
  __assign = Object.assign || function(t) {
12000
11852
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12006,6 +11858,17 @@ var __assign = (undefined && undefined.__assign) || function () {
12006
11858
  };
12007
11859
  return __assign.apply(this, arguments);
12008
11860
  };
11861
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
11862
+ var t = {};
11863
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11864
+ t[p] = s[p];
11865
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
11866
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
11867
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
11868
+ t[p[i]] = s[p[i]];
11869
+ }
11870
+ return t;
11871
+ };
12009
11872
  var __read = (undefined && undefined.__read) || function (o, n) {
12010
11873
  var m = typeof Symbol === "function" && o[Symbol.iterator];
12011
11874
  if (!m) return o;
@@ -12022,53 +11885,133 @@ var __read = (undefined && undefined.__read) || function (o, n) {
12022
11885
  }
12023
11886
  return ar;
12024
11887
  };
11888
+ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
11889
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
11890
+ to[j] = from[i];
11891
+ return to;
11892
+ };
11893
+ // @ts-nocheck
11894
+
11895
+
12025
11896
 
12026
11897
 
12027
11898
 
12028
11899
 
12029
- var PasswordInput = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function PasswordInput(props, ref) {
12030
- var _a = __read((0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useToggle)(true), 2), hidden = _a[0], toggle = _a[1];
12031
- var handleAddonClick = function () {
12032
- toggle();
12033
- };
12034
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_3__.InputBox, __assign({ type: hidden ? 'password' : 'text', addon: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__.Icon, { name: hidden ? 'eye-off' : 'eye', size: 20, onClick: handleAddonClick }), ref: ref }, props)));
12035
- });
12036
- /* harmony default export */ __webpack_exports__["default"] = (PasswordInput);
12037
11900
 
12038
11901
 
12039
- /***/ }),
12040
11902
 
12041
- /***/ "./src/components/PasswordInput/index.ts":
12042
- /*!***********************************************!*\
12043
- !*** ./src/components/PasswordInput/index.ts ***!
12044
- \***********************************************/
12045
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12046
11903
 
12047
- "use strict";
12048
- __webpack_require__.r(__webpack_exports__);
12049
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12050
- /* harmony export */ "default": function() { return /* reexport safe */ _PasswordInput__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12051
- /* harmony export */ });
12052
- /* harmony import */ var _PasswordInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordInput */ "./src/components/PasswordInput/PasswordInput.tsx");
12053
11904
 
12054
11905
 
12055
11906
 
11907
+
11908
+ var SelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (props) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Chip__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ maxWidth: '150px', withTruncatedText: true }, props))); });
11909
+ var prevent = function (e) {
11910
+ e.preventDefault();
11911
+ e.stopPropagation();
11912
+ e.nativeEvent.stopImmediatePropagation();
11913
+ };
11914
+ var PaginatedMultiSelect = function (_a) {
11915
+ var withTitle = _a.withTitle, value = _a.value, filter = _a.filter, _b = _a.options, options = _b === void 0 ? [] : _b, error = _a.error, disabled = _a.disabled, _c = _a.anchor, Anchor = _c === void 0 ? _Select_SelectFocus__WEBPACK_IMPORTED_MODULE_13__["default"] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, placeholder = _a.placeholder, _e = _a.renderOptions, _Options = _e === void 0 ? _OptionsPaginated__WEBPACK_IMPORTED_MODULE_10__.OptionsPaginated : _e, endReached = _a.endReached, props = __rest(_a, ["withTitle", "value", "filter", "options", "error", "disabled", "anchor", "onChange", "placeholder", "renderOptions", "endReached"]);
11916
+ var _f = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value || []), 2), internalValue = _f[0], setInternalValue = _f[1];
11917
+ var currentValue = value !== undefined ? value : internalValue;
11918
+ var option = options.find(function (option) { return option.value === currentValue; });
11919
+ var internalChanged = function (_a) {
11920
+ var _b = __read(_a, 1), value = _b[0];
11921
+ if (currentValue.some(function (item) { return item.value === value.value; })) {
11922
+ var newValue_1 = currentValue.filter(function (item) { return item.value !== value.value; });
11923
+ setInternalValue(newValue_1);
11924
+ return onChange(newValue_1);
11925
+ }
11926
+ var newValue = __spreadArray(__spreadArray([], __read(currentValue)), [value]);
11927
+ setInternalValue(newValue);
11928
+ return onChange(newValue);
11929
+ };
11930
+ var _g = __read((0,_Options_useVisible__WEBPACK_IMPORTED_MODULE_9__.useVisible)(), 3), visible = _g[0], hide = _g[1], show = _g[2];
11931
+ var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
11932
+ var _h = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _h.ref, borderBoxSize = _h.borderBoxSize;
11933
+ var handleClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
11934
+ if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE) {
11935
+ return hide();
11936
+ }
11937
+ if (ref && ref.current) {
11938
+ ref.current.focus();
11939
+ return show();
11940
+ }
11941
+ });
11942
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], __assign({ is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: handleClick, disabled: disabled }, props),
11943
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
11944
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { inline: 'x4' },
11945
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Container, null,
11946
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], { is: 'div' },
11947
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', role: 'listbox' },
11948
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { all: 'x4' },
11949
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, { disabled: disabled, ref: ref, "aria-haspopup": 'listbox', onClick: show, onBlur: hide, order: 1, "rcx-input-box--undecorated": true, children: !value ? option || placeholder : null }),
11950
+ currentValue.map(function (value, index) {
11951
+ var _a, _b;
11952
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectedOptions, __assign({}, (withTitle && {
11953
+ title: value.label ||
11954
+ ((_a = options.find(function (val) {
11955
+ return val.value === value;
11956
+ })) === null || _a === void 0 ? void 0 : _a.label),
11957
+ }), { tabIndex: -1, role: 'option', key: index, onMouseDown: function (e) {
11958
+ prevent(e);
11959
+ internalChanged([value]);
11960
+ return false;
11961
+ }, children: value.label ||
11962
+ ((_b = options.find(function (val) {
11963
+ return val.value === value;
11964
+ })) === null || _b === void 0 ? void 0 : _b.label) })));
11965
+ }))))))),
11966
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 0, shrink: 0 },
11967
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { inline: 'x4' },
11968
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Select_SelectAddon__WEBPACK_IMPORTED_MODULE_12__["default"], { children: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_6__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE
11969
+ ? 'cross'
11970
+ : 'chevron-down', size: 'x20' }) }))),
11971
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"], { visibility: visible },
11972
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Position__WEBPACK_IMPORTED_MODULE_11__["default"], { anchor: containerRef },
11973
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, __assign({}, (withTitle && { title: withTitle }), { width: borderBoxSize.inlineSize, onMouseDown: prevent, multiple: true, filter: filter, role: 'listbox', options: options, onSelect: internalChanged, endReached: endReached }))))));
11974
+ };
11975
+ var PaginatedMultiSelectFiltered = function (_a) {
11976
+ var filter = _a.filter, setFilter = _a.setFilter, options = _a.options, placeholder = _a.placeholder, props = __rest(_a, ["filter", "setFilter", "options", "placeholder"]);
11977
+ var anchor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
11978
+ var _children = _a.children, filter = _a.filter, props = __rest(_a, ["children", "filter"]);
11979
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
11980
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_7__.InputBox.Input, __assign({ ref: ref, placeholder: placeholder, value: filter, onInput: function (e) {
11981
+ return setFilter &&
11982
+ setFilter(e.currentTarget.value);
11983
+ } }, props, { "rcx-input-box--undecorated": true }))));
11984
+ }), []);
11985
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginatedMultiSelect, __assign({ filter: filter, options: options }, props, { anchor: anchor })));
11986
+ };
11987
+
11988
+
12056
11989
  /***/ }),
12057
11990
 
12058
- /***/ "./src/components/Position/Position.tsx":
12059
- /*!**********************************************!*\
12060
- !*** ./src/components/Position/Position.tsx ***!
12061
- \**********************************************/
11991
+ /***/ "./src/components/PaginatedSelect/PaginatedSelect.tsx":
11992
+ /*!************************************************************!*\
11993
+ !*** ./src/components/PaginatedSelect/PaginatedSelect.tsx ***!
11994
+ \************************************************************/
12062
11995
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12063
11996
 
12064
11997
  "use strict";
12065
11998
  __webpack_require__.r(__webpack_exports__);
11999
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12000
+ /* harmony export */ "PaginatedSelect": function() { return /* binding */ PaginatedSelect; }
12001
+ /* harmony export */ });
12066
12002
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12067
12003
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
12068
12004
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
12069
12005
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
12070
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "react-dom");
12071
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
12006
+ /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12007
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12008
+ /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12009
+ /* harmony import */ var _Options_useVisible__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
12010
+ /* harmony import */ var _OptionsPaginated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
12011
+ /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
12012
+ /* harmony import */ var _PaginatedSelectAddon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PaginatedSelectAddon */ "./src/components/PaginatedSelect/PaginatedSelectAddon.tsx");
12013
+ /* harmony import */ var _PaginatedSelectFocus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PaginatedSelectFocus */ "./src/components/PaginatedSelect/PaginatedSelectFocus.tsx");
12014
+ /* harmony import */ var _PaginatedSelectWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./PaginatedSelectWrapper */ "./src/components/PaginatedSelect/PaginatedSelectWrapper.tsx");
12072
12015
  var __assign = (undefined && undefined.__assign) || function () {
12073
12016
  __assign = Object.assign || function(t) {
12074
12017
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12091,60 +12034,100 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
12091
12034
  }
12092
12035
  return t;
12093
12036
  };
12037
+ var __read = (undefined && undefined.__read) || function (o, n) {
12038
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
12039
+ if (!m) return o;
12040
+ var i = m.call(o), r, ar = [], e;
12041
+ try {
12042
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12043
+ }
12044
+ catch (error) { e = { error: error }; }
12045
+ finally {
12046
+ try {
12047
+ if (r && !r.done && (m = i["return"])) m.call(i);
12048
+ }
12049
+ finally { if (e) throw e.error; }
12050
+ }
12051
+ return ar;
12052
+ };
12053
+ // @ts-nocheck
12094
12054
 
12095
12055
 
12096
12056
 
12097
- var Position = function (_a) {
12098
- var anchor = _a.anchor, children = _a.children, placement = _a.placement, margin = _a.margin, _className = _a.className, props = __rest(_a, ["anchor", "children", "placement", "margin", "className"]);
12099
- var target = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
12100
- var _b = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.usePosition)(anchor, target, (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return ({ placement: placement, margin: margin }); }, [placement, margin])) || {}, positionStyle = _b.style, positionPlacement = _b.placement;
12101
- var style = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return (__assign({ position: 'fixed' }, positionStyle)); }, [positionStyle]);
12102
- var portalContainer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
12103
- var element = document.createElement('div');
12104
- document.body.appendChild(element);
12105
- return element;
12106
- }, []);
12057
+
12058
+
12059
+
12060
+
12061
+
12062
+
12063
+
12064
+
12065
+ var prevent = function (e) {
12066
+ e.preventDefault();
12067
+ e.stopPropagation();
12068
+ e.nativeEvent.stopImmediatePropagation();
12069
+ };
12070
+ var useDidUpdate = function (func) {
12071
+ var didMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(false);
12072
+ var fn = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(func);
12107
12073
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
12108
- return function () {
12109
- document.body.removeChild(portalContainer);
12110
- };
12111
- }, [portalContainer]);
12112
- return (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)((0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(children, __assign(__assign({ ref: target, style: style }, props), { placement: positionPlacement })), portalContainer);
12074
+ if (didMount.current) {
12075
+ fn();
12076
+ }
12077
+ didMount.current = true;
12078
+ }, [fn]);
12079
+ };
12080
+ var PaginatedSelect = function (_a) {
12081
+ var value = _a.value, withTitle = _a.withTitle, filter = _a.filter, _setFilter = _a.setFilter, error = _a.error, disabled = _a.disabled, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.anchor, Anchor = _c === void 0 ? _PaginatedSelectFocus__WEBPACK_IMPORTED_MODULE_9__["default"] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.renderOptions, _Options = _f === void 0 ? _OptionsPaginated__WEBPACK_IMPORTED_MODULE_6__.OptionsPaginated : _f, endReached = _a.endReached, props = __rest(_a, ["value", "withTitle", "filter", "setFilter", "error", "disabled", "options", "anchor", "onChange", "placeholder", "renderOptions", "endReached"]);
12082
+ var _g = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value), 2), internalValue = _g[0], setInternalValue = _g[1];
12083
+ var currentValue = value !== undefined ? value : internalValue;
12084
+ var option = options.find(function (option) { return (option === null || option === void 0 ? void 0 : option.value) === currentValue; });
12085
+ var _h = __read((0,_Options_useVisible__WEBPACK_IMPORTED_MODULE_5__.useVisible)(), 3), visible = _h[0], hide = _h[1], show = _h[2];
12086
+ var internalChangedByClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
12087
+ var _b = __read(_a, 1), value = _b[0];
12088
+ setInternalValue(value);
12089
+ onChange(value);
12090
+ hide();
12091
+ });
12092
+ var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
12093
+ var _j = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _j.ref, borderBoxSize = _j.borderBoxSize;
12094
+ useDidUpdate([filter, internalValue]);
12095
+ var valueLabel = option === null || option === void 0 ? void 0 : option.label;
12096
+ var visibleText = (filter === undefined || visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].HIDDEN) &&
12097
+ (valueLabel || placeholder || typeof placeholder === 'string');
12098
+ var handleClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
12099
+ if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE) {
12100
+ return hide();
12101
+ }
12102
+ if (ref && ref.current) {
12103
+ ref.current.focus();
12104
+ return show();
12105
+ }
12106
+ });
12107
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], __assign({ "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return [error && 'invalid', disabled && 'disabled']; }, [error, disabled]) }, props),
12108
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PaginatedSelectWrapper__WEBPACK_IMPORTED_MODULE_10__["default"], { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
12109
+ visibleText && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__["default"], { flexGrow: 1, is: 'span', mi: 'x4', "rcx-select__item": true, fontScale: 'p2m', color: valueLabel ? 'default' : 'hint' }, visibleText)),
12110
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, { disabled: disabled, "rcx-input-box--undecorated": true, filter: filter, ref: ref, "aria-haspopup": 'listbox', onClick: show, onBlur: hide }),
12111
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PaginatedSelectAddon__WEBPACK_IMPORTED_MODULE_8__["default"], { mi: 'x4' },
12112
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE ? 'cross' : 'chevron-down', size: 'x20' }))),
12113
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PositionAnimated__WEBPACK_IMPORTED_MODULE_7__["default"], { visible: visible, anchor: containerRef },
12114
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, __assign({}, (withTitle && { title: withTitle }), { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: options, onSelect: internalChangedByClick, endReached: endReached, onMouseDown: prevent })))));
12113
12115
  };
12114
- /* harmony default export */ __webpack_exports__["default"] = (Position);
12115
-
12116
-
12117
- /***/ }),
12118
-
12119
- /***/ "./src/components/Position/index.ts":
12120
- /*!******************************************!*\
12121
- !*** ./src/components/Position/index.ts ***!
12122
- \******************************************/
12123
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12124
-
12125
- "use strict";
12126
- __webpack_require__.r(__webpack_exports__);
12127
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12128
- /* harmony export */ "default": function() { return /* reexport safe */ _Position__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12129
- /* harmony export */ });
12130
- /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Position */ "./src/components/Position/Position.tsx");
12131
-
12132
12116
 
12133
12117
 
12134
12118
  /***/ }),
12135
12119
 
12136
- /***/ "./src/components/PositionAnimated/PositionAnimated.tsx":
12137
- /*!**************************************************************!*\
12138
- !*** ./src/components/PositionAnimated/PositionAnimated.tsx ***!
12139
- \**************************************************************/
12120
+ /***/ "./src/components/PaginatedSelect/PaginatedSelectAddon.tsx":
12121
+ /*!*****************************************************************!*\
12122
+ !*** ./src/components/PaginatedSelect/PaginatedSelectAddon.tsx ***!
12123
+ \*****************************************************************/
12140
12124
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12141
12125
 
12142
12126
  "use strict";
12143
12127
  __webpack_require__.r(__webpack_exports__);
12144
12128
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12145
12129
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12146
- /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12147
- /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
12130
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12148
12131
  var __assign = (undefined && undefined.__assign) || function () {
12149
12132
  __assign = Object.assign || function(t) {
12150
12133
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12156,61 +12139,33 @@ var __assign = (undefined && undefined.__assign) || function () {
12156
12139
  };
12157
12140
  return __assign.apply(this, arguments);
12158
12141
  };
12159
- var __rest = (undefined && undefined.__rest) || function (s, e) {
12160
- var t = {};
12161
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12162
- t[p] = s[p];
12163
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
12164
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12165
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12166
- t[p[i]] = s[p[i]];
12167
- }
12168
- return t;
12169
- };
12170
-
12171
-
12172
-
12173
- var PositionAnimated = function (_a) {
12174
- var _width = _a.width, visible = _a.visible, children = _a.children, props = __rest(_a, ["width", "visible", "children"]);
12175
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_1__["default"], { visibility: visible },
12176
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Position__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({}, props), children)));
12177
- };
12178
- /* harmony default export */ __webpack_exports__["default"] = (PositionAnimated);
12179
-
12180
-
12181
- /***/ }),
12182
-
12183
- /***/ "./src/components/PositionAnimated/index.ts":
12184
- /*!**************************************************!*\
12185
- !*** ./src/components/PositionAnimated/index.ts ***!
12186
- \**************************************************/
12187
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12188
12142
 
12189
- "use strict";
12190
- __webpack_require__.r(__webpack_exports__);
12191
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12192
- /* harmony export */ "default": function() { return /* reexport safe */ _PositionAnimated__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12193
- /* harmony export */ });
12194
- /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PositionAnimated */ "./src/components/PositionAnimated/PositionAnimated.tsx");
12195
12143
 
12144
+ var PaginatedSelectAddon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectAddon(props, ref) {
12145
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'div', "rcx-select__addon": true, ref: ref }, props));
12146
+ });
12147
+ /* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectAddon);
12196
12148
 
12197
12149
 
12198
12150
  /***/ }),
12199
12151
 
12200
- /***/ "./src/components/ProgressBar/ProgressBar.tsx":
12201
- /*!****************************************************!*\
12202
- !*** ./src/components/ProgressBar/ProgressBar.tsx ***!
12203
- \****************************************************/
12152
+ /***/ "./src/components/PaginatedSelect/PaginatedSelectFiltered.tsx":
12153
+ /*!********************************************************************!*\
12154
+ !*** ./src/components/PaginatedSelect/PaginatedSelectFiltered.tsx ***!
12155
+ \********************************************************************/
12204
12156
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12205
12157
 
12206
12158
  "use strict";
12207
12159
  __webpack_require__.r(__webpack_exports__);
12208
12160
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12209
- /* harmony export */ "ProgressBar": function() { return /* binding */ ProgressBar; }
12161
+ /* harmony export */ "PaginatedSelectFiltered": function() { return /* binding */ PaginatedSelectFiltered; }
12210
12162
  /* harmony export */ });
12211
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12212
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12213
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12163
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12164
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
12165
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
12166
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
12167
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12168
+ /* harmony import */ var _PaginatedSelect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginatedSelect */ "./src/components/PaginatedSelect/PaginatedSelect.tsx");
12214
12169
  var __assign = (undefined && undefined.__assign) || function () {
12215
12170
  __assign = Object.assign || function(t) {
12216
12171
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12235,59 +12190,35 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
12235
12190
  };
12236
12191
 
12237
12192
 
12238
- var getWidth = function (percentage) {
12239
- return Math.min(Math.max(0, percentage), 100).toFixed(1) + "%";
12240
- };
12241
- var getColor = function (percentage, error) {
12242
- if (error) {
12243
- return 'danger-200';
12244
- }
12245
- if (percentage >= 100) {
12246
- return 'success-200';
12247
- }
12248
- return 'primary-200';
12249
- };
12250
- var ProgressBar = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProgressBar(_a, ref) {
12251
- var barColor = _a.barColor, percentage = _a.percentage, error = _a.error, _b = _a.animated, animated = _b === void 0 ? true : _b, props = __rest(_a, ["barColor", "percentage", "error", "animated"]);
12252
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ ref: ref, "rcx-progress-bar": true, title: error || undefined }, props),
12253
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { bg: barColor || getColor(percentage, error), "rcx-progress-bar__fill": true, "rcx-progress-bar__fill-complete": animated && percentage >= 100, width: getWidth(percentage) })));
12254
- });
12255
-
12256
-
12257
- /***/ }),
12258
-
12259
- /***/ "./src/components/ProgressBar/index.tsx":
12260
- /*!**********************************************!*\
12261
- !*** ./src/components/ProgressBar/index.tsx ***!
12262
- \**********************************************/
12263
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12264
12193
 
12265
- "use strict";
12266
- __webpack_require__.r(__webpack_exports__);
12267
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12268
- /* harmony export */ "ProgressBar": function() { return /* reexport safe */ _ProgressBar__WEBPACK_IMPORTED_MODULE_0__.ProgressBar; }
12269
- /* harmony export */ });
12270
- /* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProgressBar */ "./src/components/ProgressBar/ProgressBar.tsx");
12271
12194
 
12195
+ var PaginatedSelectFiltered = function (_a) {
12196
+ var filter = _a.filter, setFilter = _a.setFilter, options = _a.options, placeholder = _a.placeholder, props = __rest(_a, ["filter", "setFilter", "options", "placeholder"]);
12197
+ var anchor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
12198
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
12199
+ var filter = _a.filter, _onChange = _a.onChange, props = __rest(_a, ["filter", "onChange"]);
12200
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onChange: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (e) {
12201
+ setFilter(e.currentTarget.value);
12202
+ }) }, props, { "rcx-input-box--undecorated": true })));
12203
+ });
12204
+ }, [placeholder, setFilter]);
12205
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PaginatedSelect__WEBPACK_IMPORTED_MODULE_3__.PaginatedSelect, __assign({ placeholder: undefined, filter: filter, options: options }, props, { anchor: anchor })));
12206
+ };
12272
12207
 
12273
12208
 
12274
12209
  /***/ }),
12275
12210
 
12276
- /***/ "./src/components/RadioButton/RadioButton.tsx":
12277
- /*!****************************************************!*\
12278
- !*** ./src/components/RadioButton/RadioButton.tsx ***!
12279
- \****************************************************/
12211
+ /***/ "./src/components/PaginatedSelect/PaginatedSelectFocus.tsx":
12212
+ /*!*****************************************************************!*\
12213
+ !*** ./src/components/PaginatedSelect/PaginatedSelectFocus.tsx ***!
12214
+ \*****************************************************************/
12280
12215
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12281
12216
 
12282
12217
  "use strict";
12283
12218
  __webpack_require__.r(__webpack_exports__);
12284
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12285
- /* harmony export */ "RadioButton": function() { return /* binding */ RadioButton; }
12286
- /* harmony export */ });
12287
12219
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12288
12220
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12289
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12290
- /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
12221
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12291
12222
  var __assign = (undefined && undefined.__assign) || function () {
12292
12223
  __assign = Object.assign || function(t) {
12293
12224
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12299,156 +12230,83 @@ var __assign = (undefined && undefined.__assign) || function () {
12299
12230
  };
12300
12231
  return __assign.apply(this, arguments);
12301
12232
  };
12302
- var __rest = (undefined && undefined.__rest) || function (s, e) {
12303
- var t = {};
12304
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12305
- t[p] = s[p];
12306
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
12307
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12308
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12309
- t[p[i]] = s[p[i]];
12310
- }
12311
- return t;
12312
- };
12313
12233
 
12314
12234
 
12315
-
12316
- var RadioButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function RadioButton(_a, ref) {
12317
- var autoComplete = _a.autoComplete, checked = _a.checked, defaultChecked = _a.defaultChecked, disabled = _a.disabled, form = _a.form, id = _a.id, name = _a.name, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, qa = _a.qa, dataQa = _a["data-qa"], onChange = _a.onChange, onInput = _a.onInput, onInvalid = _a.onInvalid, props = __rest(_a, ["autoComplete", "checked", "defaultChecked", "disabled", "form", "id", "name", "required", "tabIndex", "value", "qa", 'data-qa', "onChange", "onInput", "onInvalid"]);
12318
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-radio-button": true }, props),
12319
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'input', "rcx-radio-button__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'radio', value: value, "data-qa": dataQa || qa, ref: ref, onChange: onChange, onInput: onInput, onInvalid: onInvalid }),
12320
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'i', "rcx-radio-button__fake": true, "aria-hidden": 'true' })));
12235
+ var PaginatedSelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectFocus(props, ref) {
12236
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ ref: ref, fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button' }, props)));
12321
12237
  });
12238
+ /* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectFocus);
12322
12239
 
12323
12240
 
12324
12241
  /***/ }),
12325
12242
 
12326
- /***/ "./src/components/RadioButton/index.ts":
12327
- /*!*********************************************!*\
12328
- !*** ./src/components/RadioButton/index.ts ***!
12329
- \*********************************************/
12243
+ /***/ "./src/components/PaginatedSelect/PaginatedSelectWrapper.tsx":
12244
+ /*!*******************************************************************!*\
12245
+ !*** ./src/components/PaginatedSelect/PaginatedSelectWrapper.tsx ***!
12246
+ \*******************************************************************/
12330
12247
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12331
12248
 
12332
12249
  "use strict";
12333
12250
  __webpack_require__.r(__webpack_exports__);
12334
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12335
- /* harmony export */ "RadioButton": function() { return /* reexport safe */ _RadioButton__WEBPACK_IMPORTED_MODULE_0__.RadioButton; }
12336
- /* harmony export */ });
12337
- /* harmony import */ var _RadioButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RadioButton */ "./src/components/RadioButton/RadioButton.tsx");
12251
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12252
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12253
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12254
+ var __assign = (undefined && undefined.__assign) || function () {
12255
+ __assign = Object.assign || function(t) {
12256
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
12257
+ s = arguments[i];
12258
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12259
+ t[p] = s[p];
12260
+ }
12261
+ return t;
12262
+ };
12263
+ return __assign.apply(this, arguments);
12264
+ };
12338
12265
 
12339
12266
 
12267
+ var PaginatedSelectWrapper = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectWrapper(props, ref) {
12268
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'div', "rcx-select__wrapper": true, ref: ref }, props));
12269
+ });
12270
+ /* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectWrapper);
12271
+
12340
12272
 
12341
12273
  /***/ }),
12342
12274
 
12343
- /***/ "./src/components/Scrollable/Scrollable.tsx":
12344
- /*!**************************************************!*\
12345
- !*** ./src/components/Scrollable/Scrollable.tsx ***!
12346
- \**************************************************/
12275
+ /***/ "./src/components/PaginatedSelect/index.ts":
12276
+ /*!*************************************************!*\
12277
+ !*** ./src/components/PaginatedSelect/index.ts ***!
12278
+ \*************************************************/
12347
12279
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12348
12280
 
12349
12281
  "use strict";
12350
12282
  __webpack_require__.r(__webpack_exports__);
12351
12283
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12352
- /* harmony export */ "Scrollable": function() { return /* binding */ Scrollable; }
12284
+ /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _PaginatedSelectFiltered__WEBPACK_IMPORTED_MODULE_0__.PaginatedSelectFiltered; },
12285
+ /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* reexport safe */ _PaginatedMultiSelect__WEBPACK_IMPORTED_MODULE_1__.PaginatedMultiSelectFiltered; }
12353
12286
  /* harmony export */ });
12354
- /* harmony import */ var _rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/css-in-js */ "../css-in-js/dist/index.module.js");
12355
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12356
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__);
12357
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
12358
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
12359
- /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
12360
- /* harmony import */ var _hooks_useStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
12361
- /* harmony import */ var _Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
12362
- var __makeTemplateObject = (undefined && undefined.__makeTemplateObject) || function (cooked, raw) {
12363
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
12364
- return cooked;
12365
- };
12366
-
12367
-
12368
-
12369
-
12370
-
12371
-
12372
- var getTouchingEdges = function (element) { return ({
12373
- top: !element.scrollTop,
12374
- bottom: !(element.scrollTop + element.clientHeight - element.scrollHeight),
12375
- left: !element.scrollLeft,
12376
- right: !(element.scrollLeft + element.clientWidth - element.scrollWidth),
12377
- }); };
12378
- var pollTouchingEdges = function (element, touchingEdgesRef, onScrollContent) {
12379
- var touchingEdges = touchingEdgesRef.current;
12380
- var newTouchingEdges = getTouchingEdges(element);
12381
- var dirty = touchingEdges &&
12382
- (touchingEdges.top !== newTouchingEdges.top ||
12383
- touchingEdges.bottom !== newTouchingEdges.bottom ||
12384
- touchingEdges.left !== newTouchingEdges.left ||
12385
- touchingEdges.right !== newTouchingEdges.right);
12386
- if (dirty) {
12387
- touchingEdgesRef.current = newTouchingEdges;
12388
- onScrollContent && onScrollContent(newTouchingEdges);
12389
- }
12390
- };
12391
- var Scrollable = function (_a) {
12392
- var children = _a.children, horizontal = _a.horizontal, vertical = _a.vertical, smooth = _a.smooth, onScrollContent = _a.onScrollContent;
12393
- var scrollTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
12394
- var touchingEdgesRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});
12395
- var handleScroll = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__.useMutableCallback)(function (event) {
12396
- var element = event.currentTarget;
12397
- if (!scrollTimeoutRef.current) {
12398
- pollTouchingEdges(element, touchingEdgesRef, onScrollContent);
12399
- }
12400
- scrollTimeoutRef.current && clearTimeout(scrollTimeoutRef.current);
12401
- scrollTimeoutRef.current = setTimeout(function () {
12402
- scrollTimeoutRef.current = undefined;
12403
- pollTouchingEdges(element, touchingEdgesRef, onScrollContent);
12404
- }, 200);
12405
- });
12406
- var className = (0,_hooks_useStyle__WEBPACK_IMPORTED_MODULE_4__.useStyle)((0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n\n &::-webkit-scrollbar {\n width: ", "rem;\n height: ", "rem;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.05);\n background-color: var(\n --rcx-theme-scrollbar-thumb-color,\n rgba(0, 0, 0, 0.05)\n );\n }\n\n &:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n background-color: var(\n --rcx-theme-scrollbar-thumb-hover-color,\n rgba(0, 0, 0, 0.15)\n );\n }\n\n ", "\n ", "\n "], ["\n position: relative;\n\n &::-webkit-scrollbar {\n width: ", "rem;\n height: ", "rem;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.05);\n background-color: var(\n --rcx-theme-scrollbar-thumb-color,\n rgba(0, 0, 0, 0.05)\n );\n }\n\n &:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n background-color: var(\n --rcx-theme-scrollbar-thumb-hover-color,\n rgba(0, 0, 0, 0.15)\n );\n }\n\n ", "\n ", "\n "])), 4 / 16, 4 / 16, (horizontal && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: auto !important;\n "], ["\n overflow-x: auto !important;\n "])))) ||
12407
- (vertical && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n overflow-y: auto !important;\n "], ["\n overflow-y: auto !important;\n "])))) || (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: auto !important;\n "], ["\n overflow: auto !important;\n "]))), smooth && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n scroll-behavior: smooth !important;\n "], ["\n scroll-behavior: smooth !important;\n "])))), null);
12408
- var transformFn = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (props) {
12409
- props.className =
12410
- className && (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_3__.appendClassName)(props.className, className);
12411
- if (onScrollContent !== undefined && props.onScroll === undefined) {
12412
- props.onScroll = handleScroll;
12413
- }
12414
- return props;
12415
- }, [className, handleScroll, onScrollContent]);
12416
- return (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.BoxTransforms.Provider, { children: children, value: (0,_Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.useComposedBoxTransform)(transformFn) }));
12417
- };
12418
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
12419
-
12420
-
12421
- /***/ }),
12422
-
12423
- /***/ "./src/components/Scrollable/index.ts":
12424
- /*!********************************************!*\
12425
- !*** ./src/components/Scrollable/index.ts ***!
12426
- \********************************************/
12427
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12287
+ /* harmony import */ var _PaginatedSelectFiltered__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PaginatedSelectFiltered */ "./src/components/PaginatedSelect/PaginatedSelectFiltered.tsx");
12288
+ /* harmony import */ var _PaginatedMultiSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaginatedMultiSelect */ "./src/components/PaginatedSelect/PaginatedMultiSelect.tsx");
12428
12289
 
12429
- "use strict";
12430
- __webpack_require__.r(__webpack_exports__);
12431
- /* harmony import */ var _Scrollable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Scrollable */ "./src/components/Scrollable/Scrollable.tsx");
12432
12290
 
12433
- /* harmony default export */ __webpack_exports__["default"] = (_Scrollable__WEBPACK_IMPORTED_MODULE_0__.Scrollable);
12434
12291
 
12435
12292
 
12436
12293
  /***/ }),
12437
12294
 
12438
- /***/ "./src/components/SearchInput/SearchInput.tsx":
12439
- /*!****************************************************!*\
12440
- !*** ./src/components/SearchInput/SearchInput.tsx ***!
12441
- \****************************************************/
12295
+ /***/ "./src/components/Pagination/Pagination.tsx":
12296
+ /*!**************************************************!*\
12297
+ !*** ./src/components/Pagination/Pagination.tsx ***!
12298
+ \**************************************************/
12442
12299
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12443
12300
 
12444
12301
  "use strict";
12445
12302
  __webpack_require__.r(__webpack_exports__);
12446
12303
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12447
- /* harmony export */ "SearchInput": function() { return /* binding */ SearchInput; }
12304
+ /* harmony export */ "Pagination": function() { return /* binding */ Pagination; }
12448
12305
  /* harmony export */ });
12449
12306
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12450
12307
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12451
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12308
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12309
+ /* harmony import */ var _Chevron__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Chevron */ "./src/components/Chevron/index.tsx");
12452
12310
  var __assign = (undefined && undefined.__assign) || function () {
12453
12311
  __assign = Object.assign || function(t) {
12454
12312
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12460,56 +12318,113 @@ var __assign = (undefined && undefined.__assign) || function () {
12460
12318
  };
12461
12319
  return __assign.apply(this, arguments);
12462
12320
  };
12321
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
12322
+ var t = {};
12323
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12324
+ t[p] = s[p];
12325
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
12326
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12327
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12328
+ t[p[i]] = s[p[i]];
12329
+ }
12330
+ return t;
12331
+ };
12463
12332
 
12464
12333
 
12465
- var SearchInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchInput(props, ref) {
12466
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_1__.InputBox, __assign({ type: 'search', ref: ref }, props));
12467
- });
12334
+
12335
+ var defaultItemsPerPageLabel = function () { return 'Items per page:'; };
12336
+ var defaultShowingResultsLabel = function (_a) {
12337
+ var count = _a.count, current = _a.current, itemsPerPage = _a.itemsPerPage;
12338
+ return "Showing results " + (current + 1) + " - " + Math.min(current + itemsPerPage, count) + " of " + count;
12339
+ };
12340
+ var Pagination = function (_a) {
12341
+ var count = _a.count, _b = _a.current, current = _b === void 0 ? 0 : _b, _c = _a.itemsPerPage, itemsPerPage = _c === void 0 ? 25 : _c, _d = _a.itemsPerPageLabel, itemsPerPageLabel = _d === void 0 ? defaultItemsPerPageLabel : _d, _e = _a.showingResultsLabel, showingResultsLabel = _e === void 0 ? defaultShowingResultsLabel : _e, onSetItemsPerPage = _a.onSetItemsPerPage, onSetCurrent = _a.onSetCurrent, divider = _a.divider, props = __rest(_a, ["count", "current", "itemsPerPage", "itemsPerPageLabel", "showingResultsLabel", "onSetItemsPerPage", "onSetCurrent", "divider"]);
12342
+ var itemsPerPageOptions = [25, 50, 100].filter(function (i) { return i <= count; });
12343
+ var hasItemsPerPageSelection = itemsPerPageOptions.length > 1;
12344
+ var currentPage = Math.floor(current / itemsPerPage);
12345
+ var pages = Math.ceil(count / itemsPerPage);
12346
+ var displayedPages = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
12347
+ if (pages <= 7) {
12348
+ // 0 1 2 3 4 5 6
12349
+ return Array.from({ length: pages }, function (_, i) { return i; });
12350
+ }
12351
+ if (currentPage < 5) {
12352
+ // 0 1 2 3 4 ... N
12353
+ return [0, 1, 2, 3, 4, '⋯', pages - 1];
12354
+ }
12355
+ if (currentPage > pages - 5) {
12356
+ // 0 ... N-4 N-3 N-2 N-1 N
12357
+ return [0, '⋯', pages - 5, pages - 4, pages - 3, pages - 2, pages - 1];
12358
+ }
12359
+ // 0 ... x-1 x x-2 ... N
12360
+ return [
12361
+ 0,
12362
+ '⋯',
12363
+ currentPage - 1,
12364
+ currentPage,
12365
+ currentPage + 1,
12366
+ '⋯',
12367
+ pages - 1,
12368
+ ];
12369
+ }, [pages, currentPage]);
12370
+ var renderingContext = { count: count, pages: pages, current: current, currentPage: currentPage, itemsPerPage: itemsPerPage };
12371
+ var handleSetItemsPerPageLinkClick = function (itemsPerPageOption) { return function () {
12372
+ onSetItemsPerPage === null || onSetItemsPerPage === void 0 ? void 0 : onSetItemsPerPage(itemsPerPageOption);
12373
+ }; };
12374
+ var handleSetPageLinkClick = function (page) { return function () {
12375
+ onSetCurrent === null || onSetCurrent === void 0 ? void 0 : onSetCurrent(page * itemsPerPage);
12376
+ }; };
12377
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'nav', "rcx-pagination": true, "rcx-pagination--divider": divider }, props),
12378
+ hasItemsPerPageSelection && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-pagination__left": true },
12379
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'span', "rcx-pagination__label": true }, itemsPerPageLabel(renderingContext)),
12380
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'ol', "rcx-pagination__list": true }, itemsPerPageOptions.map(function (itemsPerPageOption) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { key: itemsPerPageOption, is: 'li', "rcx-pagination__list-item": true },
12381
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'button', "rcx-pagination__link": true, tabIndex: itemsPerPage === itemsPerPageOption ? -1 : 0, disabled: itemsPerPage === itemsPerPageOption, onClick: handleSetItemsPerPageLinkClick(itemsPerPageOption) }, itemsPerPageOption))); })))),
12382
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-pagination__right": true },
12383
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'span', "rcx-pagination__label": true }, showingResultsLabel(renderingContext)),
12384
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'ol', "rcx-pagination__list": true },
12385
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'li', "rcx-pagination__list-item": true },
12386
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'button', "rcx-pagination__back": true, disabled: currentPage === 0, onClick: handleSetPageLinkClick(currentPage - 1) },
12387
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { left: true, size: 'x16' }))),
12388
+ displayedPages.map(function (page, i) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { key: i, is: 'li', "rcx-pagination__list-item": true }, page === '⋯' ? ('⋯') : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'button', "rcx-pagination__link": true, disabled: currentPage === page, onClick: handleSetPageLinkClick(page) }, page + 1)))); }),
12389
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'li', "rcx-pagination__list-item": true },
12390
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'button', "rcx-pagination__forward": true, disabled: currentPage === pages - 1, onClick: handleSetPageLinkClick(currentPage + 1) },
12391
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { right: true, size: 'x16' })))))));
12392
+ };
12468
12393
 
12469
12394
 
12470
12395
  /***/ }),
12471
12396
 
12472
- /***/ "./src/components/SearchInput/index.tsx":
12473
- /*!**********************************************!*\
12474
- !*** ./src/components/SearchInput/index.tsx ***!
12475
- \**********************************************/
12397
+ /***/ "./src/components/Pagination/index.ts":
12398
+ /*!********************************************!*\
12399
+ !*** ./src/components/Pagination/index.ts ***!
12400
+ \********************************************/
12476
12401
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12477
12402
 
12478
12403
  "use strict";
12479
12404
  __webpack_require__.r(__webpack_exports__);
12480
12405
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12481
- /* harmony export */ "SearchInput": function() { return /* reexport safe */ _SearchInput__WEBPACK_IMPORTED_MODULE_0__.SearchInput; }
12406
+ /* harmony export */ "Pagination": function() { return /* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_0__.Pagination; }
12482
12407
  /* harmony export */ });
12483
- /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SearchInput */ "./src/components/SearchInput/SearchInput.tsx");
12408
+ /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./src/components/Pagination/Pagination.tsx");
12484
12409
 
12485
12410
 
12486
12411
 
12487
12412
  /***/ }),
12488
12413
 
12489
- /***/ "./src/components/Select/Select.tsx":
12490
- /*!******************************************!*\
12491
- !*** ./src/components/Select/Select.tsx ***!
12492
- \******************************************/
12414
+ /***/ "./src/components/PasswordInput/PasswordInput.tsx":
12415
+ /*!********************************************************!*\
12416
+ !*** ./src/components/PasswordInput/PasswordInput.tsx ***!
12417
+ \********************************************************/
12493
12418
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12494
12419
 
12495
12420
  "use strict";
12496
12421
  __webpack_require__.r(__webpack_exports__);
12497
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12498
- /* harmony export */ "Select": function() { return /* binding */ Select; }
12499
- /* harmony export */ });
12500
12422
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12501
12423
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
12502
12424
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
12503
12425
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
12504
- /* harmony import */ var _helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
12505
- /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12506
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12507
- /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12508
- /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
12509
- /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Options */ "./src/components/Options/index.ts");
12510
- /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
12511
- /* harmony import */ var _SelectAddon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectAddon */ "./src/components/Select/SelectAddon.tsx");
12512
- /* harmony import */ var _SelectFocus__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectFocus */ "./src/components/Select/SelectFocus.tsx");
12426
+ /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12427
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12513
12428
  var __assign = (undefined && undefined.__assign) || function () {
12514
12429
  __assign = Object.assign || function(t) {
12515
12430
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12521,17 +12436,6 @@ var __assign = (undefined && undefined.__assign) || function () {
12521
12436
  };
12522
12437
  return __assign.apply(this, arguments);
12523
12438
  };
12524
- var __rest = (undefined && undefined.__rest) || function (s, e) {
12525
- var t = {};
12526
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12527
- t[p] = s[p];
12528
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
12529
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12530
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12531
- t[p[i]] = s[p[i]];
12532
- }
12533
- return t;
12534
- };
12535
12439
  var __read = (undefined && undefined.__read) || function (o, n) {
12536
12440
  var m = typeof Symbol === "function" && o[Symbol.iterator];
12537
12441
  if (!m) return o;
@@ -12552,120 +12456,125 @@ var __read = (undefined && undefined.__read) || function (o, n) {
12552
12456
 
12553
12457
 
12554
12458
 
12459
+ var PasswordInput = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function PasswordInput(props, ref) {
12460
+ var _a = __read((0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useToggle)(true), 2), hidden = _a[0], toggle = _a[1];
12461
+ var handleAddonClick = function () {
12462
+ toggle();
12463
+ };
12464
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_3__.InputBox, __assign({ type: hidden ? 'password' : 'text', addon: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__.Icon, { name: hidden ? 'eye-off' : 'eye', size: 20, onClick: handleAddonClick }), ref: ref }, props)));
12465
+ });
12466
+ /* harmony default export */ __webpack_exports__["default"] = (PasswordInput);
12467
+
12555
12468
 
12469
+ /***/ }),
12470
+
12471
+ /***/ "./src/components/PasswordInput/index.ts":
12472
+ /*!***********************************************!*\
12473
+ !*** ./src/components/PasswordInput/index.ts ***!
12474
+ \***********************************************/
12475
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12556
12476
 
12477
+ "use strict";
12478
+ __webpack_require__.r(__webpack_exports__);
12479
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12480
+ /* harmony export */ "default": function() { return /* reexport safe */ _PasswordInput__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12481
+ /* harmony export */ });
12482
+ /* harmony import */ var _PasswordInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PasswordInput */ "./src/components/PasswordInput/PasswordInput.tsx");
12557
12483
 
12558
12484
 
12559
12485
 
12486
+ /***/ }),
12560
12487
 
12488
+ /***/ "./src/components/Position/Position.tsx":
12489
+ /*!**********************************************!*\
12490
+ !*** ./src/components/Position/Position.tsx ***!
12491
+ \**********************************************/
12492
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12561
12493
 
12562
- var Wrapper = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, __assign({ is: 'div', "rcx-select__wrapper": true, ref: ref }, props))); });
12563
- var useDidUpdate = function (func, deps) {
12564
- var didMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(false);
12565
- var fn = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(func);
12566
- (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
12567
- if (didMount.current) {
12568
- fn();
12569
- }
12570
- didMount.current = true;
12571
- }, deps || []);
12572
- };
12573
- var Select = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
12574
- var value = _a.value, filter = _a.filter, error = _a.error, disabled = _a.disabled, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.anchor, Anchor = _c === void 0 ? _SelectFocus__WEBPACK_IMPORTED_MODULE_10__["default"] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.getValue, getValue = _e === void 0 ? function (_a) {
12575
- var _b = _a === void 0 ? ['', ''] : _a, _c = __read(_b, 1), value = _c[0];
12576
- return value;
12577
- } : _e, _f = _a.getLabel, getLabel = _f === void 0 ? function (_a) {
12578
- var _b = _a === void 0 ? ['', ''] : _a, _c = __read(_b, 2), _ = _c[0], label = _c[1];
12579
- return label;
12580
- } : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, renderItem = _a.renderItem, RenderSelected = _a.renderSelected, _h = _a.renderOptions, _Options = _h === void 0 ? _Options__WEBPACK_IMPORTED_MODULE_7__.Options : _h, addonIcon = _a.addonIcon, customEmpty = _a.customEmpty, props = __rest(_a, ["value", "filter", "error", "disabled", "options", "anchor", "onChange", "getValue", "getLabel", "placeholder", "renderItem", "renderSelected", "renderOptions", "addonIcon", "customEmpty"]);
12581
- var _j = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value || ''), 2), internalValue = _j[0], setInternalValue = _j[1];
12582
- var internalChangedByKeyboard = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
12583
- var _b = __read(_a, 1), value = _b[0];
12584
- setInternalValue(value);
12585
- onChange(value);
12586
- });
12587
- var option = options.find(function (option) { return getValue(option) === internalValue; });
12588
- var index = options.indexOf(option);
12589
- var filteredOptions = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
12590
- var mapOptions = function (_a) {
12591
- var _b = __read(_a, 2), value = _b[0], label = _b[1];
12592
- if (internalValue === value) {
12593
- return [value, label, true];
12594
- }
12595
- return [value, label];
12596
- };
12597
- var applyFilter = function (_a) {
12598
- var _b = __read(_a, 2), option = _b[1];
12599
- return !filter || ~option.toLowerCase().indexOf(filter.toLowerCase());
12600
- };
12601
- return options.filter(applyFilter).map(mapOptions);
12602
- }, [options, internalValue, filter]);
12603
- var _k = __read((0,_Options__WEBPACK_IMPORTED_MODULE_7__.useCursor)(index, filteredOptions, internalChangedByKeyboard), 5), cursor = _k[0], handleKeyDown = _k[1], handleKeyUp = _k[2], reset = _k[3], _l = __read(_k[4], 3), visible = _l[0], hide = _l[1], show = _l[2];
12604
- var internalChangedByClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
12605
- var _b = __read(_a, 1), value = _b[0];
12606
- setInternalValue(value);
12607
- onChange(value);
12608
- hide();
12609
- });
12610
- var innerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
12611
- var anchorRef = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMergedRefs)(ref, innerRef);
12612
- var renderAnchor = function (params) {
12613
- if ((0,_helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__.isForwardRefType)(Anchor)) {
12614
- return react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, __assign({}, params));
12615
- }
12616
- if (typeof Anchor === 'function') {
12617
- return Anchor(params);
12494
+ "use strict";
12495
+ __webpack_require__.r(__webpack_exports__);
12496
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12497
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
12498
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
12499
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
12500
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "react-dom");
12501
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
12502
+ var __assign = (undefined && undefined.__assign) || function () {
12503
+ __assign = Object.assign || function(t) {
12504
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
12505
+ s = arguments[i];
12506
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12507
+ t[p] = s[p];
12618
12508
  }
12619
- return null;
12509
+ return t;
12620
12510
  };
12621
- var _m = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _m.ref, borderBoxSize = _m.borderBoxSize;
12622
- useDidUpdate(reset, [filter, internalValue]);
12623
- var valueLabel = getLabel(option);
12624
- var visibleText = (filter === undefined || visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].HIDDEN) &&
12625
- (valueLabel || placeholder || typeof placeholder === 'string');
12626
- var handleClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
12627
- var _a;
12628
- if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE) {
12629
- return hide();
12511
+ return __assign.apply(this, arguments);
12512
+ };
12513
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
12514
+ var t = {};
12515
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12516
+ t[p] = s[p];
12517
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
12518
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12519
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12520
+ t[p[i]] = s[p[i]];
12630
12521
  }
12631
- (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
12632
- return show();
12633
- });
12634
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, __assign({ "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return [error && 'invalid', disabled && 'disabled']; }, [error, disabled]) }, props),
12635
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
12636
- visibleText &&
12637
- (RenderSelected ? (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, key: getValue(option), onClick: internalChangedByClick })) : (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__.Box, { flexGrow: 1, is: 'span', mi: 'x4', "rcx-select__item": true, fontScale: 'p2', color: valueLabel ? 'default' : 'hint' }, visibleText))),
12638
- renderAnchor({
12639
- ref: anchorRef,
12640
- children: !value ? option || placeholder : null,
12641
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
12642
- onClick: show,
12643
- onBlur: hide,
12644
- onKeyDown: handleKeyDown,
12645
- onKeyUp: handleKeyUp,
12646
- }),
12647
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_6__["default"], { inline: 'x4' },
12648
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_SelectAddon__WEBPACK_IMPORTED_MODULE_9__["default"], { children: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE
12649
- ? 'cross'
12650
- : addonIcon || 'chevron-down', size: 'x20' }) }))),
12651
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PositionAnimated__WEBPACK_IMPORTED_MODULE_8__["default"], { visible: visible, anchor: containerRef },
12652
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: filteredOptions, onSelect: internalChangedByClick, renderItem: renderItem, cursor: cursor, customEmpty: customEmpty }))));
12653
- });
12522
+ return t;
12523
+ };
12524
+
12525
+
12526
+
12527
+ var Position = function (_a) {
12528
+ var anchor = _a.anchor, children = _a.children, placement = _a.placement, margin = _a.margin, _className = _a.className, props = __rest(_a, ["anchor", "children", "placement", "margin", "className"]);
12529
+ var target = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
12530
+ var _b = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.usePosition)(anchor, target, (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return ({ placement: placement, margin: margin }); }, [placement, margin])) || {}, positionStyle = _b.style, positionPlacement = _b.placement;
12531
+ var style = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return (__assign({ position: 'fixed' }, positionStyle)); }, [positionStyle]);
12532
+ var portalContainer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
12533
+ var element = document.createElement('div');
12534
+ document.body.appendChild(element);
12535
+ return element;
12536
+ }, []);
12537
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
12538
+ return function () {
12539
+ document.body.removeChild(portalContainer);
12540
+ };
12541
+ }, [portalContainer]);
12542
+ return (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)((0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(children, __assign(__assign({ ref: target, style: style }, props), { placement: positionPlacement })), portalContainer);
12543
+ };
12544
+ /* harmony default export */ __webpack_exports__["default"] = (Position);
12654
12545
 
12655
12546
 
12656
12547
  /***/ }),
12657
12548
 
12658
- /***/ "./src/components/Select/SelectAddon.tsx":
12659
- /*!***********************************************!*\
12660
- !*** ./src/components/Select/SelectAddon.tsx ***!
12661
- \***********************************************/
12549
+ /***/ "./src/components/Position/index.ts":
12550
+ /*!******************************************!*\
12551
+ !*** ./src/components/Position/index.ts ***!
12552
+ \******************************************/
12553
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12554
+
12555
+ "use strict";
12556
+ __webpack_require__.r(__webpack_exports__);
12557
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12558
+ /* harmony export */ "default": function() { return /* reexport safe */ _Position__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12559
+ /* harmony export */ });
12560
+ /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Position */ "./src/components/Position/Position.tsx");
12561
+
12562
+
12563
+
12564
+ /***/ }),
12565
+
12566
+ /***/ "./src/components/PositionAnimated/PositionAnimated.tsx":
12567
+ /*!**************************************************************!*\
12568
+ !*** ./src/components/PositionAnimated/PositionAnimated.tsx ***!
12569
+ \**************************************************************/
12662
12570
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12663
12571
 
12664
12572
  "use strict";
12665
12573
  __webpack_require__.r(__webpack_exports__);
12666
12574
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12667
12575
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12668
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12576
+ /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12577
+ /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
12669
12578
  var __assign = (undefined && undefined.__assign) || function () {
12670
12579
  __assign = Object.assign || function(t) {
12671
12580
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12677,31 +12586,61 @@ var __assign = (undefined && undefined.__assign) || function () {
12677
12586
  };
12678
12587
  return __assign.apply(this, arguments);
12679
12588
  };
12589
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
12590
+ var t = {};
12591
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12592
+ t[p] = s[p];
12593
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
12594
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12595
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12596
+ t[p[i]] = s[p[i]];
12597
+ }
12598
+ return t;
12599
+ };
12680
12600
 
12681
12601
 
12682
- var SelectAddon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectAddon(props, ref) {
12683
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'div', "rcx-select__addon": true, ref: ref }, props));
12684
- });
12685
- /* harmony default export */ __webpack_exports__["default"] = (SelectAddon);
12602
+
12603
+ var PositionAnimated = function (_a) {
12604
+ var _width = _a.width, visible = _a.visible, children = _a.children, props = __rest(_a, ["width", "visible", "children"]);
12605
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_1__["default"], { visibility: visible },
12606
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Position__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({}, props), children)));
12607
+ };
12608
+ /* harmony default export */ __webpack_exports__["default"] = (PositionAnimated);
12686
12609
 
12687
12610
 
12688
12611
  /***/ }),
12689
12612
 
12690
- /***/ "./src/components/Select/SelectFiltered.tsx":
12613
+ /***/ "./src/components/PositionAnimated/index.ts":
12691
12614
  /*!**************************************************!*\
12692
- !*** ./src/components/Select/SelectFiltered.tsx ***!
12615
+ !*** ./src/components/PositionAnimated/index.ts ***!
12693
12616
  \**************************************************/
12694
12617
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12695
12618
 
12696
12619
  "use strict";
12697
12620
  __webpack_require__.r(__webpack_exports__);
12698
12621
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12699
- /* harmony export */ "SelectFiltered": function() { return /* binding */ SelectFiltered; }
12622
+ /* harmony export */ "default": function() { return /* reexport safe */ _PositionAnimated__WEBPACK_IMPORTED_MODULE_0__["default"]; }
12623
+ /* harmony export */ });
12624
+ /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PositionAnimated */ "./src/components/PositionAnimated/PositionAnimated.tsx");
12625
+
12626
+
12627
+
12628
+ /***/ }),
12629
+
12630
+ /***/ "./src/components/ProgressBar/ProgressBar.tsx":
12631
+ /*!****************************************************!*\
12632
+ !*** ./src/components/ProgressBar/ProgressBar.tsx ***!
12633
+ \****************************************************/
12634
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12635
+
12636
+ "use strict";
12637
+ __webpack_require__.r(__webpack_exports__);
12638
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12639
+ /* harmony export */ "ProgressBar": function() { return /* binding */ ProgressBar; }
12700
12640
  /* harmony export */ });
12701
12641
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12702
12642
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12703
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ "./src/components/Select/index.ts");
12704
- /* harmony import */ var _SelectFilteredAnchor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectFilteredAnchor */ "./src/components/Select/SelectFilteredAnchor.tsx");
12643
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12705
12644
  var __assign = (undefined && undefined.__assign) || function () {
12706
12645
  __assign = Object.assign || function(t) {
12707
12646
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12724,45 +12663,61 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
12724
12663
  }
12725
12664
  return t;
12726
12665
  };
12727
- var __read = (undefined && undefined.__read) || function (o, n) {
12728
- var m = typeof Symbol === "function" && o[Symbol.iterator];
12729
- if (!m) return o;
12730
- var i = m.call(o), r, ar = [], e;
12731
- try {
12732
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12666
+
12667
+
12668
+ var getWidth = function (percentage) {
12669
+ return Math.min(Math.max(0, percentage), 100).toFixed(1) + "%";
12670
+ };
12671
+ var getColor = function (percentage, error) {
12672
+ if (error) {
12673
+ return 'danger-200';
12733
12674
  }
12734
- catch (error) { e = { error: error }; }
12735
- finally {
12736
- try {
12737
- if (r && !r.done && (m = i["return"])) m.call(i);
12738
- }
12739
- finally { if (e) throw e.error; }
12675
+ if (percentage >= 100) {
12676
+ return 'success-200';
12740
12677
  }
12741
- return ar;
12678
+ return 'primary-200';
12742
12679
  };
12680
+ var ProgressBar = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProgressBar(_a, ref) {
12681
+ var barColor = _a.barColor, percentage = _a.percentage, error = _a.error, _b = _a.animated, animated = _b === void 0 ? true : _b, props = __rest(_a, ["barColor", "percentage", "error", "animated"]);
12682
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ ref: ref, "rcx-progress-bar": true, title: error || undefined }, props),
12683
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { bg: barColor || getColor(percentage, error), "rcx-progress-bar__fill": true, "rcx-progress-bar__fill-complete": animated && percentage >= 100, width: getWidth(percentage) })));
12684
+ });
12743
12685
 
12744
12686
 
12687
+ /***/ }),
12688
+
12689
+ /***/ "./src/components/ProgressBar/index.tsx":
12690
+ /*!**********************************************!*\
12691
+ !*** ./src/components/ProgressBar/index.tsx ***!
12692
+ \**********************************************/
12693
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12694
+
12695
+ "use strict";
12696
+ __webpack_require__.r(__webpack_exports__);
12697
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12698
+ /* harmony export */ "ProgressBar": function() { return /* reexport safe */ _ProgressBar__WEBPACK_IMPORTED_MODULE_0__.ProgressBar; }
12699
+ /* harmony export */ });
12700
+ /* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProgressBar */ "./src/components/ProgressBar/ProgressBar.tsx");
12745
12701
 
12746
- var SelectFiltered = function (_a) {
12747
- var options = _a.options, placeholder = _a.placeholder, propFilter = _a.filter, propSetFilter = _a.setFilter, props = __rest(_a, ["options", "placeholder", "filter", "setFilter"]);
12748
- var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''), 2), filter = _b[0], setFilter = _b[1];
12749
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.Select, __assign({ placeholder: placeholder, filter: propFilter || filter, options: options }, props, { anchor: function (params) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectFilteredAnchor__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ placeholder: placeholder, filter: propFilter || filter, onChangeFilter: propSetFilter || setFilter }, params))); } })));
12750
- };
12751
12702
 
12752
12703
 
12753
12704
  /***/ }),
12754
12705
 
12755
- /***/ "./src/components/Select/SelectFilteredAnchor.tsx":
12756
- /*!********************************************************!*\
12757
- !*** ./src/components/Select/SelectFilteredAnchor.tsx ***!
12758
- \********************************************************/
12706
+ /***/ "./src/components/RadioButton/RadioButton.tsx":
12707
+ /*!****************************************************!*\
12708
+ !*** ./src/components/RadioButton/RadioButton.tsx ***!
12709
+ \****************************************************/
12759
12710
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12760
12711
 
12761
12712
  "use strict";
12762
12713
  __webpack_require__.r(__webpack_exports__);
12714
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12715
+ /* harmony export */ "RadioButton": function() { return /* binding */ RadioButton; }
12716
+ /* harmony export */ });
12763
12717
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12764
12718
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12765
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12719
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12720
+ /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
12766
12721
  var __assign = (undefined && undefined.__assign) || function () {
12767
12722
  __assign = Object.assign || function(t) {
12768
12723
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12787,84 +12742,143 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
12787
12742
  };
12788
12743
 
12789
12744
 
12790
- var SelectFilteredAnchor = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectFilteredAnchor(_a, ref) {
12791
- var _children = _a.children, filter = _a.filter, onChangeFilter = _a.onChangeFilter, placeholder = _a.placeholder, props = __rest(_a, ["children", "filter", "onChangeFilter", "placeholder"]);
12792
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_1__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onInput: function (e) {
12793
- return onChangeFilter(e.currentTarget.value);
12794
- } }, props, { "rcx-input-box--undecorated": true })));
12745
+
12746
+ var RadioButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function RadioButton(_a, ref) {
12747
+ var autoComplete = _a.autoComplete, checked = _a.checked, defaultChecked = _a.defaultChecked, disabled = _a.disabled, form = _a.form, id = _a.id, name = _a.name, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, qa = _a.qa, dataQa = _a["data-qa"], onChange = _a.onChange, onInput = _a.onInput, onInvalid = _a.onInvalid, props = __rest(_a, ["autoComplete", "checked", "defaultChecked", "disabled", "form", "id", "name", "required", "tabIndex", "value", "qa", 'data-qa', "onChange", "onInput", "onInvalid"]);
12748
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-radio-button": true }, props),
12749
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'input', "rcx-radio-button__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'radio', value: value, "data-qa": dataQa || qa, ref: ref, onChange: onChange, onInput: onInput, onInvalid: onInvalid }),
12750
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'i', "rcx-radio-button__fake": true, "aria-hidden": 'true' })));
12795
12751
  });
12796
- /* harmony default export */ __webpack_exports__["default"] = (SelectFilteredAnchor);
12797
12752
 
12798
12753
 
12799
12754
  /***/ }),
12800
12755
 
12801
- /***/ "./src/components/Select/SelectFocus.tsx":
12802
- /*!***********************************************!*\
12803
- !*** ./src/components/Select/SelectFocus.tsx ***!
12804
- \***********************************************/
12756
+ /***/ "./src/components/RadioButton/index.ts":
12757
+ /*!*********************************************!*\
12758
+ !*** ./src/components/RadioButton/index.ts ***!
12759
+ \*********************************************/
12805
12760
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12806
12761
 
12807
12762
  "use strict";
12808
12763
  __webpack_require__.r(__webpack_exports__);
12809
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12810
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12811
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12812
- var __assign = (undefined && undefined.__assign) || function () {
12813
- __assign = Object.assign || function(t) {
12814
- for (var s, i = 1, n = arguments.length; i < n; i++) {
12815
- s = arguments[i];
12816
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12817
- t[p] = s[p];
12764
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12765
+ /* harmony export */ "RadioButton": function() { return /* reexport safe */ _RadioButton__WEBPACK_IMPORTED_MODULE_0__.RadioButton; }
12766
+ /* harmony export */ });
12767
+ /* harmony import */ var _RadioButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RadioButton */ "./src/components/RadioButton/RadioButton.tsx");
12768
+
12769
+
12770
+
12771
+ /***/ }),
12772
+
12773
+ /***/ "./src/components/Scrollable/Scrollable.tsx":
12774
+ /*!**************************************************!*\
12775
+ !*** ./src/components/Scrollable/Scrollable.tsx ***!
12776
+ \**************************************************/
12777
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12778
+
12779
+ "use strict";
12780
+ __webpack_require__.r(__webpack_exports__);
12781
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12782
+ /* harmony export */ "Scrollable": function() { return /* binding */ Scrollable; }
12783
+ /* harmony export */ });
12784
+ /* harmony import */ var _rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/css-in-js */ "../css-in-js/dist/index.module.js");
12785
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12786
+ /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__);
12787
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
12788
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
12789
+ /* harmony import */ var _helpers_appendClassName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
12790
+ /* harmony import */ var _hooks_useStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
12791
+ /* harmony import */ var _Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
12792
+ var __makeTemplateObject = (undefined && undefined.__makeTemplateObject) || function (cooked, raw) {
12793
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
12794
+ return cooked;
12795
+ };
12796
+
12797
+
12798
+
12799
+
12800
+
12801
+
12802
+ var getTouchingEdges = function (element) { return ({
12803
+ top: !element.scrollTop,
12804
+ bottom: !(element.scrollTop + element.clientHeight - element.scrollHeight),
12805
+ left: !element.scrollLeft,
12806
+ right: !(element.scrollLeft + element.clientWidth - element.scrollWidth),
12807
+ }); };
12808
+ var pollTouchingEdges = function (element, touchingEdgesRef, onScrollContent) {
12809
+ var touchingEdges = touchingEdgesRef.current;
12810
+ var newTouchingEdges = getTouchingEdges(element);
12811
+ var dirty = touchingEdges &&
12812
+ (touchingEdges.top !== newTouchingEdges.top ||
12813
+ touchingEdges.bottom !== newTouchingEdges.bottom ||
12814
+ touchingEdges.left !== newTouchingEdges.left ||
12815
+ touchingEdges.right !== newTouchingEdges.right);
12816
+ if (dirty) {
12817
+ touchingEdgesRef.current = newTouchingEdges;
12818
+ onScrollContent && onScrollContent(newTouchingEdges);
12819
+ }
12820
+ };
12821
+ var Scrollable = function (_a) {
12822
+ var children = _a.children, horizontal = _a.horizontal, vertical = _a.vertical, smooth = _a.smooth, onScrollContent = _a.onScrollContent;
12823
+ var scrollTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
12824
+ var touchingEdgesRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});
12825
+ var handleScroll = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_1__.useMutableCallback)(function (event) {
12826
+ var element = event.currentTarget;
12827
+ if (!scrollTimeoutRef.current) {
12828
+ pollTouchingEdges(element, touchingEdgesRef, onScrollContent);
12818
12829
  }
12819
- return t;
12820
- };
12821
- return __assign.apply(this, arguments);
12830
+ scrollTimeoutRef.current && clearTimeout(scrollTimeoutRef.current);
12831
+ scrollTimeoutRef.current = setTimeout(function () {
12832
+ scrollTimeoutRef.current = undefined;
12833
+ pollTouchingEdges(element, touchingEdgesRef, onScrollContent);
12834
+ }, 200);
12835
+ });
12836
+ var className = (0,_hooks_useStyle__WEBPACK_IMPORTED_MODULE_4__.useStyle)((0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n\n &::-webkit-scrollbar {\n width: ", "rem;\n height: ", "rem;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.05);\n background-color: var(\n --rcx-theme-scrollbar-thumb-color,\n rgba(0, 0, 0, 0.05)\n );\n }\n\n &:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n background-color: var(\n --rcx-theme-scrollbar-thumb-hover-color,\n rgba(0, 0, 0, 0.15)\n );\n }\n\n ", "\n ", "\n "], ["\n position: relative;\n\n &::-webkit-scrollbar {\n width: ", "rem;\n height: ", "rem;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.05);\n background-color: var(\n --rcx-theme-scrollbar-thumb-color,\n rgba(0, 0, 0, 0.05)\n );\n }\n\n &:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n background-color: var(\n --rcx-theme-scrollbar-thumb-hover-color,\n rgba(0, 0, 0, 0.15)\n );\n }\n\n ", "\n ", "\n "])), 4 / 16, 4 / 16, (horizontal && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: auto !important;\n "], ["\n overflow-x: auto !important;\n "])))) ||
12837
+ (vertical && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n overflow-y: auto !important;\n "], ["\n overflow-y: auto !important;\n "])))) || (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: auto !important;\n "], ["\n overflow: auto !important;\n "]))), smooth && (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n scroll-behavior: smooth !important;\n "], ["\n scroll-behavior: smooth !important;\n "])))), null);
12838
+ var transformFn = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (props) {
12839
+ props.className =
12840
+ className && (0,_helpers_appendClassName__WEBPACK_IMPORTED_MODULE_3__.appendClassName)(props.className, className);
12841
+ if (onScrollContent !== undefined && props.onScroll === undefined) {
12842
+ props.onScroll = handleScroll;
12843
+ }
12844
+ return props;
12845
+ }, [className, handleScroll, onScrollContent]);
12846
+ return (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.BoxTransforms.Provider, { children: children, value: (0,_Box_BoxTransforms__WEBPACK_IMPORTED_MODULE_5__.useComposedBoxTransform)(transformFn) }));
12822
12847
  };
12823
-
12824
-
12825
- var SelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectFocus(props, ref) {
12826
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ ref: ref, fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button' }, props)));
12827
- });
12828
- /* harmony default export */ __webpack_exports__["default"] = (SelectFocus);
12848
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
12829
12849
 
12830
12850
 
12831
12851
  /***/ }),
12832
12852
 
12833
- /***/ "./src/components/Select/index.ts":
12834
- /*!****************************************!*\
12835
- !*** ./src/components/Select/index.ts ***!
12836
- \****************************************/
12853
+ /***/ "./src/components/Scrollable/index.ts":
12854
+ /*!********************************************!*\
12855
+ !*** ./src/components/Scrollable/index.ts ***!
12856
+ \********************************************/
12837
12857
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12838
12858
 
12839
12859
  "use strict";
12840
12860
  __webpack_require__.r(__webpack_exports__);
12841
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12842
- /* harmony export */ "Select": function() { return /* reexport safe */ _Select__WEBPACK_IMPORTED_MODULE_0__.Select; },
12843
- /* harmony export */ "SelectFiltered": function() { return /* reexport safe */ _SelectFiltered__WEBPACK_IMPORTED_MODULE_1__.SelectFiltered; }
12844
- /* harmony export */ });
12845
- /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./src/components/Select/Select.tsx");
12846
- /* harmony import */ var _SelectFiltered__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectFiltered */ "./src/components/Select/SelectFiltered.tsx");
12847
-
12861
+ /* harmony import */ var _Scrollable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Scrollable */ "./src/components/Scrollable/Scrollable.tsx");
12848
12862
 
12863
+ /* harmony default export */ __webpack_exports__["default"] = (_Scrollable__WEBPACK_IMPORTED_MODULE_0__.Scrollable);
12849
12864
 
12850
12865
 
12851
12866
  /***/ }),
12852
12867
 
12853
- /***/ "./src/components/SelectInput/SelectInput.tsx":
12868
+ /***/ "./src/components/SearchInput/SearchInput.tsx":
12854
12869
  /*!****************************************************!*\
12855
- !*** ./src/components/SelectInput/SelectInput.tsx ***!
12870
+ !*** ./src/components/SearchInput/SearchInput.tsx ***!
12856
12871
  \****************************************************/
12857
12872
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12858
12873
 
12859
12874
  "use strict";
12860
12875
  __webpack_require__.r(__webpack_exports__);
12861
12876
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12862
- /* harmony export */ "SelectInput": function() { return /* binding */ SelectInput; }
12877
+ /* harmony export */ "SearchInput": function() { return /* binding */ SearchInput; }
12863
12878
  /* harmony export */ });
12864
12879
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12865
12880
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12866
- /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12867
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12881
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12868
12882
  var __assign = (undefined && undefined.__assign) || function () {
12869
12883
  __assign = Object.assign || function(t) {
12870
12884
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12876,103 +12890,56 @@ var __assign = (undefined && undefined.__assign) || function () {
12876
12890
  };
12877
12891
  return __assign.apply(this, arguments);
12878
12892
  };
12879
- var __rest = (undefined && undefined.__rest) || function (s, e) {
12880
- var t = {};
12881
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12882
- t[p] = s[p];
12883
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
12884
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12885
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
12886
- t[p[i]] = s[p[i]];
12887
- }
12888
- return t;
12889
- };
12890
- var __read = (undefined && undefined.__read) || function (o, n) {
12891
- var m = typeof Symbol === "function" && o[Symbol.iterator];
12892
- if (!m) return o;
12893
- var i = m.call(o), r, ar = [], e;
12894
- try {
12895
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12896
- }
12897
- catch (error) { e = { error: error }; }
12898
- finally {
12899
- try {
12900
- if (r && !r.done && (m = i["return"])) m.call(i);
12901
- }
12902
- finally { if (e) throw e.error; }
12903
- }
12904
- return ar;
12905
- };
12906
12893
 
12907
12894
 
12908
-
12909
- var SelectInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectInput(_a, ref) {
12910
- var children = _a.children, multiple = _a.multiple, placeholder = _a.placeholder, onChange = _a.onChange, props = __rest(_a, ["children", "multiple", "placeholder", "onChange"]);
12911
- var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!props.value && !props.defaultValue), 2), isPlaceholderVisible = _b[0], setPlaceholderVisible = _b[1];
12912
- var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {
12913
- setPlaceholderVisible(!event.currentTarget.value);
12914
- onChange === null || onChange === void 0 ? void 0 : onChange.call(event.currentTarget, event);
12915
- }, [onChange]);
12916
- if (multiple) {
12917
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox, __assign({ children: children }, props, { multiple: true, type: 'select', onChange: handleChange })));
12918
- }
12919
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox, __assign({ placeholderVisible: isPlaceholderVisible ? !!placeholder : undefined, ref: ref }, props, { addon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_1__.Icon, { name: 'chevron-down', size: 'x20' }), type: 'select', onChange: handleChange }),
12920
- placeholder && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox.Placeholder, { value: '' }, placeholder)),
12921
- children));
12895
+ var SearchInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchInput(props, ref) {
12896
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_1__.InputBox, __assign({ type: 'search', ref: ref }, props));
12922
12897
  });
12923
12898
 
12924
12899
 
12925
12900
  /***/ }),
12926
12901
 
12927
- /***/ "./src/components/SelectInput/index.ts":
12928
- /*!*********************************************!*\
12929
- !*** ./src/components/SelectInput/index.ts ***!
12930
- \*********************************************/
12902
+ /***/ "./src/components/SearchInput/index.tsx":
12903
+ /*!**********************************************!*\
12904
+ !*** ./src/components/SearchInput/index.tsx ***!
12905
+ \**********************************************/
12931
12906
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12932
12907
 
12933
12908
  "use strict";
12934
12909
  __webpack_require__.r(__webpack_exports__);
12935
12910
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12936
- /* harmony export */ "SelectInput": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_1__.SelectInput; },
12937
- /* harmony export */ "SelectInputOption": function() { return /* binding */ SelectInputOption; }
12911
+ /* harmony export */ "SearchInput": function() { return /* reexport safe */ _SearchInput__WEBPACK_IMPORTED_MODULE_0__.SearchInput; }
12938
12912
  /* harmony export */ });
12939
- /* harmony import */ var _InputBox_Option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../InputBox/Option */ "./src/components/InputBox/Option.tsx");
12940
- /* harmony import */ var _SelectInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/SelectInput.tsx");
12941
-
12913
+ /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SearchInput */ "./src/components/SearchInput/SearchInput.tsx");
12942
12914
 
12943
- var SelectInputOption = _InputBox_Option__WEBPACK_IMPORTED_MODULE_0__.Option;
12944
12915
 
12945
12916
 
12946
12917
  /***/ }),
12947
12918
 
12948
- /***/ "./src/components/SelectPaginated/PaginatedMultiSelect.tsx":
12949
- /*!*****************************************************************!*\
12950
- !*** ./src/components/SelectPaginated/PaginatedMultiSelect.tsx ***!
12951
- \*****************************************************************/
12919
+ /***/ "./src/components/Select/Select.tsx":
12920
+ /*!******************************************!*\
12921
+ !*** ./src/components/Select/Select.tsx ***!
12922
+ \******************************************/
12952
12923
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12953
12924
 
12954
12925
  "use strict";
12955
12926
  __webpack_require__.r(__webpack_exports__);
12956
12927
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12957
- /* harmony export */ "PaginatedMultiSelect": function() { return /* binding */ PaginatedMultiSelect; },
12958
- /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* binding */ PaginatedMultiSelectFiltered; }
12928
+ /* harmony export */ "Select": function() { return /* binding */ Select; }
12959
12929
  /* harmony export */ });
12960
12930
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
12961
12931
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
12962
12932
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
12963
12933
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
12964
- /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12965
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
12966
- /* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Chip */ "./src/components/Chip/index.ts");
12967
- /* harmony import */ var _Flex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
12968
- /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12969
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
12970
- /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
12971
- /* harmony import */ var _Options_useVisible__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
12972
- /* harmony import */ var _OptionsPaginated__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
12973
- /* harmony import */ var _Position__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Position */ "./src/components/Position/index.ts");
12974
- /* harmony import */ var _Select_SelectAddon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx");
12975
- /* harmony import */ var _Select_SelectFocus__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Select/SelectFocus */ "./src/components/Select/SelectFocus.tsx");
12934
+ /* harmony import */ var _helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
12935
+ /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
12936
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
12937
+ /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
12938
+ /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
12939
+ /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Options */ "./src/components/Options/index.ts");
12940
+ /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
12941
+ /* harmony import */ var _SelectAddon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectAddon */ "./src/components/Select/SelectAddon.tsx");
12942
+ /* harmony import */ var _SelectFocus__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectFocus */ "./src/components/Select/SelectFocus.tsx");
12976
12943
  var __assign = (undefined && undefined.__assign) || function () {
12977
12944
  __assign = Object.assign || function(t) {
12978
12945
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -13011,12 +12978,6 @@ var __read = (undefined && undefined.__read) || function (o, n) {
13011
12978
  }
13012
12979
  return ar;
13013
12980
  };
13014
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
13015
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
13016
- to[j] = from[i];
13017
- return to;
13018
- };
13019
- // @ts-nocheck
13020
12981
 
13021
12982
 
13022
12983
 
@@ -13028,113 +12989,149 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
13028
12989
 
13029
12990
 
13030
12991
 
13031
-
13032
-
13033
-
13034
- var SelectedOptions = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (props) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Chip__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ maxWidth: '150px', withTruncatedText: true }, props))); });
13035
- var prevent = function (e) {
13036
- e.preventDefault();
13037
- e.stopPropagation();
13038
- e.nativeEvent.stopImmediatePropagation();
12992
+ var Wrapper = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ is: 'div', "rcx-select__wrapper": true, ref: ref }, props))); });
12993
+ var useDidUpdate = function (func, deps) {
12994
+ var didMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(false);
12995
+ var fn = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(func);
12996
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
12997
+ if (didMount.current) {
12998
+ fn();
12999
+ }
13000
+ didMount.current = true;
13001
+ }, deps || []);
13039
13002
  };
13040
- var PaginatedMultiSelect = function (_a) {
13041
- var withTitle = _a.withTitle, value = _a.value, filter = _a.filter, _b = _a.options, options = _b === void 0 ? [] : _b, error = _a.error, disabled = _a.disabled, _c = _a.anchor, Anchor = _c === void 0 ? _Select_SelectFocus__WEBPACK_IMPORTED_MODULE_13__["default"] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, placeholder = _a.placeholder, _e = _a.renderOptions, _Options = _e === void 0 ? _OptionsPaginated__WEBPACK_IMPORTED_MODULE_10__.OptionsPaginated : _e, endReached = _a.endReached, props = __rest(_a, ["withTitle", "value", "filter", "options", "error", "disabled", "anchor", "onChange", "placeholder", "renderOptions", "endReached"]);
13042
- var _f = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value || []), 2), internalValue = _f[0], setInternalValue = _f[1];
13043
- var currentValue = value !== undefined ? value : internalValue;
13044
- var option = options.find(function (option) { return option.value === currentValue; });
13045
- var internalChanged = function (_a) {
13003
+ var Select = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
13004
+ var value = _a.value, filter = _a.filter, error = _a.error, disabled = _a.disabled, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.anchor, Anchor = _c === void 0 ? _SelectFocus__WEBPACK_IMPORTED_MODULE_10__["default"] : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.getValue, getValue = _e === void 0 ? function (_a) {
13005
+ var _b = _a === void 0 ? ['', ''] : _a, _c = __read(_b, 1), value = _c[0];
13006
+ return value;
13007
+ } : _e, _f = _a.getLabel, getLabel = _f === void 0 ? function (_a) {
13008
+ var _b = _a === void 0 ? ['', ''] : _a, _c = __read(_b, 2), _ = _c[0], label = _c[1];
13009
+ return label;
13010
+ } : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, renderItem = _a.renderItem, RenderSelected = _a.renderSelected, _h = _a.renderOptions, _Options = _h === void 0 ? _Options__WEBPACK_IMPORTED_MODULE_7__.Options : _h, addonIcon = _a.addonIcon, customEmpty = _a.customEmpty, props = __rest(_a, ["value", "filter", "error", "disabled", "options", "anchor", "onChange", "getValue", "getLabel", "placeholder", "renderItem", "renderSelected", "renderOptions", "addonIcon", "customEmpty"]);
13011
+ var _j = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value || ''), 2), internalValue = _j[0], setInternalValue = _j[1];
13012
+ var internalChangedByKeyboard = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
13046
13013
  var _b = __read(_a, 1), value = _b[0];
13047
- if (currentValue.some(function (item) { return item.value === value.value; })) {
13048
- var newValue_1 = currentValue.filter(function (item) { return item.value !== value.value; });
13049
- setInternalValue(newValue_1);
13050
- return onChange(newValue_1);
13014
+ setInternalValue(value);
13015
+ onChange(value);
13016
+ });
13017
+ var option = options.find(function (option) { return getValue(option) === internalValue; });
13018
+ var index = options.indexOf(option);
13019
+ var filteredOptions = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
13020
+ var mapOptions = function (_a) {
13021
+ var _b = __read(_a, 2), value = _b[0], label = _b[1];
13022
+ if (internalValue === value) {
13023
+ return [value, label, true];
13024
+ }
13025
+ return [value, label];
13026
+ };
13027
+ var applyFilter = function (_a) {
13028
+ var _b = __read(_a, 2), option = _b[1];
13029
+ return !filter || ~option.toLowerCase().indexOf(filter.toLowerCase());
13030
+ };
13031
+ return options.filter(applyFilter).map(mapOptions);
13032
+ }, [options, internalValue, filter]);
13033
+ var _k = __read((0,_Options__WEBPACK_IMPORTED_MODULE_7__.useCursor)(index, filteredOptions, internalChangedByKeyboard), 5), cursor = _k[0], handleKeyDown = _k[1], handleKeyUp = _k[2], reset = _k[3], _l = __read(_k[4], 3), visible = _l[0], hide = _l[1], show = _l[2];
13034
+ var internalChangedByClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
13035
+ var _b = __read(_a, 1), value = _b[0];
13036
+ setInternalValue(value);
13037
+ onChange(value);
13038
+ hide();
13039
+ });
13040
+ var innerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
13041
+ var anchorRef = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMergedRefs)(ref, innerRef);
13042
+ var renderAnchor = function (params) {
13043
+ if ((0,_helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__.isForwardRefType)(Anchor)) {
13044
+ return react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, __assign({}, params));
13051
13045
  }
13052
- var newValue = __spreadArray(__spreadArray([], __read(currentValue)), [value]);
13053
- setInternalValue(newValue);
13054
- return onChange(newValue);
13046
+ if (typeof Anchor === 'function') {
13047
+ return Anchor(params);
13048
+ }
13049
+ return null;
13055
13050
  };
13056
- var _g = __read((0,_Options_useVisible__WEBPACK_IMPORTED_MODULE_9__.useVisible)(), 3), visible = _g[0], hide = _g[1], show = _g[2];
13057
- var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
13058
- var _h = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _h.ref, borderBoxSize = _h.borderBoxSize;
13051
+ var _m = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _m.ref, borderBoxSize = _m.borderBoxSize;
13052
+ useDidUpdate(reset, [filter, internalValue]);
13053
+ var valueLabel = getLabel(option);
13054
+ var visibleText = (filter === undefined || visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].HIDDEN) &&
13055
+ (valueLabel || placeholder || typeof placeholder === 'string');
13059
13056
  var handleClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
13060
- if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE) {
13057
+ var _a;
13058
+ if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE) {
13061
13059
  return hide();
13062
13060
  }
13063
- if (ref && ref.current) {
13064
- ref.current.focus();
13065
- return show();
13066
- }
13061
+ (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
13062
+ return show();
13067
13063
  });
13068
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ is: 'div', "rcx-select": true, className: [error && 'invalid', disabled && 'disabled'], ref: containerRef, onClick: handleClick, disabled: disabled }, props),
13069
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
13070
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { inline: 'x4' },
13071
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Container, null,
13072
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, { is: 'div' },
13073
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, { is: 'div', display: 'flex', alignItems: 'center', flexWrap: 'wrap', margin: '-x8', role: 'listbox' },
13074
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { all: 'x4' },
13075
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, { disabled: disabled, ref: ref, "aria-haspopup": 'listbox', onClick: show, onBlur: hide, order: 1, "rcx-input-box--undecorated": true, children: !value ? option || placeholder : null }),
13076
- currentValue.map(function (value, index) {
13077
- var _a, _b;
13078
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectedOptions, __assign({}, (withTitle && {
13079
- title: value.label ||
13080
- ((_a = options.find(function (val) {
13081
- return val.value === value;
13082
- })) === null || _a === void 0 ? void 0 : _a.label),
13083
- }), { tabIndex: -1, role: 'option', key: index, onMouseDown: function (e) {
13084
- prevent(e);
13085
- internalChanged([value]);
13086
- return false;
13087
- }, children: value.label ||
13088
- ((_b = options.find(function (val) {
13089
- return val.value === value;
13090
- })) === null || _b === void 0 ? void 0 : _b.label) })));
13091
- }))))))),
13092
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 0, shrink: 0 },
13093
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { inline: 'x4' },
13094
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Select_SelectAddon__WEBPACK_IMPORTED_MODULE_12__["default"], { children: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_6__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE
13064
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return [error && 'invalid', disabled && 'disabled']; }, [error, disabled]) }, props),
13065
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
13066
+ visibleText &&
13067
+ (RenderSelected ? (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, key: getValue(option), onClick: internalChangedByClick })) : (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], { flexGrow: 1, is: 'span', mi: 'x4', "rcx-select__item": true, fontScale: 'p2', color: valueLabel ? 'default' : 'hint' }, visibleText))),
13068
+ renderAnchor({
13069
+ ref: anchorRef,
13070
+ children: !value ? option || placeholder : null,
13071
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
13072
+ onClick: show,
13073
+ onBlur: hide,
13074
+ onKeyDown: handleKeyDown,
13075
+ onKeyUp: handleKeyUp,
13076
+ }),
13077
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_6__["default"], { inline: 'x4' },
13078
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_SelectAddon__WEBPACK_IMPORTED_MODULE_9__["default"], { children: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE
13095
13079
  ? 'cross'
13096
- : 'chevron-down', size: 'x20' }) }))),
13097
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"], { visibility: visible },
13098
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Position__WEBPACK_IMPORTED_MODULE_11__["default"], { anchor: containerRef },
13099
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, __assign({}, (withTitle && { title: withTitle }), { width: borderBoxSize.inlineSize, onMouseDown: prevent, multiple: true, filter: filter, role: 'listbox', options: options, onSelect: internalChanged, endReached: endReached }))))));
13100
- };
13101
- var PaginatedMultiSelectFiltered = function (_a) {
13102
- var filter = _a.filter, setFilter = _a.setFilter, options = _a.options, placeholder = _a.placeholder, props = __rest(_a, ["filter", "setFilter", "options", "placeholder"]);
13103
- var anchor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
13104
- var _children = _a.children, filter = _a.filter, props = __rest(_a, ["children", "filter"]);
13105
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
13106
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_7__.InputBox.Input, __assign({ ref: ref, placeholder: placeholder, value: filter, onInput: function (e) {
13107
- return setFilter &&
13108
- setFilter(e.currentTarget.value);
13109
- } }, props, { "rcx-input-box--undecorated": true }))));
13110
- }), []);
13111
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginatedMultiSelect, __assign({ filter: filter, options: options }, props, { anchor: anchor })));
13080
+ : addonIcon || 'chevron-down', size: 'x20' }) }))),
13081
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PositionAnimated__WEBPACK_IMPORTED_MODULE_8__["default"], { visible: visible, anchor: containerRef },
13082
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: filteredOptions, onSelect: internalChangedByClick, renderItem: renderItem, cursor: cursor, customEmpty: customEmpty }))));
13083
+ });
13084
+
13085
+
13086
+ /***/ }),
13087
+
13088
+ /***/ "./src/components/Select/SelectAddon.tsx":
13089
+ /*!***********************************************!*\
13090
+ !*** ./src/components/Select/SelectAddon.tsx ***!
13091
+ \***********************************************/
13092
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13093
+
13094
+ "use strict";
13095
+ __webpack_require__.r(__webpack_exports__);
13096
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13097
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13098
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
13099
+ var __assign = (undefined && undefined.__assign) || function () {
13100
+ __assign = Object.assign || function(t) {
13101
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
13102
+ s = arguments[i];
13103
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13104
+ t[p] = s[p];
13105
+ }
13106
+ return t;
13107
+ };
13108
+ return __assign.apply(this, arguments);
13112
13109
  };
13113
13110
 
13114
13111
 
13112
+ var SelectAddon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectAddon(props, ref) {
13113
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'div', "rcx-select__addon": true, ref: ref }, props));
13114
+ });
13115
+ /* harmony default export */ __webpack_exports__["default"] = (SelectAddon);
13116
+
13117
+
13115
13118
  /***/ }),
13116
13119
 
13117
- /***/ "./src/components/SelectPaginated/PaginatedSelect.tsx":
13118
- /*!************************************************************!*\
13119
- !*** ./src/components/SelectPaginated/PaginatedSelect.tsx ***!
13120
- \************************************************************/
13120
+ /***/ "./src/components/Select/SelectFiltered.tsx":
13121
+ /*!**************************************************!*\
13122
+ !*** ./src/components/Select/SelectFiltered.tsx ***!
13123
+ \**************************************************/
13121
13124
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13122
13125
 
13123
13126
  "use strict";
13124
13127
  __webpack_require__.r(__webpack_exports__);
13125
13128
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13126
- /* harmony export */ "PaginatedSelect": function() { return /* binding */ PaginatedSelect; }
13129
+ /* harmony export */ "SelectFiltered": function() { return /* binding */ SelectFiltered; }
13127
13130
  /* harmony export */ });
13128
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
13129
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
13130
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
13131
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
13132
- /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
13133
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
13134
- /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
13135
- /* harmony import */ var _Options_useVisible__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
13136
- /* harmony import */ var _OptionsPaginated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
13137
- /* harmony import */ var _PositionAnimated__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
13131
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13132
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13133
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ "./src/components/Select/index.ts");
13134
+ /* harmony import */ var _SelectFilteredAnchor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectFilteredAnchor */ "./src/components/Select/SelectFilteredAnchor.tsx");
13138
13135
  var __assign = (undefined && undefined.__assign) || function () {
13139
13136
  __assign = Object.assign || function(t) {
13140
13137
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -13173,91 +13170,131 @@ var __read = (undefined && undefined.__read) || function (o, n) {
13173
13170
  }
13174
13171
  return ar;
13175
13172
  };
13176
- // @ts-nocheck
13177
-
13178
13173
 
13179
13174
 
13180
13175
 
13176
+ var SelectFiltered = function (_a) {
13177
+ var options = _a.options, placeholder = _a.placeholder, propFilter = _a.filter, propSetFilter = _a.setFilter, props = __rest(_a, ["options", "placeholder", "filter", "setFilter"]);
13178
+ var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''), 2), filter = _b[0], setFilter = _b[1];
13179
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.Select, __assign({ placeholder: placeholder, filter: propFilter || filter, options: options }, props, { anchor: function (params) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectFilteredAnchor__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ placeholder: placeholder, filter: propFilter || filter, onChangeFilter: propSetFilter || setFilter }, params))); } })));
13180
+ };
13181
13181
 
13182
13182
 
13183
+ /***/ }),
13183
13184
 
13185
+ /***/ "./src/components/Select/SelectFilteredAnchor.tsx":
13186
+ /*!********************************************************!*\
13187
+ !*** ./src/components/Select/SelectFilteredAnchor.tsx ***!
13188
+ \********************************************************/
13189
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13184
13190
 
13185
- var Addon = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ is: 'div', "rcx-select__addon": true, ref: ref }, props))); });
13186
- var Wrapper = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ is: 'div', "rcx-select__wrapper": true, ref: ref }, props))); });
13187
- var Focus = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ ref: ref, fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button' }, props))); });
13188
- var prevent = function (e) {
13189
- e.preventDefault();
13190
- e.stopPropagation();
13191
- e.nativeEvent.stopImmediatePropagation();
13192
- };
13193
- var useDidUpdate = function (func) {
13194
- var didMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(false);
13195
- var fn = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(func);
13196
- (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
13197
- if (didMount.current) {
13198
- fn();
13191
+ "use strict";
13192
+ __webpack_require__.r(__webpack_exports__);
13193
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13194
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13195
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
13196
+ var __assign = (undefined && undefined.__assign) || function () {
13197
+ __assign = Object.assign || function(t) {
13198
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
13199
+ s = arguments[i];
13200
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13201
+ t[p] = s[p];
13199
13202
  }
13200
- didMount.current = true;
13201
- }, [fn]);
13203
+ return t;
13204
+ };
13205
+ return __assign.apply(this, arguments);
13202
13206
  };
13203
- var PaginatedSelect = function (_a) {
13204
- var value = _a.value, withTitle = _a.withTitle, filter = _a.filter, _setFilter = _a.setFilter, error = _a.error, disabled = _a.disabled, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.anchor, Anchor = _c === void 0 ? Focus : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.renderOptions, _Options = _f === void 0 ? _OptionsPaginated__WEBPACK_IMPORTED_MODULE_6__.OptionsPaginated : _f, endReached = _a.endReached, props = __rest(_a, ["value", "withTitle", "filter", "setFilter", "error", "disabled", "options", "anchor", "onChange", "placeholder", "renderOptions", "endReached"]);
13205
- var _g = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value), 2), internalValue = _g[0], setInternalValue = _g[1];
13206
- var currentValue = value !== undefined ? value : internalValue;
13207
- var option = options.find(function (option) { return (option === null || option === void 0 ? void 0 : option.value) === currentValue; });
13208
- var _h = __read((0,_Options_useVisible__WEBPACK_IMPORTED_MODULE_5__.useVisible)(), 3), visible = _h[0], hide = _h[1], show = _h[2];
13209
- var internalChangedByClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (_a) {
13210
- var _b = __read(_a, 1), value = _b[0];
13211
- setInternalValue(value);
13212
- onChange(value);
13213
- hide();
13214
- });
13215
- var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
13216
- var _j = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useResizeObserver)(), containerRef = _j.ref, borderBoxSize = _j.borderBoxSize;
13217
- useDidUpdate([filter, internalValue]);
13218
- var valueLabel = option === null || option === void 0 ? void 0 : option.label;
13219
- var visibleText = (filter === undefined || visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].HIDDEN) &&
13220
- (valueLabel || placeholder || typeof placeholder === 'string');
13221
- var handleClick = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () {
13222
- if (visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE) {
13223
- return hide();
13207
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
13208
+ var t = {};
13209
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13210
+ t[p] = s[p];
13211
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13212
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
13213
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
13214
+ t[p[i]] = s[p[i]];
13224
13215
  }
13225
- if (ref && ref.current) {
13226
- ref.current.focus();
13227
- return show();
13216
+ return t;
13217
+ };
13218
+
13219
+
13220
+ var SelectFilteredAnchor = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectFilteredAnchor(_a, ref) {
13221
+ var _children = _a.children, filter = _a.filter, onChangeFilter = _a.onChangeFilter, placeholder = _a.placeholder, props = __rest(_a, ["children", "filter", "onChangeFilter", "placeholder"]);
13222
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_1__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onInput: function (e) {
13223
+ return onChangeFilter(e.currentTarget.value);
13224
+ } }, props, { "rcx-input-box--undecorated": true })));
13225
+ });
13226
+ /* harmony default export */ __webpack_exports__["default"] = (SelectFilteredAnchor);
13227
+
13228
+
13229
+ /***/ }),
13230
+
13231
+ /***/ "./src/components/Select/SelectFocus.tsx":
13232
+ /*!***********************************************!*\
13233
+ !*** ./src/components/Select/SelectFocus.tsx ***!
13234
+ \***********************************************/
13235
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13236
+
13237
+ "use strict";
13238
+ __webpack_require__.r(__webpack_exports__);
13239
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13240
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13241
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
13242
+ var __assign = (undefined && undefined.__assign) || function () {
13243
+ __assign = Object.assign || function(t) {
13244
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
13245
+ s = arguments[i];
13246
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13247
+ t[p] = s[p];
13228
13248
  }
13229
- });
13230
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, __assign({ "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () { return [error && 'invalid', disabled && 'disabled']; }, [error, disabled]) }, props),
13231
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
13232
- visibleText && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__.Box, { flexGrow: 1, is: 'span', mi: 'x4', "rcx-select__item": true, fontScale: 'p2m', color: valueLabel ? 'default' : 'hint' }, visibleText)),
13233
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Anchor, { disabled: disabled, "rcx-input-box--undecorated": true, filter: filter, ref: ref, "aria-haspopup": 'listbox', onClick: show, onBlur: hide }),
13234
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Addon, { mi: 'x4', children: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__.Icon, { name: visible === _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__["default"].VISIBLE
13235
- ? 'cross'
13236
- : 'chevron-down', size: 'x20' }) })),
13237
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PositionAnimated__WEBPACK_IMPORTED_MODULE_7__["default"], { visible: visible, anchor: containerRef },
13238
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Options, __assign({}, (withTitle && { title: withTitle }), { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: options, onSelect: internalChangedByClick, endReached: endReached, onMouseDown: prevent })))));
13249
+ return t;
13250
+ };
13251
+ return __assign.apply(this, arguments);
13239
13252
  };
13240
13253
 
13241
13254
 
13255
+ var SelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectFocus(props, ref) {
13256
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ ref: ref, fontScale: 'p2m', color: 'hint', "rcx-select__focus": true, is: 'button', type: 'button' }, props)));
13257
+ });
13258
+ /* harmony default export */ __webpack_exports__["default"] = (SelectFocus);
13259
+
13260
+
13242
13261
  /***/ }),
13243
13262
 
13244
- /***/ "./src/components/SelectPaginated/PaginatedSelectFiltered.tsx":
13245
- /*!********************************************************************!*\
13246
- !*** ./src/components/SelectPaginated/PaginatedSelectFiltered.tsx ***!
13247
- \********************************************************************/
13263
+ /***/ "./src/components/Select/index.ts":
13264
+ /*!****************************************!*\
13265
+ !*** ./src/components/Select/index.ts ***!
13266
+ \****************************************/
13248
13267
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13249
13268
 
13250
13269
  "use strict";
13251
13270
  __webpack_require__.r(__webpack_exports__);
13252
13271
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13253
- /* harmony export */ "PaginatedSelectFiltered": function() { return /* binding */ PaginatedSelectFiltered; }
13272
+ /* harmony export */ "Select": function() { return /* reexport safe */ _Select__WEBPACK_IMPORTED_MODULE_0__.Select; },
13273
+ /* harmony export */ "SelectFiltered": function() { return /* reexport safe */ _SelectFiltered__WEBPACK_IMPORTED_MODULE_1__.SelectFiltered; }
13254
13274
  /* harmony export */ });
13255
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@rocket.chat/fuselage-hooks");
13256
- /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
13257
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
13258
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
13259
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! . */ "./src/components/SelectPaginated/index.ts");
13260
- /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
13275
+ /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./src/components/Select/Select.tsx");
13276
+ /* harmony import */ var _SelectFiltered__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectFiltered */ "./src/components/Select/SelectFiltered.tsx");
13277
+
13278
+
13279
+
13280
+
13281
+ /***/ }),
13282
+
13283
+ /***/ "./src/components/SelectInput/SelectInput.tsx":
13284
+ /*!****************************************************!*\
13285
+ !*** ./src/components/SelectInput/SelectInput.tsx ***!
13286
+ \****************************************************/
13287
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13288
+
13289
+ "use strict";
13290
+ __webpack_require__.r(__webpack_exports__);
13291
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13292
+ /* harmony export */ "SelectInput": function() { return /* binding */ SelectInput; }
13293
+ /* harmony export */ });
13294
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13295
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13296
+ /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
13297
+ /* harmony import */ var _InputBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
13261
13298
  var __assign = (undefined && undefined.__assign) || function () {
13262
13299
  __assign = Object.assign || function(t) {
13263
13300
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -13299,45 +13336,41 @@ var __read = (undefined && undefined.__read) || function (o, n) {
13299
13336
 
13300
13337
 
13301
13338
 
13302
-
13303
- var PaginatedSelectFiltered = function (_a) {
13304
- var
13305
- // filter,
13306
- // setFilter,
13307
- options = _a.options, placeholder = _a.placeholder, props = __rest(_a, ["options", "placeholder"]);
13308
- var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''), 2), filter = _b[0], setFilter = _b[1];
13309
- var anchor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
13310
- var _children = _a.children, filter = _a.filter, _onChange = _a.onChange, props = __rest(_a, ["children", "filter", "onChange"]);
13311
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_3__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onChange: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (e) {
13312
- setFilter(e.currentTarget.value);
13313
- }) }, props, { "rcx-input-box--undecorated": true })));
13314
- }), []);
13315
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(___WEBPACK_IMPORTED_MODULE_2__.PaginatedSelect, __assign({ placeholder: undefined, filter: filter, options: options }, props, { anchor: anchor })));
13316
- };
13339
+ var SelectInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectInput(_a, ref) {
13340
+ var children = _a.children, multiple = _a.multiple, placeholder = _a.placeholder, onChange = _a.onChange, props = __rest(_a, ["children", "multiple", "placeholder", "onChange"]);
13341
+ var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!props.value && !props.defaultValue), 2), isPlaceholderVisible = _b[0], setPlaceholderVisible = _b[1];
13342
+ var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {
13343
+ setPlaceholderVisible(!event.currentTarget.value);
13344
+ onChange === null || onChange === void 0 ? void 0 : onChange.call(event.currentTarget, event);
13345
+ }, [onChange]);
13346
+ if (multiple) {
13347
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox, __assign({ children: children }, props, { multiple: true, type: 'select', onChange: handleChange })));
13348
+ }
13349
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox, __assign({ placeholderVisible: isPlaceholderVisible ? !!placeholder : undefined, ref: ref }, props, { addon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_1__.Icon, { name: 'chevron-down', size: 'x20' }), type: 'select', onChange: handleChange }),
13350
+ placeholder && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_2__.InputBox.Placeholder, { value: '' }, placeholder)),
13351
+ children));
13352
+ });
13317
13353
 
13318
13354
 
13319
13355
  /***/ }),
13320
13356
 
13321
- /***/ "./src/components/SelectPaginated/index.ts":
13322
- /*!*************************************************!*\
13323
- !*** ./src/components/SelectPaginated/index.ts ***!
13324
- \*************************************************/
13357
+ /***/ "./src/components/SelectInput/index.ts":
13358
+ /*!*********************************************!*\
13359
+ !*** ./src/components/SelectInput/index.ts ***!
13360
+ \*********************************************/
13325
13361
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13326
13362
 
13327
13363
  "use strict";
13328
13364
  __webpack_require__.r(__webpack_exports__);
13329
13365
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13330
- /* harmony export */ "PaginatedSelect": function() { return /* reexport safe */ _PaginatedSelect__WEBPACK_IMPORTED_MODULE_0__.PaginatedSelect; },
13331
- /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _PaginatedSelectFiltered__WEBPACK_IMPORTED_MODULE_1__.PaginatedSelectFiltered; },
13332
- /* harmony export */ "PaginatedMultiSelect": function() { return /* reexport safe */ _PaginatedMultiSelect__WEBPACK_IMPORTED_MODULE_2__.PaginatedMultiSelect; },
13333
- /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* reexport safe */ _PaginatedMultiSelect__WEBPACK_IMPORTED_MODULE_2__.PaginatedMultiSelectFiltered; }
13366
+ /* harmony export */ "SelectInput": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_1__.SelectInput; },
13367
+ /* harmony export */ "SelectInputOption": function() { return /* binding */ SelectInputOption; }
13334
13368
  /* harmony export */ });
13335
- /* harmony import */ var _PaginatedSelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PaginatedSelect */ "./src/components/SelectPaginated/PaginatedSelect.tsx");
13336
- /* harmony import */ var _PaginatedSelectFiltered__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaginatedSelectFiltered */ "./src/components/SelectPaginated/PaginatedSelectFiltered.tsx");
13337
- /* harmony import */ var _PaginatedMultiSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PaginatedMultiSelect */ "./src/components/SelectPaginated/PaginatedMultiSelect.tsx");
13338
-
13369
+ /* harmony import */ var _InputBox_Option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../InputBox/Option */ "./src/components/InputBox/Option.tsx");
13370
+ /* harmony import */ var _SelectInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/SelectInput.tsx");
13339
13371
 
13340
13372
 
13373
+ var SelectInputOption = _InputBox_Option__WEBPACK_IMPORTED_MODULE_0__.Option;
13341
13374
 
13342
13375
 
13343
13376
  /***/ }),
@@ -13610,7 +13643,7 @@ __webpack_require__.r(__webpack_exports__);
13610
13643
  /* harmony export */ });
13611
13644
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13612
13645
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13613
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
13646
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
13614
13647
  /* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Divider */ "./src/components/Divider/index.tsx");
13615
13648
  /* harmony import */ var _SidebarActions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SidebarActions */ "./src/components/Sidebar/SidebarActions.tsx");
13616
13649
  var __assign = (undefined && undefined.__assign) || function () {
@@ -13670,7 +13703,7 @@ var TopBarAvatar = Avatar;
13670
13703
  var TopBarActions = _SidebarActions__WEBPACK_IMPORTED_MODULE_3__.SidebarActions;
13671
13704
  var TopBarAction = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SidebarActions__WEBPACK_IMPORTED_MODULE_3__.SidebarAction, __assign({ ghost: true }, props))); };
13672
13705
  var TopBarDivider = function () { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider, { mbs: 'neg-x2', mbe: 0 }); };
13673
- var TopBarTitle = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-sidebar-top-bar__title": true, withTruncatedText: true }, props))); };
13706
+ var TopBarTitle = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-sidebar-top-bar__title": true, withTruncatedText: true }, props))); };
13674
13707
  /* harmony default export */ __webpack_exports__["default"] = (Object.assign(TopBar, {
13675
13708
  Section: TopBarSection,
13676
13709
  ToolBox: TopBarToolBox,
@@ -13723,7 +13756,7 @@ __webpack_require__.r(__webpack_exports__);
13723
13756
  /* harmony export */ });
13724
13757
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13725
13758
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13726
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! .. */ "./src/components/index.ts");
13759
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
13727
13760
  /* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Item */ "./src/components/Sidebar/Item.tsx");
13728
13761
  /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx");
13729
13762
  /* harmony import */ var _TopBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar.tsx");
@@ -13744,7 +13777,7 @@ var __assign = (undefined && undefined.__assign) || function () {
13744
13777
 
13745
13778
 
13746
13779
 
13747
- var Sidebar = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ "rcx-sidebar": true }, props)); };
13780
+ var Sidebar = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-sidebar": true }, props)); };
13748
13781
  /* harmony default export */ __webpack_exports__["default"] = (Object.assign(Sidebar, {
13749
13782
  TopBar: _TopBar__WEBPACK_IMPORTED_MODULE_4__["default"],
13750
13783
  Item: _Item__WEBPACK_IMPORTED_MODULE_2__["default"],
@@ -13774,7 +13807,7 @@ __webpack_require__.r(__webpack_exports__);
13774
13807
  /* harmony export */ });
13775
13808
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13776
13809
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13777
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
13810
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
13778
13811
  var __assign = (undefined && undefined.__assign) || function () {
13779
13812
  __assign = Object.assign || function(t) {
13780
13813
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -13801,7 +13834,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
13801
13834
 
13802
13835
  var Skeleton = function (_a) {
13803
13836
  var _b = _a.variant, variant = _b === void 0 ? 'text' : _b, props = __rest(_a, ["variant"]);
13804
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'span', "rcx-skeleton": true, "rcx-skeleton--text": variant === 'text', "rcx-skeleton--rect": variant === 'rect' }, props)));
13837
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'span', "rcx-skeleton": true, "rcx-skeleton--text": variant === 'text', "rcx-skeleton--rect": variant === 'rect' }, props)));
13805
13838
  };
13806
13839
 
13807
13840
 
@@ -14202,7 +14235,7 @@ __webpack_require__.r(__webpack_exports__);
14202
14235
  /* harmony export */ });
14203
14236
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14204
14237
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14205
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14238
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14206
14239
  /* harmony import */ var _TableSelection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableSelection */ "./src/components/Table/TableSelection.tsx");
14207
14240
  /* harmony import */ var _TableSelectionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableSelectionButton */ "./src/components/Table/TableSelectionButton.tsx");
14208
14241
  var __assign = (undefined && undefined.__assign) || function () {
@@ -14238,8 +14271,8 @@ var style = {
14238
14271
  };
14239
14272
  var Table = function (_a) {
14240
14273
  var striped = _a.striped, sticky = _a.sticky, _b = _a.fixed, fixed = _b === void 0 ? false : _b, props = __rest(_a, ["striped", "sticky", "fixed"]);
14241
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { "rcx-table__wrapper": true },
14242
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'table', "rcx-table": true, "rcx-table--fixed": fixed, "rcx-table--sticky": sticky, "rcx-table--striped": striped }, props))));
14274
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { "rcx-table__wrapper": true },
14275
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'table', "rcx-table": true, "rcx-table--fixed": fixed, "rcx-table--sticky": sticky, "rcx-table--striped": striped }, props))));
14243
14276
  };
14244
14277
  Table.Selection = _TableSelection__WEBPACK_IMPORTED_MODULE_2__.TableSelection;
14245
14278
  Table.Button = _TableSelectionButton__WEBPACK_IMPORTED_MODULE_3__.TableSelectionButton;
@@ -14260,7 +14293,7 @@ __webpack_require__.r(__webpack_exports__);
14260
14293
  /* harmony export */ });
14261
14294
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14262
14295
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14263
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14296
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14264
14297
  var __assign = (undefined && undefined.__assign) || function () {
14265
14298
  __assign = Object.assign || function(t) {
14266
14299
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -14274,7 +14307,7 @@ var __assign = (undefined && undefined.__assign) || function () {
14274
14307
  };
14275
14308
 
14276
14309
 
14277
- var TableBody = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'tbody', "rcx-table__body": true }, props))); };
14310
+ var TableBody = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'tbody', "rcx-table__body": true }, props))); };
14278
14311
 
14279
14312
 
14280
14313
  /***/ }),
@@ -14292,7 +14325,7 @@ __webpack_require__.r(__webpack_exports__);
14292
14325
  /* harmony export */ });
14293
14326
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14294
14327
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14295
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14328
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14296
14329
  /* harmony import */ var _TableHead__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableHead */ "./src/components/Table/TableHead.tsx");
14297
14330
  var __assign = (undefined && undefined.__assign) || function () {
14298
14331
  __assign = Object.assign || function(t) {
@@ -14322,7 +14355,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14322
14355
  var TableCell = function (_a) {
14323
14356
  var align = _a.align, clickable = _a.clickable, props = __rest(_a, ["align", "clickable"]);
14324
14357
  var isInsideHead = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_TableHead__WEBPACK_IMPORTED_MODULE_2__.TableHeadContext);
14325
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: isInsideHead ? 'th' : 'td', "rcx-table__cell": true, "rcx-table__cell--align": align, "rcx-table__cell--header": isInsideHead, "rcx-table__cell--clickable": clickable }, props)));
14358
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: isInsideHead ? 'th' : 'td', "rcx-table__cell": true, "rcx-table__cell--align": align, "rcx-table__cell--header": isInsideHead, "rcx-table__cell--clickable": clickable }, props)));
14326
14359
  };
14327
14360
 
14328
14361
 
@@ -14341,7 +14374,7 @@ __webpack_require__.r(__webpack_exports__);
14341
14374
  /* harmony export */ });
14342
14375
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14343
14376
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14344
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14377
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14345
14378
  var __assign = (undefined && undefined.__assign) || function () {
14346
14379
  __assign = Object.assign || function(t) {
14347
14380
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -14355,7 +14388,7 @@ var __assign = (undefined && undefined.__assign) || function () {
14355
14388
  };
14356
14389
 
14357
14390
 
14358
- var TableFoot = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'tfoot', "rcx-table__foot": true }, props))); };
14391
+ var TableFoot = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'tfoot', "rcx-table__foot": true }, props))); };
14359
14392
 
14360
14393
 
14361
14394
  /***/ }),
@@ -14374,7 +14407,7 @@ __webpack_require__.r(__webpack_exports__);
14374
14407
  /* harmony export */ });
14375
14408
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14376
14409
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14377
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14410
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14378
14411
  var __assign = (undefined && undefined.__assign) || function () {
14379
14412
  __assign = Object.assign || function(t) {
14380
14413
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -14390,7 +14423,7 @@ var __assign = (undefined && undefined.__assign) || function () {
14390
14423
 
14391
14424
  var TableHeadContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(false);
14392
14425
  var TableHead = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableHeadContext.Provider, { value: true },
14393
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'thead', "rcx-table__head": true }, props)))); };
14426
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'thead', "rcx-table__head": true }, props)))); };
14394
14427
 
14395
14428
 
14396
14429
  /***/ }),
@@ -14408,7 +14441,7 @@ __webpack_require__.r(__webpack_exports__);
14408
14441
  /* harmony export */ });
14409
14442
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14410
14443
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14411
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14444
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14412
14445
  var __assign = (undefined && undefined.__assign) || function () {
14413
14446
  __assign = Object.assign || function(t) {
14414
14447
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -14435,7 +14468,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14435
14468
 
14436
14469
  var TableRow = function (_a) {
14437
14470
  var action = _a.action, selected = _a.selected, props = __rest(_a, ["action", "selected"]);
14438
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'tr', "rcx-table__row": true, "rcx-table__row--selected": selected, "rcx-table__row--action": action }, props)));
14471
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'tr', "rcx-table__row": true, "rcx-table__row--selected": selected, "rcx-table__row--action": action }, props)));
14439
14472
  };
14440
14473
 
14441
14474
 
@@ -14454,7 +14487,7 @@ __webpack_require__.r(__webpack_exports__);
14454
14487
  /* harmony export */ });
14455
14488
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14456
14489
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14457
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14490
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14458
14491
  /* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
14459
14492
  /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Table */ "./src/components/Table/Table.tsx");
14460
14493
  var __assign = (undefined && undefined.__assign) || function () {
@@ -14485,9 +14518,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14485
14518
 
14486
14519
  var TableSelection = function (_a) {
14487
14520
  var children = _a.children, text = _a.text, props = __rest(_a, ["children", "text"]);
14488
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ color: 'alternative', "rcx-table__selection": true, display: 'flex', alignItems: 'center', justifyContent: 'space-between' }, props, { pi: 'x24' }),
14489
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { fontScale: 'p2m', mb: 'x16', flexShrink: 1, style: _Table__WEBPACK_IMPORTED_MODULE_3__.style }, text),
14490
- children && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { mi: 'neg-x8', fontScale: 'p2m', flexShrink: 0 },
14521
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ color: 'alternative', "rcx-table__selection": true, display: 'flex', alignItems: 'center', justifyContent: 'space-between' }, props, { pi: 'x24' }),
14522
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { fontScale: 'p2m', mb: 'x16', flexShrink: 1, style: _Table__WEBPACK_IMPORTED_MODULE_3__.style }, text),
14523
+ children && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { mi: 'neg-x8', fontScale: 'p2m', flexShrink: 0 },
14491
14524
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_2__["default"], { inline: 'x4' }, children)))));
14492
14525
  };
14493
14526
 
@@ -14598,7 +14631,7 @@ __webpack_require__.r(__webpack_exports__);
14598
14631
  /* harmony export */ });
14599
14632
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14600
14633
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14601
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14634
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14602
14635
  /* harmony import */ var _TabsItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabsItem */ "./src/components/Tabs/TabsItem.tsx");
14603
14636
  var __assign = (undefined && undefined.__assign) || function () {
14604
14637
  __assign = Object.assign || function(t) {
@@ -14627,9 +14660,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14627
14660
 
14628
14661
  function Tabs(_a) {
14629
14662
  var children = _a.children, props = __rest(_a, ["children"]);
14630
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: 'div', "rcx-tabs": true }, props),
14631
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'div', "rcx-tabs__scroll-box": true },
14632
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'div', "rcx-tabs__wrapper": true, children: children, role: 'tablist' }))));
14663
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'div', "rcx-tabs": true }, props),
14664
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'div', "rcx-tabs__scroll-box": true },
14665
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'div', "rcx-tabs__wrapper": true, children: children, role: 'tablist' }))));
14633
14666
  }
14634
14667
  Tabs.Item = _TabsItem__WEBPACK_IMPORTED_MODULE_2__.TabsItem;
14635
14668
 
@@ -14649,7 +14682,7 @@ __webpack_require__.r(__webpack_exports__);
14649
14682
  /* harmony export */ });
14650
14683
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14651
14684
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14652
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14685
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14653
14686
  var __assign = (undefined && undefined.__assign) || function () {
14654
14687
  __assign = Object.assign || function(t) {
14655
14688
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -14676,7 +14709,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14676
14709
 
14677
14710
  var TabsItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function TabsItem(_a, ref) {
14678
14711
  var selected = _a.selected, disabled = _a.disabled, props = __rest(_a, ["selected", "disabled"]);
14679
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ 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)));
14712
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ 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)));
14680
14713
  });
14681
14714
 
14682
14715
 
@@ -14939,7 +14972,7 @@ __webpack_require__.r(__webpack_exports__);
14939
14972
  /* harmony import */ var _rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rocket.chat/css-in-js */ "../css-in-js/dist/index.module.js");
14940
14973
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
14941
14974
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
14942
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
14975
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
14943
14976
  var __makeTemplateObject = (undefined && undefined.__makeTemplateObject) || function (cooked, raw) {
14944
14977
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
14945
14978
  return cooked;
@@ -14971,11 +15004,11 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
14971
15004
 
14972
15005
  function Circle(_a) {
14973
15006
  var disabled = _a.disabled, circleCount = _a.circleCount, iteration = _a.iteration, inheritColor = _a.inheritColor, props = __rest(_a, ["disabled", "circleCount", "iteration", "inheritColor"]);
14974
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ is: 'span', className: (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation-duration: ", "s;\n animation-delay: ", "s;\n "], ["\n animation-duration: ", "s;\n animation-delay: ", "s;\n "])), circleCount * 0.466, iteration * 0.16), "rcx-throbber__circle": true, "rcx-throbber__circle--disabled": disabled, "rcx-throbber__circle--inherit-color": inheritColor }, props)));
15007
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ is: 'span', className: (0,_rocket_chat_css_in_js__WEBPACK_IMPORTED_MODULE_0__.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation-duration: ", "s;\n animation-delay: ", "s;\n "], ["\n animation-duration: ", "s;\n animation-delay: ", "s;\n "])), circleCount * 0.466, iteration * 0.16), "rcx-throbber__circle": true, "rcx-throbber__circle--disabled": disabled, "rcx-throbber__circle--inherit-color": inheritColor }, props)));
14975
15008
  }
14976
15009
  var Throbber = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Throbber(_a, ref) {
14977
15010
  var disabled = _a.disabled, _b = _a.size, size = _b === void 0 ? 'x16' : _b, _c = _a.circleCount, circleCount = _c === void 0 ? 3 : _c, inheritColor = _a.inheritColor, props = __rest(_a, ["disabled", "size", "circleCount", "inheritColor"]);
14978
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ "rcx-throbber": true, ref: ref }, props), Array.from({ length: circleCount || 3 }, function (_, iteration) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Circle, { key: iteration, circleCount: circleCount, iteration: iteration, disabled: !!disabled, size: size, inheritColor: !!inheritColor })); })));
15011
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ "rcx-throbber": true, ref: ref }, props), Array.from({ length: circleCount || 3 }, function (_, iteration) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Circle, { key: iteration, circleCount: circleCount, iteration: iteration, disabled: !!disabled, size: size, inheritColor: !!inheritColor })); })));
14979
15012
  });
14980
15013
  var templateObject_1;
14981
15014
 
@@ -15010,7 +15043,7 @@ __webpack_require__.r(__webpack_exports__);
15010
15043
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15011
15044
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15012
15045
  /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
15013
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
15046
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
15014
15047
  /* harmony import */ var _Tile_styles_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tile.styles.scss */ "./src/components/Tile/Tile.styles.scss");
15015
15048
  var __assign = (undefined && undefined.__assign) || function () {
15016
15049
  __assign = Object.assign || function(t) {
@@ -15042,7 +15075,7 @@ var Tile = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Tile(_a, r
15042
15075
  var _b = _a.elevation, elevation = _b === void 0 ? '1' : _b, _c = _a.padding, padding = _c === void 0 ? 'x16' : _c, props = __rest(_a, ["elevation", "padding"]);
15043
15076
  (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
15044
15077
  (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)(_Tile_styles_scss__WEBPACK_IMPORTED_MODULE_3__["default"]);
15045
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ ref: ref, "rcx-tile": true, "rcx-tile--elevation": elevation, padding: padding }, props)));
15078
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ ref: ref, "rcx-tile": true, "rcx-tile--elevation": elevation, padding: padding }, props)));
15046
15079
  });
15047
15080
  /* harmony default export */ __webpack_exports__["default"] = (Tile);
15048
15081
 
@@ -15079,7 +15112,7 @@ __webpack_require__.r(__webpack_exports__);
15079
15112
  /* harmony export */ });
15080
15113
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15081
15114
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15082
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
15115
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
15083
15116
  /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
15084
15117
  var __assign = (undefined && undefined.__assign) || function () {
15085
15118
  __assign = Object.assign || function(t) {
@@ -15108,9 +15141,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
15108
15141
 
15109
15142
  var ToggleSwitch = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ToggleSwitch(_a, ref) {
15110
15143
  var autoComplete = _a.autoComplete, checked = _a.checked, defaultChecked = _a.defaultChecked, disabled = _a.disabled, form = _a.form, id = _a.id, name = _a.name, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, qa = _a.qa, dataQa = _a["data-qa"], onChange = _a.onChange, onInput = _a.onInput, onInvalid = _a.onInvalid, props = __rest(_a, ["autoComplete", "checked", "defaultChecked", "disabled", "form", "id", "name", "required", "tabIndex", "value", "qa", 'data-qa', "onChange", "onInput", "onInvalid"]);
15111
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-toggle-switch": true }, props),
15112
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'input', "rcx-toggle-switch__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'checkbox', value: value, "data-qa": dataQa || qa, ref: ref, onChange: onChange, onInput: onInput, onInvalid: onInvalid }),
15113
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__.Box, { is: 'i', "rcx-toggle-switch__fake": true, "aria-hidden": 'true' })));
15144
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: _Label__WEBPACK_IMPORTED_MODULE_2__.Label, "rcx-toggle-switch": true }, props),
15145
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'input', "rcx-toggle-switch__input": true, autoComplete: autoComplete, checked: checked, defaultChecked: defaultChecked, disabled: disabled, form: form, id: id, name: name, required: required, tabIndex: tabIndex, type: 'checkbox', value: value, "data-qa": dataQa || qa, ref: ref, onChange: onChange, onInput: onInput, onInvalid: onInvalid }),
15146
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { is: 'i', "rcx-toggle-switch__fake": true, "aria-hidden": 'true' })));
15114
15147
  });
15115
15148
 
15116
15149
 
@@ -15144,7 +15177,7 @@ __webpack_require__.r(__webpack_exports__);
15144
15177
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
15145
15178
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15146
15179
  /* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
15147
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.js");
15180
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
15148
15181
  /* harmony import */ var _Tooltip_styles_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tooltip.styles.scss */ "./src/components/Tooltip/Tooltip.styles.scss");
15149
15182
  var __assign = (undefined && undefined.__assign) || function () {
15150
15183
  __assign = Object.assign || function(t) {
@@ -15202,7 +15235,7 @@ var Tooltip = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Tooltip
15202
15235
  (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
15203
15236
  (0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)(_Tooltip_styles_scss__WEBPACK_IMPORTED_MODULE_3__["default"]);
15204
15237
  var _b = __read(parsePlacement(placement), 2), direction = _b[0], position = _b[1];
15205
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__.Box, __assign({ is: 'div', ref: ref, "rcx-tooltip": true, "rcx-tooltip--dir": direction, "rcx-tooltip--pos": position }, props)));
15238
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__["default"], __assign({ is: 'div', ref: ref, "rcx-tooltip": true, "rcx-tooltip--dir": direction, "rcx-tooltip--pos": position }, props)));
15206
15239
  });
15207
15240
  /* harmony default export */ __webpack_exports__["default"] = (Tooltip);
15208
15241
 
@@ -15290,7 +15323,7 @@ __webpack_require__.r(__webpack_exports__);
15290
15323
  /* harmony export */ "Avatar": function() { return /* reexport safe */ _Avatar__WEBPACK_IMPORTED_MODULE_3__.Avatar; },
15291
15324
  /* harmony export */ "Badge": function() { return /* reexport safe */ _Badge__WEBPACK_IMPORTED_MODULE_4__.Badge; },
15292
15325
  /* harmony export */ "Banner": function() { return /* reexport safe */ _Banner__WEBPACK_IMPORTED_MODULE_5__["default"]; },
15293
- /* harmony export */ "Box": function() { return /* reexport safe */ _Box__WEBPACK_IMPORTED_MODULE_6__.Box; },
15326
+ /* harmony export */ "Box": function() { return /* reexport safe */ _Box__WEBPACK_IMPORTED_MODULE_6__["default"]; },
15294
15327
  /* harmony export */ "useArrayLikeClassNameProp": function() { return /* reexport safe */ _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_7__.useArrayLikeClassNameProp; },
15295
15328
  /* harmony export */ "Button": function() { return /* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_8__["default"]; },
15296
15329
  /* harmony export */ "ActionButton": function() { return /* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_8__.ActionButton; },
@@ -15405,10 +15438,8 @@ __webpack_require__.r(__webpack_exports__);
15405
15438
  /* harmony export */ "SearchInput": function() { return /* reexport safe */ _SearchInput__WEBPACK_IMPORTED_MODULE_41__.SearchInput; },
15406
15439
  /* harmony export */ "Select": function() { return /* reexport safe */ _Select__WEBPACK_IMPORTED_MODULE_42__.Select; },
15407
15440
  /* harmony export */ "SelectFiltered": function() { return /* reexport safe */ _Select__WEBPACK_IMPORTED_MODULE_42__.SelectFiltered; },
15408
- /* harmony export */ "PaginatedMultiSelect": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_43__.PaginatedMultiSelect; },
15409
- /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_43__.PaginatedMultiSelectFiltered; },
15410
- /* harmony export */ "PaginatedSelect": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_43__.PaginatedSelect; },
15411
- /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_43__.PaginatedSelectFiltered; },
15441
+ /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* reexport safe */ _PaginatedSelect__WEBPACK_IMPORTED_MODULE_43__.PaginatedMultiSelectFiltered; },
15442
+ /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _PaginatedSelect__WEBPACK_IMPORTED_MODULE_43__.PaginatedSelectFiltered; },
15412
15443
  /* harmony export */ "SelectInput": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_44__.SelectInput; },
15413
15444
  /* harmony export */ "SelectInputOption": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_44__.SelectInputOption; },
15414
15445
  /* harmony export */ "Sidebar": function() { return /* reexport safe */ _Sidebar__WEBPACK_IMPORTED_MODULE_45__["default"]; },
@@ -15473,7 +15504,7 @@ __webpack_require__.r(__webpack_exports__);
15473
15504
  /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Avatar */ "./src/components/Avatar/index.tsx");
15474
15505
  /* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Badge */ "./src/components/Badge/index.tsx");
15475
15506
  /* harmony import */ var _Banner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Banner */ "./src/components/Banner/index.ts");
15476
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Box */ "./src/components/Box/index.js");
15507
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Box */ "./src/components/Box/index.tsx");
15477
15508
  /* harmony import */ var _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
15478
15509
  /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Button */ "./src/components/Button/index.ts");
15479
15510
  /* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ButtonGroup */ "./src/components/ButtonGroup/index.ts");
@@ -15510,7 +15541,7 @@ __webpack_require__.r(__webpack_exports__);
15510
15541
  /* harmony import */ var _Scrollable__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Scrollable */ "./src/components/Scrollable/index.ts");
15511
15542
  /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./SearchInput */ "./src/components/SearchInput/index.tsx");
15512
15543
  /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Select */ "./src/components/Select/index.ts");
15513
- /* harmony import */ var _SelectPaginated__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./SelectPaginated */ "./src/components/SelectPaginated/index.ts");
15544
+ /* harmony import */ var _PaginatedSelect__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./PaginatedSelect */ "./src/components/PaginatedSelect/index.ts");
15514
15545
  /* harmony import */ var _SelectInput__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/index.ts");
15515
15546
  /* harmony import */ var _Sidebar__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./Sidebar */ "./src/components/Sidebar/index.tsx");
15516
15547
  /* harmony import */ var _Skeleton__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./Skeleton */ "./src/components/Skeleton/index.tsx");
@@ -15985,6 +16016,10 @@ var useBoxOnlyProps = function (props) {
15985
16016
  props.className = (0,_helpers_prependClassName__WEBPACK_IMPORTED_MODULE_0__.prependClassName)(props.className, 'rcx-box--with-block-elements');
15986
16017
  }
15987
16018
  }
16019
+ if (props.htmlSize) {
16020
+ props.size = props.htmlSize;
16021
+ delete props.htmlSize;
16022
+ }
15988
16023
  delete props.withRichContent;
15989
16024
  props.className = (0,_helpers_prependClassName__WEBPACK_IMPORTED_MODULE_0__.prependClassName)(props.className, 'rcx-box rcx-box--full');
15990
16025
  return props;
@@ -16171,9 +16206,7 @@ __webpack_require__.r(__webpack_exports__);
16171
16206
  /* harmony export */ "OptionSkeleton": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.OptionSkeleton; },
16172
16207
  /* harmony export */ "OptionTitle": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.OptionTitle; },
16173
16208
  /* harmony export */ "Options": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Options; },
16174
- /* harmony export */ "PaginatedMultiSelect": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PaginatedMultiSelect; },
16175
16209
  /* harmony export */ "PaginatedMultiSelectFiltered": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PaginatedMultiSelectFiltered; },
16176
- /* harmony export */ "PaginatedSelect": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PaginatedSelect; },
16177
16210
  /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PaginatedSelectFiltered; },
16178
16211
  /* harmony export */ "Pagination": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Pagination; },
16179
16212
  /* harmony export */ "PasswordInput": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PasswordInput; },
@@ -16270,7 +16303,7 @@ __webpack_require__.r(__webpack_exports__);
16270
16303
 
16271
16304
 
16272
16305
  if (true) {
16273
- console.log("fuselage: " + "0.31.5");
16306
+ console.log("fuselage: " + "0.31.6");
16274
16307
  }
16275
16308
 
16276
16309