@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 CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.69.0](https://github.com/ocean-ds/ocean-web/compare/v1.68.1...v1.69.0) (2024-08-21)
7
+
8
+ ### Features
9
+
10
+ - add optionally tag on card list item ([#1119](https://github.com/ocean-ds/ocean-web/issues/1119)) ([d300d12](https://github.com/ocean-ds/ocean-web/commit/d300d1282d6910555304f358bfd4dfe9d4991da3))
11
+
6
12
  # [1.68.0](https://github.com/ocean-ds/ocean-web/compare/v1.67.0...v1.68.0) (2024-08-15)
7
13
 
8
14
  ### Features
@@ -8,6 +8,7 @@ declare const CardListItem: React.ForwardRefExoticComponent<{
8
8
  size?: "small" | "medium" | undefined;
9
9
  disabled?: boolean | undefined;
10
10
  fullWidth?: boolean | undefined;
11
+ tag?: string | undefined;
11
12
  onClick?: (() => void) | undefined;
12
13
  loading?: boolean | undefined;
13
14
  } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"CardListItem.d.ts","sourceRoot":"","sources":["../../src/CardListItem/CardListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA8CpE,QAAA,MAAM,YAAY;WAvCT,MAAM;;;iBAYA,MAAM,SAAS;kBAId,MAAM,SAAS;;;;qBAgBb,IAAI;;kLAmFrB,CAAC;AAIF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"CardListItem.d.ts","sourceRoot":"","sources":["../../src/CardListItem/CardListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAmDpE,QAAA,MAAM,YAAY;WA3CT,MAAM;;;iBAYA,MAAM,SAAS;kBAId,MAAM,SAAS;;;;;qBAoBb,IAAI;;kLA2FrB,CAAC;AAIF,eAAe,YAAY,CAAC"}
package/index.es.js CHANGED
@@ -48108,7 +48108,7 @@ var Shortcut = function (_a) {
48108
48108
  };
48109
48109
 
48110
48110
  var CardListItem = forwardRef(function (_a, ref) {
48111
- 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"]);
48111
+ 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"]);
48112
48112
  return loading ? (e.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 }, {
48113
48113
  'ods-card-list-item--loading': loading
48114
48114
  }) }),
@@ -48125,7 +48125,9 @@ var CardListItem = forwardRef(function (_a, ref) {
48125
48125
  e.createElement("div", { className: "ods-card-list-item__content__title" }, title),
48126
48126
  description && (e.createElement("div", { className: "ods-card-list-item__content__description" }, description)),
48127
48127
  caption && size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
48128
- actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
48128
+ e.createElement("div", { className: "ods-card-list-item__wrapper" },
48129
+ tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag)),
48130
+ actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon)))));
48129
48131
  });
48130
48132
  CardListItem.displayName = 'CardListItem';
48131
48133