@useblu/ocean-react 1.49.0 → 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
@@ -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;