"use strict";

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

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

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

var _type = require("../_util/type");

var _vueTypes = _interopRequireDefault(require("../_util/vue-types"));

var _buttonTypes = _interopRequireDefault(require("../button/buttonTypes"));

var dropdownProps = function dropdownProps() {
  return {
    arrow: _vueTypes.default.looseBool,
    trigger: {
      type: [Array, String]
    },
    overlay: _vueTypes.default.any,
    visible: _vueTypes.default.looseBool,
    disabled: _vueTypes.default.looseBool,
    align: {
      type: Object
    },
    getPopupContainer: _vueTypes.default.func,
    prefixCls: _vueTypes.default.string,
    transitionName: _vueTypes.default.string,
    placement: _vueTypes.default.oneOf((0, _type.tuple)('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight')),
    overlayClassName: _vueTypes.default.string,
    overlayStyle: _vueTypes.default.style,
    forceRender: _vueTypes.default.looseBool,
    mouseEnterDelay: _vueTypes.default.number,
    mouseLeaveDelay: _vueTypes.default.number,
    openClassName: _vueTypes.default.string,
    minOverlayWidthMatchTrigger: _vueTypes.default.looseBool
  };
};

exports.dropdownProps = dropdownProps;
var ButtonTypesProps = (0, _buttonTypes.default)();

var dropdownButtonProps = function dropdownButtonProps() {
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, dropdownProps()), {}, {
    type: _vueTypes.default.oneOf((0, _type.tuple)('primary', 'ghost', 'dashed', 'default')),
    size: _vueTypes.default.oneOf((0, _type.tuple)('small', 'large')),
    htmlType: ButtonTypesProps.htmlType,
    href: _vueTypes.default.string,
    disabled: _vueTypes.default.looseBool,
    prefixCls: _vueTypes.default.string,
    icon: _vueTypes.default.any,
    title: _vueTypes.default.string
  });
};

exports.dropdownButtonProps = dropdownButtonProps;
var _default = dropdownProps;
exports.default = _default;