@useblu/ocean-react 1.48.1 → 1.50.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
@@ -46236,10 +46236,10 @@ var Breadcrumb = e.forwardRef(function (_a, ref) {
46236
46236
  var items = _a.items, className = _a.className, rest = __rest$1(_a, ["items", "className"]);
46237
46237
  return (e__default["default"].createElement("div", __assign$1({ className: classNames('ods-breadcrumb', className), ref: ref }, rest), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
46238
46238
  var showIcon = index !== items.length - 1 && (e__default["default"].createElement(ee, { size: 12 }));
46239
- return typeof item === 'string' ? (e__default["default"].createElement("div", { key: "string-item-".concat(item) },
46239
+ return typeof item === 'string' ? (e__default["default"].createElement("div", { className: "ods-breadcrumb__item", key: "string-item-".concat(item) },
46240
46240
  e__default["default"].createElement("span", null, item),
46241
46241
  " ",
46242
- showIcon)) : (e__default["default"].createElement("div", { key: "tag-item-".concat(index + 1) },
46242
+ showIcon)) : (e__default["default"].createElement("div", { className: "ods-breadcrumb__item", key: "tag-item-".concat(index + 1) },
46243
46243
  item,
46244
46244
  " ",
46245
46245
  showIcon));
@@ -46361,10 +46361,25 @@ var Shortcut = function (_a) {
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
+ var CardListItem = function (_a) {
46365
+ 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;
46366
+ return (e__default["default"].createElement("div", { "data-testid": "card-list-item", className: classNames('ods-card-list-item', "ods-card-list-item--size-".concat(size), { 'ods-card-list-item--disabled': disabled }, { 'ods-card-list-item--full-width': fullWidth }), onClick: function () {
46367
+ if (!disabled && onClick)
46368
+ onClick();
46369
+ } },
46370
+ leadingIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__leading-icon" }, leadingIcon)),
46371
+ e__default["default"].createElement("div", { className: "ods-card-list-item__content" },
46372
+ e__default["default"].createElement("div", { className: "ods-card-list-item__content__title" }, title),
46373
+ description && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__description" }, description)),
46374
+ caption && size === 'medium' && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
46375
+ actionIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
46376
+ };
46377
+
46364
46378
  exports.Alert = Alert;
46365
46379
  exports.Badge = Badge;
46366
46380
  exports.Breadcrumb = Breadcrumb;
46367
46381
  exports.Button = Button$1;
46382
+ exports.CardListItem = CardListItem;
46368
46383
  exports.Carousel = Carousel;
46369
46384
  exports.Chart = DoughnutChart;
46370
46385
  exports.Checkbox = Checkbox;