@thecb/components 9.2.4-beta.7 → 9.2.4-beta.8

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 CHANGED
@@ -27340,6 +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
27344
  var HiddenRadioButton = styled__default.input.withConfig({
27344
27345
  displayName: "RadioButton__HiddenRadioButton",
27345
27346
  componentId: "sc-1jed2i-0"
@@ -27364,8 +27365,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27364
27365
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27365
27366
  _ref2$ariaLabel = _ref2.ariaLabel,
27366
27367
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27367
- _ref2$isRequired = _ref2.isRequired,
27368
- isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27368
+ rest = _objectWithoutProperties(_ref2, _excluded$w);
27369
+
27369
27370
  var buttonBorder = {
27370
27371
  onFocused: {
27371
27372
  borderColor: themeValues.activeColor,
@@ -27408,7 +27409,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27408
27409
  width: "0px"
27409
27410
  }
27410
27411
  };
27411
- var extraProps = {};
27412
+ var extraProps = rest !== null && rest !== void 0 && rest.length ? rest : {};
27412
27413
 
27413
27414
  if (ariaLabelledBy && ariaLabelledBy.length) {
27414
27415
  extraProps["aria-labelledby"] = ariaLabelledBy;
@@ -27427,8 +27428,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27427
27428
  disabled: disabled,
27428
27429
  onClick: toggleRadio,
27429
27430
  "aria-describedby": ariaDescribedBy,
27430
- tabIndex: "-1",
27431
- required: isRequired
27431
+ tabIndex: "-1"
27432
27432
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27433
27433
  borderWidth: "1px",
27434
27434
  borderStyle: "solid",
@@ -38697,7 +38697,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
38697
38697
  return extraStyles;
38698
38698
  });
38699
38699
 
38700
- var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38700
+ var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38701
38701
 
38702
38702
  var TableRow = function TableRow(_ref) {
38703
38703
  var children = _ref.children,
@@ -38707,7 +38707,7 @@ var TableRow = function TableRow(_ref) {
38707
38707
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38708
38708
  onClick = _ref.onClick,
38709
38709
  themeValues = _ref.themeValues,
38710
- props = _objectWithoutProperties(_ref, _excluded$w);
38710
+ props = _objectWithoutProperties(_ref, _excluded$x);
38711
38711
 
38712
38712
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
38713
38713
  onClick: onClick,
@@ -47264,7 +47264,7 @@ var fallbackValues$N = {
47264
47264
  labeledAmountTotal: labeledAmountTotal
47265
47265
  };
47266
47266
 
47267
- var _excluded$x = ["amount"],
47267
+ var _excluded$y = ["amount"],
47268
47268
  _excluded2$1 = ["amount"];
47269
47269
 
47270
47270
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -47509,7 +47509,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47509
47509
  return fee.amount > 0;
47510
47510
  }).map(function (_ref5) {
47511
47511
  var amount = _ref5.amount,
47512
- rest = _objectWithoutProperties(_ref5, _excluded$x);
47512
+ rest = _objectWithoutProperties(_ref5, _excluded$y);
47513
47513
 
47514
47514
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47515
47515
  amount: displayCurrency(amount)
@@ -47912,12 +47912,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47912
47912
  }, errorMessage))))));
47913
47913
  };
47914
47914
 
47915
- var _excluded$y = ["version"];
47915
+ var _excluded$z = ["version"];
47916
47916
 
47917
47917
  var TermsAndConditions = function TermsAndConditions(_ref) {
47918
47918
  var _ref$version = _ref.version,
47919
47919
  version = _ref$version === void 0 ? "v1" : _ref$version,
47920
- rest = _objectWithoutProperties(_ref, _excluded$y);
47920
+ rest = _objectWithoutProperties(_ref, _excluded$z);
47921
47921
 
47922
47922
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
47923
47923
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
@@ -48706,7 +48706,7 @@ var RadioSection = function RadioSection(_ref) {
48706
48706
  role: "radio",
48707
48707
  "aria-checked": openSection === section.id,
48708
48708
  "aria-disabled": section.disabled,
48709
- required: !!(section !== null && section !== void 0 && section.required)
48709
+ "aria-required": !!(section !== null && section !== void 0 && section.required)
48710
48710
  }, /*#__PURE__*/React__default.createElement(Stack, {
48711
48711
  childGap: "0"
48712
48712
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48745,7 +48745,7 @@ var RadioSection = function RadioSection(_ref) {
48745
48745
  return toggleOpenSection(section.id);
48746
48746
  },
48747
48747
  tabIndex: "-1",
48748
- isRequired: !!(section !== null && section !== void 0 && section.required)
48748
+ "aria-required": !!(section !== null && section !== void 0 && section.required)
48749
48749
  })), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
48750
48750
  align: "center"
48751
48751
  }, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {