@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.esm.js
CHANGED
|
@@ -27332,7 +27332,7 @@ var fallbackValues$v = {
|
|
|
27332
27332
|
inactiveColor: inactiveColor
|
|
27333
27333
|
};
|
|
27334
27334
|
|
|
27335
|
-
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel"];
|
|
27335
|
+
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
|
|
27336
27336
|
var HiddenRadioButton = styled.input.withConfig({
|
|
27337
27337
|
displayName: "RadioButton__HiddenRadioButton",
|
|
27338
27338
|
componentId: "sc-1jed2i-0"
|
|
@@ -27357,6 +27357,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27357
27357
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27358
27358
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27359
27359
|
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27360
|
+
_ref2$isRequired = _ref2.isRequired,
|
|
27361
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired,
|
|
27360
27362
|
rest = _objectWithoutProperties(_ref2, _excluded$w);
|
|
27361
27363
|
|
|
27362
27364
|
var buttonBorder = {
|
|
@@ -27420,7 +27422,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27420
27422
|
disabled: disabled,
|
|
27421
27423
|
onClick: toggleRadio,
|
|
27422
27424
|
"aria-describedby": ariaDescribedBy,
|
|
27423
|
-
tabIndex: "-1"
|
|
27425
|
+
tabIndex: "-1",
|
|
27426
|
+
required: isRequired
|
|
27424
27427
|
}, extraProps)), /*#__PURE__*/React.createElement(Motion, {
|
|
27425
27428
|
borderWidth: "1px",
|
|
27426
27429
|
borderStyle: "solid",
|
|
@@ -48737,7 +48740,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48737
48740
|
return toggleOpenSection(section.id);
|
|
48738
48741
|
},
|
|
48739
48742
|
tabIndex: "-1",
|
|
48740
|
-
|
|
48743
|
+
isRequired: !!(section !== null && section !== void 0 && section.required)
|
|
48741
48744
|
})), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
|
|
48742
48745
|
align: "center"
|
|
48743
48746
|
}, section.titleIcon), /*#__PURE__*/React.createElement(Box, {
|