@useblu/ocean-react 1.68.0 → 1.69.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 +6 -0
- package/CardListItem/CardListItem.d.ts +1 -0
- package/CardListItem/CardListItem.d.ts.map +1 -1
- package/index.es.js +4 -2
- package/index.es.js.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -48117,7 +48117,7 @@ var Shortcut = function (_a) {
|
|
|
48117
48117
|
};
|
|
48118
48118
|
|
|
48119
48119
|
var CardListItem = e.forwardRef(function (_a, ref) {
|
|
48120
|
-
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, rest = __rest$2(_a, ["title", "description", "caption", "leadingIcon", "actionIcon", "size", "disabled", "fullWidth", "onClick", "loading"]);
|
|
48120
|
+
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$2(_a, ["title", "description", "caption", "leadingIcon", "actionIcon", "size", "disabled", "fullWidth", "onClick", "loading", "tag"]);
|
|
48121
48121
|
return loading ? (e__default["default"].createElement("div", __assign$2({ 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 }, {
|
|
48122
48122
|
'ods-card-list-item--loading': loading
|
|
48123
48123
|
}) }),
|
|
@@ -48134,7 +48134,9 @@ var CardListItem = e.forwardRef(function (_a, ref) {
|
|
|
48134
48134
|
e__default["default"].createElement("div", { className: "ods-card-list-item__content__title" }, title),
|
|
48135
48135
|
description && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__description" }, description)),
|
|
48136
48136
|
caption && size === 'medium' && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
|
|
48137
|
-
|
|
48137
|
+
e__default["default"].createElement("div", { className: "ods-card-list-item__wrapper" },
|
|
48138
|
+
tag && (e__default["default"].createElement(Tag, { variant: "highlight", type: "important" }, tag)),
|
|
48139
|
+
actionIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__action" }, actionIcon)))));
|
|
48138
48140
|
});
|
|
48139
48141
|
CardListItem.displayName = 'CardListItem';
|
|
48140
48142
|
|