@rocket.chat/fuselage 0.50.1 → 0.51.1
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 +18 -0
- package/dist/components/Button/ActionButton.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Contextualbar/Contextualbar.d.ts +2 -2
- package/dist/components/Contextualbar/Contextualbar.d.ts.map +1 -1
- package/dist/components/Contextualbar/ContextualbarButton.d.ts +1 -1
- package/dist/components/Contextualbar/ContextualbarIcon.d.ts +1 -1
- package/dist/components/Message/MessageMetrics/MessageMetricsItem/index.d.ts +1 -1
- package/dist/components/Message/MessageMetrics/index.d.ts +2 -2
- package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts +1 -1
- package/dist/components/Message/MessageToolbar/index.d.ts +3 -3
- package/dist/components/Message/index.d.ts +5 -5
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/Option/CheckOption.d.ts +1 -1
- package/dist/components/Option/Option.d.ts +1 -1
- package/dist/components/Option/index.d.ts +3 -3
- package/dist/components/Option/index.d.ts.map +1 -1
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +1 -1
- package/dist/components/Select/SelectFiltered.d.ts +2 -2
- package/dist/components/Select/SelectLegacy.d.ts +1 -1
- package/dist/components/Sidebar/Item.d.ts +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts +1 -1
- package/dist/components/Sidebar/TopBar/TopBarAction.d.ts +1 -1
- package/dist/components/Sidebar/TopBar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts +3 -3
- package/dist/components/ToastBar/ToastBar.d.ts.map +1 -1
- package/dist/fuselage.development.js +7 -7
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +2 -2
|
@@ -3832,10 +3832,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
3832
3832
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3833
3833
|
var react_1 = __importStar(__webpack_require__(/*! react */ "react"));
|
|
3834
3834
|
var __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
3835
|
-
var Contextualbar = function (_a) {
|
|
3835
|
+
var Contextualbar = (0, react_1.forwardRef)(function Contextualbar(_a, ref) {
|
|
3836
3836
|
var children = _a.children, width = _a.width, position = _a.position, _b = _a.bg, bg = _b === void 0 ? 'room' : _b, props = __rest(_a, ["children", "width", "position", "bg"]);
|
|
3837
|
-
return (react_1.default.createElement(__1.Box, __assign({ "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 5 }, props), children));
|
|
3838
|
-
};
|
|
3837
|
+
return (react_1.default.createElement(__1.Box, __assign({ ref: ref, "rcx-vertical-bar": true, bg: bg, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 5 }, props), children));
|
|
3838
|
+
});
|
|
3839
3839
|
exports["default"] = (0, react_1.memo)(Contextualbar);
|
|
3840
3840
|
|
|
3841
3841
|
|
|
@@ -17925,7 +17925,7 @@ var Box_1 = __importDefault(__webpack_require__(/*! ../Box */ "./src/components/
|
|
|
17925
17925
|
var Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
|
|
17926
17926
|
var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
17927
17927
|
function ToastBar(_a) {
|
|
17928
|
-
var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.variant, variant = _c === void 0 ? 'info' : _c, _d = _a.time, time = _d === void 0 ? 5 : _d, id = _a.id, onClose = _a.onClose, _e = _a.buttonLabel, buttonLabel = _e === void 0 ? '
|
|
17928
|
+
var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.variant, variant = _c === void 0 ? 'info' : _c, _d = _a.time, time = _d === void 0 ? 5 : _d, id = _a.id, onClose = _a.onClose, _e = _a.buttonLabel, buttonLabel = _e === void 0 ? 'Dismiss alert' : _e, props = __rest(_a, ["children", "className", "variant", "time", "id", "onClose", "buttonLabel"]);
|
|
17929
17929
|
var iconName = (variant === 'success' && 'circle-check') ||
|
|
17930
17930
|
(variant === 'error' && 'ban') ||
|
|
17931
17931
|
'info';
|
|
@@ -17938,12 +17938,12 @@ function ToastBar(_a) {
|
|
|
17938
17938
|
return (react_1.default.createElement(Box_1.default, __assign({ className: [
|
|
17939
17939
|
"rcx-toastbar rcx-toastbar--".concat(variant, " ").concat(className),
|
|
17940
17940
|
toastBarAnimation,
|
|
17941
|
-
], elevation: '2nb', borderRadius: 'x4'
|
|
17941
|
+
], elevation: '2nb', borderRadius: 'x4' }, props),
|
|
17942
17942
|
react_1.default.createElement("div", { className: 'rcx-toastbar_inner' },
|
|
17943
17943
|
react_1.default.createElement(Icon_1.Icon, { className: "rcx-toastbar_icon--".concat(variant), size: 'x20', name: iconName }),
|
|
17944
|
-
react_1.default.createElement("div", { className: 'rcx-toastbar_content'
|
|
17944
|
+
react_1.default.createElement("div", { role: 'alert', className: 'rcx-toastbar_content' }, children),
|
|
17945
17945
|
onClose && (react_1.default.createElement("div", { className: 'rcx-toastbar-close' },
|
|
17946
|
-
react_1.default.createElement(Button_1.IconButton, { tiny: true, onClick: function () { return onClose(toastId); }, icon: 'cross'
|
|
17946
|
+
react_1.default.createElement(Button_1.IconButton, { tiny: true, "aria-label": buttonLabel, onClick: function () { return onClose(toastId); }, icon: 'cross' })))),
|
|
17947
17947
|
react_1.default.createElement(Box_1.default, { className: [progressBarAnimation, 'rcx-toastbar_progressbar'] })));
|
|
17948
17948
|
}
|
|
17949
17949
|
exports.ToastBar = ToastBar;
|