@everymatrix/cashier-method-details 1.28.3 → 1.28.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-method-details",
3
- "version": "1.28.3",
3
+ "version": "1.28.5",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "c8de42d76db2aad5e40a16effced6d1f80df0354"
38
+ "gitHead": "a79b46ea6029e0c4cfe17ebfabd15cec443fc85f"
39
39
  }
@@ -21,7 +21,7 @@
21
21
  name: string;
22
22
  label: string;
23
23
  description: string;
24
- type: string;
24
+ type: FieldTypes;
25
25
  defaultValue: any;
26
26
  format: string;
27
27
  placeholder: string;
@@ -49,7 +49,7 @@
49
49
  this.name = element.Name || null;
50
50
  this.label = element.Label || null;
51
51
  this.description = element.Description || null;
52
- this.type = element.Type || null;
52
+ this.type = fieldTypeMap.get(element.Type) || null;
53
53
  this.defaultValue = this.calcDefaultValue(element);
54
54
  this.format = element.Format || null;
55
55
  this.placeholder = element.Placeholder || null;
@@ -88,7 +88,11 @@
88
88
  return this.description
89
89
  }
90
90
  }
91
-
91
+ const mapReducer = (arr, [keys, val]) => [
92
+ ...arr,
93
+ ...(Array.isArray(keys) ? [...keys.map(key => [key, val])] : [[keys, val]]
94
+ )
95
+ ];
92
96
  enum TxnType {
93
97
  Deposit='Deposit',
94
98
  Withdraw='Withdraw'
@@ -101,6 +105,11 @@
101
105
  RedirectWithRetry = 'Redirect'
102
106
  }
103
107
 
108
+ const redirectModeMap = new Map([
109
+ [['Default', 0], RedirectionModeStringEnum.Default],
110
+ [['Redirect', 1], RedirectionModeStringEnum.RedirectWithRetry]
111
+ ].reduce(mapReducer, []));
112
+
104
113
  enum FieldTypes {
105
114
  Unknown ='Unknown',
106
115
  Text ='Text',
@@ -121,6 +130,27 @@
121
130
  Html = 'Html',
122
131
  QRCode = 'QR'
123
132
  }
133
+
134
+ const fieldTypeMap = new Map([
135
+ [['Unknown', 0], FieldTypes.Unknown],
136
+ [['Text', 1], FieldTypes.Text],
137
+ [['Boolean', 2], FieldTypes.Boolean],
138
+ [['Number', 3], FieldTypes.Number],
139
+ [['Money', 4], FieldTypes.Money],
140
+ [['DateTime', 5], FieldTypes.DateTime],
141
+ [['Lookup', 6], FieldTypes.Lookup],
142
+ [['IpAddress', 7], FieldTypes.IpAddress],
143
+ [['Date', 8], FieldTypes.Date],
144
+ [['Time', 9], FieldTypes.Time],
145
+ [['LookupCollection', 10], FieldTypes.LookupCollection],
146
+ [['Hidden', 11], FieldTypes.Hidden],
147
+ [['Label', 12], FieldTypes.Label],
148
+ [['Password', 13], FieldTypes.Password],
149
+ [['Link', 14], FieldTypes.Link],
150
+ [['Image', 15], FieldTypes.Image],
151
+ [['Html', 19], FieldTypes.Html],
152
+ [['QR', 20], FieldTypes.QRCode]
153
+ ].reduce(mapReducer, []))
124
154
  export let endpoint: string;
125
155
  export let session: string;
126
156
  export let lang: string = 'en';
@@ -175,6 +205,7 @@
175
205
  let maxLookupHeight: number;
176
206
  let editedAmount: number;
177
207
  let errorResponseCode: string;
208
+ let isDisabled: boolean;
178
209
 
179
210
  $: endpoint && session && selectedpaymentmethodname && currency && reinitMethod();
180
211
  $: clientstyling && customStylingContainer && setClientStyling();
@@ -196,6 +227,7 @@
196
227
  flatpickr(el, {dateFormat: dateformat}).destroy();
197
228
  })
198
229
  }
230
+ showReceiptPage = false;
199
231
  flatpickrEl = [];
200
232
  fields = [];
201
233
  prepareFields = {};
@@ -220,6 +252,7 @@
220
252
  }
221
253
  })
222
254
  }
255
+
223
256
  const createDatePicker = () => {
224
257
  const dateOptions = {
225
258
  [FieldTypes.Time]: {
@@ -246,9 +279,9 @@
246
279
  if(!el) {
247
280
  return;
248
281
  }
249
- flatpickr(flatpickrEl, dateOptions[el.dataset.type])
282
+ flatpickr(flatpickrEl, {...dateOptions[el.dataset.type], maxDate: el.dataset.maxvalue, minDate: el.dataset.minvalue})
250
283
  });
251
- }
284
+ }
252
285
  const setActiveLanguage = ():void => {
253
286
  setLocale(lang);
254
287
  }
@@ -360,7 +393,7 @@
360
393
  showError[openedLookup] = true;
361
394
  validateField(fields.find(field => field.name === openedLookup));
362
395
  }
363
- if(!e.composedPath().includes(clickedElem)){
396
+ if (!e.composedPath().includes(clickedElem)) {
364
397
  openedLookup = null;
365
398
  }
366
399
  }
@@ -374,20 +407,28 @@
374
407
  }
375
408
  event.stopPropagation();
376
409
  clickedElem = event.composedPath()[0]
377
- const clickY = clickedElem.getBoundingClientRect().y;
410
+ const innerContainer = clickedElem.getBoundingClientRect();
411
+ const outerContainer = customStylingContainer.getBoundingClientRect()
412
+ const clickY = innerContainer.y;
378
413
  const minLookupHeight = 200;
379
- const lookupMargin = 55;
380
414
  openLookupTop = (window.innerHeight - clickY) < minLookupHeight;
381
- maxLookupHeight = openLookupTop ? clickY - minLookupHeight : window.innerHeight - clickY - lookupMargin;
415
+ const topSpace = innerContainer.top - outerContainer.top - innerContainer.height;
416
+ const bottomSpace = outerContainer.bottom - innerContainer.bottom - innerContainer.height;
417
+ const dropdownSizeBottom = !openLookupTop && bottomSpace < 70 ? minLookupHeight - 50 : bottomSpace;
418
+ maxLookupHeight = openLookupTop ? topSpace : dropdownSizeBottom;
382
419
  openedLookup = name
383
420
  }
384
421
 
385
422
  const prepareTxn = () => {
423
+ if (isDisabled) {
424
+ return;
425
+ }
386
426
  isProcessingTxn = true;
387
427
  const url:URL = new URL(`${endpoint}/v1/player/${customerid}/payment/GetPaymentPrepare`);
388
428
  const headers = new Headers();
389
429
  headers.append("accept", "application/json");
390
430
  headers.append("Content-Type", "application/json");
431
+ toggleDisableActionOnPage();
391
432
  const requestParams:RequestInit = {
392
433
  method: "POST",
393
434
  mode: "cors",
@@ -417,6 +458,7 @@
417
458
  xPaymentSessionToken = data.XPaymentSessionToken;
418
459
  isProcessingTxn = false;
419
460
  showConfirmModal = true;
461
+ toggleDisableActionOnPage();
420
462
  })
421
463
  }
422
464
 
@@ -437,6 +479,10 @@
437
479
  hidePaymentDetails()
438
480
  }
439
481
 
482
+ const toggleDisableActionOnPage = () => {
483
+ window.postMessage({type: 'ToggleDisableActionOnPage', disable: isProcessingTxn})
484
+ }
485
+
440
486
  const hidePaymentDetails = () => {
441
487
  dispatchEvent(new CustomEvent('hidePaymentDetails', {
442
488
  detail: { hideMethodDetails: mobileView },
@@ -467,6 +513,7 @@
467
513
  const headers = new Headers();
468
514
  headers.append("accept", "application/json");
469
515
  headers.append("Content-Type", "application/json");
516
+ toggleDisableActionOnPage();
470
517
  const requestParams:RequestInit = {
471
518
  method: "POST",
472
519
  mode: "cors",
@@ -484,12 +531,13 @@
484
531
  }
485
532
  xPaymentSessionToken = data.XPaymentSessionToken;
486
533
  redirectUrl = data.RedirectUrl;
487
- redirectMode = data.RedirectionMode;
534
+ redirectMode = redirectModeMap.get(data.RedirectionMode);
488
535
  isProcessingTxn = false;
536
+ toggleDisableActionOnPage();
489
537
  if (!redirectUrl) {
490
538
  showReceiptPage = true;
491
539
  }
492
- if (data.RedirectionMode === RedirectionModeStringEnum.RedirectWithRetry) {
540
+ if (redirectMode === RedirectionModeStringEnum.RedirectWithRetry) {
493
541
  windowRedirect = window.open(data.RedirectUrl, '_blank');
494
542
  showRedirectNotification = !!windowRedirect;
495
543
  if (!windowRedirect) {
@@ -516,7 +564,12 @@
516
564
 
517
565
  const onLookUpChanged = (field, value) => {
518
566
  prepareFields[field.name] = value;
519
- validateField(field);
567
+ fields.filter(el => el.correlationFieldName).forEach(el => validateField(el));
568
+ }
569
+
570
+ const getValueByFieldName = (values:any[], name:string):string => {
571
+ const fieldValue = name ? values.find(el => el.Name === name).Value : '';
572
+ return fieldValue;
520
573
  }
521
574
 
522
575
  const showField = (field) => {
@@ -608,11 +661,12 @@
608
661
 
609
662
  const validateField = (field) => {
610
663
  const value = prepareFields[field.name]
611
- fieldValidation[field.name] = emptyFieldError(field, value) || patternMatchesError(field, value);
664
+ fieldValidation[field.name] = showField(field) ? (emptyFieldError(field, value) || patternMatchesError(field, value)) : '';
612
665
  }
613
666
 
614
667
  const isSubmitDisabled = (amountError, fieldValidation) => {
615
- return !!amountError || Object.values(fieldValidation).some(error => !!error)
668
+ isDisabled = !!amountError || Object.values(fieldValidation).some(error => !!error);
669
+ return isDisabled;
616
670
  }
617
671
 
618
672
  </script>
@@ -691,6 +745,8 @@
691
745
  {:else if field.type === FieldTypes.Time || field.type === FieldTypes.Date || field.type === FieldTypes.DateTime}
692
746
  <input type="text" bind:value={ prepareFields[field.name] } pattern={field.format}
693
747
  data-type={field.type}
748
+ data-maxvalue={field.maxValue}
749
+ data-minvalue={field.minValue}
694
750
  placeholder={field.placeholder}
695
751
  on:input={() => { validateField(field) }}
696
752
  on:change={() => { showError[field.name] = true; validateField(field) }}
@@ -711,14 +767,14 @@
711
767
 
712
768
  {:else if field.type === FieldTypes.Lookup}
713
769
  <div class="CustomSelect">
714
- <div class="Selected" id="{index}" on:click="{(e) => showLookup(e, field.name)}">{prepareFields[field.name] || ''}</div>
770
+ <div class="Selected" id="{index}" on:click="{(e) => showLookup(e, field.name)}"> {getValueByFieldName(field.values, prepareFields[field.name])}</div>
715
771
  <div class="OptionList"
716
772
  class:Opened={openedLookup === field.name}
717
773
  class:Top={openLookupTop}
718
774
  style="max-height: {`${maxLookupHeight}px`};"
719
775
  >
720
776
  {#each field.values as value}
721
- <div on:click="{() => {prepareFields[field.name] = value.Name; fields = fields}}">
777
+ <div on:click="{() => {onLookUpChanged(field, value.Name); fields = fields}}">
722
778
  <span>{value.Value}</span>
723
779
  </div>
724
780
  {/each}
@@ -859,10 +915,10 @@
859
915
  background: transparent;
860
916
  }
861
917
  ::-webkit-scrollbar-thumb {
862
- background: var(--emw--color-gray-100, #E8E9EB);
918
+ background: var(--mmw--color-grey-105, #E8E9EB);
863
919
  }
864
920
  ::-webkit-scrollbar-thumb:hover {
865
- background: var(--emw--color-gray-300, #666);
921
+ background: var(--mmw--color-grey-290, #666);
866
922
  }
867
923
 
868
924
  input::-webkit-outer-spin-button,
@@ -876,19 +932,20 @@
876
932
  }
877
933
  .CashierMethodDetails {
878
934
  width: 100%;
935
+ height: 100%;
879
936
  }
880
937
  .ReceiptPage {
881
938
  background-color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
882
- border-radius: 6px;
883
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
884
- padding: 0 15px 15px;
885
- margin-bottom: 10px;
939
+ border-radius: var(--mmw--border-radius-medium-plus, 6px);
940
+ box-shadow: 0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, .1));
941
+ padding: 0 var(--emw--spacing-small, 12px);
942
+ margin-bottom: var(--emw--spacing-small-minus, 10px);
886
943
  }
887
944
  .MethodsDetails {
888
945
  position: relative;
889
946
  display: flex;
890
947
  flex-direction: column;
891
- gap: 5px;
948
+ gap: var(--mmw--spacing-2x-small-plus, 5px);
892
949
  &:has(.RedirectionNotification) form {
893
950
  visibility: hidden;
894
951
  }
@@ -897,12 +954,12 @@
897
954
  align-items: center;
898
955
  display: flex;
899
956
  height: 50px;
900
- border-bottom: 1px solid var(--emw--color-gray-100, #E8E9EB);
957
+ border-bottom: 1px solid var(--mmw--color-grey-105, #E8E9EB);
901
958
 
902
959
  .SelectedLogoDescription {
903
- color: var(--emw--color-black, #111);
960
+ color: var(--mmw--color-grey-10, #111);
904
961
  font-size: var(--emw--font-size-small, 14px);
905
- margin: 7px 5px 7px 7px;
962
+ margin: var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-2x-small-plus, 5px) var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-x-small-minus, 7px);
906
963
  word-break: break-word;
907
964
  }
908
965
 
@@ -910,9 +967,9 @@
910
967
  width: 56px;
911
968
  height: 32px;
912
969
  flex-shrink: 0;
913
- background: var(--emw--color-background, #FFF);
914
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
915
- border-radius: var(--emw--border-radius-large, 6px);
970
+ background: var(--emw--color-background, #fff);
971
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
972
+ border-radius: var(--mmw--border-radius-medium-plus, 6px);
916
973
 
917
974
  img {
918
975
  max-height: 32px;
@@ -922,15 +979,15 @@
922
979
  .ChangePaymeth {
923
980
  margin-left: auto;
924
981
  cursor: pointer;
925
- color: var(--emw--color-black, #111);
982
+ color: var(--mmw--color-grey-10, #111);
926
983
  font-size: var(--emw--font-size-small, 14px);
927
984
  text-decoration-line: underline;
928
985
  }
929
986
  }
930
987
  .SelectedMethodDescription {
931
- color: var(--emw--color-gray-300, #666);
988
+ color: var(--mmw--color-grey-290, #666);
932
989
  font-size: var(--emw--font-size-x-small, 12px);
933
- margin: 10px 0 5px;
990
+ margin: var(--emw--spacing-small-minus, 10px) 0 var(--mmw--spacing-2x-small-plus, 5px);
934
991
  line-height: var(--emw--font-size-x-small, 12px);
935
992
  white-space: pre-line;
936
993
  }
@@ -942,7 +999,7 @@
942
999
  flex-direction: column;
943
1000
  align-items: center;
944
1001
  justify-content: center;
945
- gap: 20px;
1002
+ gap: var(--emw--spacing-large, 20px);
946
1003
  .RedirectionClose {
947
1004
  display: flex;
948
1005
  width: 234px;
@@ -955,21 +1012,21 @@
955
1012
  text-align: center;
956
1013
  font-size: var(--emw--font-size-x-small, 12px);
957
1014
  font-style: normal;
958
- font-weight: 500;
1015
+ font-weight: var(--emw--font-weight-semibold, 500);
959
1016
  line-height: normal;
960
1017
  text-transform: uppercase;
961
- border-radius: 4px;
1018
+ border-radius: var(--emw--border-radius-medium, 4px);
962
1019
  background: var(--emw--color-primary, #7EC51E);
963
1020
  }
964
1021
  .RedirectionTitle {
965
- color: var(--emw--color-black, #111);
1022
+ color: var(--mmw--color-grey-10, #111);
966
1023
  font-size: var(--emw--font-size-x-small, 12px);
967
1024
  font-style: normal;
968
1025
  text-transform: none;
969
- font-weight: var(--emw--font-weight-bold, 600);
1026
+ font-weight: var(--mmw--font-weight-semibold-plus, 600);
970
1027
  }
971
1028
  .RedirectionMessage {
972
- color: var(--emw--color-gray-300, #666);
1029
+ color: var(--mmw--color-grey-290, #666);
973
1030
  font-size: var(--emw--font-size-x-small, 12px);
974
1031
  font-style: normal;
975
1032
  text-transform: none;
@@ -997,10 +1054,10 @@
997
1054
  }
998
1055
  .FieldWrapper {
999
1056
  background-color: var(--emw--color-gray-transparency-100, rgba(255, 255, 255, 1));
1000
- border-radius: 6px;
1057
+ border-radius: var(--mmw--border-radius-medium-plus, 6px);
1001
1058
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
1002
- padding: 0 15px 15px;
1003
- margin-bottom: 10px;
1059
+ padding: 0 var(--emw--spacing-medium, 15px) var(--emw--spacing-medium, 15px);
1060
+ margin-bottom: var(--emw--spacing-small-minus, 10px);
1004
1061
  &:has(.QRCode, .Label) {
1005
1062
  box-shadow: none;
1006
1063
  background: transparent;
@@ -1032,22 +1089,22 @@
1032
1089
  .Alert {
1033
1090
  color: var(--emw--color-error, #FE0101);
1034
1091
  font-size: var(--emw--font-size-x-small, 12px);
1035
- margin: 5px 0 0 2px;
1092
+ margin: var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);
1036
1093
  line-height: var(--emw--font-size-x-small, 12px);
1037
1094
  }
1038
1095
  .AmountLimits {
1039
- color: var(--emw--color-gray-300, #666);
1096
+ color: var(--mmw--color-grey-290, #666);
1040
1097
  font-size: var(--emw--font-size-x-small, 12px);
1041
- margin: 5px 0 0 2px;
1098
+ margin: var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);
1042
1099
  line-height: var(--emw--font-size-x-small, 12px);
1043
1100
  }
1044
1101
  input, .Selected {
1045
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
1102
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
1046
1103
  border-radius: var(--emw--border-radius-medium, 4px);
1047
1104
  height: $input-height;
1048
1105
  line-height: var(--emw--size-small, 14px);
1049
- color: var(--emw--color-black, #111);
1050
- padding: 0 15px;
1106
+ color: var(--mmw--color-grey-10, #111);
1107
+ padding: 0 var(--emw--spacing-medium, 15px);
1051
1108
  font-style: inherit;
1052
1109
  font-family: inherit;
1053
1110
  &:focus {
@@ -1056,20 +1113,20 @@
1056
1113
  }
1057
1114
 
1058
1115
  label {
1059
- color: var(--emw--color-black, #111);
1116
+ color: var(--mmw--color-grey-10, #111);
1060
1117
  font-size: var(--emw--size-small, 14px);
1061
- margin-top: 7px;
1118
+ margin-top: var(--mmw--spacing-x-small-minus, 7px);
1062
1119
  line-height: 27px;
1063
1120
  span.Required:before {
1064
1121
  content: '*';
1065
1122
  display: inline-block;
1066
- margin-right: 2px;
1123
+ margin-right: var(--emw--spacing-3x-small, 2px);
1067
1124
  }
1068
1125
  }
1069
1126
  .Description {
1070
- color: var(--emw--color-gray-300, #666);
1127
+ color: var(--mmw--color-grey-290, #666);
1071
1128
  font-size: var(--emw--font-size-x-small, 12px);
1072
- margin: 0 0 5px 2px;
1129
+ margin: 0 0 var(--mmw--spacing-2x-small-plus, 5px) var(--emw--spacing-3x-small, 2px);
1073
1130
  line-height: var(--emw--font-size-x-small, 12px);
1074
1131
  }
1075
1132
  .PrimaryButton {
@@ -1077,37 +1134,37 @@
1077
1134
  text-align: center;
1078
1135
  font-size: var(--emw--font-size-x-small, 12px);
1079
1136
  font-style: normal;
1080
- font-weight: 400;
1137
+ font-weight: var(--emw--font-weight-normal, 400);
1081
1138
  height: 46px;
1082
1139
  border-radius: 50px;
1083
1140
  line-height: normal;
1084
1141
  border: none;
1085
1142
  background: var(--emw--color-primary, #7EC51E);
1086
1143
  width: 100%;
1087
- margin: 12px 0;
1144
+ margin: var(--emw--spacing-small, 12px) 0;
1088
1145
  cursor: pointer;
1089
1146
  display: flex;
1090
1147
  align-items: center;
1091
1148
  justify-content: center;
1092
- gap: 5px;
1149
+ gap: var(--mmw--spacing-2x-small-plus, 5px);
1093
1150
  &:has(.ButtonSpinner),
1094
1151
  &:has(.ButtonSpinner):hover,
1095
1152
  &:active {
1096
- background: var(--emw--color-active, #5C950F);
1153
+ background: var(--mmw--color-main-button-active, #5C950F);
1097
1154
  }
1098
1155
  .ButtonAmount {
1099
- font-weight: 600;
1156
+ font-weight: var(--mmw--font-weight-semibold-plus, 600);
1100
1157
  }
1101
1158
  .ButtonSpinner {
1102
1159
  animation: loading-spinner 1s linear infinite;
1103
1160
  }
1104
1161
  &[disabled] {
1105
- background: var(--emw--color-disabled, #99999980);
1162
+ background: var(--mmw--color-disabled, #99999980);
1106
1163
  cursor: auto;
1107
1164
  pointer-events: none;
1108
1165
  }
1109
1166
  &:hover {
1110
- background: var(--emw--color-hover, #71B11B);
1167
+ background: var(--mmw--color-main-button-hover, #71B11B);
1111
1168
  }
1112
1169
  }
1113
1170
  .QRCode {
@@ -1117,10 +1174,10 @@
1117
1174
  .Checkbox {
1118
1175
  display: flex;
1119
1176
  position: relative;
1120
- margin-top: 12px;
1177
+ margin-top: var(--emw--spacing-small, 12px);
1121
1178
 
1122
1179
  .Description {
1123
- margin: 0 0 0 20px;
1180
+ margin: 0 0 0 var(--emw--spacing-large, 20px);
1124
1181
  cursor: pointer;
1125
1182
  line-height: var( --emw--font-size-medium, 16px);
1126
1183
  }
@@ -1131,7 +1188,7 @@
1131
1188
  left: 0;
1132
1189
  height: 12px;
1133
1190
  width: 12px;
1134
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
1191
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
1135
1192
  border-radius: var(--emw--border-radius-medium, 4px);
1136
1193
  background-color: var(--emw--color-white, #FFF);
1137
1194
  cursor: pointer;
@@ -1187,7 +1244,7 @@
1187
1244
  width: 0;
1188
1245
  height: 0;
1189
1246
  border: 6px solid transparent;
1190
- border-color: rgb(168 169 170) transparent transparent transparent;
1247
+ border-color: var(--mmw--color-border, rgb(168 169 170)) transparent transparent transparent;
1191
1248
  }
1192
1249
  }
1193
1250
  .OptionList {
@@ -1196,23 +1253,23 @@
1196
1253
  left: 0;
1197
1254
  right: 0;
1198
1255
  z-index: 99;
1199
- background-color: white;
1200
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
1256
+ background-color: var(--emw--color-white, #fff);
1257
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
1201
1258
  border-radius: var(--emw--border-radius-medium, 4px);
1202
- margin-top: 5px;
1259
+ margin-top: var(--mmw--spacing-2x-small-plus, 5px);
1203
1260
  overflow: auto;
1204
1261
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
1205
1262
  &.Top {
1206
1263
  transform: translate(0, calc(-1 * (100% + $input-height + 10px)));
1207
1264
  }
1208
1265
  div {
1209
- padding: 8px 16px;
1266
+ padding: var(--emw--spacing-x-small, 8px) var(--emw--spacing-medium, 16px);
1210
1267
  cursor: pointer;
1211
1268
  user-select: none;
1212
1269
  line-height: calc(var(--emw--size-small, 14px) + 3px);
1213
1270
  font-size: var(--emw--size-small, 14px);
1214
1271
  &:hover {
1215
- background-color: var(--emw--color-background-secondary, #F9F9F9)
1272
+ background-color: var(--emw--color-gray-50, #F9F9F9);
1216
1273
  }
1217
1274
  }
1218
1275
  &.Opened {