@rocket.chat/fuselage 0.31.6 → 0.32.0-dev.2
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.
- package/CHANGELOG.md +705 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +19 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/BoxTransforms.d.ts.map +1 -1
- package/dist/components/Box/index.d.ts +2 -188
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/stylingProps.d.ts +131 -0
- package/dist/components/Box/stylingProps.d.ts.map +1 -0
- package/dist/components/Box/useStylingProps.d.ts +5 -0
- package/dist/components/Box/useStylingProps.d.ts.map +1 -0
- package/dist/components/Box/withBoxStyling.d.ts +3 -0
- package/dist/components/Box/withBoxStyling.d.ts.map +1 -0
- package/dist/components/Button/ActionButton.d.ts +5 -2
- package/dist/components/Button/ActionButton.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +6 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/Callout/Callout.d.ts +1 -1
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.d.ts +5 -2
- package/dist/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/dist/components/Chevron/Chevron.d.ts +1 -1
- package/dist/components/Chevron/Chevron.d.ts.map +1 -1
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +8 -4
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/EmailInput/EmailInput.d.ts +6 -3
- package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/FieldDescription.d.ts +1 -1
- package/dist/components/Field/FieldDescription.d.ts.map +1 -1
- package/dist/components/Field/FieldError.d.ts +1 -1
- package/dist/components/Field/FieldError.d.ts.map +1 -1
- package/dist/components/Field/FieldHint.d.ts +1 -1
- package/dist/components/Field/FieldHint.d.ts.map +1 -1
- package/dist/components/Field/FieldLabel.d.ts +1 -1
- package/dist/components/Field/FieldLabel.d.ts.map +1 -1
- package/dist/components/Field/FieldLink.d.ts +1 -1
- package/dist/components/Field/FieldLink.d.ts.map +1 -1
- package/dist/components/Field/FieldRow.d.ts +1 -1
- package/dist/components/Field/FieldRow.d.ts.map +1 -1
- package/dist/components/Field/index.d.ts +24 -6
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts +5 -2
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/GridItem.d.ts +1 -1
- package/dist/components/Grid/GridItem.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +6 -3
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/InputBox/Addon.d.ts +4 -1
- package/dist/components/InputBox/Addon.d.ts.map +1 -1
- package/dist/components/InputBox/Input.d.ts +4 -1
- package/dist/components/InputBox/Input.d.ts.map +1 -1
- package/dist/components/InputBox/InputBox.d.ts +1 -1
- package/dist/components/InputBox/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox/InputBoxSkeleton.d.ts +1 -1
- package/dist/components/InputBox/InputBoxSkeleton.d.ts.map +1 -1
- package/dist/components/InputBox/Option.d.ts +4 -1
- package/dist/components/InputBox/Option.d.ts.map +1 -1
- package/dist/components/InputBox/Placeholder.d.ts +4 -1
- package/dist/components/InputBox/Placeholder.d.ts.map +1 -1
- package/dist/components/InputBox/Wrapper.d.ts +1 -1
- package/dist/components/InputBox/Wrapper.d.ts.map +1 -1
- package/dist/components/InputBox/index.d.ts +45 -12
- package/dist/components/InputBox/index.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Margins/Margins.d.ts +1 -1
- package/dist/components/Margins/Margins.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Message/MessageBlock.d.ts +1 -1
- package/dist/components/Message/MessageBlock.d.ts.map +1 -1
- package/dist/components/Message/MessageMetrics/index.d.ts +5 -2
- package/dist/components/Message/MessageMetrics/index.d.ts.map +1 -1
- package/dist/components/Message/MessageReactions/index.d.ts +4 -1
- package/dist/components/Message/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbox/MessageToolboxItem.d.ts +7 -4
- package/dist/components/Message/MessageToolbox/MessageToolboxItem.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbox/index.d.ts +18 -9
- package/dist/components/Message/MessageToolbox/index.d.ts.map +1 -1
- package/dist/components/Message/index.d.ts +27 -12
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/ModalBackdrop.d.ts +1 -1
- package/dist/components/Modal/ModalBackdrop.d.ts.map +1 -1
- package/dist/components/Modal/ModalClose.d.ts +1 -1
- package/dist/components/Modal/ModalClose.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.d.ts +1 -1
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalFooter.d.ts +1 -1
- package/dist/components/Modal/ModalFooter.d.ts.map +1 -1
- package/dist/components/Modal/ModalHeader.d.ts +1 -1
- package/dist/components/Modal/ModalHeader.d.ts.map +1 -1
- package/dist/components/Modal/ModalTitle.d.ts +1 -1
- package/dist/components/Modal/ModalTitle.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +30 -9
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +6 -3
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/SelectedOptions.d.ts +4 -3
- package/dist/components/MultiSelect/SelectedOptions.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Options/CheckOption.d.ts +1 -1
- package/dist/components/Options/Option/Option.d.ts +1 -1
- package/dist/components/Options/Option/Option.d.ts.map +1 -1
- package/dist/components/Options/Option/index.d.ts +9 -6
- package/dist/components/Options/Option/index.d.ts.map +1 -1
- package/dist/components/Options/Options.d.ts +5 -2
- package/dist/components/Options/Options.d.ts.map +1 -1
- package/dist/components/Options/index.d.ts +5 -2
- package/dist/components/Options/index.d.ts.map +1 -1
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +6 -3
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelect.d.ts +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelect.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelectAddon.d.ts +4 -1
- package/dist/components/PaginatedSelect/PaginatedSelectAddon.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelectFocus.d.ts +4 -1
- package/dist/components/PaginatedSelect/PaginatedSelectFocus.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts +4 -1
- package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/Position/Position.d.ts +1 -1
- package/dist/components/Position/Position.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +6 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/RadioButton/RadioButton.d.ts +5 -2
- package/dist/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +6 -3
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +7 -4
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/SelectAddon.d.ts +4 -1
- package/dist/components/Select/SelectAddon.d.ts.map +1 -1
- package/dist/components/Select/SelectFocus.d.ts +4 -1
- package/dist/components/Select/SelectFocus.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +6 -3
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/SelectInput/index.d.ts +4 -1
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/Sidebar/Item.d.ts +15 -6
- package/dist/components/Sidebar/Item.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar.d.ts +14 -5
- package/dist/components/Sidebar/TopBar.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +26 -11
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +9 -3
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/TableRow.d.ts +1 -1
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/TableSelection.d.ts +1 -1
- package/dist/components/Table/TableSelection.d.ts.map +1 -1
- package/dist/components/Table/TableSelectionButton.d.ts +1 -1
- package/dist/components/Table/TableSelectionButton.d.ts.map +1 -1
- package/dist/components/Table/index.d.ts +16 -4
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +6 -3
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/TabsItem.d.ts +5 -2
- package/dist/components/Tabs/TabsItem.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +6 -3
- package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextArea.d.ts +6 -3
- package/dist/components/TextAreaInput/TextArea.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.d.ts +6 -3
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/Throbber/Throbber.d.ts +5 -2
- package/dist/components/Throbber/Throbber.d.ts.map +1 -1
- package/dist/components/Tile/Tile.d.ts +5 -2
- package/dist/components/Tile/Tile.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +5 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +5 -2
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/UrlInput/UrlInput.d.ts +1 -1
- package/dist/components/UrlInput/UrlInput.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/fuselage.development.js +679 -718
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/dist/hooks/useArrayLikeClassNameProp.d.ts +1 -1
- package/dist/hooks/useArrayLikeClassNameProp.d.ts.map +1 -1
- package/dist/hooks/useBoxOnlyProps.d.ts +4 -0
- package/dist/hooks/useBoxOnlyProps.d.ts.map +1 -1
- package/dist/hooks/useStyle.d.ts +1 -1
- package/dist/hooks/useStyle.d.ts.map +1 -1
- package/dist/types/Falsy.d.ts +2 -0
- package/dist/types/Falsy.d.ts.map +1 -0
- package/package.json +17 -16
- package/LICENSE +0 -21
- package/dist/components/Icon/IconsList.d.ts +0 -4
- package/dist/components/Icon/IconsList.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.
|
|
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__
|
|
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__
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
5355
|
-
title && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
5356
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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__
|
|
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__
|
|
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
|
|
|
@@ -5765,6 +5232,66 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5765
5232
|
|
|
5766
5233
|
|
|
5767
5234
|
|
|
5235
|
+
/***/ }),
|
|
5236
|
+
|
|
5237
|
+
/***/ "./src/components/Box/Box.tsx":
|
|
5238
|
+
/*!************************************!*\
|
|
5239
|
+
!*** ./src/components/Box/Box.tsx ***!
|
|
5240
|
+
\************************************/
|
|
5241
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5242
|
+
|
|
5243
|
+
"use strict";
|
|
5244
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5245
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5246
|
+
/* harmony export */ "Box": function() { return /* binding */ Box; }
|
|
5247
|
+
/* harmony export */ });
|
|
5248
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
5249
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
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
|
+
|
|
5768
5295
|
/***/ }),
|
|
5769
5296
|
|
|
5770
5297
|
/***/ "./src/components/Box/BoxTransforms.ts":
|
|
@@ -5799,6 +5326,434 @@ var useComposedBoxTransform = function (fn) {
|
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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__
|
|
6076
|
-
title && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
6077
|
-
children && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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.
|
|
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__
|
|
6159
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
6160
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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.
|
|
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__
|
|
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.
|
|
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.
|
|
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__
|
|
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__
|
|
6376
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
7093
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
10120
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
10234
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
10307
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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__
|
|
10645
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__
|
|
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) {
|
|
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.
|
|
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__
|
|
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.
|
|
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__
|
|
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 }}
|
|
@@ -11879,7 +11836,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11879
11836
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
11880
11837
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
11881
11838
|
/* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
|
|
11882
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
11839
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
11883
11840
|
/* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Chip */ "./src/components/Chip/index.ts");
|
|
11884
11841
|
/* harmony import */ var _Flex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
|
|
11885
11842
|
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
@@ -11982,12 +11939,12 @@ var PaginatedMultiSelect = function (_a) {
|
|
|
11982
11939
|
return show();
|
|
11983
11940
|
}
|
|
11984
11941
|
});
|
|
11985
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__
|
|
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),
|
|
11986
11943
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Item, { grow: 1 },
|
|
11987
11944
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { inline: 'x4' },
|
|
11988
11945
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Flex__WEBPACK_IMPORTED_MODULE_5__["default"].Container, null,
|
|
11989
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__
|
|
11990
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__
|
|
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' },
|
|
11991
11948
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_8__["default"], { all: 'x4' },
|
|
11992
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 }),
|
|
11993
11950
|
currentValue.map(function (value, index) {
|
|
@@ -12047,7 +12004,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12047
12004
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
12048
12005
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
12049
12006
|
/* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
|
|
12050
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12007
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12051
12008
|
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
12052
12009
|
/* harmony import */ var _Options_useVisible__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
|
|
12053
12010
|
/* harmony import */ var _OptionsPaginated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
|
|
@@ -12147,9 +12104,9 @@ var PaginatedSelect = function (_a) {
|
|
|
12147
12104
|
return show();
|
|
12148
12105
|
}
|
|
12149
12106
|
});
|
|
12150
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__
|
|
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),
|
|
12151
12108
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PaginatedSelectWrapper__WEBPACK_IMPORTED_MODULE_10__["default"], { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
|
|
12152
|
-
visibleText && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_3__
|
|
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)),
|
|
12153
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 }),
|
|
12154
12111
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_PaginatedSelectAddon__WEBPACK_IMPORTED_MODULE_8__["default"], { mi: 'x4' },
|
|
12155
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' }))),
|
|
@@ -12170,7 +12127,7 @@ var PaginatedSelect = function (_a) {
|
|
|
12170
12127
|
__webpack_require__.r(__webpack_exports__);
|
|
12171
12128
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12172
12129
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12173
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12130
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12174
12131
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12175
12132
|
__assign = Object.assign || function(t) {
|
|
12176
12133
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -12185,7 +12142,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
12185
12142
|
|
|
12186
12143
|
|
|
12187
12144
|
var PaginatedSelectAddon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectAddon(props, ref) {
|
|
12188
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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));
|
|
12189
12146
|
});
|
|
12190
12147
|
/* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectAddon);
|
|
12191
12148
|
|
|
@@ -12261,7 +12218,7 @@ var PaginatedSelectFiltered = function (_a) {
|
|
|
12261
12218
|
__webpack_require__.r(__webpack_exports__);
|
|
12262
12219
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12263
12220
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12264
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12221
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12265
12222
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12266
12223
|
__assign = Object.assign || function(t) {
|
|
12267
12224
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -12276,7 +12233,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
12276
12233
|
|
|
12277
12234
|
|
|
12278
12235
|
var PaginatedSelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectFocus(props, ref) {
|
|
12279
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
12280
12237
|
});
|
|
12281
12238
|
/* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectFocus);
|
|
12282
12239
|
|
|
@@ -12293,7 +12250,7 @@ var PaginatedSelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fun
|
|
|
12293
12250
|
__webpack_require__.r(__webpack_exports__);
|
|
12294
12251
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12295
12252
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12296
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12253
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12297
12254
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12298
12255
|
__assign = Object.assign || function(t) {
|
|
12299
12256
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -12308,7 +12265,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
12308
12265
|
|
|
12309
12266
|
|
|
12310
12267
|
var PaginatedSelectWrapper = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function PaginatedSelectWrapper(props, ref) {
|
|
12311
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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));
|
|
12312
12269
|
});
|
|
12313
12270
|
/* harmony default export */ __webpack_exports__["default"] = (PaginatedSelectWrapper);
|
|
12314
12271
|
|
|
@@ -12348,7 +12305,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12348
12305
|
/* harmony export */ });
|
|
12349
12306
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12350
12307
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12351
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12308
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12352
12309
|
/* harmony import */ var _Chevron__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Chevron */ "./src/components/Chevron/index.tsx");
|
|
12353
12310
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12354
12311
|
__assign = Object.assign || function(t) {
|
|
@@ -12417,20 +12374,20 @@ var Pagination = function (_a) {
|
|
|
12417
12374
|
var handleSetPageLinkClick = function (page) { return function () {
|
|
12418
12375
|
onSetCurrent === null || onSetCurrent === void 0 ? void 0 : onSetCurrent(page * itemsPerPage);
|
|
12419
12376
|
}; };
|
|
12420
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12421
|
-
hasItemsPerPageSelection && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12422
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12423
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12424
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12425
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12426
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12427
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12428
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12429
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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) },
|
|
12430
12387
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { left: true, size: 'x16' }))),
|
|
12431
|
-
displayedPages.map(function (page, i) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12432
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12433
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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) },
|
|
12434
12391
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Chevron__WEBPACK_IMPORTED_MODULE_2__.Chevron, { right: true, size: 'x16' })))))));
|
|
12435
12392
|
};
|
|
12436
12393
|
|
|
@@ -12683,7 +12640,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12683
12640
|
/* harmony export */ });
|
|
12684
12641
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12685
12642
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12686
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12643
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12687
12644
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12688
12645
|
__assign = Object.assign || function(t) {
|
|
12689
12646
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -12722,8 +12679,8 @@ var getColor = function (percentage, error) {
|
|
|
12722
12679
|
};
|
|
12723
12680
|
var ProgressBar = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProgressBar(_a, ref) {
|
|
12724
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"]);
|
|
12725
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12726
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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) })));
|
|
12727
12684
|
});
|
|
12728
12685
|
|
|
12729
12686
|
|
|
@@ -12759,7 +12716,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12759
12716
|
/* harmony export */ });
|
|
12760
12717
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12761
12718
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12762
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12719
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12763
12720
|
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
|
|
12764
12721
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
12765
12722
|
__assign = Object.assign || function(t) {
|
|
@@ -12788,9 +12745,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
12788
12745
|
|
|
12789
12746
|
var RadioButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function RadioButton(_a, ref) {
|
|
12790
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"]);
|
|
12791
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12792
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
12793
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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' })));
|
|
12794
12751
|
});
|
|
12795
12752
|
|
|
12796
12753
|
|
|
@@ -12976,7 +12933,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12976
12933
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
12977
12934
|
/* harmony import */ var _helpers_isForwardRefType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/isForwardRefType */ "./src/helpers/isForwardRefType.ts");
|
|
12978
12935
|
/* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
|
|
12979
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
12936
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
12980
12937
|
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
12981
12938
|
/* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
|
|
12982
12939
|
/* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Options */ "./src/components/Options/index.ts");
|
|
@@ -13032,7 +12989,7 @@ var __read = (undefined && undefined.__read) || function (o, n) {
|
|
|
13032
12989
|
|
|
13033
12990
|
|
|
13034
12991
|
|
|
13035
|
-
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__
|
|
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))); });
|
|
13036
12993
|
var useDidUpdate = function (func, deps) {
|
|
13037
12994
|
var didMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(false);
|
|
13038
12995
|
var fn = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(func);
|
|
@@ -13104,10 +13061,10 @@ var Select = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref
|
|
|
13104
13061
|
(_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13105
13062
|
return show();
|
|
13106
13063
|
});
|
|
13107
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__
|
|
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),
|
|
13108
13065
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, { display: 'flex', mi: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText },
|
|
13109
13066
|
visibleText &&
|
|
13110
|
-
(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__
|
|
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))),
|
|
13111
13068
|
renderAnchor({
|
|
13112
13069
|
ref: anchorRef,
|
|
13113
13070
|
children: !value ? option || placeholder : null,
|
|
@@ -13138,7 +13095,7 @@ var Select = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref
|
|
|
13138
13095
|
__webpack_require__.r(__webpack_exports__);
|
|
13139
13096
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13140
13097
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13141
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
13098
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
13142
13099
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
13143
13100
|
__assign = Object.assign || function(t) {
|
|
13144
13101
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -13153,7 +13110,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
13153
13110
|
|
|
13154
13111
|
|
|
13155
13112
|
var SelectAddon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectAddon(props, ref) {
|
|
13156
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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));
|
|
13157
13114
|
});
|
|
13158
13115
|
/* harmony default export */ __webpack_exports__["default"] = (SelectAddon);
|
|
13159
13116
|
|
|
@@ -13281,7 +13238,7 @@ var SelectFilteredAnchor = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fun
|
|
|
13281
13238
|
__webpack_require__.r(__webpack_exports__);
|
|
13282
13239
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13283
13240
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13284
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
13241
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
13285
13242
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
13286
13243
|
__assign = Object.assign || function(t) {
|
|
13287
13244
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -13296,7 +13253,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
13296
13253
|
|
|
13297
13254
|
|
|
13298
13255
|
var SelectFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SelectFocus(props, ref) {
|
|
13299
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
13300
13257
|
});
|
|
13301
13258
|
/* harmony default export */ __webpack_exports__["default"] = (SelectFocus);
|
|
13302
13259
|
|
|
@@ -13686,7 +13643,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13686
13643
|
/* harmony export */ });
|
|
13687
13644
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13688
13645
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13689
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
13646
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
13690
13647
|
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Divider */ "./src/components/Divider/index.tsx");
|
|
13691
13648
|
/* harmony import */ var _SidebarActions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SidebarActions */ "./src/components/Sidebar/SidebarActions.tsx");
|
|
13692
13649
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -13746,7 +13703,7 @@ var TopBarAvatar = Avatar;
|
|
|
13746
13703
|
var TopBarActions = _SidebarActions__WEBPACK_IMPORTED_MODULE_3__.SidebarActions;
|
|
13747
13704
|
var TopBarAction = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SidebarActions__WEBPACK_IMPORTED_MODULE_3__.SidebarAction, __assign({ ghost: true }, props))); };
|
|
13748
13705
|
var TopBarDivider = function () { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider, { mbs: 'neg-x2', mbe: 0 }); };
|
|
13749
|
-
var TopBarTitle = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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))); };
|
|
13750
13707
|
/* harmony default export */ __webpack_exports__["default"] = (Object.assign(TopBar, {
|
|
13751
13708
|
Section: TopBarSection,
|
|
13752
13709
|
ToolBox: TopBarToolBox,
|
|
@@ -13799,7 +13756,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13799
13756
|
/* harmony export */ });
|
|
13800
13757
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13801
13758
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13802
|
-
/* harmony import */ var
|
|
13759
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
13803
13760
|
/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Item */ "./src/components/Sidebar/Item.tsx");
|
|
13804
13761
|
/* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx");
|
|
13805
13762
|
/* harmony import */ var _TopBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar.tsx");
|
|
@@ -13820,7 +13777,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
13820
13777
|
|
|
13821
13778
|
|
|
13822
13779
|
|
|
13823
|
-
var Sidebar = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
13780
|
+
var Sidebar = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ "rcx-sidebar": true }, props)); };
|
|
13824
13781
|
/* harmony default export */ __webpack_exports__["default"] = (Object.assign(Sidebar, {
|
|
13825
13782
|
TopBar: _TopBar__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
13826
13783
|
Item: _Item__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
@@ -13850,7 +13807,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13850
13807
|
/* harmony export */ });
|
|
13851
13808
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13852
13809
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13853
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
13810
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
13854
13811
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
13855
13812
|
__assign = Object.assign || function(t) {
|
|
13856
13813
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -13877,7 +13834,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
13877
13834
|
|
|
13878
13835
|
var Skeleton = function (_a) {
|
|
13879
13836
|
var _b = _a.variant, variant = _b === void 0 ? 'text' : _b, props = __rest(_a, ["variant"]);
|
|
13880
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
13881
13838
|
};
|
|
13882
13839
|
|
|
13883
13840
|
|
|
@@ -14278,7 +14235,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14278
14235
|
/* harmony export */ });
|
|
14279
14236
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14280
14237
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14281
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14238
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14282
14239
|
/* harmony import */ var _TableSelection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableSelection */ "./src/components/Table/TableSelection.tsx");
|
|
14283
14240
|
/* harmony import */ var _TableSelectionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableSelectionButton */ "./src/components/Table/TableSelectionButton.tsx");
|
|
14284
14241
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -14314,8 +14271,8 @@ var style = {
|
|
|
14314
14271
|
};
|
|
14315
14272
|
var Table = function (_a) {
|
|
14316
14273
|
var striped = _a.striped, sticky = _a.sticky, _b = _a.fixed, fixed = _b === void 0 ? false : _b, props = __rest(_a, ["striped", "sticky", "fixed"]);
|
|
14317
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14318
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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))));
|
|
14319
14276
|
};
|
|
14320
14277
|
Table.Selection = _TableSelection__WEBPACK_IMPORTED_MODULE_2__.TableSelection;
|
|
14321
14278
|
Table.Button = _TableSelectionButton__WEBPACK_IMPORTED_MODULE_3__.TableSelectionButton;
|
|
@@ -14336,7 +14293,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14336
14293
|
/* harmony export */ });
|
|
14337
14294
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14338
14295
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14339
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14296
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14340
14297
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14341
14298
|
__assign = Object.assign || function(t) {
|
|
14342
14299
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14350,7 +14307,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
14350
14307
|
};
|
|
14351
14308
|
|
|
14352
14309
|
|
|
14353
|
-
var TableBody = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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))); };
|
|
14354
14311
|
|
|
14355
14312
|
|
|
14356
14313
|
/***/ }),
|
|
@@ -14368,7 +14325,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14368
14325
|
/* harmony export */ });
|
|
14369
14326
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14370
14327
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14371
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14328
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14372
14329
|
/* harmony import */ var _TableHead__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableHead */ "./src/components/Table/TableHead.tsx");
|
|
14373
14330
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14374
14331
|
__assign = Object.assign || function(t) {
|
|
@@ -14398,7 +14355,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14398
14355
|
var TableCell = function (_a) {
|
|
14399
14356
|
var align = _a.align, clickable = _a.clickable, props = __rest(_a, ["align", "clickable"]);
|
|
14400
14357
|
var isInsideHead = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_TableHead__WEBPACK_IMPORTED_MODULE_2__.TableHeadContext);
|
|
14401
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
14402
14359
|
};
|
|
14403
14360
|
|
|
14404
14361
|
|
|
@@ -14417,7 +14374,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14417
14374
|
/* harmony export */ });
|
|
14418
14375
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14419
14376
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14420
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14377
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14421
14378
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14422
14379
|
__assign = Object.assign || function(t) {
|
|
14423
14380
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14431,7 +14388,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
14431
14388
|
};
|
|
14432
14389
|
|
|
14433
14390
|
|
|
14434
|
-
var TableFoot = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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))); };
|
|
14435
14392
|
|
|
14436
14393
|
|
|
14437
14394
|
/***/ }),
|
|
@@ -14450,7 +14407,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14450
14407
|
/* harmony export */ });
|
|
14451
14408
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14452
14409
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14453
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14410
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14454
14411
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14455
14412
|
__assign = Object.assign || function(t) {
|
|
14456
14413
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14466,7 +14423,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
14466
14423
|
|
|
14467
14424
|
var TableHeadContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(false);
|
|
14468
14425
|
var TableHead = function (props) { return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableHeadContext.Provider, { value: true },
|
|
14469
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14426
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'thead', "rcx-table__head": true }, props)))); };
|
|
14470
14427
|
|
|
14471
14428
|
|
|
14472
14429
|
/***/ }),
|
|
@@ -14484,7 +14441,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14484
14441
|
/* harmony export */ });
|
|
14485
14442
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14486
14443
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14487
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14444
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14488
14445
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14489
14446
|
__assign = Object.assign || function(t) {
|
|
14490
14447
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14511,7 +14468,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14511
14468
|
|
|
14512
14469
|
var TableRow = function (_a) {
|
|
14513
14470
|
var action = _a.action, selected = _a.selected, props = __rest(_a, ["action", "selected"]);
|
|
14514
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
14515
14472
|
};
|
|
14516
14473
|
|
|
14517
14474
|
|
|
@@ -14530,7 +14487,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14530
14487
|
/* harmony export */ });
|
|
14531
14488
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14532
14489
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14533
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14490
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14534
14491
|
/* harmony import */ var _Margins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
|
|
14535
14492
|
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Table */ "./src/components/Table/Table.tsx");
|
|
14536
14493
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -14561,9 +14518,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14561
14518
|
|
|
14562
14519
|
var TableSelection = function (_a) {
|
|
14563
14520
|
var children = _a.children, text = _a.text, props = __rest(_a, ["children", "text"]);
|
|
14564
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14565
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14566
|
-
children && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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 },
|
|
14567
14524
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Margins__WEBPACK_IMPORTED_MODULE_2__["default"], { inline: 'x4' }, children)))));
|
|
14568
14525
|
};
|
|
14569
14526
|
|
|
@@ -14674,7 +14631,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14674
14631
|
/* harmony export */ });
|
|
14675
14632
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14676
14633
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14677
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14634
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14678
14635
|
/* harmony import */ var _TabsItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabsItem */ "./src/components/Tabs/TabsItem.tsx");
|
|
14679
14636
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14680
14637
|
__assign = Object.assign || function(t) {
|
|
@@ -14703,9 +14660,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14703
14660
|
|
|
14704
14661
|
function Tabs(_a) {
|
|
14705
14662
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
14706
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14707
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
14708
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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' }))));
|
|
14709
14666
|
}
|
|
14710
14667
|
Tabs.Item = _TabsItem__WEBPACK_IMPORTED_MODULE_2__.TabsItem;
|
|
14711
14668
|
|
|
@@ -14725,7 +14682,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14725
14682
|
/* harmony export */ });
|
|
14726
14683
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14727
14684
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14728
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14685
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
14729
14686
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
14730
14687
|
__assign = Object.assign || function(t) {
|
|
14731
14688
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -14752,7 +14709,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14752
14709
|
|
|
14753
14710
|
var TabsItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function TabsItem(_a, ref) {
|
|
14754
14711
|
var selected = _a.selected, disabled = _a.disabled, props = __rest(_a, ["selected", "disabled"]);
|
|
14755
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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)));
|
|
14756
14713
|
});
|
|
14757
14714
|
|
|
14758
14715
|
|
|
@@ -15015,7 +14972,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15015
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");
|
|
15016
14973
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
15017
14974
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
15018
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
14975
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
15019
14976
|
var __makeTemplateObject = (undefined && undefined.__makeTemplateObject) || function (cooked, raw) {
|
|
15020
14977
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
15021
14978
|
return cooked;
|
|
@@ -15047,11 +15004,11 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15047
15004
|
|
|
15048
15005
|
function Circle(_a) {
|
|
15049
15006
|
var disabled = _a.disabled, circleCount = _a.circleCount, iteration = _a.iteration, inheritColor = _a.inheritColor, props = __rest(_a, ["disabled", "circleCount", "iteration", "inheritColor"]);
|
|
15050
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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)));
|
|
15051
15008
|
}
|
|
15052
15009
|
var Throbber = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Throbber(_a, ref) {
|
|
15053
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"]);
|
|
15054
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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 })); })));
|
|
15055
15012
|
});
|
|
15056
15013
|
var templateObject_1;
|
|
15057
15014
|
|
|
@@ -15086,7 +15043,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15086
15043
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15087
15044
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15088
15045
|
/* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
|
|
15089
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
15046
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
15090
15047
|
/* harmony import */ var _Tile_styles_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tile.styles.scss */ "./src/components/Tile/Tile.styles.scss");
|
|
15091
15048
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
15092
15049
|
__assign = Object.assign || function(t) {
|
|
@@ -15118,7 +15075,7 @@ var Tile = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Tile(_a, r
|
|
|
15118
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"]);
|
|
15119
15076
|
(0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
|
|
15120
15077
|
(0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)(_Tile_styles_scss__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
15121
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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)));
|
|
15122
15079
|
});
|
|
15123
15080
|
/* harmony default export */ __webpack_exports__["default"] = (Tile);
|
|
15124
15081
|
|
|
@@ -15155,7 +15112,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15155
15112
|
/* harmony export */ });
|
|
15156
15113
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15157
15114
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15158
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
15115
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
15159
15116
|
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./src/components/Label/index.tsx");
|
|
15160
15117
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
15161
15118
|
__assign = Object.assign || function(t) {
|
|
@@ -15184,9 +15141,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15184
15141
|
|
|
15185
15142
|
var ToggleSwitch = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ToggleSwitch(_a, ref) {
|
|
15186
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"]);
|
|
15187
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
15188
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
15189
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__
|
|
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' })));
|
|
15190
15147
|
});
|
|
15191
15148
|
|
|
15192
15149
|
|
|
@@ -15220,7 +15177,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15220
15177
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15221
15178
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15222
15179
|
/* harmony import */ var _hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../hooks/useStyleSheet */ "./src/hooks/useStyleSheet.ts");
|
|
15223
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.
|
|
15180
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
|
|
15224
15181
|
/* harmony import */ var _Tooltip_styles_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tooltip.styles.scss */ "./src/components/Tooltip/Tooltip.styles.scss");
|
|
15225
15182
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
15226
15183
|
__assign = Object.assign || function(t) {
|
|
@@ -15278,7 +15235,7 @@ var Tooltip = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Tooltip
|
|
|
15278
15235
|
(0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)();
|
|
15279
15236
|
(0,_hooks_useStyleSheet__WEBPACK_IMPORTED_MODULE_1__.useStyleSheet)(_Tooltip_styles_scss__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
15280
15237
|
var _b = __read(parsePlacement(placement), 2), direction = _b[0], position = _b[1];
|
|
15281
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_2__
|
|
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)));
|
|
15282
15239
|
});
|
|
15283
15240
|
/* harmony default export */ __webpack_exports__["default"] = (Tooltip);
|
|
15284
15241
|
|
|
@@ -15366,7 +15323,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15366
15323
|
/* harmony export */ "Avatar": function() { return /* reexport safe */ _Avatar__WEBPACK_IMPORTED_MODULE_3__.Avatar; },
|
|
15367
15324
|
/* harmony export */ "Badge": function() { return /* reexport safe */ _Badge__WEBPACK_IMPORTED_MODULE_4__.Badge; },
|
|
15368
15325
|
/* harmony export */ "Banner": function() { return /* reexport safe */ _Banner__WEBPACK_IMPORTED_MODULE_5__["default"]; },
|
|
15369
|
-
/* harmony export */ "Box": function() { return /* reexport safe */ _Box__WEBPACK_IMPORTED_MODULE_6__
|
|
15326
|
+
/* harmony export */ "Box": function() { return /* reexport safe */ _Box__WEBPACK_IMPORTED_MODULE_6__["default"]; },
|
|
15370
15327
|
/* harmony export */ "useArrayLikeClassNameProp": function() { return /* reexport safe */ _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_7__.useArrayLikeClassNameProp; },
|
|
15371
15328
|
/* harmony export */ "Button": function() { return /* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_8__["default"]; },
|
|
15372
15329
|
/* harmony export */ "ActionButton": function() { return /* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_8__.ActionButton; },
|
|
@@ -15547,7 +15504,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15547
15504
|
/* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Avatar */ "./src/components/Avatar/index.tsx");
|
|
15548
15505
|
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Badge */ "./src/components/Badge/index.tsx");
|
|
15549
15506
|
/* harmony import */ var _Banner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Banner */ "./src/components/Banner/index.ts");
|
|
15550
|
-
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Box */ "./src/components/Box/index.
|
|
15507
|
+
/* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Box */ "./src/components/Box/index.tsx");
|
|
15551
15508
|
/* harmony import */ var _hooks_useArrayLikeClassNameProp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
|
|
15552
15509
|
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Button */ "./src/components/Button/index.ts");
|
|
15553
15510
|
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ButtonGroup */ "./src/components/ButtonGroup/index.ts");
|
|
@@ -16059,6 +16016,10 @@ var useBoxOnlyProps = function (props) {
|
|
|
16059
16016
|
props.className = (0,_helpers_prependClassName__WEBPACK_IMPORTED_MODULE_0__.prependClassName)(props.className, 'rcx-box--with-block-elements');
|
|
16060
16017
|
}
|
|
16061
16018
|
}
|
|
16019
|
+
if (props.htmlSize) {
|
|
16020
|
+
props.size = props.htmlSize;
|
|
16021
|
+
delete props.htmlSize;
|
|
16022
|
+
}
|
|
16062
16023
|
delete props.withRichContent;
|
|
16063
16024
|
props.className = (0,_helpers_prependClassName__WEBPACK_IMPORTED_MODULE_0__.prependClassName)(props.className, 'rcx-box rcx-box--full');
|
|
16064
16025
|
return props;
|
|
@@ -16342,7 +16303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16342
16303
|
|
|
16343
16304
|
|
|
16344
16305
|
if (true) {
|
|
16345
|
-
console.log("fuselage: " + "0.31.
|
|
16306
|
+
console.log("fuselage: " + "0.31.7");
|
|
16346
16307
|
}
|
|
16347
16308
|
|
|
16348
16309
|
|