@useblu/ocean-react 1.62.1 → 1.64.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.64.0](https://github.com/ocean-ds/ocean-web/compare/v1.63.1...v1.64.0) (2024-06-26)
7
+
8
+ ### Features
9
+
10
+ - update card list item component ([#1113](https://github.com/ocean-ds/ocean-web/issues/1113)) ([1c8cf3d](https://github.com/ocean-ds/ocean-web/commit/1c8cf3df19e2d0313d11a06975e845fcf23788a4))
11
+
12
+ # [1.63.0](https://github.com/ocean-ds/ocean-web/compare/v1.62.2...v1.63.0) (2024-06-20)
13
+
14
+ ### Features
15
+
16
+ - update typography ([#1109](https://github.com/ocean-ds/ocean-web/issues/1109)) ([aed315b](https://github.com/ocean-ds/ocean-web/commit/aed315be06fc0188481a278a5996be6d44d3bb90))
17
+
6
18
  ## [1.62.1](https://github.com/ocean-ds/ocean-web/compare/v1.62.0...v1.62.1) (2024-06-17)
7
19
 
8
20
  **Note:** Version bump only for package @useblu/ocean-react
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- interface CardListItemProps {
2
+ declare const CardListItem: React.ForwardRefExoticComponent<{
3
3
  title: string;
4
- description?: string;
5
- caption?: string;
4
+ description?: string | undefined;
5
+ caption?: string | undefined;
6
6
  actionIcon?: React.ReactNode;
7
7
  leadingIcon?: React.ReactNode;
8
- size?: 'small' | 'medium';
9
- disabled?: boolean;
10
- fullWidth?: boolean;
11
- onClick?: () => void;
12
- }
13
- declare const CardListItem: ({ title, description, caption, leadingIcon, actionIcon, size, disabled, fullWidth, onClick, }: CardListItemProps) => JSX.Element;
8
+ size?: "small" | "medium" | undefined;
9
+ disabled?: boolean | undefined;
10
+ fullWidth?: boolean | undefined;
11
+ onClick?: (() => void) | undefined;
12
+ loading?: boolean | undefined;
13
+ } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
14
14
  export default CardListItem;
15
15
  //# sourceMappingURL=CardListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardListItem.d.ts","sourceRoot":"","sources":["../../src/CardListItem/CardListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,YAAY,kGAUf,iBAAiB,KAAG,WA+BtB,CAAC;AAEF,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;AA8CpE,QAAA,MAAM,YAAY;WAvCT,MAAM;;;iBAYA,MAAM,SAAS;kBAId,MAAM,SAAS;;;;qBAgBb,IAAI;;kLAmFrB,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const defaultTypesMapping: Record<string, string>;
3
- export declare type Variant = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'subtitle1' | 'subtitle2' | 'paragraph' | 'lead' | 'description' | 'caption';
3
+ export declare type Variant = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'subtitle1' | 'subtitle2' | 'paragraph' | 'lead' | 'description' | 'caption' | 'captionbold' | 'eyebrow';
4
4
  export declare type TypographyProps = {
5
5
  variant: Variant;
6
6
  inverse?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAYtD,CAAC;AAEF,oBAAY,OAAO,GACf,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,MAAM,GACN,aAAa,GACb,SAAS,CAAC;AAEd,oBAAY,eAAe,GAAG;IAI5B,OAAO,EAAE,OAAO,CAAC;IAKjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,UAAU;aAZL,OAAO;;cASN,MAAM,SAAS;8KAqB1B,CAAC;AAIF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CActD,CAAC;AAEF,oBAAY,OAAO,GACf,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,MAAM,GACN,aAAa,GACb,SAAS,GACT,aAAa,GACb,SAAS,CAAC;AAEd,oBAAY,eAAe,GAAG;IAI5B,OAAO,EAAE,OAAO,CAAC;IAKjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,UAAU;aAZL,OAAO;;cASN,MAAM,SAAS;8KAqB1B,CAAC;AAIF,eAAe,UAAU,CAAC"}
package/index.es.js CHANGED
@@ -147,7 +147,9 @@ var defaultTypesMapping = {
147
147
  paragraph: 'p',
148
148
  lead: 'p',
149
149
  description: 'p',
150
- caption: 'p'
150
+ caption: 'p',
151
+ captionbold: 'p',
152
+ eyebrow: 'p'
151
153
  };
152
154
  var Typography = e.forwardRef(function (_a, ref) {
153
155
  var children = _a.children, variant = _a.variant, className = _a.className, _b = _a.inverse, inverse = _b === void 0 ? false : _b, rest = __rest$2(_a, ["children", "variant", "className", "inverse"]);
@@ -47876,19 +47878,27 @@ var Shortcut = function (_a) {
47876
47878
  size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
47877
47879
  };
47878
47880
 
47879
- var CardListItem = function (_a) {
47880
- 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;
47881
- return (e.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 () {
47881
+ var CardListItem = forwardRef(function (_a, ref) {
47882
+ 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"]);
47883
+ 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 }, {
47884
+ 'ods-card-list-item--loading': loading
47885
+ }) }),
47886
+ e.createElement("div", { className: "ods-card-list-item__circle" }),
47887
+ e.createElement("div", { className: "ods-card-list-item__lines" },
47888
+ e.createElement("div", { className: "ods-card-list-item__lines__line1" }),
47889
+ e.createElement("div", { className: "ods-card-list-item__lines__line2" }),
47890
+ size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__lines__line3" }))))) : (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--disabled': disabled }, { 'ods-card-list-item--full-width': fullWidth }), onClick: function () {
47882
47891
  if (!disabled && onClick)
47883
47892
  onClick();
47884
- } },
47893
+ } }),
47885
47894
  leadingIcon && (e.createElement("div", { className: "ods-card-list-item__leading-icon" }, leadingIcon)),
47886
47895
  e.createElement("div", { className: "ods-card-list-item__content" },
47887
47896
  e.createElement("div", { className: "ods-card-list-item__content__title" }, title),
47888
47897
  description && (e.createElement("div", { className: "ods-card-list-item__content__description" }, description)),
47889
47898
  caption && size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
47890
47899
  actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
47891
- };
47900
+ });
47901
+ CardListItem.displayName = 'CardListItem';
47892
47902
 
47893
47903
  var Options = function (_a) {
47894
47904
  var options = _a.options, selectedOptions = _a.selectedOptions, clearLabel = _a.clearLabel, filterLabel = _a.filterLabel, multiChoice = _a.multiChoice, onSelect = _a.onSelect, filterOptions = _a.filterOptions, clearOptions = _a.clearOptions;