@thecb/components 9.5.0-beta.2 → 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.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", {
@@ -48860,14 +48862,14 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48860
48862
  "aria-required": section.required,
48861
48863
  "aria-labelledby": ariaLabelledBy,
48862
48864
  "aria-describedby": ariaDescribedBy,
48863
- onClick:
48864
- // This needs to be associated with the same component that has the aria-checked property
48865
- isMobile && supportsTouch || section.disabled ? noop : function () {
48865
+ onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
48866
48866
  return toggleOpenSection(section.id);
48867
48867
  },
48868
48868
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
48869
48869
  return toggleOpenSection(section.id);
48870
- } : noop
48870
+ } : noop,
48871
+ id: "inner-radio-section-".concat(sectionIndex),
48872
+ "data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
48871
48873
  }, /*#__PURE__*/React.createElement(Stack, {
48872
48874
  childGap: "0"
48873
48875
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48877,8 +48879,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48877
48879
  borderSize: "0px",
48878
48880
  borderColor: themeValues.borderColor,
48879
48881
  borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
48880
- extraStyles: !section.disabled ? "cursor: pointer;" : "",
48881
- dataQa: section.dataQa ? section.dataQa : section.id
48882
+ extraStyles: !section.disabled ? "cursor: pointer;" : ""
48882
48883
  }, /*#__PURE__*/React.createElement(Cluster, {
48883
48884
  justify: "space-between",
48884
48885
  align: "center",
@@ -49045,14 +49046,14 @@ var RadioSection = function RadioSection(_ref) {
49045
49046
  ariaLabelledBy: section.id,
49046
49047
  ariaDescribedBy: "right-icons-".concat(idString$1(section))
49047
49048
  }));
49048
- }), !!groupedSections && groupedSections.map(function (sectionGroup) {
49049
+ }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupindex) {
49049
49050
  return sectionGroup.filter(function (unfilteredSection) {
49050
49051
  return !unfilteredSection.hidden;
49051
- }).map(function (section, i) {
49052
+ }).map(function (section, sectionIndex) {
49052
49053
  return /*#__PURE__*/React.createElement(Fragment$1, {
49053
- key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
49054
+ key: "key-".concat(sectionGroupindex, "-").concat(sectionIndex, "}")
49054
49055
  }, /*#__PURE__*/React.createElement(InnerRadioSection$1, {
49055
- sectionIndex: i,
49056
+ sectionIndex: "radio-section-inner-".concat(sectionGroupindex, "-").concat(sectionIndex, "}"),
49056
49057
  section: section,
49057
49058
  sectionRefs: sectionRefs,
49058
49059
  focused: focused,