@rocket.chat/fuselage 0.53.7 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/components/EmailInput/EmailInput.d.ts +2 -1
- package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
- package/dist/components/InputBox/InputBox.d.ts +1 -0
- package/dist/components/InputBox/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox/index.d.ts +1 -0
- package/dist/components/InputBox/index.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/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +2 -1
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +1 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/SelectAria.d.ts +1 -0
- package/dist/components/Select/SelectAria.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +2 -1
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +2 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextArea.d.ts +2 -1
- package/dist/components/TextAreaInput/TextArea.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.d.ts +2 -1
- package/dist/components/TextInput/TextInput.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/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +6 -6
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +1 -1
|
@@ -5998,7 +5998,7 @@ var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts"
|
|
|
5998
5998
|
var Addon_1 = __webpack_require__(/*! ./Addon */ "./src/components/InputBox/Addon.tsx");
|
|
5999
5999
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
6000
6000
|
exports.InputBox = (0, react_1.forwardRef)(function InputBox(_a, ref) {
|
|
6001
|
-
var className = _a.className, addon = _a.addon, error = _a.error, hidden = _a.hidden, invisible = _a.invisible, multiple = _a.multiple, placeholderVisible = _a.placeholderVisible, _b = _a.type, type = _b === void 0 ? 'text' : _b, onChange = _a.onChange, props = __rest(_a, ["className", "addon", "error", "hidden", "invisible", "multiple", "placeholderVisible", "type", "onChange"]);
|
|
6001
|
+
var className = _a.className, addon = _a.addon, error = _a.error, hidden = _a.hidden, invisible = _a.invisible, multiple = _a.multiple, placeholderVisible = _a.placeholderVisible, _b = _a.type, type = _b === void 0 ? 'text' : _b, small = _a.small, onChange = _a.onChange, props = __rest(_a, ["className", "addon", "error", "hidden", "invisible", "multiple", "placeholderVisible", "type", "small", "onChange"]);
|
|
6002
6002
|
var innerRef = (0, react_1.useRef)(null);
|
|
6003
6003
|
var mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
|
|
6004
6004
|
(0, react_1.useLayoutEffect)(function () {
|
|
@@ -6029,14 +6029,14 @@ exports.InputBox = (0, react_1.forwardRef)(function InputBox(_a, ref) {
|
|
|
6029
6029
|
if (!addon) {
|
|
6030
6030
|
return (react_1.default.createElement(_1.Input, __assign({ is: (type === 'textarea' && 'textarea') ||
|
|
6031
6031
|
(type === 'select' && 'select') ||
|
|
6032
|
-
'input', className: className, cols: (type === 'textarea' && 1) || (type === 'select' && 0) || 0, hidden: hidden, invisible: invisible, multiple: multiple, ref: mergedRef, htmlSize: (type === 'textarea' && undefined) || (type === 'select' && 1) || 1, type: type === 'textarea' || type === 'select' ? undefined : type, onChange: handleChange, "rcx-input-box--multiple": multiple, "rcx-input-box--placeholder-visible": placeholderVisible, "rcx-input-box--type": type }, props)));
|
|
6032
|
+
'input', className: className, cols: (type === 'textarea' && 1) || (type === 'select' && 0) || 0, hidden: hidden, invisible: invisible, multiple: multiple, ref: mergedRef, htmlSize: (type === 'textarea' && undefined) || (type === 'select' && 1) || 1, type: type === 'textarea' || type === 'select' ? undefined : type, onChange: handleChange, "rcx-input-box--multiple": multiple, "rcx-input-box--placeholder-visible": placeholderVisible, "rcx-input-box--type": type, "rcx-input-box--small": small }, props)));
|
|
6033
6033
|
}
|
|
6034
6034
|
return (react_1.default.createElement(_1.Wrapper, { className: __spreadArray([
|
|
6035
6035
|
props.disabled && 'disabled'
|
|
6036
6036
|
], __read((Array.isArray(className) ? className : [className])), false), hidden: hidden, invisible: invisible },
|
|
6037
6037
|
react_1.default.createElement(_1.Input, __assign({ is: (type === 'textarea' && 'textarea') ||
|
|
6038
6038
|
(type === 'select' && 'select') ||
|
|
6039
|
-
'input', className: className, cols: (type === 'textarea' && 1) || (type === 'select' && 0) || 0, multiple: multiple, ref: mergedRef, htmlSize: (type === 'textarea' && undefined) || (type === 'select' && 1) || 1, type: type === 'textarea' || type === 'select' ? undefined : type, onChange: handleChange, "rcx-input-box--multiple": multiple, "rcx-input-box--placeholder-visible": placeholderVisible, "rcx-input-box--type": type, "rcx-input-box--undecorated": true }, props)),
|
|
6039
|
+
'input', className: className, cols: (type === 'textarea' && 1) || (type === 'select' && 0) || 0, multiple: multiple, ref: mergedRef, htmlSize: (type === 'textarea' && undefined) || (type === 'select' && 1) || 1, type: type === 'textarea' || type === 'select' ? undefined : type, onChange: handleChange, "rcx-input-box--multiple": multiple, "rcx-input-box--placeholder-visible": placeholderVisible, "rcx-input-box--type": type, "rcx-input-box--undecorated": true, "rcx-input-box--small": small }, props)),
|
|
6040
6040
|
react_1.default.createElement(Addon_1.Addon, { children: addon })));
|
|
6041
6041
|
});
|
|
6042
6042
|
|
|
@@ -14471,7 +14471,7 @@ var Listbox_1 = __webpack_require__(/*! ./Listbox */ "./src/components/Select/Li
|
|
|
14471
14471
|
var react_stately_2 = __webpack_require__(/*! react-stately */ "react-stately");
|
|
14472
14472
|
Object.defineProperty(exports, "Item", ({ enumerable: true, get: function () { return react_stately_2.Item; } }));
|
|
14473
14473
|
exports.SelectAria = (0, react_1.forwardRef)(function SelectAria(_a, outerRef) {
|
|
14474
|
-
var disabled = _a.disabled, error = _a.error, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, props = __rest(_a, ["disabled", "error", "placeholder", "value", "onChange"]);
|
|
14474
|
+
var disabled = _a.disabled, error = _a.error, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, small = _a.small, props = __rest(_a, ["disabled", "error", "placeholder", "value", "onChange", "small"]);
|
|
14475
14475
|
var state = (0, react_stately_1.useSelectState)(__assign({ isDisabled: disabled, selectedKey: value, onSelectionChange: onChange }, props));
|
|
14476
14476
|
var _b = (0, fuselage_hooks_1.useResizeObserver)(), ref = _b.ref, borderBoxSize = _b.borderBoxSize;
|
|
14477
14477
|
var _c = (0, react_aria_1.useSelect)(props, state, ref), triggerProps = _c.triggerProps, valueProps = _c.valueProps, menuProps = _c.menuProps;
|
|
@@ -14479,7 +14479,7 @@ exports.SelectAria = (0, react_1.forwardRef)(function SelectAria(_a, outerRef) {
|
|
|
14479
14479
|
var _d = (0, react_aria_1.useFocusRing)(), focusProps = _d.focusProps, isFocusVisible = _d.isFocusVisible;
|
|
14480
14480
|
var mergedRef = (0, fuselage_hooks_1.useMergedRefs)(outerRef, ref);
|
|
14481
14481
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
14482
|
-
react_1.default.createElement(Box_1.default, __assign({ disabled: disabled, "rcx-select": true }, (0, react_aria_1.mergeProps)(buttonProps, focusProps), { is: 'button', display: 'flex', flexDirection: 'row', fontScale: 'p2', ref: mergedRef, justifyContent: 'space-between', className: [
|
|
14482
|
+
react_1.default.createElement(Box_1.default, __assign({}, props, { disabled: disabled, "rcx-select": true }, (0, react_aria_1.mergeProps)(buttonProps, focusProps), { is: 'button', display: 'flex', flexDirection: 'row', fontScale: 'p2', ref: mergedRef, justifyContent: 'space-between', "rcx-input-box--small": small, className: [
|
|
14483
14483
|
error && 'invalid',
|
|
14484
14484
|
disabled && 'disabled',
|
|
14485
14485
|
(isFocusVisible || state.isOpen) && 'focus',
|
|
@@ -14487,7 +14487,7 @@ exports.SelectAria = (0, react_1.forwardRef)(function SelectAria(_a, outerRef) {
|
|
|
14487
14487
|
.filter(Boolean)
|
|
14488
14488
|
.join(' ') }),
|
|
14489
14489
|
react_1.default.createElement(react_aria_1.HiddenSelect, { state: state, triggerRef: ref, label: props.label, name: props.name }),
|
|
14490
|
-
react_1.default.createElement(Box_1.default, __assign({ is: 'span' }, valueProps, { color: state.selectedItem ? 'default' : 'hint' }), state.selectedItem ? state.selectedItem.rendered : placeholder),
|
|
14490
|
+
react_1.default.createElement(Box_1.default, __assign({ is: 'span' }, valueProps, { color: state.selectedItem ? 'default' : 'hint' }, (small && { fontScale: 'c1' })), state.selectedItem ? state.selectedItem.rendered : placeholder),
|
|
14491
14491
|
react_1.default.createElement(Icon_1.Icon, { color: 'default', name: state.isOpen ? 'chevron-up' : 'chevron-down', size: 'x20' })),
|
|
14492
14492
|
state.isOpen && (react_1.default.createElement(Popover_1.Popover, { state: state, triggerRef: ref, placement: 'bottom', offset: 4, containerPadding: 8 },
|
|
14493
14493
|
react_1.default.createElement(Options_1.OptionContainer, { style: {
|