'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _FlowRowStyles = require('./styles/FlowRowStyles');

var _FlowRowStyles2 = _interopRequireDefault(_FlowRowStyles);

var _flowField = require('./fields/flowField');

var _flowField2 = _interopRequireDefault(_flowField);

var _fields = require('./fields');

var fields = _interopRequireWildcard(_fields);

var _FlowItemContainer = require('./styles/FlowItemContainer');

var _FlowItemContainer2 = _interopRequireDefault(_FlowItemContainer);

var _FlowItem = require('./FlowItem');

var _FlowItem2 = _interopRequireDefault(_FlowItem);

var _FlowRow = require('./FlowRow');

var _FlowRow2 = _interopRequireDefault(_FlowRow);

var _constants = require('./constants');

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

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

/**
 * @deprecated
 *
 * See /layouts/Fields for new layout mechanisms for form fields
 */
var Flow = _styledComponents2.default.div.withConfig({ displayName: 'Flow' }).withConfig({
  displayName: 'Flow'
})(['display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;& > ', '{flex-basis:100%;flex-shrink:0;}& > ', '{flex-basis:calc(50% - ', 'px / 2);flex-grow:0;flex-shrink:0;}& > ', ',& > ', '{margin-top:calc(', 'px / 2);margin-bottom:calc(', 'px / 2);&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}'], _FlowRowStyles2.default, _FlowItemContainer2.default, _constants.HORIZONTAL_SPACING, _FlowRowStyles2.default, _FlowItemContainer2.default, _constants.VERTICAL_SPACING, _constants.VERTICAL_SPACING);

Flow.Row = _FlowRow2.default;
Flow.fields = fields;
Flow.createField = _flowField2.default;
Flow.Item = _FlowItem2.default;

/**
 * @component
 */
exports.default = Flow;