@useblu/ocean-react 1.68.0 → 1.69.1
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 +12 -0
- package/CardListItem/CardListItem.d.ts +1 -0
- package/CardListItem/CardListItem.d.ts.map +1 -1
- package/Checkbox/Checkbox.d.ts +2 -0
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/index.es.js +11 -7
- package/index.es.js.map +1 -1
- package/index.js +11 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
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.69.1](https://github.com/ocean-ds/ocean-web/compare/v1.69.0...v1.69.1) (2024-11-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- checkbox border radius ([#1120](https://github.com/ocean-ds/ocean-web/issues/1120)) ([821429d](https://github.com/ocean-ds/ocean-web/commit/821429d660f275319657518cf77c1c828d3344bf))
|
|
11
|
+
|
|
12
|
+
# [1.69.0](https://github.com/ocean-ds/ocean-web/compare/v1.68.1...v1.69.0) (2024-08-21)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- 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))
|
|
17
|
+
|
|
6
18
|
# [1.68.0](https://github.com/ocean-ds/ocean-web/compare/v1.67.0...v1.68.0) (2024-08-15)
|
|
7
19
|
|
|
8
20
|
### 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;
|
|
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/Checkbox/Checkbox.d.ts
CHANGED
|
@@ -3,11 +3,13 @@ export declare type CheckboxProps = {
|
|
|
3
3
|
label?: React.ReactNode;
|
|
4
4
|
indeterminate?: boolean;
|
|
5
5
|
error?: boolean;
|
|
6
|
+
errorMessage?: string;
|
|
6
7
|
} & React.ComponentPropsWithoutRef<'input'>;
|
|
7
8
|
declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
8
9
|
label?: React.ReactNode;
|
|
9
10
|
indeterminate?: boolean | undefined;
|
|
10
11
|
error?: boolean | undefined;
|
|
12
|
+
errorMessage?: string | undefined;
|
|
11
13
|
} & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
12
14
|
export default Checkbox;
|
|
13
15
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,oBAAY,aAAa,GAAG;IAI1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAOxB,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,KAAK,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,oBAAY,aAAa,GAAG;IAI1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAOxB,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAKhB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,QAAQ;YApBJ,MAAM,SAAS;;;;oMAuDxB,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -6635,11 +6635,13 @@ var TokenInput = memo(function (_a) {
|
|
|
6635
6635
|
TokenInput.displayName = 'TokenInput';
|
|
6636
6636
|
|
|
6637
6637
|
var Checkbox = e.forwardRef(function (_a, ref) {
|
|
6638
|
-
var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$2(_a, ["error", "className", "label", "id", "indeterminate"]);
|
|
6639
|
-
return (e.createElement("
|
|
6640
|
-
e.createElement("
|
|
6641
|
-
|
|
6642
|
-
|
|
6638
|
+
var error = _a.error, errorMessage = _a.errorMessage, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$2(_a, ["error", "errorMessage", "className", "label", "id", "indeterminate"]);
|
|
6639
|
+
return (e.createElement("div", { className: "ods-checkbox__root-container" },
|
|
6640
|
+
e.createElement("label", { className: "ods-checkbox__root", htmlFor: id },
|
|
6641
|
+
e.createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
|
|
6642
|
+
e.createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
|
|
6643
|
+
label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))),
|
|
6644
|
+
error && errorMessage && (e.createElement("span", { className: "ods-checkbox__root-container__error-message" }, errorMessage))));
|
|
6643
6645
|
});
|
|
6644
6646
|
Checkbox.displayName = 'Checkbox';
|
|
6645
6647
|
|
|
@@ -48108,7 +48110,7 @@ var Shortcut = function (_a) {
|
|
|
48108
48110
|
};
|
|
48109
48111
|
|
|
48110
48112
|
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"]);
|
|
48113
|
+
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
48114
|
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
48115
|
'ods-card-list-item--loading': loading
|
|
48114
48116
|
}) }),
|
|
@@ -48125,7 +48127,9 @@ var CardListItem = forwardRef(function (_a, ref) {
|
|
|
48125
48127
|
e.createElement("div", { className: "ods-card-list-item__content__title" }, title),
|
|
48126
48128
|
description && (e.createElement("div", { className: "ods-card-list-item__content__description" }, description)),
|
|
48127
48129
|
caption && size === 'medium' && (e.createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
|
|
48128
|
-
|
|
48130
|
+
e.createElement("div", { className: "ods-card-list-item__wrapper" },
|
|
48131
|
+
tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag)),
|
|
48132
|
+
actionIcon && (e.createElement("div", { className: "ods-card-list-item__action" }, actionIcon)))));
|
|
48129
48133
|
});
|
|
48130
48134
|
CardListItem.displayName = 'CardListItem';
|
|
48131
48135
|
|