"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsStackee = exports.MixinsMarginOnlySpacing = exports.FocusOnMount = exports.HiddenLabel = exports.Value = exports.Large = exports.Bold = exports.Default = exports["default"] = void 0;

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

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

var _searchInputField = require("./search-input-field.component");

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

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

var _searchInputField2 = _interopRequireDefault(require("./search-input-field.mdx"));

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var _default = {
  component: _searchInputField.SearchInputField,
  title: 'Forms/SearchInputField',
  parameters: {
    docs: {
      page: _searchInputField2["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS = {
  value: '',
  bold: false,
  onChange: (0, _addonActions.action)('change'),
  placeholder: 'Some placeholder',
  large: false,
  label: 'Search Input',
  hideLabel: false,
  focusOnMount: false
};

var Default = function Default() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, DEFAULT_PROPS);
};

exports.Default = Default;

var Bold = function Bold() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, _extends({}, DEFAULT_PROPS, {
    bold: true
  }));
};

exports.Bold = Bold;

var Large = function Large() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, _extends({}, DEFAULT_PROPS, {
    large: true
  }));
};

exports.Large = Large;

var Value = function Value() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, _extends({}, DEFAULT_PROPS, {
    large: true,
    value: "Some preset"
  }));
};

exports.Value = Value;

var HiddenLabel = function HiddenLabel() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, _extends({}, DEFAULT_PROPS, {
    large: true,
    hideLabel: true
  }));
};

exports.HiddenLabel = HiddenLabel;

var FocusOnMount = function FocusOnMount() {
  return /*#__PURE__*/_react["default"].createElement(_searchInputField.SearchInputField, _extends({}, DEFAULT_PROPS, {
    large: true,
    focusOnMount: true
  }));
};

exports.FocusOnMount = FocusOnMount;

var MixinsMarginOnlySpacing = function MixinsMarginOnlySpacing() {
  return /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, _extends({
    Component: _searchInputField.SearchInputField
  }, DEFAULT_PROPS));
};

exports.MixinsMarginOnlySpacing = MixinsMarginOnlySpacing;

var MixinsStackee = function MixinsStackee() {
  return /*#__PURE__*/_react["default"].createElement(_stackeeChecker.StackeeChecker, _extends({
    Component: _searchInputField.SearchInputField
  }, DEFAULT_PROPS));
};

exports.MixinsStackee = MixinsStackee;