@thecb/components 11.11.1-beta.2 → 11.11.1
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 +11 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card-type/CardType.js +1 -5
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +11 -5
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +30 -30
- package/src/components/molecules/editable-list/EditableList.js +9 -22
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -26306,9 +26306,13 @@ var BankItemWrapper = styled.div.withConfig({
|
|
|
26306
26306
|
displayName: "FormattedBankAccount__BankItemWrapper",
|
|
26307
26307
|
componentId: "sc-18hcgw4-0"
|
|
26308
26308
|
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
26309
|
+
var BankIconWrapper = styled.div.withConfig({
|
|
26310
|
+
displayName: "FormattedBankAccount__BankIconWrapper",
|
|
26311
|
+
componentId: "sc-18hcgw4-1"
|
|
26312
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26309
26313
|
var BankAccountText = styled.h4.withConfig({
|
|
26310
26314
|
displayName: "FormattedBankAccount__BankAccountText",
|
|
26311
|
-
componentId: "sc-18hcgw4-
|
|
26315
|
+
componentId: "sc-18hcgw4-2"
|
|
26312
26316
|
})(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], function (_ref) {
|
|
26313
26317
|
var color = _ref.color;
|
|
26314
26318
|
return color;
|
|
@@ -26320,10 +26324,7 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26320
26324
|
accountType = _ref2.accountType,
|
|
26321
26325
|
autoPay = _ref2.autoPay,
|
|
26322
26326
|
themeValues = _ref2.themeValues;
|
|
26323
|
-
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(
|
|
26324
|
-
padding: "0.25rem 0 0 0",
|
|
26325
|
-
extraStyles: "margin-right: 1rem;"
|
|
26326
|
-
}, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26327
|
+
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(BankIconWrapper, null, /*#__PURE__*/React__default.createElement(BankIconLarge, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26327
26328
|
childGap: "0"
|
|
26328
26329
|
}, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
|
|
26329
26330
|
color: themeValues.textColor
|
|
@@ -26378,7 +26379,7 @@ var CardType = function CardType(_ref) {
|
|
|
26378
26379
|
var _ref2 = cardBrands[normalizedType] || cardBrands["default"],
|
|
26379
26380
|
label = _ref2.label,
|
|
26380
26381
|
IconComponent = _ref2[size];
|
|
26381
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26382
|
+
return /*#__PURE__*/React__default.createElement(IconComponent, null);
|
|
26382
26383
|
};
|
|
26383
26384
|
|
|
26384
26385
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
@@ -26455,7 +26456,7 @@ var CreditCardWrapper = styled.div.withConfig({
|
|
|
26455
26456
|
var CCIconWrapper = styled.div.withConfig({
|
|
26456
26457
|
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
26457
26458
|
componentId: "sc-s0ta5l-1"
|
|
26458
|
-
})(["margin-right:
|
|
26459
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26459
26460
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
26460
26461
|
var lastFour = _ref.lastFour,
|
|
26461
26462
|
type = _ref.type,
|
|
@@ -27564,7 +27565,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27564
27565
|
borderWidth: "1px",
|
|
27565
27566
|
borderStyle: "solid",
|
|
27566
27567
|
borderRadius: "12px",
|
|
27567
|
-
margin: "6px
|
|
27568
|
+
margin: "6px 8px 6px 6px",
|
|
27568
27569
|
height: "24px",
|
|
27569
27570
|
width: "24px",
|
|
27570
27571
|
variants: buttonBorder,
|
|
@@ -40915,9 +40916,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
40915
40916
|
_ref$editItemAriaRole = _ref.editItemAriaRole,
|
|
40916
40917
|
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
|
|
40917
40918
|
_ref$disablePlacehold = _ref.disablePlaceholder,
|
|
40918
|
-
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold
|
|
40919
|
-
_ref$getEditHref = _ref.getEditHref,
|
|
40920
|
-
getEditHref = _ref$getEditHref === void 0 ? null : _ref$getEditHref;
|
|
40919
|
+
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
|
|
40921
40920
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
40922
40921
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40923
40922
|
padding: listPadding,
|
|
@@ -40984,12 +40983,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
40984
40983
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
40985
40984
|
dataQa: qaPrefix + " Edit",
|
|
40986
40985
|
key: "Edit ".concat(item.id)
|
|
40987
|
-
},
|
|
40988
|
-
to: getEditHref(item),
|
|
40989
|
-
fontWeight: "400",
|
|
40990
|
-
extraStyles: "margin: 0.5rem; min-width: 0;",
|
|
40991
|
-
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
40992
|
-
}, "Edit") : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40986
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40993
40987
|
variant: "smallGhost",
|
|
40994
40988
|
text: "Edit",
|
|
40995
40989
|
action: function action() {
|