var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: !0 });
}, __copyProps = (to, from, except, desc) => {
  if (from && typeof from == "object" || typeof from == "function")
    for (let key of __getOwnPropNames(from))
      !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var FormInput_stories_exports = {};
__export(FormInput_stories_exports, {
  Variants: () => Variants,
  default: () => FormInput_stories_default
});
module.exports = __toCommonJS(FormInput_stories_exports);
var import_jsx_runtime = require("react/jsx-runtime"), import_yup = require("@hookform/resolvers/yup"), import_react_hook_form = require("react-hook-form"), import_tamagui = require("tamagui"), import_yup2 = require("yup"), import_storybook_utils = require("../storybook-utils"), import_FormInput = require("./FormInput"), import_context = require("./context"), schema = (0, import_yup2.object)({
  test: (0, import_yup2.string)()
}), FormInput_stories_default = {
  component: import_FormInput.FormInput
}, Variants = function() {
  var formMethods = (0, import_react_hook_form.useForm)({
    resolver: (0, import_yup.yupResolver)(schema)
  });
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.FormProvider, {
    formMethods,
    submitHandler: function() {
    },
    children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
      gap: "$4",
      children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_storybook_utils.RenderStage, {
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Tooltip",
            variant: "outlined",
            tooltip: "Hi! My name is John Wick."
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            helperText: "Helper text..."
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Multiline",
            variant: "outlined",
            helperText: "Helper text...",
            multiline: !0
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            error: !0,
            helperText: "Helper text..."
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            disabled: !0,
            helperText: "Helper text..."
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormInput.FormInput, {
            id: "test",
            label: "Loading",
            variant: "outlined",
            loading: !0,
            helperText: "Helper text..."
          })
        ]
      })
    })
  });
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Variants
});
//# sourceMappingURL=FormInput.stories.js.map
