@rango-dev/ui 0.15.1-next.16 → 0.15.1-next.18

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 (55) hide show
  1. package/dist/index.js +6 -6
  2. package/dist/index.js.map +4 -4
  3. package/dist/translations/en.d.ts.map +1 -1
  4. package/dist/translations/es.d.ts.map +1 -1
  5. package/dist/translations/fr.d.ts.map +1 -1
  6. package/dist/translations/jp.d.ts.map +1 -1
  7. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.d.ts +5 -0
  8. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.d.ts.map +1 -0
  9. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts +156 -0
  10. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -0
  11. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.types.d.ts +6 -0
  12. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.types.d.ts.map +1 -0
  13. package/dist/widget/ui/src/components/BlockchainsChip/index.d.ts +2 -0
  14. package/dist/widget/ui/src/components/BlockchainsChip/index.d.ts.map +1 -0
  15. package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
  16. package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts +2 -1
  17. package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts.map +1 -1
  18. package/dist/widget/ui/src/components/RouteCost/RouteCost.d.ts.map +1 -1
  19. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts +4 -0
  20. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +1 -0
  21. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +4 -0
  22. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts.map +1 -0
  23. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +460 -0
  24. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +1 -0
  25. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts +15 -0
  26. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts.map +1 -0
  27. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +3 -0
  28. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts.map +1 -0
  29. package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
  30. package/dist/widget/ui/src/components/Wallet/Wallet.helpers.d.ts.map +1 -1
  31. package/dist/widget/ui/src/components/index.d.ts +2 -0
  32. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  33. package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
  34. package/dist/widget/ui/src/containers/SwapInput/SwapInput.stories.d.ts.map +1 -1
  35. package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts +4 -6
  36. package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +42 -0
  39. package/src/components/BlockchainsChip/BlockchainsChip.tsx +15 -0
  40. package/src/components/BlockchainsChip/BlockchainsChip.types.ts +4 -0
  41. package/src/components/BlockchainsChip/index.ts +1 -0
  42. package/src/components/Button/Button.styles.tsx +1 -0
  43. package/src/components/Checkbox/Checkbox.types.ts +1 -1
  44. package/src/components/RouteCost/RouteCost.tsx +6 -1
  45. package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +35 -0
  46. package/src/components/SelectableCategoryList/SelectableCategoryList.styles.ts +21 -0
  47. package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +76 -0
  48. package/src/components/SelectableCategoryList/SelectableCategoryList.types.ts +16 -0
  49. package/src/components/SelectableCategoryList/index.ts +2 -0
  50. package/src/components/StepDetails/StepDetails.tsx +11 -1
  51. package/src/components/Wallet/Wallet.helpers.ts +11 -9
  52. package/src/components/index.ts +2 -0
  53. package/src/containers/SwapInput/SwapInput.stories.tsx +1 -0
  54. package/src/containers/SwapInput/SwapInput.tsx +4 -3
  55. package/src/containers/SwapInput/SwapInput.types.ts +4 -7
@@ -0,0 +1,460 @@
1
+ export declare const Container: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
2
+ sm: string;
3
+ md: string;
4
+ lg: string;
5
+ }, import("@stitches/react/types/css-util").CSS<{
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ }, {
10
+ colors: {
11
+ primary500: string;
12
+ primary600: string;
13
+ secondary100: string;
14
+ secondary200: string;
15
+ secondary300: string;
16
+ secondary400: string;
17
+ secondary500: string;
18
+ secondary600: string;
19
+ secondary700: string;
20
+ secondary800: string;
21
+ secondary900: string;
22
+ neutral100: string;
23
+ neutral200: string;
24
+ neutral300: string;
25
+ neutral400: string;
26
+ neutral500: string;
27
+ neutral600: string;
28
+ neutral700: string;
29
+ neutral800: string;
30
+ neutral900: string;
31
+ error100: string;
32
+ error300: string;
33
+ error500: string;
34
+ error600: string;
35
+ error700: string;
36
+ warning100: string;
37
+ warning300: string;
38
+ warning500: string;
39
+ warning600: string;
40
+ warning700: string;
41
+ info100: string;
42
+ info300: string;
43
+ info500: string;
44
+ info600: string;
45
+ info700: string;
46
+ success100: string;
47
+ success300: string;
48
+ success500: string;
49
+ success600: string;
50
+ success700: string;
51
+ background: string;
52
+ foreground: string;
53
+ };
54
+ space: {
55
+ 0: string;
56
+ 5: string;
57
+ 10: string;
58
+ 15: string;
59
+ 20: string;
60
+ 25: string;
61
+ 30: string;
62
+ 40: string;
63
+ 46: string;
64
+ 50: string;
65
+ 60: string;
66
+ 70: string;
67
+ 80: string;
68
+ 90: string;
69
+ 100: string;
70
+ 2: string;
71
+ 4: string;
72
+ 6: string;
73
+ 8: string;
74
+ 12: string;
75
+ 16: string;
76
+ 24: string;
77
+ 28: string;
78
+ 32: string;
79
+ };
80
+ radii: {
81
+ xs: string;
82
+ sm: string;
83
+ xm: string;
84
+ md: string;
85
+ xl: string;
86
+ lg: string;
87
+ primary: string;
88
+ secondary: string;
89
+ };
90
+ fontSizes: {
91
+ 10: string;
92
+ 12: string;
93
+ 14: string;
94
+ 16: string;
95
+ 18: string;
96
+ 20: string;
97
+ 22: string;
98
+ 24: string;
99
+ 28: string;
100
+ 32: string;
101
+ 36: string;
102
+ 40: string;
103
+ 48: string;
104
+ };
105
+ fonts: {
106
+ primary: string;
107
+ widget: string;
108
+ };
109
+ fontWeights: {
110
+ regular: number;
111
+ medium: number;
112
+ semiBold: number;
113
+ bold: number;
114
+ };
115
+ lineHeights: {
116
+ 12: string;
117
+ 16: string;
118
+ 20: string;
119
+ 24: string;
120
+ 26: string;
121
+ 28: string;
122
+ 30: string;
123
+ 36: string;
124
+ 40: string;
125
+ 44: string;
126
+ 52: string;
127
+ 64: string;
128
+ };
129
+ letterSpacings: {};
130
+ sizes: {
131
+ 4: string;
132
+ 6: string;
133
+ 8: string;
134
+ 12: string;
135
+ 16: string;
136
+ 18: string;
137
+ 20: string;
138
+ 24: string;
139
+ 28: string;
140
+ 32: string;
141
+ 36: string;
142
+ 40: string;
143
+ 45: string;
144
+ 48: string;
145
+ };
146
+ borderWidths: {};
147
+ borderStyles: {};
148
+ shadows: {
149
+ s: string;
150
+ };
151
+ zIndices: {};
152
+ transitions: {};
153
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
154
+ export declare const ImageContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
155
+ sm: string;
156
+ md: string;
157
+ lg: string;
158
+ }, import("@stitches/react/types/css-util").CSS<{
159
+ sm: string;
160
+ md: string;
161
+ lg: string;
162
+ }, {
163
+ colors: {
164
+ primary500: string;
165
+ primary600: string;
166
+ secondary100: string;
167
+ secondary200: string;
168
+ secondary300: string;
169
+ secondary400: string;
170
+ secondary500: string;
171
+ secondary600: string;
172
+ secondary700: string;
173
+ secondary800: string;
174
+ secondary900: string;
175
+ neutral100: string;
176
+ neutral200: string;
177
+ neutral300: string;
178
+ neutral400: string;
179
+ neutral500: string;
180
+ neutral600: string;
181
+ neutral700: string;
182
+ neutral800: string;
183
+ neutral900: string;
184
+ error100: string;
185
+ error300: string;
186
+ error500: string;
187
+ error600: string;
188
+ error700: string;
189
+ warning100: string;
190
+ warning300: string;
191
+ warning500: string;
192
+ warning600: string;
193
+ warning700: string;
194
+ info100: string;
195
+ info300: string;
196
+ info500: string;
197
+ info600: string;
198
+ info700: string;
199
+ success100: string;
200
+ success300: string;
201
+ success500: string;
202
+ success600: string;
203
+ success700: string;
204
+ background: string;
205
+ foreground: string;
206
+ };
207
+ space: {
208
+ 0: string;
209
+ 5: string;
210
+ 10: string;
211
+ 15: string;
212
+ 20: string;
213
+ 25: string;
214
+ 30: string;
215
+ 40: string;
216
+ 46: string;
217
+ 50: string;
218
+ 60: string;
219
+ 70: string;
220
+ 80: string;
221
+ 90: string;
222
+ 100: string;
223
+ 2: string;
224
+ 4: string;
225
+ 6: string;
226
+ 8: string;
227
+ 12: string;
228
+ 16: string;
229
+ 24: string;
230
+ 28: string;
231
+ 32: string;
232
+ };
233
+ radii: {
234
+ xs: string;
235
+ sm: string;
236
+ xm: string;
237
+ md: string;
238
+ xl: string;
239
+ lg: string;
240
+ primary: string;
241
+ secondary: string;
242
+ };
243
+ fontSizes: {
244
+ 10: string;
245
+ 12: string;
246
+ 14: string;
247
+ 16: string;
248
+ 18: string;
249
+ 20: string;
250
+ 22: string;
251
+ 24: string;
252
+ 28: string;
253
+ 32: string;
254
+ 36: string;
255
+ 40: string;
256
+ 48: string;
257
+ };
258
+ fonts: {
259
+ primary: string;
260
+ widget: string;
261
+ };
262
+ fontWeights: {
263
+ regular: number;
264
+ medium: number;
265
+ semiBold: number;
266
+ bold: number;
267
+ };
268
+ lineHeights: {
269
+ 12: string;
270
+ 16: string;
271
+ 20: string;
272
+ 24: string;
273
+ 26: string;
274
+ 28: string;
275
+ 30: string;
276
+ 36: string;
277
+ 40: string;
278
+ 44: string;
279
+ 52: string;
280
+ 64: string;
281
+ };
282
+ letterSpacings: {};
283
+ sizes: {
284
+ 4: string;
285
+ 6: string;
286
+ 8: string;
287
+ 12: string;
288
+ 16: string;
289
+ 18: string;
290
+ 20: string;
291
+ 24: string;
292
+ 28: string;
293
+ 32: string;
294
+ 36: string;
295
+ 40: string;
296
+ 45: string;
297
+ 48: string;
298
+ };
299
+ borderWidths: {};
300
+ borderStyles: {};
301
+ shadows: {
302
+ s: string;
303
+ };
304
+ zIndices: {};
305
+ transitions: {};
306
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
307
+ export declare const FirstImage: import("@stitches/react/types/styled-component").StyledComponent<"img", {}, {
308
+ sm: string;
309
+ md: string;
310
+ lg: string;
311
+ }, import("@stitches/react/types/css-util").CSS<{
312
+ sm: string;
313
+ md: string;
314
+ lg: string;
315
+ }, {
316
+ colors: {
317
+ primary500: string;
318
+ primary600: string;
319
+ secondary100: string;
320
+ secondary200: string;
321
+ secondary300: string;
322
+ secondary400: string;
323
+ secondary500: string;
324
+ secondary600: string;
325
+ secondary700: string;
326
+ secondary800: string;
327
+ secondary900: string;
328
+ neutral100: string;
329
+ neutral200: string;
330
+ neutral300: string;
331
+ neutral400: string;
332
+ neutral500: string;
333
+ neutral600: string;
334
+ neutral700: string;
335
+ neutral800: string;
336
+ neutral900: string;
337
+ error100: string;
338
+ error300: string;
339
+ error500: string;
340
+ error600: string;
341
+ error700: string;
342
+ warning100: string;
343
+ warning300: string;
344
+ warning500: string;
345
+ warning600: string;
346
+ warning700: string;
347
+ info100: string;
348
+ info300: string;
349
+ info500: string;
350
+ info600: string;
351
+ info700: string;
352
+ success100: string;
353
+ success300: string;
354
+ success500: string;
355
+ success600: string;
356
+ success700: string;
357
+ background: string;
358
+ foreground: string;
359
+ };
360
+ space: {
361
+ 0: string;
362
+ 5: string;
363
+ 10: string;
364
+ 15: string;
365
+ 20: string;
366
+ 25: string;
367
+ 30: string;
368
+ 40: string;
369
+ 46: string;
370
+ 50: string;
371
+ 60: string;
372
+ 70: string;
373
+ 80: string;
374
+ 90: string;
375
+ 100: string;
376
+ 2: string;
377
+ 4: string;
378
+ 6: string;
379
+ 8: string;
380
+ 12: string;
381
+ 16: string;
382
+ 24: string;
383
+ 28: string;
384
+ 32: string;
385
+ };
386
+ radii: {
387
+ xs: string;
388
+ sm: string;
389
+ xm: string;
390
+ md: string;
391
+ xl: string;
392
+ lg: string;
393
+ primary: string;
394
+ secondary: string;
395
+ };
396
+ fontSizes: {
397
+ 10: string;
398
+ 12: string;
399
+ 14: string;
400
+ 16: string;
401
+ 18: string;
402
+ 20: string;
403
+ 22: string;
404
+ 24: string;
405
+ 28: string;
406
+ 32: string;
407
+ 36: string;
408
+ 40: string;
409
+ 48: string;
410
+ };
411
+ fonts: {
412
+ primary: string;
413
+ widget: string;
414
+ };
415
+ fontWeights: {
416
+ regular: number;
417
+ medium: number;
418
+ semiBold: number;
419
+ bold: number;
420
+ };
421
+ lineHeights: {
422
+ 12: string;
423
+ 16: string;
424
+ 20: string;
425
+ 24: string;
426
+ 26: string;
427
+ 28: string;
428
+ 30: string;
429
+ 36: string;
430
+ 40: string;
431
+ 44: string;
432
+ 52: string;
433
+ 64: string;
434
+ };
435
+ letterSpacings: {};
436
+ sizes: {
437
+ 4: string;
438
+ 6: string;
439
+ 8: string;
440
+ 12: string;
441
+ 16: string;
442
+ 18: string;
443
+ 20: string;
444
+ 24: string;
445
+ 28: string;
446
+ 32: string;
447
+ 36: string;
448
+ 40: string;
449
+ 45: string;
450
+ 48: string;
451
+ };
452
+ borderWidths: {};
453
+ borderStyles: {};
454
+ shadows: {
455
+ s: string;
456
+ };
457
+ zIndices: {};
458
+ transitions: {};
459
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
460
+ //# sourceMappingURL=SelectableCategoryList.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectableCategoryList.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SelectableCategoryList/SelectableCategoryList.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIpB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMvB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAKrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { BlockchainMeta } from 'rango-sdk';
2
+ export interface PropTypes {
3
+ setCategory: (type: string) => void;
4
+ category: string;
5
+ blockchains: BlockchainMeta[];
6
+ isLoading?: boolean;
7
+ }
8
+ export declare enum BlockchainCategories {
9
+ ALL = "ALL",
10
+ EVM = "EVM",
11
+ COSMOS = "COSMOS",
12
+ UTXO = "UTXO",
13
+ OTHER = "OTHER"
14
+ }
15
+ //# sourceMappingURL=SelectableCategoryList.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectableCategoryList.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SelectableCategoryList/SelectableCategoryList.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,oBAAY,oBAAoB;IAC9B,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,3 @@
1
+ export { SelectableCategoryList } from './SelectableCategoryList';
2
+ export { BlockchainCategories } from './SelectableCategoryList.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SelectableCategoryList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAA8C,MAAM,OAAO,CAAC;AA6FnE,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
1
+ {"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAA8C,MAAM,OAAO,CAAC;AAsGnE,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Wallet.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CA6BjD"}
1
+ {"version":3,"file":"Wallet.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAI3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CA6BjD"}
@@ -1,6 +1,7 @@
1
1
  export * from './I18nManager';
2
2
  export * from './Alert';
3
3
  export * from './BestRoute';
4
+ export * from './BlockchainsChip';
4
5
  export * from './BottomLogo';
5
6
  export * from './Button';
6
7
  export * from './IconButton';
@@ -21,6 +22,7 @@ export * from './RoutesOverview';
21
22
  export * from './SecondaryPage';
22
23
  export * from './SelectableWalletList';
23
24
  export * from './Wallet';
25
+ export * from './SelectableCategoryList';
24
26
  export * from './Spinner';
25
27
  export * from './StepDetail';
26
28
  export * from './SwapContainer';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC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AmB,CAAC;AAExD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAgG9C"}
1
+ {"version":3,"file":"SwapInput.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAgG9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwapInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAehC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,QAAQ,SAAU,cAAc,sBAE5C,CAAC;AAEF,eAAO,MAAM,MAAM,SAAU,cAAc,sBAQ1C,CAAC"}
1
+ {"version":3,"file":"SwapInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAehC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,QAAQ,SAAU,cAAc,sBAE5C,CAAC;AAEF,eAAO,MAAM,MAAM,SAAU,cAAc,sBAS1C,CAAC"}
@@ -16,23 +16,21 @@ export type BaseProps = {
16
16
  loading?: boolean;
17
17
  error?: boolean;
18
18
  disabled?: boolean;
19
+ label: string;
19
20
  sharpBottomStyle?: boolean;
20
21
  onClickToken: () => void;
21
22
  };
22
23
  type FromProps = {
23
- label: 'From';
24
+ mode: 'From';
24
25
  balance?: string;
25
26
  onSelectMaxBalance: () => void;
26
27
  onInputChange: (inputAmount: string) => void;
27
28
  };
28
29
  type ToProps = {
29
- label: 'To';
30
+ mode: 'To';
30
31
  percentageChange: string | null;
31
32
  warningLevel: PriceImpactWarningLevel;
32
33
  };
33
- type Common = {
34
- label: string;
35
- };
36
- export type SwapInputProps = BaseProps & (FromProps | ToProps | Common);
34
+ export type SwapInputProps = BaseProps & (FromProps | ToProps);
37
35
  export {};
38
36
  //# sourceMappingURL=SwapInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwapInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAE9F,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,IAAI,CAAC;IACZ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,uBAAuB,CAAC;CACvC,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"SwapInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAE9F,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,IAAI,CAAC;IACX,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,uBAAuB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.15.1-next.16",
3
+ "version": "0.15.1-next.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -0,0 +1,42 @@
1
+ import { darkTheme, styled } from '../../theme';
2
+
3
+ export const Chip = styled('button', {
4
+ padding: '$10',
5
+ borderRadius: '$sm',
6
+ $$color: '$colors$neutral100',
7
+ [`.${darkTheme} &`]: {
8
+ $$color: '$colors$neutral300',
9
+ },
10
+ backgroundColor: '$$color',
11
+ display: 'flex',
12
+ flexDirection: 'column',
13
+ justifyContent: 'center',
14
+ alignItems: 'center',
15
+ cursor: 'pointer',
16
+ border: 0,
17
+ '.image-container': {
18
+ borderRadius: '$xm',
19
+ overflow: 'hidden',
20
+ },
21
+ '&:hover': {
22
+ $$color: '$colors$info100',
23
+ [`.${darkTheme} &`]: {
24
+ $$color: '$colors$neutral100',
25
+ },
26
+ backgroundColor: '$$color',
27
+ },
28
+ '&:focus-visible': {
29
+ outline: 0,
30
+ $$color: '$colors$info100',
31
+ [`.${darkTheme} &`]: {
32
+ $$color: '$colors$info700',
33
+ },
34
+ backgroundColor: '$$color',
35
+ },
36
+ variants: {
37
+ selected: {
38
+ true: { outline: '1px solid $secondary500' },
39
+ false: { outline: 0 },
40
+ },
41
+ },
42
+ });
@@ -0,0 +1,15 @@
1
+ import type { PropTypes } from './BlockchainsChip.types';
2
+ import type { PropsWithChildren } from 'react';
3
+
4
+ import React from 'react';
5
+
6
+ import { Chip } from './BlockchainsChip.styles';
7
+
8
+ export function BlockchainsChip(props: PropsWithChildren<PropTypes>) {
9
+ const { children, selected, onClick } = props;
10
+ return (
11
+ <Chip selected={selected} onClick={onClick}>
12
+ {children}
13
+ </Chip>
14
+ );
15
+ }
@@ -0,0 +1,4 @@
1
+ export interface PropTypes {
2
+ selected?: boolean;
3
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
4
+ }
@@ -0,0 +1 @@
1
+ export { BlockchainsChip } from './BlockchainsChip';
@@ -94,6 +94,7 @@ export const ButtonBase = styled('button', {
94
94
  '&:disabled:hover': {
95
95
  borderColor: '$neutral800',
96
96
  transform: 'unset',
97
+ color: '$neutral800',
97
98
  },
98
99
  },
99
100
  ghost: {
@@ -7,7 +7,7 @@ type RadixCheckboxProps = Pick<
7
7
 
8
8
  interface WithLabelProps {
9
9
  id: string;
10
- label: string;
10
+ label: React.ReactNode;
11
11
  }
12
12
  interface ComponentProps {
13
13
  id?: never;