UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

40 lines (39 loc) 1.17 kB
import e from "react"; import { FormStep as d } from "./index.es125.js"; import { FormNavigation as p } from "./index.es126.js"; import { FormReadOnlyView as E } from "./index.es127.js"; import { FormStructureProvider as g } from "./index.es128.js"; import { FormValuesProvider as s } from "./index.es129.js"; const N = ({ structure: r, initialValues: o = {}, onSubmit: m, onAssetUpload: t, readOnly: l = !1, onGoToNextStep: a, onGoToPreviousStep: f, onToggleImageEditor: n, isSubmitting: i = !1, testMode: c = !1 }) => l ? /* @__PURE__ */ e.createElement(E, { structure: r, values: o }) : /* @__PURE__ */ e.createElement(g, { structure: r }, /* @__PURE__ */ e.createElement( s, { initialValues: o, onSubmit: m, onAssetUpload: t, onToggleImageEditor: n }, /* @__PURE__ */ e.createElement("div", { id: "form-renderer", className: " flex flex-col h-full " }, /* @__PURE__ */ e.createElement(d, null), /* @__PURE__ */ e.createElement( p, { isSubmitting: i, onGoToNextStep: a, onGoToPreviousStep: f, testMode: c } )) )); export { N as FormRenderer }; //# sourceMappingURL=index.es62.js.map