'use strict';

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

var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
var React = require('react');
var base = require('./variations/_view/base.js');
var base$1 = require('./variations/_size/base.js');
var DropdownDivider_styles = require('./DropdownDivider.styles.js');
var react = require('../../../../utils/react.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

var _excluded = ["id", "className", "view", "size"];
/**
 * Элемент выпадающего списка
 */
var dropdownDividerRoot = function dropdownDividerRoot(Root) {
  return /*#__PURE__*/React.forwardRef(function (_ref, outerRootRef) {
    var id = _ref.id,
      className = _ref.className,
      view = _ref.view,
      size = _ref.size,
      rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
    var uniqId = react.safeUseId();
    var innerId = id || uniqId;
    return /*#__PURE__*/React__default.default.createElement(Root, {
      id: innerId,
      ref: outerRootRef,
      view: view,
      size: size
    }, /*#__PURE__*/React__default.default.createElement(DropdownDivider_styles.StyledDropdownDivider, _rollupPluginBabelHelpers.extends({
      className: className
    }, rest)));
  });
};
var dropdownDividerConfig = {
  name: 'DropdownDivider',
  tag: 'div',
  layout: dropdownDividerRoot,
  base: '',
  variations: {
    view: {
      css: base.base
    },
    size: {
      css: base$1.base
    }
  },
  defaults: {
    view: 'primary',
    size: 'm'
  }
};

exports.dropdownDividerConfig = dropdownDividerConfig;
exports.dropdownDividerRoot = dropdownDividerRoot;
//# sourceMappingURL=DropdownDivider.js.map
