@levo-so/react 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{CheckboxWidget-C4hO5xNP.js → CheckboxWidget-nJO8XlGD.js} +1 -1
  2. package/dist/{CollectionFormBuilder-nJWTPHeL.js → CollectionFormBuilder-DeGyMEXJ.js} +19 -19
  3. package/dist/{CurrencyWidget-CZC10BuG.js → CurrencyWidget-BaMho9Pw.js} +1 -1
  4. package/dist/{DateTimeWidget-C7PJ3I0X.js → DateTimeWidget-VCmX__cv.js} +1 -1
  5. package/dist/{DefaultFormVariant-CMwBglKk.js → DefaultFormVariant-fTWKRYI_.js} +6 -6
  6. package/dist/{DropdownWidget-6t1Azs7b.js → DropdownWidget-zAr9v_IY.js} +18 -18
  7. package/dist/{EmailWidget-pAm9hnZ9.js → EmailWidget-d3hSxbAS.js} +1 -1
  8. package/dist/{FormCaptcha-D2AaDZdK.js → FormCaptcha-YeElu90S.js} +1 -1
  9. package/dist/{GeocoderWidget-TZBlYaeC.js → GeocoderWidget-BOqaJMm1.js} +1 -1
  10. package/dist/{MultiGeocoderWidget-B-zhvJVk.js → MultiGeocoderWidget-BTffSkJX.js} +2 -2
  11. package/dist/{MultiTextWidget-Ciy7yoNk.js → MultiTextWidget-L2Eoz2Zv.js} +1 -1
  12. package/dist/{PhoneWidget-C_JKm3Kf.js → PhoneWidget-CnDhiovx.js} +1 -1
  13. package/dist/{RadioWidget-CXHvRIFJ.js → RadioWidget-CG01ys9E.js} +1 -1
  14. package/dist/{RichTextWidget-B8_J6aM2.js → RichTextWidget-DCX1Vpw4.js} +1 -1
  15. package/dist/{StepsFormVariant-gZTiDsQs.js → StepsFormVariant-eW9O8rik.js} +21 -21
  16. package/dist/{SwitchWidget-1ca0o1kt.js → SwitchWidget-CstjQ_nx.js} +1 -1
  17. package/dist/{TextWidget-BttCChJt.js → TextWidget-D4uLMuLS.js} +1 -1
  18. package/dist/{TextareaWidget-DsWOpkGn.js → TextareaWidget-CHgyJUuy.js} +1 -1
  19. package/dist/{ToggleCheckboxWidget-yJcUcHpk.js → ToggleCheckboxWidget-Cfwlrjn7.js} +1 -1
  20. package/dist/{Tooltip-DEBnSqlo.js → Tooltip-DPzkfrjl.js} +15 -14
  21. package/dist/{URLWidget-DPTwLvbi.js → URLWidget-CZE68DgS.js} +2 -2
  22. package/dist/UploadWidget-Dstuk_qo.js +656 -0
  23. package/dist/collection/components/widgets/uploadWidget/CommonPreview.d.ts +11 -0
  24. package/dist/collection/components/widgets/uploadWidget/CommonPreview.d.ts.map +1 -0
  25. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts.map +1 -1
  26. package/dist/collection/components/widgets/uploadWidget/FileUploadDropBox.d.ts.map +1 -1
  27. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts.map +1 -1
  28. package/dist/collection/components/widgets/uploadWidget/UploadWidget.d.ts.map +1 -1
  29. package/dist/collection/index.js +1 -1
  30. package/dist/components/Tooltip.d.ts +1 -0
  31. package/dist/components/Tooltip.d.ts.map +1 -1
  32. package/dist/components/index.js +1 -1
  33. package/dist/index.css +1 -1
  34. package/dist/index.js +2 -2
  35. package/package.json +2 -2
  36. package/dist/UploadWidget-Cg6EJDMD.js +0 -616
@@ -3,7 +3,7 @@ import { j as a } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as w, useEffect as B } from "react";
4
4
  import { useController as E } from "react-hook-form";
5
5
  import { c as C } from "./cn-C9QoOYNG.js";
6
- import { z as O, A as I, B as x } from "./CollectionFormBuilder-nJWTPHeL.js";
6
+ import { z as O, A as I, B as x } from "./CollectionFormBuilder-DeGyMEXJ.js";
7
7
  import { C as g } from "./Checbox-sq-atGlJ.js";
8
8
  import { I as S } from "./Input-2CvZ90f8.js";
9
9
  const L = ({ field: i }) => {
@@ -430,7 +430,7 @@ const xe = (e) => {
430
430
  children: e
431
431
  }) => /* @__PURE__ */ s.jsx("p", { className: "text-xs font-normal text-red-400 text-wrap", children: e }), at = ({
432
432
  children: e
433
- }) => /* @__PURE__ */ s.jsx("p", { className: b("text-xs font-normal text-gray-600"), children: e }), J = E.forwardRef(({ error: e, helperText: n, containerStyles: t, readOnly: r, children: c }, g) => /* @__PURE__ */ s.jsx(
433
+ }) => /* @__PURE__ */ s.jsx("p", { className: b("text-xs font-normal text-text-1"), children: e }), J = E.forwardRef(({ error: e, helperText: n, containerStyles: t, readOnly: r, children: c }, g) => /* @__PURE__ */ s.jsx(
434
434
  "div",
435
435
  {
436
436
  className: b(
@@ -915,26 +915,26 @@ const dt = E.lazy(
915
915
  }
916
916
  );
917
917
  }, pt = v(
918
- () => import("./MultiTextWidget-Ciy7yoNk.js")
919
- ), ie = v(() => import("./TextWidget-BttCChJt.js")), xt = v(
920
- () => import("./CurrencyWidget-CZC10BuG.js")
918
+ () => import("./MultiTextWidget-L2Eoz2Zv.js")
919
+ ), ie = v(() => import("./TextWidget-D4uLMuLS.js")), xt = v(
920
+ () => import("./CurrencyWidget-BaMho9Pw.js")
921
921
  ), ht = v(
922
- () => import("./CheckboxWidget-C4hO5xNP.js")
922
+ () => import("./CheckboxWidget-nJO8XlGD.js")
923
923
  ), ce = v(
924
- () => import("./DateTimeWidget-C7PJ3I0X.js")
924
+ () => import("./DateTimeWidget-VCmX__cv.js")
925
925
  ), de = v(
926
- () => import("./DropdownWidget-6t1Azs7b.js")
927
- ), yt = v(() => import("./EmailWidget-pAm9hnZ9.js")), ft = v(
928
- () => import("./GeocoderWidget-TZBlYaeC.js")
926
+ () => import("./DropdownWidget-zAr9v_IY.js")
927
+ ), yt = v(() => import("./EmailWidget-d3hSxbAS.js")), ft = v(
928
+ () => import("./GeocoderWidget-BOqaJMm1.js")
929
929
  ), jt = v(
930
- () => import("./MultiGeocoderWidget-B-zhvJVk.js")
931
- ), bt = v(() => import("./PhoneWidget-C_JKm3Kf.js")), vt = v(() => import("./RadioWidget-CXHvRIFJ.js")), Ct = v(
932
- () => import("./RichTextWidget-B8_J6aM2.js")
933
- ), wt = v(() => import("./SwitchWidget-1ca0o1kt.js")), kt = v(
934
- () => import("./TextareaWidget-DsWOpkGn.js")
930
+ () => import("./MultiGeocoderWidget-BTffSkJX.js")
931
+ ), bt = v(() => import("./PhoneWidget-CnDhiovx.js")), vt = v(() => import("./RadioWidget-CG01ys9E.js")), Ct = v(
932
+ () => import("./RichTextWidget-DCX1Vpw4.js")
933
+ ), wt = v(() => import("./SwitchWidget-CstjQ_nx.js")), kt = v(
934
+ () => import("./TextareaWidget-CHgyJUuy.js")
935
935
  ), Wt = v(
936
- () => import("./ToggleCheckboxWidget-yJcUcHpk.js")
937
- ), _t = v(() => import("./URLWidget-DPTwLvbi.js")), K = v(() => import("./UploadWidget-Cg6EJDMD.js")), Nt = ({
936
+ () => import("./ToggleCheckboxWidget-Cfwlrjn7.js")
937
+ ), _t = v(() => import("./URLWidget-CZE68DgS.js")), K = v(() => import("./UploadWidget-Dstuk_qo.js")), Nt = ({
938
938
  field: e,
939
939
  isInternal: n
940
940
  }) => {
@@ -1103,9 +1103,9 @@ const dt = E.lazy(
1103
1103
  e
1104
1104
  ] });
1105
1105
  }, ns = () => E.useContext(Ce), Tt = E.lazy(
1106
- () => import("./DefaultFormVariant-CMwBglKk.js")
1106
+ () => import("./DefaultFormVariant-fTWKRYI_.js")
1107
1107
  ), Mt = E.lazy(
1108
- () => import("./StepsFormVariant-gZTiDsQs.js")
1108
+ () => import("./StepsFormVariant-eW9O8rik.js")
1109
1109
  ), It = ({
1110
1110
  formVariant: e,
1111
1111
  ...n
@@ -1157,7 +1157,7 @@ const dt = E.lazy(
1157
1157
  }) : (console.error(
1158
1158
  "[CollectionFormBuilder] Collection ID or Workspace ID is missing."
1159
1159
  ), g(!1));
1160
- }, [e]), /* @__PURE__ */ s.jsx("div", { className: "w-full h-auto", children: c ? /* @__PURE__ */ s.jsx("div", { className: "min-h-[400px] w-full flex justify-center items-center bg-white rounded-md", children: /* @__PURE__ */ s.jsx(Se, {}) }) : o ? /* @__PURE__ */ s.jsx(It, { schema: o, ...t }) : null });
1160
+ }, [e]), /* @__PURE__ */ s.jsx("div", { className: "w-full h-auto", children: c ? /* @__PURE__ */ s.jsx("div", { className: "min-h-[400px] w-full flex justify-center items-center rounded-md", children: /* @__PURE__ */ s.jsx(Se, {}) }) : o ? /* @__PURE__ */ s.jsx(It, { schema: o, ...t }) : null });
1161
1161
  };
1162
1162
  export {
1163
1163
  J as A,
@@ -2,7 +2,7 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as j } from "react-hook-form";
3
3
  import { NumericFormat as F } from "react-number-format";
4
4
  import { c as w } from "./cn-C9QoOYNG.js";
5
- import { z as C, A as B, B as N } from "./CollectionFormBuilder-nJWTPHeL.js";
5
+ import { z as C, A as B, B as N } from "./CollectionFormBuilder-DeGyMEXJ.js";
6
6
  const V = ({
7
7
  field: r,
8
8
  ...m
@@ -4,7 +4,7 @@ import { Calendar as w, X as N } from "lucide-react";
4
4
  import * as l from "react-datepicker";
5
5
  import { useController as v } from "react-hook-form";
6
6
  import { c as p } from "./cn-C9QoOYNG.js";
7
- import { z as M, A as D, B as C } from "./CollectionFormBuilder-nJWTPHeL.js";
7
+ import { z as M, A as D, B as C } from "./CollectionFormBuilder-DeGyMEXJ.js";
8
8
  import { I as F } from "./Input-2CvZ90f8.js";
9
9
  const T = l.default.default || l.default || l, I = (e) => {
10
10
  if (e) {
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
2
  import { FormProvider as y } from "react-hook-form";
3
3
  import { c as t } from "./cn-C9QoOYNG.js";
4
- import { D as F, F as g } from "./CollectionFormBuilder-nJWTPHeL.js";
5
- import { u as w, S as N, F as b } from "./FormCaptcha-D2AaDZdK.js";
4
+ import { D as F, F as N } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
+ import { u as g, S as w, F as b } from "./FormCaptcha-YeElu90S.js";
6
6
  import { B as D } from "./Spinner-BnrQ9e_i.js";
7
7
  const _ = () => {
8
8
  var n;
@@ -20,7 +20,7 @@ const _ = () => {
20
20
  isLoading: u,
21
21
  handleContentId: f,
22
22
  handleSubmit: j
23
- } = w({
23
+ } = g({
24
24
  schema: l,
25
25
  saveToRemote: !0
26
26
  }), {
@@ -28,7 +28,7 @@ const _ = () => {
28
28
  } = o, S = o.watch("__captcha");
29
29
  return /* @__PURE__ */ e.jsxs(y, { ...o, children: [
30
30
  /* @__PURE__ */ e.jsx(
31
- N,
31
+ w,
32
32
  {
33
33
  getContentId: (s) => f(s),
34
34
  isError: h,
@@ -39,7 +39,7 @@ const _ = () => {
39
39
  "form",
40
40
  {
41
41
  className: t(
42
- "w-full bg-white rounded-md flex flex-col gap-6 px-4 md:px-8 py-6",
42
+ "w-full rounded-md flex flex-col gap-6 px-4 md:px-8 py-6",
43
43
  u && "opacity-50 pointer-events-none"
44
44
  ),
45
45
  id: "collection-form",
@@ -50,7 +50,7 @@ const _ = () => {
50
50
  return /* @__PURE__ */ e.jsxs("div", { className: "w-full", children: [
51
51
  !(m != null && m.hideSectionHeadings) && /* @__PURE__ */ e.jsx("p", { className: t("mb-4 text-lg font-semibold"), children: s == null ? void 0 : s.label }),
52
52
  /* @__PURE__ */ e.jsx("div", { className: t("flex flex-col gap-4"), children: (i = s == null ? void 0 : s.fields) == null ? void 0 : i.map((r) => r && !r.hidden ? /* @__PURE__ */ e.jsx(
53
- g,
53
+ N,
54
54
  {
55
55
  field: r,
56
56
  isInternal: d
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { j as d } from "./jsx-runtime-B6kdoens.js";
3
- import { useState as x, useEffect as w } from "react";
4
- import { useController as B } from "react-hook-form";
5
- import D from "react-select";
3
+ import { useState as f, useEffect as w } from "react";
4
+ import { useController as R } from "react-hook-form";
5
+ import B from "react-select";
6
6
  import { c as y } from "./cn-C9QoOYNG.js";
7
- import { z as N, A as k, B as q } from "./CollectionFormBuilder-nJWTPHeL.js";
7
+ import { z as D, A as N, B as q } from "./CollectionFormBuilder-DeGyMEXJ.js";
8
8
  import { I as L } from "./Input-2CvZ90f8.js";
9
9
  const G = ({
10
10
  field: s,
11
11
  ...o
12
12
  }) => {
13
13
  var j;
14
- const [t, I] = x([]), [h, g] = x(""), [p, i] = x(!1), {
14
+ const [t, I] = f([]), [h, g] = f(""), [p, i] = f(!1), {
15
15
  key: C = "",
16
16
  label: v = "",
17
17
  helper_text: S = "",
@@ -19,12 +19,12 @@ const G = ({
19
19
  values: n = [],
20
20
  options: c = {}
21
21
  } = s, u = C, {
22
- field: { value: l, onBlur: E, onChange: a, disabled: F, ...M },
23
- fieldState: f
24
- } = B({
22
+ field: { value: l, onBlur: k, onChange: a, disabled: E, ...F },
23
+ fieldState: x
24
+ } = R({
25
25
  name: u,
26
- rules: N(s)
27
- }), P = !!(s != null && s.required), R = (j = f == null ? void 0 : f.error) == null ? void 0 : j.message, m = !!(c != null && c.custom_input);
26
+ rules: D(s)
27
+ }), M = !!(s != null && s.required), P = (j = x == null ? void 0 : x.error) == null ? void 0 : j.message, m = !!(c != null && c.custom_input);
28
28
  return w(() => {
29
29
  if (n != null && n.length) {
30
30
  const r = [...n == null ? void 0 : n.map((b) => ({
@@ -40,10 +40,10 @@ const G = ({
40
40
  !(o != null && o.isMulti) && m && typeof l == "string" && l && ((t == null ? void 0 : t.findIndex(
41
41
  (r) => (r == null ? void 0 : r.value) !== "Other" && (r == null ? void 0 : r.value) === l
42
42
  )) === -1 ? (i(!0), g(l)) : i(!1));
43
- }, [l, t]), /* @__PURE__ */ d.jsxs(k, { error: R, helperText: S, readOnly: O, children: [
44
- v && /* @__PURE__ */ d.jsx(q, { htmlFor: u, isRequired: P, children: v }),
43
+ }, [l, t]), /* @__PURE__ */ d.jsxs(N, { error: P, helperText: S, readOnly: O, children: [
44
+ v && /* @__PURE__ */ d.jsx(q, { htmlFor: u, isRequired: M, children: v }),
45
45
  /* @__PURE__ */ d.jsx(
46
- D,
46
+ B,
47
47
  {
48
48
  id: u,
49
49
  value: p ? {
@@ -55,17 +55,17 @@ const G = ({
55
55
  onChange: (e) => {
56
56
  m && (e == null ? void 0 : e.value) === "Other" && (e == null ? void 0 : e.label) === "Other, Please Specify" ? (i(!0), a(h)) : (i(!1), o != null && o.isMulti ? a(e == null ? void 0 : e.map((r) => r == null ? void 0 : r.value)) : a(e == null ? void 0 : e.value));
57
57
  },
58
- onBlur: () => E(),
58
+ onBlur: () => k(),
59
59
  options: t,
60
- isDisabled: F,
60
+ isDisabled: E,
61
61
  menuPlacement: "auto",
62
- ...M,
62
+ ...F,
63
63
  ...o,
64
64
  unstyled: !0,
65
65
  classNames: {
66
66
  container: () => y("w-full min-w-none h-auto min-h-none"),
67
67
  control: ({ isFocused: e, isMulti: r, isDisabled: b }) => y(
68
- "w-full pl-3",
68
+ "w-full pl-3 text-black/80",
69
69
  r ? "!min-h-9 h-auto" : "h-9 !min-h-none",
70
70
  "rounded-md border bg-transparent hover:cursor-pointer border-input text-sm shadow-sm transition-colors",
71
71
  "flex ",
@@ -87,7 +87,7 @@ const G = ({
87
87
  groupHeading: () => "ml-3 mt-2 mb-1 text-gray-500 text-sm",
88
88
  placeholder: () => "text-gray-500 pl-1 py-0.5",
89
89
  option: ({ isSelected: e, isFocused: r }) => y(
90
- "text-sm font-medium hover:cursor-pointer px-3 py-2 rounded",
90
+ "text-black/80 text-sm font-medium hover:cursor-pointer px-3 py-2 rounded",
91
91
  r && "bg-gray-100 active:bg-gray-200",
92
92
  e && "text-white bg-primary/80"
93
93
  ),
@@ -1,7 +1,7 @@
1
1
  import { j as r } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as y } from "react-hook-form";
3
3
  import { G as C } from "./Spinner-BnrQ9e_i.js";
4
- import { z as F, A as I, B as V } from "./CollectionFormBuilder-nJWTPHeL.js";
4
+ import { z as F, A as I, B as V } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
5
  import { I as b } from "./Input-2CvZ90f8.js";
6
6
  function w(e) {
7
7
  return C({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z" }, child: [] }] })(e);
@@ -3,7 +3,7 @@ import { useEffect as k, useState as b, useRef as J } from "react";
3
3
  import { useFormContext as W, useWatch as Y, useForm as B, useController as G } from "react-hook-form";
4
4
  import { useDebouncedCallback as H } from "use-debounce";
5
5
  import { u as x } from "./LevoProvider-BAZy7_tP.js";
6
- import { D as C, s as z, h as Q, c as X, A as Z } from "./CollectionFormBuilder-nJWTPHeL.js";
6
+ import { D as C, s as z, h as Q, c as X, A as Z } from "./CollectionFormBuilder-DeGyMEXJ.js";
7
7
  import { s as m } from "./Sonner-t6JVKA0a.js";
8
8
  import { e as D } from "./errorHandler-_34Yv8wA.js";
9
9
  import { a as h } from "./isEmptyObject-C5s4GzLE.js";
@@ -3,7 +3,7 @@ import { j as o } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as p, useEffect as v } from "react";
4
4
  import { useController as z } from "react-hook-form";
5
5
  import { o as T } from "./Spinner-BnrQ9e_i.js";
6
- import { z as k, A as q, B as A } from "./CollectionFormBuilder-nJWTPHeL.js";
6
+ import { z as k, A as q, B as A } from "./CollectionFormBuilder-DeGyMEXJ.js";
7
7
  import { I as E } from "./Input-2CvZ90f8.js";
8
8
  import { u as O } from "./LevoProvider-BAZy7_tP.js";
9
9
  const $ = ({ field: t }) => {
@@ -2,8 +2,8 @@
2
2
  import { j as e } from "./jsx-runtime-B6kdoens.js";
3
3
  import { Plus as m } from "lucide-react";
4
4
  import { useFieldArray as n } from "react-hook-form";
5
- import { B as c } from "./CollectionFormBuilder-nJWTPHeL.js";
6
- import { GeocoderWidget as d } from "./GeocoderWidget-TZBlYaeC.js";
5
+ import { B as c } from "./CollectionFormBuilder-DeGyMEXJ.js";
6
+ import { GeocoderWidget as d } from "./GeocoderWidget-BOqaJMm1.js";
7
7
  import { B as p } from "./Spinner-BnrQ9e_i.js";
8
8
  const k = ({
9
9
  field: l
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as A } from "react-hook-form";
3
- import { z as C, A as b, B as q } from "./CollectionFormBuilder-nJWTPHeL.js";
3
+ import { z as C, A as b, B as q } from "./CollectionFormBuilder-DeGyMEXJ.js";
4
4
  import { I } from "./Input-2CvZ90f8.js";
5
5
  const f = ({ field: r }) => {
6
6
  var l;
@@ -3,7 +3,7 @@ import { j as o } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as f } from "react-hook-form";
4
4
  import { PhoneInput as g } from "react-international-phone";
5
5
  import { c as l } from "./cn-C9QoOYNG.js";
6
- import { z as x, A as v, B as y } from "./CollectionFormBuilder-nJWTPHeL.js";
6
+ import { z as x, A as v, B as y } from "./CollectionFormBuilder-DeGyMEXJ.js";
7
7
  const P = ({ field: e }) => {
8
8
  const { key: u = "", label: t = "", helper_text: c = "", readonly: n = !1 } = e, s = u, {
9
9
  field: { value: d, onBlur: a, onChange: i, ...m },
@@ -5,7 +5,7 @@ import * as d from "react";
5
5
  import { useController as F } from "react-hook-form";
6
6
  import { G as B } from "./Spinner-BnrQ9e_i.js";
7
7
  import { c as N } from "./cn-C9QoOYNG.js";
8
- import { z as E, A as G, B as f } from "./CollectionFormBuilder-nJWTPHeL.js";
8
+ import { z as E, A as G, B as f } from "./CollectionFormBuilder-DeGyMEXJ.js";
9
9
  import { I as V } from "./Input-2CvZ90f8.js";
10
10
  function q(s) {
11
11
  return B({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(s);
@@ -19,7 +19,7 @@ import { useState as q, useEffect as D } from "react";
19
19
  import { useController as G } from "react-hook-form";
20
20
  import { G as p, p as J, q as V, r as W, s as Z, t as _, u as P, v as K, w as Q, x as X, y as Y, z as $, A as nn } from "./Spinner-BnrQ9e_i.js";
21
21
  import { c as j } from "./cn-C9QoOYNG.js";
22
- import { z as ln, A as en, B as sn } from "./CollectionFormBuilder-nJWTPHeL.js";
22
+ import { z as ln, A as en, B as sn } from "./CollectionFormBuilder-DeGyMEXJ.js";
23
23
  function an(n) {
24
24
  return p({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }, child: [] }] })(n);
25
25
  }
@@ -3,13 +3,13 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as I, useMemo as y } from "react";
4
4
  import { FormProvider as T } from "react-hook-form";
5
5
  import { c as F } from "./cn-C9QoOYNG.js";
6
- import { D as N, F as _ } from "./CollectionFormBuilder-nJWTPHeL.js";
7
- import { u as C, S as H, F as M } from "./FormCaptcha-D2AaDZdK.js";
6
+ import { D as N, F as _ } from "./CollectionFormBuilder-DeGyMEXJ.js";
7
+ import { u as C, S as H, F as M } from "./FormCaptcha-YeElu90S.js";
8
8
  import { B as g } from "./Spinner-BnrQ9e_i.js";
9
9
  const Y = () => {
10
10
  const [n, a] = I(0), { containerStyles: m } = N(), l = () => {
11
11
  a((o) => o - 1);
12
- }, s = () => {
12
+ }, e = () => {
13
13
  a((o) => o + 1);
14
14
  }, c = (o) => {
15
15
  a(o);
@@ -18,26 +18,26 @@ const Y = () => {
18
18
  q,
19
19
  {
20
20
  currentSectionIndex: n,
21
- handleNext: s,
21
+ handleNext: e,
22
22
  handlePrev: l,
23
23
  goToIndex: c
24
24
  }
25
25
  ) });
26
26
  }, q = ({ currentSectionIndex: n, handleNext: a, handlePrev: m, goToIndex: l }) => {
27
27
  var h, j, v;
28
- const { schema: s, isInternal: c, isDisabled: o, submitButtonConfig: i, uiConfig: d } = N(), r = y(
28
+ const { schema: e, isInternal: c, isDisabled: o, submitButtonConfig: i, uiConfig: d } = N(), r = y(
29
29
  () => {
30
- var e;
31
- return (e = s == null ? void 0 : s.sections) == null ? void 0 : e[n];
30
+ var s;
31
+ return (s = e == null ? void 0 : e.sections) == null ? void 0 : s[n];
32
32
  },
33
33
  [n]
34
34
  ), w = y(() => {
35
- if (s) {
36
- const e = { ...s };
37
- return r && e && (e.sections = [r]), e;
35
+ if (e) {
36
+ const s = { ...e };
37
+ return r && s && (s.sections = [r]), s;
38
38
  }
39
39
  return null;
40
- }, [r]), x = n === Number((h = s == null ? void 0 : s.sections) == null ? void 0 : h.length) - 1, {
40
+ }, [r]), x = n === Number((h = e == null ? void 0 : e.sections) == null ? void 0 : h.length) - 1, {
41
41
  methods: u,
42
42
  handleSubmit: E,
43
43
  isLoading: L,
@@ -53,11 +53,11 @@ const Y = () => {
53
53
  onSubmitSuccess: () => {
54
54
  l(0);
55
55
  },
56
- onSubmitError: (e) => {
56
+ onSubmitError: (s) => {
57
57
  var S;
58
- if (Array.isArray(e) && (e != null && e[0])) {
59
- const R = e == null ? void 0 : e[0];
60
- (S = s == null ? void 0 : s.sections) == null || S.forEach((p, z) => {
58
+ if (Array.isArray(s) && (s != null && s[0])) {
59
+ const R = s == null ? void 0 : s[0];
60
+ (S = e == null ? void 0 : e.sections) == null || S.forEach((p, z) => {
61
61
  var b;
62
62
  ((b = p == null ? void 0 : p.fields) == null ? void 0 : b.find((A) => A.key === R.param)) && l(z);
63
63
  });
@@ -70,7 +70,7 @@ const Y = () => {
70
70
  /* @__PURE__ */ t.jsx(
71
71
  H,
72
72
  {
73
- getContentId: (e) => D(e),
73
+ getContentId: (s) => D(s),
74
74
  isError: P,
75
75
  currentValues: V
76
76
  }
@@ -79,7 +79,7 @@ const Y = () => {
79
79
  "form",
80
80
  {
81
81
  className: F(
82
- "w-full bg-white rounded-md border border-[rgb(229, 231, 235)] min-h-12 px-4 md:px-8 py-6",
82
+ "w-full rounded-md border border-[rgb(229, 231, 235)] min-h-12 px-4 md:px-8 py-6",
83
83
  L && "opacity-50 pointer-events-none"
84
84
  ),
85
85
  id: "collection-form",
@@ -91,17 +91,17 @@ const Y = () => {
91
91
  "Step ",
92
92
  n + 1,
93
93
  "/",
94
- ((j = s == null ? void 0 : s.sections) == null ? void 0 : j.length) || 1
94
+ ((j = e == null ? void 0 : e.sections) == null ? void 0 : j.length) || 1
95
95
  ] })
96
96
  ] }),
97
97
  /* @__PURE__ */ t.jsxs("div", { className: "w-full flex flex-col gap-6", children: [
98
- (v = r == null ? void 0 : r.fields) == null ? void 0 : v.map((e) => e && !e.hidden ? /* @__PURE__ */ t.jsx(
98
+ (v = r == null ? void 0 : r.fields) == null ? void 0 : v.map((s) => s && !s.hidden ? /* @__PURE__ */ t.jsx(
99
99
  _,
100
100
  {
101
- field: e,
101
+ field: s,
102
102
  isInternal: c
103
103
  },
104
- e == null ? void 0 : e.key
104
+ s == null ? void 0 : s.key
105
105
  ) : null),
106
106
  !c && x && /* @__PURE__ */ t.jsx(M, {})
107
107
  ] }),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as k } from "react-hook-form";
4
- import { z as w, A as j, B as v } from "./CollectionFormBuilder-nJWTPHeL.js";
4
+ import { z as w, A as j, B as v } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
5
  import * as c from "@radix-ui/react-switch";
6
6
  import * as y from "react";
7
7
  import { c as d } from "./cn-C9QoOYNG.js";
@@ -1,7 +1,7 @@
1
1
  import { j as t } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as g, get as h } from "react-hook-form";
3
3
  import { c as j } from "./cn-C9QoOYNG.js";
4
- import { A as F, B as b, z as y } from "./CollectionFormBuilder-nJWTPHeL.js";
4
+ import { A as F, B as b, z as y } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
5
  import { I as f } from "./Input-2CvZ90f8.js";
6
6
  const k = ({
7
7
  field: r,
@@ -1,7 +1,7 @@
1
1
  import { j as s } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as u, get as x } from "react-hook-form";
3
3
  import { c as b } from "./cn-C9QoOYNG.js";
4
- import { A as g, B as f, z as h } from "./CollectionFormBuilder-nJWTPHeL.js";
4
+ import { A as g, B as f, z as h } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
5
  const w = ({ field: e }) => {
6
6
  var a;
7
7
  const {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as p } from "react-hook-form";
4
- import { z as u, A as g, B as C } from "./CollectionFormBuilder-nJWTPHeL.js";
4
+ import { z as u, A as g, B as C } from "./CollectionFormBuilder-DeGyMEXJ.js";
5
5
  import { C as f } from "./Checbox-sq-atGlJ.js";
6
6
  const y = ({
7
7
  field: e
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { j as t } from "./jsx-runtime-B6kdoens.js";
3
3
  import * as o from "@radix-ui/react-tooltip";
4
- import * as n from "react";
5
- import { c as m } from "./cn-C9QoOYNG.js";
6
- const x = o.Provider, l = o.Root, p = o.Trigger, T = o.Portal, r = n.forwardRef(({ className: a, sideOffset: e = 4, ...s }, i) => /* @__PURE__ */ t.jsx(
4
+ import * as m from "react";
5
+ import { c as l } from "./cn-C9QoOYNG.js";
6
+ const T = o.Provider, p = o.Root, c = o.Trigger, u = o.Portal, r = m.forwardRef(({ className: a, sideOffset: e = 4, ...s }, i) => /* @__PURE__ */ t.jsx(
7
7
  o.Content,
8
8
  {
9
9
  ref: i,
10
10
  sideOffset: e,
11
- className: m(
11
+ className: l(
12
12
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
13
  a
14
14
  ),
@@ -16,21 +16,22 @@ const x = o.Provider, l = o.Root, p = o.Trigger, T = o.Portal, r = n.forwardRef(
16
16
  }
17
17
  ));
18
18
  r.displayName = o.Content.displayName;
19
- const u = ({
19
+ const g = ({
20
20
  children: a,
21
21
  label: e,
22
22
  labelClassName: s,
23
23
  contentClassName: i,
24
- asChild: d = !0
25
- }) => /* @__PURE__ */ t.jsxs(l, { children: [
26
- e && /* @__PURE__ */ t.jsx(r, { className: s, children: /* @__PURE__ */ t.jsx("p", { className: i, children: e }) }),
27
- /* @__PURE__ */ t.jsx(p, { asChild: d, children: a })
24
+ asChild: d = !0,
25
+ contentProps: n = {}
26
+ }) => /* @__PURE__ */ t.jsxs(p, { children: [
27
+ e && /* @__PURE__ */ t.jsx(r, { className: s, ...n, children: /* @__PURE__ */ t.jsx("p", { className: i, children: e }) }),
28
+ /* @__PURE__ */ t.jsx(c, { asChild: d, children: a })
28
29
  ] });
29
30
  export {
30
- u as S,
31
- l as T,
32
- p as a,
31
+ g as S,
32
+ p as T,
33
+ c as a,
33
34
  r as b,
34
- x as c,
35
- T as d
35
+ T as c,
36
+ u as d
36
37
  };
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
- import { H as s } from "./CollectionFormBuilder-nJWTPHeL.js";
3
- import r from "./TextWidget-BttCChJt.js";
2
+ import { H as s } from "./CollectionFormBuilder-DeGyMEXJ.js";
3
+ import r from "./TextWidget-D4uLMuLS.js";
4
4
  const a = (t) => /* @__PURE__ */ e.jsx(
5
5
  r,
6
6
  {