@rango-dev/widget-embedded 0.17.1-next.10 → 0.17.1-next.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,UAAU,QAAS,MAAM,OAAO,MAAM,WAyBlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,SAAS,MAAM;;CAkC9D,CAAC;AACF,eAAO,MAAM,cAAc;;wBAEJ,OAAO,WACnB,YAAY;;CAyCtB,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,UAAU,QAAS,MAAM,OAAO,MAAM,WAyBlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,SAAS,MAAM;;CAmC9D,CAAC;AACF,eAAO,MAAM,cAAc;;wBAEJ,OAAO,WACnB,YAAY;;CAyCtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.17.1-next.10",
3
+ "version": "0.17.1-next.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@rango-dev/queue-manager-core": "^0.22.1-next.0",
24
24
  "@rango-dev/queue-manager-rango-preset": "^0.22.1-next.5",
25
25
  "@rango-dev/queue-manager-react": "^0.22.1-next.0",
26
- "@rango-dev/ui": "^0.22.1-next.6",
26
+ "@rango-dev/ui": "^0.22.1-next.7",
27
27
  "@rango-dev/wallets-react": "^0.8.1-next.3",
28
28
  "@rango-dev/wallets-shared": "^0.21.1-next.3",
29
29
  "bignumber.js": "^9.1.1",
@@ -112,6 +112,13 @@ export const SummaryContainer = styled('div', {
112
112
  paddingTop: '$10',
113
113
  display: 'flex',
114
114
  alignItems: 'center',
115
+ '.usd-value': {
116
+ $$color: '$colors$neutral600',
117
+ [`.${darkTheme} &`]: {
118
+ $$color: '$colors$neutral700',
119
+ },
120
+ color: '$$color',
121
+ },
115
122
  },
116
123
  });
117
124
 
@@ -10,7 +10,7 @@ export function QuoteErrorsModalItem(props: ModalContentData) {
10
10
 
11
11
  return (
12
12
  <Item>
13
- <Typography size="medium" variant="label" color="neutral600">
13
+ <Typography size="medium" variant="label" className="_title">
14
14
  {title}
15
15
  </Typography>
16
16
  <Typography
@@ -1,4 +1,4 @@
1
- import { styled } from '@rango-dev/ui';
1
+ import { darkTheme, styled } from '@rango-dev/ui';
2
2
 
3
3
  export const Alerts = styled('div', {
4
4
  width: '100%',
@@ -19,6 +19,13 @@ export const Item = styled('div', {
19
19
  justifyContent: 'space-between',
20
20
  alignItems: 'center',
21
21
  width: '100%',
22
+ '._title': {
23
+ $$color: '$colors$neutral600',
24
+ [`.${darkTheme} &`]: {
25
+ $$color: '$colors$neutral700',
26
+ },
27
+ color: '$$color',
28
+ },
22
29
  });
23
30
 
24
31
  export const Action = styled('div', {
@@ -1,9 +1,16 @@
1
- import { styled } from '@rango-dev/ui';
1
+ import { darkTheme, styled } from '@rango-dev/ui';
2
2
 
3
3
  export const Group = styled('div', {
4
4
  width: '100%',
5
5
  display: 'flex',
6
6
  flexDirection: 'column',
7
+ '.group-title': {
8
+ $$color: '$colors$neutral600',
9
+ [`.${darkTheme} &`]: {
10
+ $$color: '$colors$neutral700',
11
+ },
12
+ color: '$$color',
13
+ },
7
14
  });
8
15
 
9
16
  export const Time = styled('div', {
@@ -34,7 +34,6 @@ export function SwapsGroup(props: PropTypes) {
34
34
  <Typography
35
35
  variant="label"
36
36
  size="medium"
37
- color="neutral600"
38
37
  className="group-title">
39
38
  {i18n.t(group.title)}
40
39
  </Typography>
@@ -68,7 +67,6 @@ export function SwapsGroup(props: PropTypes) {
68
67
  <Typography
69
68
  variant="label"
70
69
  size="medium"
71
- color="neutral600"
72
70
  className="group-title">
73
71
  {i18n.t(group.title)}
74
72
  </Typography>
@@ -1,4 +1,4 @@
1
- import { styled, Typography } from '@rango-dev/ui';
1
+ import { darkTheme, styled, Typography } from '@rango-dev/ui';
2
2
 
3
3
  export const Container = styled('div', {
4
4
  display: 'flex',
@@ -40,7 +40,11 @@ export const List = styled('ul', {
40
40
  '& a': {
41
41
  fontSize: '$12',
42
42
  lineHeight: '$16',
43
- color: '$neutral600',
43
+ $$color: '$colors$neutral600',
44
+ [`.${darkTheme} &`]: {
45
+ $$color: '$colors$neutral700',
46
+ },
47
+ color: '$$color',
44
48
  textDecoration: 'none',
45
49
  },
46
50
  },
@@ -92,6 +96,14 @@ export const TagTitle = styled(Typography, {});
92
96
 
93
97
  export const BalanceContainer = styled('div', {
94
98
  textAlign: 'right',
99
+
100
+ '.usd-value': {
101
+ $$color: '$colors$neutral600',
102
+ [`.${darkTheme} &`]: {
103
+ $$color: '$colors$neutral700',
104
+ },
105
+ color: '$$color',
106
+ },
95
107
  });
96
108
 
97
109
  export const End = styled('ul', {
@@ -238,7 +238,7 @@ export function TokenList(props: PropTypes) {
238
238
  {token.balance?.usdValue && (
239
239
  <Typography
240
240
  variant="body"
241
- color="neutral600"
241
+ className="usd-value"
242
242
  size="xsmall">
243
243
  {`$${token.balance?.usdValue}`}
244
244
  </Typography>
package/src/index.ts CHANGED
@@ -43,6 +43,7 @@ import { WidgetWallets } from './containers/Wallets';
43
43
  import { Widget } from './containers/Widget';
44
44
  import { useWidget } from './containers/WidgetInfo';
45
45
  import { WidgetProvider } from './containers/WidgetProvider';
46
+ import { customizedThemeTokens } from './utils/ui';
46
47
 
47
48
  export type {
48
49
  WidgetConfig,
@@ -80,6 +81,7 @@ export {
80
81
  useWidget,
81
82
  useWallets,
82
83
  useWidgetEvents,
84
+ customizedThemeTokens,
83
85
  MainEvents,
84
86
  RouteEventType,
85
87
  StepEventType,
@@ -31,7 +31,7 @@ export const generateRangeColors = (name: string, color: string) => {
31
31
  const NUMBER_OF_COLORS = 10;
32
32
  const HALF_NUMBER_OF_COLORS = 5;
33
33
  const COLOR_SUFFIX = 100;
34
- const AMT = 32;
34
+ const AMT = 25;
35
35
 
36
36
  let colors = { [name]: color };
37
37
  for (let i = 1; i < NUMBER_OF_COLORS; i++) {
@@ -60,6 +60,7 @@ export const generateRangeColors = (name: string, color: string) => {
60
60
  };
61
61
  }
62
62
  }
63
+
63
64
  return colors;
64
65
  };
65
66
  export const generateColors = (