{"version":3,"sources":["../src/components/FormField/FormFieldContext.tsx","../src/components/FormField/useFormFieldContext.ts"],"names":["React","Fragment","jsx","FormFieldContext","useFormFieldContext"],"mappings":"AAAA,OAAOA,MAAW,QAeT,mBAAAC,EAAA,OAAAC,MAAA,oBAFF,IAAMC,EAAmBH,EAAM,cAAqC,CACzE,GAAI,OACJ,MAAOE,EAAAD,EAAA,EAAE,EACT,QAAS,GACT,YAAa,OACb,cAAe,OACf,MAAO,OACP,QAAS,OACT,QAAS,EACX,CAAC,ECtBD,OAAOD,MAAW,QAIX,SAASI,GAAsB,CACpC,OAAOJ,EAAM,WAAWG,CAAgB,CAC1C","sourcesContent":["import React from \"react\";\n\nexport type FormFieldContextValue = {\n  id: string | undefined;\n  label: React.ReactNode;\n  labelId: string;\n  description: React.ReactNode | undefined;\n  descriptionId: string | undefined;\n  error: React.ReactNode | undefined;\n  errorId: string | undefined;\n  isError: boolean;\n};\n\nexport const FormFieldContext = React.createContext<FormFieldContextValue>({\n  id: undefined,\n  label: <></>,\n  labelId: \"\",\n  description: undefined,\n  descriptionId: undefined,\n  error: undefined,\n  errorId: undefined,\n  isError: false,\n});\n","import React from \"react\";\n\nimport { FormFieldContext } from \"./FormFieldContext\";\n\nexport function useFormFieldContext() {\n  return React.useContext(FormFieldContext);\n}\n"]}