@thecb/components 7.2.0 → 7.3.1
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/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +7 -2
- package/src/components/molecules/radio-group/RadioGroup.js +4 -1
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.stories.js +0 -39
package/dist/index.cjs.js
CHANGED
|
@@ -24661,7 +24661,9 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24661
24661
|
groupName = _ref.groupName,
|
|
24662
24662
|
setValue = _ref.setValue,
|
|
24663
24663
|
ariaInvalid = _ref.ariaInvalid,
|
|
24664
|
-
index = _ref.index
|
|
24664
|
+
index = _ref.index,
|
|
24665
|
+
_ref$handleChange = _ref.handleChange,
|
|
24666
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange;
|
|
24665
24667
|
return /*#__PURE__*/React__default.createElement(InputAndLabelContainer, {
|
|
24666
24668
|
align: "center",
|
|
24667
24669
|
childGap: "0.5rem"
|
|
@@ -24675,7 +24677,8 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24675
24677
|
id: id,
|
|
24676
24678
|
value: value,
|
|
24677
24679
|
onChange: function onChange(e) {
|
|
24678
|
-
|
|
24680
|
+
setValue(e.target.value);
|
|
24681
|
+
handleChange(e);
|
|
24679
24682
|
},
|
|
24680
24683
|
defaultChecked: index === 0
|
|
24681
24684
|
}), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -46338,10 +46341,12 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46338
46341
|
_ref$heading = _ref.heading,
|
|
46339
46342
|
Heading = _ref$heading === void 0 ? /*#__PURE__*/React__default.createElement(DefaultHeading, {
|
|
46340
46343
|
role: "heading",
|
|
46341
|
-
id: "radio-group-".concat(groupName, "-heading
|
|
46344
|
+
id: "radio-group-".concat(groupName, "-heading")
|
|
46342
46345
|
}, headingText) : _ref$heading,
|
|
46343
46346
|
config = _ref.config,
|
|
46344
46347
|
extraStyles = _ref.extraStyles,
|
|
46348
|
+
_ref$handleChange = _ref.handleChange,
|
|
46349
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
46345
46350
|
field = _ref.field,
|
|
46346
46351
|
fieldActions = _ref.fieldActions;
|
|
46347
46352
|
|
|
@@ -46362,6 +46367,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46362
46367
|
}, c, {
|
|
46363
46368
|
groupName: groupName,
|
|
46364
46369
|
setValue: setValue,
|
|
46370
|
+
handleChange: handleChange,
|
|
46365
46371
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
|
|
46366
46372
|
}));
|
|
46367
46373
|
})));
|