import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children", "className", "pageWidth"];
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import Wrapper from '../Wrapper';
import { settings } from '../../globals/js';
var prefix = settings.prefix;

var BannerNavigationItem = function BannerNavigationItem(_ref) {
  var className = _ref.className,
      children = _ref.children;
  var wrapperClasses = classNames("".concat(prefix, "--banner-navigation__item"), className);
  return /*#__PURE__*/React.createElement("li", {
    className: wrapperClasses
  }, children);
};

BannerNavigationItem.propTypes = {
  /**
   * The CSS class name to be placed on the wrapping element.
   */
  className: PropTypes.string,
  children: PropTypes.node.isRequired
};
/**
 * A thin bar on top of the main navigation used to crosslink among apps or pages.
 */

var BannerNavigation = function BannerNavigation(_ref2) {
  var children = _ref2.children,
      className = _ref2.className,
      pageWidth = _ref2.pageWidth,
      props = _objectWithoutProperties(_ref2, _excluded);

  var wrapperClasses = classNames("".concat(prefix, "--banner-navigation"), className);
  return /*#__PURE__*/React.createElement("div", {
    className: wrapperClasses
  }, /*#__PURE__*/React.createElement(Wrapper, props, /*#__PURE__*/React.createElement("ul", {
    className: "".concat(prefix, "--banner-navigation__list")
  }, children)));
};

BannerNavigation.propTypes = {
  /**
   * The content usually consisting out of `BannerNavigationItem`
   */
  children: PropTypes.node.isRequired,

  /**
   * The CSS class name to be placed on the wrapping element.
   */
  className: PropTypes.string,

  /**
   * Specify the max-width on desktop devices (same as \`Wrapper\` component)
   */
  pageWidth: PropTypes.oneOf(['sm', 'md', 'lg', 'full'])
};
BannerNavigation.defaultProps = {
  pageWidth: 'lg'
};
export { BannerNavigationItem, BannerNavigation };