@levo-so/site-runtime 0.3.7 → 0.3.8

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 (37) hide show
  1. package/CollectionField-C-6a1ud4.js +270 -0
  2. package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
  3. package/DateTimeWidget-hFjcn3o6.js +255 -0
  4. package/{Dialog-DVB4WpBS.js → Dialog-dT7y641z.js} +43 -43
  5. package/{KBChatWidget-Cnq0DCOQ.js → KBChatWidget-ClHFDgJ5.js} +236 -236
  6. package/{LevoProvider-nmIbMlsk.js → LevoProvider-Bsjkcwc8.js} +8 -8
  7. package/PhoneWidget-BmBO-kvA.js +99 -0
  8. package/{Popover-C7zZHBIc.js → Popover-3N88sRp4.js} +20 -20
  9. package/{PopupBody-DZVwDLkg-yrot8Uqb.js → PopupBody-DZVwDLkg-Cfy3lWGs.js} +33 -33
  10. package/{PopupRenderer-BjW1jg70-Biwj2bIc.js → PopupRenderer-BjW1jg70-W2y-PEPH.js} +81 -81
  11. package/{RichTextWidget-BOrVIR2j.js → RichTextWidget-DkKHEq4j.js} +139 -139
  12. package/ThemeProvider-DutrjSTF.js +116 -0
  13. package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
  14. package/{VerifyButton-CA1GtEZJ.js → VerifyButton-BUT70lgz.js} +65 -65
  15. package/dist-CRDgdAkQ.js +3631 -0
  16. package/{dist-Cb6sb7nO.js → dist-DPmVG7VB.js} +13 -13
  17. package/index.d.ts +560 -3
  18. package/index.js +1203 -713
  19. package/inlineBaseTheme-BB9e6h5f.js +9 -0
  20. package/{inlineCollectionTheme-DYYMrmcE.js → inlineCollectionTheme-CWcMCUti.js} +1 -1
  21. package/{kbChat-DIb4AS7E.js → kbChat-C00LVlxP.js} +27 -27
  22. package/{nodeAlignment-D70kOcui.js → nodeAlignment-BnJljFlw.js} +1 -1
  23. package/package.json +3 -3
  24. package/popups.js +1 -1
  25. package/{react-6kO0cqgr.js → react-CV3jf2mc.js} +1 -1
  26. package/styles.css +1 -1
  27. package/{generateRadiusScale-54mE9ikx.js → themeVars.cssm-ByhhC2Jm.js} +17 -17
  28. package/usePopupRedirect-BThP_YPW-COUseDik.js +80 -0
  29. package/CollectionField-C59pmeQw.js +0 -270
  30. package/DateTimeWidget-Cctsvcrs.js +0 -255
  31. package/PhoneWidget-J3VTMWJH.js +0 -99
  32. package/ThemeProvider-BQmIB5tr.js +0 -116
  33. package/dist-C8gLeklT.js +0 -3559
  34. package/inlineBaseTheme-B6E9zzyp.js +0 -9
  35. package/usePopupRedirect-BThP_YPW-DoixMAB9.js +0 -80
  36. /package/{createThemeExtension-DhGk81nV.js → createThemeExtension-4AUn51iJ.js} +0 -0
  37. /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 };