@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.esm.js
CHANGED
|
@@ -24653,7 +24653,9 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24653
24653
|
groupName = _ref.groupName,
|
|
24654
24654
|
setValue = _ref.setValue,
|
|
24655
24655
|
ariaInvalid = _ref.ariaInvalid,
|
|
24656
|
-
index = _ref.index
|
|
24656
|
+
index = _ref.index,
|
|
24657
|
+
_ref$handleChange = _ref.handleChange,
|
|
24658
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange;
|
|
24657
24659
|
return /*#__PURE__*/React.createElement(InputAndLabelContainer, {
|
|
24658
24660
|
align: "center",
|
|
24659
24661
|
childGap: "0.5rem"
|
|
@@ -24667,7 +24669,8 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24667
24669
|
id: id,
|
|
24668
24670
|
value: value,
|
|
24669
24671
|
onChange: function onChange(e) {
|
|
24670
|
-
|
|
24672
|
+
setValue(e.target.value);
|
|
24673
|
+
handleChange(e);
|
|
24671
24674
|
},
|
|
24672
24675
|
defaultChecked: index === 0
|
|
24673
24676
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
@@ -46330,10 +46333,12 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46330
46333
|
_ref$heading = _ref.heading,
|
|
46331
46334
|
Heading = _ref$heading === void 0 ? /*#__PURE__*/React.createElement(DefaultHeading, {
|
|
46332
46335
|
role: "heading",
|
|
46333
|
-
id: "radio-group-".concat(groupName, "-heading
|
|
46336
|
+
id: "radio-group-".concat(groupName, "-heading")
|
|
46334
46337
|
}, headingText) : _ref$heading,
|
|
46335
46338
|
config = _ref.config,
|
|
46336
46339
|
extraStyles = _ref.extraStyles,
|
|
46340
|
+
_ref$handleChange = _ref.handleChange,
|
|
46341
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
46337
46342
|
field = _ref.field,
|
|
46338
46343
|
fieldActions = _ref.fieldActions;
|
|
46339
46344
|
|
|
@@ -46354,6 +46359,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46354
46359
|
}, c, {
|
|
46355
46360
|
groupName: groupName,
|
|
46356
46361
|
setValue: setValue,
|
|
46362
|
+
handleChange: handleChange,
|
|
46357
46363
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
|
|
46358
46364
|
}));
|
|
46359
46365
|
})));
|