UNPKG

@wulperstudio/cms

Version:
24 lines 1.25 kB
import React from 'react'; import { Box, Label, CustomTypography } from './styled'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var Text = function Text(props) { var _props$typographyProp, _props$typographyProp2, _props$typographyProp3, _props$typographyProp4; return /*#__PURE__*/_jsxs(Box, { showBorder: props.showBorder, backgroundColor: props.backgroundColor, showBoxShadow: props.showBoxShadow, showDivider: props.showDivider, children: [/*#__PURE__*/_jsx(Label, { children: props.label }), /*#__PURE__*/_jsx(CustomTypography, Object.assign({}, props.typographyProps, { fontSize: ((_props$typographyProp = props.typographyProps) == null ? void 0 : _props$typographyProp.fontSize) || '16px', lineHeight: 1.5, fontWeight: ((_props$typographyProp2 = props.typographyProps) == null ? void 0 : _props$typographyProp2.fontWeight) || 700, color: ((_props$typographyProp3 = props.typographyProps) == null ? void 0 : _props$typographyProp3.color) || '#223263', variant: ((_props$typographyProp4 = props.typographyProps) == null ? void 0 : _props$typographyProp4.variant) || 'body2', clines: 1, children: props.text }))] }); }; export default Text;