"use strict";

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _react3 = require("@storybook/react");

var _addonKnobs = require("@storybook/addon-knobs");

var _TextInput = require("./TextInput");

var _TextInput2 = _interopRequireDefault(_TextInput);

var _storybook = require("../../utils/storybook");

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

var variants = {
  Default: "DEFAULT",
  Secondary: "SECONDARY"
};
(0, _react3.storiesOf)("TextInput", module).add("Default", function () {
  return _react2["default"].createElement(_storybook.StoryUtils.Container, null, _react2["default"].createElement(_TextInput2["default"], {
    variant: (0, _addonKnobs.radios)("variant", variants, "DEFAULT"),
    placeholder: (0, _addonKnobs.text)("Placeholder", "Placeholder text"),
    type: "text",
    disabled: (0, _addonKnobs["boolean"])("Disabled", false)
  }));
}, {
  info: {
    text: "\n          Text inputs allow the user to input data.\n        "
  }
});