@levo-so/studio 0.1.108 → 0.1.110
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.
- package/{BillingStep-CJqmdIz2.js → BillingStep-CY2MHQ-L.js} +1 -1
- package/{Button-DujHjtOV.js → Button-DjphTnCg.js} +545 -97
- package/{CollectionField-BPl8E9MW.js → CollectionField-DrJuHNsg.js} +38 -38
- package/{DateTimeWidget-CbpvxQ9s.js → DateTimeWidget-BVHZh4EV.js} +13 -13
- package/{EntryCard-Drnobf4s.js → EntryCard-BYONyIm5.js} +7 -4
- package/{LoginCard-B9HKjZEk.js → LoginCard-CrtSHdaR.js} +3 -3
- package/{LoginForm-DpgxFh89.js → LoginForm-DeYsk4kd.js} +18 -18
- package/{LoginModal-CaqsScly.js → LoginModal-BbDfB4S9.js} +3 -3
- package/{MessageCard-DojQRKnf.js → MessageCard-x6jPClGi.js} +2 -2
- package/{MessageFooter-C4qC8cem.js → MessageFooter-CHuPnL_D.js} +1 -1
- package/{ModalManager-CaBZKQR2.js → ModalManager-DQVNPEuG.js} +1 -1
- package/{PendingApprovalCard-CrdOrMRu.js → PendingApprovalCard-CsnyrSsa.js} +3 -3
- package/{PhoneWidget-BxW2gL28.js → PhoneWidget-BaDSMSW5.js} +5 -5
- package/{PopupRenderer-CV5HY1dP-hICGc5AG.js → PopupRenderer-Dd9zoNIY-Cx663DmW.js} +346 -315
- package/ProfileCard-Dg5TY1Mw.js +102 -0
- package/{RichTextWidget-DCzgJ9EA.js → RichTextWidget-yaDCZwIo.js} +10 -10
- package/{RteThemeProvider-Cfepkyer.js → RteThemeProvider-LFGzAYi1.js} +2 -2
- package/{Toolbar-B5UZer_x.js → Toolbar-D3PnF7Ud.js} +4 -4
- package/{VerifyButton-DFAg6STD.js → VerifyButton-6BIXAEGp.js} +1 -1
- package/{bookingCard-BgApvrcj.js → bookingCard-D40dbgvH.js} +3 -3
- package/collection.d.ts +14 -6
- package/collection.js +6 -7
- package/dist-bHoi1bCB.js +3795 -0
- package/index.d.ts +312 -18
- package/index.js +2709 -2177
- package/{inlineCollectionTheme-WpCvMKrW.js → inlineCollectionTheme-D2w17LHX.js} +1 -1
- package/{inlineRteTheme-Ajq9PNpQ.js → inlineRteTheme-abXxag3B.js} +1 -1
- package/{nodeAlignment-DKCIjzlR.js → nodeAlignment-BC_Uferw.js} +5 -5
- package/package.json +5 -5
- package/studio.css +1 -1
- package/{utils-CUqS5dMC.js → utils-C_tr8kXV.js} +1 -1
- package/CollectionFormBuilder-BvFtiZeH.js +0 -3668
- package/dist-DZbXWctg.js +0 -97
- /package/{CollectionInput-DcNJT5Pg.js → CollectionInput-CG-Pu_51.js} +0 -0
- /package/{Popover-DOvRAGzc.js → Popover-DnZY1k6o.js} +0 -0
- /package/{StripePaymentModal-Do1xHctU.js → StripePaymentModal-BsYNQ4MB.js} +0 -0
- /package/{Tooltip-CJINDx93.js → Tooltip-DreKXbTO.js} +0 -0
- /package/{authentication-ClOFcry8.js → authentication-TdyaDNTn.js} +0 -0
- /package/{card-E2LKF9nT.js → card-D5fPArfa.js} +0 -0
- /package/{dialog-DoxC50i0.js → dialog-LRLdr3kq.js} +0 -0
- /package/{theme.cssm-BXDp-ojp.js → theme.cssm-2YTdd8Yh.js} +0 -0
- /package/{useLogin-D4A5iRey.js → useLogin-B2HHZxTi.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
|
|
File without changes
|