@rango-dev/widget-embedded 0.47.1-next.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.47.1-next.2",
3
+ "version": "0.47.1-next.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "@rango-dev/queue-manager-rango-preset": "^0.49.1-next.1",
31
31
  "@rango-dev/queue-manager-react": "^0.32.0",
32
32
  "@rango-dev/signer-solana": "^0.43.1-next.0",
33
- "@rango-dev/ui": "^0.50.1-next.1",
33
+ "@rango-dev/ui": "^0.50.1-next.2",
34
34
  "@rango-dev/wallets-core": "^0.47.1-next.1",
35
35
  "@rango-dev/wallets-react": "^0.34.1-next.1",
36
36
  "@rango-dev/wallets-shared": "^0.48.1-next.1",
@@ -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
- <TextField
39
- prefix={
40
- <IconWrapper>
41
- <SearchIcon color="black" />
42
- </IconWrapper>
43
- }
44
- id={id}
45
- suffix={inputSuffix}
46
- fullWidth={fullWidth}
47
- color={color}
48
- variant={variant}
49
- style={{
50
- borderRadius: 25,
51
- alignItems: 'center',
52
- ...style,
53
- }}
54
- size={size}
55
- value={value}
56
- onChange={onChange}
57
- {...inputAttributes}
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
  }
@@ -13,6 +13,7 @@ export const SlippageChipsContainer = styled('div', {
13
13
  flex: '1 1 0',
14
14
  maxWidth: '127px',
15
15
  minWidth: '85px',
16
+ paddingLeft: '$2',
16
17
  },
17
18
  });
18
19
 
@@ -28,8 +28,11 @@ const Content = styled('div', {
28
28
  flexDirection: 'column',
29
29
  flex: 1,
30
30
  '& ._text-field': {
31
- padding: '$4 $10',
31
+ padding: '$4 $12',
32
32
  backgroundColor: '$neutral300',
33
+ '& input': {
34
+ padding: '0',
35
+ },
33
36
  [`.${darkTheme} &`]: {
34
37
  backgroundColor: '$neutral400',
35
38
  },