@thecb/components 9.2.4-beta.8 → 9.2.4-beta.9
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 +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +1 -1
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +2 -0
package/dist/index.cjs.js
CHANGED
|
@@ -27340,7 +27340,7 @@ var fallbackValues$v = {
|
|
|
27340
27340
|
inactiveColor: inactiveColor
|
|
27341
27341
|
};
|
|
27342
27342
|
|
|
27343
|
-
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel"];
|
|
27343
|
+
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
|
|
27344
27344
|
var HiddenRadioButton = styled__default.input.withConfig({
|
|
27345
27345
|
displayName: "RadioButton__HiddenRadioButton",
|
|
27346
27346
|
componentId: "sc-1jed2i-0"
|
|
@@ -27365,6 +27365,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27365
27365
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27366
27366
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27367
27367
|
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27368
|
+
_ref2$isRequired = _ref2.isRequired,
|
|
27369
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired,
|
|
27368
27370
|
rest = _objectWithoutProperties(_ref2, _excluded$w);
|
|
27369
27371
|
|
|
27370
27372
|
var buttonBorder = {
|
|
@@ -27428,7 +27430,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27428
27430
|
disabled: disabled,
|
|
27429
27431
|
onClick: toggleRadio,
|
|
27430
27432
|
"aria-describedby": ariaDescribedBy,
|
|
27431
|
-
tabIndex: "-1"
|
|
27433
|
+
tabIndex: "-1",
|
|
27434
|
+
required: isRequired
|
|
27432
27435
|
}, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
|
|
27433
27436
|
borderWidth: "1px",
|
|
27434
27437
|
borderStyle: "solid",
|
|
@@ -48745,7 +48748,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48745
48748
|
return toggleOpenSection(section.id);
|
|
48746
48749
|
},
|
|
48747
48750
|
tabIndex: "-1",
|
|
48748
|
-
|
|
48751
|
+
isRequired: !!(section !== null && section !== void 0 && section.required)
|
|
48749
48752
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48750
48753
|
align: "center"
|
|
48751
48754
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|