@xswap-link/sdk 0.0.13 → 0.1.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.
Files changed (81) hide show
  1. package/.github/workflows/main.yml +1 -1
  2. package/.github/workflows/publish.yml +1 -1
  3. package/.prettierrc +7 -0
  4. package/CHANGELOG.md +12 -1
  5. package/README.md +23 -14
  6. package/dist/index.css +1012 -0
  7. package/dist/index.d.mts +209 -52
  8. package/dist/index.d.ts +209 -52
  9. package/dist/index.js +33963 -88
  10. package/dist/index.mjs +33949 -76
  11. package/package.json +8 -2
  12. package/postcss.config.js +3 -0
  13. package/src/components/Alert/index.tsx +9 -0
  14. package/src/components/Skeleton/index.tsx +10 -0
  15. package/src/components/TxConfigForm/Form.tsx +567 -0
  16. package/src/components/TxConfigForm/History.tsx +159 -0
  17. package/src/components/TxConfigForm/HistoryCard.tsx +209 -0
  18. package/src/components/TxConfigForm/TokenPicker.tsx +165 -0
  19. package/src/components/TxConfigForm/index.jsx +100 -0
  20. package/src/components/global.css +34 -0
  21. package/src/components/global.d.ts +6 -0
  22. package/src/components/icons/ArrowRightIcon.tsx +11 -0
  23. package/src/components/icons/ArrowUpRightIcon.tsx +11 -0
  24. package/src/components/icons/CheckIcon.tsx +11 -0
  25. package/src/components/icons/ChevronDownIcon.tsx +15 -0
  26. package/src/components/icons/ChevronUpIcon.tsx +15 -0
  27. package/src/components/icons/CircularProgressIcon.tsx +24 -0
  28. package/src/components/icons/CloseIcon.tsx +15 -0
  29. package/src/components/icons/CoinsIcon.tsx +15 -0
  30. package/src/components/icons/DownArrorIcon.tsx +17 -0
  31. package/src/components/icons/HistoryIcon.tsx +13 -0
  32. package/src/components/icons/HourGlassIcon.tsx +11 -0
  33. package/src/components/icons/PercentageIcon.tsx +29 -0
  34. package/src/components/icons/SearchIcon.tsx +15 -0
  35. package/src/components/icons/XMarkIcon.tsx +11 -0
  36. package/src/components/icons/index.ts +14 -0
  37. package/src/components/index.ts +3 -0
  38. package/src/constants/index.ts +6 -5
  39. package/src/contracts/abi/BatchQuery.json +52 -0
  40. package/src/contracts/abi/index.ts +2 -0
  41. package/src/contracts/addresses.ts +34 -0
  42. package/src/contracts/index.ts +1 -0
  43. package/src/hooks/index.ts +1 -0
  44. package/src/hooks/useDebounce.tsx +21 -0
  45. package/src/index.ts +6 -0
  46. package/src/models/Addresses.ts +12 -0
  47. package/src/models/Route.ts +17 -5
  48. package/src/models/TokenData.ts +45 -0
  49. package/src/models/TransactionHistory.ts +48 -0
  50. package/src/models/XSwapConfig.ts +3 -0
  51. package/src/models/forms/TxConfigFormData.ts +8 -0
  52. package/src/models/forms/index.ts +1 -0
  53. package/src/models/index.ts +6 -6
  54. package/src/models/integrations/GenerateStakingCallsParams.ts +8 -0
  55. package/src/models/integrations/index.ts +1 -0
  56. package/src/models/payloads/GetPricesPayload.ts +4 -0
  57. package/src/models/payloads/GetRoutePayload.ts +1 -3
  58. package/src/models/payloads/GetSwapTxPayload.ts +8 -0
  59. package/src/models/payloads/index.ts +2 -0
  60. package/src/services/api.ts +46 -64
  61. package/src/services/index.ts +1 -0
  62. package/src/services/integrations/customCalls/index.ts +1 -0
  63. package/src/services/integrations/customCalls/staking.ts +83 -0
  64. package/src/services/integrations/index.ts +2 -0
  65. package/src/services/integrations/transactions.ts +30 -0
  66. package/src/utils/contracts.ts +153 -11
  67. package/src/utils/index.ts +49 -1
  68. package/src/utils/numbers.ts +47 -0
  69. package/src/utils/strings.ts +6 -0
  70. package/tailwind.config.js +14 -0
  71. package/test/api.test.ts +1 -1
  72. package/tsconfig.json +10 -1
  73. package/xswap.config.ts +18 -0
  74. package/index.ts +0 -5
  75. package/src/models/ApiOverrides.ts +0 -3
  76. package/src/models/Chain.ts +0 -20
  77. package/src/models/Prices.ts +0 -9
  78. package/src/models/Token.ts +0 -10
  79. package/src/models/XSwapFee.ts +0 -4
  80. package/src/models/XSwapFees.ts +0 -7
  81. package/src/utils/bigNumbers.ts +0 -7
package/dist/index.css ADDED
@@ -0,0 +1,1012 @@
1
+ /* src/components/global.css */
2
+ *,
3
+ ::before,
4
+ ::after {
5
+ box-sizing: border-box;
6
+ border-width: 0;
7
+ border-style: solid;
8
+ border-color: #e5e7eb;
9
+ }
10
+ ::before,
11
+ ::after {
12
+ --tw-content: "";
13
+ }
14
+ html,
15
+ :host {
16
+ line-height: 1.5;
17
+ -webkit-text-size-adjust: 100%;
18
+ -moz-tab-size: 4;
19
+ tab-size: 4;
20
+ font-family:
21
+ ui-sans-serif,
22
+ system-ui,
23
+ sans-serif,
24
+ "Apple Color Emoji",
25
+ "Segoe UI Emoji",
26
+ "Segoe UI Symbol",
27
+ "Noto Color Emoji";
28
+ font-feature-settings: normal;
29
+ font-variation-settings: normal;
30
+ -webkit-tap-highlight-color: transparent;
31
+ }
32
+ body {
33
+ margin: 0;
34
+ line-height: inherit;
35
+ }
36
+ hr {
37
+ height: 0;
38
+ color: inherit;
39
+ border-top-width: 1px;
40
+ }
41
+ abbr:where([title]) {
42
+ text-decoration: underline dotted;
43
+ }
44
+ h1,
45
+ h2,
46
+ h3,
47
+ h4,
48
+ h5,
49
+ h6 {
50
+ font-size: inherit;
51
+ font-weight: inherit;
52
+ }
53
+ a {
54
+ color: inherit;
55
+ text-decoration: inherit;
56
+ }
57
+ b,
58
+ strong {
59
+ font-weight: bolder;
60
+ }
61
+ code,
62
+ kbd,
63
+ samp,
64
+ pre {
65
+ font-family:
66
+ ui-monospace,
67
+ SFMono-Regular,
68
+ Menlo,
69
+ Monaco,
70
+ Consolas,
71
+ "Liberation Mono",
72
+ "Courier New",
73
+ monospace;
74
+ font-feature-settings: normal;
75
+ font-variation-settings: normal;
76
+ font-size: 1em;
77
+ }
78
+ small {
79
+ font-size: 80%;
80
+ }
81
+ sub,
82
+ sup {
83
+ font-size: 75%;
84
+ line-height: 0;
85
+ position: relative;
86
+ vertical-align: baseline;
87
+ }
88
+ sub {
89
+ bottom: -0.25em;
90
+ }
91
+ sup {
92
+ top: -0.5em;
93
+ }
94
+ table {
95
+ text-indent: 0;
96
+ border-color: inherit;
97
+ border-collapse: collapse;
98
+ }
99
+ button,
100
+ input,
101
+ optgroup,
102
+ select,
103
+ textarea {
104
+ font-family: inherit;
105
+ font-feature-settings: inherit;
106
+ font-variation-settings: inherit;
107
+ font-size: 100%;
108
+ font-weight: inherit;
109
+ line-height: inherit;
110
+ letter-spacing: inherit;
111
+ color: inherit;
112
+ margin: 0;
113
+ padding: 0;
114
+ }
115
+ button,
116
+ select {
117
+ text-transform: none;
118
+ }
119
+ button,
120
+ input:where([type=button]),
121
+ input:where([type=reset]),
122
+ input:where([type=submit]) {
123
+ -webkit-appearance: button;
124
+ background-color: transparent;
125
+ background-image: none;
126
+ }
127
+ :-moz-focusring {
128
+ outline: auto;
129
+ }
130
+ :-moz-ui-invalid {
131
+ box-shadow: none;
132
+ }
133
+ progress {
134
+ vertical-align: baseline;
135
+ }
136
+ ::-webkit-inner-spin-button,
137
+ ::-webkit-outer-spin-button {
138
+ height: auto;
139
+ }
140
+ [type=search] {
141
+ -webkit-appearance: textfield;
142
+ outline-offset: -2px;
143
+ }
144
+ ::-webkit-search-decoration {
145
+ -webkit-appearance: none;
146
+ }
147
+ ::-webkit-file-upload-button {
148
+ -webkit-appearance: button;
149
+ font: inherit;
150
+ }
151
+ summary {
152
+ display: list-item;
153
+ }
154
+ blockquote,
155
+ dl,
156
+ dd,
157
+ h1,
158
+ h2,
159
+ h3,
160
+ h4,
161
+ h5,
162
+ h6,
163
+ hr,
164
+ figure,
165
+ p,
166
+ pre {
167
+ margin: 0;
168
+ }
169
+ fieldset {
170
+ margin: 0;
171
+ padding: 0;
172
+ }
173
+ legend {
174
+ padding: 0;
175
+ }
176
+ ol,
177
+ ul,
178
+ menu {
179
+ list-style: none;
180
+ margin: 0;
181
+ padding: 0;
182
+ }
183
+ dialog {
184
+ padding: 0;
185
+ }
186
+ textarea {
187
+ resize: vertical;
188
+ }
189
+ input::placeholder,
190
+ textarea::placeholder {
191
+ opacity: 1;
192
+ color: #9ca3af;
193
+ }
194
+ button,
195
+ [role=button] {
196
+ cursor: pointer;
197
+ }
198
+ :disabled {
199
+ cursor: default;
200
+ }
201
+ img,
202
+ svg,
203
+ video,
204
+ canvas,
205
+ audio,
206
+ iframe,
207
+ embed,
208
+ object {
209
+ display: block;
210
+ vertical-align: middle;
211
+ }
212
+ img,
213
+ video {
214
+ max-width: 100%;
215
+ height: auto;
216
+ }
217
+ [hidden] {
218
+ display: none;
219
+ }
220
+ *,
221
+ ::before,
222
+ ::after {
223
+ --tw-border-spacing-x: 0;
224
+ --tw-border-spacing-y: 0;
225
+ --tw-translate-x: 0;
226
+ --tw-translate-y: 0;
227
+ --tw-rotate: 0;
228
+ --tw-skew-x: 0;
229
+ --tw-skew-y: 0;
230
+ --tw-scale-x: 1;
231
+ --tw-scale-y: 1;
232
+ --tw-pan-x: ;
233
+ --tw-pan-y: ;
234
+ --tw-pinch-zoom: ;
235
+ --tw-scroll-snap-strictness: proximity;
236
+ --tw-gradient-from-position: ;
237
+ --tw-gradient-via-position: ;
238
+ --tw-gradient-to-position: ;
239
+ --tw-ordinal: ;
240
+ --tw-slashed-zero: ;
241
+ --tw-numeric-figure: ;
242
+ --tw-numeric-spacing: ;
243
+ --tw-numeric-fraction: ;
244
+ --tw-ring-inset: ;
245
+ --tw-ring-offset-width: 0px;
246
+ --tw-ring-offset-color: #fff;
247
+ --tw-ring-color: rgb(59 130 246 / 0.5);
248
+ --tw-ring-offset-shadow: 0 0 #0000;
249
+ --tw-ring-shadow: 0 0 #0000;
250
+ --tw-shadow: 0 0 #0000;
251
+ --tw-shadow-colored: 0 0 #0000;
252
+ --tw-blur: ;
253
+ --tw-brightness: ;
254
+ --tw-contrast: ;
255
+ --tw-grayscale: ;
256
+ --tw-hue-rotate: ;
257
+ --tw-invert: ;
258
+ --tw-saturate: ;
259
+ --tw-sepia: ;
260
+ --tw-drop-shadow: ;
261
+ --tw-backdrop-blur: ;
262
+ --tw-backdrop-brightness: ;
263
+ --tw-backdrop-contrast: ;
264
+ --tw-backdrop-grayscale: ;
265
+ --tw-backdrop-hue-rotate: ;
266
+ --tw-backdrop-invert: ;
267
+ --tw-backdrop-opacity: ;
268
+ --tw-backdrop-saturate: ;
269
+ --tw-backdrop-sepia: ;
270
+ --tw-contain-size: ;
271
+ --tw-contain-layout: ;
272
+ --tw-contain-paint: ;
273
+ --tw-contain-style: ;
274
+ }
275
+ ::backdrop {
276
+ --tw-border-spacing-x: 0;
277
+ --tw-border-spacing-y: 0;
278
+ --tw-translate-x: 0;
279
+ --tw-translate-y: 0;
280
+ --tw-rotate: 0;
281
+ --tw-skew-x: 0;
282
+ --tw-skew-y: 0;
283
+ --tw-scale-x: 1;
284
+ --tw-scale-y: 1;
285
+ --tw-pan-x: ;
286
+ --tw-pan-y: ;
287
+ --tw-pinch-zoom: ;
288
+ --tw-scroll-snap-strictness: proximity;
289
+ --tw-gradient-from-position: ;
290
+ --tw-gradient-via-position: ;
291
+ --tw-gradient-to-position: ;
292
+ --tw-ordinal: ;
293
+ --tw-slashed-zero: ;
294
+ --tw-numeric-figure: ;
295
+ --tw-numeric-spacing: ;
296
+ --tw-numeric-fraction: ;
297
+ --tw-ring-inset: ;
298
+ --tw-ring-offset-width: 0px;
299
+ --tw-ring-offset-color: #fff;
300
+ --tw-ring-color: rgb(59 130 246 / 0.5);
301
+ --tw-ring-offset-shadow: 0 0 #0000;
302
+ --tw-ring-shadow: 0 0 #0000;
303
+ --tw-shadow: 0 0 #0000;
304
+ --tw-shadow-colored: 0 0 #0000;
305
+ --tw-blur: ;
306
+ --tw-brightness: ;
307
+ --tw-contrast: ;
308
+ --tw-grayscale: ;
309
+ --tw-hue-rotate: ;
310
+ --tw-invert: ;
311
+ --tw-saturate: ;
312
+ --tw-sepia: ;
313
+ --tw-drop-shadow: ;
314
+ --tw-backdrop-blur: ;
315
+ --tw-backdrop-brightness: ;
316
+ --tw-backdrop-contrast: ;
317
+ --tw-backdrop-grayscale: ;
318
+ --tw-backdrop-hue-rotate: ;
319
+ --tw-backdrop-invert: ;
320
+ --tw-backdrop-opacity: ;
321
+ --tw-backdrop-saturate: ;
322
+ --tw-backdrop-sepia: ;
323
+ --tw-contain-size: ;
324
+ --tw-contain-layout: ;
325
+ --tw-contain-paint: ;
326
+ --tw-contain-style: ;
327
+ }
328
+ .fixed {
329
+ position: fixed;
330
+ }
331
+ .absolute {
332
+ position: absolute;
333
+ }
334
+ .relative {
335
+ position: relative;
336
+ }
337
+ .bottom-0 {
338
+ bottom: 0px;
339
+ }
340
+ .left-0 {
341
+ left: 0px;
342
+ }
343
+ .right-0 {
344
+ right: 0px;
345
+ }
346
+ .right-3 {
347
+ right: 0.75rem;
348
+ }
349
+ .top-0 {
350
+ top: 0px;
351
+ }
352
+ .top-10 {
353
+ top: 2.5rem;
354
+ }
355
+ .top-3 {
356
+ top: 0.75rem;
357
+ }
358
+ .top-3\.5 {
359
+ top: 0.875rem;
360
+ }
361
+ .z-10 {
362
+ z-index: 10;
363
+ }
364
+ .z-20 {
365
+ z-index: 20;
366
+ }
367
+ .z-\[1\] {
368
+ z-index: 1;
369
+ }
370
+ .z-\[999\] {
371
+ z-index: 999;
372
+ }
373
+ .mx-0 {
374
+ margin-left: 0px;
375
+ margin-right: 0px;
376
+ }
377
+ .mx-1 {
378
+ margin-left: 0.25rem;
379
+ margin-right: 0.25rem;
380
+ }
381
+ .mx-1\.5 {
382
+ margin-left: 0.375rem;
383
+ margin-right: 0.375rem;
384
+ }
385
+ .mx-2 {
386
+ margin-left: 0.5rem;
387
+ margin-right: 0.5rem;
388
+ }
389
+ .mx-\[-24px\] {
390
+ margin-left: -24px;
391
+ margin-right: -24px;
392
+ }
393
+ .mx-auto {
394
+ margin-left: auto;
395
+ margin-right: auto;
396
+ }
397
+ .my-0 {
398
+ margin-top: 0px;
399
+ margin-bottom: 0px;
400
+ }
401
+ .my-4 {
402
+ margin-top: 1rem;
403
+ margin-bottom: 1rem;
404
+ }
405
+ .-ml-1 {
406
+ margin-left: -0.25rem;
407
+ }
408
+ .mb-2 {
409
+ margin-bottom: 0.5rem;
410
+ }
411
+ .mb-4 {
412
+ margin-bottom: 1rem;
413
+ }
414
+ .ml-1 {
415
+ margin-left: 0.25rem;
416
+ }
417
+ .ml-2 {
418
+ margin-left: 0.5rem;
419
+ }
420
+ .mr-1 {
421
+ margin-right: 0.25rem;
422
+ }
423
+ .mr-3 {
424
+ margin-right: 0.75rem;
425
+ }
426
+ .mt-4 {
427
+ margin-top: 1rem;
428
+ }
429
+ .box-border {
430
+ box-sizing: border-box;
431
+ }
432
+ .block {
433
+ display: block;
434
+ }
435
+ .flex {
436
+ display: flex;
437
+ }
438
+ .inline-flex {
439
+ display: inline-flex;
440
+ }
441
+ .h-10 {
442
+ height: 2.5rem;
443
+ }
444
+ .h-3 {
445
+ height: 0.75rem;
446
+ }
447
+ .h-3\.5 {
448
+ height: 0.875rem;
449
+ }
450
+ .h-4 {
451
+ height: 1rem;
452
+ }
453
+ .h-5 {
454
+ height: 1.25rem;
455
+ }
456
+ .h-6 {
457
+ height: 1.5rem;
458
+ }
459
+ .h-7 {
460
+ height: 1.75rem;
461
+ }
462
+ .h-9 {
463
+ height: 2.25rem;
464
+ }
465
+ .h-\[2px\] {
466
+ height: 2px;
467
+ }
468
+ .h-\[41px\] {
469
+ height: 41px;
470
+ }
471
+ .h-\[50vh\] {
472
+ height: 50vh;
473
+ }
474
+ .h-\[70\%\] {
475
+ height: 70%;
476
+ }
477
+ .h-full {
478
+ height: 100%;
479
+ }
480
+ .h-px {
481
+ height: 1px;
482
+ }
483
+ .max-h-\[40vh\] {
484
+ max-height: 40vh;
485
+ }
486
+ .max-h-\[70\%\] {
487
+ max-height: 70%;
488
+ }
489
+ .min-h-\[562px\] {
490
+ min-height: 562px;
491
+ }
492
+ .w-1\/2 {
493
+ width: 50%;
494
+ }
495
+ .w-10 {
496
+ width: 2.5rem;
497
+ }
498
+ .w-12 {
499
+ width: 3rem;
500
+ }
501
+ .w-14 {
502
+ width: 3.5rem;
503
+ }
504
+ .w-20 {
505
+ width: 5rem;
506
+ }
507
+ .w-3 {
508
+ width: 0.75rem;
509
+ }
510
+ .w-3\.5 {
511
+ width: 0.875rem;
512
+ }
513
+ .w-4 {
514
+ width: 1rem;
515
+ }
516
+ .w-4\/5 {
517
+ width: 80%;
518
+ }
519
+ .w-5 {
520
+ width: 1.25rem;
521
+ }
522
+ .w-6 {
523
+ width: 1.5rem;
524
+ }
525
+ .w-9 {
526
+ width: 2.25rem;
527
+ }
528
+ .w-96 {
529
+ width: 24rem;
530
+ }
531
+ .w-\[100\%\+48px\] {
532
+ width: 100%+48px;
533
+ }
534
+ .w-\[190px\] {
535
+ width: 190px;
536
+ }
537
+ .w-\[452px\] {
538
+ width: 452px;
539
+ }
540
+ .w-full {
541
+ width: 100%;
542
+ }
543
+ .max-w-full {
544
+ max-width: 100%;
545
+ }
546
+ .flex-1 {
547
+ flex: 1 1 0%;
548
+ }
549
+ .flex-grow {
550
+ flex-grow: 1;
551
+ }
552
+ .grow {
553
+ flex-grow: 1;
554
+ }
555
+ .translate-x-\[12px\] {
556
+ --tw-translate-x: 12px;
557
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
558
+ }
559
+ .translate-y-\[-4px\] {
560
+ --tw-translate-y: -4px;
561
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
562
+ }
563
+ @keyframes pulse {
564
+ 50% {
565
+ opacity: .5;
566
+ }
567
+ }
568
+ .animate-pulse {
569
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
570
+ }
571
+ @keyframes spin {
572
+ to {
573
+ transform: rotate(360deg);
574
+ }
575
+ }
576
+ .animate-spin {
577
+ animation: spin 1s linear infinite;
578
+ }
579
+ .cursor-pointer {
580
+ cursor: pointer;
581
+ }
582
+ .flex-col {
583
+ flex-direction: column;
584
+ }
585
+ .flex-wrap {
586
+ flex-wrap: wrap;
587
+ }
588
+ .items-start {
589
+ align-items: flex-start;
590
+ }
591
+ .items-end {
592
+ align-items: flex-end;
593
+ }
594
+ .items-center {
595
+ align-items: center;
596
+ }
597
+ .justify-end {
598
+ justify-content: flex-end;
599
+ }
600
+ .justify-center {
601
+ justify-content: center;
602
+ }
603
+ .justify-between {
604
+ justify-content: space-between;
605
+ }
606
+ .justify-around {
607
+ justify-content: space-around;
608
+ }
609
+ .gap-1 {
610
+ gap: 0.25rem;
611
+ }
612
+ .gap-2 {
613
+ gap: 0.5rem;
614
+ }
615
+ .gap-2\.5 {
616
+ gap: 0.625rem;
617
+ }
618
+ .gap-3 {
619
+ gap: 0.75rem;
620
+ }
621
+ .gap-4 {
622
+ gap: 1rem;
623
+ }
624
+ .gap-8 {
625
+ gap: 2rem;
626
+ }
627
+ .overflow-auto {
628
+ overflow: auto;
629
+ }
630
+ .overflow-hidden {
631
+ overflow: hidden;
632
+ }
633
+ .overflow-scroll {
634
+ overflow: scroll;
635
+ }
636
+ .overflow-x-hidden {
637
+ overflow-x: hidden;
638
+ }
639
+ .overflow-y-scroll {
640
+ overflow-y: scroll;
641
+ }
642
+ .overflow-ellipsis {
643
+ text-overflow: ellipsis;
644
+ }
645
+ .text-ellipsis {
646
+ text-overflow: ellipsis;
647
+ }
648
+ .whitespace-nowrap {
649
+ white-space: nowrap;
650
+ }
651
+ .rounded {
652
+ border-radius: 0.25rem;
653
+ }
654
+ .rounded-2xl {
655
+ border-radius: 1rem;
656
+ }
657
+ .rounded-3xl {
658
+ border-radius: 1.5rem;
659
+ }
660
+ .rounded-full {
661
+ border-radius: 9999px;
662
+ }
663
+ .rounded-lg {
664
+ border-radius: 0.5rem;
665
+ }
666
+ .rounded-xl {
667
+ border-radius: 0.75rem;
668
+ }
669
+ .border {
670
+ border-width: 1px;
671
+ }
672
+ .border-2 {
673
+ border-width: 2px;
674
+ }
675
+ .border-solid {
676
+ border-style: solid;
677
+ }
678
+ .border-none {
679
+ border-style: none;
680
+ }
681
+ .border-\[rgba\(255\,255\,255\,0\.1\)\] {
682
+ border-color: rgba(255, 255, 255, 0.1);
683
+ }
684
+ .border-\[rgba\(255\,255\,255\,0\.2\)\] {
685
+ border-color: rgba(255, 255, 255, 0.2);
686
+ }
687
+ .border-\[rgba\(82\,82\,82\,1\)\] {
688
+ border-color: rgba(82, 82, 82, 1);
689
+ }
690
+ .border-x_alert {
691
+ --tw-border-opacity: 1;
692
+ border-color: rgb(255 183 77 / var(--tw-border-opacity));
693
+ }
694
+ .bg-\[\#272e40\] {
695
+ --tw-bg-opacity: 1;
696
+ background-color: rgb(39 46 64 / var(--tw-bg-opacity));
697
+ }
698
+ .bg-\[rgb\(15\,15\,15\)\] {
699
+ --tw-bg-opacity: 1;
700
+ background-color: rgb(15 15 15 / var(--tw-bg-opacity));
701
+ }
702
+ .bg-\[rgb\(35\,35\,35\)\] {
703
+ --tw-bg-opacity: 1;
704
+ background-color: rgb(35 35 35 / var(--tw-bg-opacity));
705
+ }
706
+ .bg-\[rgba\(0\,0\,0\,0\.8\)\] {
707
+ background-color: rgba(0, 0, 0, 0.8);
708
+ }
709
+ .bg-\[rgba\(15\,15\,15\,1\)\] {
710
+ background-color: rgba(15, 15, 15, 1);
711
+ }
712
+ .bg-\[rgba\(255\,255\,255\,0\.1\)\] {
713
+ background-color: rgba(255, 255, 255, 0.1);
714
+ }
715
+ .bg-\[rgba\(255\,255\,255\,0\.15\)\] {
716
+ background-color: rgba(255, 255, 255, 0.15);
717
+ }
718
+ .bg-\[rgba\(255\,255\,255\,0\.3\)\] {
719
+ background-color: rgba(255, 255, 255, 0.3);
720
+ }
721
+ .bg-\[rgba\(39\,39\,39\,1\)\] {
722
+ background-color: rgba(39, 39, 39, 1);
723
+ }
724
+ .bg-black {
725
+ --tw-bg-opacity: 1;
726
+ background-color: rgb(0 0 0 / var(--tw-bg-opacity));
727
+ }
728
+ .bg-current {
729
+ background-color: currentColor;
730
+ }
731
+ .bg-transparent {
732
+ background-color: transparent;
733
+ }
734
+ .bg-white {
735
+ --tw-bg-opacity: 1;
736
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
737
+ }
738
+ .bg-x_blue {
739
+ --tw-bg-opacity: 1;
740
+ background-color: rgb(51 150 255 / var(--tw-bg-opacity));
741
+ }
742
+ .bg-gradient-to-r {
743
+ background-image: linear-gradient(to right, var(--tw-gradient-stops));
744
+ }
745
+ .from-\[\#3681c6\] {
746
+ --tw-gradient-from: #3681c6 var(--tw-gradient-from-position);
747
+ --tw-gradient-to: rgb(54 129 198 / 0) var(--tw-gradient-to-position);
748
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
749
+ }
750
+ .to-\[\#2b4a9d\] {
751
+ --tw-gradient-to: #2b4a9d var(--tw-gradient-to-position);
752
+ }
753
+ .p-0 {
754
+ padding: 0px;
755
+ }
756
+ .p-1 {
757
+ padding: 0.25rem;
758
+ }
759
+ .p-2 {
760
+ padding: 0.5rem;
761
+ }
762
+ .p-3 {
763
+ padding: 0.75rem;
764
+ }
765
+ .p-4 {
766
+ padding: 1rem;
767
+ }
768
+ .p-5 {
769
+ padding: 1.25rem;
770
+ }
771
+ .p-6 {
772
+ padding: 1.5rem;
773
+ }
774
+ .px-0 {
775
+ padding-left: 0px;
776
+ padding-right: 0px;
777
+ }
778
+ .px-12 {
779
+ padding-left: 3rem;
780
+ padding-right: 3rem;
781
+ }
782
+ .px-2 {
783
+ padding-left: 0.5rem;
784
+ padding-right: 0.5rem;
785
+ }
786
+ .px-3 {
787
+ padding-left: 0.75rem;
788
+ padding-right: 0.75rem;
789
+ }
790
+ .px-\[24px\] {
791
+ padding-left: 24px;
792
+ padding-right: 24px;
793
+ }
794
+ .py-0 {
795
+ padding-top: 0px;
796
+ padding-bottom: 0px;
797
+ }
798
+ .py-0\.5 {
799
+ padding-top: 0.125rem;
800
+ padding-bottom: 0.125rem;
801
+ }
802
+ .py-1 {
803
+ padding-top: 0.25rem;
804
+ padding-bottom: 0.25rem;
805
+ }
806
+ .py-2 {
807
+ padding-top: 0.5rem;
808
+ padding-bottom: 0.5rem;
809
+ }
810
+ .py-4 {
811
+ padding-top: 1rem;
812
+ padding-bottom: 1rem;
813
+ }
814
+ .text-center {
815
+ text-align: center;
816
+ }
817
+ .align-middle {
818
+ vertical-align: middle;
819
+ }
820
+ .text-2xl {
821
+ font-size: 1.5rem;
822
+ line-height: 2rem;
823
+ }
824
+ .text-\[10px\] {
825
+ font-size: 10px;
826
+ }
827
+ .text-\[11px\] {
828
+ font-size: 11px;
829
+ }
830
+ .text-\[15px\] {
831
+ font-size: 15px;
832
+ }
833
+ .text-base {
834
+ font-size: 1rem;
835
+ line-height: 1.5rem;
836
+ }
837
+ .text-lg {
838
+ font-size: 1.125rem;
839
+ line-height: 1.75rem;
840
+ }
841
+ .text-sm {
842
+ font-size: 0.875rem;
843
+ line-height: 1.25rem;
844
+ }
845
+ .text-xs {
846
+ font-size: 0.75rem;
847
+ line-height: 1rem;
848
+ }
849
+ .font-medium {
850
+ font-weight: 500;
851
+ }
852
+ .font-normal {
853
+ font-weight: 400;
854
+ }
855
+ .leading-\[16px\] {
856
+ line-height: 16px;
857
+ }
858
+ .leading-\[41px\] {
859
+ line-height: 41px;
860
+ }
861
+ .text-\[\#888\] {
862
+ --tw-text-opacity: 1;
863
+ color: rgb(136 136 136 / var(--tw-text-opacity));
864
+ }
865
+ .text-\[\#e0e7fa\] {
866
+ --tw-text-opacity: 1;
867
+ color: rgb(224 231 250 / var(--tw-text-opacity));
868
+ }
869
+ .text-\[rgb\(100\,200\,100\)\] {
870
+ --tw-text-opacity: 1;
871
+ color: rgb(100 200 100 / var(--tw-text-opacity));
872
+ }
873
+ .text-\[rgb\(158\,158\,158\)\] {
874
+ --tw-text-opacity: 1;
875
+ color: rgb(158 158 158 / var(--tw-text-opacity));
876
+ }
877
+ .text-\[rgb\(250\,200\,100\)\] {
878
+ --tw-text-opacity: 1;
879
+ color: rgb(250 200 100 / var(--tw-text-opacity));
880
+ }
881
+ .text-\[rgb\(255\,100\,100\)\] {
882
+ --tw-text-opacity: 1;
883
+ color: rgb(255 100 100 / var(--tw-text-opacity));
884
+ }
885
+ .text-\[rgba\(255\,255\,255\,0\.2\)\] {
886
+ color: rgba(255, 255, 255, 0.2);
887
+ }
888
+ .text-\[rgba\(255\,255\,255\,0\.6\)\] {
889
+ color: rgba(255, 255, 255, 0.6);
890
+ }
891
+ .text-white {
892
+ --tw-text-opacity: 1;
893
+ color: rgb(255 255 255 / var(--tw-text-opacity));
894
+ }
895
+ .text-x_alert_light {
896
+ --tw-text-opacity: 1;
897
+ color: rgb(255 226 183 / var(--tw-text-opacity));
898
+ }
899
+ .no-underline {
900
+ text-decoration-line: none;
901
+ }
902
+ .opacity-25 {
903
+ opacity: 0.25;
904
+ }
905
+ .opacity-60 {
906
+ opacity: 0.6;
907
+ }
908
+ .opacity-75 {
909
+ opacity: 0.75;
910
+ }
911
+ .outline-none {
912
+ outline: 2px solid transparent;
913
+ outline-offset: 2px;
914
+ }
915
+ .filter {
916
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
917
+ }
918
+ .transition-all {
919
+ transition-property: all;
920
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
921
+ transition-duration: 150ms;
922
+ }
923
+ .xswap {
924
+ * {
925
+ scrollbar-width: thin;
926
+ scrollbar-color: #252525 #000;
927
+ }
928
+ *::-webkit-scrollbar {
929
+ width: 4px;
930
+ }
931
+ *::-webkit-scrollbar-track {
932
+ background: #000;
933
+ border-radius: 4px;
934
+ }
935
+ *::-webkit-scrollbar-thumb {
936
+ background-color: #252525;
937
+ border-radius: 4px;
938
+ }
939
+ button {
940
+ width: 100%;
941
+ }
942
+ button {
943
+ cursor: pointer;
944
+ }
945
+ button {
946
+ border-radius: 1rem;
947
+ }
948
+ button {
949
+ border-style: none;
950
+ }
951
+ button {
952
+ background-image: linear-gradient(to right, var(--tw-gradient-stops));
953
+ }
954
+ button {
955
+ --tw-gradient-from: #3681c6 var(--tw-gradient-from-position);
956
+ --tw-gradient-to: rgb(54 129 198 / 0) var(--tw-gradient-to-position);
957
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
958
+ }
959
+ button {
960
+ --tw-gradient-to: #2b4a9d var(--tw-gradient-to-position);
961
+ }
962
+ button {
963
+ padding-top: 1rem;
964
+ padding-bottom: 1rem;
965
+ }
966
+ button {
967
+ font-size: 1.25rem;
968
+ line-height: 1.75rem;
969
+ }
970
+ button {
971
+ --tw-text-opacity: 1;
972
+ color: rgb(255 255 255 / var(--tw-text-opacity));
973
+ }
974
+ button:disabled {
975
+ opacity: 0.25;
976
+ }
977
+ .globalBorder {
978
+ border: 1px solid rgba(255, 255, 255, 0.1);
979
+ }
980
+ }
981
+ .placeholder\:text-sm::placeholder {
982
+ font-size: 0.875rem;
983
+ line-height: 1.25rem;
984
+ }
985
+ .placeholder\:text-\[rgba\(255\,255\,255\,0\.2\)\]::placeholder {
986
+ color: rgba(255, 255, 255, 0.2);
987
+ }
988
+ .last\:mb-0:last-child {
989
+ margin-bottom: 0px;
990
+ }
991
+ .hover\:cursor-pointer:hover {
992
+ cursor: pointer;
993
+ }
994
+ .hover\:bg-\[rgb\(25\,25\,25\)\]:hover {
995
+ --tw-bg-opacity: 1;
996
+ background-color: rgb(25 25 25 / var(--tw-bg-opacity));
997
+ }
998
+ .focus\:outline-none:focus {
999
+ outline: 2px solid transparent;
1000
+ outline-offset: 2px;
1001
+ }
1002
+ @media (min-width: 640px) {
1003
+ .sm\:w-\[482px\] {
1004
+ width: 482px;
1005
+ }
1006
+ .sm\:flex-row {
1007
+ flex-direction: row;
1008
+ }
1009
+ .sm\:justify-start {
1010
+ justify-content: flex-start;
1011
+ }
1012
+ }