@thecb/components 9.2.4-beta.8 → 9.2.5-beta.0
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 +16 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -23
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/dropdown/Dropdown.js +3 -3
- package/src/components/molecules/modal/Modal.js +2 -1
- package/src/components/molecules/radio-section/RadioSection.js +2 -5
- package/src/components/molecules/radio-section/RadioSection.stories.js +2 -4
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +2 -3
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -23992,11 +23992,11 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23992
23992
|
clearTimeout(timer);
|
|
23993
23993
|
setTimer(setTimeout(function () {
|
|
23994
23994
|
return setInputValue("");
|
|
23995
|
-
},
|
|
23995
|
+
}, 20000));
|
|
23996
23996
|
}
|
|
23997
23997
|
|
|
23998
23998
|
setFilteredOptions(options.filter(function (option) {
|
|
23999
|
-
return option.value.toLowerCase().
|
|
23999
|
+
return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
|
|
24000
24000
|
}));
|
|
24001
24001
|
}, [inputValue]);
|
|
24002
24002
|
React.useEffect(function () {
|
|
@@ -27340,7 +27340,6 @@ var fallbackValues$v = {
|
|
|
27340
27340
|
inactiveColor: inactiveColor
|
|
27341
27341
|
};
|
|
27342
27342
|
|
|
27343
|
-
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel"];
|
|
27344
27343
|
var HiddenRadioButton = styled__default.input.withConfig({
|
|
27345
27344
|
displayName: "RadioButton__HiddenRadioButton",
|
|
27346
27345
|
componentId: "sc-1jed2i-0"
|
|
@@ -27364,9 +27363,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27364
27363
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27365
27364
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27366
27365
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27367
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27368
|
-
rest = _objectWithoutProperties(_ref2, _excluded$w);
|
|
27369
|
-
|
|
27366
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
|
|
27370
27367
|
var buttonBorder = {
|
|
27371
27368
|
onFocused: {
|
|
27372
27369
|
borderColor: themeValues.activeColor,
|
|
@@ -27409,7 +27406,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27409
27406
|
width: "0px"
|
|
27410
27407
|
}
|
|
27411
27408
|
};
|
|
27412
|
-
var extraProps =
|
|
27409
|
+
var extraProps = {};
|
|
27413
27410
|
|
|
27414
27411
|
if (ariaLabelledBy && ariaLabelledBy.length) {
|
|
27415
27412
|
extraProps["aria-labelledby"] = ariaLabelledBy;
|
|
@@ -38697,7 +38694,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38697
38694
|
return extraStyles;
|
|
38698
38695
|
});
|
|
38699
38696
|
|
|
38700
|
-
var _excluded$
|
|
38697
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38701
38698
|
|
|
38702
38699
|
var TableRow = function TableRow(_ref) {
|
|
38703
38700
|
var children = _ref.children,
|
|
@@ -38707,7 +38704,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38707
38704
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38708
38705
|
onClick = _ref.onClick,
|
|
38709
38706
|
themeValues = _ref.themeValues,
|
|
38710
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38707
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38711
38708
|
|
|
38712
38709
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38713
38710
|
onClick: onClick,
|
|
@@ -45752,7 +45749,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45752
45749
|
alignItems: "center"
|
|
45753
45750
|
},
|
|
45754
45751
|
dialogStyle: {
|
|
45755
|
-
width: customWidth || "615px"
|
|
45752
|
+
width: customWidth || "615px",
|
|
45753
|
+
overflow: "auto"
|
|
45756
45754
|
},
|
|
45757
45755
|
underlayClickExits: underlayClickExits
|
|
45758
45756
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -47264,7 +47262,7 @@ var fallbackValues$N = {
|
|
|
47264
47262
|
labeledAmountTotal: labeledAmountTotal
|
|
47265
47263
|
};
|
|
47266
47264
|
|
|
47267
|
-
var _excluded$
|
|
47265
|
+
var _excluded$x = ["amount"],
|
|
47268
47266
|
_excluded2$1 = ["amount"];
|
|
47269
47267
|
|
|
47270
47268
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -47509,7 +47507,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47509
47507
|
return fee.amount > 0;
|
|
47510
47508
|
}).map(function (_ref5) {
|
|
47511
47509
|
var amount = _ref5.amount,
|
|
47512
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47510
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
47513
47511
|
|
|
47514
47512
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47515
47513
|
amount: displayCurrency(amount)
|
|
@@ -47912,12 +47910,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47912
47910
|
}, errorMessage))))));
|
|
47913
47911
|
};
|
|
47914
47912
|
|
|
47915
|
-
var _excluded$
|
|
47913
|
+
var _excluded$y = ["version"];
|
|
47916
47914
|
|
|
47917
47915
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
47918
47916
|
var _ref$version = _ref.version,
|
|
47919
47917
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
47920
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47918
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
47921
47919
|
|
|
47922
47920
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
47923
47921
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48624,9 +48622,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48624
48622
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48625
48623
|
_ref$containerStyles = _ref.containerStyles,
|
|
48626
48624
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48627
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48628
|
-
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48629
|
-
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire;
|
|
48625
|
+
ariaDescribedBy = _ref.ariaDescribedBy;
|
|
48630
48626
|
|
|
48631
48627
|
var handleKeyDown = function handleKeyDown(id, e) {
|
|
48632
48628
|
if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
|
|
@@ -48682,8 +48678,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48682
48678
|
extraStyles: containerStyles
|
|
48683
48679
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48684
48680
|
childGap: "0",
|
|
48685
|
-
role: "radiogroup"
|
|
48686
|
-
"aria-required": isSectionRequired
|
|
48681
|
+
role: "radiogroup"
|
|
48687
48682
|
}, sections.filter(function (section) {
|
|
48688
48683
|
return !section.hidden;
|
|
48689
48684
|
}).map(function (section) {
|
|
@@ -48705,8 +48700,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48705
48700
|
extraStyles: borderStyles,
|
|
48706
48701
|
role: "radio",
|
|
48707
48702
|
"aria-checked": openSection === section.id,
|
|
48708
|
-
"aria-disabled": section.disabled
|
|
48709
|
-
"aria-required": !!(section !== null && section !== void 0 && section.required)
|
|
48703
|
+
"aria-disabled": section.disabled
|
|
48710
48704
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48711
48705
|
childGap: "0"
|
|
48712
48706
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48744,8 +48738,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48744
48738
|
toggleRadio: section.disabled ? noop : function () {
|
|
48745
48739
|
return toggleOpenSection(section.id);
|
|
48746
48740
|
},
|
|
48747
|
-
tabIndex: "-1"
|
|
48748
|
-
"aria-required": !!(section !== null && section !== void 0 && section.required)
|
|
48741
|
+
tabIndex: "-1"
|
|
48749
48742
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48750
48743
|
align: "center"
|
|
48751
48744
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|