@thecb/components 11.11.1-beta.1 → 11.11.1-beta.2
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 +15 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card-type/CardType.js +5 -1
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +3 -3
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +30 -30
- package/src/components/molecules/editable-list/EditableList.js +22 -9
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -26321,9 +26321,9 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26321
26321
|
autoPay = _ref2.autoPay,
|
|
26322
26322
|
themeValues = _ref2.themeValues;
|
|
26323
26323
|
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
26324
|
-
padding: "0",
|
|
26325
|
-
extraStyles: "margin-right:
|
|
26326
|
-
}, /*#__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
26327
|
childGap: "0"
|
|
26328
26328
|
}, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
|
|
26329
26329
|
color: themeValues.textColor
|
|
@@ -26378,7 +26378,7 @@ var CardType = function CardType(_ref) {
|
|
|
26378
26378
|
var _ref2 = cardBrands[normalizedType] || cardBrands["default"],
|
|
26379
26379
|
label = _ref2.label,
|
|
26380
26380
|
IconComponent = _ref2[size];
|
|
26381
|
-
return /*#__PURE__*/React__default.createElement(IconComponent, null);
|
|
26381
|
+
return /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(IconComponent, null));
|
|
26382
26382
|
};
|
|
26383
26383
|
|
|
26384
26384
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
@@ -26455,7 +26455,7 @@ var CreditCardWrapper = styled.div.withConfig({
|
|
|
26455
26455
|
var CCIconWrapper = styled.div.withConfig({
|
|
26456
26456
|
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
26457
26457
|
componentId: "sc-s0ta5l-1"
|
|
26458
|
-
})(["margin-right:
|
|
26458
|
+
})(["margin-right:16px;width:36px;height:auto;display:flex;"]);
|
|
26459
26459
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
26460
26460
|
var lastFour = _ref.lastFour,
|
|
26461
26461
|
type = _ref.type,
|
|
@@ -27564,7 +27564,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27564
27564
|
borderWidth: "1px",
|
|
27565
27565
|
borderStyle: "solid",
|
|
27566
27566
|
borderRadius: "12px",
|
|
27567
|
-
margin: "6px
|
|
27567
|
+
margin: "6px 14px 6px 6px",
|
|
27568
27568
|
height: "24px",
|
|
27569
27569
|
width: "24px",
|
|
27570
27570
|
variants: buttonBorder,
|
|
@@ -40915,7 +40915,9 @@ var EditableList = function EditableList(_ref) {
|
|
|
40915
40915
|
_ref$editItemAriaRole = _ref.editItemAriaRole,
|
|
40916
40916
|
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
|
|
40917
40917
|
_ref$disablePlacehold = _ref.disablePlaceholder,
|
|
40918
|
-
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold
|
|
40918
|
+
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold,
|
|
40919
|
+
_ref$getEditHref = _ref.getEditHref,
|
|
40920
|
+
getEditHref = _ref$getEditHref === void 0 ? null : _ref$getEditHref;
|
|
40919
40921
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
40920
40922
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40921
40923
|
padding: listPadding,
|
|
@@ -40982,7 +40984,12 @@ var EditableList = function EditableList(_ref) {
|
|
|
40982
40984
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
40983
40985
|
dataQa: qaPrefix + " Edit",
|
|
40984
40986
|
key: "Edit ".concat(item.id)
|
|
40985
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
40987
|
+
}, getEditHref ? /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
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
40993
|
variant: "smallGhost",
|
|
40987
40994
|
text: "Edit",
|
|
40988
40995
|
action: function action() {
|