@useblu/ocean-react 1.125.0 → 1.126.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
@@ -283,9 +283,14 @@ var Tag = e.forwardRef(function (_a, ref) {
283
283
  Tag.displayName = 'Tag';
284
284
 
285
285
  var SubHeader = e.forwardRef(function (_a, ref) {
286
- var children = _a.children, subtitle = _a.subtitle, className = _a.className, rest = __rest$1(_a, ["children", "subtitle", "className"]);
287
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-sub-header', className) }, rest),
288
- e.createElement("div", { className: "ods-sub-header__title" }, children),
286
+ var _b;
287
+ var children = _a.children, subtitle = _a.subtitle, icon = _a.icon, className = _a.className, _c = _a.size, size = _c === void 0 ? 'medium' : _c, rest = __rest$1(_a, ["children", "subtitle", "icon", "className", "size"]);
288
+ return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-sub-header', className, (_b = {},
289
+ _b["ods-sub-header--".concat(size)] = size,
290
+ _b)) }, rest),
291
+ e.createElement("div", { className: "ods-sub-header__title" },
292
+ icon && e.createElement("div", { className: "ods-sub-header__icon" }, icon),
293
+ children),
289
294
  subtitle && e.createElement("div", { className: "ods-sub-header__subtitle" }, subtitle)));
290
295
  });
291
296
  SubHeader.displayName = 'SubHeader';
@@ -47041,7 +47046,9 @@ var Shortcut = function (_a) {
47041
47046
 
47042
47047
  var CardListItem = e.forwardRef(function (_a, ref) {
47043
47048
  var title = _a.title, description = _a.description, caption = _a.caption, leadingIcon = _a.leadingIcon, actionIcon = _a.actionIcon, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, onClick = _a.onClick, loading = _a.loading, tag = _a.tag, rest = __rest$1(_a, ["title", "description", "caption", "leadingIcon", "actionIcon", "size", "disabled", "fullWidth", "onClick", "loading", "tag"]);
47044
- var tagElement = typeof tag === 'string' ? (e.createElement(Tag, { variant: "highlight", type: "important" }, tag)) : (e.createElement(Tag, __assign$1({}, tag)));
47049
+ var tagElement = typeof tag === 'string' ? (e.createElement(Tag, __assign$1({}, (disabled
47050
+ ? { variant: 'default', type: 'neutral' }
47051
+ : { variant: 'highlight', type: 'important' })), tag)) : (e.createElement(Tag, __assign$1({}, tag)));
47045
47052
  if (loading) {
47046
47053
  return (e.createElement("div", __assign$1({ ref: ref }, rest, { "data-testid": "card-list-item", className: classNames('ods-card-list-item', "ods-card-list-item--size-".concat(size), { 'ods-card-list-item--full-width': fullWidth }, {
47047
47054
  'ods-card-list-item--loading': loading,