"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 _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

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 nonForwardedProps = [].concat((0, _toConsumableArray2["default"])(Object.keys(_color["default"].propTypes)), (0, _toConsumableArray2["default"])(Object.keys(_spacing["default"].propTypes)));

var shouldForwardProp = function shouldForwardProp(prop, defaultValidator) {
  return !nonForwardedProps.includes(prop) && defaultValidator(prop);
};

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