mirror of
https://github.com/SomboChea/ui
synced 2024-05-20 18:31:37 +07:00
28 lines
873 B
TypeScript
28 lines
873 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import ListItem from '../../muiComponents/ListItem';
|
|
import Text from '../../muiComponents/Text';
|
|
import FloatingActionButton from '../../muiComponents/FloatingActionButton';
|
|
import Chip from '../../muiComponents/Chip';
|
|
import { Theme } from '../../design-tokens/theme';
|
|
|
|
export const StyledText = styled(Text)<{ theme?: Theme }>(props => ({
|
|
fontWeight: props.theme && props.theme.fontWeight.bold,
|
|
textTransform: 'capitalize',
|
|
}));
|
|
|
|
export const DistListItem = styled(ListItem)({
|
|
paddingLeft: 0,
|
|
paddingRight: 0,
|
|
});
|
|
|
|
export const DistChips = styled(Chip)({
|
|
marginRight: 5,
|
|
textTransform: 'capitalize',
|
|
});
|
|
|
|
export const DownloadButton = styled(FloatingActionButton)<{ theme?: Theme }>(props => ({
|
|
backgroundColor: props.theme && props.theme.palette.primary.main,
|
|
color: props.theme && props.theme.palette.white,
|
|
}));
|