@useblu/ocean-react 1.125.0 → 1.125.1
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.map +1 -1
- package/index.es.js +3 -1
- package/index.es.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -47041,7 +47041,9 @@ var Shortcut = function (_a) {
|
|
|
47041
47041
|
|
|
47042
47042
|
var CardListItem = e.forwardRef(function (_a, ref) {
|
|
47043
47043
|
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,
|
|
47044
|
+
var tagElement = typeof tag === 'string' ? (e.createElement(Tag, __assign$1({}, (disabled
|
|
47045
|
+
? { variant: 'default', type: 'neutral' }
|
|
47046
|
+
: { variant: 'highlight', type: 'important' })), tag)) : (e.createElement(Tag, __assign$1({}, tag)));
|
|
47045
47047
|
if (loading) {
|
|
47046
47048
|
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
47049
|
'ods-card-list-item--loading': loading,
|