@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.cjs.js +12 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/partial-amount-form/PartialAmountForm.js +8 -2
- package/src/components/molecules/radio-section/InnerRadioSection.js +6 -1
- package/src/components/molecules/radio-section/RadioSection.js +9 -10
- package/src/components/molecules/radio-section/RadioSection.stories.js +2 -1
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
|
-
|
|
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, {
|
|
@@ -48946,6 +48949,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48946
48949
|
var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
|
|
48947
48950
|
|
|
48948
48951
|
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
48952
|
+
|
|
48949
48953
|
/**
|
|
48950
48954
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
48951
48955
|
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.
|
|
@@ -49051,14 +49055,14 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49051
49055
|
ariaLabelledBy: section.id,
|
|
49052
49056
|
ariaDescribedBy: "right-icons-".concat(idString$1(section))
|
|
49053
49057
|
}));
|
|
49054
|
-
}), !!groupedSections && groupedSections.map(function (sectionGroup) {
|
|
49058
|
+
}), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
|
|
49055
49059
|
return sectionGroup.filter(function (unfilteredSection) {
|
|
49056
49060
|
return !unfilteredSection.hidden;
|
|
49057
|
-
}).map(function (section,
|
|
49061
|
+
}).map(function (section, sectionIndex) {
|
|
49058
49062
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49059
|
-
key: "
|
|
49063
|
+
key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
|
|
49060
49064
|
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49061
|
-
sectionIndex:
|
|
49065
|
+
sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
|
|
49062
49066
|
section: section,
|
|
49063
49067
|
sectionRefs: sectionRefs,
|
|
49064
49068
|
focused: focused,
|
|
@@ -49070,7 +49074,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49070
49074
|
toggleOpenSection: toggleOpenSection
|
|
49071
49075
|
}), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
|
|
49072
49076
|
borderSize: "2px",
|
|
49073
|
-
color:
|
|
49077
|
+
color: themeValues.borderColor
|
|
49074
49078
|
}));
|
|
49075
49079
|
});
|
|
49076
49080
|
})));
|