-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from gimnathperera/feat/update-props-and-api
fix: basic-level style changes
- Loading branch information
Showing
9 changed files
with
99 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@gimnathperera/react-mui-multi-search': patch | ||
--- | ||
|
||
fix base-level styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,45 @@ | ||
import Paper from '@mui/material/Paper'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import Divider from '@mui/material/Divider'; | ||
import Paper, { PaperProps } from '@mui/material/Paper'; | ||
import IconButton, { IconButtonProps } from '@mui/material/IconButton'; | ||
import Divider, { DividerProps } from '@mui/material/Divider'; | ||
import Select, { SelectProps } from '@mui/material/Select'; | ||
import styled from '@emotion/styled'; | ||
import { Button, ButtonProps } from '@mui/material'; | ||
|
||
export const SearchBarContainer = styled(Paper)(() => ({ | ||
borderRadius: '12px', | ||
export const SearchBarContainer = styled(Paper)<PaperProps>(() => ({ | ||
borderRadius: '1rem', | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: '6px', | ||
padding: '0.375rem', | ||
boxShadow: 'none', | ||
backgroundColor: '#F5F5F5', | ||
border: '0.0625rem solid #DEEEFF', // 1px converted to rem | ||
})); | ||
|
||
export const StyledIconButton = styled(IconButton)(() => ({ | ||
padding: '8px', | ||
borderRadius: '12px', | ||
export const StyledIconButton = styled(IconButton)<IconButtonProps>(() => ({ | ||
padding: '0.5rem', | ||
borderRadius: '0.75rem', | ||
})); | ||
|
||
export const StyledDivider = styled(Divider)(() => ({ | ||
height: 28, | ||
margin: '6px', | ||
export const StyledDivider = styled(Divider)<DividerProps>(() => ({ | ||
height: '1.75rem', | ||
margin: '0.375rem', | ||
})); | ||
|
||
export const StyledSelect = styled(Select)<SelectProps>(() => ({ | ||
borderRadius: '0.75rem', | ||
'.MuiOutlinedInput-notchedOutline': { | ||
borderColor: '#DEEEFF', | ||
}, | ||
'&.Mui-focused .MuiOutlinedInput-notchedOutline': { | ||
borderColor: '#DEEEFF', | ||
}, | ||
'&:hover .MuiOutlinedInput-notchedOutline': { | ||
borderColor: '#DEEEFF', | ||
}, | ||
'.MuiSvgIcon-root ': { | ||
fill: '#BFD3E4 !important', | ||
}, | ||
})); | ||
|
||
export const StyledButton = styled(Button)<ButtonProps>(() => ({ | ||
borderRadius: '0.75rem', | ||
})); |