UNPKG

@wulperstudio/cms

Version:
32 lines 1.58 kB
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["theme"]; import { Box, Typography, styled } from '@mui/material'; export var CustomBox = styled(Box, { shouldForwardProp: function shouldForwardProp(prop) { return prop !== 'showBorder' && prop !== 'backgroundColor' && prop !== 'showBoxShadow' && prop !== 'showDivider'; } })(function (_ref) { var theme = _ref.theme, props = _objectWithoutProperties(_ref, _excluded); return "\n background-color: ".concat(props.backgroundColor ? theme.palette.background["default"] : theme.palette.background.paper, ";\n padding: ").concat(props.backgroundColor ? '0px' : '10px 15px', ";\n border-radius: ").concat(props.showDivider ? '0px' : '5px', ";\n border: ").concat(props.showBorder ? "1px solid ".concat(theme.palette.background.paper) : 'none', ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n box-shadow: ").concat(props.showBoxShadow ? '0px 4px 24px rgba(0, 0, 0, 0.05)' : 'none', ";\n"); }); export var Label = styled('label')(function (_ref2) { var theme = _ref2.theme; return { fontSize: '14px', lineHeight: '18px', fontWeight: 'normal', fontFamily: theme.typography.fontFamily, color: theme.palette.text.secondary, marginBottom: '10px' }; }); export var CustomTypography = styled(Typography)(function (_ref3) { var theme = _ref3.theme; return { fontSize: '16px', lineHeight: '24px', fontWeight: 700, color: theme.palette.text.primary }; });