@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.cjs.js
CHANGED
|
@@ -26314,9 +26314,13 @@ var BankItemWrapper = styled__default.div.withConfig({
|
|
|
26314
26314
|
displayName: "FormattedBankAccount__BankItemWrapper",
|
|
26315
26315
|
componentId: "sc-18hcgw4-0"
|
|
26316
26316
|
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
26317
|
+
var BankIconWrapper = styled__default.div.withConfig({
|
|
26318
|
+
displayName: "FormattedBankAccount__BankIconWrapper",
|
|
26319
|
+
componentId: "sc-18hcgw4-1"
|
|
26320
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26317
26321
|
var BankAccountText = styled__default.h4.withConfig({
|
|
26318
26322
|
displayName: "FormattedBankAccount__BankAccountText",
|
|
26319
|
-
componentId: "sc-18hcgw4-
|
|
26323
|
+
componentId: "sc-18hcgw4-2"
|
|
26320
26324
|
})(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], function (_ref) {
|
|
26321
26325
|
var color = _ref.color;
|
|
26322
26326
|
return color;
|
|
@@ -26328,10 +26332,7 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26328
26332
|
accountType = _ref2.accountType,
|
|
26329
26333
|
autoPay = _ref2.autoPay,
|
|
26330
26334
|
themeValues = _ref2.themeValues;
|
|
26331
|
-
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(
|
|
26332
|
-
padding: "0.25rem 0 0 0",
|
|
26333
|
-
extraStyles: "margin-right: 1rem;"
|
|
26334
|
-
}, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26335
|
+
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(BankIconWrapper, null, /*#__PURE__*/React__default.createElement(BankIconLarge, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26335
26336
|
childGap: "0"
|
|
26336
26337
|
}, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
|
|
26337
26338
|
color: themeValues.textColor
|
|
@@ -26386,7 +26387,7 @@ var CardType = function CardType(_ref) {
|
|
|
26386
26387
|
var _ref2 = cardBrands[normalizedType] || cardBrands["default"],
|
|
26387
26388
|
label = _ref2.label,
|
|
26388
26389
|
IconComponent = _ref2[size];
|
|
26389
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26390
|
+
return /*#__PURE__*/React__default.createElement(IconComponent, null);
|
|
26390
26391
|
};
|
|
26391
26392
|
|
|
26392
26393
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
@@ -26463,7 +26464,7 @@ var CreditCardWrapper = styled__default.div.withConfig({
|
|
|
26463
26464
|
var CCIconWrapper = styled__default.div.withConfig({
|
|
26464
26465
|
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
26465
26466
|
componentId: "sc-s0ta5l-1"
|
|
26466
|
-
})(["margin-right:
|
|
26467
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26467
26468
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
26468
26469
|
var lastFour = _ref.lastFour,
|
|
26469
26470
|
type = _ref.type,
|
|
@@ -27572,7 +27573,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27572
27573
|
borderWidth: "1px",
|
|
27573
27574
|
borderStyle: "solid",
|
|
27574
27575
|
borderRadius: "12px",
|
|
27575
|
-
margin: "6px
|
|
27576
|
+
margin: "6px 8px 6px 6px",
|
|
27576
27577
|
height: "24px",
|
|
27577
27578
|
width: "24px",
|
|
27578
27579
|
variants: buttonBorder,
|
|
@@ -40923,9 +40924,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
40923
40924
|
_ref$editItemAriaRole = _ref.editItemAriaRole,
|
|
40924
40925
|
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
|
|
40925
40926
|
_ref$disablePlacehold = _ref.disablePlaceholder,
|
|
40926
|
-
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold
|
|
40927
|
-
_ref$getEditHref = _ref.getEditHref,
|
|
40928
|
-
getEditHref = _ref$getEditHref === void 0 ? null : _ref$getEditHref;
|
|
40927
|
+
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
|
|
40929
40928
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
40930
40929
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40931
40930
|
padding: listPadding,
|
|
@@ -40992,12 +40991,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
40992
40991
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
40993
40992
|
dataQa: qaPrefix + " Edit",
|
|
40994
40993
|
key: "Edit ".concat(item.id)
|
|
40995
|
-
},
|
|
40996
|
-
to: getEditHref(item),
|
|
40997
|
-
fontWeight: "400",
|
|
40998
|
-
extraStyles: "margin: 0.5rem; min-width: 0;",
|
|
40999
|
-
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
41000
|
-
}, "Edit") : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40994
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
41001
40995
|
variant: "smallGhost",
|
|
41002
40996
|
text: "Edit",
|
|
41003
40997
|
action: function action() {
|