@moda/om 21.2.1 → 21.3.0

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.esm.js CHANGED
@@ -9506,6 +9506,17 @@ function requireCardTypes() {
9506
9506
  name: "CVC",
9507
9507
  size: 3
9508
9508
  }
9509
+ },
9510
+ verve: {
9511
+ niceType: "Verve",
9512
+ type: "verve",
9513
+ patterns: [[506099, 506127], 506129, [506133, 506150], [506158, 506163], 506166, 506168, 506170, 506173, [506176, 506180], 506184, [506187, 506188], 506191, 506195, 506197, 507865, 507866, [507868, 507877], [507880, 507888], 507900, 507941],
9514
+ gaps: [4, 8, 12],
9515
+ lengths: [16, 18, 19],
9516
+ code: {
9517
+ name: "CVV",
9518
+ size: 3
9519
+ }
9509
9520
  }
9510
9521
  };
9511
9522
  cardTypes_1 = cardTypes;
@@ -9692,13 +9703,14 @@ function requireDist$2() {
9692
9703
  DISCOVER: "discover",
9693
9704
  JCB: "jcb",
9694
9705
  UNIONPAY: "unionpay",
9706
+ VERVE: "verve",
9695
9707
  MAESTRO: "maestro",
9696
9708
  ELO: "elo",
9697
9709
  MIR: "mir",
9698
9710
  HIPER: "hiper",
9699
9711
  HIPERCARD: "hipercard"
9700
9712
  };
9701
- var ORIGINAL_TEST_ORDER = [cardNames.VISA, cardNames.MASTERCARD, cardNames.AMERICAN_EXPRESS, cardNames.DINERS_CLUB, cardNames.DISCOVER, cardNames.JCB, cardNames.UNIONPAY, cardNames.MAESTRO, cardNames.ELO, cardNames.MIR, cardNames.HIPER, cardNames.HIPERCARD];
9713
+ var ORIGINAL_TEST_ORDER = [cardNames.VISA, cardNames.MASTERCARD, cardNames.AMERICAN_EXPRESS, cardNames.DINERS_CLUB, cardNames.DISCOVER, cardNames.JCB, cardNames.UNIONPAY, cardNames.VERVE, cardNames.MAESTRO, cardNames.ELO, cardNames.MIR, cardNames.HIPER, cardNames.HIPERCARD];
9702
9714
  var testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9703
9715
  function findType(cardType) {
9704
9716
  return customCards[cardType] || cardTypes[cardType];
@@ -10748,7 +10760,7 @@ var useSelect = function useSelect(_ref) {
10748
10760
  };
10749
10761
  };
10750
10762
 
10751
- var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption"];
10763
+ var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight"];
10752
10764
  var Select = function Select(_ref) {
10753
10765
  var _ref2;
10754
10766
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10775,6 +10787,7 @@ var Select = function Select(_ref) {
10775
10787
  dataTestId = _ref.dataTestId,
10776
10788
  colorSwatch = _ref.colorSwatch,
10777
10789
  extraOption = _ref.extraOption,
10790
+ paddingRight = _ref.paddingRight,
10778
10791
  rest = _objectWithoutProperties(_ref, _excluded$j);
10779
10792
  var _useSelect = useSelect({
10780
10793
  value: value,
@@ -10838,7 +10851,7 @@ var Select = function Select(_ref) {
10838
10851
  value: state.value
10839
10852
  }), /*#__PURE__*/React__default.createElement(Clickable, {
10840
10853
  id: idRef && "Select__value--".concat(idRef),
10841
- className: "Select__value",
10854
+ className: classNames('Select__value', _defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null)),
10842
10855
  disabled: disabled,
10843
10856
  onClick: handleToggle,
10844
10857
  "data-test-id": dataTestId,