@levo-so/site-runtime 0.3.7 → 0.3.9
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/CollectionField-C-6a1ud4.js +270 -0
- package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
- package/DateTimeWidget-LfaosVVW.js +255 -0
- package/{Dialog-DVB4WpBS.js → Dialog-dT7y641z.js} +43 -43
- package/{KBChatWidget-Cnq0DCOQ.js → KBChatWidget-CuAtGhHT.js} +240 -239
- package/{LevoProvider-nmIbMlsk.js → LevoProvider-Bsjkcwc8.js} +8 -8
- package/PhoneWidget-D-CcDuie.js +99 -0
- package/{Popover-C7zZHBIc.js → Popover-BTdlOQP_.js} +20 -20
- package/{PopupBody-DZVwDLkg-yrot8Uqb.js → PopupBody-BI-MJqmd-C0qNyN7V.js} +299 -182
- package/PopupRenderer-D66Gx63H-C6RnOnl2.js +388 -0
- package/{RichTextWidget-BOrVIR2j.js → RichTextWidget-BFWVevY7.js} +140 -140
- package/ThemeProvider-DutrjSTF.js +116 -0
- package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
- package/{VerifyButton-CA1GtEZJ.js → VerifyButton-BUT70lgz.js} +65 -65
- package/{dist-Cb6sb7nO.js → dist-Rjs__H25.js} +14 -14
- package/dist-orLT2eNz.js +3663 -0
- package/index.d.ts +1071 -3
- package/index.js +1365 -733
- package/inlineBaseTheme-BB9e6h5f.js +9 -0
- package/{inlineCollectionTheme-DYYMrmcE.js → inlineCollectionTheme-CWcMCUti.js} +1 -1
- package/{kbChat-DIb4AS7E.js → kbChat-L55effMi.js} +28 -28
- package/{nodeAlignment-D70kOcui.js → nodeAlignment-COvc-rIj.js} +1 -1
- package/package.json +37 -27
- package/popups.js +1 -1
- package/{react-6kO0cqgr.js → react-B9yvlbH0.js} +1 -1
- package/routes-CyKmkoRM.js +316 -0
- package/start.d.ts +38 -0
- package/start.js +19 -0
- package/styles.css +1 -1
- package/{generateRadiusScale-54mE9ikx.js → themeVars.cssm-ByhhC2Jm.js} +17 -17
- package/usePopupRedirect-CAAdcpaW-D9XoiVhG.js +82 -0
- package/CollectionField-C59pmeQw.js +0 -270
- package/DateTimeWidget-Cctsvcrs.js +0 -255
- package/PhoneWidget-J3VTMWJH.js +0 -99
- package/PopupRenderer-BjW1jg70-Biwj2bIc.js +0 -387
- package/ThemeProvider-BQmIB5tr.js +0 -116
- package/dist-C8gLeklT.js +0 -3559
- package/inlineBaseTheme-B6E9zzyp.js +0 -9
- package/usePopupRedirect-BThP_YPW-DoixMAB9.js +0 -80
- /package/{createThemeExtension-DhGk81nV.js → createThemeExtension-4AUn51iJ.js} +0 -0
- /package/{es-CztjLuNy.js → es-Bj3CsMJz.js} +0 -0
- /package/{pillChrome-BAu5AfCT.js → pillChrome-uieiq_SK.js} +0 -0
- /package/{popupState-JmpeKzgM-qhNTV79U.js → popupState-JmpeKzgM-D_77LiAa.js} +0 -0
- /package/{rteTheme.cssm-xg0gJ28J.js → rteTheme.cssm-CaRzrwtu.js} +0 -0
- /package/{theme.cssm-mkQwezuj.js → theme.cssm-DUzmx76l.js} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./generateRadiusScale-54mE9ikx.js";
|
|
2
|
-
import { t as n } from "./createThemeExtension-DhGk81nV.js";
|
|
3
|
-
//#region ../../libraries/levocn/dist/styles/inlineBaseTheme.js
|
|
4
|
-
var r = n(e), i = (e) => e ? e.radius && !e.radiusScale ? r({
|
|
5
|
-
...e,
|
|
6
|
-
radiusScale: t(e.radius)
|
|
7
|
-
}) : r(e) : {};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { i as t };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { c as e, f as t, r as n, s as r } from "./popupState-JmpeKzgM-qhNTV79U.js";
|
|
2
|
-
import { createContext as i, useContext as a } from "react";
|
|
3
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
-
import { c as s } from "react/compiler-runtime";
|
|
5
|
-
import { createRuntimeFn as c } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
//#region ../../libraries/popups/dist/rolldown-runtime-CAFD8bLK.js
|
|
7
|
-
var l = Object.defineProperty, u = (e, t) => {
|
|
8
|
-
let n = {};
|
|
9
|
-
for (var r in e) l(n, r, {
|
|
10
|
-
get: e[r],
|
|
11
|
-
enumerable: !0
|
|
12
|
-
});
|
|
13
|
-
return t || l(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
|
-
}, d = c({
|
|
15
|
-
defaultClassName: "_1gklknd4",
|
|
16
|
-
variantClassNames: {
|
|
17
|
-
placement: {
|
|
18
|
-
popup: "_1gklknd5",
|
|
19
|
-
slide_in: "_1gklknd6"
|
|
20
|
-
},
|
|
21
|
-
position: {
|
|
22
|
-
"top-left": "_1gklknd7",
|
|
23
|
-
"top-right": "_1gklknd8",
|
|
24
|
-
"bottom-left": "_1gklknd9",
|
|
25
|
-
"bottom-right": "_1gklknda"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
defaultVariants: { placement: "popup" },
|
|
29
|
-
compoundVariants: []
|
|
30
|
-
}), f = "_1gklkndb", p = "_1gklkndc", m = c({
|
|
31
|
-
defaultClassName: "_1gklknde",
|
|
32
|
-
variantClassNames: { size: {
|
|
33
|
-
small: "_1gklkndf",
|
|
34
|
-
medium: "_1gklkndg",
|
|
35
|
-
large: "_1gklkndh",
|
|
36
|
-
xlarge: "_1gklkndi"
|
|
37
|
-
} },
|
|
38
|
-
defaultVariants: { size: "medium" },
|
|
39
|
-
compoundVariants: []
|
|
40
|
-
}), h = "_1gklkndn", g = i(null), _ = (e) => {
|
|
41
|
-
let t = s(6), { popup: n, callbacks: r, children: i } = e, a;
|
|
42
|
-
t[0] !== r || t[1] !== n ? (a = {
|
|
43
|
-
popup: n,
|
|
44
|
-
callbacks: r
|
|
45
|
-
}, t[0] = r, t[1] = n, t[2] = a) : a = t[2];
|
|
46
|
-
let c;
|
|
47
|
-
return t[3] !== i || t[4] !== a ? (c = /* @__PURE__ */ o(g.Provider, {
|
|
48
|
-
value: a,
|
|
49
|
-
children: i
|
|
50
|
-
}), t[3] = i, t[4] = a, t[5] = c) : c = t[5], c;
|
|
51
|
-
}, v = () => {
|
|
52
|
-
let e = a(g);
|
|
53
|
-
if (!e) throw Error("usePopupContext must be used within a PopupProvider");
|
|
54
|
-
return e;
|
|
55
|
-
}, y = () => a(g), b = () => {
|
|
56
|
-
let i = s(2), a = y(), o;
|
|
57
|
-
return i[0] === a ? o = i[1] : (o = (i) => {
|
|
58
|
-
let o = i === void 0 ? "programmatic" : i;
|
|
59
|
-
if (!a || r().active_popup_id !== a.popup.id) return;
|
|
60
|
-
let s = n();
|
|
61
|
-
a.callbacks?.onPopupClose?.(a.popup, {
|
|
62
|
-
trigger_type: t(),
|
|
63
|
-
dismiss_reason: o,
|
|
64
|
-
time_shown_ms: s ? Date.now() - s : null
|
|
65
|
-
}), e(a.popup.id);
|
|
66
|
-
}, i[0] = a, i[1] = o), o;
|
|
67
|
-
}, x = "zv6sjd1", S = "zv6sjd2 zv6sjd1", C = "zv6sjd3", w = "zv6sjd8", T = "zv6sjd9", E = "zv6sjda", D = (e) => {
|
|
68
|
-
let t = s(6), n = y(), r = n?.callbacks?.onAction, i = b(), { action: a } = e.content, o;
|
|
69
|
-
t[0] !== a || t[1] !== i || t[2] !== n || t[3] !== r || t[4] !== e ? (o = () => {
|
|
70
|
-
a?.type === "redirect" && n && (r?.(e, {
|
|
71
|
-
action_type: "redirect",
|
|
72
|
-
redirect_url: a.url,
|
|
73
|
-
open_in_new_tab: !!a.openInNewTab
|
|
74
|
-
}), i("cta_click"), a.openInNewTab ? window.open(a.url, "_blank", "noopener,noreferrer") : window.location.href = a.url);
|
|
75
|
-
}, t[0] = a, t[1] = i, t[2] = n, t[3] = r, t[4] = e, t[5] = o) : o = t[5];
|
|
76
|
-
let c = o;
|
|
77
|
-
return a?.type === "redirect" && a.url ? c : null;
|
|
78
|
-
};
|
|
79
|
-
//#endregion
|
|
80
|
-
export { u as _, y as a, p as c, m as d, f, D as g, v as h, E as i, w as l, x as m, C as n, S as o, h as p, T as r, _ as s, b as t, d as u };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|