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 FormNumericalInput_stories_exports = {};
__export(FormNumericalInput_stories_exports, {
  Variants: () => Variants,
  default: () => FormNumericalInput_stories_default
});
module.exports = __toCommonJS(FormNumericalInput_stories_exports);
var 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_FormNumericalInput = require("./FormNumericalInput"), import_context = require("./context"), import_jsx_runtime = require("react/jsx-runtime");
const schema = (0, import_yup2.object)({
  test: (0, import_yup2.number)()
});
var FormNumericalInput_stories_default = {
  component: import_FormNumericalInput.FormNumericalInput
};
const Variants = () => {
  const 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: () => {
  }, 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_FormNumericalInput.FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
      import_FormNumericalInput.FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        error: !0,
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
      import_FormNumericalInput.FormNumericalInput,
      {
        id: "test",
        label: "Label",
        variant: "outlined",
        disabled: !0,
        helperText: "Helper text..."
      }
    ),
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
      import_FormNumericalInput.FormNumericalInput,
      {
        id: "test",
        label: "Loading",
        variant: "outlined",
        loading: !0,
        helperText: "Helper text..."
      }
    )
  ] }) }) });
};
//# sourceMappingURL=FormNumericalInput.stories.js.map
