var _excluded = ["children"],
  _excluded2 = ["children"],
  _excluded3 = ["children"],
  _excluded4 = ["children"],
  _excluded5 = ["children"],
  _excluded6 = ["children"],
  _excluded7 = ["alignRight", "block", "children", "search", "variant"];
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from 'react';
import { addSubcomponents } from '../_utils/addSubcomponents';
import { StyledListPage, StyledListPageBanner, StyledListPageBody, StyledListPageBodyContent, StyledListPageContentControls, StyledListPageControl, StyledListPageMain, StyledListPageToolHeader } from './ListPage.styles';
export var ListPage_ = /*#__PURE__*/React.forwardRef(function ListPage(_ref, ref) {
  var children = _ref.children,
    props = _objectWithoutProperties(_ref, _excluded);
  return /*#__PURE__*/React.createElement(StyledListPage, _extends({}, props, {
    ref: ref
  }), children);
});
export var Main = /*#__PURE__*/React.forwardRef(function Main(_ref2, ref) {
  var children = _ref2.children,
    props = _objectWithoutProperties(_ref2, _excluded2);
  return /*#__PURE__*/React.createElement(StyledListPageMain, _extends({}, props, {
    ref: ref
  }), children);
});
export var Banner = /*#__PURE__*/React.forwardRef(function Banner(_ref3, ref) {
  var children = _ref3.children,
    props = _objectWithoutProperties(_ref3, _excluded3);
  return /*#__PURE__*/React.createElement(StyledListPageBanner, _extends({}, props, {
    ref: ref
  }), children);
});
export var ToolHeader = /*#__PURE__*/React.forwardRef(function ToolHeader(_ref4, ref) {
  var children = _ref4.children,
    props = _objectWithoutProperties(_ref4, _excluded4);
  return /*#__PURE__*/React.createElement(StyledListPageToolHeader, _extends({}, props, {
    ref: ref
  }), children);
});
export var ContentControls = /*#__PURE__*/React.forwardRef(function ContentControls(_ref5, ref) {
  var children = _ref5.children,
    props = _objectWithoutProperties(_ref5, _excluded5);
  return /*#__PURE__*/React.createElement(StyledListPageContentControls, _extends({}, props, {
    ref: ref
  }), children);
});
export var Body = /*#__PURE__*/React.forwardRef(function Body(_ref6, ref) {
  var children = _ref6.children,
    props = _objectWithoutProperties(_ref6, _excluded6);
  return /*#__PURE__*/React.createElement(StyledListPageBody, _extends({}, props, {
    ref: ref
  }), /*#__PURE__*/React.createElement(StyledListPageBodyContent, null, children));
});
export var Control = /*#__PURE__*/React.forwardRef(function Control(_ref7, ref) {
  var _ref7$alignRight = _ref7.alignRight,
    alignRight = _ref7$alignRight === void 0 ? false : _ref7$alignRight,
    _ref7$block = _ref7.block,
    block = _ref7$block === void 0 ? false : _ref7$block,
    children = _ref7.children,
    _ref7$search = _ref7.search,
    search = _ref7$search === void 0 ? false : _ref7$search,
    variant = _ref7.variant,
    props = _objectWithoutProperties(_ref7, _excluded7);
  return /*#__PURE__*/React.createElement(StyledListPageControl, _extends({}, props, {
    $alignRight: alignRight || variant === 'align-right',
    $block: block || variant === 'block',
    $search: search || variant === 'search',
    ref: ref
  }), children);
});
Banner.displayName = 'ListPage.Banner';
Body.displayName = 'ListPage.Body';
ContentControls.displayName = 'ListPage.ContentControls';
Control.displayName = 'ListPage.Control';
Main.displayName = 'ListPage.Main';
ToolHeader.displayName = 'ListPage.ToolHeader';
export var ListPage = addSubcomponents({
  Banner: Banner,
  Body: Body,
  ContentControls: ContentControls,
  Control: Control,
  Main: Main,
  ToolHeader: ToolHeader
}, ListPage_);
//# sourceMappingURL=ListPage.js.map