UNPKG

@totalsoft/rocket-ui

Version:

A set of reusable and composable React components built on top of Material UI core for developing fast and friendly web applications interfaces.

21 lines 767 B
import MuiCardActions from '@mui/material/CardActions'; import { styled } from '@mui/material/styles'; import { T, always, cond, equals, includes } from 'ramda'; const contentAlignment = cond([ [equals('left'), always('flex-start')], [equals('right'), always('flex-end')], [equals('center'), always('center')], [T, always('unset')] ]); const CardActions = styled(MuiCardActions, { shouldForwardProp: prop => !includes(prop, ['align', 'filled']) })(({ theme, filled, align }) => ({ ...(filled && { backgroundColor: theme?.palette.grey[200], minHeight: '48px', padding: theme?.spacing(2, 3) }), justifyContent: contentAlignment(align) })); export default CardActions; //# sourceMappingURL=CardActionsStyles.js.map