import _defineProperty from '@babel/runtime/helpers/defineProperty';
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
import 'react';
import classnames from 'classnames';
import { n as noop } from './index-QWVp_Xt6.js';
import Button from './Button.js';
import Dropdown from './Dropdown.js';
import { jsxs, jsx } from 'react/jsx-runtime';
import '@babel/runtime/helpers/slicedToArray';
import '@babel/runtime/helpers/classCallCheck';
import '@babel/runtime/helpers/createClass';
import '@bigbinary/neeto-cist';
import 'qs';
import 'ramda';
import './en-Dmu3B4Vs.js';
import './index-DyUNP5G9.js';
import '@babel/runtime/helpers/toConsumableArray';
import 'dayjs';
import 'dayjs/plugin/localeData';
import 'dayjs/plugin/utc';
import 'dayjs/plugin/weekday';
import 'dayjs/plugin/weekOfYear';
import 'i18next';
import 'react-router-dom';
import './Spinner.js';
import './Tooltip.js';
import '@tippyjs/react';
import 'tippy.js';
import '@bigbinary/neeto-hotkeys';
import './overlayManager.js';
import './usePrefersReducedMotion-n4ZJtExQ.js';
import '@bigbinary/neeto-icons/Down';
import './useId-Jj9hXm-g.js';

var _excluded = ["style", "size"];
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
var BTN_STYLES = {
  primary: "primary"};
var BTN_SIZES = {
  medium: "medium"};
var ActionDropdown = function ActionDropdown(_ref) {
  var _ref$label = _ref.label,
    label = _ref$label === void 0 ? "" : _ref$label,
    _ref$buttonStyle = _ref.buttonStyle,
    buttonStyle = _ref$buttonStyle === void 0 ? BTN_STYLES.primary : _ref$buttonStyle,
    _ref$buttonSize = _ref.buttonSize,
    buttonSize = _ref$buttonSize === void 0 ? BTN_SIZES.medium : _ref$buttonSize,
    _ref$disabled = _ref.disabled,
    disabled = _ref$disabled === void 0 ? false : _ref$disabled,
    _ref$onClick = _ref.onClick,
    onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
    _ref$buttonProps = _ref.buttonProps,
    _ref$buttonProps2 = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
    style = _ref$buttonProps2.style,
    size = _ref$buttonProps2.size,
    buttonProps = _objectWithoutProperties(_ref$buttonProps2, _excluded),
    _ref$className = _ref.className,
    className = _ref$className === void 0 ? "" : _ref$className,
    dropdownProps = _ref.dropdownProps,
    children = _ref.children,
    portalProps = _ref.portalProps;
  return /*#__PURE__*/jsxs("div", {
    className: classnames(["neeto-ui-action-dropdown", className]),
    children: [/*#__PURE__*/jsx(Button, _objectSpread({
      disabled: disabled,
      label: label,
      onClick: onClick,
      "data-testid": "action-dropdown-btn",
      size: size !== null && size !== void 0 ? size : buttonSize,
      style: style !== null && style !== void 0 ? style : buttonStyle
    }, buttonProps)), /*#__PURE__*/jsx(Dropdown, _objectSpread(_objectSpread({
      disabled: disabled,
      buttonProps: {
        size: size !== null && size !== void 0 ? size : buttonSize
      },
      buttonStyle: style !== null && style !== void 0 ? style : buttonStyle
    }, dropdownProps), {}, {
      dropdownProps: _objectSpread(_objectSpread({}, dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.dropdownProps), portalProps),
      children: children
    }))]
  });
};
ActionDropdown.Menu = Dropdown.Menu;
ActionDropdown.MenuItem = Dropdown.MenuItem;
ActionDropdown.Divider = Dropdown.Divider;

export { ActionDropdown as default };
//# sourceMappingURL=ActionDropdown.js.map
