@rango-dev/ui 0.17.1-next.8 → 0.18.0

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 (84) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/index.js +2 -2
  3. package/dist/index.js.map +4 -4
  4. package/dist/translations/en.d.ts.map +1 -1
  5. package/dist/translations/es.d.ts.map +1 -1
  6. package/dist/translations/fr.d.ts.map +1 -1
  7. package/dist/translations/{jp.d.ts → ja.d.ts} +1 -1
  8. package/dist/translations/ja.d.ts.map +1 -0
  9. package/dist/widget/ui/src/components/Flags/English.d.ts +4 -0
  10. package/dist/widget/ui/src/components/Flags/English.d.ts.map +1 -0
  11. package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts +2 -0
  12. package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts.map +1 -0
  13. package/dist/widget/ui/src/components/Flags/Flags.types.d.ts +4 -0
  14. package/dist/widget/ui/src/components/Flags/Flags.types.d.ts.map +1 -0
  15. package/dist/widget/ui/src/components/Flags/French.d.ts +4 -0
  16. package/dist/widget/ui/src/components/Flags/French.d.ts.map +1 -0
  17. package/dist/widget/ui/src/components/Flags/Japanese.d.ts +4 -0
  18. package/dist/widget/ui/src/components/Flags/Japanese.d.ts.map +1 -0
  19. package/dist/widget/ui/src/components/Flags/Spanish.d.ts +4 -0
  20. package/dist/widget/ui/src/components/Flags/Spanish.d.ts.map +1 -0
  21. package/dist/widget/ui/src/components/Flags/index.d.ts +7 -0
  22. package/dist/widget/ui/src/components/Flags/index.d.ts.map +1 -0
  23. package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +2 -2
  24. package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -1
  25. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts +2 -1
  26. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts.map +1 -1
  27. package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
  28. package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts.map +1 -1
  29. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
  30. package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +4 -4
  31. package/dist/widget/ui/src/components/Wallet/Content.d.ts +1 -1
  32. package/dist/widget/ui/src/components/Wallet/Content.d.ts.map +1 -1
  33. package/dist/widget/ui/src/components/index.d.ts +1 -0
  34. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  35. package/dist/widget/ui/src/containers/Warnings/HighSlippageWarning.d.ts.map +1 -1
  36. package/dist/widget/ui/src/containers/Warnings/MinRequiredSlippage.d.ts.map +1 -1
  37. package/package.json +6 -4
  38. package/src/components/Alert/Alert.styles.ts +2 -2
  39. package/src/components/BestRoute/BestRoute.tsx +1 -1
  40. package/src/components/BestRoute/BestRouteSkeleton.styles.ts +1 -1
  41. package/src/components/BottomLogo/BottomLogo.tsx +2 -2
  42. package/src/components/Button/Button.styles.tsx +6 -6
  43. package/src/components/Checkbox/Checkbox.styles.ts +1 -1
  44. package/src/components/Chip/Chip.tsx +1 -1
  45. package/src/components/Flags/English.tsx +35 -0
  46. package/src/components/Flags/Flags.constants.ts +1 -0
  47. package/src/components/Flags/Flags.types.ts +3 -0
  48. package/src/components/Flags/French.tsx +26 -0
  49. package/src/components/Flags/Japanese.tsx +25 -0
  50. package/src/components/Flags/Spanish.tsx +85 -0
  51. package/src/components/Flags/index.ts +8 -0
  52. package/src/components/I18nManager/I18nManager.tsx +18 -9
  53. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
  54. package/src/components/ListItem/ListItem.tsx +1 -1
  55. package/src/components/MessageBox/DefaultMessageBox.tsx +1 -1
  56. package/src/components/NotFound/NotFound.tsx +1 -1
  57. package/src/components/PriceImpact/PriceImpact.tsx +2 -2
  58. package/src/components/Radio/Radio.styles.tsx +1 -1
  59. package/src/components/RoutesOverview/RoutesOverview.tsx +1 -1
  60. package/src/components/StepDetail/StepDetail.tsx +7 -4
  61. package/src/components/StepDetails/StepDetails.tsx +3 -4
  62. package/src/components/SvgIcon/SvgIcon.style.ts +2 -6
  63. package/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx +4 -5
  64. package/src/components/SwapListItem/SwapListItem.tsx +1 -1
  65. package/src/components/SwapListItem/SwapToken.tsx +3 -3
  66. package/src/components/Switch/Switch.styles.tsx +2 -2
  67. package/src/components/TextField/TextField.styles.ts +1 -1
  68. package/src/components/TokenAmount/TokenAmount.tsx +2 -2
  69. package/src/components/TokenList/TokenItem.tsx +1 -1
  70. package/src/components/TokenPreview/TokenPreview.tsx +2 -2
  71. package/src/components/Wallet/Content.tsx +5 -3
  72. package/src/components/Wallet/SelectableWallet.tsx +1 -1
  73. package/src/components/Wallet/Wallet.helpers.ts +2 -2
  74. package/src/components/index.ts +1 -0
  75. package/src/containers/SwapHistory/SwapHistory.tsx +4 -4
  76. package/src/containers/SwapInput/SwapInput.tsx +3 -3
  77. package/src/containers/SwapInput/TokenSection.styles.ts +2 -2
  78. package/src/containers/SwapInput/TokenSection.tsx +1 -1
  79. package/src/containers/TokenInfo/TokenInfo.tsx +4 -4
  80. package/src/containers/Warnings/BalanceErrors.tsx +1 -1
  81. package/src/containers/Warnings/HighSlippageWarning.tsx +7 -10
  82. package/src/containers/Warnings/MinRequiredSlippage.tsx +7 -10
  83. package/src/theme.ts +8 -8
  84. package/dist/translations/jp.d.ts.map +0 -1
@@ -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>
@@ -52,8 +52,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
52
52
  size="small"
53
53
  variant="body">
54
54
  {i18n.t({
55
- id: 'swapperDescription',
56
- message: 'Swap on {fromChain} via {swapper}',
55
+ id: 'Swap on {fromChain} via {swapper}',
57
56
  values: {
58
57
  fromChain: step.from.chain.displayName,
59
58
  swapper: step.swapper.displayName,
@@ -74,7 +73,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
74
73
  ml={4}
75
74
  mr={4}
76
75
  size="small"
77
- color="$neutral900"
76
+ color="$neutral700"
78
77
  variant="body">{`${step.from.price.value} ${step.from.token.displayName}`}</Typography>
79
78
  <NextIcon color="gray" />
80
79
  <Divider size={4} direction="horizontal" />
@@ -86,7 +85,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
86
85
  <Typography
87
86
  ml={4}
88
87
  size="small"
89
- color="$neutral900"
88
+ color="$neutral700"
90
89
  variant="body">{`${isCompleted ? '' : '~'}${
91
90
  step.to.price.value
92
91
  } ${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
  },
@@ -36,11 +36,10 @@ export function SwapDetailsPlaceholder(props: PropTypes) {
36
36
  ) : (
37
37
  <Alert
38
38
  type="error"
39
- title={i18n.t(
40
- 'swapNotFound',
41
- { requestId },
42
- { message: 'Swap with request ID = ${requestId} not found.' }
43
- )}
39
+ title={i18n.t({
40
+ id: 'Swap with request ID = {requestId} not found.',
41
+ values: { requestId },
42
+ })}
44
43
  />
45
44
  )}
46
45
  </PlaceholderContainer>
@@ -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
  };
@@ -49,3 +49,4 @@ export * from './RouteCost';
49
49
  export * from './TokenAmount';
50
50
  export * from './StepDetails';
51
51
  export * from './Popover';
52
+ export * from './Flags';
@@ -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>
@@ -1,7 +1,8 @@
1
- import { Alert } from '../../components/Alert';
1
+ import { i18n } from '@lingui/core';
2
2
  import React from 'react';
3
+
4
+ import { Alert } from '../../components/Alert';
3
5
  import { ChangeSlippageButton } from '../../components/ChangeSlippageButton';
4
- import { i18n } from '@lingui/core';
5
6
 
6
7
  interface PropTypes {
7
8
  selectedSlippage: number;
@@ -18,14 +19,10 @@ export function HighSlippageWarning(props: PropTypes) {
18
19
  <Alert
19
20
  type="warning"
20
21
  footer={<ChangeSlippageButton onClick={changeSlippage} />}>
21
- {i18n.t(
22
- 'highSlippage',
23
- { selectedSlippage },
24
- {
25
- message:
26
- ' Caution, your slippage is high (={selectedSlippage}). Your trade may be front run.',
27
- }
28
- )}
22
+ {i18n.t({
23
+ id: ' Caution, your slippage is high (={selectedSlippage}). Your trade may be front run.',
24
+ values: { selectedSlippage },
25
+ })}
29
26
  </Alert>
30
27
  )}
31
28
  </>
@@ -1,6 +1,7 @@
1
- import React from 'react';
2
1
  import { i18n } from '@lingui/core';
3
- import { Divider, Typography, ChangeSlippageButton } from '../../components';
2
+ import React from 'react';
3
+
4
+ import { ChangeSlippageButton, Divider, Typography } from '../../components';
4
5
  import { styled } from '../../theme';
5
6
 
6
7
  interface PropTypes {
@@ -18,14 +19,10 @@ export function MinRequiredSlippage({
18
19
  }: PropTypes) {
19
20
  return (
20
21
  <StyledMessage variant="body" size="small">
21
- {i18n.t(
22
- 'increaseSlippage',
23
- { minRequiredSlippage },
24
- {
25
- message:
26
- 'We recommend you to increase slippage to at least {minRequiredSlippage} for this route.',
27
- }
28
- )}
22
+ {i18n.t({
23
+ id: 'We recommend you to increase slippage to at least {minRequiredSlippage} for this route.',
24
+ values: { minRequiredSlippage },
25
+ })}
29
26
  <Divider size={8} />
30
27
  <ChangeSlippageButton onClick={changeSlippage} />
31
28
  </StyledMessage>
package/src/theme.ts CHANGED
@@ -30,10 +30,10 @@ export const theme = {
30
30
  neutral300: '#F2F2F2',
31
31
  neutral400: '#EEEEEE',
32
32
  neutral500: '#E6E6E6',
33
- neutral600: '#1B1B1B',
34
- neutral700: '#121212',
35
- neutral800: '#A2A2A2',
36
- neutral900: '#727272',
33
+ neutral600: '#A2A2A2',
34
+ neutral700: '#727272',
35
+ neutral800: '#1B1B1B',
36
+ neutral900: '#121212',
37
37
 
38
38
  error100: '#FDF3F3',
39
39
  error300: '#FFD7D7',
@@ -185,10 +185,10 @@ export const darkColors = {
185
185
  secondary600: '#2B3462',
186
186
 
187
187
  neutral: '#222222',
188
- neutral900: '#E9E9E9',
189
- neutral800: '#B8B8B8',
190
- neutral700: '#F2F2F2',
191
- neutral600: '#EEEEEE',
188
+ neutral900: '#F2F2F2',
189
+ neutral800: '#EEEEEE',
190
+ neutral700: '#E9E9E9',
191
+ neutral600: '#B8B8B8',
192
192
  neutral500: '#222222',
193
193
  neutral400: '#1B1B1B',
194
194
  neutral300: '#121212',
@@ -1 +0,0 @@
1
- {"version":3,"file":"jp.d.ts","sourceRoot":"","sources":["../../../../translations/jp.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAkvV,CAAC"}