@rango-dev/ui 0.15.1-next.18 → 0.15.1-next.19
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/dist/index.js +6 -6
- package/dist/index.js.map +3 -3
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/jp.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BestRoute/BestRoute.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/IconButton/IconButton.d.ts +3 -5
- package/dist/widget/ui/src/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +308 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.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.map +1 -1
- package/package.json +1 -1
- package/src/components/BestRoute/BestRoute.tsx +4 -2
- package/src/components/Button/Button.styles.tsx +4 -14
- package/src/components/IconButton/IconButton.tsx +8 -2
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/RouteCost/RouteCost.tsx +2 -2
- package/src/components/TextField/TextField.styles.ts +3 -1
- package/src/components/Tooltip/Tooltip.styles.ts +10 -0
- package/src/components/Tooltip/Tooltip.tsx +9 -4
- package/src/containers/SwapInput/SwapInput.styles.ts +0 -7
- package/src/containers/SwapInput/SwapInput.tsx +3 -1
|
@@ -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,KAAkhV,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,KAA2rV,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,KAA2rV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jp.d.ts","sourceRoot":"","sources":["../../../../translations/jp.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"jp.d.ts","sourceRoot":"","sources":["../../../../translations/jp.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA2rV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BestRoute.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BestRoute/BestRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAA4C,MAAM,OAAO,CAAC;AAuBjE,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"BestRoute.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BestRoute/BestRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAA4C,MAAM,OAAO,CAAC;AAuBjE,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAsJ9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAygBrB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAclB,CAAC;AASH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAe1B,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { PropTypes } from './IconButton.types';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
declare const IconButton: React.ForwardRefExoticComponent<PropTypes & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
6
|
export { IconButton };
|
|
9
7
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAyB1B,QAAA,MAAM,UAAU;;2CAAwC,CAAC;AAIzD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextField/TextField.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgFzB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextField/TextField.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgFzB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAiChB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,OAAO,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBA0B1D"}
|
|
@@ -1,4 +1,312 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
1
3
|
import { Typography } from '../Typography';
|
|
4
|
+
export declare const TooltipContent: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RadixTooltip.TooltipContentProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
|
|
5
|
+
sm: string;
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
}, {
|
|
13
|
+
colors: {
|
|
14
|
+
primary500: string;
|
|
15
|
+
primary600: string;
|
|
16
|
+
secondary100: string;
|
|
17
|
+
secondary200: string;
|
|
18
|
+
secondary300: string;
|
|
19
|
+
secondary400: string;
|
|
20
|
+
secondary500: string;
|
|
21
|
+
secondary600: string;
|
|
22
|
+
secondary700: string;
|
|
23
|
+
secondary800: string;
|
|
24
|
+
secondary900: string;
|
|
25
|
+
neutral100: string;
|
|
26
|
+
neutral200: string;
|
|
27
|
+
neutral300: string;
|
|
28
|
+
neutral400: string;
|
|
29
|
+
neutral500: string;
|
|
30
|
+
neutral600: string;
|
|
31
|
+
neutral700: string;
|
|
32
|
+
neutral800: string;
|
|
33
|
+
neutral900: string;
|
|
34
|
+
error100: string;
|
|
35
|
+
error300: string;
|
|
36
|
+
error500: string;
|
|
37
|
+
error600: string;
|
|
38
|
+
error700: string;
|
|
39
|
+
warning100: string;
|
|
40
|
+
warning300: string;
|
|
41
|
+
warning500: string;
|
|
42
|
+
warning600: string;
|
|
43
|
+
warning700: string;
|
|
44
|
+
info100: string;
|
|
45
|
+
info300: string;
|
|
46
|
+
info500: string;
|
|
47
|
+
info600: string;
|
|
48
|
+
info700: string;
|
|
49
|
+
success100: string;
|
|
50
|
+
success300: string;
|
|
51
|
+
success500: string;
|
|
52
|
+
success600: string;
|
|
53
|
+
success700: string;
|
|
54
|
+
background: string;
|
|
55
|
+
foreground: string;
|
|
56
|
+
};
|
|
57
|
+
space: {
|
|
58
|
+
0: string;
|
|
59
|
+
5: string;
|
|
60
|
+
10: string;
|
|
61
|
+
15: string;
|
|
62
|
+
20: string;
|
|
63
|
+
25: string;
|
|
64
|
+
30: string;
|
|
65
|
+
40: string;
|
|
66
|
+
46: string;
|
|
67
|
+
50: string;
|
|
68
|
+
60: string;
|
|
69
|
+
70: string;
|
|
70
|
+
80: string;
|
|
71
|
+
90: string;
|
|
72
|
+
100: string;
|
|
73
|
+
2: string;
|
|
74
|
+
4: string;
|
|
75
|
+
6: string;
|
|
76
|
+
8: string;
|
|
77
|
+
12: string;
|
|
78
|
+
16: string;
|
|
79
|
+
24: string;
|
|
80
|
+
28: string;
|
|
81
|
+
32: string;
|
|
82
|
+
};
|
|
83
|
+
radii: {
|
|
84
|
+
xs: string;
|
|
85
|
+
sm: string;
|
|
86
|
+
xm: string;
|
|
87
|
+
md: string;
|
|
88
|
+
xl: string;
|
|
89
|
+
lg: string;
|
|
90
|
+
primary: string;
|
|
91
|
+
secondary: string;
|
|
92
|
+
};
|
|
93
|
+
fontSizes: {
|
|
94
|
+
10: string;
|
|
95
|
+
12: string;
|
|
96
|
+
14: string;
|
|
97
|
+
16: string;
|
|
98
|
+
18: string;
|
|
99
|
+
20: string;
|
|
100
|
+
22: string;
|
|
101
|
+
24: string;
|
|
102
|
+
28: string;
|
|
103
|
+
32: string;
|
|
104
|
+
36: string;
|
|
105
|
+
40: string;
|
|
106
|
+
48: string;
|
|
107
|
+
};
|
|
108
|
+
fonts: {
|
|
109
|
+
primary: string;
|
|
110
|
+
widget: string;
|
|
111
|
+
};
|
|
112
|
+
fontWeights: {
|
|
113
|
+
regular: number;
|
|
114
|
+
medium: number;
|
|
115
|
+
semiBold: number;
|
|
116
|
+
bold: number;
|
|
117
|
+
};
|
|
118
|
+
lineHeights: {
|
|
119
|
+
12: string;
|
|
120
|
+
16: string;
|
|
121
|
+
20: string;
|
|
122
|
+
24: string;
|
|
123
|
+
26: string;
|
|
124
|
+
28: string;
|
|
125
|
+
30: string;
|
|
126
|
+
36: string;
|
|
127
|
+
40: string;
|
|
128
|
+
44: string;
|
|
129
|
+
52: string;
|
|
130
|
+
64: string;
|
|
131
|
+
};
|
|
132
|
+
letterSpacings: {};
|
|
133
|
+
sizes: {
|
|
134
|
+
4: string;
|
|
135
|
+
6: string;
|
|
136
|
+
8: string;
|
|
137
|
+
12: string;
|
|
138
|
+
16: string;
|
|
139
|
+
18: string;
|
|
140
|
+
20: string;
|
|
141
|
+
24: string;
|
|
142
|
+
28: string;
|
|
143
|
+
32: string;
|
|
144
|
+
36: string;
|
|
145
|
+
40: string;
|
|
146
|
+
45: string;
|
|
147
|
+
48: string;
|
|
148
|
+
};
|
|
149
|
+
borderWidths: {};
|
|
150
|
+
borderStyles: {};
|
|
151
|
+
shadows: {
|
|
152
|
+
s: string;
|
|
153
|
+
};
|
|
154
|
+
zIndices: {};
|
|
155
|
+
transitions: {};
|
|
156
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
157
|
+
export declare const TooltipArrow: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RadixTooltip.TooltipArrowProps & import("react").RefAttributes<SVGSVGElement>>, {}, {
|
|
158
|
+
sm: string;
|
|
159
|
+
md: string;
|
|
160
|
+
lg: string;
|
|
161
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
162
|
+
sm: string;
|
|
163
|
+
md: string;
|
|
164
|
+
lg: string;
|
|
165
|
+
}, {
|
|
166
|
+
colors: {
|
|
167
|
+
primary500: string;
|
|
168
|
+
primary600: string;
|
|
169
|
+
secondary100: string;
|
|
170
|
+
secondary200: string;
|
|
171
|
+
secondary300: string;
|
|
172
|
+
secondary400: string;
|
|
173
|
+
secondary500: string;
|
|
174
|
+
secondary600: string;
|
|
175
|
+
secondary700: string;
|
|
176
|
+
secondary800: string;
|
|
177
|
+
secondary900: string;
|
|
178
|
+
neutral100: string;
|
|
179
|
+
neutral200: string;
|
|
180
|
+
neutral300: string;
|
|
181
|
+
neutral400: string;
|
|
182
|
+
neutral500: string;
|
|
183
|
+
neutral600: string;
|
|
184
|
+
neutral700: string;
|
|
185
|
+
neutral800: string;
|
|
186
|
+
neutral900: string;
|
|
187
|
+
error100: string;
|
|
188
|
+
error300: string;
|
|
189
|
+
error500: string;
|
|
190
|
+
error600: string;
|
|
191
|
+
error700: string;
|
|
192
|
+
warning100: string;
|
|
193
|
+
warning300: string;
|
|
194
|
+
warning500: string;
|
|
195
|
+
warning600: string;
|
|
196
|
+
warning700: string;
|
|
197
|
+
info100: string;
|
|
198
|
+
info300: string;
|
|
199
|
+
info500: string;
|
|
200
|
+
info600: string;
|
|
201
|
+
info700: string;
|
|
202
|
+
success100: string;
|
|
203
|
+
success300: string;
|
|
204
|
+
success500: string;
|
|
205
|
+
success600: string;
|
|
206
|
+
success700: string;
|
|
207
|
+
background: string;
|
|
208
|
+
foreground: string;
|
|
209
|
+
};
|
|
210
|
+
space: {
|
|
211
|
+
0: string;
|
|
212
|
+
5: string;
|
|
213
|
+
10: string;
|
|
214
|
+
15: string;
|
|
215
|
+
20: string;
|
|
216
|
+
25: string;
|
|
217
|
+
30: string;
|
|
218
|
+
40: string;
|
|
219
|
+
46: string;
|
|
220
|
+
50: string;
|
|
221
|
+
60: string;
|
|
222
|
+
70: string;
|
|
223
|
+
80: string;
|
|
224
|
+
90: string;
|
|
225
|
+
100: string;
|
|
226
|
+
2: string;
|
|
227
|
+
4: string;
|
|
228
|
+
6: string;
|
|
229
|
+
8: string;
|
|
230
|
+
12: string;
|
|
231
|
+
16: string;
|
|
232
|
+
24: string;
|
|
233
|
+
28: string;
|
|
234
|
+
32: string;
|
|
235
|
+
};
|
|
236
|
+
radii: {
|
|
237
|
+
xs: string;
|
|
238
|
+
sm: string;
|
|
239
|
+
xm: string;
|
|
240
|
+
md: string;
|
|
241
|
+
xl: string;
|
|
242
|
+
lg: string;
|
|
243
|
+
primary: string;
|
|
244
|
+
secondary: string;
|
|
245
|
+
};
|
|
246
|
+
fontSizes: {
|
|
247
|
+
10: string;
|
|
248
|
+
12: string;
|
|
249
|
+
14: string;
|
|
250
|
+
16: string;
|
|
251
|
+
18: string;
|
|
252
|
+
20: string;
|
|
253
|
+
22: string;
|
|
254
|
+
24: string;
|
|
255
|
+
28: string;
|
|
256
|
+
32: string;
|
|
257
|
+
36: string;
|
|
258
|
+
40: string;
|
|
259
|
+
48: string;
|
|
260
|
+
};
|
|
261
|
+
fonts: {
|
|
262
|
+
primary: string;
|
|
263
|
+
widget: string;
|
|
264
|
+
};
|
|
265
|
+
fontWeights: {
|
|
266
|
+
regular: number;
|
|
267
|
+
medium: number;
|
|
268
|
+
semiBold: number;
|
|
269
|
+
bold: number;
|
|
270
|
+
};
|
|
271
|
+
lineHeights: {
|
|
272
|
+
12: string;
|
|
273
|
+
16: string;
|
|
274
|
+
20: string;
|
|
275
|
+
24: string;
|
|
276
|
+
26: string;
|
|
277
|
+
28: string;
|
|
278
|
+
30: string;
|
|
279
|
+
36: string;
|
|
280
|
+
40: string;
|
|
281
|
+
44: string;
|
|
282
|
+
52: string;
|
|
283
|
+
64: string;
|
|
284
|
+
};
|
|
285
|
+
letterSpacings: {};
|
|
286
|
+
sizes: {
|
|
287
|
+
4: string;
|
|
288
|
+
6: string;
|
|
289
|
+
8: string;
|
|
290
|
+
12: string;
|
|
291
|
+
16: string;
|
|
292
|
+
18: string;
|
|
293
|
+
20: string;
|
|
294
|
+
24: string;
|
|
295
|
+
28: string;
|
|
296
|
+
32: string;
|
|
297
|
+
36: string;
|
|
298
|
+
40: string;
|
|
299
|
+
45: string;
|
|
300
|
+
48: string;
|
|
301
|
+
};
|
|
302
|
+
borderWidths: {};
|
|
303
|
+
borderStyles: {};
|
|
304
|
+
shadows: {
|
|
305
|
+
s: string;
|
|
306
|
+
};
|
|
307
|
+
zIndices: {};
|
|
308
|
+
transitions: {};
|
|
309
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
2
310
|
export declare const TooltipTypography: import("@stitches/react/types/styled-component").StyledComponent<typeof Typography, {}, {
|
|
3
311
|
sm: string;
|
|
4
312
|
md: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tooltip/Tooltip.styles.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAK5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,qBAkG9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAyCpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAUtB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAyCpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAUtB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -120,7 +120,8 @@ export function BestRoute(props: BestRouteProps) {
|
|
|
120
120
|
<React.Fragment key={key}>
|
|
121
121
|
<Tooltip
|
|
122
122
|
container={props.tooltipContainer}
|
|
123
|
-
|
|
123
|
+
side="bottom"
|
|
124
|
+
sideOffset={4}
|
|
124
125
|
content={step.from.chain.displayName}>
|
|
125
126
|
<Image src={step.from.chain.image} size={16} />
|
|
126
127
|
</Tooltip>
|
|
@@ -131,7 +132,8 @@ export function BestRoute(props: BestRouteProps) {
|
|
|
131
132
|
</IconContainer>
|
|
132
133
|
<Tooltip
|
|
133
134
|
container={props.tooltipContainer}
|
|
134
|
-
|
|
135
|
+
side="bottom"
|
|
136
|
+
sideOffset={4}
|
|
135
137
|
content={step.to.chain.displayName}>
|
|
136
138
|
<Image src={step.to.chain.image} size={16} />
|
|
137
139
|
</Tooltip>
|
|
@@ -63,15 +63,7 @@ export const ButtonBase = styled('button', {
|
|
|
63
63
|
},
|
|
64
64
|
backgroundColor: '$neutral800',
|
|
65
65
|
color: '$$color',
|
|
66
|
-
|
|
67
|
-
'&:disabled:hover': {
|
|
68
|
-
$$color: '$colors$background',
|
|
69
|
-
[`.${darkTheme} &`]: {
|
|
70
|
-
$$color: '$colors$foreground',
|
|
71
|
-
},
|
|
72
|
-
backgroundColor: '$neutral800',
|
|
73
|
-
color: '$$color',
|
|
74
|
-
transform: 'unset',
|
|
66
|
+
pointerEvents: 'none',
|
|
75
67
|
},
|
|
76
68
|
},
|
|
77
69
|
outlined: {
|
|
@@ -90,11 +82,7 @@ export const ButtonBase = styled('button', {
|
|
|
90
82
|
'&:disabled': {
|
|
91
83
|
borderColor: '$neutral800',
|
|
92
84
|
color: '$neutral800',
|
|
93
|
-
|
|
94
|
-
'&:disabled:hover': {
|
|
95
|
-
borderColor: '$neutral800',
|
|
96
|
-
transform: 'unset',
|
|
97
|
-
color: '$neutral800',
|
|
85
|
+
pointerEvents: 'none',
|
|
98
86
|
},
|
|
99
87
|
},
|
|
100
88
|
ghost: {
|
|
@@ -102,6 +90,7 @@ export const ButtonBase = styled('button', {
|
|
|
102
90
|
color: '$neutral900',
|
|
103
91
|
'&:disabled': {
|
|
104
92
|
color: '$neutral800',
|
|
93
|
+
pointerEvents: 'none',
|
|
105
94
|
},
|
|
106
95
|
'&:focus-visible': {
|
|
107
96
|
backgroundColor: '$neutral500',
|
|
@@ -153,6 +142,7 @@ export const ButtonBase = styled('button', {
|
|
|
153
142
|
},
|
|
154
143
|
background: '$neutral800',
|
|
155
144
|
color: '$$color',
|
|
145
|
+
pointerEvents: 'none',
|
|
156
146
|
},
|
|
157
147
|
'&:visited': {
|
|
158
148
|
background: '$primary500',
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import type { PropTypes } from './IconButton.types';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { PropsWithChildren, Ref } from 'react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import { Button } from '../Button';
|
|
7
7
|
|
|
8
8
|
// border-radius: 100% + overflow: hidden
|
|
9
|
-
function
|
|
9
|
+
function IconButtonComponent(
|
|
10
|
+
props: PropsWithChildren<PropTypes>,
|
|
11
|
+
ref: Ref<HTMLButtonElement>
|
|
12
|
+
) {
|
|
10
13
|
const { style, ...otherProps } = props;
|
|
11
14
|
return (
|
|
12
15
|
<Button
|
|
13
16
|
className="_icon-button"
|
|
17
|
+
ref={ref}
|
|
14
18
|
{...otherProps}
|
|
15
19
|
style={{
|
|
16
20
|
borderRadius: '100%',
|
|
@@ -22,6 +26,8 @@ function IconButton(props: PropsWithChildren<PropTypes>) {
|
|
|
22
26
|
);
|
|
23
27
|
}
|
|
24
28
|
|
|
29
|
+
const IconButton = React.forwardRef(IconButtonComponent);
|
|
30
|
+
IconButton.displayName = 'IconButton';
|
|
25
31
|
IconButton.toString = () => '._icon-button';
|
|
26
32
|
|
|
27
33
|
export { IconButton };
|
|
@@ -87,7 +87,7 @@ export function Modal(props: PropsWithChildren<PropTypes>) {
|
|
|
87
87
|
css={containerStyle}
|
|
88
88
|
anchor={anchor}>
|
|
89
89
|
{header ?? (
|
|
90
|
-
<ModalHeader noTitle={!title}>
|
|
90
|
+
<ModalHeader noTitle={!title && dismissible && !prefix}>
|
|
91
91
|
{prefix}
|
|
92
92
|
{title && (
|
|
93
93
|
<Typography variant="title" size="small">
|
|
@@ -28,8 +28,8 @@ export function RouteCost(props: PropTypes) {
|
|
|
28
28
|
</div>
|
|
29
29
|
<Typography ml={2} align="center" variant="body" size="small">
|
|
30
30
|
{i18n.t({
|
|
31
|
-
id: '
|
|
32
|
-
message: '{time}
|
|
31
|
+
id: 'timeSec',
|
|
32
|
+
message: '{time} sec',
|
|
33
33
|
values: { time },
|
|
34
34
|
})}
|
|
35
35
|
</Typography>
|
|
@@ -90,7 +90,6 @@ export const Input = styled('input', {
|
|
|
90
90
|
fontWeight: 400,
|
|
91
91
|
border: 'none',
|
|
92
92
|
outline: 'none',
|
|
93
|
-
width: '100%',
|
|
94
93
|
variants: {
|
|
95
94
|
suffix: {
|
|
96
95
|
true: { marginRight: '$10' },
|
|
@@ -113,6 +112,9 @@ export const Input = styled('input', {
|
|
|
113
112
|
'&::placeholder, &::-webkit-input-placeholder': {
|
|
114
113
|
color: '$neutral900',
|
|
115
114
|
},
|
|
115
|
+
'&:focus-within': {
|
|
116
|
+
outline: 'none',
|
|
117
|
+
},
|
|
116
118
|
});
|
|
117
119
|
|
|
118
120
|
export const Label = styled('label', {
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
2
|
+
|
|
1
3
|
import { styled } from '../../theme';
|
|
2
4
|
import { Typography } from '../Typography';
|
|
3
5
|
|
|
6
|
+
export const TooltipContent = styled(RadixTooltip.Content, {
|
|
7
|
+
zIndex: '999999',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const TooltipArrow = styled(RadixTooltip.Arrow, {
|
|
11
|
+
fill: '$neutral100',
|
|
12
|
+
});
|
|
13
|
+
|
|
4
14
|
export const TooltipTypography = styled(Typography, {
|
|
5
15
|
borderRadius: '$md',
|
|
6
16
|
padding: '$5 $10',
|
|
@@ -4,7 +4,11 @@ import type { PropsWithChildren } from 'react';
|
|
|
4
4
|
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
TooltipArrow,
|
|
9
|
+
TooltipContent,
|
|
10
|
+
TooltipTypography,
|
|
11
|
+
} from './Tooltip.styles';
|
|
8
12
|
|
|
9
13
|
export function Tooltip(props: PropsWithChildren<PropTypes>) {
|
|
10
14
|
const {
|
|
@@ -16,17 +20,18 @@ export function Tooltip(props: PropsWithChildren<PropTypes>) {
|
|
|
16
20
|
side = 'top',
|
|
17
21
|
} = props;
|
|
18
22
|
return (
|
|
19
|
-
<RadixTooltip.Provider>
|
|
23
|
+
<RadixTooltip.Provider delayDuration={0}>
|
|
20
24
|
<RadixTooltip.Root>
|
|
21
25
|
<RadixTooltip.Trigger asChild>
|
|
22
26
|
<div>{children}</div>
|
|
23
27
|
</RadixTooltip.Trigger>
|
|
24
28
|
<RadixTooltip.Portal container={container}>
|
|
25
|
-
<
|
|
29
|
+
<TooltipContent side={side} sideOffset={sideOffset}>
|
|
26
30
|
<TooltipTypography variant="label" size="medium" color={color}>
|
|
27
31
|
{content}
|
|
28
32
|
</TooltipTypography>
|
|
29
|
-
|
|
33
|
+
<TooltipArrow />
|
|
34
|
+
</TooltipContent>
|
|
30
35
|
</RadixTooltip.Portal>
|
|
31
36
|
</RadixTooltip.Root>
|
|
32
37
|
</RadixTooltip.Provider>
|
|
@@ -61,11 +61,4 @@ export const MaxButton = styled(Button, {
|
|
|
61
61
|
$$color: '$colors$secondary800',
|
|
62
62
|
},
|
|
63
63
|
backgroundColor: '$$color',
|
|
64
|
-
'&:focus-visible': {
|
|
65
|
-
$$outline: '$colors$info600',
|
|
66
|
-
[`.${darkTheme} &`]: {
|
|
67
|
-
$$outline: '$colors$info100',
|
|
68
|
-
},
|
|
69
|
-
outlineColor: '$$outline',
|
|
70
|
-
},
|
|
71
64
|
});
|
|
@@ -95,7 +95,9 @@ export function SwapInput(props: SwapInputProps) {
|
|
|
95
95
|
overflow: 'hidden',
|
|
96
96
|
textOverflow: 'ellipsis',
|
|
97
97
|
}}>
|
|
98
|
-
{props.price.usdValue
|
|
98
|
+
{props.price.usdValue
|
|
99
|
+
? `~$${props.price.usdValue}`
|
|
100
|
+
: props.price.error}
|
|
99
101
|
</Typography>
|
|
100
102
|
)}
|
|
101
103
|
</>
|