"use strict";

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

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

var _input = _interopRequireDefault(require("../../input"));

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

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

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

var Tooltip = _["default"].Tooltip;

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

var triggerTooltip = /*#__PURE__*/_react["default"].createElement(_button["default"], {
  style: {
    margin: '5px'
  }
}, "show tooltip");

var App = function App() {
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "container nested"
  }, /*#__PURE__*/_react["default"].createElement(_["default"], {
    id: "inner-a11y-balloon-1",
    autoFocus: true,
    trigger: /*#__PURE__*/_react["default"].createElement(_button["default"], {
      type: "primary"
    }, "Fill in sub-form"),
    popupContainer: function popupContainer(trigger) {
      return trigger.parentElement;
    },
    triggerType: "click"
  }, "please input your age:", /*#__PURE__*/_react["default"].createElement(_input["default"], {
    placeholder: "Age",
    size: "small",
    label: "Age :",
    id: "balloon-input-1"
  }), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null)), /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      marginRight: 20
    }
  }), /*#__PURE__*/_react["default"].createElement(_["default"], {
    id: "a11y-balloon",
    autoFocus: true,
    trigger: innerButton,
    triggerType: "click"
  }, /*#__PURE__*/_react["default"].createElement(_["default"], {
    id: "inner-a11y-balloon",
    autoFocus: true,
    trigger: /*#__PURE__*/_react["default"].createElement(_button["default"], {
      type: "primary"
    }, "Fill in sub-form"),
    popupContainer: function popupContainer(trigger) {
      return trigger.parentElement;
    },
    triggerType: "click"
  }, "please input your age:", /*#__PURE__*/_react["default"].createElement(_input["default"], {
    placeholder: "Age",
    size: "small",
    label: "Age :",
    id: "balloon-input-2"
  }), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null)), /*#__PURE__*/_react["default"].createElement("br", null), "please input your name:", /*#__PURE__*/_react["default"].createElement(_input["default"], {
    placeholder: "Name",
    size: "small",
    label: "Name :",
    id: "balloon-input-3"
  }), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null)), /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      marginRight: 20
    }
  }), /*#__PURE__*/_react["default"].createElement(Tooltip, {
    trigger: triggerTooltip,
    id: "aria-tooltip"
  }, /*#__PURE__*/_react["default"].createElement("p", null, "This is content for tooltip.")));
};

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