@levo-so/studio 0.1.114 → 0.2.1

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 (49) hide show
  1. package/{BillingStep-DjNmSVkY.js → BillingStep-D4P_J_PJ.js} +1 -1
  2. package/Button-CmwbMGFV.js +505 -0
  3. package/{CollectionField-DrJuHNsg.js → CollectionField-D25BVweU.js} +29 -77
  4. package/{DateTimeWidget-CzBq92zC.js → DateTimeWidget-CG9ylSgA.js} +8 -8
  5. package/{EntryCard-C2KA5HMX.js → EntryCard-FxB1uCis.js} +4 -4
  6. package/{KBChatWidget-CPrg_etS.js → KBChatWidget-_kcueoxi.js} +388 -360
  7. package/{LoginCard-S_2jls6v.js → LoginCard-D8ZVZjbR.js} +3 -3
  8. package/{LoginForm-DeYsk4kd.js → LoginForm-Cg5F4guy.js} +2 -2
  9. package/{LoginModal-BbDfB4S9.js → LoginModal-Cn6Nsuz3.js} +4 -4
  10. package/{MessageCard-x6jPClGi.js → MessageCard-Bx6pC8wW.js} +2 -2
  11. package/{MessageFooter-CHuPnL_D.js → MessageFooter-CsY4uBIJ.js} +2 -2
  12. package/{ModalManager-DQVNPEuG.js → ModalManager-BIKunQ8D.js} +1 -1
  13. package/{PendingApprovalCard-C06B_Tg-.js → PendingApprovalCard-0ORO4y9v.js} +3 -3
  14. package/{PhoneWidget-DdX8_-2v.js → PhoneWidget-CZr1PZ4G.js} +3 -3
  15. package/{PopupRenderer-Bncp54gB-DysCmUdR.js → PopupRenderer-Bncp54gB-BOJj-taW.js} +15 -16
  16. package/{ProfileCard-DGanb4BY.js → ProfileCard-C2lXYYkC.js} +9 -8
  17. package/RichTextWidget-Dcq-NsEi.js +748 -0
  18. package/{RteThemeProvider-LFGzAYi1.js → RteThemeProvider-DxYOzcck.js} +1 -1
  19. package/Spinner-wdUA5kVe.js +7 -0
  20. package/{StripePaymentModal-BsYNQ4MB.js → StripePaymentModal-DfFlmYsp.js} +17 -17
  21. package/{bookingCard-CUv7WgqT.js → bookingCard-CZ3Jj9sL.js} +218 -217
  22. package/{dialog-LRLdr3kq.js → dialog-CznAfWcE.js} +32 -32
  23. package/{dist-D-y51gmU.js → dist-B91ZHPA-.js} +1103 -1261
  24. package/index.d.ts +0 -2
  25. package/index.js +2719 -2269
  26. package/kbChat-BpJkUcpv.js +163 -0
  27. package/{nodeAlignment-BC_Uferw.js → nodeAlignment-DS9_DLGB.js} +31 -23
  28. package/package.json +10 -10
  29. package/pillChrome-B4uuWJhY.js +16 -0
  30. package/studio.css +1 -1
  31. package/{useLogin-B2HHZxTi.js → useLogin-mEuzGlb2.js} +1 -1
  32. package/Button-Uwxgkriw.js +0 -1657
  33. package/RichTextWidget-BfZ3sCcx.js +0 -113
  34. package/Toolbar-6IXR9qAh.js +0 -645
  35. package/collection.d.ts +0 -500
  36. package/collection.js +0 -30
  37. package/inlineRteTheme-abXxag3B.js +0 -9
  38. package/kbChat-DCrdcXir.js +0 -166
  39. package/pillChrome-CQoJfFk3.js +0 -16
  40. package/utils-NDllPDUz.js +0 -5
  41. /package/{AuthProvider-C6bvedwF.js → AuthProvider-CFQqiIf1.js} +0 -0
  42. /package/{Beams-DboMUgCv.js → Beams-CDt4Mt3M.js} +0 -0
  43. /package/{Dots-a8xSboDv.js → Dots-DadBreAs.js} +0 -0
  44. /package/{Gradient-NacpoDCM.js → Gradient-CPoU73FR.js} +0 -0
  45. /package/{Grid-BJQvxnks.js → Grid-CAXyHMvM.js} +0 -0
  46. /package/{Popover-C_IQMM8H.js → Popover-Dt4--ulK.js} +0 -0
  47. /package/{Waves-DUuT_IFr.js → Waves-DPbfUhRX.js} +0 -0
  48. /package/{authentication-TdyaDNTn.js → authentication-BSNkm1-l.js} +0 -0
  49. /package/{card-D5fPArfa.js → card-DFSlAwCq.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { i as e } from "./Button-lUfKisu8.js";
2
- import { n as t } from "./inlineRteTheme-abXxag3B.js";
2
+ import { a as t } from "./nodeAlignment-DS9_DLGB.js";
3
3
  import { t as n } from "./theme.cssm-2YTdd8Yh.js";
4
4
  import { c as r } from "react/compiler-runtime";
5
5
  import { jsx as i } from "react/jsx-runtime";
@@ -0,0 +1,7 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { cn as t } from "@levo/utils/cn";
3
+ import { Loader2 as n } from "lucide-react";
4
+ //#region src/components/Spinner.tsx
5
+ var r = ({ className: r }) => /* @__PURE__ */ e(n, { className: t("h-8 w-8 animate-spin font-light", r) });
6
+ //#endregion
7
+ export { r as t };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { cn as e } from "@levo-so/react";
3
- import { useCallback as t, useState as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { useCallback as e, useState as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { cn as i } from "@levo/utils/cn";
5
5
  import { XIcon as a } from "lucide-react";
6
6
  import { Portal as o } from "radix-ui";
7
7
  import { EmbeddedCheckout as s, EmbeddedCheckoutProvider as c } from "@stripe/react-stripe-js";
8
8
  //#region src/hooks/useStripePayment.tsx
9
9
  var l = () => {
10
- let [e, r] = n(null), [i, a] = n(null), [o, s] = n(!1), [c, l] = n(null);
10
+ let [n, r] = t(null), [i, a] = t(null), [o, s] = t(!1), [c, l] = t(null);
11
11
  return {
12
- stripePromise: e,
12
+ stripePromise: n,
13
13
  config: i,
14
14
  isOpen: o,
15
- openStripeCheckout: t(async (e) => {
15
+ openStripeCheckout: e(async (e) => {
16
16
  try {
17
17
  let { loadStripe: t } = await import("@stripe/stripe-js");
18
18
  r(t(e.key)), a({ clientSecret: e.client_secret }), s(!0);
@@ -20,34 +20,34 @@ var l = () => {
20
20
  console.error("Failed to initialize Stripe checkout:", e);
21
21
  }
22
22
  }, []),
23
- closeStripeCheckout: t(() => {
23
+ closeStripeCheckout: e(() => {
24
24
  s(!1), setTimeout(() => {
25
25
  a(null), r(null);
26
26
  }, 300);
27
27
  }, []),
28
28
  onComplete: c,
29
- setOnComplete: t((e) => {
29
+ setOnComplete: e((e) => {
30
30
  l(() => e);
31
31
  }, [])
32
32
  };
33
- }, u = ({ isOpen: t, onClose: n, stripePromise: l, clientSecret: u, onComplete: d }) => !t || !l || !u ? null : /* @__PURE__ */ r(o.Root, { children: /* @__PURE__ */ r("div", {
33
+ }, u = ({ isOpen: e, onClose: t, stripePromise: l, clientSecret: u, onComplete: d }) => !e || !l || !u ? null : /* @__PURE__ */ n(o.Root, { children: /* @__PURE__ */ n("div", {
34
34
  className: "fixed inset-0 z-100 flex items-start justify-center overflow-y-auto bg-black/50 p-4 pt-8 md:p-6 md:pt-10",
35
- children: /* @__PURE__ */ i("div", {
36
- className: e("relative flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-2xl", "max-w-[98vw] md:max-w-[1000px] lg:max-w-[1100px]", "min-h-[500px]", "my-auto", "fade-in-0 zoom-in-95 animate-in duration-200"),
37
- children: [/* @__PURE__ */ r("button", {
35
+ children: /* @__PURE__ */ r("div", {
36
+ className: i("relative flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-2xl", "max-w-[98vw] md:max-w-[1000px] lg:max-w-[1100px]", "min-h-[500px]", "my-auto", "fade-in-0 zoom-in-95 animate-in duration-200"),
37
+ children: [/* @__PURE__ */ n("button", {
38
38
  type: "button",
39
- onClick: n,
39
+ onClick: t,
40
40
  className: "absolute top-4 right-4 z-10 rounded-full bg-white/90 p-2.5 text-gray-500 shadow-md backdrop-blur-sm transition-all hover:bg-white hover:text-gray-700",
41
- children: /* @__PURE__ */ r(a, { className: "size-5" })
42
- }), /* @__PURE__ */ r("div", {
41
+ children: /* @__PURE__ */ n(a, { className: "size-5" })
42
+ }), /* @__PURE__ */ n("div", {
43
43
  className: "flex-1 overflow-hidden rounded-2xl py-6",
44
- children: /* @__PURE__ */ r(c, {
44
+ children: /* @__PURE__ */ n(c, {
45
45
  stripe: l,
46
46
  options: {
47
47
  clientSecret: u,
48
48
  onComplete: d
49
49
  },
50
- children: /* @__PURE__ */ r(s, { className: "stripe-embedded-checkout h-full" })
50
+ children: /* @__PURE__ */ n(s, { className: "stripe-embedded-checkout h-full" })
51
51
  })
52
52
  })]
53
53
  })