@useblu/ocean-react 1.69.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 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.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
+
6
12
  # [1.69.0](https://github.com/ocean-ds/ocean-web/compare/v1.68.1...v1.69.0) (2024-08-21)
7
13
 
8
14
  ### Features
@@ -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;CACjB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,QAAQ;YAfJ,MAAM,SAAS;;;oMAwCxB,CAAC;AAIF,eAAe,QAAQ,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("label", { className: "ods-checkbox__root", htmlFor: id },
6640
- e.createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
6641
- e.createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
6642
- label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))));
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