@braineet/ui
Version:
Braineet design system
20 lines (19 loc) • 1.02 kB
JavaScript
;
exports.__esModule = true;
exports.default = exports.Text = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _styledSystem = require("styled-system");
var _box = _interopRequireDefault(require("../box"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
var textStyle = function textStyle(p) {
return p.$fontFamily === 'text' ? p.theme.helpers.getTextStyle(p.$size) : p.theme.helpers.getHeadingStyle(p.$size);
};
var Text = exports.Text = (0, _styledComponents.default)(_box.default).withConfig({
displayName: "styles__Text",
componentId: "sc-hlvfkl-0"
})(["", " ", ""], function (p) {
return textStyle(p);
}, function (props) {
return !props.isInlineCss ? (0, _styledSystem.compose)(_styledSystem.space, _styledSystem.color, _styledSystem.typography, _styledSystem.layout, _styledSystem.flexbox, _styledSystem.border, _styledSystem.position, _styledSystem.shadow) : null;
});
var _default = exports.default = {};