"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsStackee = exports.FloatingLabelMaskedInput = exports.FloatingLabelError = exports.FloatingLabelPasswordDisabled = exports.FloatingLabelMaskedPassword = exports.FloatingLabelPassword = exports.FloatingLabelText = exports.MixinsMarginOnlySpacing = exports.NoBorderDisabledLockIcon = exports.NoBorderDisabled = exports.NoBorder = exports.CurrencyMask = exports.Numeric = exports.PhoneNumberMask = exports.DateFormattingMaskIconRight = exports.DateFormattingMaskIconLeft = exports.DateFormattingMaskFocusOnMount = exports.DateFormattingMaskError = exports.DateFormattingMaskLarge = exports.DateFormattingMask = exports.WithExtendedStyles = exports.FocusOnMount = exports.ErrorArray = exports.ErrorString = exports.WithError = exports.WithErrorIcon = exports.WithIconRightDisabled = exports.WithCheckmarkIconRightLarge = exports.WithIconRight = exports.WithIconLeft = exports.WithValueDisabled = exports.WithButtonTextAndError = exports.WithButtonText = exports.SpecifyFontSize = exports.large = exports.Default = exports.PasswordSmall = exports.PasswordDisabled = exports.Password = exports["default"] = void 0;

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _addonActions = require("@storybook/addon-actions");

var _textInput = require("./text-input.component");

var _marginChecker = require("../../../mixins/spacing/story-support/margin-checker");

var _stackeeChecker = require("../../../mixins/stackee/story-support/stackee-checker");

var _textInput2 = _interopRequireDefault(require("./text-input.mdx"));

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

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

var _default = {
  component: _textInput.TextInput,
  title: 'Components/Inputs/TextInput',
  parameters: {
    docs: {
      page: _textInput2["default"]
    }
  }
};
exports["default"] = _default;

var TextInputDemo = function TextInputDemo(_ref) {
  var value = _ref.value,
      large = _ref.large,
      iconType = _ref.iconType,
      iconPosition = _ref.iconPosition,
      label = _ref.label,
      _ref$placeholder = _ref.placeholder,
      placeholder = _ref$placeholder === void 0 ? "Look a placeholder that's really long!" : _ref$placeholder,
      onFocus = _ref.onFocus,
      onBlur = _ref.onBlur,
      disabled = _ref.disabled,
      error = _ref.error,
      focusOnMount = _ref.focusOnMount,
      fontSize = _ref.fontSize,
      mask = _ref.mask,
      maskOptions = _ref.maskOptions,
      onChange = _ref.onChange,
      _ref$className = _ref.className,
      className = _ref$className === void 0 ? '' : _ref$className,
      buttonText = _ref.buttonText,
      inputMode = _ref.inputMode,
      _ref$hideBorder = _ref.hideBorder,
      hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder,
      type = _ref.type,
      hideValueButtonLabel = _ref.hideValueButtonLabel,
      revealValueButtonLabel = _ref.revealValueButtonLabel,
      floatLabel = _ref.floatLabel;

  var _useState = (0, _react.useState)(value),
      _useState2 = _slicedToArray(_useState, 2),
      demoValue = _useState2[0],
      setDemoValue = _useState2[1];

  var handleValueChanged = (0, _react.useCallback)(function (newValue, event) {
    setDemoValue(newValue);
    onChange(newValue, event);
  }, [onChange]);
  return /*#__PURE__*/_react["default"].createElement(_textInput.TextInput, {
    label: label,
    onChange: handleValueChanged,
    value: demoValue,
    iconType: iconType,
    iconPosition: iconPosition,
    placeholder: placeholder,
    onFocus: onFocus,
    onBlur: onBlur,
    large: large,
    disabled: disabled,
    error: error,
    focusOnMount: focusOnMount,
    fontSize: fontSize,
    className: className,
    mask: mask,
    maskOptions: maskOptions,
    buttonText: buttonText,
    inputMode: inputMode,
    hideBorder: hideBorder,
    type: type,
    hideValueButtonLabel: hideValueButtonLabel,
    revealValueButtonLabel: revealValueButtonLabel,
    floatLabel: floatLabel
  });
};

var StyledTextInputDemo = (0, _styledComponents["default"])(TextInputDemo).withConfig({
  displayName: "StyledTextInputDemo",
  componentId: "edhsav-0"
})(["width:400px;padding-right:25px;border:5px solid red;"]);

var Password = function Password() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    hideLabel: true,
    onChange: (0, _addonActions.action)('onChange'),
    value: "hunter2",
    placeholder: "Password",
    large: true,
    type: "password",
    hideValueButtonLabel: "hide password",
    revealValueButtonLabel: "reveal password"
  });
};

exports.Password = Password;

var PasswordDisabled = function PasswordDisabled() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    disabled: true,
    hideLabel: true,
    onChange: (0, _addonActions.action)('onChange'),
    value: "hunter2",
    placeholder: "Password",
    large: true,
    type: "password",
    hideValueButtonLabel: "hide password",
    revealValueButtonLabel: "reveal password"
  });
};

exports.PasswordDisabled = PasswordDisabled;

var PasswordSmall = function PasswordSmall() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    hideLabel: true,
    onChange: (0, _addonActions.action)('onChange'),
    value: "hunter2",
    placeholder: "Password",
    type: "password",
    hideValueButtonLabel: "hide password",
    revealValueButtonLabel: "reveal password"
  });
};

exports.PasswordSmall = PasswordSmall;

var Default = function Default() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter some text",
    onChange: (0, _addonActions.action)('onChange')
  });
};

exports.Default = Default;

var large = function large() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter some text",
    large: true,
    onChange: (0, _addonActions.action)('onChange')
  });
};

exports.large = large;

var SpecifyFontSize = function SpecifyFontSize() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter some text",
    onChange: (0, _addonActions.action)('onChange'),
    fontSize: "f5",
    large: true
  });
};

exports.SpecifyFontSize = SpecifyFontSize;

var WithButtonText = function WithButtonText() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter some text",
    onChange: (0, _addonActions.action)('onChange'),
    buttonText: "Show"
  });
};

exports.WithButtonText = WithButtonText;

var WithButtonTextAndError = function WithButtonTextAndError() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter some text",
    onChange: (0, _addonActions.action)('onChange'),
    buttonText: "Show",
    error: true
  });
};

exports.WithButtonTextAndError = WithButtonTextAndError;

var WithValueDisabled = function WithValueDisabled() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    disabled: true,
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithValueDisabled = WithValueDisabled;

var WithIconLeft = function WithIconLeft() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    iconType: "lock",
    iconPosition: "left",
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithIconLeft = WithIconLeft;

var WithIconRight = function WithIconRight() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    iconType: "lock",
    iconPosition: "right",
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithIconRight = WithIconRight;

var WithCheckmarkIconRightLarge = function WithCheckmarkIconRightLarge() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    iconType: "checkmark",
    iconPosition: "right",
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    large: true,
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithCheckmarkIconRightLarge = WithCheckmarkIconRightLarge;

var WithIconRightDisabled = function WithIconRightDisabled() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    iconType: "lock",
    iconPosition: "right",
    disabled: true,
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithIconRightDisabled = WithIconRightDisabled;

var WithErrorIcon = function WithErrorIcon() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    iconType: "lock",
    iconPosition: "right",
    error: true,
    placeholder: "Look a placeholder that's really long!",
    value: "Wooo a value!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithErrorIcon = WithErrorIcon;

var WithError = function WithError() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    placeholder: "Look a placeholder that's really long!",
    value: "O no, an error",
    error: true,
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur')
  });
};

exports.WithError = WithError;

var ErrorString = function ErrorString() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    placeholder: "Look a placeholder that's really long!",
    value: "O no, an error",
    error: "dangnamit I'm broken",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    large: true
  });
};

exports.ErrorString = ErrorString;

var ErrorArray = function ErrorArray() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    placeholder: "Look a placeholder that's really long!",
    value: "O no, an error",
    error: ["dangnamit I'm broken", "dangnamit I'm broken"],
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    large: true
  });
};

exports.ErrorArray = ErrorArray;

var FocusOnMount = function FocusOnMount() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Omg a label",
    placeholder: "Look a placeholder that's really long!",
    value: "Your input here",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    focusOnMount: true
  });
};

exports.FocusOnMount = FocusOnMount;

var WithExtendedStyles = function WithExtendedStyles() {
  return /*#__PURE__*/_react["default"].createElement(StyledTextInputDemo, {
    label: "Omg a label",
    placeholder: "Look a placeholder that's really long!",
    value: "Your input here",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    focusOnMount: true
  });
};

exports.WithExtendedStyles = WithExtendedStyles;

var DateFormattingMask = function DateFormattingMask() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    }
  });
};

exports.DateFormattingMask = DateFormattingMask;

var DateFormattingMaskLarge = function DateFormattingMaskLarge() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    },
    large: true
  });
};

exports.DateFormattingMaskLarge = DateFormattingMaskLarge;

var DateFormattingMaskError = function DateFormattingMaskError() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    },
    error: "dangnamit I'm broken"
  });
};

exports.DateFormattingMaskError = DateFormattingMaskError;

var DateFormattingMaskFocusOnMount = function DateFormattingMaskFocusOnMount() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    },
    focusOnMount: true
  });
};

exports.DateFormattingMaskFocusOnMount = DateFormattingMaskFocusOnMount;

var DateFormattingMaskIconLeft = function DateFormattingMaskIconLeft() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    },
    iconType: "lock",
    iconPosition: "left"
  });
};

exports.DateFormattingMaskIconLeft = DateFormattingMaskIconLeft;

var DateFormattingMaskIconRight = function DateFormattingMaskIconRight() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a date",
    placeholder: "DD / MM / YYYY",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    },
    iconType: "lock",
    iconPosition: "right"
  });
};

exports.DateFormattingMaskIconRight = DateFormattingMaskIconRight;

var PhoneNumberMask = function PhoneNumberMask() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a phone number (CA)",
    placeholder: "555 444 3333",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "number",
    mask: true,
    maskOptions: {
      phone: true,
      phoneRegionCode: 'CA'
    }
  });
};

exports.PhoneNumberMask = PhoneNumberMask;

var Numeric = function Numeric() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a number",
    placeholder: "2",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    inputMode: "numeric",
    type: "number"
  });
};

exports.Numeric = Numeric;

var CurrencyMask = function CurrencyMask() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Enter a number",
    placeholder: "$0.00",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    mask: true,
    maskOptions: {
      numeral: true,
      prefix: '$',
      noImmediatePrefix: true,
      rawValueTrimPrefix: true
    },
    focusOnMount: false
  });
};

exports.CurrencyMask = CurrencyMask;

var NoBorder = function NoBorder() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Label",
    onChange: (0, _addonActions.action)('onChange'),
    hideBorder: true
  });
};

exports.NoBorder = NoBorder;

var NoBorderDisabled = function NoBorderDisabled() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Label",
    onChange: (0, _addonActions.action)('onChange'),
    hideBorder: true,
    disabled: true
  });
};

exports.NoBorderDisabled = NoBorderDisabled;

var NoBorderDisabledLockIcon = function NoBorderDisabledLockIcon() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Label",
    onChange: (0, _addonActions.action)('onChange'),
    hideBorder: true,
    disabled: true,
    iconType: "lock",
    iconPosition: "right"
  });
};

exports.NoBorderDisabledLockIcon = NoBorderDisabledLockIcon;

var MixinsMarginOnlySpacing = function MixinsMarginOnlySpacing() {
  return /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, {
    Component: _textInput.TextInput,
    label: "Label",
    onChange: (0, _addonActions.action)('onChange')
  });
};

exports.MixinsMarginOnlySpacing = MixinsMarginOnlySpacing;

var FloatingLabelText = function FloatingLabelText() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "floating label!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "text",
    value: "",
    floatLabel: true
  });
};

exports.FloatingLabelText = FloatingLabelText;

var FloatingLabelPassword = function FloatingLabelPassword() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "password",
    value: "",
    floatLabel: true,
    hideValueButtonLabel: "Hide",
    revealValueButtonLabel: "Show"
  });
};

exports.FloatingLabelPassword = FloatingLabelPassword;

var FloatingLabelMaskedPassword = function FloatingLabelMaskedPassword() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "password",
    value: "",
    floatLabel: true,
    mask: true,
    maskOptions: {
      delimiter: ''
    },
    hideValueButtonLabel: "Hide",
    revealValueButtonLabel: "Show"
  });
};

exports.FloatingLabelMaskedPassword = FloatingLabelMaskedPassword;

var FloatingLabelPasswordDisabled = function FloatingLabelPasswordDisabled() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "Password",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "password",
    value: "",
    floatLabel: true,
    hideValueButtonLabel: "Hide",
    revealValueButtonLabel: "Show",
    disabled: true
  });
};

exports.FloatingLabelPasswordDisabled = FloatingLabelPasswordDisabled;

var FloatingLabelError = function FloatingLabelError() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "floating label in error!",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "email",
    value: "harry.potter@hogwartsfgdfgd",
    floatLabel: true,
    error: "that is not a valid hogwarts email address"
  });
};

exports.FloatingLabelError = FloatingLabelError;

var FloatingLabelMaskedInput = function FloatingLabelMaskedInput() {
  return /*#__PURE__*/_react["default"].createElement(TextInputDemo, {
    label: "floating label with mask",
    onChange: (0, _addonActions.action)('onChange'),
    onFocus: (0, _addonActions.action)('onFocus'),
    onBlur: (0, _addonActions.action)('onBlur'),
    type: "text",
    value: "",
    floatLabel: true,
    mask: true,
    maskOptions: {
      date: true,
      datePattern: ['d', 'm', 'Y'],
      delimiter: ' / '
    }
  });
};

exports.FloatingLabelMaskedInput = FloatingLabelMaskedInput;

var MixinsStackee = function MixinsStackee() {
  return /*#__PURE__*/_react["default"].createElement(_stackeeChecker.StackeeChecker, {
    Component: _textInput.TextInput,
    label: "Label",
    onChange: (0, _addonActions.action)('onChange')
  });
};

exports.MixinsStackee = MixinsStackee;