@rango-dev/ui 0.33.1-next.5 → 0.34.1-next.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/CHANGELOG.md +10 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/translations/de.d.ts.map +1 -1
- package/dist/translations/el.d.ts.map +1 -1
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fi.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/it.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/translations/nl.d.ts.map +1 -1
- package/dist/translations/pl.d.ts.map +1 -1
- package/dist/translations/pt.d.ts.map +1 -1
- package/dist/translations/ru.d.ts.map +1 -1
- package/dist/translations/sv.d.ts.map +1 -1
- package/dist/translations/uk.d.ts.map +1 -1
- package/dist/translations/zh.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +165 -0
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +3 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +2 -2
- package/src/components/ChainToken/ChainToken.styles.ts +36 -3
- package/src/components/ChainToken/ChainToken.tsx +19 -9
- package/src/components/Chip/Chip.styles.ts +2 -2
- package/src/components/ListItemButton/ListItemButton.styles.ts +2 -2
- package/src/components/MessageBox/CollapsibleMessageBox.styles.tsx +2 -2
- package/src/components/PriceImpact/PriceImpact.tsx +1 -1
- package/src/components/Select/Select.styles.ts +2 -2
- package/src/components/SwapListItem/SwapListItem.styles.ts +2 -2
- package/src/components/Tabs/Tabs.styles.tsx +1 -1
- package/src/components/TextField/TextField.styles.ts +2 -2
- package/src/components/Toast/Toast.styles.ts +1 -1
- package/src/components/Wallet/Wallet.styles.ts +2 -2
- package/src/containers/SwapInput/SwapInput.styles.ts +11 -0
- package/src/containers/SwapInput/SwapInput.tsx +9 -2
- package/src/containers/SwapInput/TokenSection.styles.ts +14 -2
- package/src/containers/SwapInput/TokenSection.tsx +2 -2
- package/src/theme.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../translations/de.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../translations/de.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA2vd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../../../translations/el.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../../../translations/el.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAu1d,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../translations/en.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../translations/en.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAgvb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../translations/es.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../translations/es.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAuod,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fi.d.ts","sourceRoot":"","sources":["../../../../translations/fi.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"fi.d.ts","sourceRoot":"","sources":["../../../../translations/fi.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAooc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../translations/fr.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../translations/fr.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAw8d,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../translations/it.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../translations/it.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAwld,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../translations/ja.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../translations/ja.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA65W,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../../translations/nl.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../../translations/nl.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAo0c,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../../../translations/pl.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../../../translations/pl.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAopc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../translations/pt.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../translations/pt.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA49c,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../translations/ru.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../translations/ru.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA2vc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sv.d.ts","sourceRoot":"","sources":["../../../../translations/sv.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"sv.d.ts","sourceRoot":"","sources":["../../../../translations/sv.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA22b,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uk.d.ts","sourceRoot":"","sources":["../../../../translations/uk.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"uk.d.ts","sourceRoot":"","sources":["../../../../translations/uk.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAyrc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../translations/zh.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../translations/zh.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAs4V,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainToken.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChainToken/ChainToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChainToken.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChainToken/ChainToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6DpD,CAAC"}
|
|
@@ -162,6 +162,171 @@ export declare const Container: import("@stitches/react/types/styled-component")
|
|
|
162
162
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
163
163
|
export declare const ChainImageContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
164
164
|
size?: "small" | "medium" | "large" | "xmedium" | undefined;
|
|
165
|
+
hasBorder?: boolean | "true" | "false" | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
xs: string;
|
|
168
|
+
sm: string;
|
|
169
|
+
md: string;
|
|
170
|
+
lg: string;
|
|
171
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
172
|
+
xs: string;
|
|
173
|
+
sm: string;
|
|
174
|
+
md: string;
|
|
175
|
+
lg: string;
|
|
176
|
+
}, {
|
|
177
|
+
colors: {
|
|
178
|
+
primary: string;
|
|
179
|
+
primary500: string;
|
|
180
|
+
primary600: string;
|
|
181
|
+
secondary: string;
|
|
182
|
+
secondary100: string;
|
|
183
|
+
secondary200: string;
|
|
184
|
+
secondary300: string;
|
|
185
|
+
secondary400: string;
|
|
186
|
+
secondary500: string;
|
|
187
|
+
secondary600: string;
|
|
188
|
+
secondary700: string;
|
|
189
|
+
secondary800: string;
|
|
190
|
+
secondary900: string;
|
|
191
|
+
neutral: string;
|
|
192
|
+
neutral100: string;
|
|
193
|
+
neutral200: string;
|
|
194
|
+
neutral300: string;
|
|
195
|
+
neutral400: string;
|
|
196
|
+
neutral500: string;
|
|
197
|
+
neutral600: string;
|
|
198
|
+
neutral700: string;
|
|
199
|
+
neutral800: string;
|
|
200
|
+
neutral900: string;
|
|
201
|
+
error100: string;
|
|
202
|
+
error300: string;
|
|
203
|
+
error500: string;
|
|
204
|
+
error600: string;
|
|
205
|
+
error700: string;
|
|
206
|
+
warning100: string;
|
|
207
|
+
warning300: string;
|
|
208
|
+
warning500: string;
|
|
209
|
+
warning600: string;
|
|
210
|
+
warning700: string;
|
|
211
|
+
info: string;
|
|
212
|
+
info100: string;
|
|
213
|
+
info300: string;
|
|
214
|
+
info500: string;
|
|
215
|
+
info600: string;
|
|
216
|
+
info700: string;
|
|
217
|
+
success100: string;
|
|
218
|
+
success300: string;
|
|
219
|
+
success500: string;
|
|
220
|
+
success600: string;
|
|
221
|
+
success700: string;
|
|
222
|
+
background: string;
|
|
223
|
+
foreground: string;
|
|
224
|
+
};
|
|
225
|
+
space: {
|
|
226
|
+
0: string;
|
|
227
|
+
5: string;
|
|
228
|
+
10: string;
|
|
229
|
+
15: string;
|
|
230
|
+
20: string;
|
|
231
|
+
25: string;
|
|
232
|
+
30: string;
|
|
233
|
+
40: string;
|
|
234
|
+
46: string;
|
|
235
|
+
50: string;
|
|
236
|
+
60: string;
|
|
237
|
+
70: string;
|
|
238
|
+
80: string;
|
|
239
|
+
90: string;
|
|
240
|
+
100: string;
|
|
241
|
+
2: string;
|
|
242
|
+
4: string;
|
|
243
|
+
6: string;
|
|
244
|
+
8: string;
|
|
245
|
+
12: string;
|
|
246
|
+
16: string;
|
|
247
|
+
24: string;
|
|
248
|
+
28: string;
|
|
249
|
+
32: string;
|
|
250
|
+
};
|
|
251
|
+
radii: {
|
|
252
|
+
xs: string;
|
|
253
|
+
sm: string;
|
|
254
|
+
xm: string;
|
|
255
|
+
md: string;
|
|
256
|
+
xl: string;
|
|
257
|
+
lg: string;
|
|
258
|
+
primary: string;
|
|
259
|
+
secondary: string;
|
|
260
|
+
};
|
|
261
|
+
fontSizes: {
|
|
262
|
+
10: string;
|
|
263
|
+
12: string;
|
|
264
|
+
14: string;
|
|
265
|
+
16: string;
|
|
266
|
+
18: string;
|
|
267
|
+
20: string;
|
|
268
|
+
22: string;
|
|
269
|
+
24: string;
|
|
270
|
+
28: string;
|
|
271
|
+
32: string;
|
|
272
|
+
36: string;
|
|
273
|
+
40: string;
|
|
274
|
+
48: string;
|
|
275
|
+
};
|
|
276
|
+
fonts: {
|
|
277
|
+
primary: string;
|
|
278
|
+
widget: string;
|
|
279
|
+
};
|
|
280
|
+
fontWeights: {
|
|
281
|
+
regular: number;
|
|
282
|
+
medium: number;
|
|
283
|
+
semiBold: number;
|
|
284
|
+
bold: number;
|
|
285
|
+
};
|
|
286
|
+
lineHeights: {
|
|
287
|
+
12: string;
|
|
288
|
+
16: string;
|
|
289
|
+
20: string;
|
|
290
|
+
24: string;
|
|
291
|
+
26: string;
|
|
292
|
+
28: string;
|
|
293
|
+
30: string;
|
|
294
|
+
36: string;
|
|
295
|
+
40: string;
|
|
296
|
+
44: string;
|
|
297
|
+
52: string;
|
|
298
|
+
64: string;
|
|
299
|
+
};
|
|
300
|
+
letterSpacings: {};
|
|
301
|
+
sizes: {
|
|
302
|
+
4: string;
|
|
303
|
+
6: string;
|
|
304
|
+
8: string;
|
|
305
|
+
10: string;
|
|
306
|
+
12: string;
|
|
307
|
+
16: string;
|
|
308
|
+
18: string;
|
|
309
|
+
20: string;
|
|
310
|
+
24: string;
|
|
311
|
+
26: string;
|
|
312
|
+
28: string;
|
|
313
|
+
30: string;
|
|
314
|
+
32: string;
|
|
315
|
+
36: string;
|
|
316
|
+
40: string;
|
|
317
|
+
45: string;
|
|
318
|
+
48: string;
|
|
319
|
+
};
|
|
320
|
+
borderWidths: {};
|
|
321
|
+
borderStyles: {};
|
|
322
|
+
shadows: {
|
|
323
|
+
s: string;
|
|
324
|
+
};
|
|
325
|
+
zIndices: {};
|
|
326
|
+
transitions: {};
|
|
327
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
328
|
+
export declare const TokenImageContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
329
|
+
hasBorder?: boolean | "true" | "false" | undefined;
|
|
165
330
|
}, {
|
|
166
331
|
xs: string;
|
|
167
332
|
sm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainToken.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChainToken/ChainToken.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIpB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"ChainToken.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChainToken/ChainToken.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIpB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAsC9B,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAmB9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapInput.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;AA0B1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SwapInput.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;AA0B1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,kBAAkB,qBAsIlD"}
|
|
@@ -338,7 +338,9 @@ export declare const InputAmount: import("@stitches/react/types/styled-component
|
|
|
338
338
|
labelProps?: import("../../components").TypographyPropTypes | undefined;
|
|
339
339
|
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> & {
|
|
340
340
|
children?: import("react").ReactNode;
|
|
341
|
-
} & import("react").RefAttributes<HTMLInputElement>>, {
|
|
341
|
+
} & import("react").RefAttributes<HTMLInputElement>>, {
|
|
342
|
+
isZero?: boolean | "true" | undefined;
|
|
343
|
+
}, {
|
|
342
344
|
xs: string;
|
|
343
345
|
sm: string;
|
|
344
346
|
md: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAAQ,CAAC;AAEhC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuBpB,CAAC;AAEH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQvB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAE/B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.
|
|
3
|
+
"version": "0.34.1-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@radix-ui/react-select": "^2.0.0",
|
|
51
51
|
"@radix-ui/react-switch": "^1.0.1",
|
|
52
52
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
53
|
-
"@rango-dev/wallets-shared": "^0.
|
|
53
|
+
"@rango-dev/wallets-shared": "^0.33.0",
|
|
54
54
|
"@stitches/react": "^1.2.8",
|
|
55
55
|
"copy-to-clipboard": "^3.3.3",
|
|
56
56
|
"rango-sdk": "^0.1.45",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|
|
@@ -22,7 +22,7 @@ export const Chip = styled('button', {
|
|
|
22
22
|
overflow: 'hidden',
|
|
23
23
|
},
|
|
24
24
|
'&:hover': {
|
|
25
|
-
$$color: '$colors$
|
|
25
|
+
$$color: '$colors$secondary100',
|
|
26
26
|
[`.${darkTheme} &`]: {
|
|
27
27
|
$$color: '$colors$neutral100',
|
|
28
28
|
},
|
|
@@ -30,7 +30,7 @@ export const Chip = styled('button', {
|
|
|
30
30
|
},
|
|
31
31
|
'&:focus-visible': {
|
|
32
32
|
outline: 0,
|
|
33
|
-
$$color: '$colors$
|
|
33
|
+
$$color: '$colors$secondary100',
|
|
34
34
|
[`.${darkTheme} &`]: {
|
|
35
35
|
$$color: '$colors$info700',
|
|
36
36
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled } from '../../theme';
|
|
1
|
+
import { darkTheme, styled } from '../../theme';
|
|
2
2
|
import { Image } from '../common';
|
|
3
3
|
|
|
4
4
|
export const Container = styled('div', {
|
|
@@ -9,9 +9,12 @@ export const Container = styled('div', {
|
|
|
9
9
|
|
|
10
10
|
export const ChainImageContainer = styled('div', {
|
|
11
11
|
position: 'absolute',
|
|
12
|
-
border: '0.5px solid $background',
|
|
13
12
|
borderRadius: '100%',
|
|
14
|
-
|
|
13
|
+
$$color: '$colors$neutral100',
|
|
14
|
+
[`.${darkTheme} &`]: {
|
|
15
|
+
$$color: '$colors$neutral300',
|
|
16
|
+
},
|
|
17
|
+
backgroundColor: '$$color',
|
|
15
18
|
variants: {
|
|
16
19
|
size: {
|
|
17
20
|
small: {
|
|
@@ -31,5 +34,35 @@ export const ChainImageContainer = styled('div', {
|
|
|
31
34
|
bottom: '-5px',
|
|
32
35
|
},
|
|
33
36
|
},
|
|
37
|
+
hasBorder: {
|
|
38
|
+
true: {
|
|
39
|
+
$$borderColor: '$colors$secondary400',
|
|
40
|
+
[`.${darkTheme} &`]: {
|
|
41
|
+
$$borderColor: '$colors$secondary600',
|
|
42
|
+
},
|
|
43
|
+
border: '1px solid $$borderColor',
|
|
44
|
+
},
|
|
45
|
+
false: {},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
export const TokenImageContainer = styled('div', {
|
|
50
|
+
borderRadius: '100%',
|
|
51
|
+
width: '$30',
|
|
52
|
+
display: 'flex',
|
|
53
|
+
justifyContent: 'center',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
|
|
56
|
+
variants: {
|
|
57
|
+
hasBorder: {
|
|
58
|
+
true: {
|
|
59
|
+
$$borderColor: '$colors$secondary600',
|
|
60
|
+
[`.${darkTheme} &`]: {
|
|
61
|
+
$$borderColor: '$colors$secondary500',
|
|
62
|
+
},
|
|
63
|
+
border: '1px solid $$borderColor',
|
|
64
|
+
},
|
|
65
|
+
false: {},
|
|
66
|
+
},
|
|
34
67
|
},
|
|
35
68
|
});
|
|
@@ -6,7 +6,11 @@ import { Image } from '../common';
|
|
|
6
6
|
import { Skeleton } from '../Skeleton';
|
|
7
7
|
|
|
8
8
|
import { tokenChainSizeMap } from './ChainToken.constants';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
ChainImageContainer,
|
|
11
|
+
Container,
|
|
12
|
+
TokenImageContainer,
|
|
13
|
+
} from './ChainToken.styles';
|
|
10
14
|
|
|
11
15
|
export const ChainToken: React.FC<ChainTokenPropTypes> = (props) => {
|
|
12
16
|
const {
|
|
@@ -17,6 +21,7 @@ export const ChainToken: React.FC<ChainTokenPropTypes> = (props) => {
|
|
|
17
21
|
useAsPlaceholder,
|
|
18
22
|
loading,
|
|
19
23
|
} = props;
|
|
24
|
+
|
|
20
25
|
return (
|
|
21
26
|
<Container
|
|
22
27
|
css={
|
|
@@ -34,14 +39,19 @@ export const ChainToken: React.FC<ChainTokenPropTypes> = (props) => {
|
|
|
34
39
|
width={tokenChainSizeMap[size].token}
|
|
35
40
|
/>
|
|
36
41
|
) : (
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
<TokenImageContainer hasBorder={!tokenImage}>
|
|
43
|
+
<Image
|
|
44
|
+
size={tokenChainSizeMap[size].token}
|
|
45
|
+
src={tokenImage}
|
|
46
|
+
type="circular"
|
|
47
|
+
{...((useAsPlaceholder || !tokenImage) && {
|
|
48
|
+
useAsPlaceholder: true,
|
|
49
|
+
backgroundColor: 'transparent',
|
|
50
|
+
})}
|
|
51
|
+
/>
|
|
52
|
+
</TokenImageContainer>
|
|
43
53
|
)}
|
|
44
|
-
<ChainImageContainer size={size}>
|
|
54
|
+
<ChainImageContainer size={size} hasBorder={!chainImage}>
|
|
45
55
|
{loading ? (
|
|
46
56
|
<Skeleton
|
|
47
57
|
variant="circular"
|
|
@@ -56,7 +66,7 @@ export const ChainToken: React.FC<ChainTokenPropTypes> = (props) => {
|
|
|
56
66
|
type="circular"
|
|
57
67
|
{...((useAsPlaceholder || !chainImage) && {
|
|
58
68
|
useAsPlaceholder: true,
|
|
59
|
-
backgroundColor: '
|
|
69
|
+
backgroundColor: 'transparent',
|
|
60
70
|
})}
|
|
61
71
|
/>
|
|
62
72
|
)}
|
|
@@ -17,7 +17,7 @@ export const ChipContainer = styled('button', {
|
|
|
17
17
|
backgroundColor: '$$color',
|
|
18
18
|
|
|
19
19
|
'&:hover': {
|
|
20
|
-
$$color: '$colors$
|
|
20
|
+
$$color: '$colors$secondary100',
|
|
21
21
|
[`.${darkTheme} &`]: {
|
|
22
22
|
$$color: '$colors$neutral100',
|
|
23
23
|
},
|
|
@@ -25,7 +25,7 @@ export const ChipContainer = styled('button', {
|
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
'&:focus-visible': {
|
|
28
|
-
$$color: '$colors$
|
|
28
|
+
$$color: '$colors$secondary100',
|
|
29
29
|
[`.${darkTheme} &`]: {
|
|
30
30
|
$$color: '$colors$info700',
|
|
31
31
|
},
|
|
@@ -4,7 +4,7 @@ import { ListItem } from '../ListItem/ListItem';
|
|
|
4
4
|
export const BaseListItemButton = styled(ListItem, {
|
|
5
5
|
transition: 'all 0.35s',
|
|
6
6
|
'&:hover': {
|
|
7
|
-
$$color: '$colors$
|
|
7
|
+
$$color: '$colors$secondary100',
|
|
8
8
|
[`.${darkTheme} &`]: {
|
|
9
9
|
$$color: '$colors$neutral100',
|
|
10
10
|
},
|
|
@@ -19,7 +19,7 @@ export const BaseListItemButton = styled(ListItem, {
|
|
|
19
19
|
borderRadius: '$xs',
|
|
20
20
|
|
|
21
21
|
outline: 0,
|
|
22
|
-
$$color: '$colors$
|
|
22
|
+
$$color: '$colors$secondary100',
|
|
23
23
|
[`.${darkTheme} &`]: {
|
|
24
24
|
$$color: '$colors$info700',
|
|
25
25
|
},
|
|
@@ -16,14 +16,14 @@ export const Trigger = styled(Collapsible.Trigger, {
|
|
|
16
16
|
border: 0,
|
|
17
17
|
width: '100%',
|
|
18
18
|
'&:hover': {
|
|
19
|
-
$$color: '$colors$
|
|
19
|
+
$$color: '$colors$secondary100',
|
|
20
20
|
[`.${darkTheme} &`]: {
|
|
21
21
|
$$color: '$colors$neutral100',
|
|
22
22
|
},
|
|
23
23
|
backgroundColor: '$$color',
|
|
24
24
|
},
|
|
25
25
|
'&:focus-visible': {
|
|
26
|
-
$$color: '$colors$
|
|
26
|
+
$$color: '$colors$secondary100',
|
|
27
27
|
[`.${darkTheme} &`]: {
|
|
28
28
|
$$color: '$colors$info700',
|
|
29
29
|
},
|
|
@@ -42,7 +42,7 @@ export function PriceImpact(props: PriceImpactPropTypes) {
|
|
|
42
42
|
size={size}
|
|
43
43
|
variant="body"
|
|
44
44
|
color={outputColor || '$neutral600'}>
|
|
45
|
-
{`~$${outputUsdValue}`}
|
|
45
|
+
{outputUsdValue === '0' ? '0.00' : `~$${outputUsdValue}`}
|
|
46
46
|
</OutputUsdValue>
|
|
47
47
|
</Tooltip>
|
|
48
48
|
)}
|
|
@@ -41,7 +41,7 @@ export const SelectTrigger = styled(Select.Trigger, {
|
|
|
41
41
|
backgroundColor: '$neutral400',
|
|
42
42
|
},
|
|
43
43
|
'&:hover': {
|
|
44
|
-
backgroundColor: '$
|
|
44
|
+
backgroundColor: '$secondary100',
|
|
45
45
|
[`.${darkTheme} &`]: {
|
|
46
46
|
backgroundColor: '$neutral',
|
|
47
47
|
},
|
|
@@ -84,7 +84,7 @@ export const SelectItem = styled(Select.Item, {
|
|
|
84
84
|
},
|
|
85
85
|
|
|
86
86
|
'&:hover': {
|
|
87
|
-
backgroundColor: '$
|
|
87
|
+
backgroundColor: '$secondary100',
|
|
88
88
|
'& ._text': {
|
|
89
89
|
color: '$secondary500',
|
|
90
90
|
},
|
|
@@ -30,14 +30,14 @@ export const Main = styled('button', {
|
|
|
30
30
|
cursor: 'pointer',
|
|
31
31
|
fontFamily: 'inherit',
|
|
32
32
|
'&:hover': {
|
|
33
|
-
$$color: '$colors$
|
|
33
|
+
$$color: '$colors$secondary100',
|
|
34
34
|
[`.${darkTheme} &`]: {
|
|
35
35
|
$$color: '$colors$neutral100',
|
|
36
36
|
},
|
|
37
37
|
backgroundColor: '$$color',
|
|
38
38
|
},
|
|
39
39
|
'&:focus-visible': {
|
|
40
|
-
$$color: '$colors$
|
|
40
|
+
$$color: '$colors$secondary100',
|
|
41
41
|
[`.${darkTheme} &`]: {
|
|
42
42
|
$$color: '$colors$info700',
|
|
43
43
|
},
|
|
@@ -31,7 +31,7 @@ export const InputContainer = styled('div', {
|
|
|
31
31
|
},
|
|
32
32
|
backgroundColor: '$$color',
|
|
33
33
|
'&:hover': {
|
|
34
|
-
$$color: '$colors$
|
|
34
|
+
$$color: '$colors$secondary100',
|
|
35
35
|
[`.${darkTheme} &`]: {
|
|
36
36
|
$$color: '$colors$neutral100',
|
|
37
37
|
},
|
|
@@ -42,7 +42,7 @@ export const InputContainer = styled('div', {
|
|
|
42
42
|
backgroundColor: 'transparent',
|
|
43
43
|
border: '1px solid $neutral100',
|
|
44
44
|
'&:hover': {
|
|
45
|
-
$$color: '$colors$
|
|
45
|
+
$$color: '$colors$secondary100',
|
|
46
46
|
[`.${darkTheme} &`]: {
|
|
47
47
|
$$color: '$colors$neutral400',
|
|
48
48
|
},
|
|
@@ -263,7 +263,7 @@ export const AlertBox = styled('div', {
|
|
|
263
263
|
backgroundColor: '$background',
|
|
264
264
|
borderRight: '1px solid',
|
|
265
265
|
'&:hover': {
|
|
266
|
-
backgroundColor: '$
|
|
266
|
+
backgroundColor: '$secondary100',
|
|
267
267
|
[`.${darkTheme} &`]: {
|
|
268
268
|
backgroundColor: '$neutral300',
|
|
269
269
|
},
|
|
@@ -34,14 +34,14 @@ export const WalletButton = styled('button', {
|
|
|
34
34
|
position: 'relative',
|
|
35
35
|
fontFamily: 'inherit',
|
|
36
36
|
'&:hover': {
|
|
37
|
-
$$color: '$colors$
|
|
37
|
+
$$color: '$colors$secondary100',
|
|
38
38
|
[`.${darkTheme} &`]: {
|
|
39
39
|
$$color: '$colors$neutral100',
|
|
40
40
|
},
|
|
41
41
|
backgroundColor: '$$color',
|
|
42
42
|
},
|
|
43
43
|
'&:focus-visible': {
|
|
44
|
-
$$color: '$colors$
|
|
44
|
+
$$color: '$colors$secondary100',
|
|
45
45
|
[`.${darkTheme} &`]: {
|
|
46
46
|
$$color: '$colors$info700',
|
|
47
47
|
},
|
|
@@ -38,6 +38,17 @@ export const InputAmount = styled(TextField, {
|
|
|
38
38
|
'&:disabled': {
|
|
39
39
|
cursor: 'unset',
|
|
40
40
|
},
|
|
41
|
+
variants: {
|
|
42
|
+
isZero: {
|
|
43
|
+
true: {
|
|
44
|
+
$$color: '$colors$neutral700',
|
|
45
|
+
[`.${darkTheme} &`]: {
|
|
46
|
+
$$color: '$colors$neutral900',
|
|
47
|
+
},
|
|
48
|
+
color: '$$color',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
41
52
|
});
|
|
42
53
|
export const MaxButton = styled(Button, {
|
|
43
54
|
$$color: '$colors$info300',
|