UNPKG

@wulperstudio/cms

Version:
40 lines (39 loc) 1.51 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.Label = exports.Box = void 0; var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); var _material = require("@mui/material"); var _excluded = ["theme"]; var Box = exports.Box = (0, _material.styled)('div', { shouldForwardProp: function shouldForwardProp(prop) { return prop !== 'showBorder' && prop !== 'backgroundColor' && prop !== 'showBoxShadow' && prop !== 'showDivider'; } })(function (_ref) { var theme = _ref.theme, props = (0, _objectWithoutProperties2["default"])(_ref, _excluded); return { backgroundColor: props.backgroundColor, padding: props.backgroundColor ? '10px 0px' : '10px 15px', borderRadius: props.showDivider ? '0px' : '5px', border: props.showBorder ? "1px solid ".concat(theme.palette.background.paper) : 'none', display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'center', boxShadow: props.showBoxShadow ? '1px 4px 24px rgba(0, 0, 0, 0.05)' : 'none' }; }); var Label = exports.Label = (0, _material.styled)('label')(function (_ref2) { var theme = _ref2.theme; return { fontSize: '13px', lineHeight: '17px', fontWeight: 'normal', fontFamily: theme.typography.fontFamily, color: theme.palette.text.secondary, marginBottom: '9px' }; });