@rango-dev/ui 0.15.1-next.17 → 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.
Files changed (60) 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/BestRoute/BestRoute.d.ts.map +1 -1
  8. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.d.ts +5 -0
  9. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.d.ts.map +1 -0
  10. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts +156 -0
  11. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -0
  12. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.types.d.ts +6 -0
  13. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.types.d.ts.map +1 -0
  14. package/dist/widget/ui/src/components/BlockchainsChip/index.d.ts +2 -0
  15. package/dist/widget/ui/src/components/BlockchainsChip/index.d.ts.map +1 -0
  16. package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
  17. package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts +2 -1
  18. package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts.map +1 -1
  19. package/dist/widget/ui/src/components/IconButton/IconButton.d.ts +3 -5
  20. package/dist/widget/ui/src/components/IconButton/IconButton.d.ts.map +1 -1
  21. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts +4 -0
  22. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +1 -0
  23. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +4 -0
  24. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts.map +1 -0
  25. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +460 -0
  26. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +1 -0
  27. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts +15 -0
  28. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts.map +1 -0
  29. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +3 -0
  30. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts.map +1 -0
  31. package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
  32. package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  33. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +308 -0
  34. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
  35. package/dist/widget/ui/src/components/index.d.ts +2 -0
  36. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  37. package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
  38. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/components/BestRoute/BestRoute.tsx +4 -2
  41. package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +42 -0
  42. package/src/components/BlockchainsChip/BlockchainsChip.tsx +15 -0
  43. package/src/components/BlockchainsChip/BlockchainsChip.types.ts +4 -0
  44. package/src/components/BlockchainsChip/index.ts +1 -0
  45. package/src/components/Button/Button.styles.tsx +4 -13
  46. package/src/components/Checkbox/Checkbox.types.ts +1 -1
  47. package/src/components/IconButton/IconButton.tsx +8 -2
  48. package/src/components/Modal/Modal.tsx +1 -1
  49. package/src/components/RouteCost/RouteCost.tsx +2 -2
  50. package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +35 -0
  51. package/src/components/SelectableCategoryList/SelectableCategoryList.styles.ts +21 -0
  52. package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +76 -0
  53. package/src/components/SelectableCategoryList/SelectableCategoryList.types.ts +16 -0
  54. package/src/components/SelectableCategoryList/index.ts +2 -0
  55. package/src/components/TextField/TextField.styles.ts +3 -1
  56. package/src/components/Tooltip/Tooltip.styles.ts +10 -0
  57. package/src/components/Tooltip/Tooltip.tsx +9 -4
  58. package/src/components/index.ts +2 -0
  59. package/src/containers/SwapInput/SwapInput.styles.ts +0 -7
  60. package/src/containers/SwapInput/SwapInput.tsx +3 -1
@@ -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":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAK5B,CAAC"}
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,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;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,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,cA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C7B,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"}
@@ -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,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;+DAUtB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.15.1-next.17",
3
+ "version": "0.15.1-next.19",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -120,7 +120,8 @@ export function BestRoute(props: BestRouteProps) {
120
120
  <React.Fragment key={key}>
121
121
  <Tooltip
122
122
  container={props.tooltipContainer}
123
- sideOffset={2}
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
- sideOffset={2}
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>
@@ -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';
@@ -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,10 +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',
85
+ pointerEvents: 'none',
97
86
  },
98
87
  },
99
88
  ghost: {
@@ -101,6 +90,7 @@ export const ButtonBase = styled('button', {
101
90
  color: '$neutral900',
102
91
  '&:disabled': {
103
92
  color: '$neutral800',
93
+ pointerEvents: 'none',
104
94
  },
105
95
  '&:focus-visible': {
106
96
  backgroundColor: '$neutral500',
@@ -152,6 +142,7 @@ export const ButtonBase = styled('button', {
152
142
  },
153
143
  background: '$neutral800',
154
144
  color: '$$color',
145
+ pointerEvents: 'none',
155
146
  },
156
147
  '&:visited': {
157
148
  background: '$primary500',
@@ -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;
@@ -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 IconButton(props: PropsWithChildren<PropTypes>) {
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: 'timeMin',
32
- message: '{time} min',
31
+ id: 'timeSec',
32
+ message: '{time} sec',
33
33
  values: { time },
34
34
  })}
35
35
  </Typography>
@@ -0,0 +1,35 @@
1
+ import { type BlockchainMeta, TransactionType } from 'rango-sdk';
2
+
3
+ import { BlockchainCategories } from './SelectableCategoryList.types';
4
+
5
+ const filterByType = (blockchain: BlockchainMeta, type: string): boolean => {
6
+ switch (type) {
7
+ case BlockchainCategories.ALL:
8
+ return true;
9
+ case BlockchainCategories.UTXO:
10
+ return blockchain.type === TransactionType.TRANSFER;
11
+ case BlockchainCategories.OTHER:
12
+ return (
13
+ blockchain.type !== TransactionType.TRANSFER &&
14
+ blockchain.type !== TransactionType.COSMOS &&
15
+ blockchain.type !== TransactionType.EVM
16
+ );
17
+ default:
18
+ return blockchain.type === type;
19
+ }
20
+ };
21
+
22
+ const blockchainslogo = {
23
+ [BlockchainCategories.EVM]: ['ETH', 'BSC', 'POLYGON'],
24
+ [BlockchainCategories.COSMOS]: ['COSMOS', 'OSMOSIS', 'JUNO'],
25
+ [BlockchainCategories.UTXO]: ['BTC', 'LTC', 'BCH'],
26
+ [BlockchainCategories.OTHER]: ['STARKNET', 'TRON', 'SOLANA'],
27
+ };
28
+
29
+ export const generateBlockchainsLogo = (
30
+ list: BlockchainMeta[],
31
+ type: Exclude<BlockchainCategories, 'ALL'>
32
+ ) =>
33
+ list
34
+ .filter((item) => filterByType(item, type))
35
+ .filter((item) => blockchainslogo[type].includes(item.name));
@@ -0,0 +1,21 @@
1
+ import { styled } from '../../theme';
2
+
3
+ export const Container = styled('div', {
4
+ display: 'grid',
5
+ gap: '$10',
6
+ gridTemplateColumns: 'auto 1fr 1fr 1fr 1fr',
7
+ });
8
+
9
+ export const ImageContent = styled('div', {
10
+ display: 'flex',
11
+ position: 'relative',
12
+ alignItems: 'center',
13
+ justifyContent: 'center',
14
+ paddingTop: '$10',
15
+ });
16
+ export const FirstImage = styled('img', {
17
+ position: 'absolute',
18
+ top: -2,
19
+ width: 15,
20
+ height: 15,
21
+ });