Skip to content

Commit

Permalink
feat: export catalog component and update styles
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Oct 9, 2024
1 parent 5c89d14 commit c0e4984
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/custom/CatalogSearchSort/index.tsx
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 };
32 changes: 32 additions & 0 deletions src/custom/CatalogSearchSort/style.tsx
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'
}
}));
1 change: 1 addition & 0 deletions src/custom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { TransferList } from './TransferModal/TransferList';
import { TransferListProps } from './TransferModal/TransferList/TransferList';
import UniversalFilter, { UniversalFilterProps } from './UniversalFilter';
export { CatalogCard } from './CatalogCard';
export { CatalogSearch, CatalogSortByMenu } from './CatalogSearchSort';
export { StyledChartDialog } from './ChartDialog';
export { LearningContent } from './LearningContent';
export { Note } from './Note';
Expand Down

0 comments on commit c0e4984

Please sign in to comment.