@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/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.127.0](https://github.com/ocean-ds/ocean-web/compare/v1.126.0...v1.127.0) (2026-01-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- include error message on radio ([#1216](https://github.com/ocean-ds/ocean-web/issues/1216)) ([6159438](https://github.com/ocean-ds/ocean-web/commit/6159438dadcf7058674da365e2b0d3b974859baf))
|
|
11
|
+
|
|
6
12
|
# [1.126.0](https://github.com/ocean-ds/ocean-web/compare/v1.125.1...v1.126.0) (2026-01-14)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/Radio/Radio.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import React from 'react';
|
|
|
2
2
|
export type RadioProps = {
|
|
3
3
|
label?: React.ReactNode;
|
|
4
4
|
error?: boolean;
|
|
5
|
+
errorMessage?: string;
|
|
5
6
|
} & React.ComponentPropsWithoutRef<'input'>;
|
|
6
7
|
declare const Radio: React.ForwardRefExoticComponent<{
|
|
7
8
|
label?: React.ReactNode;
|
|
8
9
|
error?: boolean;
|
|
10
|
+
errorMessage?: string;
|
|
9
11
|
} & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
10
12
|
export default Radio;
|
|
11
13
|
//# sourceMappingURL=Radio.d.ts.map
|
package/Radio/Radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IAIvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IAIvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,KAAK;YALD,KAAK,CAAC,SAAS;YACf,OAAO;mBACA,MAAM;oMAgCtB,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -5421,13 +5421,15 @@ var Checkbox = e.forwardRef(function (_a, ref) {
|
|
|
5421
5421
|
Checkbox.displayName = 'Checkbox';
|
|
5422
5422
|
|
|
5423
5423
|
var Radio = e.forwardRef(function (_a, ref) {
|
|
5424
|
-
var className = _a.className, label = _a.label, id = _a.id, error = _a.error, rest = __rest$1(_a, ["className", "label", "id", "error"]);
|
|
5425
|
-
return (e.createElement("
|
|
5426
|
-
e.createElement("
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5424
|
+
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"]);
|
|
5425
|
+
return (e.createElement("div", { className: "ods-radio__root-container" },
|
|
5426
|
+
e.createElement("label", { className: "ods-radio__root", htmlFor: id },
|
|
5427
|
+
e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-radio', className) }, rest, { type: "radio" })),
|
|
5428
|
+
e.createElement("span", { className: classNames('ods-radio__checkmark', {
|
|
5429
|
+
'ods-radio__checkmark--error': error,
|
|
5430
|
+
}) }),
|
|
5431
|
+
label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-radio__label" }, label))),
|
|
5432
|
+
error && errorMessage && (e.createElement("span", { className: "ods-radio__error-message" }, errorMessage))));
|
|
5431
5433
|
});
|
|
5432
5434
|
Radio.displayName = 'Radio';
|
|
5433
5435
|
|