@useblu/ocean-react 1.112.1 → 1.113.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 +12 -0
- package/Modal/Modal.d.ts +1 -1
- package/Modal/Modal.d.ts.map +1 -1
- package/Shortcut/Shortcut.d.ts +2 -1
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +3 -3
- package/index.es.js.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8715,7 +8715,7 @@ var Modal = function (_a) {
|
|
|
8715
8715
|
beforeClose: 'ods-modal__content--before-close',
|
|
8716
8716
|
}, onRequestClose: onRequestClose }, rest),
|
|
8717
8717
|
e.createElement("div", { className: "ods-modal__header" }, !disableClose && (e.createElement("button", { type: "button", className: "ods-modal__header-close", "aria-label": "Close modal", onClick: onRequestClose },
|
|
8718
|
-
e.createElement(yo,
|
|
8718
|
+
e.createElement(yo, { size: 20 })))),
|
|
8719
8719
|
e.createElement("div", { className: "ods-modal__body" }, children)));
|
|
8720
8720
|
};
|
|
8721
8721
|
|
|
@@ -46885,11 +46885,11 @@ var Snackbar = e.forwardRef(function (_a, ref) {
|
|
|
46885
46885
|
Snackbar.displayName = 'Snackbar';
|
|
46886
46886
|
|
|
46887
46887
|
var Shortcut = function (_a) {
|
|
46888
|
-
var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, tag = _a.tag, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count", "tag"]);
|
|
46888
|
+
var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, badge = _a.badge, tag = _a.tag, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count", "badge", "tag"]);
|
|
46889
46889
|
return (e.createElement("div", __assign$1({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', count && 'ods-shortcut--with-badge', "ods-shortcut--".concat(orientation)) }, rest),
|
|
46890
46890
|
blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
|
|
46891
46891
|
e.createElement(At, null))),
|
|
46892
|
-
!blocked && count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: disabled ? 'neutral' : 'alert', count: count })) : null,
|
|
46892
|
+
!blocked && (count || badge) ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: disabled ? 'neutral' : 'alert', count: count }, badge)) : null,
|
|
46893
46893
|
!blocked && tag && orientation === 'vertical' && (e.createElement(Tag, { className: "ods-shortcut__tag", variant: "highlight", type: "important" }, tag)),
|
|
46894
46894
|
e.createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46895
46895
|
e.createElement("div", { className: "ods-shortcut__icon" }, icon),
|