@levo-so/react 0.1.1 → 0.1.4

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 (59) hide show
  1. package/dist/{CheckboxWidget-ComdVcZ_.js → CheckboxWidget-Bnx-S2j2.js} +7 -7
  2. package/dist/{CollectionFormBuilder-jwwjyIpv.js → CollectionFormBuilder-B_dXpvPN.js} +114 -105
  3. package/dist/{CurrencyWidget-DVqD_lsY.js → CurrencyWidget-6Ov8DZpo.js} +6 -6
  4. package/dist/{DateTimeWidget-CvgzwY1U.js → DateTimeWidget-DI98zHMn.js} +7 -7
  5. package/dist/{DefaultFormVariant-CbRB9O_e.js → DefaultFormVariant-Bxbh1yc0.js} +22 -22
  6. package/dist/{DropdownWidget-C2YaM9Cf.js → DropdownWidget-DrMkD9vK.js} +2 -2
  7. package/dist/{EmailWidget-BBthwF68.js → EmailWidget-DHjXwVCL.js} +2 -2
  8. package/dist/{GeocoderWidget-Dht_2vi6.js → GeocoderWidget-D8GsLWkV.js} +83 -82
  9. package/dist/LevoProvider-Cp0CKrgY.js +212 -0
  10. package/dist/{MultiGeocoderWidget-paCFW0QZ.js → MultiGeocoderWidget-WzlKESyZ.js} +8 -8
  11. package/dist/{PhoneWidget-CP2T2JDx.js → PhoneWidget-DQSo_DPX.js} +9 -8
  12. package/dist/{RadioWidget-BuFPz7kK.js → RadioWidget-C8sTnz9B.js} +3 -3
  13. package/dist/{RichTextWidget-DGFNZ1jl.js → RichTextWidget-DOMiJ9pX.js} +2 -2
  14. package/dist/{Spinner-CuUosd-S.js → Spinner-DzGH5rKe.js} +49 -49
  15. package/dist/{StepsFormVariant-5_c3f2Vk.js → StepsFormVariant-CzS2wbMD.js} +8 -8
  16. package/dist/{SwitchWidget-t8iwhxk9.js → SwitchWidget-CBottoNO.js} +1 -1
  17. package/dist/TextWidget-Dg-ZYJI2.js +33 -0
  18. package/dist/{TextareaWidget-CG6J_plD.js → TextareaWidget-wsUSnO28.js} +6 -6
  19. package/dist/{ToggleCheckboxWidget-dl8ks4VX.js → ToggleCheckboxWidget-IeHYCie0.js} +1 -1
  20. package/dist/{URLWidget-CHeUEUXl.js → URLWidget-BsIEpzV3.js} +2 -2
  21. package/dist/{UploadWidget-CzYGViqE.js → UploadWidget-BJPmoAW-.js} +170 -168
  22. package/dist/audience/components/component.d.ts.map +1 -1
  23. package/dist/audience/index.js +1 -1
  24. package/dist/collection/components/CollectionFormBuilder.d.ts.map +1 -1
  25. package/dist/collection/components/renderer/RenderArrayWidget.d.ts.map +1 -1
  26. package/dist/collection/components/renderer/RenderCommonField.d.ts.map +1 -1
  27. package/dist/collection/components/widgets/dateTimeWidget/DateTimeWidget.d.ts +1 -1
  28. package/dist/collection/components/widgets/dateTimeWidget/DateTimeWidget.d.ts.map +1 -1
  29. package/dist/collection/components/widgets/multiGeocoderWidget/MultiGeocoderWidget.d.ts.map +1 -1
  30. package/dist/collection/components/widgets/phoneWidget/PhoneWidget.d.ts.map +1 -1
  31. package/dist/collection/components/widgets/textWidget/TextWidget.d.ts.map +1 -1
  32. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts.map +1 -1
  33. package/dist/collection/components/widgets/uploadWidget/UploadWidget.d.ts.map +1 -1
  34. package/dist/collection/index.js +1 -1
  35. package/dist/collection/lib/FormBuilder.d.ts.map +1 -1
  36. package/dist/collection/lib/hooks/useLevoForm.d.ts.map +1 -1
  37. package/dist/collection/utils/formHelpers.d.ts +2 -1
  38. package/dist/collection/utils/formHelpers.d.ts.map +1 -1
  39. package/dist/components/button/Button.d.ts.map +1 -1
  40. package/dist/components/index.js +1 -1
  41. package/dist/{index-wTf_TtOG.js → index-BFJ48R-4.js} +1 -1
  42. package/dist/index.css +1 -0
  43. package/dist/index.js +5 -5
  44. package/dist/libs.css +1 -0
  45. package/dist/libs.d.ts +1 -0
  46. package/dist/membership/components/OAuth/Button.d.ts +1 -1
  47. package/dist/membership/components/OAuth/Button.d.ts.map +1 -1
  48. package/dist/membership/components/OAuth/Container.d.ts +1 -1
  49. package/dist/membership/components/OAuth/Container.d.ts.map +1 -1
  50. package/dist/membership/index.js +1 -1
  51. package/dist/page-YRcNFGqi.js +205 -0
  52. package/dist/providers/LevoProvider.d.ts +7 -7
  53. package/dist/providers/LevoProvider.d.ts.map +1 -1
  54. package/dist/{useLevoForm-BcN8f66y.js → useLevoForm-HS_d5OoW.js} +7 -7
  55. package/package.json +72 -71
  56. package/dist/LevoProvider-DNbYyEaf.js +0 -21
  57. package/dist/TextWidget-D0UBxTxe.js +0 -33
  58. package/dist/page-CxaKoH22.js +0 -205
  59. package/dist/style.css +0 -1
@@ -0,0 +1,205 @@
1
+ "use client";
2
+ import { j as R } from "./jsx-runtime-B6kdoens.js";
3
+ import { useEffect as g, useState as S } from "react";
4
+ import { useInView as H } from "react-intersection-observer";
5
+ import { u as x } from "./LevoProvider-Cp0CKrgY.js";
6
+ import { usePageLifecycle as F, LifecycleState as I } from "use-page-lifecycle";
7
+ const Te = ({ id: e, properties: r = {} }) => {
8
+ const { audience: n } = x(), { ref: s, inView: t } = H({
9
+ triggerOnce: !0
10
+ });
11
+ return g(() => {
12
+ n != null && n.instance && t && (n == null || n.track("block.view", {
13
+ ...r,
14
+ resource: "block",
15
+ identifier: e
16
+ }));
17
+ }, [t]), /* @__PURE__ */ R.jsx("div", { ref: s, style: { height: "0px" } });
18
+ }, we = ({ event: e, properties: r }) => {
19
+ const { audience: n } = x();
20
+ return g(() => {
21
+ n != null && n.instance && (n == null || n.track(e, r));
22
+ }, [n == null ? void 0 : n.instance, e, r]), null;
23
+ };
24
+ function O(e) {
25
+ var r = typeof e;
26
+ return e != null && (r == "object" || r == "function");
27
+ }
28
+ var G = typeof global == "object" && global && global.Object === Object && global, U = typeof self == "object" && self && self.Object === Object && self, D = G || U || Function("return this")(), j = function() {
29
+ return D.Date.now();
30
+ }, V = /\s/;
31
+ function _(e) {
32
+ for (var r = e.length; r-- && V.test(e.charAt(r)); )
33
+ ;
34
+ return r;
35
+ }
36
+ var X = /^\s+/;
37
+ function Y(e) {
38
+ return e && e.slice(0, _(e) + 1).replace(X, "");
39
+ }
40
+ var v = D.Symbol, N = Object.prototype, Z = N.hasOwnProperty, q = N.toString, b = v ? v.toStringTag : void 0;
41
+ function z(e) {
42
+ var r = Z.call(e, b), n = e[b];
43
+ try {
44
+ e[b] = void 0;
45
+ var s = !0;
46
+ } catch {
47
+ }
48
+ var t = q.call(e);
49
+ return s && (r ? e[b] = n : delete e[b]), t;
50
+ }
51
+ var J = Object.prototype, K = J.toString;
52
+ function Q(e) {
53
+ return K.call(e);
54
+ }
55
+ var ee = "[object Null]", te = "[object Undefined]", $ = v ? v.toStringTag : void 0;
56
+ function ne(e) {
57
+ return e == null ? e === void 0 ? te : ee : $ && $ in Object(e) ? z(e) : Q(e);
58
+ }
59
+ function re(e) {
60
+ return e != null && typeof e == "object";
61
+ }
62
+ var ie = "[object Symbol]";
63
+ function oe(e) {
64
+ return typeof e == "symbol" || re(e) && ne(e) == ie;
65
+ }
66
+ var A = NaN, se = /^[-+]0x[0-9a-f]+$/i, ce = /^0b[01]+$/i, fe = /^0o[0-7]+$/i, ae = parseInt;
67
+ function P(e) {
68
+ if (typeof e == "number")
69
+ return e;
70
+ if (oe(e))
71
+ return A;
72
+ if (O(e)) {
73
+ var r = typeof e.valueOf == "function" ? e.valueOf() : e;
74
+ e = O(r) ? r + "" : r;
75
+ }
76
+ if (typeof e != "string")
77
+ return e === 0 ? e : +e;
78
+ e = Y(e);
79
+ var n = ce.test(e);
80
+ return n || fe.test(e) ? ae(e.slice(2), n ? 2 : 8) : se.test(e) ? A : +e;
81
+ }
82
+ var le = "Expected a function", ue = Math.max, ge = Math.min;
83
+ function de(e, r, n) {
84
+ var s, t, f, l, o, a, c = 0, d = !1, m = !1, y = !0;
85
+ if (typeof e != "function")
86
+ throw new TypeError(le);
87
+ r = P(r) || 0, O(n) && (d = !!n.leading, m = "maxWait" in n, f = m ? ue(P(n.maxWait) || 0, r) : f, y = "trailing" in n ? !!n.trailing : y);
88
+ function T(i) {
89
+ var u = s, p = t;
90
+ return s = t = void 0, c = i, l = e.apply(p, u), l;
91
+ }
92
+ function M(i) {
93
+ return c = i, o = setTimeout(h, r), d ? T(i) : l;
94
+ }
95
+ function W(i) {
96
+ var u = i - a, p = i - c, k = r - u;
97
+ return m ? ge(k, f - p) : k;
98
+ }
99
+ function E(i) {
100
+ var u = i - a, p = i - c;
101
+ return a === void 0 || u >= r || u < 0 || m && p >= f;
102
+ }
103
+ function h() {
104
+ var i = j();
105
+ if (E(i))
106
+ return L(i);
107
+ o = setTimeout(h, W(i));
108
+ }
109
+ function L(i) {
110
+ return o = void 0, y && s ? T(i) : (s = t = void 0, l);
111
+ }
112
+ function B() {
113
+ o !== void 0 && clearTimeout(o), c = 0, s = a = t = o = void 0;
114
+ }
115
+ function C() {
116
+ return o === void 0 ? l : L(j());
117
+ }
118
+ function w() {
119
+ var i = j(), u = E(i);
120
+ if (s = arguments, t = this, a = i, u) {
121
+ if (o === void 0)
122
+ return M(a);
123
+ if (m)
124
+ return clearTimeout(o), o = setTimeout(h, r), T(a);
125
+ }
126
+ return o === void 0 && (o = setTimeout(h, r)), l;
127
+ }
128
+ return w.cancel = B, w.flush = C, w;
129
+ }
130
+ const me = () => {
131
+ const [e, r] = S(0), [n, s] = S(0), t = de((f) => {
132
+ s(f), r(f);
133
+ }, 250);
134
+ return g(() => {
135
+ const f = () => {
136
+ const l = window.scrollY, o = document.documentElement.scrollHeight, a = window.innerHeight, c = Math.round(
137
+ l / (o - a) * 100
138
+ );
139
+ c % 10 === 0 && c > n && t(c);
140
+ };
141
+ return window.addEventListener("scroll", f), () => window.removeEventListener("scroll", f);
142
+ }, [n]), e;
143
+ }, je = ({
144
+ id: e,
145
+ workspace_id: r,
146
+ baseUrl: n = "/.levo/insights/api",
147
+ properties: s = {}
148
+ }) => {
149
+ const { audience: t } = x(), [f, l] = S(), o = me(), a = typeof window < "u" ? window.location.href : void 0;
150
+ g(() => {
151
+ a && l(a);
152
+ }, [a]), g(() => {
153
+ t != null && t.instance && (t == null || t.track("page.scroll", {
154
+ resource: "page",
155
+ identifier: e,
156
+ percent: o
157
+ }));
158
+ }, [t == null ? void 0 : t.instance, o]), g(() => {
159
+ const d = () => {
160
+ t == null || t.track("page.bounce", {
161
+ resource: "page",
162
+ identifier: e
163
+ });
164
+ };
165
+ return window && window.addEventListener("beforeunload", d), () => {
166
+ window && window.removeEventListener("beforeunload", d);
167
+ };
168
+ }, [a]);
169
+ const [c] = F();
170
+ return g(() => {
171
+ c === I.TERMINATED && (t == null || t.track("page.bounce", {
172
+ resource: "page",
173
+ identifier: e,
174
+ state: c
175
+ })), c === I.FROZEN && (t == null || t.track("page.bounce", {
176
+ resource: "page",
177
+ identifier: e,
178
+ state: c
179
+ }));
180
+ }, [c]), n && f ? /* @__PURE__ */ R.jsx(
181
+ "img",
182
+ {
183
+ alt: "",
184
+ src: `${n}/v1/insights/event/hello.gif?url=${f}`,
185
+ style: {
186
+ height: "0px"
187
+ },
188
+ onLoad: () => {
189
+ t != null && t.instance ? t == null || t.instance.page({
190
+ resource: "page",
191
+ identifier: s.id
192
+ }) : t == null || t.initiate({
193
+ baseUrl: n,
194
+ workspace_id: r,
195
+ properties: { ...s, id: e }
196
+ });
197
+ }
198
+ }
199
+ ) : null;
200
+ };
201
+ export {
202
+ Te as L,
203
+ we as a,
204
+ je as b
205
+ };
@@ -1,21 +1,21 @@
1
1
  import { LevoClient } from '@levo-so/core';
2
- import { LevoAudience } from '@levo-so/core/audience-plugin';
3
- import { LevoMembership } from '@levo-so/core/membership-plugin';
4
- import { LevoCollection } from '@levo-so/core/collection-plugin';
5
- import { LevoMedia } from '@levo-so/core/media-plugin';
6
2
  import { LevoBlog } from '@levo-so/core/blog-plugin';
3
+ import { LevoCollection } from '@levo-so/core/collection-plugin';
4
+ import { LevoAudience } from '@levo-so/core/audience-plugin';
7
5
  import { LevoLogger } from '@levo-so/core/logger-plugin';
6
+ import { LevoMedia } from '@levo-so/core/media-plugin';
7
+ import { LevoMembership } from '@levo-so/core/membership-plugin';
8
8
  import { default as React } from 'react';
9
9
  interface ILevoContext {
10
10
  client: LevoClient;
11
11
  audience?: LevoAudience;
12
12
  membership?: LevoMembership;
13
13
  collection?: LevoCollection;
14
- media?: LevoMedia;
15
14
  blog?: LevoBlog;
16
- logger?: LevoLogger;
15
+ media: LevoMedia;
16
+ logger: LevoLogger;
17
17
  }
18
- interface ILevoProps extends Partial<ILevoContext> {
18
+ interface ILevoProps extends Partial<Omit<ILevoContext, "media" | "logger">> {
19
19
  client: LevoClient;
20
20
  children: React.ReactNode;
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LevoProvider.d.ts","sourceRoot":"","sources":["../../src/providers/LevoProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,YAAY;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAID,UAAU,UAAW,SAAQ,OAAO,CAAC,YAAY,CAAC;IAChD,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAU7C,CAAC;AAEF,eAAO,MAAM,OAAO,QAOS,YAC5B,CAAC"}
1
+ {"version":3,"file":"LevoProvider.d.ts","sourceRoot":"","sources":["../../src/providers/LevoProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,YAAY;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;CACpB;AAID,UAAU,UAAW,SAAQ,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1E,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAiB7C,CAAC;AAEF,eAAO,MAAM,OAAO,QAOS,YAC5B,CAAC"}
@@ -2,11 +2,11 @@
2
2
  import { useEffect as F, useState as O, useRef as B } from "react";
3
3
  import { useFormContext as G, useWatch as H, useForm as W } from "react-hook-form";
4
4
  import { useDebouncedCallback as q } from "use-debounce";
5
- import { m as U, b as C, s as z, f as Q } from "./CollectionFormBuilder-jwwjyIpv.js";
6
- import { u as j } from "./LevoProvider-DNbYyEaf.js";
5
+ import { u as U } from "./LevoProvider-Cp0CKrgY.js";
6
+ import { l as j, b as C, s as z, f as Q } from "./CollectionFormBuilder-B_dXpvPN.js";
7
7
  import { s as X } from "./Sonner-t6JVKA0a.js";
8
- import { a as Z } from "./isEmptyObject-C5s4GzLE.js";
9
8
  import { e as x } from "./errorHandler-BJcFS2qV.js";
9
+ import { a as Z } from "./isEmptyObject-C5s4GzLE.js";
10
10
  const A = {
11
11
  FORM_DIRTY: "form-dirty",
12
12
  FORM_VALUES: "form-values"
@@ -24,7 +24,7 @@ const A = {
24
24
  collection_key: t,
25
25
  data: s
26
26
  }) => {
27
- const { client: E } = j(), r = await fetch(
27
+ const { client: E } = U(), r = await fetch(
28
28
  `${E.apiUrl}/v1/bevy/content/${t}/save-entry`,
29
29
  {
30
30
  method: "POST",
@@ -37,7 +37,7 @@ const A = {
37
37
  return r != null && r.ok ? await r.json() : null;
38
38
  }, ft = ({ currentValues: t, isError: s, getContentId: E }) => {
39
39
  var v;
40
- const { schema: r, isLoggedIn: d } = U(), e = G(), y = H(), V = q((p) => {
40
+ const { schema: r, isLoggedIn: d } = j(), e = G(), y = H(), V = q((p) => {
41
41
  r != null && r.key && !s && r != null && r.allow_draft && (d ? tt({
42
42
  collection_key: r == null ? void 0 : r.key,
43
43
  data: p
@@ -60,14 +60,14 @@ const A = {
60
60
  onSubmitSuccess: r,
61
61
  onSubmitError: d
62
62
  }) => {
63
- const { collection: e } = j(), {
63
+ const { collection: e } = U(), {
64
64
  toastConfig: y,
65
65
  onSuccess: V,
66
66
  onError: v,
67
67
  isLoggedIn: p,
68
68
  isDisabled: u,
69
69
  externalInitialValues: I = {}
70
- } = U(), [k, _] = O({}), [f, L] = O(null), [J, R] = O(!1), [N, T] = O(!1), n = B({}), P = C(t), g = W({
70
+ } = j(), [k, _] = O({}), [f, L] = O(null), [J, R] = O(!1), [N, T] = O(!1), n = B({}), P = C(t), g = W({
71
71
  mode: "all",
72
72
  disabled: u,
73
73
  defaultValues: P,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/react",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo suite for React based applications",
6
6
  "type": "module",
@@ -9,86 +9,86 @@
9
9
  "access": "public"
10
10
  },
11
11
  "files": [
12
- "dist/**",
12
+ "dist/**/*",
13
13
  "!dist/**/*.d.ts.map",
14
14
  "package.json"
15
15
  ],
16
16
  "peerDependencies": {
17
17
  "react": "^18.3.1",
18
18
  "react-dom": "^18.3.1",
19
- "@levo-so/core": "0.1.1"
19
+ "@levo-so/core": "0.1.4"
20
20
  },
21
21
  "dependencies": {
22
- "@radix-ui/react-checkbox": "^1.1.1",
23
- "@radix-ui/react-dialog": "^1.1.1",
24
- "@radix-ui/react-radio-group": "^1.2.0",
25
- "@radix-ui/react-slot": "^1.1.0",
26
- "@radix-ui/react-switch": "^1.1.0",
27
- "@radix-ui/react-tabs": "^1.1.0",
28
- "@radix-ui/react-tooltip": "^1.1.2",
29
- "@theinternetfolks/mate": "^1.0.4",
30
- "@theinternetfolks/snowflake": "^1.3.0",
31
- "@tiptap/extension-bold": "^2.5.8",
32
- "@tiptap/extension-bullet-list": "^2.6.4",
33
- "@tiptap/extension-document": "^2.6.4",
34
- "@tiptap/extension-hard-break": "^2.5.8",
35
- "@tiptap/extension-history": "^2.5.8",
36
- "@tiptap/extension-italic": "^2.5.8",
37
- "@tiptap/extension-link": "^2.6.4",
38
- "@tiptap/extension-list-item": "^2.5.8",
39
- "@tiptap/extension-ordered-list": "^2.6.4",
40
- "@tiptap/extension-paragraph": "^2.6.4",
41
- "@tiptap/extension-strike": "^2.5.8",
42
- "@tiptap/extension-text": "^2.5.8",
43
- "@tiptap/extension-text-align": "^2.6.4",
44
- "@tiptap/extension-underline": "^2.6.4",
45
- "@tiptap/react": "^2.6.4",
46
- "class-variance-authority": "^0.7.0",
47
- "clsx": "^2.1.1",
48
- "google-libphonenumber": "^3.2.38",
49
- "inflection": "^3.0.0",
50
- "lodash-es": "^4.17.21",
51
- "lucide-react": "^0.424.0",
22
+ "@radix-ui/react-checkbox": "1.1.1",
23
+ "@radix-ui/react-dialog": "1.1.1",
24
+ "@radix-ui/react-radio-group": "1.2.0",
25
+ "@radix-ui/react-slot": "1.1.0",
26
+ "@radix-ui/react-switch": "1.1.0",
27
+ "@radix-ui/react-tabs": "1.1.0",
28
+ "@radix-ui/react-tooltip": "1.1.2",
29
+ "@theinternetfolks/mate": "1.0.4",
30
+ "@theinternetfolks/snowflake": "1.3.0",
31
+ "@tiptap/extension-bold": "2.5.8",
32
+ "@tiptap/extension-bullet-list": "2.6.4",
33
+ "@tiptap/extension-document": "2.6.4",
34
+ "@tiptap/extension-hard-break": "2.5.8",
35
+ "@tiptap/extension-history": "2.5.8",
36
+ "@tiptap/extension-italic": "2.5.8",
37
+ "@tiptap/extension-link": "2.6.4",
38
+ "@tiptap/extension-list-item": "2.5.8",
39
+ "@tiptap/extension-ordered-list": "2.6.4",
40
+ "@tiptap/extension-paragraph": "2.6.4",
41
+ "@tiptap/extension-strike": "2.5.8",
42
+ "@tiptap/extension-text": "2.5.8",
43
+ "@tiptap/extension-text-align": "2.6.4",
44
+ "@tiptap/extension-underline": "2.6.4",
45
+ "@tiptap/react": "2.6.4",
46
+ "class-variance-authority": "0.7.0",
47
+ "clsx": "2.1.1",
48
+ "google-libphonenumber": "3.2.38",
49
+ "inflection": "3.0.0",
50
+ "lodash-es": "4.17.21",
51
+ "lucide-react": "0.424.0",
52
52
  "react": "18.3.1",
53
- "react-datepicker": "^7.3.0",
53
+ "react-datepicker": "7.3.0",
54
54
  "react-dom": "18.3.1",
55
- "react-dropzone": "^14.2.3",
56
- "react-google-autocomplete": "^2.7.3",
57
- "react-hook-form": "^7.52.2",
58
- "react-icons": "^5.2.1",
59
- "react-international-phone": "^4.3.0",
60
- "react-intersection-observer": "^9.13.0",
61
- "react-number-format": "^5.4.0",
62
- "react-select": "^5.8.0",
63
- "react-select-async-paginate": "^0.7.5",
64
- "sonner": "^1.5.0",
65
- "tailwind-merge": "^2.4.0",
66
- "use-debounce": "^10.0.2",
67
- "use-page-lifecycle": "^1.1.2",
68
- "validator": "^13.12.0",
69
- "validatorjs": "^3.22.1",
70
- "wretch": "^2.9.0"
55
+ "react-dropzone": "14.2.3",
56
+ "react-google-autocomplete": "2.7.3",
57
+ "react-hook-form": "7.52.2",
58
+ "react-icons": "5.2.1",
59
+ "react-international-phone": "4.3.0",
60
+ "react-intersection-observer": "9.13.0",
61
+ "react-number-format": "5.4.0",
62
+ "react-select": "5.8.0",
63
+ "react-select-async-paginate": "0.7.5",
64
+ "sonner": "1.5.0",
65
+ "tailwind-merge": "2.4.0",
66
+ "use-debounce": "10.0.2",
67
+ "use-page-lifecycle": "1.1.2",
68
+ "validator": "13.12.0",
69
+ "validatorjs": "3.22.1",
70
+ "wretch": "2.9.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@types/google-libphonenumber": "^7.4.30",
74
- "@types/google.maps": "^3.58.0",
75
- "@types/lodash-es": "^4.17.12",
76
- "@types/react": "^18.3.3",
77
- "@types/react-dom": "^18.3.0",
78
- "@types/validator": "^13.12.0",
79
- "@types/validatorjs": "^3.15.5",
80
- "@vitejs/plugin-react": "^4.3.1",
81
- "clsx": "^2.1.1",
82
- "rollup-preserve-directives": "^1.1.1",
83
- "tailwind-merge": "^2.4.0",
84
- "typescript": "^5.5.4",
85
- "vite": "^5.4.3",
86
- "vite-plugin-dts": "^4.1.0",
87
- "autoprefixer": "^10.4.16",
88
- "postcss": "^8.4.41",
89
- "postcss-import": "^16.1.0",
90
- "tailwindcss": "^3.4.1",
91
- "tailwindcss-animate": "^1.0.7",
73
+ "@types/google-libphonenumber": "7.4.30",
74
+ "@types/google.maps": "3.58.0",
75
+ "@types/lodash-es": "4.17.12",
76
+ "@types/react": "18.3.3",
77
+ "@types/react-dom": "18.3.0",
78
+ "@types/validator": "13.12.0",
79
+ "@types/validatorjs": "3.15.5",
80
+ "@vitejs/plugin-react": "4.3.1",
81
+ "clsx": "2.1.1",
82
+ "rollup-preserve-directives": "1.1.1",
83
+ "tailwind-merge": "2.4.0",
84
+ "typescript": "5.5.4",
85
+ "vite": "5.4.3",
86
+ "vite-plugin-dts": "4.1.0",
87
+ "autoprefixer": "10.4.16",
88
+ "postcss": "8.4.41",
89
+ "postcss-import": "16.1.0",
90
+ "tailwindcss": "3.4.1",
91
+ "tailwindcss-animate": "1.0.7",
92
92
  "@levo/ts-config": "0.0.0",
93
93
  "@levo/tw-config": "0.0.0"
94
94
  },
@@ -96,11 +96,12 @@
96
96
  "module": "./dist/index.js",
97
97
  "types": "./dist/index.d.ts",
98
98
  "exports": {
99
+ "./index.css": "./dist/style.css",
100
+ "./libs.css": "./dist/libs.css",
99
101
  ".": {
100
102
  "types": "./dist/index.d.ts",
101
103
  "default": "./dist/index.js"
102
104
  },
103
- "./index.css": "./dist/style.css",
104
105
  "./components": {
105
106
  "types": "./dist/components/index.d.ts",
106
107
  "default": "./dist/components/index.js"
@@ -126,7 +127,7 @@
126
127
  "clean": "rimraf dist node_modules .turbo",
127
128
  "check-types": "tsc --noEmit",
128
129
  "format-and-lint": "biome check .",
129
- "format-and-lint:fix": "biome check . --write",
130
+ "format-and-lint:fix": "biome check . --write --diagnostic-level=error",
130
131
  "build": "vite build",
131
132
  "dev": "vite build --watch"
132
133
  }
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { j as r } from "./jsx-runtime-B6kdoens.js";
3
- import { createContext as s, useContext as n } from "react";
4
- const o = s(null), v = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx(
5
- o.Provider,
6
- {
7
- value: {
8
- ...t
9
- },
10
- children: e
11
- }
12
- ), x = () => {
13
- const e = n(o);
14
- if (!e)
15
- throw new Error("useLevo must be used within LevoProvider");
16
- return e;
17
- };
18
- export {
19
- v as L,
20
- x as u
21
- };
@@ -1,33 +0,0 @@
1
- import { j as t } from "./jsx-runtime-B6kdoens.js";
2
- import { useFormContext as j, get as g } from "react-hook-form";
3
- import { j as h, k as F, l as b } from "./CollectionFormBuilder-jwwjyIpv.js";
4
- import { I as y } from "./Input-2CvZ90f8.js";
5
- import { c as f } from "./cn-C9QoOYNG.js";
6
- const W = ({
7
- field: r,
8
- inputStyles: a,
9
- ...m
10
- }) => {
11
- var o;
12
- const {
13
- register: n,
14
- formState: { errors: i, disabled: l }
15
- } = j(), { key: p = "", label: s = "", helper_text: c = "", readonly: x = !1 } = r, e = p, d = !!(r != null && r.required), u = (o = g(i, e)) == null ? void 0 : o.message;
16
- return /* @__PURE__ */ t.jsxs(h, { error: u, helperText: c, children: [
17
- s && /* @__PURE__ */ t.jsx(F, { htmlFor: e, isRequired: d, children: s }),
18
- /* @__PURE__ */ t.jsx(
19
- y,
20
- {
21
- id: e,
22
- className: f(a),
23
- readOnly: x,
24
- disabled: l,
25
- ...n(e, { ...b(r) }),
26
- ...m
27
- }
28
- )
29
- ] });
30
- };
31
- export {
32
- W as default
33
- };