"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

var BDesignContainer = function BDesignContainer(props) {
  var className = props.className,
      size = props.size,
      theme = props.theme,
      disabled = props.disabled,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size", "theme", "disabled"]);
  return /*#__PURE__*/_react.default.createElement(_components.Balloon, (0, _extends2.default)({
    triggerType: "click",
    align: "bl",
    alignEdge: true,
    closable: false,
    popupClassName: "next-overflow-menu-list",
    trigger: /*#__PURE__*/_react.default.createElement(_components.Button, {
      disabled: disabled,
      className: (0, _classnames.default)(className, {
        'next-overflow-menu': true,
        'next-overflow-menu-xs': size === 'xs',
        'next-overflow-menu-small': size === 'small',
        'next-overflow-menu-medium': size === 'medium',
        'next-overflow-menu-large': size === 'large',
        'next-overflow-menu-dark': theme === 'dark'
      })
    }, /*#__PURE__*/_react.default.createElement("i", {
      className: "iconfont icon-Overflowmenuvertical-Outlined"
    })),
    className: (0, _classnames.default)(className, {
      'b-design-overflow-menu': true
    })
  }, rest));
};

var BDesignItem = function BDesignItem(props) {
  var className = props.className,
      type = props.type,
      size = props.size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "type", "size"]);
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-overflow-menu-item': true
    })
  }, rest));
};

BDesignContainer.Item = BDesignItem;
var _default = BDesignContainer;
exports.default = _default;