"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Text = void 0;

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _text = require("./text.proptypes");

var _spacing = require("../../../mixins/spacing");

var _text2 = require("./text.css-rules");

var _typography = require("../../../mixins/typography");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Text = _styledComponents["default"].p.attrs(function (props) {
  return {
    style: (0, _spacing.getSpacingRules)(props)
  };
}).withConfig({
  displayName: "Text",
  componentId: "w5a8ho-0"
})(["line-height:1.4;margin:0 0 1em 0;color:", ";text-align:", ";font-size:", ";font-style:", ";font-family:", ";font-weight:", ";text-decoration:", ";text-transform:", ";", ""], _text2.getForegroundColor, _typography.getTextAlign, _typography.getFontSize, _typography.getFontStyle, _typography.getFontFamily, _typography.getFontWeight, _typography.getTextDecoration, _typography.getTextTransform, _typography.getTabularStyles);

exports.Text = Text;
Text.displayName = 'Text';
Text.propTypes = _text.textPropTypes;