import { yupResolver } from "@hookform/resolvers/yup";
import { useForm } from "react-hook-form";
import { YStack } from "tamagui";
import { object, number } from "yup";
import { RenderStage } from "../storybook-utils";
import { FormNumericalInput } from "./FormNumericalInput";
import { FormProvider } from "./context";
import { jsx, jsxs } from "react/jsx-runtime";
const schema = object({
  test: number()
});
var FormNumericalInput_stories_default = {
  component: FormNumericalInput
};
const Variants = () => {
  const formMethods = useForm({
    resolver: yupResolver(schema)
  });
  return /* @__PURE__ */ jsx(FormProvider, { formMethods, submitHandler: () => {
  }, children: /* @__PURE__ */ jsx(YStack, { gap: "$4", children: /* @__PURE__ */ jsxs(RenderStage, { children: [
    /* @__PURE__ */ jsx(
      FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ jsx(
      FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        error: !0,
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ jsx(
      FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        disabled: !0,
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ jsx(
      FormNumericalInput,
      {
        id: "test",
        label: "Loading",
        variant: "outlined",
        loading: !0,
        helperText: "Helper text..."
      }
    )
  ] }) }) });
};
export {
  Variants,
  FormNumericalInput_stories_default as default
};
//# sourceMappingURL=FormNumericalInput.stories.js.map
