"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

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

var _color = _interopRequireDefault(require("../../../mixins/color"));

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

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

var Break = _styledComponents["default"].hr.withConfig({
  displayName: "src__Break",
  componentId: "sc-1tyk0wy-0"
})(["", ";", ";width:100%;border-top-style:solid;", ";"], _spacing["default"], _color["default"], function (_ref) {
  var _ref$width = _ref.width,
      width = _ref$width === void 0 ? 1 : _ref$width,
      theme = _ref.theme;
  return width && "border-top-width: ".concat(theme.spacing(width, 'border'));
});

exports.Break = Break;
Break.propTypes = _objectSpread({}, _spacing["default"].propTypes, {}, _color["default"].propTypes);
Break.defaultProps = _objectSpread({}, _color["default"].defaultProps, {
  border: 'black',
  spacing: {
    my: 2
  }
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9jb21wb25lbnRzL0JyZWFrL3NyYy9pbmRleC5qc3giXSwibmFtZXMiOl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