@rocket.chat/fuselage 0.32.2 → 0.34.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 +28 -0
- package/dist/components/Callout/Callout.d.ts +1 -1
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/EmailInput/EmailInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/Sidebar/SidebarBanner.d.ts +2 -1
- package/dist/components/Sidebar/SidebarBanner.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +2 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +1 -1
- package/dist/components/TextAreaInput/TextArea.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/UrlInput/UrlInput.d.ts +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +19 -11
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +1 -1
|
@@ -2669,17 +2669,21 @@ var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
|
2669
2669
|
var Box_1 = __importDefault(__webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx"));
|
|
2670
2670
|
var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2671
2671
|
var Callout = function (_a) {
|
|
2672
|
-
var type = _a.type, title = _a.title, children = _a.children, icon = _a.icon, props = __rest(_a, ["type", "title", "children", "icon"]);
|
|
2672
|
+
var type = _a.type, title = _a.title, children = _a.children, icon = _a.icon, className = _a.className, props = __rest(_a, ["type", "title", "children", "icon", "className"]);
|
|
2673
2673
|
var defaultIcon = (type === 'info' && 'info-circled') ||
|
|
2674
2674
|
(type === 'success' && 'checkmark-circled') ||
|
|
2675
2675
|
(type === 'warning' && 'warning') ||
|
|
2676
2676
|
(type === 'danger' && 'ban') ||
|
|
2677
2677
|
'info-circled';
|
|
2678
|
-
return (react_1.default.createElement(Box_1.default, __assign({ is: 'section',
|
|
2679
|
-
|
|
2678
|
+
return (react_1.default.createElement(Box_1.default, __assign({ is: 'section', className: [
|
|
2679
|
+
"rcx-callout ".concat(type && "rcx-callout--".concat(type), " ").concat(className || ''),
|
|
2680
|
+
]
|
|
2681
|
+
.filter(Boolean)
|
|
2682
|
+
.join(' ') }, props),
|
|
2683
|
+
react_1.default.createElement(Icon_1.Icon, { className: 'rcx-callout__icon', name: icon || defaultIcon, size: 'x20' }),
|
|
2680
2684
|
react_1.default.createElement(Box_1.default, { "rcx-callout__wrapper": true },
|
|
2681
|
-
title &&
|
|
2682
|
-
children && react_1.default.createElement(Box_1.default, { "rcx-
|
|
2685
|
+
title && react_1.default.createElement(Box_1.default, { "rcx-callout__title": true }, title),
|
|
2686
|
+
children && react_1.default.createElement(Box_1.default, { "rcx-callout__content": true }, children))));
|
|
2683
2687
|
};
|
|
2684
2688
|
exports.Callout = Callout;
|
|
2685
2689
|
|
|
@@ -3189,7 +3193,7 @@ var react_1 = __importStar(__webpack_require__(/*! react */ "react"));
|
|
|
3189
3193
|
var __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
3190
3194
|
var ContextualbarAction = function (_a) {
|
|
3191
3195
|
var name = _a.name, props = __rest(_a, ["name"]);
|
|
3192
|
-
return (react_1.default.createElement(__1.IconButton, __assign({ flexShrink: 0, icon: name }
|
|
3196
|
+
return (react_1.default.createElement(__1.IconButton, __assign({}, props, { small: true, flexShrink: 0, icon: name })));
|
|
3193
3197
|
};
|
|
3194
3198
|
exports["default"] = (0, react_1.memo)(ContextualbarAction);
|
|
3195
3199
|
|
|
@@ -11447,7 +11451,7 @@ var PaginatedSelect = function (_a) {
|
|
|
11447
11451
|
? 'chevron-up'
|
|
11448
11452
|
: 'chevron-down', size: 'x20' })))),
|
|
11449
11453
|
react_1.default.createElement(PositionAnimated_1.default, { visible: visible, anchor: containerRef },
|
|
11450
|
-
react_1.default.createElement(_Options,
|
|
11454
|
+
react_1.default.createElement(_Options, { withTitle: withTitle, width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: options, onSelect: internalChangedByClick, endReached: endReached, onMouseDown: prevent_1.prevent }))));
|
|
11451
11455
|
};
|
|
11452
11456
|
exports.PaginatedSelect = PaginatedSelect;
|
|
11453
11457
|
|
|
@@ -13556,7 +13560,7 @@ exports.SidebarBanner = void 0;
|
|
|
13556
13560
|
var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
13557
13561
|
var Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
|
|
13558
13562
|
var SidebarBanner = function (_a) {
|
|
13559
|
-
var text = _a.text, description = _a.description, onClick = _a.onClick, _b = _a.variant, variant = _b === void 0 ? 'default' : _b, onClose = _a.onClose, children = _a.children;
|
|
13563
|
+
var text = _a.text, description = _a.description, onClick = _a.onClick, _b = _a.variant, variant = _b === void 0 ? 'default' : _b, addon = _a.addon, onClose = _a.onClose, children = _a.children;
|
|
13560
13564
|
return (react_1.default.createElement("div", { className: "rcx-box rcx-box--full rcx-sidebar-banner rcx-sidebar-banner--".concat(variant) },
|
|
13561
13565
|
react_1.default.createElement("div", null,
|
|
13562
13566
|
text && react_1.default.createElement("div", { className: 'rcx-sidebar-banner--text' }, text),
|
|
@@ -13567,7 +13571,9 @@ var SidebarBanner = function (_a) {
|
|
|
13567
13571
|
.filter(Boolean)
|
|
13568
13572
|
.join(' '), onClick: onClick }, description)),
|
|
13569
13573
|
children),
|
|
13570
|
-
|
|
13574
|
+
react_1.default.createElement("div", { className: 'rcx-sidebar-banner__actions' },
|
|
13575
|
+
addon,
|
|
13576
|
+
onClose && react_1.default.createElement(Button_1.IconButton, { onClick: onClose, tiny: true, icon: 'cross' }))));
|
|
13571
13577
|
};
|
|
13572
13578
|
exports.SidebarBanner = SidebarBanner;
|
|
13573
13579
|
|
|
@@ -15649,19 +15655,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
15649
15655
|
exports.Tag = void 0;
|
|
15650
15656
|
var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
15651
15657
|
var prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
|
|
15658
|
+
var Box_1 = __importDefault(__webpack_require__(/*! ../Box/Box */ "./src/components/Box/Box.tsx"));
|
|
15652
15659
|
var Tag = function (_a) {
|
|
15653
|
-
var large = _a.large, medium = _a.medium, className = _a.className, disabled = _a.disabled, onClick = _a.onClick, variant = _a.variant, children = _a.children, icon = _a.icon, props = __rest(_a, ["large", "medium", "className", "disabled", "onClick", "variant", "children", "icon"]);
|
|
15660
|
+
var large = _a.large, medium = _a.medium, className = _a.className, disabled = _a.disabled, onClick = _a.onClick, variant = _a.variant, children = _a.children, icon = _a.icon, href = _a.href, props = __rest(_a, ["large", "medium", "className", "disabled", "onClick", "variant", "children", "icon", "href"]);
|
|
15654
15661
|
var modifiers = [
|
|
15655
15662
|
variant,
|
|
15656
15663
|
medium && 'medium',
|
|
15657
15664
|
large && 'large',
|
|
15658
15665
|
disabled && 'disabled',
|
|
15659
15666
|
onClick && 'clickable',
|
|
15667
|
+
href && 'clickable',
|
|
15660
15668
|
]
|
|
15661
15669
|
.filter(Boolean)
|
|
15662
15670
|
.map(function (modifier) { return "rcx-tag--".concat(modifier); })
|
|
15663
15671
|
.join(' ');
|
|
15664
|
-
return (react_1.default.createElement(
|
|
15672
|
+
return (react_1.default.createElement(Box_1.default, __assign({ is: href ? 'a' : 'span', className: (0, prependClassName_1.prependClassName)(className, "rcx-tag ".concat(modifiers)), onClick: onClick, href: href }, props),
|
|
15665
15673
|
icon,
|
|
15666
15674
|
react_1.default.createElement("span", { className: 'rcx-tag__inner' }, children)));
|
|
15667
15675
|
};
|