@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.cjs.js CHANGED
@@ -9526,6 +9526,17 @@ function requireCardTypes() {
9526
9526
  name: "CVC",
9527
9527
  size: 3
9528
9528
  }
9529
+ },
9530
+ verve: {
9531
+ niceType: "Verve",
9532
+ type: "verve",
9533
+ 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],
9534
+ gaps: [4, 8, 12],
9535
+ lengths: [16, 18, 19],
9536
+ code: {
9537
+ name: "CVV",
9538
+ size: 3
9539
+ }
9529
9540
  }
9530
9541
  };
9531
9542
  cardTypes_1 = cardTypes;
@@ -9712,13 +9723,14 @@ function requireDist$2() {
9712
9723
  DISCOVER: "discover",
9713
9724
  JCB: "jcb",
9714
9725
  UNIONPAY: "unionpay",
9726
+ VERVE: "verve",
9715
9727
  MAESTRO: "maestro",
9716
9728
  ELO: "elo",
9717
9729
  MIR: "mir",
9718
9730
  HIPER: "hiper",
9719
9731
  HIPERCARD: "hipercard"
9720
9732
  };
9721
- 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];
9733
+ 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];
9722
9734
  var testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9723
9735
  function findType(cardType) {
9724
9736
  return customCards[cardType] || cardTypes[cardType];
@@ -10768,7 +10780,7 @@ var useSelect = function useSelect(_ref) {
10768
10780
  };
10769
10781
  };
10770
10782
 
10771
- var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption"];
10783
+ var _excluded$j = ["allowAutoFill", "autoSelect", "className", "defaultValue", "disabled", "dropDirection", "error", "idRef", "label", "name", "onChange", "options", "placeholder", "searchable", "shiftIconLeftwards", "value", "dataTestId", "colorSwatch", "extraOption", "paddingRight"];
10772
10784
  var Select = function Select(_ref) {
10773
10785
  var _ref2;
10774
10786
  var _ref$allowAutoFill = _ref.allowAutoFill,
@@ -10795,6 +10807,7 @@ var Select = function Select(_ref) {
10795
10807
  dataTestId = _ref.dataTestId,
10796
10808
  colorSwatch = _ref.colorSwatch,
10797
10809
  extraOption = _ref.extraOption,
10810
+ paddingRight = _ref.paddingRight,
10798
10811
  rest = _objectWithoutProperties(_ref, _excluded$j);
10799
10812
  var _useSelect = useSelect({
10800
10813
  value: value,
@@ -10858,7 +10871,7 @@ var Select = function Select(_ref) {
10858
10871
  value: state.value
10859
10872
  }), /*#__PURE__*/React.createElement(Clickable, {
10860
10873
  id: idRef && "Select__value--".concat(idRef),
10861
- className: "Select__value",
10874
+ className: classNames('Select__value', _defineProperty$1({}, "Select__value--padding-".concat(paddingRight), paddingRight != null)),
10862
10875
  disabled: disabled,
10863
10876
  onClick: handleToggle,
10864
10877
  "data-test-id": dataTestId,