import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _defineProperty from "@babel/runtime/helpers/defineProperty";

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';

var FormWizard = /*#__PURE__*/function (_React$Component) {
  _inherits(FormWizard, _React$Component);

  var _super = _createSuper(FormWizard);

  function FormWizard() {
    _classCallCheck(this, FormWizard);

    return _super.apply(this, arguments);
  }

  _createClass(FormWizard, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          className = _this$props.className,
          children = _this$props.children,
          sidebar = _this$props.sidebar;
      var classes = {
        formControls: classNames('wfp--form-wizard', className)
      };
      console.warn('RadioButtonGroup is depreciated and will be removed in the next versions. Use InputGroup instead');
      return /*#__PURE__*/React.createElement("div", {
        className: classes.formControls
      }, /*#__PURE__*/React.createElement("div", {
        className: "wfp--form-wizard__sidebar"
      }, sidebar), /*#__PURE__*/React.createElement("div", {
        className: "wfp--form-wizard__content"
      }, children));
    }
  }]);

  return FormWizard;
}(React.Component);

_defineProperty(FormWizard, "propTypes", {
  /**
   * Specify a custom css class
   * which is added to the container
   */
  className: PropTypes.string,

  /**
   * Specify the custom
   * main content component
   */
  children: PropTypes.node.isRequired,

  /**
   * Specify the custom
   * sidebar component
   */
  sidebar: PropTypes.node.isRequired
});

_defineProperty(FormWizard, "defaultProps", {});

export { FormWizard as default };