@thecb/components 9.5.0-beta.3 → 9.5.0-beta.5

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.esm.js CHANGED
@@ -47089,7 +47089,8 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
47089
47089
  fields = _ref.fields,
47090
47090
  actions = _ref.actions,
47091
47091
  _ref$showErrors = _ref.showErrors,
47092
- showErrors = _ref$showErrors === void 0 ? false : _ref$showErrors;
47092
+ showErrors = _ref$showErrors === void 0 ? false : _ref$showErrors,
47093
+ dataQa = _ref.dataQa;
47093
47094
  if (clearOnDismount) {
47094
47095
  useEffect(function () {
47095
47096
  return function () {
@@ -47110,7 +47111,8 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
47110
47111
  return /*#__PURE__*/React.createElement(FormContainer$1, {
47111
47112
  variant: variant,
47112
47113
  role: "form",
47113
- "aria-label": "Other amount"
47114
+ "aria-label": "Other amount",
47115
+ "data-qa": dataQa
47114
47116
  }, /*#__PURE__*/React.createElement(Text$1, {
47115
47117
  variant: "p"
47116
47118
  }, "Pay a different amount. The total balance will still be due on the same due date."), /*#__PURE__*/React.createElement("div", {
@@ -48866,7 +48868,8 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48866
48868
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
48867
48869
  return toggleOpenSection(section.id);
48868
48870
  } : noop,
48869
- dataQa: section.dataQa ? section.dataQa : section.id
48871
+ id: "inner-radio-section-".concat(sectionIndex),
48872
+ "data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
48870
48873
  }, /*#__PURE__*/React.createElement(Stack, {
48871
48874
  childGap: "0"
48872
48875
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48938,6 +48941,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48938
48941
  var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
48939
48942
 
48940
48943
  var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
48944
+
48941
48945
  /**
48942
48946
  - The RadioSection component takes either a flat array (via the 'sections'
48943
48947
  prop) of section objects or a multidimensional array (via the 'groupedSections' prop) of section objects. Note that if using a multidimensional array, the nesting cannot exceed 2 levels deep.
@@ -49043,14 +49047,14 @@ var RadioSection = function RadioSection(_ref) {
49043
49047
  ariaLabelledBy: section.id,
49044
49048
  ariaDescribedBy: "right-icons-".concat(idString$1(section))
49045
49049
  }));
49046
- }), !!groupedSections && groupedSections.map(function (sectionGroup) {
49050
+ }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
49047
49051
  return sectionGroup.filter(function (unfilteredSection) {
49048
49052
  return !unfilteredSection.hidden;
49049
- }).map(function (section, i) {
49053
+ }).map(function (section, sectionIndex) {
49050
49054
  return /*#__PURE__*/React.createElement(Fragment$1, {
49051
- key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
49055
+ key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
49052
49056
  }, /*#__PURE__*/React.createElement(InnerRadioSection$1, {
49053
- sectionIndex: i,
49057
+ sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
49054
49058
  section: section,
49055
49059
  sectionRefs: sectionRefs,
49056
49060
  focused: focused,
@@ -49062,7 +49066,7 @@ var RadioSection = function RadioSection(_ref) {
49062
49066
  toggleOpenSection: toggleOpenSection
49063
49067
  }), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React.createElement(SolidDivider$1, {
49064
49068
  borderSize: "2px",
49065
- color: MANATEE_GREY
49069
+ color: themeValues.borderColor
49066
49070
  }));
49067
49071
  });
49068
49072
  })));