@levo-so/react 0.1.29 → 0.1.31

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 (33) hide show
  1. package/dist/{CheckboxWidget-Bug2FXpG.js → CheckboxWidget-Dedx-7Wy.js} +6 -6
  2. package/dist/{CollectionFormBuilder-DxViQE0w.js → CollectionFormBuilder-BPzVyGLq.js} +36 -36
  3. package/dist/{CurrencyWidget-BtjxmXgj.js → CurrencyWidget-CW3cMoYn.js} +1 -1
  4. package/dist/{DateTimeWidget-Ds8g90-j.js → DateTimeWidget-eKbj2Q86.js} +5 -5
  5. package/dist/{DefaultFormVariant-ChnisPj2.js → DefaultFormVariant-DGecA_SF.js} +6 -6
  6. package/dist/{DropdownWidget-B2o6wz-C.js → DropdownWidget-DJ6rBFE0.js} +2 -2
  7. package/dist/{EmailWidget-Cfyfy5OH.js → EmailWidget-Bx3LTBSb.js} +4 -4
  8. package/dist/{FormCaptcha-BOjVusbv.js → FormCaptcha-BVawlT6h.js} +1 -1
  9. package/dist/{GeocoderWidget-B5TnEwp-.js → GeocoderWidget-C_8wJijA.js} +6 -6
  10. package/dist/{Input-2CvZ90f8.js → Input-Vv7mKQFt.js} +4 -4
  11. package/dist/{MultiGeocoderWidget-CF4HGkCg.js → MultiGeocoderWidget-0uUFNNoH.js} +6 -6
  12. package/dist/{MultiTextWidget-fnzlopnN.js → MultiTextWidget-BluGgZVP.js} +2 -2
  13. package/dist/{PhoneWidget-BVk5mhOm.js → PhoneWidget-Mm6DmCsK.js} +2 -2
  14. package/dist/{RadioWidget-CouCg5aG.js → RadioWidget-BkYAbg4o.js} +7 -7
  15. package/dist/{RichTextWidget-dqN--eKc.js → RichTextWidget-CbyT-y1E.js} +10 -10
  16. package/dist/{Spinner-CDMNP44S.js → Spinner-BcBoT-J5.js} +3 -3
  17. package/dist/{StepsFormVariant-Buw3v2UB.js → StepsFormVariant-Bk_rc3R7.js} +8 -8
  18. package/dist/{SwitchWidget-BkBgr_nQ.js → SwitchWidget-DeCIh2Vm.js} +2 -2
  19. package/dist/{TextWidget-I9pwxamg.js → TextWidget-Di_db2UE.js} +2 -2
  20. package/dist/{TextareaWidget-takl2qqW.js → TextareaWidget-CZqLQQAK.js} +1 -1
  21. package/dist/{ToggleCheckboxWidget-B8hL0ZhV.js → ToggleCheckboxWidget-Dynr-C0Y.js} +2 -2
  22. package/dist/{URLWidget-C1S_yZ9J.js → URLWidget-BvQvn0aZ.js} +3 -3
  23. package/dist/{UploadWidget-D7USwx7q.js → UploadWidget-mRgEWRVS.js} +29 -29
  24. package/dist/audience/hooks/useTrackClicks.d.ts.map +1 -1
  25. package/dist/audience/index.js +1 -1
  26. package/dist/audience/utils/autocapture.d.ts +2 -3
  27. package/dist/audience/utils/autocapture.d.ts.map +1 -1
  28. package/dist/collection/index.js +1 -1
  29. package/dist/components/index.js +1 -1
  30. package/dist/index.js +3 -3
  31. package/dist/page-jWvzWjyk.js +452 -0
  32. package/package.json +2 -2
  33. package/dist/page-Bgl12goV.js +0 -449
@@ -276,7 +276,7 @@ const q = o.Root, pt = o.Trigger, J = o.Portal, bt = o.Close, j = u.forwardRef((
276
276
  {
277
277
  ref: a,
278
278
  className: c(
279
- "fixed py-10 inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 overflow-y-auto max-h-screen grid place-items-center",
279
+ "fixed inset-0 z-50 grid max-h-screen place-items-center overflow-y-auto bg-background/80 py-10 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
280
280
  t
281
281
  ),
282
282
  ...e
@@ -288,7 +288,7 @@ const N = u.forwardRef(({ className: t, children: e, hideCloseButton: a, overlay
288
288
  {
289
289
  ref: l,
290
290
  className: c(
291
- "z-50 relative border grid w-full max-w-lg gap-4 bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",
291
+ "relative z-50 grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",
292
292
  t
293
293
  ),
294
294
  ...s,
@@ -298,7 +298,7 @@ const N = u.forwardRef(({ className: t, children: e, hideCloseButton: a, overlay
298
298
  o.Close,
299
299
  {
300
300
  type: "button",
301
- className: "absolute p-1 right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
301
+ className: "absolute right-4 top-4 rounded-sm p-1 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
302
302
  children: [
303
303
  /* @__PURE__ */ i.jsx(R, { className: "h-4 w-4" }),
304
304
  /* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Close" })
@@ -3,9 +3,9 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as I, useMemo as y } from "react";
4
4
  import { FormProvider as T } from "react-hook-form";
5
5
  import { c as F } from "./cn-C9QoOYNG.js";
6
- import { D as N, F as _ } from "./CollectionFormBuilder-DxViQE0w.js";
7
- import { u as C, S as H, F as M } from "./FormCaptcha-BOjVusbv.js";
8
- import { B as g } from "./Spinner-CDMNP44S.js";
6
+ import { D as N, F as _ } from "./CollectionFormBuilder-BPzVyGLq.js";
7
+ import { u as C, S as H, F as M } from "./FormCaptcha-BVawlT6h.js";
8
+ import { B as g } from "./Spinner-BcBoT-J5.js";
9
9
  const Y = () => {
10
10
  const [n, a] = I(0), { containerStyles: m } = N(), l = () => {
11
11
  a((o) => o - 1);
@@ -79,13 +79,13 @@ const Y = () => {
79
79
  "form",
80
80
  {
81
81
  className: F(
82
- "w-full rounded-md border border-[rgb(229, 231, 235)] min-h-12 px-4 md:px-8 py-6 text-text-1",
83
- L && "opacity-50 pointer-events-none"
82
+ "border-[rgb(229, 231, 235)] min-h-12 w-full rounded-md border px-4 py-6 text-text-1 md:px-8",
83
+ L && "pointer-events-none opacity-50"
84
84
  ),
85
85
  id: "collection-form",
86
86
  onSubmit: E,
87
87
  children: [
88
- !(d != null && d.hideSectionHeadings) && /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between mb-6", children: [
88
+ !(d != null && d.hideSectionHeadings) && /* @__PURE__ */ t.jsxs("div", { className: "mb-6 flex items-center justify-between", children: [
89
89
  /* @__PURE__ */ t.jsx("p", { className: "text-xl font-medium", children: (r == null ? void 0 : r.label) || "Details" }),
90
90
  /* @__PURE__ */ t.jsxs("p", { children: [
91
91
  "Step ",
@@ -94,7 +94,7 @@ const Y = () => {
94
94
  ((j = s == null ? void 0 : s.sections) == null ? void 0 : j.length) || 1
95
95
  ] })
96
96
  ] }),
97
- /* @__PURE__ */ t.jsxs("div", { className: "w-full flex flex-col gap-6", children: [
97
+ /* @__PURE__ */ t.jsxs("div", { className: "flex w-full flex-col gap-6", children: [
98
98
  (v = r == null ? void 0 : r.fields) == null ? void 0 : v.map((e) => e && !e.hidden ? /* @__PURE__ */ t.jsx(
99
99
  _,
100
100
  {
@@ -105,7 +105,7 @@ const Y = () => {
105
105
  ) : null),
106
106
  !c && x && /* @__PURE__ */ t.jsx(M, {})
107
107
  ] }),
108
- /* @__PURE__ */ t.jsxs("div", { className: "flex mt-8 justify-between", children: [
108
+ /* @__PURE__ */ t.jsxs("div", { className: "mt-8 flex justify-between", children: [
109
109
  n !== 0 ? /* @__PURE__ */ t.jsx(
110
110
  g,
111
111
  {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as k } from "react-hook-form";
4
- import { z as w, A as j, B as v } from "./CollectionFormBuilder-DxViQE0w.js";
4
+ import { z as w, A as j, B as v } from "./CollectionFormBuilder-BPzVyGLq.js";
5
5
  import * as c from "@radix-ui/react-switch";
6
6
  import * as y from "react";
7
7
  import { c as d } from "./cn-C9QoOYNG.js";
@@ -34,7 +34,7 @@ const C = ({ field: e }) => {
34
34
  name: o,
35
35
  rules: w(e)
36
36
  }), f = !!(e != null && e.required), x = (l = n == null ? void 0 : n.error) == null ? void 0 : l.message;
37
- return /* @__PURE__ */ r.jsx(j, { error: x, helperText: u, readOnly: p, children: /* @__PURE__ */ r.jsxs("div", { className: "w-full flex items-center justify-between max-w-[300px]", children: [
37
+ return /* @__PURE__ */ r.jsx(j, { error: x, helperText: u, readOnly: p, children: /* @__PURE__ */ r.jsxs("div", { className: "flex w-full max-w-[300px] items-center justify-between", children: [
38
38
  s && /* @__PURE__ */ r.jsx(v, { htmlFor: o, isRequired: f, className: "!mb-0", children: s }),
39
39
  /* @__PURE__ */ r.jsx(
40
40
  m,
@@ -1,8 +1,8 @@
1
1
  import { j as t } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as g, get as h } from "react-hook-form";
3
3
  import { c as j } from "./cn-C9QoOYNG.js";
4
- import { A as F, B as b, z as y } from "./CollectionFormBuilder-DxViQE0w.js";
5
- import { I as f } from "./Input-2CvZ90f8.js";
4
+ import { A as F, B as b, z as y } from "./CollectionFormBuilder-BPzVyGLq.js";
5
+ import { I as f } from "./Input-Vv7mKQFt.js";
6
6
  const k = ({
7
7
  field: r,
8
8
  inputStyles: a,
@@ -1,7 +1,7 @@
1
1
  import { j as s } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as u, get as x } from "react-hook-form";
3
3
  import { c as b } from "./cn-C9QoOYNG.js";
4
- import { A as g, B as f, z as h } from "./CollectionFormBuilder-DxViQE0w.js";
4
+ import { A as g, B as f, z as h } from "./CollectionFormBuilder-BPzVyGLq.js";
5
5
  const w = ({ field: e }) => {
6
6
  var a;
7
7
  const {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as p } from "react-hook-form";
4
- import { z as u, A as g, B as C } from "./CollectionFormBuilder-DxViQE0w.js";
4
+ import { z as u, A as g, B as C } from "./CollectionFormBuilder-BPzVyGLq.js";
5
5
  import { C as f } from "./Checbox-sq-atGlJ.js";
6
6
  const y = ({
7
7
  field: e
@@ -19,7 +19,7 @@ const y = ({
19
19
  error: a == null ? void 0 : a.message,
20
20
  helperText: t,
21
21
  readOnly: n,
22
- children: /* @__PURE__ */ r.jsxs("div", { className: "w-full flex gap-2 items-start flex-nowrap", ref: d, children: [
22
+ children: /* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-nowrap items-start gap-2", ref: d, children: [
23
23
  /* @__PURE__ */ r.jsx(
24
24
  f,
25
25
  {
@@ -1,10 +1,10 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
- import { H as s } from "./CollectionFormBuilder-DxViQE0w.js";
3
- import r from "./TextWidget-I9pwxamg.js";
2
+ import { H as s } from "./CollectionFormBuilder-BPzVyGLq.js";
3
+ import r from "./TextWidget-Di_db2UE.js";
4
4
  const a = (t) => /* @__PURE__ */ e.jsx(
5
5
  r,
6
6
  {
7
- leftIcon: /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex items-center justify-center bg-muted", children: /* @__PURE__ */ e.jsx(s, { size: "20px", className: "text-muted-foreground" }) }),
7
+ leftIcon: /* @__PURE__ */ e.jsx("div", { className: "flex h-full w-full items-center justify-center bg-muted", children: /* @__PURE__ */ e.jsx(s, { size: "20px", className: "text-muted-foreground" }) }),
8
8
  ...t
9
9
  }
10
10
  );
@@ -4,11 +4,11 @@ import { MediaKindList as rt } from "@levo-so/core";
4
4
  import { Upload as Z, X as at, ExternalLink as et } from "lucide-react";
5
5
  import { useState as B, useMemo as D, useRef as st, useEffect as R } from "react";
6
6
  import { useController as ot } from "react-hook-form";
7
- import { G as q, S as W, B as F, k as nt, T as ct, l as lt, m as V, n as H } from "./Spinner-CDMNP44S.js";
8
- import { t as it, g as dt, z as xt, w as J, A as ut, B as mt } from "./CollectionFormBuilder-DxViQE0w.js";
7
+ import { G as q, S as W, B as F, k as nt, T as ct, l as lt, m as V, n as H } from "./Spinner-BcBoT-J5.js";
8
+ import { t as it, g as dt, z as xt, w as J, A as ut, B as mt } from "./CollectionFormBuilder-BPzVyGLq.js";
9
9
  import { u as G } from "./LevoProvider-BAZy7_tP.js";
10
10
  import { e as k } from "./errorHandler-_34Yv8wA.js";
11
- import { I as Q } from "./Input-2CvZ90f8.js";
11
+ import { I as Q } from "./Input-Vv7mKQFt.js";
12
12
  import { c as I } from "./cn-C9QoOYNG.js";
13
13
  import { useDropzone as ht } from "react-dropzone";
14
14
  import { c as pt, S as jt } from "./Tooltip-DoWyn3Ho.js";
@@ -87,17 +87,17 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
87
87
  });
88
88
  }
89
89
  }), P = i || g;
90
- return /* @__PURE__ */ r.jsx(pt, { children: /* @__PURE__ */ r.jsx("div", { className: "w-full min-h-[150px]", children: /* @__PURE__ */ r.jsxs(
90
+ return /* @__PURE__ */ r.jsx(pt, { children: /* @__PURE__ */ r.jsx("div", { className: "min-h-[150px] w-full", children: /* @__PURE__ */ r.jsxs(
91
91
  "div",
92
92
  {
93
93
  className: I(
94
- "flex items-center justify-center flex-col w-full rounded-md border-dashed border-[2px] border-gray-400 h-[14rem] p-4 gap-2 relative",
95
- P && "cursor-not-allowed opacity-80 "
94
+ "relative flex h-[14rem] w-full flex-col items-center justify-center gap-2 rounded-md border-[2px] border-dashed border-gray-400 p-4",
95
+ P && "cursor-not-allowed opacity-80"
96
96
  ),
97
97
  ...w(),
98
98
  children: [
99
- i && /* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-white bg-opacity-60 cursor-progress", children: /* @__PURE__ */ r.jsx(W, {}) }),
100
- /* @__PURE__ */ r.jsx("p", { className: "text-xl my-2", children: _ ? "Drop your files here..." : "Drag & Drop here to upload!" }),
99
+ i && /* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 flex cursor-progress items-center justify-center bg-white bg-opacity-60", children: /* @__PURE__ */ r.jsx(W, {}) }),
100
+ /* @__PURE__ */ r.jsx("p", { className: "my-2 text-xl", children: _ ? "Drop your files here..." : "Drag & Drop here to upload!" }),
101
101
  /* @__PURE__ */ r.jsx(
102
102
  "div",
103
103
  {
@@ -165,8 +165,8 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
165
165
  }
166
166
  j ? (a == null ? void 0 : a.findIndex((d) => (d == null ? void 0 : d.id) === (t == null ? void 0 : t.id))) >= 0 ? l == null || l(a == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.id) !== (t == null ? void 0 : t.id))) : l == null || l([...a || [], t]) : l == null || l([t]);
167
167
  };
168
- return /* @__PURE__ */ r.jsxs("div", { className: "bg-white p-0 rounded-md w-full relative", children: [
169
- /* @__PURE__ */ r.jsx("div", { className: "pb-2 bg-white sticky top-0 z-50 w-full", children: /* @__PURE__ */ r.jsx(
168
+ return /* @__PURE__ */ r.jsxs("div", { className: "relative w-full rounded-md bg-white p-0", children: [
169
+ /* @__PURE__ */ r.jsx("div", { className: "sticky top-0 z-50 w-full bg-white pb-2", children: /* @__PURE__ */ r.jsx(
170
170
  Q,
171
171
  {
172
172
  name: "searchText",
@@ -178,11 +178,11 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
178
178
  }
179
179
  }
180
180
  ) }),
181
- o && !u.length ? /* @__PURE__ */ r.jsx("div", { className: "w-full h-full min-h-[28rem] flex items-center justify-center", children: /* @__PURE__ */ r.jsx(W, {}) }) : /* @__PURE__ */ r.jsxs(
181
+ o && !u.length ? /* @__PURE__ */ r.jsx("div", { className: "flex h-full min-h-[28rem] w-full items-center justify-center", children: /* @__PURE__ */ r.jsx(W, {}) }) : /* @__PURE__ */ r.jsxs(
182
182
  "div",
183
183
  {
184
184
  ref: g,
185
- className: "w-full h-[28rem] overflow-y-auto overflow-x-hidden grid lg:grid-cols-4 gap-x-6 gap-y-4 p-2",
185
+ className: "grid h-[28rem] w-full gap-x-6 gap-y-4 overflow-y-auto overflow-x-hidden p-2 lg:grid-cols-4",
186
186
  children: [
187
187
  u == null ? void 0 : u.map((t, d) => {
188
188
  var A;
@@ -199,7 +199,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
199
199
  "div",
200
200
  {
201
201
  className: I(
202
- "cursor-pointer w-full group rounded-md overflow-hidden h-[130px] border-2 flex items-center justify-center",
202
+ "group flex h-[130px] w-full cursor-pointer items-center justify-center overflow-hidden rounded-md border-2",
203
203
  z ? "border-primary" : "border-gray-100"
204
204
  ),
205
205
  onClick: () => {
@@ -217,7 +217,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
217
217
  "div",
218
218
  {
219
219
  className: I(
220
- "rounded-md opacity-0 absolute left-0 right-0 top-0 w-full h-[42px] bg-[linear-gradient(0deg,_transparent_0%,_#000000_200%)]",
220
+ "absolute left-0 right-0 top-0 h-[42px] w-full rounded-md bg-[linear-gradient(0deg,_transparent_0%,_#000000_200%)] opacity-0",
221
221
  h ? "group-hover:opacity-100" : ""
222
222
  )
223
223
  }
@@ -226,14 +226,14 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
226
226
  bt,
227
227
  {
228
228
  name: "isFileIncluded",
229
- className: "absolute top-[10px] left-[10px]",
229
+ className: "absolute left-[10px] top-[10px]",
230
230
  checked: z
231
231
  }
232
232
  ),
233
233
  (t == null ? void 0 : t.kind) !== "image" ? /* @__PURE__ */ r.jsx(X, { size: "60px", className: "text-gray-400" }) : /* @__PURE__ */ r.jsx(
234
234
  "img",
235
235
  {
236
- className: "w-full h-full object-contain",
236
+ className: "h-full w-full object-contain",
237
237
  srcSet: (A = t == null ? void 0 : t.srcset) == null ? void 0 : A.path,
238
238
  src: t == null ? void 0 : t.location
239
239
  }
@@ -242,7 +242,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
242
242
  }
243
243
  ),
244
244
  /* @__PURE__ */ r.jsxs("div", { className: "my-[10px]", children: [
245
- /* @__PURE__ */ r.jsx("p", { className: "text-sm whitespace-nowrap overflow-hidden text-ellipsis", children: t == null ? void 0 : t.filename }),
245
+ /* @__PURE__ */ r.jsx("p", { className: "overflow-hidden text-ellipsis whitespace-nowrap text-sm", children: t == null ? void 0 : t.filename }),
246
246
  /* @__PURE__ */ r.jsx("p", { className: "text-xs text-gray-500", children: gt(t == null ? void 0 : t.metadata.size) })
247
247
  ] })
248
248
  ]
@@ -250,7 +250,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
250
250
  `media-layout-file-${d}`
251
251
  );
252
252
  }),
253
- o && /* @__PURE__ */ r.jsx("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ r.jsx(W, {}) })
253
+ o && /* @__PURE__ */ r.jsx("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ r.jsx(W, {}) })
254
254
  ]
255
255
  }
256
256
  )
@@ -264,7 +264,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
264
264
  return R(() => {
265
265
  var i, x;
266
266
  !j && a[0] && !((i = a[0]) != null && i.location.includes("levo")) && s((x = a[0]) == null ? void 0 : x.location);
267
- }, [a]), /* @__PURE__ */ r.jsx("div", { className: "bg-white p-0 rounded-md w-full relative", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-4 py-2 pl-0.5 bg-white sticky top-0 z-50 w-full", children: [
267
+ }, [a]), /* @__PURE__ */ r.jsx("div", { className: "relative w-full rounded-md bg-white p-0", children: /* @__PURE__ */ r.jsxs("div", { className: "sticky top-0 z-50 flex w-full items-center gap-4 bg-white py-2 pl-0.5", children: [
268
268
  /* @__PURE__ */ r.jsx(
269
269
  Q,
270
270
  {
@@ -311,10 +311,10 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
311
311
  }, At = ({ media: a, handleDeleteSelf: l }) => /* @__PURE__ */ r.jsxs(
312
312
  "div",
313
313
  {
314
- className: I("group py-2 flex items-center relative w-full border-b"),
314
+ className: I("group relative flex w-full items-center border-b py-2"),
315
315
  children: [
316
316
  (a == null ? void 0 : a.kind) !== "image" ? /* @__PURE__ */ r.jsx(X, { size: 48, className: "text-muted-foreground/80" }) : /* @__PURE__ */ r.jsx("img", { className: "h-12 max-w-16 object-contain", src: a == null ? void 0 : a.location }),
317
- /* @__PURE__ */ r.jsx("p", { className: "text-sm ml-5", children: (a == null ? void 0 : a.filename) ?? (a == null ? void 0 : a.location) }),
317
+ /* @__PURE__ */ r.jsx("p", { className: "ml-5 text-sm", children: (a == null ? void 0 : a.filename) ?? (a == null ? void 0 : a.location) }),
318
318
  /* @__PURE__ */ r.jsx(
319
319
  F,
320
320
  {
@@ -344,7 +344,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
344
344
  });
345
345
  };
346
346
  return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ r.jsxs("div", { className: I("mt-4", j), children: [
347
- /* @__PURE__ */ r.jsx("p", { className: "text-sm text-muted-foreground mb-1", children: (n == null ? void 0 : n.length) > 1 ? "All files" : `All ${n == null ? void 0 : n[0]}s` }),
347
+ /* @__PURE__ */ r.jsx("p", { className: "mb-1 text-sm text-muted-foreground", children: (n == null ? void 0 : n.length) > 1 ? "All files" : `All ${n == null ? void 0 : n[0]}s` }),
348
348
  /* @__PURE__ */ r.jsx("div", { children: s == null ? void 0 : s.map((x) => /* @__PURE__ */ r.jsx(
349
349
  At,
350
350
  {
@@ -358,7 +358,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
358
358
  "span",
359
359
  {
360
360
  className: I(
361
- "rounded-full flex-shrink-0 text-sm px-1.5 grid place-content-center bg-gray-300 ml-1"
361
+ "ml-1 grid flex-shrink-0 place-content-center rounded-full bg-gray-300 px-1.5 text-sm"
362
362
  ),
363
363
  children: a
364
364
  }
@@ -489,7 +489,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
489
489
  )
490
490
  ] }) })
491
491
  ] }),
492
- /* @__PURE__ */ r.jsx("div", { className: "flex justify-end mt-5", children: /* @__PURE__ */ r.jsxs(F, { variant: "default", onClick: L, children: [
492
+ /* @__PURE__ */ r.jsx("div", { className: "mt-5 flex justify-end", children: /* @__PURE__ */ r.jsxs(F, { variant: "default", onClick: L, children: [
493
493
  "Save",
494
494
  " ",
495
495
  w === 1 ? `${w} file` : `${w} files`
@@ -614,16 +614,16 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
614
614
  )
615
615
  ] })
616
616
  ] }),
617
- (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ r.jsx("div", { className: "mt-3 w-full", children: /* @__PURE__ */ r.jsx("div", { className: "w-full grid gap-4 grid-cols-[repeat(auto-fill,_minmax(100px,_1fr))]", children: c == null ? void 0 : c.map((e, T) => e != null && e.location ? /* @__PURE__ */ r.jsxs(
617
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ r.jsx("div", { className: "mt-3 w-full", children: /* @__PURE__ */ r.jsx("div", { className: "grid w-full grid-cols-[repeat(auto-fill,_minmax(100px,_1fr))] gap-4", children: c == null ? void 0 : c.map((e, T) => e != null && e.location ? /* @__PURE__ */ r.jsxs(
618
618
  "div",
619
619
  {
620
- className: "relative border overflow-hidden group w-full rounded-xl h-28 flex items-center justify-center",
620
+ className: "group relative flex h-28 w-full items-center justify-center overflow-hidden rounded-xl border",
621
621
  children: [
622
- /* @__PURE__ */ r.jsx("div", { className: "w-full bg-black/20 h-full absolute top-0 left-0 z-10 hidden group-hover:flex items-center justify-center", children: /* @__PURE__ */ r.jsx("a", { href: e == null ? void 0 : e.location, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ r.jsx(et, { size: 24 }) }) }),
622
+ /* @__PURE__ */ r.jsx("div", { className: "absolute left-0 top-0 z-10 hidden h-full w-full items-center justify-center bg-black/20 group-hover:flex", children: /* @__PURE__ */ r.jsx("a", { href: e == null ? void 0 : e.location, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ r.jsx(et, { size: 24 }) }) }),
623
623
  (e == null ? void 0 : e.kind) !== "image" ? /* @__PURE__ */ r.jsx(X, { size: "60px", className: "text-gray-400" }) : /* @__PURE__ */ r.jsx(
624
624
  "img",
625
625
  {
626
- className: "w-full h-full object-contain",
626
+ className: "h-full w-full object-contain",
627
627
  src: e == null ? void 0 : e.location,
628
628
  alt: e == null ? void 0 : e.id
629
629
  }
@@ -631,7 +631,7 @@ const Nt = ({ onChange: a, value: l, kind: j, isMultiple: n = !1 }) => {
631
631
  /* @__PURE__ */ r.jsx(
632
632
  "button",
633
633
  {
634
- className: "absolute z-10 top-1 right-1 bg-white p-1 rounded-full focus:outline-none",
634
+ className: "absolute right-1 top-1 z-10 rounded-full bg-white p-1 focus:outline-none",
635
635
  onClick: () => {
636
636
  f(
637
637
  c == null ? void 0 : c.filter((b) => (b == null ? void 0 : b.id) !== (e == null ? void 0 : e.id))
@@ -1 +1 @@
1
- {"version":3,"file":"useTrackClicks.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/useTrackClicks.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,cAAc,YA6DnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"useTrackClicks.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/useTrackClicks.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,cAAc,YAmEnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import { L as e, a, b as n } from "../page-Bgl12goV.js";
1
+ import { L as e, a, b as n } from "../page-jWvzWjyk.js";
2
2
  export {
3
3
  e as LevoInsightsBlock,
4
4
  a as LevoInsightsComponent,
@@ -1,14 +1,13 @@
1
1
  export declare const isTextNode: (el: Element | undefined | null) => el is HTMLElement;
2
- export declare const makeSafeText: (s: string | null | undefined) => string | null;
2
+ export declare const makeSafeText: (s: string | null | undefined, length?: number) => string;
3
3
  export declare const getSafeText: (el: Element) => string;
4
4
  export declare const getEventTarget: (e: Event) => Element | null;
5
5
  export declare const shouldCaptureDomEvent: (el: Element, event: Event) => boolean;
6
- export declare const isSensitiveElement: (el: Element) => boolean;
7
6
  export declare const shouldCaptureValue: (value: string, anchorRegexes?: boolean) => boolean;
8
7
  export declare const isAngularStyleAttr: (attributeName: string) => boolean;
9
8
  export declare const getDirectAndNestedSpanText: (target: Element) => string;
10
9
  export type Property = any;
11
10
  export type Properties = Record<string, Property>;
12
11
  export declare const getAttributes: (element: Element) => Properties;
13
- export declare const getPropertiesFromEvent: (e: Event, eventName: string) => false | Properties | null;
12
+ export declare const getPropertiesFromEvent: (e: Event, eventName: string) => Properties | null;
14
13
  //# sourceMappingURL=autocapture.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocapture.d.ts","sourceRoot":"","sources":["../../../src/audience/utils/autocapture.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,UAAU,OACjB,OAAO,GAAG,SAAS,GAAG,IAAI,KAC7B,EAAE,IAAI,WAER,CAAC;AAyDF,eAAO,MAAM,YAAY,MAAO,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAiBpE,CAAC;AAWF,eAAO,MAAM,WAAW,OAAQ,OAAO,KAAG,MAiBzC,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,KAAK,KAAG,OAAO,GAAG,IASnD,CAAC;AAYF,eAAO,MAAM,qBAAqB,OAAQ,OAAO,SAAS,KAAK,KAAG,OA2BjE,CAAC;AA+CF,eAAO,MAAM,kBAAkB,OAAQ,OAAO,KAAG,OAchD,CAAC;AAuBF,eAAO,MAAM,kBAAkB,UACtB,MAAM,8BAEZ,OAuBF,CAAC;AASF,eAAO,MAAM,kBAAkB,kBAAmB,MAAM,KAAG,OAQ1D,CAAC;AASF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,MAI5D,CAAC;AA6BF,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAIlD,eAAO,MAAM,aAAa,YAAa,OAAO,KAAG,UAoEhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAO,KAAK,aAAa,MAAM,8BA6BjE,CAAC"}
1
+ {"version":3,"file":"autocapture.d.ts","sourceRoot":"","sources":["../../../src/audience/utils/autocapture.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,UAAU,OACjB,OAAO,GAAG,SAAS,GAAG,IAAI,KAC7B,EAAE,IAAI,WAER,CAAC;AA2DF,eAAO,MAAM,YAAY,MACpB,MAAM,GAAG,IAAI,GAAG,SAAS,sBAE3B,MAiBF,CAAC;AAWF,eAAO,MAAM,WAAW,OAAQ,OAAO,KAAG,MAiBzC,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,KAAK,KAAG,OAAO,GAAG,IASnD,CAAC;AAYF,eAAO,MAAM,qBAAqB,OAAQ,OAAO,SAAS,KAAK,KAAG,OA2BjE,CAAC;AAoFF,eAAO,MAAM,kBAAkB,UACtB,MAAM,8BAEZ,OAuBF,CAAC;AASF,eAAO,MAAM,kBAAkB,kBAAmB,MAAM,KAAG,OAQ1D,CAAC;AASF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,MAI5D,CAAC;AA6BF,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAIlD,eAAO,MAAM,aAAa,YAAa,OAAO,KAAG,UAmFhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAO,KAAK,aAAa,MAAM,sBA2BjE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { C as s, F as r, e as t, b as i, c as l, f as o, g as d, d as m, i as u, a as n, p as f, h as F, s as g, u as p, v as V } from "../CollectionFormBuilder-DxViQE0w.js";
1
+ import { C as s, F as r, e as t, b as i, c as l, f as o, g as d, d as m, i as u, a as n, p as f, h as F, s as g, u as p, v as V } from "../CollectionFormBuilder-BPzVyGLq.js";
2
2
  import { default as h } from "validatorjs";
3
3
  export {
4
4
  s as CollectionFormBuilder,
@@ -1,4 +1,4 @@
1
- import { B as s, D as r, j as t, e as i, i as e, g as l, f as T, c as g, a as p, h as n, d as D, k as b, S as m, T as c, n as f, l as d, m as x, b as C } from "../Spinner-CDMNP44S.js";
1
+ import { B as s, D as r, j as t, e as i, i as e, g as l, f as T, c as g, a as p, h as n, d as D, k as b, S as m, T as c, n as f, l as d, m as x, b as C } from "../Spinner-BcBoT-J5.js";
2
2
  import { T as u, e as P, s as v } from "../Sonner-t6JVKA0a.js";
3
3
  import { S as W, T as h, b as j, d as k, c as y, a as F } from "../Tooltip-DoWyn3Ho.js";
4
4
  import { toast as L } from "sonner";
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { L as s, u as o } from "./LevoProvider-BAZy7_tP.js";
2
- import { L as t, a as r, b as l } from "./page-Bgl12goV.js";
3
- import { C as m, F as p, x as d, y as g, m as T, r as f, j as u, n as c, e as x, b, c as D, f as y, g as F, d as v, k as h, o as L, i as M, a as E, w as P, t as B, p as C, h as O, s as V, u as j, v as I, l as S, q as K } from "./CollectionFormBuilder-DxViQE0w.js";
2
+ import { L as t, a as r, b as l } from "./page-jWvzWjyk.js";
3
+ import { C as m, F as p, x as d, y as g, m as T, r as f, j as u, n as c, e as x, b, c as D, f as y, g as F, d as v, k as h, o as L, i as M, a as E, w as P, t as B, p as C, h as O, s as V, u as j, v as I, l as S, q as K } from "./CollectionFormBuilder-BPzVyGLq.js";
4
4
  import { LevoOAuth as U } from "./membership/index.js";
5
- import { B as H, D as N, j as q, e as w, i as z, g as A, f as R, c as G, a as J, h as Q, d as X, k as Y, S as Z, T as _, n as $, l as aa, m as ea, b as sa } from "./Spinner-CDMNP44S.js";
5
+ import { B as H, D as N, j as q, e as w, i as z, g as A, f as R, c as G, a as J, h as Q, d as X, k as Y, S as Z, T as _, n as $, l as aa, m as ea, b as sa } from "./Spinner-BcBoT-J5.js";
6
6
  import { T as ia, e as ta, s as ra } from "./Sonner-t6JVKA0a.js";
7
7
  import { S as na, T as ma, b as pa, d as da, c as ga, a as Ta } from "./Tooltip-DoWyn3Ho.js";
8
8
  import { b as ua } from "./byteToSize-BFKZSBu1.js";