'use strict';

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

exports.__esModule = true;
exports.BorderedList = exports.BorderedListItem = void 0;

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

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

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

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _classnames = _interopRequireDefault(require("classnames"));

var BorderedListItem =
/*#__PURE__*/
function (_React$Component) {
  (0, _inheritsLoose2.default)(BorderedListItem, _React$Component);

  function BorderedListItem() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = BorderedListItem.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        children = _this$props.children,
        className = _this$props.className,
        props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["active", "children", "className"]);
    var classNames = (0, _classnames.default)('bordered-list-item', className, {
      active: active
    });
    return _react.default.createElement("div", (0, _extends2.default)({
      className: classNames
    }, props), children);
  };

  return BorderedListItem;
}(_react.default.Component);

exports.BorderedListItem = BorderedListItem;
(0, _defineProperty2.default)(BorderedListItem, "propTypes", {
  active: _propTypes.default.bool,
  children: _propTypes.default.node,
  className: _propTypes.default.string
});
(0, _defineProperty2.default)(BorderedListItem, "defaultProps", {
  active: false,
  children: null,
  className: null
});

var BorderedList =
/*#__PURE__*/
function (_React$Component2) {
  (0, _inheritsLoose2.default)(BorderedList, _React$Component2);

  function BorderedList() {
    return _React$Component2.apply(this, arguments) || this;
  }

  var _proto2 = BorderedList.prototype;

  _proto2.render = function render() {
    var _this$props2 = this.props,
        noTopBorder = _this$props2.noTopBorder,
        noBottomBorder = _this$props2.noBottomBorder,
        noHorizontalBorders = _this$props2.noHorizontalBorders,
        noLeftBorder = _this$props2.noLeftBorder,
        noRightBorder = _this$props2.noRightBorder,
        noVerticalBorders = _this$props2.noVerticalBorders,
        className = _this$props2.className,
        children = _this$props2.children,
        props = (0, _objectWithoutPropertiesLoose2.default)(_this$props2, ["noTopBorder", "noBottomBorder", "noHorizontalBorders", "noLeftBorder", "noRightBorder", "noVerticalBorders", "className", "children"]);
    var classNames = (0, _classnames.default)('bordered-list', className, {
      'bordered-list-noTopBorder': noTopBorder,
      'bordered-list-noBottomBorder': noBottomBorder,
      'bordered-list-noHorizontalBorders': noHorizontalBorders,
      'bordered-list-noLeftBorder': noLeftBorder,
      'bordered-list-noRightBorder': noRightBorder,
      'bordered-list-noVerticalBorders': noVerticalBorders
    });
    return _react.default.createElement("div", (0, _extends2.default)({
      className: classNames
    }, props), children);
  };

  return BorderedList;
}(_react.default.Component);

exports.BorderedList = BorderedList;
(0, _defineProperty2.default)(BorderedList, "propTypes", {
  noTopBorder: _propTypes.default.bool,
  noBottomBorder: _propTypes.default.bool,
  noHorizontalBorders: _propTypes.default.bool,
  noLeftBorder: _propTypes.default.bool,
  noRightBorder: _propTypes.default.bool,
  noVerticalBorders: _propTypes.default.bool,
  className: _propTypes.default.string,
  children: _propTypes.default.node
});
(0, _defineProperty2.default)(BorderedList, "defaultProps", {
  noTopBorder: false,
  noBottomBorder: false,
  noHorizontalBorders: false,
  noLeftBorder: false,
  noRightBorder: false,
  noVerticalBorders: false,
  className: null,
  children: null
});