@useblu/ocean-react 1.126.0 → 1.127.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/Radio/Radio.d.ts +2 -0
- package/Radio/Radio.d.ts.map +1 -1
- package/index.es.js +9 -7
- package/index.es.js.map +1 -1
- package/index.js +9 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5423,13 +5423,15 @@ var Checkbox = e.forwardRef(function (_a, ref) {
|
|
|
5423
5423
|
Checkbox.displayName = 'Checkbox';
|
|
5424
5424
|
|
|
5425
5425
|
var Radio = e.forwardRef(function (_a, ref) {
|
|
5426
|
-
var className = _a.className, label = _a.label, id = _a.id, error = _a.error, rest = __rest$1(_a, ["className", "label", "id", "error"]);
|
|
5427
|
-
return (e.createElement("
|
|
5428
|
-
e.createElement("
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5426
|
+
var className = _a.className, label = _a.label, id = _a.id, error = _a.error, errorMessage = _a.errorMessage, rest = __rest$1(_a, ["className", "label", "id", "error", "errorMessage"]);
|
|
5427
|
+
return (e.createElement("div", { className: "ods-radio__root-container" },
|
|
5428
|
+
e.createElement("label", { className: "ods-radio__root", htmlFor: id },
|
|
5429
|
+
e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-radio', className) }, rest, { type: "radio" })),
|
|
5430
|
+
e.createElement("span", { className: classNames('ods-radio__checkmark', {
|
|
5431
|
+
'ods-radio__checkmark--error': error,
|
|
5432
|
+
}) }),
|
|
5433
|
+
label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-radio__label" }, label))),
|
|
5434
|
+
error && errorMessage && (e.createElement("span", { className: "ods-radio__error-message" }, errorMessage))));
|
|
5433
5435
|
});
|
|
5434
5436
|
Radio.displayName = 'Radio';
|
|
5435
5437
|
|