@useblu/ocean-react 1.125.0 → 1.126.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,18 @@
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.126.0](https://github.com/ocean-ds/ocean-web/compare/v1.125.1...v1.126.0) (2026-01-14)
7
+
8
+ ### Features
9
+
10
+ - include icon prop on SubHeader ([#1218](https://github.com/ocean-ds/ocean-web/issues/1218)) ([793d4e6](https://github.com/ocean-ds/ocean-web/commit/793d4e61168d107b7361c344c0d9d4b252603464))
11
+
12
+ ## [1.125.1](https://github.com/ocean-ds/ocean-web/compare/v1.125.0...v1.125.1) (2026-01-13)
13
+
14
+ ### Bug Fixes
15
+
16
+ - adjust styles of card list item disabled ([#1219](https://github.com/ocean-ds/ocean-web/issues/1219)) ([0507e8e](https://github.com/ocean-ds/ocean-web/commit/0507e8ee03060df31843d14e6e2598d2490d98de))
17
+
6
18
  # [1.125.0](https://github.com/ocean-ds/ocean-web/compare/v1.124.0...v1.125.0) (2026-01-13)
7
19
 
8
20
  ### Features
@@ -1 +1 @@
1
- {"version":3,"file":"CardListItem.d.ts","sourceRoot":"","sources":["../../src/CardListItem/CardListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiDtC,QAAA,MAAM,YAAY;WA3CT,MAAM;kBAIC,MAAM;cAIV,MAAM;iBAIH,KAAK,CAAC,SAAS;kBAId,KAAK,CAAC,SAAS;WAItB,OAAO,GAAG,QAAQ;eAId,OAAO;gBAIN,OAAO;UAIb,MAAM,GAAG,QAAQ;cAIb,MAAM,IAAI;cAIV,OAAO;kLAiGlB,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;AAGpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiDtC,QAAA,MAAM,YAAY;WA3CT,MAAM;kBAIC,MAAM;cAIV,MAAM;iBAIH,KAAK,CAAC,SAAS;kBAId,KAAK,CAAC,SAAS;WAItB,OAAO,GAAG,QAAQ;eAId,OAAO;gBAIN,OAAO;UAIb,MAAM,GAAG,QAAQ;cAIb,MAAM,IAAI;cAIV,OAAO;kLAqGlB,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
2
  export type SubHeaderProps = {
3
3
  subtitle?: string | React.ReactElement;
4
+ icon?: React.ReactNode;
5
+ size?: 'small' | 'medium';
4
6
  } & React.ComponentPropsWithoutRef<'div'>;
5
7
  declare const SubHeader: React.ForwardRefExoticComponent<{
6
8
  subtitle?: string | React.ReactElement;
9
+ icon?: React.ReactNode;
10
+ size?: "small" | "medium";
7
11
  } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
8
12
  export default SubHeader;
9
13
  //# sourceMappingURL=SubHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubHeader.d.ts","sourceRoot":"","sources":["../../src/SubHeader/SubHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,cAAc,GAAG;IAM3B,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;CACxC,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,SAAS;eAHF,MAAM,GAAG,KAAK,CAAC,YAAY;kLAcvC,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"SubHeader.d.ts","sourceRoot":"","sources":["../../src/SubHeader/SubHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,cAAc,GAAG;IAM3B,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAMvC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAKvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,SAAS;eAdF,MAAM,GAAG,KAAK,CAAC,YAAY;WAM/B,KAAK,CAAC,SAAS;WAKf,OAAO,GAAG,QAAQ;kLAmB1B,CAAC;AAIF,eAAe,SAAS,CAAC"}
package/index.es.js CHANGED
@@ -281,9 +281,14 @@ var Tag = e.forwardRef(function (_a, ref) {
281
281
  Tag.displayName = 'Tag';
282
282
 
283
283
  var SubHeader = e.forwardRef(function (_a, ref) {
284
- var children = _a.children, subtitle = _a.subtitle, className = _a.className, rest = __rest$1(_a, ["children", "subtitle", "className"]);
285
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-sub-header', className) }, rest),
286
- e.createElement("div", { className: "ods-sub-header__title" }, children),
284
+ var _b;
285
+ var children = _a.children, subtitle = _a.subtitle, icon = _a.icon, className = _a.className, _c = _a.size, size = _c === void 0 ? 'medium' : _c, rest = __rest$1(_a, ["children", "subtitle", "icon", "className", "size"]);
286
+ return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-sub-header', className, (_b = {},
287
+ _b["ods-sub-header--".concat(size)] = size,
288
+ _b)) }, rest),
289
+ e.createElement("div", { className: "ods-sub-header__title" },
290
+ icon && e.createElement("div", { className: "ods-sub-header__icon" }, icon),
291
+ children),
287
292
  subtitle && e.createElement("div", { className: "ods-sub-header__subtitle" }, subtitle)));
288
293
  });
289
294
  SubHeader.displayName = 'SubHeader';
@@ -47039,7 +47044,9 @@ var Shortcut = function (_a) {
47039
47044
 
47040
47045
  var CardListItem = forwardRef(function (_a, ref) {
47041
47046
  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"]);
47042
- var tagElement = typeof tag === 'string' ? (e.createElement(Tag, { variant: "highlight", type: "important" }, tag)) : (e.createElement(Tag, __assign$1({}, tag)));
47047
+ var tagElement = typeof tag === 'string' ? (e.createElement(Tag, __assign$1({}, (disabled
47048
+ ? { variant: 'default', type: 'neutral' }
47049
+ : { variant: 'highlight', type: 'important' })), tag)) : (e.createElement(Tag, __assign$1({}, tag)));
47043
47050
  if (loading) {
47044
47051
  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 }, {
47045
47052
  'ods-card-list-item--loading': loading,