@everymatrix/cashier-methods-list 1.28.3 → 1.28.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-methods-list",
3
- "version": "1.28.3",
3
+ "version": "1.28.4",
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": "1bfc13085b6829695a52b1569af671db1c024e41"
39
39
  }
@@ -1,3 +1,9 @@
1
+ export interface Currency {
2
+ Name: string;
3
+ MinAmountLimit: number;
4
+ MaxAmountLimit: number;
5
+ }
6
+
1
7
  export interface PaymentMethod {
2
8
  Name: string;
3
9
  Label: string;
@@ -5,4 +11,5 @@ export interface PaymentMethod {
5
11
  MaxLimit: number;
6
12
  Currency: string;
7
13
  LogoUrl: string;
14
+ DisplayCurrency: Currency
8
15
  }
@@ -175,6 +175,8 @@
175
175
  </div>
176
176
  {/if}
177
177
  <style lang="scss">
178
+ $color-black-transparency-10: var(--mmw--color-black-transparency-10, rgba(0, 0, 0, .1));
179
+ $border-radius-medium-plus: var(--mmw--border-radius-medium-plus, 6px);
178
180
 
179
181
  *,
180
182
  *::before,
@@ -189,10 +191,10 @@
189
191
  .CashierMethodList {
190
192
  display: flex;
191
193
  flex-direction: column;
192
- background: var(--emw--color-background, #FFF);
193
- box-shadow: 0 0 4px rgba(0, 0, 0, 0.10);
194
+ background: var(--emw--color-background, #fff);
195
+ box-shadow: 0 0 4px $color-black-transparency-10;
194
196
  width: 100%;
195
- border-radius: var(--emw--border-radius-large, 6px);
197
+ border-radius: $border-radius-medium-plus;
196
198
  .SelectorWrapper {
197
199
  display: flex;
198
200
  flex-direction: row;
@@ -202,25 +204,25 @@
202
204
  position: relative;
203
205
  height: 52px;
204
206
  box-sizing: border-box;
205
- border-bottom: 1px solid var(--emw--color-gray-100, #E8E9EB);
206
- padding: 0 12px;
207
+ border-bottom: 1px solid var(--mmw--color-grey-105, #E8E9EB);
208
+ padding: 0 var(--emw--spacing-small, 12px);
207
209
  &:first-child {
208
- border-radius: var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px) 0 0;
210
+ border-radius: $border-radius-medium-plus $border-radius-medium-plus 0 0;
209
211
  }
210
212
  &:last-child {
211
- border-radius: 0 0 var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px);
213
+ border-radius: 0 0 $border-radius-medium-plus $border-radius-medium-plus;
212
214
  }
213
215
  &.checked {
214
- background: var(--emw--color-background-secondary, #F9F9F9);
216
+ background: var(--emw--color-background-secondary, #F9F8F8);
215
217
  }
216
218
  }
217
219
  .MethodLogo {
218
- margin-right: 7px;
220
+ margin-right: var(--mmw--spacing-x-small-minus, 7px);
219
221
  width: 56px;
220
222
  height: 32px;
221
223
  background: var(--emw--color-background, #FFF);
222
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
223
- border-radius: var(--emw--border-radius-large, 6px);
224
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
225
+ border-radius: $border-radius-medium-plus;
224
226
  overflow: hidden;
225
227
  img {
226
228
  width: inherit;
@@ -228,7 +230,7 @@
228
230
  }
229
231
  }
230
232
  .MethodTitle {
231
- color: var(--emw--color-black, #111);
233
+ color: var(--mmw--color-grey-10, #111);
232
234
  font-size: var(--emw--font-size-small, 14px);
233
235
  word-break: break-all;
234
236
  font-feature-settings: 'numr' on;
@@ -241,9 +243,9 @@
241
243
  .Limits {
242
244
  max-width: 100%;
243
245
  white-space: nowrap;
244
- font-size: var(--emw--font-size-2x-small, 11px);
246
+ font-size: var(--emw--font-size-2x-small-plus, 11px);
245
247
  line-height: var(--emw--size-small, 14px);
246
- color: var(--emw--color-gray-300, #666);
248
+ color: var(--mmw--color-grey-290, #666);
247
249
  font-weight: var(--emw--font-weight-normal, 400);
248
250
  font-style: normal;
249
251
  }
@@ -251,23 +253,23 @@
251
253
  }
252
254
  .ShowAllButton {
253
255
  cursor: pointer;
254
- color: var(--emw--color-gray-300, #666);
256
+ color: var(--mmw--color-grey-290, #666);
255
257
  text-align: center;
256
258
  font-size: var(--emw--font-size-x-small, 12px);
257
259
  font-style: normal;
258
260
  font-weight: var(--emw--font-weight-semibold, 500);
259
- background: var(--emw--color-gray-150, #F7F8FA);
261
+ background: var(--emw--color-gray-50, #F7F8FA);
260
262
  line-height: normal;
261
- border: 1px solid var(--emw--color-gray-100, #E8E9EB);
263
+ border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
262
264
  border-radius: var(--emw--border-radius-medium, 4px);
263
- margin: 12px auto;
265
+ margin: var(--emw--spacing-small, 12px) auto;
264
266
  height: 36px;
265
267
  display: flex;
266
268
  align-items: center;
267
269
  justify-content: center;
268
270
  width: 80%;
269
271
  &:hover {
270
- background: var(--emw--color-background, #FFF);
272
+ background: var(--emw--color-background, #fff);
271
273
  }
272
274
  }
273
275