@thecb/components 4.1.32 → 4.2.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 CHANGED
@@ -20956,7 +20956,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
20956
20956
  }, "Autopay Enabled")));
20957
20957
  };
20958
20958
 
20959
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$j, "default");
20959
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$j);
20960
20960
 
20961
20961
  function _templateObject3$8() {
20962
20962
  var data = _taggedTemplateLiteral(["\n display: block;\n top: auto;\n bottom: 6px;\n left: 2px;\n transition-duration: 0.13s;\n transition-delay: 0.13s;\n transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n margin-top: 12px;\n background-color: ", ";\n\n &, &::before, &::after {\n background-color: ", ";\n width: 30px;\n height: 3px;\n position: absolute;\n transition-property: transform;\n transition-duration: 0.15s;\n transition-timing-function: ease;\n }\n\n &::before, &::after {\n content: \"\";\n display: block;\n }\n\n &::before {\n top: -10px;\n transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n\n &::after {\n bottom: -10px;\n top: -20px;\n transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n opacity 0.1s linear;\n }\n\n &.active, &.active::before, &.active::after {\n background-color: ", ";\n }\n\n &.active {\n transform: translate3d(0, -10px, 0) rotate(-45deg);\n transition-delay: 0.22s;\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n &.active::after {\n top: 0;\n opacity: 0;\n transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n opacity: 0.1s 0.22s linear;\n }\n\n &.active::before {\n top: 0;\n transform: rotate(-90deg);\n transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n"]);
@@ -34778,7 +34778,7 @@ var EditableList = function EditableList(_ref) {
34778
34778
  useModal = _ref$useModal === void 0 ? false : _ref$useModal,
34779
34779
  Modal = _ref.modal,
34780
34780
  modalProps = _ref.modalProps,
34781
- autoPayMethod = _ref.autoPayMethod,
34781
+ autoPayMethods = _ref.autoPayMethods,
34782
34782
  qaPrefix = _ref.qaPrefix;
34783
34783
  return /*#__PURE__*/React__default.createElement(Box, {
34784
34784
  padding: "0rem 0rem 1.5rem 0rem"
@@ -34805,7 +34805,9 @@ var EditableList = function EditableList(_ref) {
34805
34805
 
34806
34806
  var expiredItem = (_item$expirationStatu = item === null || item === void 0 ? void 0 : item.expirationStatus) !== null && _item$expirationStatu !== void 0 ? _item$expirationStatu : ACTIVE$1;
34807
34807
  return /*#__PURE__*/React__default.createElement(EditableListItem, {
34808
- listItemSize: !!item.id && item.id === autoPayMethod ? "big" : listItemSize,
34808
+ listItemSize: !!item.id && (autoPayMethods === null || autoPayMethods === void 0 ? void 0 : autoPayMethods.some(function (methodID) {
34809
+ return methodID === item.id;
34810
+ })) ? "big" : listItemSize,
34809
34811
  key: item.id || item,
34810
34812
  disabled: expiredItem === EXPIRED$1
34811
34813
  }, /*#__PURE__*/React__default.createElement(Text$1, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.1.32",
3
+ "version": "4.2.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -89,6 +89,5 @@ const FormattedCreditCard = ({
89
89
  export default themeComponent(
90
90
  FormattedCreditCard,
91
91
  "FormattedCreditCard",
92
- fallbackValues,
93
- "default"
92
+ fallbackValues
94
93
  );
@@ -34,7 +34,7 @@ const EditableList = ({
34
34
  useModal = false,
35
35
  modal: Modal,
36
36
  modalProps,
37
- autoPayMethod,
37
+ autoPayMethods,
38
38
  qaPrefix
39
39
  }) => (
40
40
  <Box padding="0rem 0rem 1.5rem 0rem">
@@ -63,7 +63,10 @@ const EditableList = ({
63
63
  return (
64
64
  <EditableListItem
65
65
  listItemSize={
66
- !!item.id && item.id === autoPayMethod ? "big" : listItemSize
66
+ !!item.id &&
67
+ autoPayMethods?.some(methodID => methodID === item.id)
68
+ ? "big"
69
+ : listItemSize
67
70
  }
68
71
  key={item.id || item}
69
72
  disabled={expiredItem === EXPIRED}