@rango-dev/ui 0.26.1-next.2 → 0.26.1-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.d.ts +7 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.d.ts.map +1 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts +317 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/index.d.ts +2 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/index.d.ts +1 -0
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Refresh.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/RefreshProgressButton/RefreshProgressButton.styles.ts +28 -0
- package/src/components/RefreshProgressButton/RefreshProgressButton.tsx +70 -0
- package/src/components/RefreshProgressButton/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/icons/Refresh.tsx +10 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../SvgIcon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function RefreshProgressButton(props: SvgIconPropsWithChildren & {
|
|
4
|
+
progress: number;
|
|
5
|
+
}): React.FunctionComponentElement<SvgIconPropsWithChildren>;
|
|
6
|
+
export { RefreshProgressButton };
|
|
7
|
+
//# sourceMappingURL=RefreshProgressButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshProgressButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/RefreshProgressButton/RefreshProgressButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,KAAwB,MAAM,OAAO,CAAC;AAyB7C,iBAAS,qBAAqB,CAC5B,KAAK,EAAE,wBAAwB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,4DAuCvD;AACD,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
export declare const StyledEllipse: import("@stitches/react/types/styled-component").StyledComponent<"ellipse", {
|
|
2
|
+
type?: "in-progress" | "basic" | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
8
|
+
sm: string;
|
|
9
|
+
md: string;
|
|
10
|
+
lg: string;
|
|
11
|
+
}, {
|
|
12
|
+
colors: {
|
|
13
|
+
primary: string;
|
|
14
|
+
primary500: string;
|
|
15
|
+
primary600: string;
|
|
16
|
+
secondary: string;
|
|
17
|
+
secondary100: string;
|
|
18
|
+
secondary200: string;
|
|
19
|
+
secondary300: string;
|
|
20
|
+
secondary400: string;
|
|
21
|
+
secondary500: string;
|
|
22
|
+
secondary600: string;
|
|
23
|
+
secondary700: string;
|
|
24
|
+
secondary800: string;
|
|
25
|
+
secondary900: string;
|
|
26
|
+
neutral: string;
|
|
27
|
+
neutral100: string;
|
|
28
|
+
neutral200: string;
|
|
29
|
+
neutral300: string;
|
|
30
|
+
neutral400: string;
|
|
31
|
+
neutral500: string;
|
|
32
|
+
neutral600: string;
|
|
33
|
+
neutral700: string;
|
|
34
|
+
neutral800: string;
|
|
35
|
+
neutral900: string;
|
|
36
|
+
error100: string;
|
|
37
|
+
error300: string;
|
|
38
|
+
error500: string;
|
|
39
|
+
error600: string;
|
|
40
|
+
error700: string;
|
|
41
|
+
warning100: string;
|
|
42
|
+
warning300: string;
|
|
43
|
+
warning500: string;
|
|
44
|
+
warning600: string;
|
|
45
|
+
warning700: string;
|
|
46
|
+
info: string;
|
|
47
|
+
info100: string;
|
|
48
|
+
info300: string;
|
|
49
|
+
info500: string;
|
|
50
|
+
info600: string;
|
|
51
|
+
info700: string;
|
|
52
|
+
success100: string;
|
|
53
|
+
success300: string;
|
|
54
|
+
success500: string;
|
|
55
|
+
success600: string;
|
|
56
|
+
success700: string;
|
|
57
|
+
background: string;
|
|
58
|
+
foreground: string;
|
|
59
|
+
};
|
|
60
|
+
space: {
|
|
61
|
+
0: string;
|
|
62
|
+
5: string;
|
|
63
|
+
10: string;
|
|
64
|
+
15: string;
|
|
65
|
+
20: string;
|
|
66
|
+
25: string;
|
|
67
|
+
30: string;
|
|
68
|
+
40: string;
|
|
69
|
+
46: string;
|
|
70
|
+
50: string;
|
|
71
|
+
60: string;
|
|
72
|
+
70: string;
|
|
73
|
+
80: string;
|
|
74
|
+
90: string;
|
|
75
|
+
100: string;
|
|
76
|
+
2: string;
|
|
77
|
+
4: string;
|
|
78
|
+
6: string;
|
|
79
|
+
8: string;
|
|
80
|
+
12: string;
|
|
81
|
+
16: string;
|
|
82
|
+
24: string;
|
|
83
|
+
28: string;
|
|
84
|
+
32: string;
|
|
85
|
+
};
|
|
86
|
+
radii: {
|
|
87
|
+
xs: string;
|
|
88
|
+
sm: string;
|
|
89
|
+
xm: string;
|
|
90
|
+
md: string;
|
|
91
|
+
xl: string;
|
|
92
|
+
lg: string;
|
|
93
|
+
primary: string;
|
|
94
|
+
secondary: string;
|
|
95
|
+
};
|
|
96
|
+
fontSizes: {
|
|
97
|
+
10: string;
|
|
98
|
+
12: string;
|
|
99
|
+
14: string;
|
|
100
|
+
16: string;
|
|
101
|
+
18: string;
|
|
102
|
+
20: string;
|
|
103
|
+
22: string;
|
|
104
|
+
24: string;
|
|
105
|
+
28: string;
|
|
106
|
+
32: string;
|
|
107
|
+
36: string;
|
|
108
|
+
40: string;
|
|
109
|
+
48: string;
|
|
110
|
+
};
|
|
111
|
+
fonts: {
|
|
112
|
+
primary: string;
|
|
113
|
+
widget: string;
|
|
114
|
+
};
|
|
115
|
+
fontWeights: {
|
|
116
|
+
regular: number;
|
|
117
|
+
medium: number;
|
|
118
|
+
semiBold: number;
|
|
119
|
+
bold: number;
|
|
120
|
+
};
|
|
121
|
+
lineHeights: {
|
|
122
|
+
12: string;
|
|
123
|
+
16: string;
|
|
124
|
+
20: string;
|
|
125
|
+
24: string;
|
|
126
|
+
26: string;
|
|
127
|
+
28: string;
|
|
128
|
+
30: string;
|
|
129
|
+
36: string;
|
|
130
|
+
40: string;
|
|
131
|
+
44: string;
|
|
132
|
+
52: string;
|
|
133
|
+
64: string;
|
|
134
|
+
};
|
|
135
|
+
letterSpacings: {};
|
|
136
|
+
sizes: {
|
|
137
|
+
4: string;
|
|
138
|
+
6: string;
|
|
139
|
+
8: string;
|
|
140
|
+
12: string;
|
|
141
|
+
16: string;
|
|
142
|
+
18: string;
|
|
143
|
+
20: string;
|
|
144
|
+
24: string;
|
|
145
|
+
28: string;
|
|
146
|
+
32: string;
|
|
147
|
+
36: string;
|
|
148
|
+
40: string;
|
|
149
|
+
45: string;
|
|
150
|
+
48: string;
|
|
151
|
+
};
|
|
152
|
+
borderWidths: {};
|
|
153
|
+
borderStyles: {};
|
|
154
|
+
shadows: {
|
|
155
|
+
s: string;
|
|
156
|
+
};
|
|
157
|
+
zIndices: {};
|
|
158
|
+
transitions: {};
|
|
159
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
160
|
+
export declare const StyledPath: import("@stitches/react/types/styled-component").StyledComponent<"path", {}, {
|
|
161
|
+
sm: string;
|
|
162
|
+
md: string;
|
|
163
|
+
lg: string;
|
|
164
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
165
|
+
sm: string;
|
|
166
|
+
md: string;
|
|
167
|
+
lg: string;
|
|
168
|
+
}, {
|
|
169
|
+
colors: {
|
|
170
|
+
primary: string;
|
|
171
|
+
primary500: string;
|
|
172
|
+
primary600: string;
|
|
173
|
+
secondary: string;
|
|
174
|
+
secondary100: string;
|
|
175
|
+
secondary200: string;
|
|
176
|
+
secondary300: string;
|
|
177
|
+
secondary400: string;
|
|
178
|
+
secondary500: string;
|
|
179
|
+
secondary600: string;
|
|
180
|
+
secondary700: string;
|
|
181
|
+
secondary800: string;
|
|
182
|
+
secondary900: string;
|
|
183
|
+
neutral: string;
|
|
184
|
+
neutral100: string;
|
|
185
|
+
neutral200: string;
|
|
186
|
+
neutral300: string;
|
|
187
|
+
neutral400: string;
|
|
188
|
+
neutral500: string;
|
|
189
|
+
neutral600: string;
|
|
190
|
+
neutral700: string;
|
|
191
|
+
neutral800: string;
|
|
192
|
+
neutral900: string;
|
|
193
|
+
error100: string;
|
|
194
|
+
error300: string;
|
|
195
|
+
error500: string;
|
|
196
|
+
error600: string;
|
|
197
|
+
error700: string;
|
|
198
|
+
warning100: string;
|
|
199
|
+
warning300: string;
|
|
200
|
+
warning500: string;
|
|
201
|
+
warning600: string;
|
|
202
|
+
warning700: string;
|
|
203
|
+
info: string;
|
|
204
|
+
info100: string;
|
|
205
|
+
info300: string;
|
|
206
|
+
info500: string;
|
|
207
|
+
info600: string;
|
|
208
|
+
info700: string;
|
|
209
|
+
success100: string;
|
|
210
|
+
success300: string;
|
|
211
|
+
success500: string;
|
|
212
|
+
success600: string;
|
|
213
|
+
success700: string;
|
|
214
|
+
background: string;
|
|
215
|
+
foreground: string;
|
|
216
|
+
};
|
|
217
|
+
space: {
|
|
218
|
+
0: string;
|
|
219
|
+
5: string;
|
|
220
|
+
10: string;
|
|
221
|
+
15: string;
|
|
222
|
+
20: string;
|
|
223
|
+
25: string;
|
|
224
|
+
30: string;
|
|
225
|
+
40: string;
|
|
226
|
+
46: string;
|
|
227
|
+
50: string;
|
|
228
|
+
60: string;
|
|
229
|
+
70: string;
|
|
230
|
+
80: string;
|
|
231
|
+
90: string;
|
|
232
|
+
100: string;
|
|
233
|
+
2: string;
|
|
234
|
+
4: string;
|
|
235
|
+
6: string;
|
|
236
|
+
8: string;
|
|
237
|
+
12: string;
|
|
238
|
+
16: string;
|
|
239
|
+
24: string;
|
|
240
|
+
28: string;
|
|
241
|
+
32: string;
|
|
242
|
+
};
|
|
243
|
+
radii: {
|
|
244
|
+
xs: string;
|
|
245
|
+
sm: string;
|
|
246
|
+
xm: string;
|
|
247
|
+
md: string;
|
|
248
|
+
xl: string;
|
|
249
|
+
lg: string;
|
|
250
|
+
primary: string;
|
|
251
|
+
secondary: string;
|
|
252
|
+
};
|
|
253
|
+
fontSizes: {
|
|
254
|
+
10: string;
|
|
255
|
+
12: string;
|
|
256
|
+
14: string;
|
|
257
|
+
16: string;
|
|
258
|
+
18: string;
|
|
259
|
+
20: string;
|
|
260
|
+
22: string;
|
|
261
|
+
24: string;
|
|
262
|
+
28: string;
|
|
263
|
+
32: string;
|
|
264
|
+
36: string;
|
|
265
|
+
40: string;
|
|
266
|
+
48: string;
|
|
267
|
+
};
|
|
268
|
+
fonts: {
|
|
269
|
+
primary: string;
|
|
270
|
+
widget: string;
|
|
271
|
+
};
|
|
272
|
+
fontWeights: {
|
|
273
|
+
regular: number;
|
|
274
|
+
medium: number;
|
|
275
|
+
semiBold: number;
|
|
276
|
+
bold: number;
|
|
277
|
+
};
|
|
278
|
+
lineHeights: {
|
|
279
|
+
12: string;
|
|
280
|
+
16: string;
|
|
281
|
+
20: string;
|
|
282
|
+
24: string;
|
|
283
|
+
26: string;
|
|
284
|
+
28: string;
|
|
285
|
+
30: string;
|
|
286
|
+
36: string;
|
|
287
|
+
40: string;
|
|
288
|
+
44: string;
|
|
289
|
+
52: string;
|
|
290
|
+
64: string;
|
|
291
|
+
};
|
|
292
|
+
letterSpacings: {};
|
|
293
|
+
sizes: {
|
|
294
|
+
4: string;
|
|
295
|
+
6: string;
|
|
296
|
+
8: string;
|
|
297
|
+
12: string;
|
|
298
|
+
16: string;
|
|
299
|
+
18: string;
|
|
300
|
+
20: string;
|
|
301
|
+
24: string;
|
|
302
|
+
28: string;
|
|
303
|
+
32: string;
|
|
304
|
+
36: string;
|
|
305
|
+
40: string;
|
|
306
|
+
45: string;
|
|
307
|
+
48: string;
|
|
308
|
+
};
|
|
309
|
+
borderWidths: {};
|
|
310
|
+
borderStyles: {};
|
|
311
|
+
shadows: {
|
|
312
|
+
s: string;
|
|
313
|
+
};
|
|
314
|
+
zIndices: {};
|
|
315
|
+
transitions: {};
|
|
316
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
317
|
+
//# sourceMappingURL=RefreshProgressButton.styles.d.ts.map
|
package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshProgressButton.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/RefreshProgressButton/RefreshProgressButton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAqBxB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/RefreshProgressButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -16,6 +16,7 @@ export * from './Modal';
|
|
|
16
16
|
export * from './MessageBox';
|
|
17
17
|
export * from './PercentageChange';
|
|
18
18
|
export * from './RadioGroup';
|
|
19
|
+
export * from './RefreshProgressButton';
|
|
19
20
|
export * from './RoutesOverview';
|
|
20
21
|
export * from './SecondaryPage';
|
|
21
22
|
export * from './SelectableWalletList';
|
|
@@ -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,mBAAmB,CAAC;AAClC,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,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
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,mBAAmB,CAAC;AAClC,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,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refresh.d.ts","sourceRoot":"","sources":["../../../../../src/icons/Refresh.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,iBAAS,UAAU,CAAC,KAAK,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Refresh.d.ts","sourceRoot":"","sources":["../../../../../src/icons/Refresh.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,iBAAS,UAAU,CAAC,KAAK,EAAE,wBAAwB,4DAmBlD;AACD,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.26.1-next.
|
|
3
|
+
"version": "0.26.1-next.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@radix-ui/react-radio-group": "^1.1.1",
|
|
66
66
|
"@radix-ui/react-switch": "^1.0.1",
|
|
67
67
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
68
|
-
"@rango-dev/wallets-shared": "^0.25.1-next.
|
|
68
|
+
"@rango-dev/wallets-shared": "^0.25.1-next.1",
|
|
69
69
|
"@stitches/react": "^1.2.8",
|
|
70
70
|
"rango-sdk": "^0.1.44",
|
|
71
71
|
"rango-types": "^0.1.57",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { styled } from '../../theme';
|
|
2
|
+
|
|
3
|
+
export const StyledEllipse = styled('ellipse', {
|
|
4
|
+
cx: 12.5,
|
|
5
|
+
cy: 12.5,
|
|
6
|
+
rx: 7.7,
|
|
7
|
+
ry: 7.7,
|
|
8
|
+
strokeLinecap: 'round',
|
|
9
|
+
fill: 'none',
|
|
10
|
+
strokeDasharray: 100,
|
|
11
|
+
transform: `rotate(20deg)`,
|
|
12
|
+
transformOrigin: 'center',
|
|
13
|
+
variants: {
|
|
14
|
+
type: {
|
|
15
|
+
'in-progress': {
|
|
16
|
+
stroke: '$info500',
|
|
17
|
+
strokeWidth: 2,
|
|
18
|
+
},
|
|
19
|
+
basic: {
|
|
20
|
+
strokeWidth: 1.8,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export const StyledPath = styled('path', {
|
|
27
|
+
fill: '$info500',
|
|
28
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
2
|
+
import type { SvgIconPropsWithChildren } from '../SvgIcon';
|
|
3
|
+
|
|
4
|
+
import React, { createElement } from 'react';
|
|
5
|
+
|
|
6
|
+
import { SvgIcon } from '../SvgIcon';
|
|
7
|
+
|
|
8
|
+
import { StyledEllipse, StyledPath } from './RefreshProgressButton.styles';
|
|
9
|
+
|
|
10
|
+
const DEFAULT_STROKE_DASHOFFSET = 59;
|
|
11
|
+
const MAX_PERCENTAGE = 100;
|
|
12
|
+
const MAX_PROGRESS = 41;
|
|
13
|
+
const MIN_PROGRESS = 0;
|
|
14
|
+
const NORMALIZE_FACTOR = 10;
|
|
15
|
+
const OPACITY_THRESHOLD = 82;
|
|
16
|
+
const DIVISION_FACTOR = 2;
|
|
17
|
+
|
|
18
|
+
const Ellipse = (props: { fill?: string; progress?: number }) => {
|
|
19
|
+
const type = props.progress ? 'in-progress' : 'basic';
|
|
20
|
+
return (
|
|
21
|
+
<StyledEllipse
|
|
22
|
+
type={type}
|
|
23
|
+
stroke="currentColor"
|
|
24
|
+
strokeDashoffset={props.progress || DEFAULT_STROKE_DASHOFFSET}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function RefreshProgressButton(
|
|
30
|
+
props: SvgIconPropsWithChildren & { progress: number }
|
|
31
|
+
) {
|
|
32
|
+
const normalizeValue = (value: number) => {
|
|
33
|
+
return (value - OPACITY_THRESHOLD) / NORMALIZE_FACTOR;
|
|
34
|
+
};
|
|
35
|
+
const normalizedProgress = Math.min(
|
|
36
|
+
props.progress / DIVISION_FACTOR,
|
|
37
|
+
MAX_PROGRESS
|
|
38
|
+
);
|
|
39
|
+
const opacity =
|
|
40
|
+
normalizedProgress !== MAX_PROGRESS
|
|
41
|
+
? MIN_PROGRESS
|
|
42
|
+
: normalizeValue(props.progress);
|
|
43
|
+
|
|
44
|
+
return createElement(
|
|
45
|
+
SvgIcon,
|
|
46
|
+
props,
|
|
47
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
48
|
+
<Ellipse />
|
|
49
|
+
<Ellipse progress={MAX_PERCENTAGE - normalizedProgress} />
|
|
50
|
+
|
|
51
|
+
<path
|
|
52
|
+
d="M19.2696 9.6089C19.1207 9.49207 19.0218 9.31141 19.01 9.10738L18.807 5.14476C18.788 4.77467 19.0763 4.45089 19.4464 4.43183C19.8165 4.41278 20.1402 4.70108 20.1593 5.07117L20.3622 9.0338C20.3813 9.40389 20.093 9.72767 19.7229 9.74672C19.5584 9.76661 19.3973 9.70903 19.2696 9.6089Z"
|
|
53
|
+
fill="currentColor"
|
|
54
|
+
/>
|
|
55
|
+
<StyledPath
|
|
56
|
+
d="M19.2696 9.6089C19.1207 9.49207 19.0218 9.31141 19.01 9.10738L18.807 5.14476C18.788 4.77467 19.0763 4.45089 19.4464 4.43183C19.8165 4.41278 20.1402 4.70108 20.1593 5.07117L20.3622 9.0338C20.3813 9.40389 20.093 9.72767 19.7229 9.74672C19.5584 9.76661 19.3973 9.70903 19.2696 9.6089Z"
|
|
57
|
+
fillOpacity={opacity}
|
|
58
|
+
/>
|
|
59
|
+
<path
|
|
60
|
+
d="M15.5108 9.47903C15.3476 9.35108 15.2457 9.14511 15.2505 8.9198C15.2639 8.55221 15.575 8.25778 15.9482 8.26404L19.707 8.3939C20.0802 8.40016 20.3691 8.71837 20.3628 9.09152C20.3565 9.46466 20.0383 9.75353 19.6652 9.74728L15.9007 9.62451C15.7529 9.62312 15.6243 9.56804 15.5108 9.47903Z"
|
|
61
|
+
fill="currentColor"
|
|
62
|
+
/>
|
|
63
|
+
<StyledPath
|
|
64
|
+
d="M15.5108 9.47903C15.3476 9.35108 15.2457 9.14511 15.2505 8.9198C15.2639 8.55221 15.575 8.25778 15.9482 8.26404L19.707 8.3939C20.0802 8.40016 20.3691 8.71837 20.3628 9.09152C20.3565 9.46466 20.0383 9.75353 19.6652 9.74728L15.9007 9.62451C15.7529 9.62312 15.6243 9.56804 15.5108 9.47903Z"
|
|
65
|
+
fillOpacity={opacity}
|
|
66
|
+
/>
|
|
67
|
+
</svg>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export { RefreshProgressButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RefreshProgressButton } from './RefreshProgressButton';
|
package/src/components/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './Modal';
|
|
|
16
16
|
export * from './MessageBox';
|
|
17
17
|
export * from './PercentageChange';
|
|
18
18
|
export * from './RadioGroup';
|
|
19
|
+
export * from './RefreshProgressButton';
|
|
19
20
|
export * from './RoutesOverview';
|
|
20
21
|
export * from './SecondaryPage';
|
|
21
22
|
export * from './SelectableWalletList';
|
package/src/icons/Refresh.tsx
CHANGED
|
@@ -8,9 +8,17 @@ function SvgRefresh(props: SvgIconPropsWithChildren) {
|
|
|
8
8
|
return createElement(
|
|
9
9
|
SvgIcon,
|
|
10
10
|
props,
|
|
11
|
-
<svg viewBox="0 0
|
|
11
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
12
12
|
<path
|
|
13
|
-
d="
|
|
13
|
+
d="M6.29926 18.2997C2.82191 15.1563 2.5569 9.7767 5.6942 6.30604C8.8315 2.83538 14.2165 2.55094 17.6939 5.69429C18.4094 6.34109 19.0142 7.07007 19.4955 7.88186C19.6905 8.2039 19.5837 8.61775 19.2617 8.8127C18.9396 9.00765 18.5258 8.90088 18.3308 8.57884C17.9196 7.89116 17.4024 7.2535 16.7871 6.69737C13.8648 4.05575 9.34494 4.28377 6.70333 7.20608C4.06171 10.1284 4.28973 14.6483 7.21204 17.2899C10.1343 19.9315 14.6542 19.7035 17.2959 16.7812C18.251 15.7246 18.8622 14.4301 19.0662 13.0348C19.1179 12.6684 19.4622 12.4086 19.8353 12.4663C20.2017 12.518 20.4616 12.8623 20.4038 13.2354C20.1624 14.9006 19.436 16.4435 18.2996 17.7007C15.1556 21.1653 9.77661 21.443 6.29926 18.2997Z"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M19.2696 9.6089C19.1207 9.49207 19.0218 9.31141 19.01 9.10738L18.807 5.14476C18.788 4.77467 19.0763 4.45089 19.4464 4.43183C19.8165 4.41278 20.1402 4.70108 20.1593 5.07117L20.3622 9.0338C20.3813 9.40389 20.093 9.72767 19.7229 9.74672C19.5584 9.76661 19.3973 9.70903 19.2696 9.6089Z"
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M15.5108 9.47903C15.3476 9.35108 15.2457 9.14511 15.2505 8.9198C15.2639 8.55221 15.575 8.25778 15.9482 8.26404L19.707 8.3939C20.0802 8.40016 20.3691 8.71837 20.3628 9.09152C20.3565 9.46466 20.0383 9.75353 19.6652 9.74728L15.9007 9.62451C15.7529 9.62312 15.6243 9.56804 15.5108 9.47903Z"
|
|
14
22
|
fill="currentColor"
|
|
15
23
|
/>
|
|
16
24
|
</svg>
|