@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.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", {
@@ -48868,14 +48870,14 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48868
48870
  "aria-required": section.required,
48869
48871
  "aria-labelledby": ariaLabelledBy,
48870
48872
  "aria-describedby": ariaDescribedBy,
48871
- onClick:
48872
- // This needs to be associated with the same component that has the aria-checked property
48873
- isMobile && supportsTouch || section.disabled ? noop : function () {
48873
+ onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
48874
48874
  return toggleOpenSection(section.id);
48875
48875
  },
48876
48876
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
48877
48877
  return toggleOpenSection(section.id);
48878
- } : noop
48878
+ } : noop,
48879
+ id: "inner-radio-section-".concat(sectionIndex),
48880
+ "data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
48879
48881
  }, /*#__PURE__*/React__default.createElement(Stack, {
48880
48882
  childGap: "0"
48881
48883
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48885,8 +48887,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48885
48887
  borderSize: "0px",
48886
48888
  borderColor: themeValues.borderColor,
48887
48889
  borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
48888
- extraStyles: !section.disabled ? "cursor: pointer;" : "",
48889
- dataQa: section.dataQa ? section.dataQa : section.id
48890
+ extraStyles: !section.disabled ? "cursor: pointer;" : ""
48890
48891
  }, /*#__PURE__*/React__default.createElement(Cluster, {
48891
48892
  justify: "space-between",
48892
48893
  align: "center",
@@ -49053,14 +49054,14 @@ var RadioSection = function RadioSection(_ref) {
49053
49054
  ariaLabelledBy: section.id,
49054
49055
  ariaDescribedBy: "right-icons-".concat(idString$1(section))
49055
49056
  }));
49056
- }), !!groupedSections && groupedSections.map(function (sectionGroup) {
49057
+ }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupindex) {
49057
49058
  return sectionGroup.filter(function (unfilteredSection) {
49058
49059
  return !unfilteredSection.hidden;
49059
- }).map(function (section, i) {
49060
+ }).map(function (section, sectionIndex) {
49060
49061
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
49061
- key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
49062
+ key: "key-".concat(sectionGroupindex, "-").concat(sectionIndex, "}")
49062
49063
  }, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
49063
- sectionIndex: i,
49064
+ sectionIndex: "radio-section-inner-".concat(sectionGroupindex, "-").concat(sectionIndex, "}"),
49064
49065
  section: section,
49065
49066
  sectionRefs: sectionRefs,
49066
49067
  focused: focused,