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, number } from "yup";
import { RenderStage } from "../storybook-utils.native.js";
import { FormNumericalInput } from "./FormNumericalInput.native.js";
import { FormProvider } from "./context.native.js";
var schema = object({
    test: number()
  }),
  FormNumericalInput_stories_default = {
    component: FormNumericalInput
  },
  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(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.native.js.map
