@levo-so/studio 0.1.108 → 0.1.109

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 (43) hide show
  1. package/{BillingStep-CJqmdIz2.js → BillingStep-DZeqbtfs.js} +1 -1
  2. package/{Button-DujHjtOV.js → Button-BMUB23Y7.js} +527 -91
  3. package/CollectionField-xa-jed3_.js +232 -0
  4. package/{DateTimeWidget-CbpvxQ9s.js → DateTimeWidget-DWbn_kXp.js} +4 -3
  5. package/{EntryCard-Drnobf4s.js → EntryCard-BNZ-0_Kv.js} +7 -4
  6. package/{LoginCard-B9HKjZEk.js → LoginCard-B1XlZfEU.js} +3 -3
  7. package/{LoginForm-DpgxFh89.js → LoginForm-NmDPe72V.js} +17 -17
  8. package/{LoginModal-CaqsScly.js → LoginModal-CVd08mNx.js} +2 -2
  9. package/{MessageCard-DojQRKnf.js → MessageCard-C2fU_Bo_.js} +2 -2
  10. package/{ModalManager-CaBZKQR2.js → ModalManager-Dqq7D60M.js} +1 -1
  11. package/{PendingApprovalCard-CrdOrMRu.js → PendingApprovalCard-CXOEpAbg.js} +3 -3
  12. package/{PhoneWidget-BxW2gL28.js → PhoneWidget-CtNIit2w.js} +4 -3
  13. package/{PopupRenderer-CV5HY1dP-hICGc5AG.js → PopupRenderer-SSn97BLs-DQfvcymq.js} +256 -260
  14. package/ProfileCard-CzL5uB2z.js +102 -0
  15. package/{RichTextWidget-DCzgJ9EA.js → RichTextWidget-DkRrKQqN.js} +4 -3
  16. package/{Toolbar-B5UZer_x.js → Toolbar-C3WDkSnO.js} +4 -4
  17. package/{VerifyButton-DFAg6STD.js → VerifyButton-TNkt-SDu.js} +1 -1
  18. package/{bookingCard-BgApvrcj.js → bookingCard-61Yx6JO-.js} +2 -2
  19. package/collection.d.ts +14 -6
  20. package/collection.js +8 -7
  21. package/dist-Cfv-YjpI.js +3469 -0
  22. package/getFieldValidations-CSkSV2hW.js +90 -0
  23. package/index.d.ts +235 -16
  24. package/index.js +1743 -1405
  25. package/{nodeAlignment-DKCIjzlR.js → nodeAlignment-BC_Uferw.js} +5 -5
  26. package/package.json +4 -4
  27. package/studio.css +1 -1
  28. package/{utils-CUqS5dMC.js → utils-BJLmuC5w.js} +1 -1
  29. package/widgets-K6ECnoJJ.js +335 -0
  30. package/CollectionField-BPl8E9MW.js +0 -318
  31. package/CollectionFormBuilder-BvFtiZeH.js +0 -3668
  32. package/dist-DZbXWctg.js +0 -97
  33. /package/{Beams-DboMUgCv.js → Beams-WJN38XSv.js} +0 -0
  34. /package/{CollectionInput-DcNJT5Pg.js → CollectionInput-CpNGIXJx.js} +0 -0
  35. /package/{Dots-a8xSboDv.js → Dots-DggLz5I7.js} +0 -0
  36. /package/{Gradient-NacpoDCM.js → Gradient-BSWJAu0a.js} +0 -0
  37. /package/{Grid-BJQvxnks.js → Grid-BFKl0MUt.js} +0 -0
  38. /package/{MessageFooter-C4qC8cem.js → MessageFooter-4qIEK91O.js} +0 -0
  39. /package/{Popover-DOvRAGzc.js → Popover-O1poOHk2.js} +0 -0
  40. /package/{Tooltip-CJINDx93.js → Tooltip-NEMQqPyr.js} +0 -0
  41. /package/{Waves-DUuT_IFr.js → Waves-BPEgTYoO.js} +0 -0
  42. /package/{authentication-ClOFcry8.js → authentication-hnV1BI8s.js} +0 -0
  43. /package/{card-E2LKF9nT.js → card-5ooLmYSr.js} +0 -0
package/dist-DZbXWctg.js DELETED
@@ -1,97 +0,0 @@
1
- "use client";
2
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
3
- import { t } from "./Button-lUfKisu8.js";
4
- import { T as n, a as r, c as i, i as a, l as o, n as s, o as c, r as l, t as u, w as d } from "./CollectionFormBuilder-BvFtiZeH.js";
5
- import { useEffect as f, useMemo as p } from "react";
6
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
7
- import g from "clsx";
8
- import { FormProvider as _, useForm as v } from "react-hook-form";
9
- //#region ../../libraries/react-collection/dist/lib/CollectionForm/CollectionForm.cssm.js
10
- var y = "_1dzarb20", b = "_1dzarb21", x = "_1dzarb23", S = "_1dzarb24", C = "_1dzarb25", w = "_1dzarb26", T = ({ hiddenFields: e, isLoading: r, initialValues: a, onSubmit: s, schema: c, uiConfig: l, submitButtonConfig: u, containerStyles: T, isDisabled: E, theme: D, enableVerification: O = !0 }) => {
11
- let k = p(() => {
12
- if (c) {
13
- let t = { ...c };
14
- return t.sections = t?.sections?.map((t) => (t.fields = t?.fields?.map((t) => ((e?.includes(t?.key) || e?.includes(t?.id)) && (t.hidden = !0), t)), t)), t;
15
- }
16
- return null;
17
- }, [c]), A = v({
18
- mode: "onTouched",
19
- disabled: E,
20
- defaultValues: {},
21
- resetOptions: { keepErrors: !0 }
22
- }), { formState: { isSubmitting: j } } = A, M = (e) => {
23
- s && s(e);
24
- };
25
- f(() => {
26
- if (k) {
27
- let e = {
28
- ...d(c),
29
- ...a
30
- };
31
- A.reset(e);
32
- }
33
- }, [k]);
34
- let N = r || j;
35
- return k ? /* @__PURE__ */ m(_, {
36
- ...A,
37
- children: /* @__PURE__ */ m(i, {
38
- ...D || {},
39
- children: /* @__PURE__ */ h("div", {
40
- className: y,
41
- children: [l?.hideFormHeading ? null : /* @__PURE__ */ m("h1", {
42
- className: g(b),
43
- children: "Create new"
44
- }), /* @__PURE__ */ m("div", {
45
- className: g(x, T),
46
- children: /* @__PURE__ */ h("form", {
47
- className: g(S, r && "_1dzarb27"),
48
- id: "collection-form",
49
- onSubmit: A.handleSubmit(M),
50
- children: [c?.sections?.map((e) => n(e?.fields || []) ? null : /* @__PURE__ */ h("div", {
51
- className: C,
52
- children: [!l?.hideSectionHeadings && /* @__PURE__ */ m("p", {
53
- className: "_1dzarb28",
54
- children: e?.label
55
- }), /* @__PURE__ */ m("div", {
56
- className: w,
57
- children: e?.fields?.map((e) => /* @__PURE__ */ m(o, {
58
- field: e,
59
- schema: c,
60
- settings: { enableVerification: O }
61
- }, e?.key))
62
- })]
63
- }, e.id)), u?.show && /* @__PURE__ */ m("div", {
64
- className: "_1dzarb29",
65
- children: /* @__PURE__ */ m(t, {
66
- className: u?.styles,
67
- disabled: E || N,
68
- type: "submit",
69
- children: N ? "Saving" : u?.text || "Save"
70
- })
71
- })]
72
- })
73
- })]
74
- })
75
- })
76
- }) : null;
77
- }, E = ({ hiddenFields: e, fetchedSchema: t, isLoading: n, enableVerification: r = !0, ...i }) => {
78
- let a = p(() => {
79
- let n = { ...t }, r = (t) => t?.map((t) => ((e?.includes(t.key) || e?.includes(t.id)) && (t.hidden = !0), t.fields = r(t.fields), t));
80
- return n.sections = n?.sections?.map((e) => (e.fields = r(e?.fields), e)), n;
81
- }, [t]);
82
- return n ? /* @__PURE__ */ m(s, {}) : a ? /* @__PURE__ */ m(l, {
83
- schema: a,
84
- enableVerification: r,
85
- ...i
86
- }) : null;
87
- }, D = /* @__PURE__ */ e({
88
- CollectionForm: () => T,
89
- CollectionFormBuilder: () => u,
90
- CollectionFormRenderer: () => E,
91
- FormBuilder: () => l,
92
- LevoFormProvider: () => r,
93
- useLevoForm: () => a,
94
- useLevoFormContext: () => c
95
- });
96
- //#endregion
97
- export { E as n, T as r, D as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes