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 FormSelect_stories_exports = {};
__export(FormSelect_stories_exports, {
  Variants: () => Variants,
  default: () => FormSelect_stories_default
});
module.exports = __toCommonJS(FormSelect_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_yup2 = require("yup"), import_storybook_utils = require("../storybook-utils"), import_FormSelect = require("./FormSelect"), import_context = require("./context"), FormSelect_stories_default = {
  component: import_FormSelect.FormSelect,
  decorators: []
}, options = [
  {
    label: "Option A",
    value: "A"
  },
  {
    label: "Option B",
    value: "B"
  }
], 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.jsxs)(import_storybook_utils.RenderStage, {
      children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormSelect.FormSelect, {
          id: "property",
          label: "Standard",
          options,
          supportingText: "Standard select"
        }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormSelect.FormSelect, {
          id: "property",
          label: "Loading",
          options,
          loading: !0,
          supportingText: "Loading state"
        }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormSelect.FormSelect, {
          id: "property",
          label: "Error",
          options,
          error: !0,
          supportingText: "Error state"
        }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormSelect.FormSelect, {
          id: "property",
          label: "Disabled",
          options,
          disabled: !0,
          supportingText: "Disabled state"
        })
      ]
    })
  });
}, schema = (0, import_yup2.object)({
  property: (0, import_yup2.string)().required()
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Variants
});
//# sourceMappingURL=FormSelect.stories.js.map
