@useblu/ocean-react 1.46.2 → 1.47.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 +12 -0
- package/Shortcut/Shortcut.d.ts +4 -2
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +5 -5
- package/index.es.js.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -46285,7 +46285,7 @@ var Drawer = function (_a) {
|
|
|
46285
46285
|
e.useEffect(function () {
|
|
46286
46286
|
attachDrawer();
|
|
46287
46287
|
}, [anchorEl, drawerRef, attachDrawer]);
|
|
46288
|
-
return (e__default["default"].createElement("div", { className: classNames('ods-overlay', open && 'ods-overlay--open'), "aria-hidden": "true", onClick: handleOverlayClose, ref: drawerRef, "data-
|
|
46288
|
+
return (e__default["default"].createElement("div", { className: classNames('ods-overlay', open && 'ods-overlay--open'), "aria-hidden": "true", onClick: handleOverlayClose, ref: drawerRef, "data-testid": "drawer-overlay" },
|
|
46289
46289
|
e__default["default"].createElement("div", { className: classNames('ods-drawer', open && 'ods-drawer--open', "ods-drawer--".concat(align)), onMouseLeave: onMouseOutDrawer },
|
|
46290
46290
|
e__default["default"].createElement("div", { className: classNames('ods-drawer__content--header', "ods-drawer__content--header--".concat(iconAlignment)) },
|
|
46291
46291
|
e__default["default"].createElement(Button$1, { type: "button", onClick: onDrawerClose }, headerIcon)),
|
|
@@ -46350,15 +46350,15 @@ var Snackbar = e__default["default"].forwardRef(function (_a, ref) {
|
|
|
46350
46350
|
Snackbar.displayName = 'Snackbar';
|
|
46351
46351
|
|
|
46352
46352
|
var Shortcut = function (_a) {
|
|
46353
|
-
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, count = _a.count, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "count"]);
|
|
46354
|
-
return (e__default["default"].createElement("div", __assign$1({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled') }, rest),
|
|
46353
|
+
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, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
|
|
46354
|
+
return (e__default["default"].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', "ods-shortcut--".concat(orientation)) }, rest),
|
|
46355
46355
|
blocked && (e__default["default"].createElement("div", { className: "ods-shortcut__blocked" },
|
|
46356
46356
|
e__default["default"].createElement(jr, null))),
|
|
46357
46357
|
count ? (e__default["default"].createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
|
|
46358
|
-
e__default["default"].createElement("div", { className: "ods-shortcut__content" },
|
|
46358
|
+
e__default["default"].createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46359
46359
|
e__default["default"].createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46360
46360
|
e__default["default"].createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography', 'ods-typography__heading5') }, label)),
|
|
46361
|
-
|
|
46361
|
+
size === 'medium' && description && (e__default["default"].createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
|
|
46362
46362
|
};
|
|
46363
46363
|
|
|
46364
46364
|
exports.Alert = Alert;
|