"use strict";

exports.__esModule = true;
exports.default = void 0;

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

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

var _ = require("./..");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * @category controls
 * @component form
 * @variations collab-ui-react
 **/
var FormSection = function FormSection(props) {
  var title = props.title,
      description = props.description,
      children = props.children;
  return _react.default.createElement("div", {
    className: "cui-form__section"
  }, _react.default.createElement(_.FormInfo, {
    title: title,
    description: description
  }), _react.default.createElement(_.FormContent, null, children));
};

FormSection.propTypes = {
  /**
   * optional title prop type
   */
  title: _propTypes.default.string.isRequired,

  /**
   * optional description prop type
   */
  description: _propTypes.default.string,

  /**
   * optional children prop type
   */
  children: _propTypes.default.node
};
FormSection.defaultProps = {
  description: '',
  children: null
};
FormSection.displayName = 'FormSection';
var _default = FormSection;
/**
* @name Form Section
* @description Forms are useful.
*
* @category controls
* @component form
* @section Form Section
*
* @js

import {
  FormSection,
  Input
} from '@collab-ui/react';

export default function Default() {
    return (
      <div className='row'>
        <br />
        <FormSection
          title='Section Title'
          description={`Section Description. Curabitur lobortis id lorem id bibendum. Ut id consectetur magna. Quisque volutpat augue enim, pulvinar lobortis nibh lacinia at. Vestibulum nec erat ut mi sollicitudin porttitor id sit amet risus. Nam tempus vel odio vitae aliquam. In imperdiet eros id lacus vestibulum vestibulum. Suspendisse fermentum sem sagittis ante venenatis egestas quis vel justo. Maecenas semper suscipit nunc, sed aliquam sapien convallis eu. Nulla ut turpis in diam dapibus consequat.`}
        >
          <Input
            htmlId='testMe2'
            value='testMe2'
            name='testMe2'
            label='First Input'
            disabled
            placeholder='Disabled Input'
            onChange={() => {}}
            inputHelpText='Field Must be Disabled'
            errorArr={[]}
          />
        </FormSection>
      </div>
    );
  }

**/

exports.default = _default;