@commercetools-uikit/radio-field 14.0.1 → 14.0.2

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.
@@ -97,7 +97,7 @@ var RadioField = /*#__PURE__*/function (_Component) {
97
97
  var hasError = this.props.touched && hasErrors(this.props.errors);
98
98
 
99
99
  if (!this.props.isReadOnly) {
100
- process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.onChange === 'function', 'RadioField: `onChange` is required when it is not read only.') : void 0;
100
+ process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.onChange === 'function', 'RadioField: `onChange` is required when field is not read only.') : void 0;
101
101
  }
102
102
 
103
103
  if (this.props.hintIcon) {
@@ -194,7 +194,7 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
194
194
  var RadioField$1 = RadioField;
195
195
 
196
196
  // NOTE: This string will be replaced on build time with the package version.
197
- var version = "14.0.1";
197
+ var version = "14.0.2";
198
198
 
199
199
  exports["default"] = RadioField$1;
200
200
  exports.version = version;
@@ -166,7 +166,7 @@ RadioField.propTypes = {};
166
166
  var RadioField$1 = RadioField;
167
167
 
168
168
  // NOTE: This string will be replaced on build time with the package version.
169
- var version = "14.0.1";
169
+ var version = "14.0.2";
170
170
 
171
171
  exports["default"] = RadioField$1;
172
172
  exports.version = version;
@@ -72,7 +72,7 @@ var RadioField = /*#__PURE__*/function (_Component) {
72
72
  var hasError = this.props.touched && hasErrors(this.props.errors);
73
73
 
74
74
  if (!this.props.isReadOnly) {
75
- process.env.NODE_ENV !== "production" ? warning(typeof this.props.onChange === 'function', 'RadioField: `onChange` is required when it is not read only.') : void 0;
75
+ process.env.NODE_ENV !== "production" ? warning(typeof this.props.onChange === 'function', 'RadioField: `onChange` is required when field is not read only.') : void 0;
76
76
  }
77
77
 
78
78
  if (this.props.hintIcon) {
@@ -169,6 +169,6 @@ RadioField.propTypes = process.env.NODE_ENV !== "production" ? {
169
169
  var RadioField$1 = RadioField;
170
170
 
171
171
  // NOTE: This string will be replaced on build time with the package version.
172
- var version = "14.0.1";
172
+ var version = "14.0.2";
173
173
 
174
174
  export { RadioField$1 as default, version };
@@ -14,9 +14,9 @@ declare type TRadioFieldProps = {
14
14
  touched?: boolean;
15
15
  name?: string;
16
16
  value: string;
17
- onChange?: ChangeEventHandler;
18
- onBlur?: FocusEventHandler;
19
- onFocus?: FocusEventHandler;
17
+ onChange?: ChangeEventHandler<HTMLInputElement>;
18
+ onBlur?: FocusEventHandler<HTMLLabelElement>;
19
+ onFocus?: FocusEventHandler<HTMLLabelElement>;
20
20
  isDisabled?: boolean;
21
21
  isReadOnly?: boolean;
22
22
  direction?: 'stack' | 'inline';
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": "14.0.1",
4
+ "version": "14.0.2",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,8 +24,8 @@
24
24
  "@commercetools-uikit/constraints": "14.0.1",
25
25
  "@commercetools-uikit/design-system": "14.0.0",
26
26
  "@commercetools-uikit/field-errors": "14.0.1",
27
- "@commercetools-uikit/field-label": "14.0.1",
28
- "@commercetools-uikit/radio-input": "14.0.1",
27
+ "@commercetools-uikit/field-label": "14.0.2",
28
+ "@commercetools-uikit/radio-input": "14.0.2",
29
29
  "@commercetools-uikit/spacings-stack": "14.0.1",
30
30
  "@commercetools-uikit/utils": "14.0.1",
31
31
  "@emotion/react": "^11.4.0",