@useblu/ocean-react 1.63.0 → 1.65.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/Accordion/Accordion.d.ts.map +1 -1
- package/CHANGELOG.md +12 -0
- package/CardListItem/CardListItem.d.ts +9 -9
- package/CardListItem/CardListItem.d.ts.map +1 -1
- package/Link/Link.d.ts +4 -2
- package/Link/Link.d.ts.map +1 -1
- package/index.es.js +20 -8
- package/index.es.js.map +1 -1
- package/index.js +20 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/Accordion.tsx"],"names":[],"mappings":";AAIA,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,SAAS,uCAIZ,cAAc,KAAG,
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/Accordion.tsx"],"names":[],"mappings":";AAIA,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,SAAS,uCAIZ,cAAc,KAAG,WAkCnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
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.65.0](https://github.com/ocean-ds/ocean-web/compare/v1.64.0...v1.65.0) (2024-06-26)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- update link ([#1111](https://github.com/ocean-ds/ocean-web/issues/1111)) ([8aa0bf2](https://github.com/ocean-ds/ocean-web/commit/8aa0bf2c4ad0c82e5a4f0c66595d8883edea93c8))
|
|
11
|
+
|
|
12
|
+
# [1.64.0](https://github.com/ocean-ds/ocean-web/compare/v1.63.1...v1.64.0) (2024-06-26)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- 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))
|
|
17
|
+
|
|
6
18
|
# [1.63.0](https://github.com/ocean-ds/ocean-web/compare/v1.62.2...v1.63.0) (2024-06-20)
|
|
7
19
|
|
|
8
20
|
### 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/Link/Link.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export declare type LinkProps = {
|
|
3
3
|
variant?: 'primary' | 'inverse' | 'neutral';
|
|
4
|
-
size?: 'sm' | 'md';
|
|
4
|
+
size?: 'sm' | 'md' | 'tiny';
|
|
5
5
|
icon?: 'linkChevron' | 'externalLink';
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
} & ComponentPropsWithoutRef<'a'>;
|
|
7
8
|
declare const Link: React.ForwardRefExoticComponent<{
|
|
8
9
|
variant?: "primary" | "inverse" | "neutral" | undefined;
|
|
9
|
-
size?: "sm" | "md" | undefined;
|
|
10
|
+
size?: "sm" | "md" | "tiny" | undefined;
|
|
10
11
|
icon?: "linkChevron" | "externalLink" | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
11
13
|
} & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
14
|
export default Link;
|
|
13
15
|
//# sourceMappingURL=Link.d.ts.map
|
package/Link/Link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAKpE,oBAAY,SAAS,GAAG;IAKtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAK5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAKpE,oBAAY,SAAS,GAAG;IAKtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAK5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAK5B,IAAI,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI;;;;;0MAkCT,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -325,7 +325,7 @@ var Accordion = function (_a) {
|
|
|
325
325
|
return (e.createElement("div", { className: classNames('ods-accordion', className) },
|
|
326
326
|
e.createElement("button", { onClick: onHandleAccordion, type: "button", className: classNames('ods-accordion__header', {
|
|
327
327
|
'ods-accordion__header--collapsed': isCollapsed
|
|
328
|
-
}), "aria-expanded": !isCollapsed },
|
|
328
|
+
}), "aria-expanded": !isCollapsed, "data-testid": "accordion-header" },
|
|
329
329
|
title,
|
|
330
330
|
e.createElement(J, { className: classNames('ods-accordion__icon', {
|
|
331
331
|
'ods-accordion__icon--rotated': isCollapsed
|
|
@@ -398,8 +398,12 @@ var LinkIcons = e.memo(function (_a) {
|
|
|
398
398
|
LinkIcons.displayName = 'LinkIcons';
|
|
399
399
|
|
|
400
400
|
var Link = forwardRef(function (_a, ref) {
|
|
401
|
-
var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon"]);
|
|
402
|
-
return (e.createElement("a", __assign$2({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className
|
|
401
|
+
var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, disabled = _a.disabled, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon", "disabled"]);
|
|
402
|
+
return (e.createElement("a", __assign$2({ "aria-disabled": disabled, ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className, {
|
|
403
|
+
'ods-link--disabled': disabled,
|
|
404
|
+
'ods-link--chevron': icon === 'linkChevron',
|
|
405
|
+
'ods-link--external': icon === 'externalLink'
|
|
406
|
+
}) }, rest),
|
|
403
407
|
e.createElement("span", { className: "ods-link__content" }, children),
|
|
404
408
|
e.createElement(LinkIcons, { icon: icon })));
|
|
405
409
|
});
|
|
@@ -47878,19 +47882,27 @@ var Shortcut = function (_a) {
|
|
|
47878
47882
|
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
|
|
47879
47883
|
};
|
|
47880
47884
|
|
|
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--
|
|
47885
|
+
var CardListItem = forwardRef(function (_a, ref) {
|
|
47886
|
+
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"]);
|
|
47887
|
+
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 }, {
|
|
47888
|
+
'ods-card-list-item--loading': loading
|
|
47889
|
+
}) }),
|
|
47890
|
+
e.createElement("div", { className: "ods-card-list-item__circle" }),
|
|
47891
|
+
e.createElement("div", { className: "ods-card-list-item__lines" },
|
|
47892
|
+
e.createElement("div", { className: "ods-card-list-item__lines__line1" }),
|
|
47893
|
+
e.createElement("div", { className: "ods-card-list-item__lines__line2" }),
|
|
47894
|
+
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
47895
|
if (!disabled && onClick)
|
|
47885
47896
|
onClick();
|
|
47886
|
-
} },
|
|
47897
|
+
} }),
|
|
47887
47898
|
leadingIcon && (e.createElement("div", { className: "ods-card-list-item__leading-icon" }, leadingIcon)),
|
|
47888
47899
|
e.createElement("div", { className: "ods-card-list-item__content" },
|
|
47889
47900
|
e.createElement("div", { className: "ods-card-list-item__content__title" }, title),
|
|
47890
47901
|
description && (e.createElement("div", { className: "ods-card-list-item__content__description" }, description)),
|
|
47891
47902
|
caption && size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
|
|
47892
47903
|
actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
|
|
47893
|
-
};
|
|
47904
|
+
});
|
|
47905
|
+
CardListItem.displayName = 'CardListItem';
|
|
47894
47906
|
|
|
47895
47907
|
var Options = function (_a) {
|
|
47896
47908
|
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;
|