@rango-dev/ui 0.1.13 → 0.1.14-next.2

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 (38) hide show
  1. package/dist/components/ColorPicker/ColorPicker.d.ts +5 -5
  2. package/dist/components/Settings/Settings.d.ts +1 -0
  3. package/dist/helper/index.d.ts +3 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/ui.cjs.development.js +199 -114
  6. package/dist/ui.cjs.development.js.map +1 -1
  7. package/dist/ui.cjs.production.min.js +1 -1
  8. package/dist/ui.cjs.production.min.js.map +1 -1
  9. package/dist/ui.esm.js +199 -115
  10. package/dist/ui.esm.js.map +1 -1
  11. package/package.json +4 -3
  12. package/src/components/Alert/Alert.tsx +2 -2
  13. package/src/components/BestRoute/BestRoute.tsx +4 -3
  14. package/src/components/Button/Button.tsx +42 -42
  15. package/src/components/Chip/Chip.tsx +1 -1
  16. package/src/components/ColorPicker/ColorPicker.stories.tsx +9 -2
  17. package/src/components/ColorPicker/ColorPicker.tsx +34 -10
  18. package/src/components/Icon/common.ts +2 -2
  19. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
  20. package/src/components/Radio/Radio.tsx +2 -2
  21. package/src/components/SelectableWalletList/SelectableWalletList.tsx +5 -5
  22. package/src/components/Settings/Settings.tsx +20 -16
  23. package/src/components/Skeleton/Skeleton.tsx +1 -1
  24. package/src/components/Spinner/Spinner.tsx +1 -1
  25. package/src/components/StepDetail/StepDetail.tsx +4 -4
  26. package/src/components/SwapContainer/SwapContainer.tsx +3 -3
  27. package/src/components/SwapDetail/SwapDetail.tsx +1 -1
  28. package/src/components/SwapDetail/Token.tsx +2 -2
  29. package/src/components/Switch/Switch.tsx +2 -2
  30. package/src/components/TextField/TextField.tsx +3 -3
  31. package/src/components/TokenList/TokenItem.tsx +1 -1
  32. package/src/components/Tooltip/Tooltip.tsx +2 -2
  33. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +4 -4
  34. package/src/containers/History/SwapsGroup.tsx +1 -1
  35. package/src/containers/SwapHistory/SwapHistory.tsx +5 -5
  36. package/src/helper/index.ts +75 -0
  37. package/src/index.ts +1 -0
  38. package/src/theme.ts +23 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.1.13",
3
+ "version": "0.1.14-next.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -73,14 +73,15 @@
73
73
  "@radix-ui/react-radio-group": "^1.1.1",
74
74
  "@radix-ui/react-switch": "^1.0.1",
75
75
  "@radix-ui/react-tooltip": "^1.0.2",
76
- "@rango-dev/wallets-shared": "^0.1.11",
76
+ "@rango-dev/wallets-shared": "^0.1.13-next.0",
77
77
  "@stitches/react": "^1.2.8",
78
78
  "@types/react-color": "^3.0.6",
79
79
  "rango-sdk": "^0.1.20",
80
80
  "react-color": "^2.19.3",
81
81
  "react-virtualized-auto-sizer": "^1.0.7",
82
82
  "react-window": "^1.8.8",
83
- "react-window-infinite-loader": "^1.0.8"
83
+ "react-window-infinite-loader": "^1.0.8",
84
+ "rgb-hex": "^4.0.1"
84
85
  },
85
86
  "publishConfig": {
86
87
  "access": "public"
@@ -8,8 +8,8 @@ const MainContainer = styled('div', {
8
8
  width: '100%',
9
9
  padding: '$16',
10
10
  borderRadius: '$5',
11
- backgroundColor: '$neutrals300',
12
- color: '$neutrals800',
11
+ backgroundColor: '$neutral100',
12
+ color: '$neutral800',
13
13
 
14
14
  '.main': {
15
15
  display: 'flex',
@@ -11,11 +11,12 @@ import { Image } from '../common';
11
11
 
12
12
  const Container = styled('div', {
13
13
  borderRadius: '$5',
14
- border: '1px solid $neutrals300',
14
+ border: '1px solid $neutral100',
15
15
  display: 'flex',
16
16
  alignItems: 'center',
17
17
  minHeight: 126,
18
18
  justifyContent: 'space-between',
19
+ backgroundColor: '$surface',
19
20
  });
20
21
 
21
22
  const ErrorMsg = styled(Typography, {
@@ -45,7 +46,7 @@ const Line = styled('div', {
45
46
 
46
47
  const HR = styled('hr', {
47
48
  width: '100%',
48
- border: '1px solid $neutrals400',
49
+ border: '1px solid $neutral400',
49
50
  margin: '$8 0',
50
51
  });
51
52
 
@@ -89,7 +90,7 @@ export const pulse = keyframes({
89
90
  });
90
91
 
91
92
  const GasContainer = styled('div', {
92
- backgroundColor: '$neutrals300',
93
+ backgroundColor: '$neutral100',
93
94
  borderRadius: '5px',
94
95
  margin: '$4',
95
96
  display: 'flex',
@@ -46,41 +46,41 @@ const ButtonContainer = styled('button', {
46
46
  },
47
47
  variant: {
48
48
  contained: {
49
- backgroundColor: '$neutrals300',
49
+ backgroundColor: '$neutral100',
50
50
  color: '$foreground',
51
51
  border: 0,
52
52
  '&:hover': {
53
- backgroundColor: '$neutrals200',
53
+ backgroundColor: '$neutral200',
54
54
  },
55
55
  '&:disabled': {
56
- background: '$neutrals400',
56
+ background: '$neutral400',
57
57
  },
58
58
  '&:disabled:hover': {
59
- background: '$neutrals400',
59
+ background: '$neutral400',
60
60
  transform: 'unset',
61
61
  },
62
62
  },
63
63
  outlined: {
64
- backgroundColor: '$background',
64
+ backgroundColor: '$surface',
65
65
  border: 1,
66
66
  borderStyle: 'solid',
67
- borderColor: '$neutrals400',
67
+ borderColor: '$neutral400',
68
68
  color: '$foreground',
69
69
  '&:hover': {
70
- borderColor: '$neutrals600',
70
+ borderColor: '$neutral600',
71
71
  },
72
72
  '&:disabled': {
73
- borderColor: '$neutrals300',
74
- color: '$neutrals400',
73
+ borderColor: '$neutral400',
74
+ color: '$neutral400',
75
75
  },
76
76
  },
77
77
  ghost: {
78
78
  color: '$foreground',
79
79
  '&:hover': {
80
- backgroundColor: '$neutrals200',
80
+ backgroundColor: '$neutral200',
81
81
  },
82
82
  '&:disabled': {
83
- color: '$neutrals400 !important',
83
+ color: '$neutral400',
84
84
  },
85
85
  background: 'transparent',
86
86
  border: 0,
@@ -128,19 +128,19 @@ const ButtonContainer = styled('button', {
128
128
  type: 'primary',
129
129
  variant: 'outlined',
130
130
  css: {
131
- color: '$primary !important',
131
+ color: '$primary',
132
132
  borderColor: '$primary',
133
133
  '&:hover': {
134
- color: '$primary700 !important',
135
- borderColor: '$primary700 !important',
134
+ color: '$primary700',
135
+ borderColor: '$primary700',
136
136
  },
137
137
  '&:visited': {
138
- color: '$primary900 !important',
139
- borderColor: '$primary900 !important',
138
+ color: '$primary900',
139
+ borderColor: '$primary900',
140
140
  },
141
141
  '&:focus': {
142
- color: '$primary600 !important',
143
- borderColor: '$primary600 !important',
142
+ color: '$primary600',
143
+ borderColor: '$primary600',
144
144
  },
145
145
  },
146
146
  },
@@ -167,7 +167,7 @@ const ButtonContainer = styled('button', {
167
167
  [`.${darkTheme} &`]: {
168
168
  $$color: '$colors$foreground',
169
169
  },
170
- color: '$$color !important',
170
+ color: '$$color',
171
171
  '&:hover': {
172
172
  background: '$error300',
173
173
  },
@@ -183,19 +183,19 @@ const ButtonContainer = styled('button', {
183
183
  type: 'error',
184
184
  variant: 'outlined',
185
185
  css: {
186
- color: '$error !important',
186
+ color: '$error',
187
187
  borderColor: '$error',
188
188
  '&:hover': {
189
- color: '$error300 !important',
190
- borderColor: '$error300 !important',
189
+ color: '$error300',
190
+ borderColor: '$error300',
191
191
  },
192
192
  '&:visited': {
193
- color: '$error700 !important',
194
- borderColor: '$error700 !important',
193
+ color: '$error700',
194
+ borderColor: '$error700',
195
195
  },
196
196
  '&:focus': {
197
- color: '$error700 !important',
198
- borderColor: '$error700 !important',
197
+ color: '$error700',
198
+ borderColor: '$error700',
199
199
  },
200
200
  },
201
201
  },
@@ -224,7 +224,7 @@ const ButtonContainer = styled('button', {
224
224
  [`.${darkTheme} &`]: {
225
225
  $$color: '$colors$foreground',
226
226
  },
227
- color: '$$color !important',
227
+ color: '$$color',
228
228
  '&:hover': {
229
229
  background: '$warning300',
230
230
  },
@@ -240,19 +240,19 @@ const ButtonContainer = styled('button', {
240
240
  type: 'warning',
241
241
  variant: 'outlined',
242
242
  css: {
243
- color: '$warning !important',
243
+ color: '$warning',
244
244
  borderColor: '$warning',
245
245
  '&:hover': {
246
- color: '$warning300 !important',
247
- borderColor: '$warning300 !important',
246
+ color: '$warning300',
247
+ borderColor: '$warning300',
248
248
  },
249
249
  '&:visited': {
250
- color: '$warning700 !important',
251
- borderColor: '$warning700 !important',
250
+ color: '$warning700',
251
+ borderColor: '$warning700',
252
252
  },
253
253
  '&:focus': {
254
- color: '$warning700 !important',
255
- borderColor: '$warning700 !important',
254
+ color: '$warning700',
255
+ borderColor: '$warning700',
256
256
  },
257
257
  },
258
258
  },
@@ -281,7 +281,7 @@ const ButtonContainer = styled('button', {
281
281
  [`.${darkTheme} &`]: {
282
282
  $$color: '$colors$foreground',
283
283
  },
284
- color: '$$color !important',
284
+ color: '$$color',
285
285
  '&:hover': {
286
286
  background: '$success300',
287
287
  },
@@ -297,19 +297,19 @@ const ButtonContainer = styled('button', {
297
297
  type: 'success',
298
298
  variant: 'outlined',
299
299
  css: {
300
- color: '$success !important',
300
+ color: '$success',
301
301
  borderColor: '$success',
302
302
  '&:hover': {
303
- color: '$success300 !important',
304
- borderColor: '$success300 !important',
303
+ color: '$success300',
304
+ borderColor: '$success300',
305
305
  },
306
306
  '&:visited': {
307
- color: '$success700 !important',
308
- borderColor: '$success700 !important',
307
+ color: '$success700',
308
+ borderColor: '$success700',
309
309
  },
310
310
  '&:focus': {
311
- color: '$success700 !important',
312
- borderColor: '$success700 !important',
311
+ color: '$success700',
312
+ borderColor: '$success700',
313
313
  },
314
314
  },
315
315
  },
@@ -21,7 +21,7 @@ const ChipCointainer = styled('div', {
21
21
  variants: {
22
22
  selected: {
23
23
  true: { backgroundColor: '$success', color: '$background' },
24
- false: { backgroundColor: '$background' },
24
+ false: { backgroundColor: '$surface' },
25
25
  },
26
26
  },
27
27
  });
@@ -12,11 +12,16 @@ export default {
12
12
  options: ['top', 'bottom', 'left', 'right'],
13
13
  defaultValue: 'top',
14
14
  },
15
+ placeholder: {
16
+ name: 'placeholder',
17
+ control: { type: 'text' },
18
+ defaultValue: 'Choose a color',
19
+ },
15
20
  },
16
21
  } as ComponentMeta<typeof ColorPicker>;
17
22
 
18
23
  export const Main = (args: PropTypes) => {
19
- const [color, setColor] = useState<string>('#5FA425');
24
+ const [color, setColor] = useState<string | undefined>('#5FA425');
20
25
  return (
21
26
  <div
22
27
  style={{
@@ -29,7 +34,9 @@ export const Main = (args: PropTypes) => {
29
34
  <ColorPicker
30
35
  {...args}
31
36
  color={color}
32
- onChangeColor={(color) => setColor(color.hex)}
37
+ onChangeColor={(color) => {
38
+ console.log(color);
39
+ setColor(color)}}
33
40
  />
34
41
  </div>
35
42
  );
@@ -1,14 +1,16 @@
1
1
  import React, { useState } from 'react';
2
- import { ChromePicker, ColorResult } from 'react-color';
2
+ import { ChromePicker } from 'react-color';
3
3
  import { styled } from '../../theme';
4
4
  import { Button } from '../Button';
5
+ import { CloseIcon } from '../Icon';
6
+ import rgbHex from 'rgb-hex';
5
7
 
6
8
  const Container = styled('div', {
7
9
  position: 'relative',
8
10
  });
9
11
 
10
12
  const Color = styled('div', {
11
- border: '1px solid $neutrals300',
13
+ border: '1px solid $neutral100',
12
14
  borderRadius: '$5',
13
15
  width: '$32',
14
16
  height: '$32',
@@ -41,13 +43,11 @@ const Popover = styled('div', {
41
43
  },
42
44
  });
43
45
  export interface PropTypes {
44
- color: string;
46
+ color?: string;
45
47
  place: 'top' | 'bottom' | 'left' | 'right';
46
- onChangeColor: (
47
- color: ColorResult,
48
- event: React.ChangeEvent<HTMLInputElement>
49
- ) => void;
48
+ onChangeColor: (color?: string) => void;
50
49
  label?: string;
50
+ placeholder?: string;
51
51
  }
52
52
 
53
53
  const Label = styled('label', {
@@ -57,7 +57,13 @@ const Label = styled('label', {
57
57
  color: '$foreground',
58
58
  });
59
59
 
60
- export function ColorPicker({ color, onChangeColor, label, place }: PropTypes) {
60
+ export function ColorPicker({
61
+ color,
62
+ onChangeColor,
63
+ label,
64
+ place,
65
+ placeholder,
66
+ }: PropTypes) {
61
67
  const [displayColorPicker, setDisplayColorPicker] = useState<boolean>(false);
62
68
 
63
69
  return (
@@ -69,15 +75,33 @@ export function ColorPicker({ color, onChangeColor, label, place }: PropTypes) {
69
75
  fullWidth
70
76
  align="start"
71
77
  size="large"
78
+ suffix={
79
+ color && (
80
+ <div
81
+ onClick={(e) => {
82
+ e.stopPropagation();
83
+ onChangeColor(undefined);
84
+ }}
85
+ >
86
+ <CloseIcon size={20} />
87
+ </div>
88
+ )
89
+ }
72
90
  onClick={() => setDisplayColorPicker((prev) => !prev)}
73
91
  >
74
- {color}
92
+ {color || placeholder}
75
93
  </Button>
76
94
 
77
95
  {displayColorPicker && (
78
96
  <Popover place={place}>
79
97
  <Cover onClick={() => setDisplayColorPicker(false)} />
80
- <ChromePicker color={color} onChange={onChangeColor} />
98
+ <ChromePicker
99
+ color={color}
100
+ onChange={(c) => {
101
+ const color = '#' + rgbHex(c.rgb.r, c.rgb.g, c.rgb.b, c.rgb.a);
102
+ onChangeColor(color);
103
+ }}
104
+ />
81
105
  </Popover>
82
106
  )}
83
107
  </Container>
@@ -33,7 +33,7 @@ export const SvgWithStrokeColor = styled('svg', {
33
33
  },
34
34
  disabled: {
35
35
  true: {
36
- stroke: '$neutrals400',
36
+ stroke: '$neutral400',
37
37
  },
38
38
  },
39
39
  },
@@ -72,7 +72,7 @@ export const SvgWithFillColor = styled('svg', {
72
72
  },
73
73
  disabled: {
74
74
  true: {
75
- stroke: '$neutrals400',
75
+ stroke: '$neutral400',
76
76
  },
77
77
  },
78
78
  },
@@ -105,7 +105,7 @@ export function LiquiditySourceList(props: PropTypes) {
105
105
  <div>
106
106
  <LiquiditySourceType>
107
107
  <Typography variant="h5">Bridges</Typography>
108
- <Typography variant="body1" color="neutrals800">
108
+ <Typography variant="body1" color="neutral800">
109
109
  {totalSelectedBridges === totalBridges
110
110
  ? totalBridges
111
111
  : `${totalSelectedBridges} / ${totalBridges}`}
@@ -138,7 +138,7 @@ export function LiquiditySourceList(props: PropTypes) {
138
138
  <div>
139
139
  <LiquiditySourceType>
140
140
  <Typography variant="h5">Exchanges</Typography>
141
- <Typography variant="body1" color="neutrals800">
141
+ <Typography variant="body1" color="neutral800">
142
142
  {totalSelectedExchanges === totalExchanges
143
143
  ? totalExchanges
144
144
  : `${totalSelectedExchanges} / ${totalExchanges}`}
@@ -32,10 +32,10 @@ const StyledItem = styled(RadioGroup.Item, {
32
32
  borderRadius: '100%',
33
33
  cursor: 'pointer',
34
34
  backgroundColor: '$background',
35
- border: '1px solid $neutrals400',
35
+ border: '1px solid $neutral400',
36
36
 
37
37
  '&:hover': {
38
- borderColor: '$neutrals600',
38
+ borderColor: '$neutral600',
39
39
  },
40
40
  });
41
41
 
@@ -14,7 +14,7 @@ const Circle = styled('div', {
14
14
  width: 12,
15
15
  height: 12,
16
16
  borderRadius: 6,
17
- border: '1px solid $neutrals400',
17
+ border: '1px solid $neutral400',
18
18
  position: 'absolute',
19
19
  top: 12,
20
20
  right: 12,
@@ -24,7 +24,7 @@ const Circle = styled('div', {
24
24
  borderColor: '$success',
25
25
  },
26
26
  false: {
27
- borderColor: '$neutrals400',
27
+ borderColor: '$neutral400',
28
28
  },
29
29
  },
30
30
  },
@@ -40,7 +40,7 @@ const SolidCircle = styled('div', {
40
40
  backgroundColor: '$success',
41
41
  },
42
42
  false: {
43
- backgroundColor: '$neutrals400',
43
+ backgroundColor: '$neutral400',
44
44
  },
45
45
  },
46
46
  },
@@ -65,8 +65,8 @@ const Container = styled('div', {
65
65
  color: '$success',
66
66
  },
67
67
  false: {
68
- borderColor: '$neutrals400',
69
- color: '$neutrals400',
68
+ borderColor: '$neutral400',
69
+ color: '$neutral400',
70
70
  },
71
71
  },
72
72
  },
@@ -12,7 +12,7 @@ import { Button } from '../Button';
12
12
 
13
13
  const BaseContainer = styled('div', {
14
14
  borderRadius: '$5',
15
- backgroundColor: '$neutrals300',
15
+ backgroundColor: '$neutral100',
16
16
  padding: '$16',
17
17
  });
18
18
 
@@ -74,6 +74,7 @@ export interface PropTypes {
74
74
  infiniteApprove: boolean;
75
75
  toggleInfiniteApprove: (infinite: boolean) => void;
76
76
  loadingStatus: LoadingStatus;
77
+ singleTheme?: boolean;
77
78
  }
78
79
 
79
80
  export function Settings(props: PropTypes) {
@@ -93,6 +94,7 @@ export function Settings(props: PropTypes) {
93
94
  toggleInfiniteApprove,
94
95
  infiniteApprove,
95
96
  loadingStatus,
97
+ singleTheme,
96
98
  } = props;
97
99
 
98
100
  const [selectedSlippage, setSelectedSlippage] = useState(
@@ -153,20 +155,22 @@ export function Settings(props: PropTypes) {
153
155
  />
154
156
  </SlippageChipsContainer>
155
157
  </BaseContainer>
156
- <ThemesContainer>
157
- <Title variant="body2">Theme</Title>
158
- <Radio
159
- value={selectedTheme}
160
- options={[
161
- { value: 'dark', label: 'Dark' },
162
- { value: 'light', label: 'Light' },
163
- { value: 'auto', label: 'Auto' },
164
- ]}
165
- onChange={(value) => onThemeChange(value as Theme)}
166
- direction="horizontal"
167
- style={{ marginTop: '$24' }}
168
- />
169
- </ThemesContainer>
158
+ {!singleTheme && (
159
+ <ThemesContainer>
160
+ <Title variant="body2">Theme</Title>
161
+ <Radio
162
+ value={selectedTheme}
163
+ options={[
164
+ { value: 'dark', label: 'Dark' },
165
+ { value: 'light', label: 'Light' },
166
+ { value: 'auto', label: 'Auto' },
167
+ ]}
168
+ onChange={(value) => onThemeChange(value as Theme)}
169
+ direction="horizontal"
170
+ style={{ marginTop: '$24' }}
171
+ />
172
+ </ThemesContainer>
173
+ )}
170
174
  <InfiniteContainer>
171
175
  <Typography variant="body2">Infinite Approval</Typography>
172
176
  <Switch checked={infiniteApprove} onChange={toggleInfiniteApprove} />
@@ -180,7 +184,7 @@ export function Settings(props: PropTypes) {
180
184
  suffix={
181
185
  <LiquiditySourceNumber>
182
186
  {loadingStatus === 'success' && (
183
- <Typography variant="body2" color="neutrals800">
187
+ <Typography variant="body2" color="neutral800">
184
188
  {liquiditySources.length !== selectedLiquiditySources.length
185
189
  ? `${selectedLiquiditySources.length} / ${liquiditySources.length}`
186
190
  : liquiditySources.length}
@@ -12,7 +12,7 @@ const waveSquares = keyframes({
12
12
 
13
13
  const SkeletonContainer = styled('div', {
14
14
  borderRadius: '$5',
15
- backgroundColor: '$neutrals300',
15
+ backgroundColor: '$neutral100',
16
16
  background: `linear-gradient(to right, rgba(130, 130, 130, 0.2) 8%, rgba(130, 130, 130, 0.3) 18%, rgba(130, 130, 130, 0.2) 33%)`,
17
17
  backgroundSize: '800px 100px',
18
18
  animation: `${waveSquares} 2s infinite ease-out`,
@@ -10,7 +10,7 @@ const spin = keyframes({
10
10
  const SpinnerContainer = styled('div', {
11
11
  borderRadius: '50%',
12
12
  position: 'relative',
13
- border: `2px solid $neutrals300`,
13
+ border: `2px solid $neutral100`,
14
14
  borderRight: `2px solid`,
15
15
  animation: `${spin} 1.5s linear infinite`,
16
16
  margin: `0px $8`,
@@ -30,7 +30,7 @@ const ChainLogo = styled('div', {
30
30
  padding: '$2',
31
31
  borderRadius: '50%',
32
32
  backgroundColor: '$background',
33
- border: '1px solid $neutrals400',
33
+ border: '1px solid $neutral400',
34
34
 
35
35
  img: {
36
36
  width: '100%',
@@ -74,7 +74,7 @@ const Detail = styled('div', {
74
74
  },
75
75
  });
76
76
  const SubTitle = styled(Typography, {
77
- color: '$neutrals600',
77
+ color: '$neutral600',
78
78
  display: 'block',
79
79
  paddingLeft: '$8',
80
80
  });
@@ -121,7 +121,7 @@ export function StepDetail(props: PropsWithChildren<PropTypes>) {
121
121
  <Typography
122
122
  noWrap
123
123
  variant={direction === 'vertical' ? 'body2' : 'title'}
124
- color={'$neutrals600'}
124
+ color={'$neutral600'}
125
125
  >
126
126
  {estimatedAmount}
127
127
  </Typography>
@@ -133,7 +133,7 @@ export function StepDetail(props: PropsWithChildren<PropTypes>) {
133
133
  >
134
134
  {symbol}
135
135
  </Typography>
136
- <SubTitle noWrap variant="caption" color="$neutrals800">
136
+ <SubTitle noWrap variant="caption" color="$neutral800">
137
137
  on {blockchain}
138
138
  </SubTitle>
139
139
  </Detail>
@@ -20,14 +20,14 @@ const MainContainer = styled('div', {
20
20
  listStyleType: 'none',
21
21
  '&::-webkit-scrollbar': { width: '$8', height: '$8' },
22
22
  '&::-webkit-scrollbar-thumb': {
23
- backgroundColor: '$neutrals400',
23
+ backgroundColor: '$neutral400',
24
24
  borderRadius: '$10',
25
25
  },
26
26
  '&::-webkit-scrollbar-thumb:hover': {
27
- backgroundColor: '$neutrals500',
27
+ backgroundColor: '$neutral500',
28
28
  },
29
29
  '&::-webkit-scrollbar-track': {
30
- backgroundColor: '$neutrals300',
30
+ backgroundColor: '$neutral100',
31
31
  },
32
32
  },
33
33
  variants: {
@@ -14,7 +14,7 @@ const Container = styled('div', {
14
14
  justifyContent: 'space-between',
15
15
  alignItems: 'center',
16
16
  padding: '$16 0',
17
- borderBottom: '1px solid $neutrals300',
17
+ borderBottom: '1px solid $neutral100',
18
18
 
19
19
  '& > .info': {
20
20
  display: 'flex',
@@ -12,7 +12,7 @@ const TokenContainer = styled('div', {
12
12
  fontWeight: 'bold',
13
13
  },
14
14
  '& .estimated': {
15
- color: '$neutrals600',
15
+ color: '$neutral600',
16
16
  },
17
17
  });
18
18
 
@@ -33,7 +33,7 @@ const TokenImage = styled('div', {
33
33
  justifyContent: 'center',
34
34
  alignItems: 'center',
35
35
  backgroundColor: '$background',
36
- border: '1px solid $neutrals400',
36
+ border: '1px solid $neutral400',
37
37
  },
38
38
  });
39
39
 
@@ -9,8 +9,8 @@ const StyledSwitchRoot = styled(RadixSwitch.Root, {
9
9
  borderStyle: 'solid',
10
10
  width: '42px',
11
11
  height: '22px',
12
- backgroundColor: '$neutrals600',
13
- borderColor: '$neutrals600',
12
+ backgroundColor: '$neutral600',
13
+ borderColor: '$neutral600',
14
14
  borderRadius: '99999px',
15
15
  position: 'relative',
16
16
  padding: '0',