@commercetools-uikit/radio-field 14.0.2 → 15.1.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.
|
@@ -59,6 +59,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
59
59
|
|
|
60
60
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
61
61
|
var sequentialId = utils.createSequentialId('radio-field-');
|
|
62
|
+
var sequentialErrorsId = utils.createSequentialId('radio-field-error-')();
|
|
62
63
|
|
|
63
64
|
var hasErrors = function hasErrors(errors) {
|
|
64
65
|
var _context;
|
|
@@ -131,6 +132,9 @@ var RadioField = /*#__PURE__*/function (_Component) {
|
|
|
131
132
|
direction: this.props.direction,
|
|
132
133
|
directionProps: this.props.directionProps
|
|
133
134
|
}, utils.filterDataAttributes(this.props)), {}, {
|
|
135
|
+
/* ARIA */
|
|
136
|
+
"aria-invalid": hasError,
|
|
137
|
+
"aria-errormessage": sequentialErrorsId,
|
|
134
138
|
children: this.props.children
|
|
135
139
|
})), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
136
140
|
errors: this.props.errors,
|
|
@@ -194,7 +198,7 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
194
198
|
var RadioField$1 = RadioField;
|
|
195
199
|
|
|
196
200
|
// NOTE: This string will be replaced on build time with the package version.
|
|
197
|
-
var version = "
|
|
201
|
+
var version = "15.1.0";
|
|
198
202
|
|
|
199
203
|
exports["default"] = RadioField$1;
|
|
200
204
|
exports.version = version;
|
|
@@ -58,6 +58,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
58
58
|
|
|
59
59
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
60
60
|
var sequentialId = utils.createSequentialId('radio-field-');
|
|
61
|
+
var sequentialErrorsId = utils.createSequentialId('radio-field-error-')();
|
|
61
62
|
|
|
62
63
|
var hasErrors = function hasErrors(errors) {
|
|
63
64
|
var _context;
|
|
@@ -126,6 +127,9 @@ var RadioField = /*#__PURE__*/function (_Component) {
|
|
|
126
127
|
direction: this.props.direction,
|
|
127
128
|
directionProps: this.props.directionProps
|
|
128
129
|
}, utils.filterDataAttributes(this.props)), {}, {
|
|
130
|
+
/* ARIA */
|
|
131
|
+
"aria-invalid": hasError,
|
|
132
|
+
"aria-errormessage": sequentialErrorsId,
|
|
129
133
|
children: this.props.children
|
|
130
134
|
})), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
131
135
|
errors: this.props.errors,
|
|
@@ -166,7 +170,7 @@ RadioField.propTypes = {};
|
|
|
166
170
|
var RadioField$1 = RadioField;
|
|
167
171
|
|
|
168
172
|
// NOTE: This string will be replaced on build time with the package version.
|
|
169
|
-
var version = "
|
|
173
|
+
var version = "15.1.0";
|
|
170
174
|
|
|
171
175
|
exports["default"] = RadioField$1;
|
|
172
176
|
exports.version = version;
|
|
@@ -34,6 +34,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
34
34
|
|
|
35
35
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
36
36
|
var sequentialId = createSequentialId('radio-field-');
|
|
37
|
+
var sequentialErrorsId = createSequentialId('radio-field-error-')();
|
|
37
38
|
|
|
38
39
|
var hasErrors = function hasErrors(errors) {
|
|
39
40
|
var _context;
|
|
@@ -106,6 +107,9 @@ var RadioField = /*#__PURE__*/function (_Component) {
|
|
|
106
107
|
direction: this.props.direction,
|
|
107
108
|
directionProps: this.props.directionProps
|
|
108
109
|
}, filterDataAttributes(this.props)), {}, {
|
|
110
|
+
/* ARIA */
|
|
111
|
+
"aria-invalid": hasError,
|
|
112
|
+
"aria-errormessage": sequentialErrorsId,
|
|
109
113
|
children: this.props.children
|
|
110
114
|
})), jsx(FieldErrors, {
|
|
111
115
|
errors: this.props.errors,
|
|
@@ -169,6 +173,6 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
169
173
|
var RadioField$1 = RadioField;
|
|
170
174
|
|
|
171
175
|
// NOTE: This string will be replaced on build time with the package version.
|
|
172
|
-
var version = "
|
|
176
|
+
var version = "15.1.0";
|
|
173
177
|
|
|
174
178
|
export { RadioField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/radio-field",
|
|
3
3
|
"description": "A controlled radio input component with validation states and a label.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.17.2",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/field-errors": "
|
|
27
|
-
"@commercetools-uikit/field-label": "
|
|
28
|
-
"@commercetools-uikit/radio-input": "
|
|
29
|
-
"@commercetools-uikit/spacings-stack": "
|
|
30
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "15.1.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.1.0",
|
|
26
|
+
"@commercetools-uikit/field-errors": "15.1.0",
|
|
27
|
+
"@commercetools-uikit/field-label": "15.1.0",
|
|
28
|
+
"@commercetools-uikit/radio-input": "15.1.0",
|
|
29
|
+
"@commercetools-uikit/spacings-stack": "15.1.0",
|
|
30
|
+
"@commercetools-uikit/utils": "15.1.0",
|
|
31
31
|
"@emotion/react": "^11.4.0",
|
|
32
32
|
"@emotion/styled": "^11.3.0",
|
|
33
33
|
"prop-types": "15.8.1",
|