generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export catalog component and update styles
Signed-off-by: Amit Amrutiya <[email protected]>
- Loading branch information
1 parent
5c89d14
commit c0e4984
Showing
3 changed files
with
36 additions
and
0 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,3 @@ | ||
import CatalogSearch from './CatalogSearch'; | ||
import CatalogSortByMenu from './CatalogSortByMenu'; | ||
export { CatalogSearch, CatalogSortByMenu }; |
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,32 @@ | ||
import { FormControl, styled } from '@mui/material'; | ||
import { InputAdornment, OutlinedInput } from '../../base'; | ||
import { CHINESE_SILVER, CULTURED, WHITESMOKE } from '../../theme'; | ||
|
||
export const CatalogSearchInput = styled(OutlinedInput)(({ style }) => ({ | ||
backgroundColor: WHITESMOKE, | ||
width: '100%', | ||
'@media (max-width: 590px)': { | ||
marginLeft: '0.25rem', | ||
paddingLeft: '0.25rem' | ||
}, | ||
display: 'flex', | ||
...style | ||
})); | ||
|
||
export const InputAdornmentEnd = styled(InputAdornment)(() => ({ | ||
borderLeft: `1px solid ${CHINESE_SILVER}`, | ||
height: '30px', | ||
paddingLeft: '10px', | ||
'@media (max-width: 590px)': { | ||
paddingLeft: '0px' | ||
} | ||
})); | ||
|
||
export const CatalogSortBy = styled(FormControl)(() => ({ | ||
backgroundColor: CULTURED, | ||
borderRadius: '.25rem', | ||
minWidth: 'fit-content', | ||
'@media (max-width: 590px)': { | ||
minWidth: '75px' | ||
} | ||
})); |
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