@rango-dev/ui 0.17.1-next.1 → 0.17.1-next.10

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 (185) hide show
  1. package/dist/index.js +6 -6
  2. package/dist/index.js.map +4 -4
  3. package/dist/translations/es.d.ts.map +1 -1
  4. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +12 -0
  5. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
  6. package/dist/widget/ui/src/components/BestRoute/BestRoute.styles.d.ts +36 -0
  7. package/dist/widget/ui/src/components/BestRoute/BestRoute.styles.d.ts.map +1 -1
  8. package/dist/widget/ui/src/components/BestRoute/BestRouteSkeleton.styles.d.ts +8 -0
  9. package/dist/widget/ui/src/components/BestRoute/BestRouteSkeleton.styles.d.ts.map +1 -1
  10. package/dist/widget/ui/src/components/BestRoute/RouteSummary.styles.d.ts +4 -0
  11. package/dist/widget/ui/src/components/BestRoute/RouteSummary.styles.d.ts.map +1 -1
  12. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts +4 -0
  13. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -1
  14. package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts +8 -0
  15. package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts.map +1 -1
  16. package/dist/widget/ui/src/components/Button/Button.styles.d.ts +12 -0
  17. package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
  18. package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +8 -0
  19. package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts.map +1 -1
  20. package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts +16 -0
  21. package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
  22. package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts +4 -0
  23. package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts.map +1 -1
  24. package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts +4 -0
  25. package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts.map +1 -1
  26. package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts +20 -0
  27. package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts.map +1 -1
  28. package/dist/widget/ui/src/components/Flags/English.d.ts +4 -0
  29. package/dist/widget/ui/src/components/Flags/English.d.ts.map +1 -0
  30. package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts +2 -0
  31. package/dist/widget/ui/src/components/Flags/Flags.constants.d.ts.map +1 -0
  32. package/dist/widget/ui/src/components/Flags/Flags.types.d.ts +4 -0
  33. package/dist/widget/ui/src/components/Flags/Flags.types.d.ts.map +1 -0
  34. package/dist/widget/ui/src/components/Flags/French.d.ts +4 -0
  35. package/dist/widget/ui/src/components/Flags/French.d.ts.map +1 -0
  36. package/dist/widget/ui/src/components/Flags/Japanese.d.ts +4 -0
  37. package/dist/widget/ui/src/components/Flags/Japanese.d.ts.map +1 -0
  38. package/dist/widget/ui/src/components/Flags/Spanish.d.ts +4 -0
  39. package/dist/widget/ui/src/components/Flags/Spanish.d.ts.map +1 -0
  40. package/dist/widget/ui/src/components/Flags/index.d.ts +7 -0
  41. package/dist/widget/ui/src/components/Flags/index.d.ts.map +1 -0
  42. package/dist/widget/ui/src/components/Header/Header.styles.d.ts +8 -0
  43. package/dist/widget/ui/src/components/Header/Header.styles.d.ts.map +1 -1
  44. package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +1 -1
  45. package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -1
  46. package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts +4 -0
  47. package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts.map +1 -1
  48. package/dist/widget/ui/src/components/Icon/common.d.ts +8 -0
  49. package/dist/widget/ui/src/components/Icon/common.d.ts.map +1 -1
  50. package/dist/widget/ui/src/components/List/List.styles.d.ts +4 -0
  51. package/dist/widget/ui/src/components/List/List.styles.d.ts.map +1 -1
  52. package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts +4 -0
  53. package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
  54. package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts +4 -0
  55. package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts.map +1 -1
  56. package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts +4 -0
  57. package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts.map +1 -1
  58. package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts +12 -0
  59. package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts.map +1 -1
  60. package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts +24 -0
  61. package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts.map +1 -1
  62. package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts +4 -0
  63. package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts.map +1 -1
  64. package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts +8 -0
  65. package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts.map +1 -1
  66. package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts +4 -0
  67. package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
  68. package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts +8 -0
  69. package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts.map +1 -1
  70. package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts +16 -0
  71. package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
  72. package/dist/widget/ui/src/components/RouteCost/RouteCost.styles.d.ts +4 -0
  73. package/dist/widget/ui/src/components/RouteCost/RouteCost.styles.d.ts.map +1 -1
  74. package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts +4 -0
  75. package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +1 -1
  76. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +12 -0
  77. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +1 -1
  78. package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts +4 -0
  79. package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts.map +1 -1
  80. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts +2 -1
  81. package/dist/widget/ui/src/components/StepDetail/StepDetail.d.ts.map +1 -1
  82. package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +20 -0
  83. package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
  84. package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts +4 -0
  85. package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts.map +1 -1
  86. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts +4 -0
  87. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
  88. package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts +24 -0
  89. package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts.map +1 -1
  90. package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts +36 -0
  91. package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts.map +1 -1
  92. package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts +8 -0
  93. package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
  94. package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts +12 -0
  95. package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
  96. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +12 -0
  97. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
  98. package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +8 -4
  99. package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts.map +1 -1
  100. package/dist/widget/ui/src/components/Wallet/Content.d.ts +1 -1
  101. package/dist/widget/ui/src/components/Wallet/Content.d.ts.map +1 -1
  102. package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts +20 -0
  103. package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts.map +1 -1
  104. package/dist/widget/ui/src/components/common/FilledCircle.d.ts +4 -0
  105. package/dist/widget/ui/src/components/common/FilledCircle.d.ts.map +1 -1
  106. package/dist/widget/ui/src/components/common/styles.d.ts +4 -0
  107. package/dist/widget/ui/src/components/common/styles.d.ts.map +1 -1
  108. package/dist/widget/ui/src/components/index.d.ts +1 -1
  109. package/dist/widget/ui/src/components/index.d.ts.map +1 -1
  110. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts +40 -0
  111. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -1
  112. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +12 -0
  113. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
  114. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +8 -0
  115. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
  116. package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts +4 -0
  117. package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -1
  118. package/dist/widget/ui/src/icons/Colors.d.ts +5 -0
  119. package/dist/widget/ui/src/icons/Colors.d.ts.map +1 -0
  120. package/dist/widget/ui/src/icons/CustomColors.d.ts +5 -0
  121. package/dist/widget/ui/src/icons/CustomColors.d.ts.map +1 -0
  122. package/dist/widget/ui/src/icons/Style.d.ts.map +1 -1
  123. package/dist/widget/ui/src/icons/index.d.ts +2 -0
  124. package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
  125. package/dist/widget/ui/src/theme.d.ts +62 -0
  126. package/dist/widget/ui/src/theme.d.ts.map +1 -1
  127. package/package.json +6 -6
  128. package/src/components/Alert/Alert.styles.ts +2 -2
  129. package/src/components/BestRoute/BestRoute.styles.ts +1 -0
  130. package/src/components/BestRoute/BestRoute.tsx +1 -1
  131. package/src/components/BestRoute/BestRouteSkeleton.styles.ts +1 -1
  132. package/src/components/BottomLogo/BottomLogo.tsx +2 -2
  133. package/src/components/Button/Button.styles.tsx +6 -6
  134. package/src/components/Checkbox/Checkbox.styles.ts +1 -1
  135. package/src/components/Chip/Chip.tsx +1 -1
  136. package/src/components/Flags/English.tsx +35 -0
  137. package/src/components/Flags/Flags.constants.ts +1 -0
  138. package/src/components/Flags/Flags.types.ts +3 -0
  139. package/src/components/Flags/French.tsx +26 -0
  140. package/src/components/Flags/Japanese.tsx +25 -0
  141. package/src/components/Flags/Spanish.tsx +85 -0
  142. package/src/components/Flags/index.ts +8 -0
  143. package/src/components/I18nManager/I18nManager.tsx +16 -7
  144. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
  145. package/src/components/ListItem/ListItem.tsx +1 -1
  146. package/src/components/MessageBox/DefaultMessageBox.tsx +1 -1
  147. package/src/components/NotFound/NotFound.tsx +1 -1
  148. package/src/components/PriceImpact/PriceImpact.tsx +2 -2
  149. package/src/components/Radio/Radio.styles.tsx +1 -1
  150. package/src/components/RoutesOverview/RoutesOverview.tsx +1 -1
  151. package/src/components/StepDetail/StepDetail.tsx +7 -4
  152. package/src/components/StepDetails/StepDetails.tsx +2 -2
  153. package/src/components/SvgIcon/SvgIcon.style.ts +2 -6
  154. package/src/components/SwapListItem/SwapListItem.tsx +1 -1
  155. package/src/components/SwapListItem/SwapToken.tsx +3 -3
  156. package/src/components/Switch/Switch.styles.tsx +2 -2
  157. package/src/components/TextField/TextField.styles.ts +2 -2
  158. package/src/components/TokenAmount/TokenAmount.tsx +2 -2
  159. package/src/components/TokenList/TokenItem.tsx +1 -1
  160. package/src/components/TokenPreview/TokenPreview.tsx +2 -2
  161. package/src/components/Wallet/Content.tsx +5 -3
  162. package/src/components/Wallet/SelectableWallet.tsx +1 -1
  163. package/src/components/Wallet/Wallet.helpers.ts +2 -2
  164. package/src/components/index.ts +1 -1
  165. package/src/containers/SwapHistory/SwapHistory.tsx +4 -4
  166. package/src/containers/SwapInput/SwapInput.tsx +3 -3
  167. package/src/containers/SwapInput/TokenSection.styles.ts +2 -2
  168. package/src/containers/SwapInput/TokenSection.tsx +1 -1
  169. package/src/containers/TokenInfo/TokenInfo.tsx +4 -4
  170. package/src/containers/Warnings/BalanceErrors.tsx +1 -1
  171. package/src/icons/Colors.tsx +33 -0
  172. package/src/icons/CustomColors.tsx +21 -0
  173. package/src/icons/LogoWithText.tsx +16 -16
  174. package/src/icons/Style.tsx +29 -25
  175. package/src/icons/index.ts +2 -0
  176. package/src/theme.ts +36 -28
  177. package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts +0 -10
  178. package/dist/widget/ui/src/components/ColorPicker/ColorPicker.d.ts.map +0 -1
  179. package/dist/widget/ui/src/components/ColorPicker/ColorPicker.stories.d.ts +0 -6
  180. package/dist/widget/ui/src/components/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  181. package/dist/widget/ui/src/components/ColorPicker/index.d.ts +0 -2
  182. package/dist/widget/ui/src/components/ColorPicker/index.d.ts.map +0 -1
  183. package/src/components/ColorPicker/ColorPicker.stories.tsx +0 -46
  184. package/src/components/ColorPicker/ColorPicker.tsx +0 -107
  185. package/src/components/ColorPicker/index.ts +0 -1
@@ -2,7 +2,7 @@ import type { PropsWithChildren } from 'react';
2
2
 
3
3
  import { i18n } from '@lingui/core';
4
4
  import { I18nProvider } from '@lingui/react';
5
- import React, { useEffect } from 'react';
5
+ import React, { useEffect, useReducer } from 'react';
6
6
 
7
7
  /*
8
8
  *Note: esbuild doesn't work properly with paths yet, so I couldn't use `paths` to make this path shorter.
@@ -16,7 +16,6 @@ import { messages as esMessages } from '../../../../../translations/es';
16
16
  import { messages as frMessages } from '../../../../../translations/fr';
17
17
  import { messages as jpMessages } from '../../../../../translations/jp';
18
18
 
19
- const DEFAULT_LANGUAGE = 'en';
20
19
  const messages = {
21
20
  en: enMessages,
22
21
  es: esMessages,
@@ -28,15 +27,25 @@ i18n.load(messages);
28
27
 
29
28
  export type Language = keyof typeof messages;
30
29
  interface PropTypes {
31
- language?: Language;
30
+ language: Language;
32
31
  }
33
32
 
34
33
  function I18nManager(props: PropsWithChildren<PropTypes>) {
34
+ const [count, forceUpdate] = useReducer((x) => x + 1, 0);
35
35
  useEffect(() => {
36
- i18n.activate(props?.language || DEFAULT_LANGUAGE);
37
- }, [props?.language]);
38
-
39
- return <I18nProvider i18n={i18n}>{props.children}</I18nProvider>;
36
+ i18n.on('change', () => {
37
+ forceUpdate();
38
+ });
39
+ }, [i18n]);
40
+ useEffect(() => {
41
+ i18n.activate(props.language);
42
+ }, [props.language]);
43
+
44
+ return (
45
+ <I18nProvider i18n={i18n} key={count}>
46
+ {props.children}
47
+ </I18nProvider>
48
+ );
40
49
  }
41
50
 
42
51
  export { I18nManager };
@@ -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,9 +111,9 @@ export const Input = styled('input', {
111
111
  },
112
112
 
113
113
  '&::placeholder, &::-webkit-input-placeholder': {
114
- color: '$neutral900',
114
+ color: '$neutral700',
115
115
  },
116
- '&:focus-within': {
116
+ '&:focus-visible': {
117
117
  outline: 'none',
118
118
  },
119
119
  });
@@ -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
  };
@@ -10,7 +10,6 @@ export * from './ChangeSlippageButton';
10
10
  export * from './Checkbox';
11
11
  export * from './Chip';
12
12
  export * from './common';
13
- export * from './ColorPicker';
14
13
  export * from './Divider';
15
14
  export * from './Drawer';
16
15
  export * from './Header';
@@ -50,3 +49,4 @@ export * from './RouteCost';
50
49
  export * from './TokenAmount';
51
50
  export * from './StepDetails';
52
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>
@@ -0,0 +1,33 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgColors(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
12
+ <path
13
+ fillRule="evenodd"
14
+ clipRule="evenodd"
15
+ d="M5.49068 9.35508C5.80086 9.27081 6.12485 9.43296 6.24334 9.73176C6.95508 11.5267 8.48265 12.9097 10.3699 13.4254L10.3738 13.4264C10.8831 13.569 11.428 13.6418 11.9996 13.6418C12.5713 13.6418 13.1162 13.569 13.6255 13.4264C13.9367 13.3393 14.2635 13.5012 14.3828 13.8015C14.7188 14.6478 14.9048 15.5795 14.9048 16.5471C14.9048 18.7443 13.949 20.7327 12.421 22.0881C11.1043 23.2795 9.36406 24 7.45241 24C3.34076 24 0 20.659 0 16.5471C0 13.1174 2.33477 10.2125 5.49068 9.35508ZM5.30898 10.7382C2.95349 11.6086 1.26312 13.8904 1.26312 16.5471C1.26312 19.9614 4.03839 22.7368 7.45241 22.7368C9.04089 22.7368 10.4827 22.1394 11.5757 21.1495L11.5807 21.1449C12.8479 20.0219 13.6417 18.3733 13.6417 16.5471C13.6417 15.9326 13.5516 15.3369 13.3856 14.7783C12.9358 14.8631 12.4723 14.9049 11.9996 14.9049C11.3215 14.9049 10.6621 14.8187 10.0351 14.6433C7.95605 14.0747 6.24187 12.6339 5.30898 10.7382Z"
16
+ fill="currentColor"
17
+ />
18
+ <path
19
+ fillRule="evenodd"
20
+ clipRule="evenodd"
21
+ d="M11.9991 1.26318C8.58512 1.26318 5.80986 4.0386 5.80986 7.45288C5.80986 8.25876 5.96545 9.03186 6.24334 9.73176C6.95508 11.5267 8.48265 12.9097 10.3699 13.4254L10.3738 13.4264C10.8831 13.569 11.428 13.6418 11.9996 13.6418C12.5713 13.6418 13.1162 13.569 13.6255 13.4264L13.6288 13.4261C15.5161 12.9105 17.0437 11.5275 17.7555 9.73257C18.0333 9.03266 18.1884 8.25876 18.1884 7.45288C18.1884 4.0386 15.4132 1.26318 11.9991 1.26318ZM4.54674 7.45288C4.54674 3.34099 7.8875 0 11.9991 0C16.1108 0 19.4516 3.34099 19.4516 7.45288C19.4516 8.42052 19.2655 9.3522 18.9295 10.1985C18.0727 12.3591 16.2361 14.0226 13.9637 14.6441C13.3367 14.8195 12.6778 14.9049 11.9996 14.9049C11.3215 14.9049 10.6621 14.8187 10.0351 14.6433C7.76264 14.0218 5.92563 12.3591 5.06877 10.1985M4.54674 7.45288C4.54674 8.42043 4.73285 9.35227 5.06877 10.1985L4.54674 7.45288Z"
22
+ fill="currentColor"
23
+ />
24
+ <path
25
+ fillRule="evenodd"
26
+ clipRule="evenodd"
27
+ d="M17.7567 9.73176C17.8751 9.43296 18.1991 9.27081 18.5093 9.35508C21.6652 10.2125 24 13.1174 24 16.5471C24 20.659 20.6592 24 16.5476 24C14.6347 24 12.8934 23.2786 11.5764 22.0857C11.4433 21.9652 11.3678 21.7937 11.3688 21.6142C11.3698 21.4347 11.4464 21.264 11.5807 21.1449C12.8479 20.0219 13.6417 18.3733 13.6417 16.5471C13.6417 15.7412 13.4874 14.9676 13.2095 14.2677C13.1432 14.1007 13.1512 13.9133 13.2315 13.7525C13.3117 13.5917 13.4567 13.4727 13.6301 13.4254C15.5173 12.9097 17.0449 11.5267 17.7567 9.73176ZM18.691 10.7382C17.8554 12.4363 16.3929 13.7693 14.6027 14.4375C14.7994 15.106 14.9048 15.8163 14.9048 16.5471C14.9048 18.4806 14.1654 20.2523 12.9466 21.5733C13.9594 22.3074 15.2008 22.7368 16.5476 22.7368C19.9616 22.7368 22.7369 19.9614 22.7369 16.5471C22.7369 13.8904 21.0465 11.6086 18.691 10.7382Z"
28
+ fill="currentColor"
29
+ />
30
+ </svg>
31
+ );
32
+ }
33
+ export default SvgColors;
@@ -0,0 +1,21 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgCustomColors(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
12
+ <path
13
+ fillRule="evenodd"
14
+ clipRule="evenodd"
15
+ d="M17.3172 1.14659C18.8459 -0.382197 21.3246 -0.382197 22.8534 1.14659C24.3822 2.67538 24.3822 5.15404 22.8534 6.68283L21.9458 7.59042C21.4696 8.06664 21.4696 8.83873 21.9458 9.31494C22.9734 10.3425 22.9734 12.0084 21.9458 13.036C20.9183 14.0635 19.2523 14.0635 18.2248 13.036L10.964 5.77524C9.93643 4.7477 9.93643 3.08172 10.964 2.05419C11.9915 1.02665 13.6575 1.02665 14.685 2.05419C15.1612 2.5304 15.9333 2.5304 16.4096 2.05419L17.3172 1.14659ZM21.8551 2.14486C20.8777 1.16739 19.2929 1.16739 18.3154 2.14486L17.4078 3.05245C16.3803 4.07999 14.7143 4.07999 13.6868 3.05245C13.2105 2.57624 12.4384 2.57624 11.9622 3.05245C11.486 3.52866 11.486 4.30076 11.9622 4.77697L19.223 12.0377C19.6992 12.5139 20.4713 12.5139 20.9475 12.0377C21.4238 11.5615 21.4238 10.7894 20.9475 10.3132C19.92 9.28567 19.92 7.6197 20.9475 6.59216L21.8551 5.68456C22.8326 4.7071 22.8326 3.12232 21.8551 2.14486ZM11.4177 9.85952C11.1922 9.63393 10.8264 9.63393 10.6008 9.85951L3.49641 16.9639C2.33926 18.121 1.62441 19.6473 1.47625 21.277L1.41434 21.9581C1.38168 22.3173 1.68265 22.6183 2.04192 22.5857L2.72301 22.5237C4.35276 22.3756 5.87898 21.6607 7.03613 20.5036L14.1405 13.3992C14.3661 13.1736 14.3661 12.8079 14.1405 12.5823L11.4177 9.85952ZM9.60255 8.86125C10.3795 8.08433 11.6391 8.08434 12.416 8.86125L15.1388 11.584C15.9157 12.3609 15.9157 13.6206 15.1388 14.3975L8.0344 21.5019C6.64371 22.8925 4.80947 23.7517 2.85082 23.9297L2.16973 23.9916C0.932446 24.1041 -0.104108 23.0676 0.00837295 21.8303L0.0702906 21.1492C0.24835 19.1905 1.10746 17.3563 2.49815 15.9656L9.60255 8.86125Z"
16
+ fill="currentColor"
17
+ />
18
+ </svg>
19
+ );
20
+ }
21
+ export default SvgCustomColors;