@rango-dev/widget-embedded 0.27.2 → 0.27.3-next.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.
- package/CHANGELOG.md +9 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -1
- package/dist/components/Quote/Quote.styles.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +7 -7
- package/src/components/Quote/Quote.styles.ts +19 -1
- package/src/components/Quote/Quote.tsx +12 -2
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.3-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
|
-
"@rango-dev/logging-core": "^0.2.
|
|
28
|
-
"@rango-dev/provider-all": "^0.32.
|
|
27
|
+
"@rango-dev/logging-core": "^0.2.1-next.1",
|
|
28
|
+
"@rango-dev/provider-all": "^0.32.2-next.0",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.26.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.32.0",
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.32.1-next.0",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.26.0",
|
|
32
|
-
"@rango-dev/ui": "^0.33.0",
|
|
33
|
-
"@rango-dev/wallets-react": "^0.18.0",
|
|
34
|
-
"@rango-dev/wallets-shared": "^0.32.0",
|
|
32
|
+
"@rango-dev/ui": "^0.33.1-next.0",
|
|
33
|
+
"@rango-dev/wallets-react": "^0.18.1-next.0",
|
|
34
|
+
"@rango-dev/wallets-shared": "^0.32.1-next.0",
|
|
35
35
|
"bignumber.js": "^9.1.1",
|
|
36
36
|
"copy-to-clipboard": "^3.3.3",
|
|
37
37
|
"dayjs": "^1.11.7",
|
|
@@ -63,7 +63,25 @@ export const stepsDetailsStyles = css({
|
|
|
63
63
|
});
|
|
64
64
|
export const AllRoutesButton = styled(Button, {
|
|
65
65
|
backgroundColor: 'transparent',
|
|
66
|
-
border: '1px solid $
|
|
66
|
+
border: '1px solid $secondary600',
|
|
67
|
+
[`.${darkTheme} &`]: {
|
|
68
|
+
border: '1px solid $secondary',
|
|
69
|
+
},
|
|
70
|
+
transition: 'background-color 0.3s ease',
|
|
71
|
+
'&:hover': {
|
|
72
|
+
backgroundColor: '$secondary600',
|
|
73
|
+
[`.${darkTheme} &`]: {
|
|
74
|
+
backgroundColor: '$secondary',
|
|
75
|
+
},
|
|
76
|
+
'.allRoutesLabel': {
|
|
77
|
+
$$color: '$colors$background',
|
|
78
|
+
[`.${darkTheme} &`]: {
|
|
79
|
+
$$color: '$colors$foreground',
|
|
80
|
+
},
|
|
81
|
+
color: '$$color',
|
|
82
|
+
transition: 'color 0.3s ease',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
67
85
|
});
|
|
68
86
|
export const SummaryContainer = styled('div', {
|
|
69
87
|
borderRadius: '$xm',
|
|
@@ -381,8 +381,18 @@ export function Quote(props: QuoteProps) {
|
|
|
381
381
|
}}
|
|
382
382
|
size="xxsmall"
|
|
383
383
|
type="secondary"
|
|
384
|
-
variant="default"
|
|
385
|
-
|
|
384
|
+
variant="default"
|
|
385
|
+
css={{
|
|
386
|
+
paddingLeft: '$10',
|
|
387
|
+
paddingRight: '$10',
|
|
388
|
+
paddingTop: '$5',
|
|
389
|
+
paddingBottom: '$5',
|
|
390
|
+
}}>
|
|
391
|
+
<Typography
|
|
392
|
+
color="secondary"
|
|
393
|
+
variant="body"
|
|
394
|
+
size="xsmall"
|
|
395
|
+
className="allRoutesLabel">
|
|
386
396
|
{i18n.t('See All Routes')}
|
|
387
397
|
</Typography>
|
|
388
398
|
</AllRoutesButton>
|
|
@@ -271,7 +271,7 @@ describe('usePrepareBlockchainList', () => {
|
|
|
271
271
|
]);
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
it
|
|
274
|
+
it('Last item of the main list should be moved to front if it selected again.', () => {
|
|
275
275
|
const listLimit = 10;
|
|
276
276
|
const preferredBlockchains = ['AVAX_CCHAIN', 'BTC'];
|
|
277
277
|
const expected = [
|