import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { yupResolver } from "@hookform/resolvers/yup";
import { useForm } from "react-hook-form";
import { YStack } from "tamagui";
import { object, string } from "yup";
import { RenderStage } from "../storybook-utils.native.js";
import { FormInput } from "./FormInput.native.js";
import { FormProvider } from "./context.native.js";
var schema = object({
    test: string()
  }),
  FormInput_stories_default = {
    component: FormInput
  },
  Variants = function () {
    var formMethods = useForm({
      resolver: yupResolver(schema)
    });
    return /* @__PURE__ */_jsx(FormProvider, {
      formMethods,
      submitHandler: function () {},
      children: /* @__PURE__ */_jsx(YStack, {
        gap: "$4",
        children: /* @__PURE__ */_jsxs(RenderStage, {
          children: [/* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Tooltip",
            variant: "outlined",
            tooltip: "Hi! My name is John Wick."
          }), /* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            helperText: "Helper text..."
          }), /* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Multiline",
            variant: "outlined",
            helperText: "Helper text...",
            multiline: !0
          }), /* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            error: !0,
            helperText: "Helper text..."
          }), /* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Label",
            variant: "outlined",
            disabled: !0,
            helperText: "Helper text..."
          }), /* @__PURE__ */_jsx(FormInput, {
            id: "test",
            label: "Loading",
            variant: "outlined",
            loading: !0,
            helperText: "Helper text..."
          })]
        })
      })
    });
  };
export { Variants, FormInput_stories_default as default };
//# sourceMappingURL=FormInput.stories.native.js.map
