@thecb/components 11.9.0 → 11.10.0-beta.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 CHANGED
@@ -15822,7 +15822,7 @@ var GenericCardLarge = function GenericCardLarge() {
15822
15822
  fill: "none",
15823
15823
  xmlns: "http://www.w3.org/2000/svg",
15824
15824
  role: "img",
15825
- "aria-label": "Card Payment"
15825
+ "aria-label": "Credit card"
15826
15826
  }, /*#__PURE__*/React__default.createElement("rect", {
15827
15827
  width: "36",
15828
15828
  height: "24",
@@ -18700,7 +18700,9 @@ var VisaSmallIcon = function VisaSmallIcon() {
18700
18700
  height: "16",
18701
18701
  viewBox: "0 0 24 16",
18702
18702
  fill: "none",
18703
- xmlns: "http://www.w3.org/2000/svg"
18703
+ xmlns: "http://www.w3.org/2000/svg",
18704
+ role: "img",
18705
+ "aria-label": "Visa"
18704
18706
  }, /*#__PURE__*/React__default.createElement("path", {
18705
18707
  fillRule: "evenodd",
18706
18708
  clipRule: "evenodd",
@@ -18727,7 +18729,9 @@ var AmExSmallIcon = function AmExSmallIcon() {
18727
18729
  height: "16",
18728
18730
  viewBox: "0 0 24 16",
18729
18731
  fill: "none",
18730
- xmlns: "http://www.w3.org/2000/svg"
18732
+ xmlns: "http://www.w3.org/2000/svg",
18733
+ role: "img",
18734
+ "aria-label": "American Express"
18731
18735
  }, /*#__PURE__*/React__default.createElement("g", {
18732
18736
  clipPath: "url(#clip0_3693_1095)"
18733
18737
  }, /*#__PURE__*/React__default.createElement("g", {
@@ -18826,7 +18830,9 @@ var DiscoverSmallIcon = function DiscoverSmallIcon() {
18826
18830
  height: "16",
18827
18831
  viewBox: "0 0 24 16",
18828
18832
  fill: "none",
18829
- xmlns: "http://www.w3.org/2000/svg"
18833
+ xmlns: "http://www.w3.org/2000/svg",
18834
+ role: "img",
18835
+ "aria-label": "Discover"
18830
18836
  }, /*#__PURE__*/React__default.createElement("g", {
18831
18837
  clipPath: "url(#clip0_3818_267)"
18832
18838
  }, /*#__PURE__*/React__default.createElement("path", {
@@ -18951,7 +18957,9 @@ var GenericSmallIcon = function GenericSmallIcon() {
18951
18957
  height: "16",
18952
18958
  viewBox: "0 0 24 16",
18953
18959
  fill: "none",
18954
- xmlns: "http://www.w3.org/2000/svg"
18960
+ xmlns: "http://www.w3.org/2000/svg",
18961
+ role: "img",
18962
+ "aria-label": "Credit card"
18955
18963
  }, /*#__PURE__*/React__default.createElement("rect", {
18956
18964
  width: "24",
18957
18965
  height: "16",
@@ -18972,7 +18980,9 @@ var MasterCardSmallIcon = function MasterCardSmallIcon() {
18972
18980
  height: "16",
18973
18981
  viewBox: "0 0 24 16",
18974
18982
  fill: "none",
18975
- xmlns: "http://www.w3.org/2000/svg"
18983
+ xmlns: "http://www.w3.org/2000/svg",
18984
+ role: "img",
18985
+ "aria-label": "Mastercard"
18976
18986
  }, /*#__PURE__*/React__default.createElement("rect", {
18977
18987
  width: "24",
18978
18988
  height: "16",
@@ -26365,11 +26375,18 @@ var cardBrands = {
26365
26375
  large: GenericCardLarge
26366
26376
  }
26367
26377
  };
26378
+ var normalizeType = function normalizeType(type) {
26379
+ if (!type) return undefined;
26380
+ var lower = type.toLowerCase();
26381
+ if (lower === "mastercard") return "master_card";
26382
+ return lower;
26383
+ };
26368
26384
  var CardType = function CardType(_ref) {
26369
26385
  var type = _ref.type,
26370
26386
  _ref$size = _ref.size,
26371
26387
  size = _ref$size === void 0 ? "small" : _ref$size;
26372
- var _ref2 = cardBrands[type] || cardBrands["default"],
26388
+ var normalizedType = normalizeType(type);
26389
+ var _ref2 = cardBrands[normalizedType] || cardBrands["default"],
26373
26390
  label = _ref2.label,
26374
26391
  IconComponent = _ref2[size];
26375
26392
  return /*#__PURE__*/React__default.createElement("span", {
@@ -26449,7 +26466,7 @@ var CreditCardWrapper = styled__default.div.withConfig({
26449
26466
  var CCIconWrapper = styled__default.div.withConfig({
26450
26467
  displayName: "FormattedCreditCard__CCIconWrapper",
26451
26468
  componentId: "sc-s0ta5l-1"
26452
- })(["margin-right:16px;width:30px;height:auto;display:flex;"]);
26469
+ })(["margin-right:16px;width:36px;height:auto;display:flex;"]);
26453
26470
  var FormattedCreditCard = function FormattedCreditCard(_ref) {
26454
26471
  var lastFour = _ref.lastFour,
26455
26472
  type = _ref.type,
@@ -26458,14 +26475,15 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26458
26475
  expirationStatus = _ref.expirationStatus,
26459
26476
  themeValues = _ref.themeValues;
26460
26477
  return /*#__PURE__*/React__default.createElement(CreditCardWrapper, null, /*#__PURE__*/React__default.createElement(CCIconWrapper, null, /*#__PURE__*/React__default.createElement(CardType, {
26461
- type: type
26478
+ type: type,
26479
+ size: "large"
26462
26480
  })), /*#__PURE__*/React__default.createElement(Stack, {
26463
26481
  childGap: "0"
26464
26482
  }, /*#__PURE__*/React__default.createElement(Box, {
26465
26483
  padding: "0"
26466
26484
  }, /*#__PURE__*/React__default.createElement(Text$1, {
26467
26485
  variant: "p",
26468
- padding: "0 0 0 8px",
26486
+ padding: "0",
26469
26487
  color: themeValues.textColor,
26470
26488
  textAlign: "left",
26471
26489
  extraStyles: "display: inline-block;"
@@ -48914,10 +48932,10 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48914
48932
  componentId: "sc-1wtp6qc-0"
48915
48933
  })(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
48916
48934
  var isMobile = _ref2.isMobile;
48917
- return isMobile ? "14px" : "18px";
48935
+ return isMobile ? "16px" : "24px";
48918
48936
  }, function (_ref3) {
48919
48937
  var isMobile = _ref3.isMobile;
48920
- return isMobile ? "22px" : "28px";
48938
+ return isMobile ? "24px" : "36px";
48921
48939
  }, function (_ref4) {
48922
48940
  var fade = _ref4.fade;
48923
48941
  return fade && "opacity: 0.4;";