"use strict";

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

var _button = _interopRequireDefault(require("../../button"));

var _datePicker = _interopRequireDefault(require("../../date-picker"));

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

var _reactDom = _interopRequireDefault(require("react-dom"));

var _select = _interopRequireDefault(require("../../select"));

var _moment = _interopRequireDefault(require("moment"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var showSelect = /*#__PURE__*/_react["default"].createElement(_button["default"], {
  className: "btrigger"
}, "Show Select");

var showDatePicker = /*#__PURE__*/_react["default"].createElement(_button["default"], {
  className: "btrigger"
}, "Show DatePicker");

var innerButton = /*#__PURE__*/_react["default"].createElement(_button["default"], {
  className: "btrigger"
}, "Show Inner Balloon");

var dateValue = (0, _moment["default"])('2018-01-01', 'YYYY-MM-DD', true);

var App = function App() {
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
    autoFocus: true,
    trigger: showSelect,
    closable: false,
    triggerType: "click"
  }, /*#__PURE__*/_react["default"].createElement(_select["default"], {
    dataSource: ['apple', 'banana', 'orange'],
    followTrigger: true
  })), /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      marginRight: 20
    }
  }), /*#__PURE__*/_react["default"].createElement(_["default"], {
    autoFocus: true,
    trigger: showDatePicker,
    closable: false,
    triggerType: "click"
  }, /*#__PURE__*/_react["default"].createElement(_datePicker["default"], {
    defaultValue: dateValue // @ts-ignore
    ,
    followTrigger: true
  })), /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      marginRight: 20
    }
  }), /*#__PURE__*/_react["default"].createElement(_["default"], {
    autoFocus: true,
    trigger: innerButton,
    closable: false,
    triggerType: "click"
  }, /*#__PURE__*/_react["default"].createElement(_["default"], {
    trigger: /*#__PURE__*/_react["default"].createElement(_button["default"], {
      type: "primary"
    }, "please click"),
    followTrigger: true,
    triggerType: "click"
  }, "hello world hello world hello world hello world")));
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(App, null), document.getElementById('balloon-demo-10'));