@commercetools-uikit/radio-field 19.6.0 → 19.8.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/README.md
CHANGED
|
@@ -61,7 +61,7 @@ export default Example;
|
|
|
61
61
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
62
62
|
| `touched` | `boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
63
63
|
| `name` | `string` | | | Used as HTML name of the input component. |
|
|
64
|
-
| `value` | `string`
|
|
64
|
+
| `value` | `string` or `boolean` | ✅ | | Value of the input component. |
|
|
65
65
|
| `onChange` | `ChangeEventHandler` | | | Called with an event containing the new value. Required when input is not read only. Parent should pass it back as value. |
|
|
66
66
|
| `onBlur` | `FocusEventHandler` | | | Called when input is blurred |
|
|
67
67
|
| `onFocus` | `FocusEventHandler` | | | Called when input is focused |
|
|
@@ -169,7 +169,7 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
169
169
|
isRequired: _pt__default["default"].bool,
|
|
170
170
|
touched: _pt__default["default"].bool,
|
|
171
171
|
name: _pt__default["default"].string,
|
|
172
|
-
value: _pt__default["default"].string.isRequired,
|
|
172
|
+
value: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].bool]).isRequired,
|
|
173
173
|
onChange: _pt__default["default"].func,
|
|
174
174
|
onBlur: _pt__default["default"].func,
|
|
175
175
|
onFocus: _pt__default["default"].func,
|
|
@@ -188,7 +188,7 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
188
188
|
var RadioField$1 = RadioField;
|
|
189
189
|
|
|
190
190
|
// NOTE: This string will be replaced on build time with the package version.
|
|
191
|
-
var version = "19.
|
|
191
|
+
var version = "19.8.0";
|
|
192
192
|
|
|
193
193
|
exports["default"] = RadioField$1;
|
|
194
194
|
exports.version = version;
|
|
@@ -158,7 +158,7 @@ RadioField.propTypes = {};
|
|
|
158
158
|
var RadioField$1 = RadioField;
|
|
159
159
|
|
|
160
160
|
// NOTE: This string will be replaced on build time with the package version.
|
|
161
|
-
var version = "19.
|
|
161
|
+
var version = "19.8.0";
|
|
162
162
|
|
|
163
163
|
exports["default"] = RadioField$1;
|
|
164
164
|
exports.version = version;
|
|
@@ -144,7 +144,7 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
144
144
|
isRequired: _pt.bool,
|
|
145
145
|
touched: _pt.bool,
|
|
146
146
|
name: _pt.string,
|
|
147
|
-
value: _pt.string.isRequired,
|
|
147
|
+
value: _pt.oneOfType([_pt.string, _pt.bool]).isRequired,
|
|
148
148
|
onChange: _pt.func,
|
|
149
149
|
onBlur: _pt.func,
|
|
150
150
|
onFocus: _pt.func,
|
|
@@ -163,6 +163,6 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
163
163
|
var RadioField$1 = RadioField;
|
|
164
164
|
|
|
165
165
|
// NOTE: This string will be replaced on build time with the package version.
|
|
166
|
-
var version = "19.
|
|
166
|
+
var version = "19.8.0";
|
|
167
167
|
|
|
168
168
|
export { RadioField$1 as default, version };
|
|
@@ -16,7 +16,7 @@ export type TRadioFieldProps = {
|
|
|
16
16
|
isRequired?: boolean;
|
|
17
17
|
touched?: boolean;
|
|
18
18
|
name?: string;
|
|
19
|
-
value: string;
|
|
19
|
+
value: string | boolean;
|
|
20
20
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
21
21
|
onBlur?: FocusEventHandler<HTMLLabelElement>;
|
|
22
22
|
onFocus?: FocusEventHandler<HTMLLabelElement>;
|
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": "19.
|
|
4
|
+
"version": "19.8.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/field-errors": "19.
|
|
27
|
-
"@commercetools-uikit/field-label": "19.
|
|
28
|
-
"@commercetools-uikit/field-warnings": "19.
|
|
29
|
-
"@commercetools-uikit/radio-input": "19.
|
|
30
|
-
"@commercetools-uikit/spacings-stack": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.8.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.8.0",
|
|
26
|
+
"@commercetools-uikit/field-errors": "19.8.0",
|
|
27
|
+
"@commercetools-uikit/field-label": "19.8.0",
|
|
28
|
+
"@commercetools-uikit/field-warnings": "19.8.0",
|
|
29
|
+
"@commercetools-uikit/radio-input": "19.8.0",
|
|
30
|
+
"@commercetools-uikit/spacings-stack": "19.8.0",
|
|
31
|
+
"@commercetools-uikit/utils": "19.8.0",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"prop-types": "15.8.1",
|