@useblu/ocean-react 1.32.0 → 1.33.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/Checkbox/Checkbox.d.ts +2 -0
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/index.es.js +2 -2
- package/index.es.js.map +1 -1
- package/index.js +2 -2
- 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.33.0](https://github.com/ocean-ds/ocean-web/compare/v1.32.0...v1.33.0) (2022-07-07)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add checkbox error state ([#982](https://github.com/ocean-ds/ocean-web/issues/982)) ([e36081e](https://github.com/ocean-ds/ocean-web/commit/e36081ec995356f5f7215d158bfcca66c24e1153))
|
|
11
|
+
|
|
6
12
|
# [1.32.0](https://github.com/ocean-ds/ocean-web/compare/v1.31.4...v1.32.0) (2022-06-30)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/Checkbox/Checkbox.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import React from 'react';
|
|
|
2
2
|
export declare type CheckboxProps = {
|
|
3
3
|
label?: React.ReactNode;
|
|
4
4
|
indeterminate?: boolean;
|
|
5
|
+
error?: boolean;
|
|
5
6
|
} & React.ComponentPropsWithoutRef<'input'>;
|
|
6
7
|
declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
7
8
|
label?: React.ReactNode;
|
|
8
9
|
indeterminate?: boolean | undefined;
|
|
10
|
+
error?: boolean | undefined;
|
|
9
11
|
} & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
10
12
|
export default Checkbox;
|
|
11
13
|
//# 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;
|
|
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;CACjB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,QAAQ;YAfJ,MAAM,SAAS;;;oMA6CxB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -4962,10 +4962,10 @@ var Input = e$1.forwardRef(function Input(_a, ref) {
|
|
|
4962
4962
|
});
|
|
4963
4963
|
|
|
4964
4964
|
var Checkbox = e$1.forwardRef(function Checkbox(_a, ref) {
|
|
4965
|
-
var className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest(_a, ["className", "label", "id", "indeterminate"]);
|
|
4965
|
+
var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest(_a, ["error", "className", "label", "id", "indeterminate"]);
|
|
4966
4966
|
return (e$1.createElement("label", { className: "ods-checkbox__root", htmlFor: id },
|
|
4967
4967
|
e$1.createElement("input", __assign({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
|
|
4968
|
-
e$1.createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate') }),
|
|
4968
|
+
e$1.createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
|
|
4969
4969
|
label && (e$1.createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))));
|
|
4970
4970
|
});
|
|
4971
4971
|
|