@commercetools-uikit/radio-field 19.11.0 → 19.12.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` or `boolean` | ✅ | | Value of the input component. |
64
+ | `value` | `union`<br/>Possible values:<br/>`string , 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 |
@@ -67,7 +67,6 @@ const hasWarnings = warnings => {
67
67
  return warnings && _someInstanceProperty__default["default"](_context2 = _Object$values__default["default"](warnings)).call(_context2, Boolean);
68
68
  };
69
69
  let RadioField = /*#__PURE__*/function (_Component) {
70
- _inherits(RadioField, _Component);
71
70
  function RadioField() {
72
71
  var _this;
73
72
  _classCallCheck(this, RadioField);
@@ -82,7 +81,8 @@ let RadioField = /*#__PURE__*/function (_Component) {
82
81
  };
83
82
  return _this;
84
83
  }
85
- _createClass(RadioField, [{
84
+ _inherits(RadioField, _Component);
85
+ return _createClass(RadioField, [{
86
86
  key: "render",
87
87
  value: function render() {
88
88
  const hasError = this.props.touched && hasErrors(this.props.errors);
@@ -150,7 +150,6 @@ let RadioField = /*#__PURE__*/function (_Component) {
150
150
  return errors;
151
151
  }
152
152
  }]);
153
- return RadioField;
154
153
  }(react.Component);
155
154
  RadioField.displayName = 'RadioField';
156
155
  RadioField.defaultProps = {
@@ -66,7 +66,6 @@ const hasWarnings = warnings => {
66
66
  return warnings && _someInstanceProperty__default["default"](_context2 = _Object$values__default["default"](warnings)).call(_context2, Boolean);
67
67
  };
68
68
  let RadioField = /*#__PURE__*/function (_Component) {
69
- _inherits(RadioField, _Component);
70
69
  function RadioField() {
71
70
  var _this;
72
71
  _classCallCheck(this, RadioField);
@@ -81,7 +80,8 @@ let RadioField = /*#__PURE__*/function (_Component) {
81
80
  };
82
81
  return _this;
83
82
  }
84
- _createClass(RadioField, [{
83
+ _inherits(RadioField, _Component);
84
+ return _createClass(RadioField, [{
85
85
  key: "render",
86
86
  value: function render() {
87
87
  const hasError = this.props.touched && hasErrors(this.props.errors);
@@ -145,7 +145,6 @@ let RadioField = /*#__PURE__*/function (_Component) {
145
145
  return errors;
146
146
  }
147
147
  }]);
148
- return RadioField;
149
148
  }(react.Component);
150
149
  RadioField.displayName = 'RadioField';
151
150
  RadioField.defaultProps = {
@@ -42,7 +42,6 @@ const hasWarnings = warnings => {
42
42
  return warnings && _someInstanceProperty(_context2 = _Object$values(warnings)).call(_context2, Boolean);
43
43
  };
44
44
  let RadioField = /*#__PURE__*/function (_Component) {
45
- _inherits(RadioField, _Component);
46
45
  function RadioField() {
47
46
  var _this;
48
47
  _classCallCheck(this, RadioField);
@@ -57,7 +56,8 @@ let RadioField = /*#__PURE__*/function (_Component) {
57
56
  };
58
57
  return _this;
59
58
  }
60
- _createClass(RadioField, [{
59
+ _inherits(RadioField, _Component);
60
+ return _createClass(RadioField, [{
61
61
  key: "render",
62
62
  value: function render() {
63
63
  const hasError = this.props.touched && hasErrors(this.props.errors);
@@ -125,7 +125,6 @@ let RadioField = /*#__PURE__*/function (_Component) {
125
125
  return errors;
126
126
  }
127
127
  }]);
128
- return RadioField;
129
128
  }(Component);
130
129
  RadioField.displayName = 'RadioField';
131
130
  RadioField.defaultProps = {
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.11.0",
4
+ "version": "19.12.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.11.0",
25
- "@commercetools-uikit/design-system": "19.11.0",
26
- "@commercetools-uikit/field-errors": "19.11.0",
27
- "@commercetools-uikit/field-label": "19.11.0",
28
- "@commercetools-uikit/field-warnings": "19.11.0",
29
- "@commercetools-uikit/radio-input": "19.11.0",
30
- "@commercetools-uikit/spacings-stack": "19.11.0",
31
- "@commercetools-uikit/utils": "19.11.0",
24
+ "@commercetools-uikit/constraints": "19.12.0",
25
+ "@commercetools-uikit/design-system": "19.12.0",
26
+ "@commercetools-uikit/field-errors": "19.12.0",
27
+ "@commercetools-uikit/field-label": "19.12.0",
28
+ "@commercetools-uikit/field-warnings": "19.12.0",
29
+ "@commercetools-uikit/radio-input": "19.12.0",
30
+ "@commercetools-uikit/spacings-stack": "19.12.0",
31
+ "@commercetools-uikit/utils": "19.12.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "prop-types": "15.8.1",