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

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
@@ -47097,7 +47097,8 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
47097
47097
  fields = _ref.fields,
47098
47098
  actions = _ref.actions,
47099
47099
  _ref$showErrors = _ref.showErrors,
47100
- showErrors = _ref$showErrors === void 0 ? false : _ref$showErrors;
47100
+ showErrors = _ref$showErrors === void 0 ? false : _ref$showErrors,
47101
+ dataQa = _ref.dataQa;
47101
47102
  if (clearOnDismount) {
47102
47103
  useEffect(function () {
47103
47104
  return function () {
@@ -47118,7 +47119,8 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
47118
47119
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
47119
47120
  variant: variant,
47120
47121
  role: "form",
47121
- "aria-label": "Other amount"
47122
+ "aria-label": "Other amount",
47123
+ "data-qa": dataQa
47122
47124
  }, /*#__PURE__*/React__default.createElement(Text$1, {
47123
47125
  variant: "p"
47124
47126
  }, "Pay a different amount. The total balance will still be due on the same due date."), /*#__PURE__*/React__default.createElement("div", {
@@ -48874,7 +48876,8 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48874
48876
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
48875
48877
  return toggleOpenSection(section.id);
48876
48878
  } : noop,
48877
- dataQa: section.dataQa ? section.dataQa : section.id
48879
+ id: "inner-radio-section-".concat(sectionIndex),
48880
+ "data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
48878
48881
  }, /*#__PURE__*/React__default.createElement(Stack, {
48879
48882
  childGap: "0"
48880
48883
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -49051,14 +49054,14 @@ var RadioSection = function RadioSection(_ref) {
49051
49054
  ariaLabelledBy: section.id,
49052
49055
  ariaDescribedBy: "right-icons-".concat(idString$1(section))
49053
49056
  }));
49054
- }), !!groupedSections && groupedSections.map(function (sectionGroup) {
49057
+ }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupindex) {
49055
49058
  return sectionGroup.filter(function (unfilteredSection) {
49056
49059
  return !unfilteredSection.hidden;
49057
- }).map(function (section, i) {
49060
+ }).map(function (section, sectionIndex) {
49058
49061
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
49059
- key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
49062
+ key: "key-".concat(sectionGroupindex, "-").concat(sectionIndex, "}")
49060
49063
  }, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
49061
- sectionIndex: i,
49064
+ sectionIndex: "radio-section-inner-".concat(sectionGroupindex, "-").concat(sectionIndex, "}"),
49062
49065
  section: section,
49063
49066
  sectionRefs: sectionRefs,
49064
49067
  focused: focused,