@useblu/ocean-react 1.46.3 → 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/index.js CHANGED
@@ -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
- ['medium', 'large'].includes(size) && description && (e__default["default"].createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
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;