@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/index.js
CHANGED
|
@@ -4971,10 +4971,10 @@ var Input = e__default["default"].forwardRef(function Input(_a, ref) {
|
|
|
4971
4971
|
});
|
|
4972
4972
|
|
|
4973
4973
|
var Checkbox = e__default["default"].forwardRef(function Checkbox(_a, ref) {
|
|
4974
|
-
var className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest(_a, ["className", "label", "id", "indeterminate"]);
|
|
4974
|
+
var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest(_a, ["error", "className", "label", "id", "indeterminate"]);
|
|
4975
4975
|
return (e__default["default"].createElement("label", { className: "ods-checkbox__root", htmlFor: id },
|
|
4976
4976
|
e__default["default"].createElement("input", __assign({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
|
|
4977
|
-
e__default["default"].createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate') }),
|
|
4977
|
+
e__default["default"].createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
|
|
4978
4978
|
label && (e__default["default"].createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))));
|
|
4979
4979
|
});
|
|
4980
4980
|
|