File tree Expand file tree Collapse file tree 1 file changed +3
-30
lines changed Expand file tree Collapse file tree 1 file changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ import {
21
21
useMemo ,
22
22
} from "react" ;
23
23
24
- const SIDE_PADDING = 16 ;
25
-
26
24
export const SelectMenu = Popover ;
27
25
28
26
export const SelectMenuTrigger = PopoverTrigger ;
@@ -54,22 +52,7 @@ export const SelectMenuSearch: FC<SearchFieldProps> = (props) => {
54
52
< SearchField
55
53
fullWidth
56
54
size = "medium"
57
- css = { ( theme ) => ( {
58
- borderBottom : `1px solid ${ theme . palette . divider } ` ,
59
- "& input" : {
60
- fontSize : 14 ,
61
- } ,
62
- "& fieldset" : {
63
- border : 0 ,
64
- borderRadius : 0 ,
65
- } ,
66
- "& .MuiInputBase-root" : {
67
- padding : `12px ${ SIDE_PADDING } px` ,
68
- } ,
69
- "& .MuiInputAdornment-positionStart" : {
70
- marginRight : SIDE_PADDING ,
71
- } ,
72
- } ) }
55
+ className = "border-solid border-b-px [&_input]:font-sm [&_fieldset]:border-none [&_fieldset]:rounded-none [&.MuiInputBase-root]:py-3 [&.MuiInputBase-root]:px-4 [&.MuiInputAdornment-positionStart]:mr-4"
73
56
{ ...props }
74
57
inputProps = { { autoFocus : true , ...props . inputProps } }
75
58
/>
@@ -112,19 +95,9 @@ export const SelectMenuIcon: FC<HTMLProps<HTMLDivElement>> = (props) => {
112
95
113
96
export const SelectMenuItem : FC < MenuItemProps > = ( props ) => {
114
97
return (
115
- < MenuItem
116
- css = { {
117
- fontSize : 14 ,
118
- gap : 0 ,
119
- lineHeight : 1 ,
120
- padding : `12px ${ SIDE_PADDING } px` ,
121
- } }
122
- { ...props }
123
- >
98
+ < MenuItem className = "text-sm gap-0 leading-none py-3 px-4" { ...props } >
124
99
{ props . children }
125
- { props . selected && (
126
- < CheckIcon className = "size-icon-xs" css = { { marginLeft : "auto" } } />
127
- ) }
100
+ { props . selected && < CheckIcon className = "size-icon-xs ml-auto" /> }
128
101
</ MenuItem >
129
102
) ;
130
103
} ;
You can’t perform that action at this time.
0 commit comments