"use strict";

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

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

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

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

var _ = _interopRequireWildcard(require("."));

var _Label = _interopRequireDefault(require("../Label"));

// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
const Basic = args => /*#__PURE__*/_react.default.createElement(_.default, args);

exports.Basic = Basic;
Basic.args = {
  children: [/*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "1",
    "data-test": "one"
  }, 'One'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "2",
    "data-test": "two"
  }, 'Two'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "3",
    "data-test": "three",
    disabled: true
  }, 'Three')]
};
const Tooltip = Basic.bind(null);
exports.Tooltip = Tooltip;
Tooltip.args = {
  children: Basic.args.children.map((item, index) => {
    if (index === 0) {
      return /*#__PURE__*/(0, _react.cloneElement)(item, {
        tooltip: 'One tooltip!'
      });
    }

    return item;
  })
};
const FullFeatured = Basic.bind(null);
exports.FullFeatured = FullFeatured;
FullFeatured.args = {
  children: [/*#__PURE__*/_react.default.createElement(_.MenuHeader, {
    key: "1"
  }, 'Header 1'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "2",
    "data-test": "2",
    onClick: () => {},
    icon: "folder-open"
  }, 'One'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "3",
    "data-test": "3",
    onClick: () => {},
    icon: "folder-open",
    label: /*#__PURE__*/_react.default.createElement(_Label.default, {
      intent: "danger"
    }, '99')
  }, 'Two'), /*#__PURE__*/_react.default.createElement(_.MenuDivider, {
    key: "4"
  }), /*#__PURE__*/_react.default.createElement(_.MenuHeader, {
    key: "5"
  }, 'Header 2'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "6",
    "data-test": "6",
    onClick: () => {},
    icon: "folder-open"
  }, 'Three'), /*#__PURE__*/_react.default.createElement(_.MenuItem, {
    key: "7",
    "data-test": "7",
    onClick: () => {},
    icon: "folder-open"
  }, 'Four')]
};