@rango-dev/ui 0.17.1-next.7 → 0.17.1-next.9

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 (42) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +3 -3
  3. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts +2 -1
  4. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts.map +1 -1
  5. package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts.map +1 -1
  6. package/dist/widget/ui/src/components/Wallet/Content.d.ts +1 -1
  7. package/dist/widget/ui/src/components/Wallet/Content.d.ts.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/Alert/Alert.styles.ts +2 -2
  10. package/src/components/BestRoute/BestRoute.tsx +1 -1
  11. package/src/components/BestRoute/BestRouteSkeleton.styles.ts +1 -1
  12. package/src/components/BottomLogo/BottomLogo.tsx +2 -2
  13. package/src/components/Button/Button.styles.tsx +6 -6
  14. package/src/components/Checkbox/Checkbox.styles.ts +1 -1
  15. package/src/components/Chip/Chip.tsx +1 -1
  16. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
  17. package/src/components/ListItem/ListItem.tsx +1 -1
  18. package/src/components/MessageBox/DefaultMessageBox.tsx +1 -1
  19. package/src/components/NotFound/NotFound.tsx +1 -1
  20. package/src/components/PriceImpact/PriceImpact.tsx +2 -2
  21. package/src/components/Radio/Radio.styles.tsx +1 -1
  22. package/src/components/RoutesOverview/RoutesOverview.tsx +1 -1
  23. package/src/components/StepDetail/StepDetail.tsx +7 -4
  24. package/src/components/StepDetails/StepDetails.tsx +2 -2
  25. package/src/components/SvgIcon/SvgIcon.style.ts +2 -6
  26. package/src/components/SwapListItem/SwapListItem.tsx +1 -1
  27. package/src/components/SwapListItem/SwapToken.tsx +3 -3
  28. package/src/components/Switch/Switch.styles.tsx +2 -2
  29. package/src/components/TextField/TextField.styles.ts +1 -1
  30. package/src/components/TokenAmount/TokenAmount.tsx +2 -2
  31. package/src/components/TokenList/TokenItem.tsx +1 -1
  32. package/src/components/TokenPreview/TokenPreview.tsx +2 -2
  33. package/src/components/Wallet/Content.tsx +5 -3
  34. package/src/components/Wallet/SelectableWallet.tsx +1 -1
  35. package/src/components/Wallet/Wallet.helpers.ts +2 -2
  36. package/src/containers/SwapHistory/SwapHistory.tsx +4 -4
  37. package/src/containers/SwapInput/SwapInput.tsx +3 -3
  38. package/src/containers/SwapInput/TokenSection.styles.ts +2 -2
  39. package/src/containers/SwapInput/TokenSection.tsx +1 -1
  40. package/src/containers/TokenInfo/TokenInfo.tsx +4 -4
  41. package/src/containers/Warnings/BalanceErrors.tsx +1 -1
  42. package/src/theme.ts +8 -8
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
2
3
  export interface PropTypes {
3
4
  logo: string;
4
5
  chainLogo: string;
@@ -1 +1 @@
1
- {"version":3,"file":"StepDetail.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetail/StepDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAgFjD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAkD7D"}
1
+ {"version":3,"file":"StepDetail.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetail/StepDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAiF1B,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAkD7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"SvgIcon.style.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SvgIcon/SvgIcon.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAoCvB,CAAC"}
1
+ {"version":3,"file":"SvgIcon.style.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SvgIcon/SvgIcon.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgCvB,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { ContentProps } from './Wallet.types';
1
2
  import React from 'react';
2
- import { ContentProps } from './Wallet.types';
3
3
  declare function Content(props: ContentProps): React.JSX.Element;
4
4
  export default Content;
5
5
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK9C,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,qBAuBnC;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,qBAuBnC;AAED,eAAe,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.17.1-next.7",
3
+ "version": "0.17.1-next.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -63,7 +63,7 @@
63
63
  "@radix-ui/react-radio-group": "^1.1.1",
64
64
  "@radix-ui/react-switch": "^1.0.1",
65
65
  "@radix-ui/react-tooltip": "^1.0.2",
66
- "@rango-dev/wallets-shared": "^0.17.0",
66
+ "@rango-dev/wallets-shared": "^0.17.1-next.0",
67
67
  "@stitches/react": "^1.2.8",
68
68
  "rango-sdk": "^0.1.35",
69
69
  "react-virtualized-auto-sizer": "^1.0.7",
@@ -20,9 +20,9 @@ export const Container = styled('div', {
20
20
  paddingLeft: '$24',
21
21
  },
22
22
  '.description': {
23
- $$color: '$colors$neutral900',
23
+ $$color: '$colors$neutral700',
24
24
  [`.${darkTheme} &`]: {
25
- $$color: '$colors$neutral800',
25
+ $$color: '$colors$neutral600',
26
26
  },
27
27
  color: '$$color',
28
28
  fontSize: '$10',
@@ -71,7 +71,7 @@ export function BestRoute(props: BestRouteProps) {
71
71
  } ${steps[steps.length - 1].to.token.displayName}`}
72
72
  </Typography>
73
73
  <Typography
74
- color="$neutral800"
74
+ color="$neutral600"
75
75
  ml={2}
76
76
  size="xsmall"
77
77
  variant="body">
@@ -47,7 +47,7 @@ export const Container = styled('div', {
47
47
  '& .route-summary__separator': {
48
48
  height: '$28',
49
49
  marginLeft: '13px',
50
- borderLeft: '1px solid $neutral900',
50
+ borderLeft: '1px solid $neutral700',
51
51
  },
52
52
  '& .token-amount': {
53
53
  display: 'flex',
@@ -10,7 +10,7 @@ import { Container, StyledAnchor } from './BottomLogo.styles';
10
10
  export function BottomLogo() {
11
11
  return (
12
12
  <Container>
13
- <Typography variant="body" size="xsmall" color="$neutral900">
13
+ <Typography variant="body" size="xsmall" color="$neutral700">
14
14
  {i18n.t('Powered By')}
15
15
  </Typography>
16
16
  <Divider direction="horizontal" size={8} />
@@ -18,7 +18,7 @@ export function BottomLogo() {
18
18
  <Logo size={16} color="gray" />
19
19
  <Divider direction="horizontal" size={4} />
20
20
 
21
- <Typography variant="body" size="xsmall" color="neutral900">
21
+ <Typography variant="body" size="xsmall" color="neutral700">
22
22
  RANGO
23
23
  </Typography>
24
24
  </StyledAnchor>
@@ -61,7 +61,7 @@ export const ButtonBase = styled('button', {
61
61
  [`.${darkTheme} &`]: {
62
62
  $$color: '$colors$foreground',
63
63
  },
64
- backgroundColor: '$neutral800',
64
+ backgroundColor: '$neutral600',
65
65
  color: '$$color',
66
66
  pointerEvents: 'none',
67
67
  },
@@ -80,16 +80,16 @@ export const ButtonBase = styled('button', {
80
80
  outline: 0,
81
81
  },
82
82
  '&:disabled': {
83
- borderColor: '$neutral800',
84
- color: '$neutral800',
83
+ borderColor: '$neutral600',
84
+ color: '$neutral600',
85
85
  pointerEvents: 'none',
86
86
  },
87
87
  },
88
88
  ghost: {
89
89
  backgroundColor: 'transparent',
90
- color: '$neutral900',
90
+ color: '$neutral700',
91
91
  '&:disabled': {
92
- color: '$neutral800',
92
+ color: '$neutral600',
93
93
  pointerEvents: 'none',
94
94
  },
95
95
  '&:focus-visible': {
@@ -140,7 +140,7 @@ export const ButtonBase = styled('button', {
140
140
  [`.${darkTheme} &`]: {
141
141
  $$color: '$colors$foreground',
142
142
  },
143
- background: '$neutral800',
143
+ background: '$neutral600',
144
144
  color: '$$color',
145
145
  pointerEvents: 'none',
146
146
  },
@@ -13,7 +13,7 @@ export const CheckboxRoot = styled(RadixCheckbox.Root, {
13
13
  width: '1rem',
14
14
  height: '1rem',
15
15
  padding: 0,
16
- border: '1px solid $neutral800',
16
+ border: '1px solid $neutral600',
17
17
  backgroundColor: 'transparent',
18
18
  cursor: 'pointer',
19
19
  '&[data-state="checked"]': {
@@ -12,7 +12,7 @@ export function Chip(props: PropTypes) {
12
12
  <ChipContainer selected={selected} {...otherProps}>
13
13
  {prefix || null}
14
14
  <Typography
15
- color={!selected ? 'neutral900' : undefined}
15
+ color={!selected ? 'neutral700' : undefined}
16
16
  variant="body"
17
17
  size="medium">
18
18
  {label}
@@ -111,7 +111,7 @@ export function LiquiditySourceList(props: PropTypes) {
111
111
  <Typography variant="title" size="xmedium">
112
112
  {i18n.t('Bridges')}
113
113
  </Typography>
114
- <Typography variant="body" size="medium" color="neutral800">
114
+ <Typography variant="body" size="medium" color="neutral600">
115
115
  {totalSelectedBridges === totalBridges
116
116
  ? totalBridges
117
117
  : `${totalSelectedBridges} / ${totalBridges}`}
@@ -150,7 +150,7 @@ export function LiquiditySourceList(props: PropTypes) {
150
150
  <Typography variant="title" size="xmedium">
151
151
  {i18n.t('Exchanges')}
152
152
  </Typography>
153
- <Typography variant="body" size="medium" color="neutral800">
153
+ <Typography variant="body" size="medium" color="neutral600">
154
154
  {totalSelectedExchanges === totalExchanges
155
155
  ? totalExchanges
156
156
  : `${totalSelectedExchanges} / ${totalExchanges}`}
@@ -16,7 +16,7 @@ function ListItem(props: ListItemProps) {
16
16
  <div className="item-text-container">
17
17
  {title && <div className="item-text-title">{title}</div>}
18
18
  {description && (
19
- <Typography variant="body" size="small" color="neutral800">
19
+ <Typography variant="body" size="small" color="neutral600">
20
20
  {description}
21
21
  </Typography>
22
22
  )}
@@ -27,7 +27,7 @@ export function MessageBox(props: PropsWithChildren<PropTypes>) {
27
27
  <Divider size={16} />
28
28
  <Description>
29
29
  {typeof description === 'string' ? (
30
- <Typography color="neutral900" variant="body" size="medium">
30
+ <Typography color="neutral700" variant="body" size="medium">
31
31
  {description}
32
32
  </Typography>
33
33
  ) : (
@@ -16,7 +16,7 @@ export function NotFound(props: PropTypes) {
16
16
  <Typography variant="title" size="medium">
17
17
  {props.title}
18
18
  </Typography>
19
- <Typography variant="body" size="medium" color="neutral900">
19
+ <Typography variant="body" size="medium" color="neutral700">
20
20
  {props.description}
21
21
  </Typography>
22
22
  </Container>
@@ -9,7 +9,7 @@ import { Container } from './PriceImpact.styles';
9
9
  export function PriceImpact(props: PriceImpactProps) {
10
10
  const { size, outputUsdValue, percentageChange, warningLevel, error } = props;
11
11
 
12
- let percentageChangeColor = '$neutral900';
12
+ let percentageChangeColor = '$neutral700';
13
13
  if (!outputUsdValue || warningLevel === 'low') {
14
14
  percentageChangeColor = '$warning500';
15
15
  } else if (warningLevel === 'high') {
@@ -22,7 +22,7 @@ export function PriceImpact(props: PriceImpactProps) {
22
22
  <Typography
23
23
  size={size === 'small' ? 'small' : 'medium'}
24
24
  variant="body"
25
- color={size !== 'small' ? '$neutral800' : '$neutral900'}>
25
+ color={size !== 'small' ? '$neutral600' : '$neutral700'}>
26
26
  {`~$${outputUsdValue}`}
27
27
  </Typography>
28
28
  )}
@@ -9,7 +9,7 @@ export const StyledItem = styled(Radio.Item, {
9
9
  borderRadius: '100%',
10
10
  cursor: 'pointer',
11
11
  backgroundColor: 'transparent',
12
- border: '1px solid $neutral800',
12
+ border: '1px solid $neutral600',
13
13
 
14
14
  '&[data-state="checked"]': {
15
15
  $$color: '$colors$secondary500',
@@ -13,7 +13,7 @@ export const Container = styled('div', {
13
13
  padding: '$8',
14
14
  borderRadius: '$xs',
15
15
  backgroundColor: '$background',
16
- color: '$neutral800',
16
+ color: '$neutral600',
17
17
  fontSize: '$12',
18
18
 
19
19
  '.routes': {
@@ -1,4 +1,7 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
+
3
+ import React from 'react';
4
+
2
5
  import { styled } from '../../theme';
3
6
  import { Typography } from '../Typography';
4
7
 
@@ -74,7 +77,7 @@ const Detail = styled('div', {
74
77
  },
75
78
  });
76
79
  const SubTitle = styled(Typography, {
77
- color: '$neutral600',
80
+ color: '$neutral800',
78
81
  display: 'block',
79
82
  paddingLeft: '$8',
80
83
  });
@@ -122,7 +125,7 @@ export function StepDetail(props: PropsWithChildren<PropTypes>) {
122
125
  noWrap
123
126
  variant={direction === 'vertical' ? 'body' : 'title'}
124
127
  size="medium"
125
- color={'$neutral600'}>
128
+ color={'$neutral800'}>
126
129
  {estimatedAmount}
127
130
  </Typography>
128
131
  )}
@@ -133,7 +136,7 @@ export function StepDetail(props: PropsWithChildren<PropTypes>) {
133
136
  noWrap>
134
137
  {symbol}
135
138
  </Typography>
136
- <SubTitle noWrap variant="body" size="xsmall" color="$neutral800">
139
+ <SubTitle noWrap variant="body" size="xsmall" color="$neutral600">
137
140
  on {blockchain}
138
141
  </SubTitle>
139
142
  </Detail>
@@ -74,7 +74,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
74
74
  ml={4}
75
75
  mr={4}
76
76
  size="small"
77
- color="$neutral900"
77
+ color="$neutral700"
78
78
  variant="body">{`${step.from.price.value} ${step.from.token.displayName}`}</Typography>
79
79
  <NextIcon color="gray" />
80
80
  <Divider size={4} direction="horizontal" />
@@ -86,7 +86,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
86
86
  <Typography
87
87
  ml={4}
88
88
  size="small"
89
- color="$neutral900"
89
+ color="$neutral700"
90
90
  variant="body">{`${isCompleted ? '' : '~'}${
91
91
  step.to.price.value
92
92
  } ${step.to.token.displayName}`}</Typography>
@@ -1,4 +1,4 @@
1
- import { darkTheme, styled } from '../../theme';
1
+ import { styled } from '../../theme';
2
2
 
3
3
  export const SvgWithColor = styled('svg', {
4
4
  variants: {
@@ -28,11 +28,7 @@ export const SvgWithColor = styled('svg', {
28
28
  color: '$info500',
29
29
  },
30
30
  gray: {
31
- $$color: '$colors$neutral900',
32
- [`.${darkTheme} &`]: {
33
- $$color: '$colors$neutral800',
34
- },
35
- color: '$$color',
31
+ color: '$neutral600',
36
32
  },
37
33
  },
38
34
  },
@@ -46,7 +46,7 @@ export function SwapListItem(props: PropsWithChildren<PropTypes>) {
46
46
  <Container>
47
47
  <Header>
48
48
  <Date>
49
- <Typography variant="label" size="medium" color="neutral800">
49
+ <Typography variant="label" size="medium" color="neutral600">
50
50
  {formattedDateAndTime(creationTime, onlyShowTime)}
51
51
  </Typography>
52
52
  </Date>
@@ -114,7 +114,7 @@ export function SwapToken(props: PropTypes) {
114
114
  {toToken.displayName}
115
115
  </Typography>
116
116
  </TopSection>
117
- <Typography size="small" variant="body" color="neutral900">
117
+ <Typography size="small" variant="body" color="neutral700">
118
118
  {i18n.t('Waiting for bridge transaction')}
119
119
  </Typography>
120
120
  </Layout>
@@ -125,7 +125,7 @@ export function SwapToken(props: PropTypes) {
125
125
  {fromToken.displayName}
126
126
  </Typography>
127
127
  {!!fromAmount && (
128
- <Typography size="small" variant="body" color="neutral900">
128
+ <Typography size="small" variant="body" color="neutral700">
129
129
  {fromAmount}
130
130
  </Typography>
131
131
  )}
@@ -138,7 +138,7 @@ export function SwapToken(props: PropTypes) {
138
138
  {toToken.displayName}
139
139
  </Typography>
140
140
 
141
- <Typography size="small" variant="body" color="neutral900">
141
+ <Typography size="small" variant="body" color="neutral700">
142
142
  {toAmount || estimatedAmount}
143
143
  </Typography>
144
144
  </TokenInfo>
@@ -8,8 +8,8 @@ export const StyledSwitchRoot = styled(RadixSwitch.Root, {
8
8
  borderStyle: 'solid',
9
9
  width: '24px',
10
10
  height: '16px',
11
- backgroundColor: '$neutral800',
12
- borderColor: '$neutral800',
11
+ backgroundColor: '$neutral600',
12
+ borderColor: '$neutral600',
13
13
  borderRadius: '99999px',
14
14
  position: 'relative',
15
15
  padding: '0',
@@ -111,7 +111,7 @@ export const Input = styled('input', {
111
111
  },
112
112
 
113
113
  '&::placeholder, &::-webkit-input-placeholder': {
114
- color: '$neutral900',
114
+ color: '$neutral700',
115
115
  },
116
116
  '&:focus-visible': {
117
117
  outline: 'none',
@@ -19,7 +19,7 @@ export function TokenAmount(props: PropTypes) {
19
19
  />
20
20
  <div>
21
21
  {props.label && (
22
- <Typography ml={4} size="xsmall" variant="body" color="$neutral900">
22
+ <Typography ml={4} size="xsmall" variant="body" color="$neutral700">
23
23
  {props.label}
24
24
  </Typography>
25
25
  )}
@@ -43,7 +43,7 @@ export function TokenAmount(props: PropTypes) {
43
43
  </div>
44
44
  <div className="usd-value">
45
45
  {props.type === 'input' && (
46
- <Typography mr={4} size="small" variant="body" color="$neutral900">
46
+ <Typography mr={4} size="small" variant="body" color="$neutral700">
47
47
  {`~$${props.price.usdValue}`}
48
48
  </Typography>
49
49
  )}
@@ -70,7 +70,7 @@ export function TokenItem(props: PropTypes) {
70
70
  <Typography variant="body" size="medium">
71
71
  {token.symbol}
72
72
  </Typography>
73
- <Typography variant="body" size="xsmall" color="neutral600">
73
+ <Typography variant="body" size="xsmall" color="neutral800">
74
74
  {token.name}
75
75
  </Typography>
76
76
  </TokenNameContainer>
@@ -117,7 +117,7 @@ export function TokenPreview(props: PropTypes) {
117
117
  <Box>
118
118
  <Container type={'outlined'}>
119
119
  <div className="head">
120
- <Typography variant="body" size="small" color="neutral800">
120
+ <Typography variant="body" size="small" color="neutral600">
121
121
  {props.label}
122
122
  </Typography>
123
123
  <div>
@@ -126,7 +126,7 @@ export function TokenPreview(props: PropTypes) {
126
126
  <Typography
127
127
  variant="body"
128
128
  size="xsmall"
129
- color="neutral600"
129
+ color="neutral800"
130
130
  className="usd-value">{`$${props.usdValue}`}</Typography>
131
131
  )}
132
132
  </div>
@@ -1,12 +1,14 @@
1
+ import type { ContentProps } from './Wallet.types';
2
+
1
3
  import React from 'react';
2
4
 
3
- import { ContentProps } from './Wallet.types';
4
- import { Typography } from '../Typography';
5
5
  import { Image } from '../common';
6
+ import { Typography } from '../Typography';
7
+
6
8
  import { Text, WalletImageContainer } from './Wallet.styles';
7
9
 
8
10
  function Content(props: ContentProps) {
9
- const { image, title, description, descriptionColor = 'neutral600' } = props;
11
+ const { image, title, description, descriptionColor = 'neutral800' } = props;
10
12
  return (
11
13
  <>
12
14
  <WalletImageContainer>
@@ -40,7 +40,7 @@ export function SelectableWallet(props: SelectablePropTypes) {
40
40
  variant="body"
41
41
  size="xsmall"
42
42
  noWrap={false}
43
- color={state === WalletState.CONNECTED ? 'neutral900' : info.color}>
43
+ color={state === WalletState.CONNECTED ? 'neutral700' : info.color}>
44
44
  {description || info.description}
45
45
  </Typography>
46
46
  </Text>
@@ -20,13 +20,13 @@ export function makeInfo(state: WalletState): Info {
20
20
  };
21
21
  case WalletState.CONNECTING:
22
22
  return {
23
- color: 'neutral800',
23
+ color: 'neutral600',
24
24
  description: i18n.t('Connecting...'),
25
25
  tooltipText: i18n.t('Connecting'),
26
26
  };
27
27
  case WalletState.DISCONNECTED:
28
28
  return {
29
- color: 'neutral800',
29
+ color: 'neutral600',
30
30
  description: i18n.t('Disconnected'),
31
31
  tooltipText: i18n.t('Connect'),
32
32
  };
@@ -66,7 +66,7 @@ export const ErrorMsg = styled(Typography, {
66
66
 
67
67
  export const FeeContainer = styled('div', {
68
68
  paddingLeft: '$16',
69
- color: '$neutral800',
69
+ color: '$neutral600',
70
70
  });
71
71
 
72
72
  export const Fee = styled('div', {
@@ -150,12 +150,12 @@ const Row = styled('div', {
150
150
  padding: '$8 0',
151
151
 
152
152
  '.name': {
153
- color: '$neutral600',
153
+ color: '$neutral800',
154
154
  },
155
155
  '.value': {
156
156
  display: 'flex',
157
157
  alignItems: 'center',
158
- color: '$neutral800',
158
+ color: '$neutral600',
159
159
  justifyContent: 'flex-end',
160
160
  },
161
161
  '.status': {
@@ -182,7 +182,7 @@ const RequestId = styled('div', {
182
182
 
183
183
  const ExtraDetails = styled('div', {
184
184
  padding: '0',
185
- color: '$neutral600',
185
+ color: '$neutral800',
186
186
  fontSize: '$10',
187
187
  });
188
188
 
@@ -13,13 +13,13 @@ export function SwapInput(props: SwapInputProps) {
13
13
  <Container sharpBottomStyle={props.sharpBottomStyle}>
14
14
  <div className="label__container">
15
15
  <div className="label">
16
- <Typography variant="body" size="small" color="$neutral800">
16
+ <Typography variant="body" size="small" color="$neutral600">
17
17
  {props.label}
18
18
  </Typography>
19
19
  {'balance' in props && !props.loading && (
20
20
  <div className="balance">
21
21
  <Typography
22
- color="$neutral800"
22
+ color="$neutral600"
23
23
  mr={4}
24
24
  variant="body"
25
25
  size="xsmall">
@@ -87,7 +87,7 @@ export function SwapInput(props: SwapInputProps) {
87
87
  <Typography
88
88
  variant="body"
89
89
  size="medium"
90
- color={!props.price.error ? '$neutral800' : '$warning500'}
90
+ color={!props.price.error ? '$neutral600' : '$warning500'}
91
91
  style={{
92
92
  width: 140,
93
93
  textAlign: 'right',
@@ -3,9 +3,9 @@ import { darkTheme, styled } from '../../theme';
3
3
 
4
4
  export const Container = styled(Button, {
5
5
  backgroundColor: 'transparent',
6
- color: '$neutral900',
6
+ color: '$neutral700',
7
7
  '&:disabled': {
8
- color: '$neutral800',
8
+ color: '$neutral600',
9
9
  },
10
10
  '&:focus-visible': {
11
11
  $$color: '$colors$info100',
@@ -41,7 +41,7 @@ export function TokenSection(props: TokenSectionProps) {
41
41
  ? i18n.t('Token')
42
42
  : tokenSymbol}
43
43
  </Typography>
44
- <Typography variant="body" size="medium" color="$neutral800">
44
+ <Typography variant="body" size="medium" color="$neutral600">
45
45
  {error || (!loading && !chain) ? i18n.t('Chain') : chain}
46
46
  </Typography>
47
47
  </>
@@ -174,7 +174,7 @@ export function TokenInfo(props: PropTypes) {
174
174
  <Box>
175
175
  <Container type={type === 'From' ? 'filled' : 'outlined'}>
176
176
  <div className="head">
177
- <Typography variant="body" size="small" color="neutral800">
177
+ <Typography variant="body" size="small" color="neutral600">
178
178
  {type === 'From' ? (
179
179
  <Trans id="swap from" message="From" />
180
180
  ) : (
@@ -190,7 +190,7 @@ export function TokenInfo(props: PropTypes) {
190
190
  setInputAmount(tokenBalanceReal.split(',').join(''));
191
191
  }
192
192
  }}>
193
- <Typography variant="body" size="small" color="neutral600">
193
+ <Typography variant="body" size="small" color="neutral800">
194
194
  {i18n.t('Balance')}: {tokenBalance} {fromToken?.symbol || ''}
195
195
  </Typography>
196
196
  <Divider size={4} />
@@ -209,7 +209,7 @@ export function TokenInfo(props: PropTypes) {
209
209
  <Typography
210
210
  variant="body"
211
211
  size="xsmall"
212
- color="neutral600">{`$${props.outputUsdValue}`}</Typography>
212
+ color="neutral800">{`$${props.outputUsdValue}`}</Typography>
213
213
  </div>
214
214
  </div>
215
215
  )}
@@ -280,7 +280,7 @@ export function TokenInfo(props: PropTypes) {
280
280
  <Typography
281
281
  variant="body"
282
282
  size="xsmall"
283
- color="neutral800">{`$${inputUsdValue}`}</Typography>
283
+ color="neutral600">{`$${inputUsdValue}`}</Typography>
284
284
  </span>
285
285
  }
286
286
  value={inputAmount || ''}
@@ -28,7 +28,7 @@ export function BalanceErrors({ messages }: PropTypes) {
28
28
  const key = index + warning;
29
29
  return (
30
30
  <ListItem key={key}>
31
- <Message variant="body" size="medium" color="$neutral900">
31
+ <Message variant="body" size="medium" color="$neutral700">
32
32
  {warning}
33
33
  </Message>
34
34
  </ListItem>