@thecb/components 7.7.0-beta.3 → 7.7.0-beta.5

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
@@ -6332,6 +6332,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
6332
6332
  var ACTIVE = "ACTIVE";
6333
6333
  var EXPIRING_SOON = "EXPIRING_SOON";
6334
6334
  var EXPIRED = "EXPIRED";
6335
+ var textMargin = textAlign === "right" ? "auto" : "0";
6335
6336
 
6336
6337
  switch (expirationStatus) {
6337
6338
  case ACTIVE:
@@ -6339,7 +6340,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
6339
6340
  as: as,
6340
6341
  variant: "pXS",
6341
6342
  color: ASH_GREY,
6342
- extraStyles: "text-align: ".concat(textAlign, ";")
6343
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
6343
6344
  }, "Exp Date ", expireDate);
6344
6345
 
6345
6346
  case EXPIRING_SOON:
@@ -6347,7 +6348,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
6347
6348
  as: as,
6348
6349
  variant: "pXS",
6349
6350
  color: FIRE_YELLOW,
6350
- extraStyles: "text-align: ".concat(textAlign, ";")
6351
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
6351
6352
  }, "Expiring Soon ", expireDate);
6352
6353
 
6353
6354
  case EXPIRED:
@@ -6355,7 +6356,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
6355
6356
  as: as,
6356
6357
  variant: "pXS",
6357
6358
  color: ASH_GREY,
6358
- extraStyles: "text-align: ".concat(textAlign, ";")
6359
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
6359
6360
  }, "Expired");
6360
6361
  }
6361
6362
  };