@rango-dev/widget-embedded 0.47.1-next.1 → 0.47.1-next.3
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/dist/components/CustomDestination/CustomDestination.styles.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.styles.d.ts +160 -0
- package/dist/components/SearchInput/SearchInput.styles.d.ts.map +1 -1
- package/dist/components/Slippage/Slippage.styles.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/pages/AddCustomTokenPage.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +11 -11
- package/src/components/CustomDestination/CustomDestination.styles.ts +3 -1
- package/src/components/SearchInput/SearchInput.styles.ts +12 -0
- package/src/components/SearchInput/SearchInput.tsx +24 -22
- package/src/components/Slippage/Slippage.styles.ts +1 -0
- package/src/pages/AddCustomTokenPage.tsx +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.47.1-next.
|
|
3
|
+
"version": "0.47.1-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
27
|
"@rango-dev/logging-core": "^0.11.0",
|
|
28
|
-
"@rango-dev/provider-all": "^0.50.1-next.
|
|
28
|
+
"@rango-dev/provider-all": "^0.50.1-next.1",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.32.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.49.1-next.
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.49.1-next.1",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.32.0",
|
|
32
|
-
"@rango-dev/signer-solana": "^0.43.0",
|
|
33
|
-
"@rango-dev/ui": "^0.50.1-next.
|
|
34
|
-
"@rango-dev/wallets-core": "^0.47.1-next.
|
|
35
|
-
"@rango-dev/wallets-react": "^0.34.1-next.
|
|
36
|
-
"@rango-dev/wallets-shared": "^0.48.1-next.
|
|
32
|
+
"@rango-dev/signer-solana": "^0.43.1-next.0",
|
|
33
|
+
"@rango-dev/ui": "^0.50.1-next.2",
|
|
34
|
+
"@rango-dev/wallets-core": "^0.47.1-next.1",
|
|
35
|
+
"@rango-dev/wallets-react": "^0.34.1-next.1",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.48.1-next.1",
|
|
37
37
|
"bignumber.js": "^9.1.1",
|
|
38
38
|
"copy-to-clipboard": "^3.3.3",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
40
40
|
"ethers": "^6.13.2",
|
|
41
41
|
"immer": "^9.0.19",
|
|
42
42
|
"mitt": "^3.0.0",
|
|
43
|
-
"rango-sdk": "^0.1.
|
|
44
|
-
"rango-types": "^0.1.
|
|
43
|
+
"rango-sdk": "^0.1.70",
|
|
44
|
+
"rango-types": "^0.1.89",
|
|
45
45
|
"react-i18next": "^12.2.0",
|
|
46
46
|
"react-router-dom": "^6.8.0",
|
|
47
47
|
"values.js": "2.1.1",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|
|
@@ -13,11 +13,13 @@ export const Container = styled('div', {
|
|
|
13
13
|
'& .collapsible_root': {
|
|
14
14
|
backgroundColor: '$neutral100',
|
|
15
15
|
},
|
|
16
|
+
'& input': {
|
|
17
|
+
padding: '$15',
|
|
18
|
+
},
|
|
16
19
|
});
|
|
17
20
|
|
|
18
21
|
export const StyledTextField = styled(TextField, {
|
|
19
22
|
backgroundColor: '$neutral100',
|
|
20
|
-
padding: '$15',
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
export const CustomDestinationButton = styled('div', {
|
|
@@ -7,3 +7,15 @@ export const IconWrapper = styled('div', {
|
|
|
7
7
|
alignItems: 'center',
|
|
8
8
|
justifyContent: 'center',
|
|
9
9
|
});
|
|
10
|
+
|
|
11
|
+
export const SearchInputContainer = styled('div', {
|
|
12
|
+
width: '100%',
|
|
13
|
+
'& ._text-field': {
|
|
14
|
+
paddingLeft: '$10',
|
|
15
|
+
'& input': {
|
|
16
|
+
paddingLeft: '$2',
|
|
17
|
+
paddingTop: '$12',
|
|
18
|
+
paddingBottom: '$12',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -3,7 +3,7 @@ import type { PropTypes } from './SearchInput.types';
|
|
|
3
3
|
import { CloseIcon, IconButton, SearchIcon, TextField } from '@rango-dev/ui';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
import { IconWrapper } from './SearchInput.styles';
|
|
6
|
+
import { IconWrapper, SearchInputContainer } from './SearchInput.styles';
|
|
7
7
|
|
|
8
8
|
export function SearchInput(props: PropTypes) {
|
|
9
9
|
const {
|
|
@@ -35,26 +35,28 @@ export function SearchInput(props: PropTypes) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
<SearchInputContainer>
|
|
39
|
+
<TextField
|
|
40
|
+
prefix={
|
|
41
|
+
<IconWrapper>
|
|
42
|
+
<SearchIcon color="black" />
|
|
43
|
+
</IconWrapper>
|
|
44
|
+
}
|
|
45
|
+
id={id}
|
|
46
|
+
suffix={inputSuffix}
|
|
47
|
+
fullWidth={fullWidth}
|
|
48
|
+
color={color}
|
|
49
|
+
variant={variant}
|
|
50
|
+
style={{
|
|
51
|
+
borderRadius: 25,
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
...style,
|
|
54
|
+
}}
|
|
55
|
+
size={size}
|
|
56
|
+
value={value}
|
|
57
|
+
onChange={onChange}
|
|
58
|
+
{...inputAttributes}
|
|
59
|
+
/>
|
|
60
|
+
</SearchInputContainer>
|
|
59
61
|
);
|
|
60
62
|
}
|
|
@@ -28,8 +28,11 @@ const Content = styled('div', {
|
|
|
28
28
|
flexDirection: 'column',
|
|
29
29
|
flex: 1,
|
|
30
30
|
'& ._text-field': {
|
|
31
|
-
padding: '$4 $
|
|
31
|
+
padding: '$4 $12',
|
|
32
32
|
backgroundColor: '$neutral300',
|
|
33
|
+
'& input': {
|
|
34
|
+
padding: '0',
|
|
35
|
+
},
|
|
33
36
|
[`.${darkTheme} &`]: {
|
|
34
37
|
backgroundColor: '$neutral400',
|
|
35
38
|
},
|