@useblu/ocean-react 1.63.0 → 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 +6 -0
- package/CardListItem/CardListItem.d.ts +9 -9
- package/CardListItem/CardListItem.d.ts.map +1 -1
- package/index.es.js +13 -5
- package/index.es.js.map +1 -1
- package/index.js +13 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
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.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
|
+
|
|
6
12
|
# [1.63.0](https://github.com/ocean-ds/ocean-web/compare/v1.62.2...v1.63.0) (2024-06-20)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
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?:
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
|
|
13
|
-
|
|
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,
|
|
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"}
|
package/index.es.js
CHANGED
|
@@ -47878,19 +47878,27 @@ var Shortcut = function (_a) {
|
|
|
47878
47878
|
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
|
|
47879
47879
|
};
|
|
47880
47880
|
|
|
47881
|
-
var CardListItem = function (_a) {
|
|
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;
|
|
47883
|
-
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--
|
|
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 () {
|
|
47884
47891
|
if (!disabled && onClick)
|
|
47885
47892
|
onClick();
|
|
47886
|
-
} },
|
|
47893
|
+
} }),
|
|
47887
47894
|
leadingIcon && (e.createElement("div", { className: "ods-card-list-item__leading-icon" }, leadingIcon)),
|
|
47888
47895
|
e.createElement("div", { className: "ods-card-list-item__content" },
|
|
47889
47896
|
e.createElement("div", { className: "ods-card-list-item__content__title" }, title),
|
|
47890
47897
|
description && (e.createElement("div", { className: "ods-card-list-item__content__description" }, description)),
|
|
47891
47898
|
caption && size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
|
|
47892
47899
|
actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
|
|
47893
|
-
};
|
|
47900
|
+
});
|
|
47901
|
+
CardListItem.displayName = 'CardListItem';
|
|
47894
47902
|
|
|
47895
47903
|
var Options = function (_a) {
|
|
47896
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;
|