"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.withDisabled = exports.withError = exports.PasswordInput = exports.Regular = exports.default = void 0;

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

var _README = _interopRequireDefault(require("./README.mdx"));

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

var _default = {
  title: 'Components/Forms/TextInput',
  component: _.default,
  parameters: {
    componentSubtitle: 'Component',
    status: 'released',
    mdx: _README.default
  }
};
exports.default = _default;

var Regular = function Regular(args) {
  return /*#__PURE__*/_react.default.createElement(_.default, args);
};

exports.Regular = Regular;
Regular.args = {
  type: "text",
  name: 'inputname',
  helperText: 'Optional helperText',
  labelText: 'The labelText',
  placeholder: 'placeholder'
};

var PasswordInput = function PasswordInput(args) {
  return /*#__PURE__*/_react.default.createElement(_.default, args);
};

exports.PasswordInput = PasswordInput;
PasswordInput.args = {
  type: "password",
  name: 'password',
  labelText: 'The labelText'
};

var withError = function withError(args) {
  return /*#__PURE__*/_react.default.createElement(_.default, args);
};

exports.withError = withError;
withError.args = {
  name: 'inputname',
  helperText: 'Optional helperText',
  labelText: 'Enter password',
  invalid: {
    message: 'Please enter your first name'
  }
};

var withDisabled = function withDisabled(args) {
  return /*#__PURE__*/_react.default.createElement(_.default, args);
};

exports.withDisabled = withDisabled;
withDisabled.args = {
  name: 'inputname',
  helperText: 'Optional helperText',
  labelText: 'Disabled labelText',
  disabled: true
};