@levo-so/react 0.1.1 → 0.1.2
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/dist/{CheckboxWidget-ComdVcZ_.js → CheckboxWidget-BV2nPDdB.js} +1 -1
- package/dist/{CollectionFormBuilder-jwwjyIpv.js → CollectionFormBuilder-uvr15jvu.js} +61 -51
- package/dist/{CurrencyWidget-DVqD_lsY.js → CurrencyWidget-VzBWDdzQ.js} +1 -1
- package/dist/{DateTimeWidget-CvgzwY1U.js → DateTimeWidget-QmZXdxzS.js} +1 -1
- package/dist/{DefaultFormVariant-CbRB9O_e.js → DefaultFormVariant-DyyCGXvB.js} +2 -2
- package/dist/{DropdownWidget-C2YaM9Cf.js → DropdownWidget-CxWQF6r3.js} +1 -1
- package/dist/{EmailWidget-BBthwF68.js → EmailWidget-BxxtgUGU.js} +1 -1
- package/dist/{GeocoderWidget-Dht_2vi6.js → GeocoderWidget-lh46EUHn.js} +1 -1
- package/dist/{MultiGeocoderWidget-paCFW0QZ.js → MultiGeocoderWidget-C84ZYxpR.js} +2 -2
- package/dist/{PhoneWidget-CP2T2JDx.js → PhoneWidget-_-cBcZ_D.js} +9 -8
- package/dist/{RadioWidget-BuFPz7kK.js → RadioWidget-BJ1qwTRO.js} +1 -1
- package/dist/{RichTextWidget-DGFNZ1jl.js → RichTextWidget-CC6uShje.js} +1 -1
- package/dist/{StepsFormVariant-5_c3f2Vk.js → StepsFormVariant-BxANsU4Z.js} +2 -2
- package/dist/{SwitchWidget-t8iwhxk9.js → SwitchWidget-CbCYweyx.js} +1 -1
- package/dist/{TextWidget-D0UBxTxe.js → TextWidget-CfEeuyFV.js} +1 -1
- package/dist/{TextareaWidget-CG6J_plD.js → TextareaWidget-Dqt4CVV-.js} +1 -1
- package/dist/{ToggleCheckboxWidget-dl8ks4VX.js → ToggleCheckboxWidget-D8CxllEX.js} +1 -1
- package/dist/{URLWidget-CHeUEUXl.js → URLWidget-C07DCMOd.js} +2 -2
- package/dist/{UploadWidget-CzYGViqE.js → UploadWidget-DoY_CPLy.js} +1 -1
- package/dist/collection/components/renderer/RenderCommonField.d.ts.map +1 -1
- package/dist/collection/components/widgets/phoneWidget/PhoneWidget.d.ts.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/formHelpers.d.ts +1 -1
- package/dist/collection/utils/formHelpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{useLevoForm-BcN8f66y.js → useLevoForm-B4Dmf73H.js} +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import B, { useState as k } from "react";
|
|
4
4
|
import { useController as C } from "react-hook-form";
|
|
5
|
-
import { h as E, j as I, k as u } from "./CollectionFormBuilder-
|
|
5
|
+
import { h as E, j as I, k as u } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
6
6
|
import { C as w } from "./Checbox-sq-atGlJ.js";
|
|
7
7
|
import { I as O } from "./Input-2CvZ90f8.js";
|
|
8
8
|
import { c as _ } from "./cn-C9QoOYNG.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as s } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { FieldInterfaces as a, defaultByKinds as F, formatsByInterface as se, interfaceKinds as oe, FieldInterfacesList as ae } from "@levo-so/core";
|
|
4
4
|
import { G as O, T as ie, a as le, c as ce, B as v, d as ue, r as de, s as ge, S as me } from "./Spinner-CuUosd-S.js";
|
|
5
|
-
import j, { useState as
|
|
5
|
+
import j, { useState as L, lazy as h, Suspense as he, useEffect as pe } from "react";
|
|
6
6
|
import { useFieldArray as xe, useController as ye } from "react-hook-form";
|
|
7
7
|
import { Mate as $ } from "@theinternetfolks/mate";
|
|
8
8
|
import { Snowflake as fe } from "@theinternetfolks/snowflake";
|
|
@@ -21,7 +21,7 @@ const { PhoneNumberUtil: ke } = We, ve = (e) => {
|
|
|
21
21
|
return r;
|
|
22
22
|
}, z = ke.getInstance(), we = (e) => {
|
|
23
23
|
try {
|
|
24
|
-
return
|
|
24
|
+
return z.isValidNumber(z.parseAndKeepRawInput(e));
|
|
25
25
|
} catch {
|
|
26
26
|
return !1;
|
|
27
27
|
}
|
|
@@ -169,10 +169,10 @@ const { PhoneNumberUtil: ke } = We, ve = (e) => {
|
|
|
169
169
|
function Wt(e) {
|
|
170
170
|
return O({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M9.243 3.03a1 1 0 01.727 1.213L9.53 6h2.94l.56-2.243a1 1 0 111.94.486L14.53 6H17a1 1 0 110 2h-2.97l-1 4H15a1 1 0 110 2h-2.47l-.56 2.242a1 1 0 11-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 11-1.94-.485L5.47 14H3a1 1 0 110-2h2.97l1-4H5a1 1 0 110-2h2.47l.56-2.243a1 1 0 011.213-.727zM9.03 8l-1 4h2.938l1-4H9.031z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function E(e) {
|
|
173
173
|
return O({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const A = ({
|
|
176
176
|
children: e,
|
|
177
177
|
isRequired: r,
|
|
178
178
|
className: t,
|
|
@@ -196,11 +196,11 @@ const I = ({
|
|
|
196
196
|
field: e,
|
|
197
197
|
isInternal: r
|
|
198
198
|
}) => {
|
|
199
|
-
const { key: t = "", label: n = "", field_interface: i = "", fields: d = [] } = e, [o, c] =
|
|
199
|
+
const { key: t = "", label: n = "", field_interface: i = "", fields: d = [] } = e, [o, c] = L("0"), { fields: u, ...g } = xe({
|
|
200
200
|
name: t
|
|
201
201
|
});
|
|
202
202
|
return !i || !t ? null : /* @__PURE__ */ s.jsxs("div", { className: "w-full max-w-full", children: [
|
|
203
|
-
/* @__PURE__ */ s.jsx(
|
|
203
|
+
/* @__PURE__ */ s.jsx(A, { className: "text-md font-medium mb-4", children: n }),
|
|
204
204
|
u && Array.isArray(u) ? /* @__PURE__ */ s.jsxs(ie, { value: o, onValueChange: c, className: "w-full", children: [
|
|
205
205
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 w-full", children: [
|
|
206
206
|
u.length ? /* @__PURE__ */ s.jsx(le, { className: "h-11 overflow-y-hidden overflow-x-auto flex-1 w-1 justify-start", children: u == null ? void 0 : u.map((x, l) => /* @__PURE__ */ s.jsx(
|
|
@@ -222,7 +222,7 @@ const I = ({
|
|
|
222
222
|
g.append(C(d)), c(((u == null ? void 0 : u.length) ?? 0).toString());
|
|
223
223
|
},
|
|
224
224
|
children: [
|
|
225
|
-
/* @__PURE__ */ s.jsx(
|
|
225
|
+
/* @__PURE__ */ s.jsx(E, { className: "inline-block mr-1", size: "14px" }),
|
|
226
226
|
"Add"
|
|
227
227
|
]
|
|
228
228
|
}
|
|
@@ -298,7 +298,7 @@ const I = ({
|
|
|
298
298
|
g.append(C(d)), c("0");
|
|
299
299
|
},
|
|
300
300
|
children: [
|
|
301
|
-
/* @__PURE__ */ s.jsx(
|
|
301
|
+
/* @__PURE__ */ s.jsx(E, { className: "inline-block mr-1", size: "14px" }),
|
|
302
302
|
"Add"
|
|
303
303
|
]
|
|
304
304
|
}
|
|
@@ -392,9 +392,9 @@ const I = ({
|
|
|
392
392
|
}
|
|
393
393
|
), Te = ({
|
|
394
394
|
children: e
|
|
395
|
-
}) => /* @__PURE__ */ s.jsx("p", { className: "text-xs font-normal text-red-400 text-wrap", children: e }),
|
|
395
|
+
}) => /* @__PURE__ */ s.jsx("p", { className: "text-xs font-normal text-red-400 text-wrap", children: e }), Ae = ({
|
|
396
396
|
children: e
|
|
397
|
-
}) => /* @__PURE__ */ s.jsx("p", { className: f("text-xs font-normal text-gray-600"), children: e }),
|
|
397
|
+
}) => /* @__PURE__ */ s.jsx("p", { className: f("text-xs font-normal text-gray-600"), children: e }), Ie = j.forwardRef(({ error: e, helperText: r, containerStyles: t, readOnly: n, children: i }, d) => /* @__PURE__ */ s.jsx(
|
|
398
398
|
"div",
|
|
399
399
|
{
|
|
400
400
|
className: f(
|
|
@@ -406,26 +406,26 @@ const I = ({
|
|
|
406
406
|
children: /* @__PURE__ */ s.jsxs("div", { className: f("w-full shrink-0", "sm:flex-1"), children: [
|
|
407
407
|
i,
|
|
408
408
|
e && /* @__PURE__ */ s.jsx("div", { className: f("w-full mt-3"), children: /* @__PURE__ */ s.jsx(Te, { children: e }) }),
|
|
409
|
-
r && /* @__PURE__ */ s.jsx("div", { className: f("w-full mt-3"), children: /* @__PURE__ */ s.jsx(
|
|
409
|
+
r && /* @__PURE__ */ s.jsx("div", { className: f("w-full mt-3"), children: /* @__PURE__ */ s.jsx(Ae, { children: r }) })
|
|
410
410
|
] })
|
|
411
411
|
}
|
|
412
|
-
)),
|
|
412
|
+
)), Me = ({
|
|
413
413
|
field: e
|
|
414
414
|
}) => {
|
|
415
|
-
var
|
|
416
|
-
const { collection: r } = G(), [t, n] =
|
|
415
|
+
var I, M, D;
|
|
416
|
+
const { collection: r } = G(), [t, n] = L(!1), { key: i = "", label: d = "", helper_text: o = "", readonly: c = !1 } = e, u = i, g = ((I = e == null ? void 0 : e.options) == null ? void 0 : I.collection_key) || "", x = ((M = e == null ? void 0 : e.options) == null ? void 0 : M.label_field_key) || "", {
|
|
417
417
|
field: { value: l, onBlur: p, onChange: b, ref: W, disabled: X, ...Y },
|
|
418
|
-
fieldState:
|
|
418
|
+
fieldState: N
|
|
419
419
|
} = ye({
|
|
420
420
|
name: u,
|
|
421
421
|
rules: Re(e)
|
|
422
|
-
}), Z = !!(e != null && e.required), ee = (
|
|
422
|
+
}), Z = !!(e != null && e.required), ee = (D = N == null ? void 0 : N.error) == null ? void 0 : D.message, te = async (y, Ye, { page: T = 1 }) => {
|
|
423
423
|
var S;
|
|
424
424
|
n(!0);
|
|
425
425
|
try {
|
|
426
426
|
const _ = await (r == null ? void 0 : r.getCollectionContentList({
|
|
427
427
|
collection_key: g,
|
|
428
|
-
page:
|
|
428
|
+
page: T,
|
|
429
429
|
search: y,
|
|
430
430
|
limit: 10
|
|
431
431
|
})), k = (S = _ == null ? void 0 : _.content) == null ? void 0 : S.data, V = (k || []).map((m) => {
|
|
@@ -443,7 +443,7 @@ const I = ({
|
|
|
443
443
|
options: Array.isArray(V) ? V : [],
|
|
444
444
|
hasMore: k && !((k == null ? void 0 : k.length) < 10),
|
|
445
445
|
additional: {
|
|
446
|
-
page:
|
|
446
|
+
page: T + 1
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
} catch {
|
|
@@ -451,7 +451,7 @@ const I = ({
|
|
|
451
451
|
options: [],
|
|
452
452
|
hasMore: !1,
|
|
453
453
|
additional: {
|
|
454
|
-
page:
|
|
454
|
+
page: T
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
457
|
} finally {
|
|
@@ -466,14 +466,14 @@ const I = ({
|
|
|
466
466
|
}
|
|
467
467
|
} : null;
|
|
468
468
|
return /* @__PURE__ */ s.jsxs(
|
|
469
|
-
|
|
469
|
+
Ie,
|
|
470
470
|
{
|
|
471
471
|
ref: W,
|
|
472
472
|
error: ee,
|
|
473
473
|
helperText: o,
|
|
474
474
|
readOnly: c,
|
|
475
475
|
children: [
|
|
476
|
-
d && /* @__PURE__ */ s.jsx(
|
|
476
|
+
d && /* @__PURE__ */ s.jsx(A, { htmlFor: u, isRequired: Z, children: d }),
|
|
477
477
|
/* @__PURE__ */ s.jsx(
|
|
478
478
|
Ne,
|
|
479
479
|
{
|
|
@@ -502,25 +502,25 @@ const I = ({
|
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
|
-
},
|
|
506
|
-
() => import("./CurrencyWidget-
|
|
505
|
+
}, H = h(() => import("./TextWidget-CfEeuyFV.js")), De = h(
|
|
506
|
+
() => import("./CurrencyWidget-VzBWDdzQ.js")
|
|
507
507
|
), Se = h(
|
|
508
|
-
() => import("./CheckboxWidget-
|
|
508
|
+
() => import("./CheckboxWidget-BV2nPDdB.js")
|
|
509
509
|
), U = h(
|
|
510
|
-
() => import("./DateTimeWidget-
|
|
510
|
+
() => import("./DateTimeWidget-QmZXdxzS.js")
|
|
511
511
|
), q = h(
|
|
512
|
-
() => import("./DropdownWidget-
|
|
513
|
-
), Ve = h(() => import("./EmailWidget-
|
|
514
|
-
() => import("./GeocoderWidget-
|
|
512
|
+
() => import("./DropdownWidget-CxWQF6r3.js")
|
|
513
|
+
), Ve = h(() => import("./EmailWidget-BxxtgUGU.js")), $e = h(
|
|
514
|
+
() => import("./GeocoderWidget-lh46EUHn.js")
|
|
515
515
|
), Pe = h(
|
|
516
|
-
() => import("./MultiGeocoderWidget-
|
|
517
|
-
), ze = h(() => import("./PhoneWidget-
|
|
518
|
-
() => import("./RichTextWidget-
|
|
519
|
-
),
|
|
520
|
-
() => import("./TextareaWidget-
|
|
516
|
+
() => import("./MultiGeocoderWidget-C84ZYxpR.js")
|
|
517
|
+
), ze = h(() => import("./PhoneWidget-_-cBcZ_D.js")), Be = h(() => import("./RadioWidget-BJ1qwTRO.js")), Ee = h(
|
|
518
|
+
() => import("./RichTextWidget-CC6uShje.js")
|
|
519
|
+
), He = h(() => import("./SwitchWidget-CbCYweyx.js")), Ue = h(
|
|
520
|
+
() => import("./TextareaWidget-Dqt4CVV-.js")
|
|
521
521
|
), qe = h(
|
|
522
|
-
() => import("./ToggleCheckboxWidget-
|
|
523
|
-
), Fe = h(() => import("./URLWidget-
|
|
522
|
+
() => import("./ToggleCheckboxWidget-D8CxllEX.js")
|
|
523
|
+
), Fe = h(() => import("./URLWidget-C07DCMOd.js")), R = h(() => import("./UploadWidget-DoY_CPLy.js")), Oe = ({
|
|
524
524
|
field: e,
|
|
525
525
|
isInternal: r
|
|
526
526
|
}) => {
|
|
@@ -530,11 +530,11 @@ const I = ({
|
|
|
530
530
|
return null;
|
|
531
531
|
switch (t) {
|
|
532
532
|
case a.TextWidget:
|
|
533
|
-
return /* @__PURE__ */ s.jsx(
|
|
533
|
+
return /* @__PURE__ */ s.jsx(H, { field: e });
|
|
534
534
|
case a.NumberWidget:
|
|
535
|
-
return /* @__PURE__ */ s.jsx(
|
|
535
|
+
return /* @__PURE__ */ s.jsx(H, { type: "number", field: e });
|
|
536
536
|
case a.CurrencyWidget:
|
|
537
|
-
return /* @__PURE__ */ s.jsx(
|
|
537
|
+
return /* @__PURE__ */ s.jsx(De, { field: e });
|
|
538
538
|
case a.CheckboxWidget:
|
|
539
539
|
return /* @__PURE__ */ s.jsx(Se, { field: e });
|
|
540
540
|
case a.DateTimeWidget:
|
|
@@ -556,9 +556,9 @@ const I = ({
|
|
|
556
556
|
case a.RadioWidget:
|
|
557
557
|
return /* @__PURE__ */ s.jsx(Be, { field: e });
|
|
558
558
|
case a.RichTextWidget:
|
|
559
|
-
return /* @__PURE__ */ s.jsx(He, { field: e });
|
|
560
|
-
case a.SwitchWidget:
|
|
561
559
|
return /* @__PURE__ */ s.jsx(Ee, { field: e });
|
|
560
|
+
case a.SwitchWidget:
|
|
561
|
+
return /* @__PURE__ */ s.jsx(He, { field: e });
|
|
562
562
|
case a.TextareaWidget:
|
|
563
563
|
return /* @__PURE__ */ s.jsx(Ue, { field: e });
|
|
564
564
|
case a.ToggleCheckboxWidget:
|
|
@@ -567,7 +567,7 @@ const I = ({
|
|
|
567
567
|
return /* @__PURE__ */ s.jsx(Fe, { field: e });
|
|
568
568
|
case a.ImageUploadWidget:
|
|
569
569
|
return /* @__PURE__ */ s.jsx(
|
|
570
|
-
|
|
570
|
+
R,
|
|
571
571
|
{
|
|
572
572
|
field: e,
|
|
573
573
|
isMultiple: !1,
|
|
@@ -577,7 +577,7 @@ const I = ({
|
|
|
577
577
|
);
|
|
578
578
|
case a.MultiImageUploadWidget:
|
|
579
579
|
return /* @__PURE__ */ s.jsx(
|
|
580
|
-
|
|
580
|
+
R,
|
|
581
581
|
{
|
|
582
582
|
field: e,
|
|
583
583
|
isMultiple: !0,
|
|
@@ -587,11 +587,21 @@ const I = ({
|
|
|
587
587
|
);
|
|
588
588
|
case a.FileUploadWidget:
|
|
589
589
|
return /* @__PURE__ */ s.jsx(
|
|
590
|
-
|
|
590
|
+
R,
|
|
591
591
|
{
|
|
592
592
|
field: e,
|
|
593
593
|
isMultiple: !1,
|
|
594
|
-
kind: ["document"],
|
|
594
|
+
kind: ["audio", "video", "image", "document"],
|
|
595
|
+
isExternal: !r
|
|
596
|
+
}
|
|
597
|
+
);
|
|
598
|
+
case a.MultiFileUploadWidget:
|
|
599
|
+
return /* @__PURE__ */ s.jsx(
|
|
600
|
+
R,
|
|
601
|
+
{
|
|
602
|
+
field: e,
|
|
603
|
+
isMultiple: !0,
|
|
604
|
+
kind: ["audio", "video", "image", "document"],
|
|
595
605
|
isExternal: !r
|
|
596
606
|
}
|
|
597
607
|
);
|
|
@@ -600,7 +610,7 @@ const I = ({
|
|
|
600
610
|
"[LevoCollection]: Error while rendering collection widget. Collection key of label field key is required."
|
|
601
611
|
), null) : (o = e == null ? void 0 : e.options) != null && o.connected_have_many_current && ((c = e == null ? void 0 : e.options) != null && c.current_have_many_connected) ? (console.error(
|
|
602
612
|
"[LevoCollection]: Error while rendering collection widget. Field options not set correctly."
|
|
603
|
-
), null) : /* @__PURE__ */ s.jsx(
|
|
613
|
+
), null) : /* @__PURE__ */ s.jsx(Me, { field: e });
|
|
604
614
|
default:
|
|
605
615
|
return null;
|
|
606
616
|
}
|
|
@@ -610,7 +620,7 @@ const I = ({
|
|
|
610
620
|
}) => {
|
|
611
621
|
const { key: t = "", label: n = "", field_interface: i = "", fields: d = [] } = e;
|
|
612
622
|
return !i || !t ? null : /* @__PURE__ */ s.jsxs("div", { className: "w-full", children: [
|
|
613
|
-
/* @__PURE__ */ s.jsx(
|
|
623
|
+
/* @__PURE__ */ s.jsx(A, { className: "text-md font-medium mb-4", children: n }),
|
|
614
624
|
/* @__PURE__ */ s.jsx("div", { className: "border rounded bg-secondary/40 flex flex-col px-3 py-4 gap-3", children: d.map((o) => {
|
|
615
625
|
const c = {
|
|
616
626
|
...o,
|
|
@@ -658,9 +668,9 @@ const I = ({
|
|
|
658
668
|
e
|
|
659
669
|
] });
|
|
660
670
|
}, bt = () => j.useContext(Q), Je = j.lazy(
|
|
661
|
-
() => import("./DefaultFormVariant-
|
|
671
|
+
() => import("./DefaultFormVariant-DyyCGXvB.js")
|
|
662
672
|
), Qe = j.lazy(
|
|
663
|
-
() => import("./StepsFormVariant-
|
|
673
|
+
() => import("./StepsFormVariant-BxANsU4Z.js")
|
|
664
674
|
), Xe = ({
|
|
665
675
|
formVariant: e,
|
|
666
676
|
...r
|
|
@@ -687,7 +697,7 @@ const I = ({
|
|
|
687
697
|
hiddenFields: r,
|
|
688
698
|
...t
|
|
689
699
|
}) => {
|
|
690
|
-
const { collection: n } = G(), [i, d] =
|
|
700
|
+
const { collection: n } = G(), [i, d] = L(!0), [o, c] = L(null);
|
|
691
701
|
return pe(() => {
|
|
692
702
|
e ? n == null || n.getCollectionByIDExpanded(e, {
|
|
693
703
|
headers: {
|
|
@@ -727,8 +737,8 @@ export {
|
|
|
727
737
|
C as g,
|
|
728
738
|
Re as h,
|
|
729
739
|
we as i,
|
|
730
|
-
|
|
731
|
-
|
|
740
|
+
Ie as j,
|
|
741
|
+
A as k,
|
|
732
742
|
_e as l,
|
|
733
743
|
bt as m,
|
|
734
744
|
z as p,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useController as j } from "react-hook-form";
|
|
3
3
|
import { NumericFormat as F } from "react-number-format";
|
|
4
|
-
import { h as w, j as C, k } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as w, j as C, k } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
5
5
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
6
6
|
const V = ({
|
|
7
7
|
field: r,
|
|
@@ -3,7 +3,7 @@ import { Calendar as b, X as w } from "lucide-react";
|
|
|
3
3
|
import * as l from "react-datepicker";
|
|
4
4
|
import { FieldInterfaces as N } from "@levo-so/core";
|
|
5
5
|
import { useController as v } from "react-hook-form";
|
|
6
|
-
import { h as M, j as D, k as C } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as M, j as D, k as C } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
7
7
|
import { I as F } from "./Input-2CvZ90f8.js";
|
|
8
8
|
import { c as p } from "./cn-C9QoOYNG.js";
|
|
9
9
|
const T = l.default.default || l.default || l, I = (e) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { FormProvider as S } from "react-hook-form";
|
|
3
|
-
import { m as b, F as y } from "./CollectionFormBuilder-
|
|
4
|
-
import { u as F, S as N } from "./useLevoForm-
|
|
3
|
+
import { m as b, F as y } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
4
|
+
import { u as F, S as N } from "./useLevoForm-B4Dmf73H.js";
|
|
5
5
|
import { c as m } from "./cn-C9QoOYNG.js";
|
|
6
6
|
import { B as g } from "./Spinner-CuUosd-S.js";
|
|
7
7
|
const E = () => {
|
|
@@ -3,7 +3,7 @@ import { j as i } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import { useState as f, useEffect as j } from "react";
|
|
4
4
|
import { useController as k } from "react-hook-form";
|
|
5
5
|
import D from "react-select";
|
|
6
|
-
import { h as N, j as q, k as B } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as N, j as q, k as B } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
7
7
|
import { I as L } from "./Input-2CvZ90f8.js";
|
|
8
8
|
import { c as x } from "./cn-C9QoOYNG.js";
|
|
9
9
|
const G = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useController as y } from "react-hook-form";
|
|
3
3
|
import { G as C } from "./Spinner-CuUosd-S.js";
|
|
4
|
-
import { h as F, j as I, k as V } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as F, j as I, k as V } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
5
5
|
import { I as b } from "./Input-2CvZ90f8.js";
|
|
6
6
|
function w(e) {
|
|
7
7
|
return C({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z" }, child: [] }] })(e);
|
|
@@ -3,7 +3,7 @@ import { j as h } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import le, { useState as J, useEffect as fe } from "react";
|
|
4
4
|
import { useController as de } from "react-hook-form";
|
|
5
5
|
import { q as pe } from "./Spinner-CuUosd-S.js";
|
|
6
|
-
import { h as ge, j as me, k as ye } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as ge, j as me, k as ye } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
7
7
|
import { I as _e } from "./Input-2CvZ90f8.js";
|
|
8
8
|
var U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ne = {}, ve = "Expected a function", Y = NaN, be = "[object Symbol]", Se = /^\s+|\s+$/g, Pe = /^[-+]0x[0-9a-f]+$/i, Oe = /^0b[01]+$/i, he = /^0o[0-7]+$/i, Te = parseInt, je = typeof U == "object" && U && U.Object === Object && U, xe = typeof self == "object" && self && self.Object === Object && self, Ae = je || xe || Function("return this")(), Le = Object.prototype, Ee = Le.toString, we = Math.max, Ie = Math.min, $ = function() {
|
|
9
9
|
return Ae.Date.now();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useFieldArray as m } from "react-hook-form";
|
|
4
|
-
import { k as n } from "./CollectionFormBuilder-
|
|
4
|
+
import { k as n } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
5
5
|
import { Plus as c } from "lucide-react";
|
|
6
|
-
import { GeocoderWidget as d } from "./GeocoderWidget-
|
|
6
|
+
import { GeocoderWidget as d } from "./GeocoderWidget-lh46EUHn.js";
|
|
7
7
|
import { B as p } from "./Spinner-CuUosd-S.js";
|
|
8
8
|
const g = ({
|
|
9
9
|
field: l
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useController as f } from "react-hook-form";
|
|
4
4
|
import { PhoneInput as g } from "react-international-phone";
|
|
5
|
-
import { h as x, j as v, k as j } from "./CollectionFormBuilder-
|
|
5
|
+
import { h as x, j as v, k as j } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
6
6
|
import { c as l } from "./cn-C9QoOYNG.js";
|
|
7
|
-
const
|
|
8
|
-
const { key: u = "", label:
|
|
7
|
+
const k = ({ field: e }) => {
|
|
8
|
+
const { key: u = "", label: t = "", helper_text: c = "", readonly: n = !1 } = e, s = u, {
|
|
9
9
|
field: { value: d, onBlur: a, onChange: i, ...m },
|
|
10
10
|
fieldState: { error: r }
|
|
11
11
|
} = f({
|
|
12
12
|
name: s,
|
|
13
13
|
rules: x(e)
|
|
14
14
|
}), p = !!(e != null && e.required), h = r == null ? void 0 : r.message;
|
|
15
|
-
return /* @__PURE__ */ o.jsxs(v, { error: h, helperText: c, readOnly:
|
|
16
|
-
|
|
15
|
+
return /* @__PURE__ */ o.jsxs(v, { error: h, helperText: c, readOnly: n, children: [
|
|
16
|
+
t && /* @__PURE__ */ o.jsx(j, { htmlFor: s, isRequired: p, children: t }),
|
|
17
17
|
/* @__PURE__ */ o.jsx(
|
|
18
18
|
g,
|
|
19
19
|
{
|
|
@@ -21,7 +21,7 @@ const q = ({ field: e }) => {
|
|
|
21
21
|
value: d,
|
|
22
22
|
className: l(
|
|
23
23
|
"w-full",
|
|
24
|
-
|
|
24
|
+
n ? "focus-visible:ring-0 pointer-events-none" : ""
|
|
25
25
|
),
|
|
26
26
|
inputClassName: l(
|
|
27
27
|
"w-full border border-input bg-transparent text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
|
|
@@ -36,12 +36,13 @@ const q = ({ field: e }) => {
|
|
|
36
36
|
"--react-international-phone-height": "2.25rem",
|
|
37
37
|
"--react-international-phone-border-radius": "calc(var(--radius) - 2px)"
|
|
38
38
|
},
|
|
39
|
+
disableDialCodePrefill: !0,
|
|
39
40
|
...m
|
|
40
41
|
}
|
|
41
42
|
)
|
|
42
43
|
] });
|
|
43
44
|
};
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
k as PhoneWidget,
|
|
47
|
+
k as default
|
|
47
48
|
};
|
|
@@ -4,7 +4,7 @@ import * as n from "@radix-ui/react-radio-group";
|
|
|
4
4
|
import * as d from "react";
|
|
5
5
|
import { useController as F } from "react-hook-form";
|
|
6
6
|
import { G as E } from "./Spinner-CuUosd-S.js";
|
|
7
|
-
import { h as G, j as V, k as f } from "./CollectionFormBuilder-
|
|
7
|
+
import { h as G, j as V, k as f } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
8
8
|
import { I as q } from "./Input-2CvZ90f8.js";
|
|
9
9
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
10
10
|
function B(s) {
|
|
@@ -18,7 +18,7 @@ import { useEditor as I, EditorContent as E } from "@tiptap/react";
|
|
|
18
18
|
import { useState as D, useEffect as G } from "react";
|
|
19
19
|
import { useController as q } from "react-hook-form";
|
|
20
20
|
import { G as p, e as J, f as V, g as W, h as Z, i as _, j as P, k as K, l as Q, m as X, n as Y, o as $, p as nn } from "./Spinner-CuUosd-S.js";
|
|
21
|
-
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-
|
|
21
|
+
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
22
22
|
import { c as j } from "./cn-C9QoOYNG.js";
|
|
23
23
|
function an(n) {
|
|
24
24
|
return p({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }, child: [] }] })(n);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useState as A, useMemo as v } from "react";
|
|
4
4
|
import { FormProvider as I } from "react-hook-form";
|
|
5
|
-
import { m as N, F as T } from "./CollectionFormBuilder-
|
|
6
|
-
import { u as H, S as M } from "./useLevoForm-
|
|
5
|
+
import { m as N, F as T } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
6
|
+
import { u as H, S as M } from "./useLevoForm-B4Dmf73H.js";
|
|
7
7
|
import { c as g } from "./cn-C9QoOYNG.js";
|
|
8
8
|
import { B as y } from "./Spinner-CuUosd-S.js";
|
|
9
9
|
const X = () => {
|
|
@@ -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 { h as w, j, k as v } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as w, j, k as v } from "./CollectionFormBuilder-uvr15jvu.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
2
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-
|
|
3
|
+
import { j as h, k as F, l as b } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
4
4
|
import { I as y } from "./Input-2CvZ90f8.js";
|
|
5
5
|
import { c as f } from "./cn-C9QoOYNG.js";
|
|
6
6
|
const W = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { j as b, k as g, h } from "./CollectionFormBuilder-
|
|
3
|
+
import { j as b, k as g, h } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
4
4
|
import { c as f } from "./cn-C9QoOYNG.js";
|
|
5
5
|
const w = ({ field: e }) => {
|
|
6
6
|
var a;
|
|
@@ -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 { h as u, j as g, k as j } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as u, j as g, k as j } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
5
5
|
import { C } from "./Checbox-sq-atGlJ.js";
|
|
6
6
|
const y = ({
|
|
7
7
|
field: e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { H as s } from "./CollectionFormBuilder-
|
|
3
|
-
import r from "./TextWidget-
|
|
2
|
+
import { H as s } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
3
|
+
import r from "./TextWidget-CfEeuyFV.js";
|
|
4
4
|
const a = (t) => /* @__PURE__ */ e.jsx(
|
|
5
5
|
r,
|
|
6
6
|
{
|
|
@@ -5,7 +5,7 @@ import { useMemo as Q, useState as S, useRef as aa, useEffect as D } from "react
|
|
|
5
5
|
import { useController as ra } from "react-hook-form";
|
|
6
6
|
import { G as R, B as I, S as W, T as ta, a as sa, c as q, d as G } from "./Spinner-CuUosd-S.js";
|
|
7
7
|
import { X as ea, Upload as M } from "lucide-react";
|
|
8
|
-
import { h as oa, j as ca, k as na } from "./CollectionFormBuilder-
|
|
8
|
+
import { h as oa, j as ca, k as na } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
9
9
|
import { I as X } from "./Input-2CvZ90f8.js";
|
|
10
10
|
import { l as la, S as K, i as da } from "./Tooltip-CI4i4mYr.js";
|
|
11
11
|
import { useDropzone as xa } from "react-dropzone";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderCommonField.d.ts","sourceRoot":"","sources":["../../../../src/collection/components/renderer/RenderCommonField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAsCjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RenderCommonField.d.ts","sourceRoot":"","sources":["../../../../src/collection/components/renderer/RenderCommonField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAsCjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyG5D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneWidget.d.ts","sourceRoot":"","sources":["../../../../../src/collection/components/widgets/phoneWidget/PhoneWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,qCAAqC,CAAC;AAO7C,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"PhoneWidget.d.ts","sourceRoot":"","sources":["../../../../../src/collection/components/widgets/phoneWidget/PhoneWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,qCAAqC,CAAC;AAO7C,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuDnD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/collection/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-
|
|
1
|
+
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-uvr15jvu.js";
|
|
2
2
|
import { default as p } from "validatorjs";
|
|
3
3
|
export {
|
|
4
4
|
s as CollectionFormBuilder,
|
|
@@ -23,7 +23,7 @@ export declare const updateFieldWInterface: (tempField: ILemaField, field_interf
|
|
|
23
23
|
key: string;
|
|
24
24
|
kind: typeof import('@levo-so/core').FieldKindList[number];
|
|
25
25
|
label: string;
|
|
26
|
-
field_interface: "ArrayWidget" | "RecordWidget" | "TextWidget" | "CurrencyWidget" | "TextareaWidget" | "GeocoderWidget" | "MultiGeocoderWidget" | "DropdownWidget" | "ToggleCheckboxWidget" | "RadioWidget" | "NumberWidget" | "EmailWidget" | "PhoneWidget" | "URLWidget" | "DateWidget" | "SwitchWidget" | "RichTextWidget" | "DateTimeWidget" | "CheckboxWidget" | "ImageUploadWidget" | "MultiImageUploadWidget" | "FileUploadWidget" | "MultiDropdownWidget" | "JSONWidget" | "CollectionWidget";
|
|
26
|
+
field_interface: "ArrayWidget" | "RecordWidget" | "TextWidget" | "CurrencyWidget" | "TextareaWidget" | "GeocoderWidget" | "MultiGeocoderWidget" | "DropdownWidget" | "ToggleCheckboxWidget" | "RadioWidget" | "NumberWidget" | "EmailWidget" | "PhoneWidget" | "URLWidget" | "DateWidget" | "SwitchWidget" | "RichTextWidget" | "DateTimeWidget" | "CheckboxWidget" | "ImageUploadWidget" | "MultiImageUploadWidget" | "FileUploadWidget" | "MultiFileUploadWidget" | "MultiDropdownWidget" | "JSONWidget" | "CollectionWidget";
|
|
27
27
|
helper_text?: string | undefined;
|
|
28
28
|
default_value?: any;
|
|
29
29
|
readonly?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formHelpers.d.ts","sourceRoot":"","sources":["../../../src/collection/utils/formHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAEnB,KAAK,eAAe,EACpB,KAAK,UAAU,EAIhB,MAAM,eAAe,CAAC;AAEvB,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,eAAO,MAAM,aAAa,SAAU,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAG,UAAU,EAQxE,CAAC;AAEF,eAAO,MAAM,SAAS,gCAAgC,CAAC;AAEvD,eAAO,MAAM,YAAY,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"formHelpers.d.ts","sourceRoot":"","sources":["../../../src/collection/utils/formHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAEnB,KAAK,eAAe,EACpB,KAAK,UAAU,EAIhB,MAAM,eAAe,CAAC;AAEvB,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,eAAO,MAAM,aAAa,SAAU,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAG,UAAU,EAQxE,CAAC;AAEF,eAAO,MAAM,SAAS,gCAAgC,CAAC;AAEvD,eAAO,MAAM,YAAY,UAAW,MAAM,YAMzC,CAAC;AAEF,eAAO,MAAM,aAAa,aACd,OAAO,SACV,MAAM,CAAC,MAAM,EAAE,CAAC,gBAAgB,GAAG,MAAM,CAAC,EAAE,CAAC,KACnD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAA;CA2C1C,CAAC;AAEF,eAAO,MAAM,YAAY,WACf,eAAe,YACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2BAoElC,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAY,UAAU,EAAE,4BAgBzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,eAAe,GAAG,IAAI,4BAepE,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAW,OAAO,cACR,CAAC;AAE9C,eAAO,MAAM,gBAAgB,WACnB,eAAe,SAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,4BAgC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,cACrB,UAAU,mBACJ,CAAC,OAAO,mBAAmB,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAuFtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,GAAG,UAAU,eAAe,QAoClE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as s, u as o } from "./LevoProvider-DNbYyEaf.js";
|
|
2
2
|
import { L as t, a as r, b as l } from "./page-CxaKoH22.js";
|
|
3
|
-
import { C as p, F as m, e as d, g, b as f, d as T, c as u, i as c, a as x, p as b, f as D, s as v, u as y, v as F } from "./CollectionFormBuilder-
|
|
3
|
+
import { C as p, F as m, e as d, g, b as f, d as T, c as u, i as c, a as x, p as b, f as D, s as v, u as y, v as F } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
4
4
|
import { L } from "./index-wTf_TtOG.js";
|
|
5
5
|
import { D as M, d as P, h as B, f as O, e as V, b as j, a as C, g as I, c as S, i as K, S as U, T as W, k, m as H, l as N, j as z } from "./Tooltip-CI4i4mYr.js";
|
|
6
6
|
import { T as R, e as q, s as w } from "./Sonner-t6JVKA0a.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
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-
|
|
5
|
+
import { m as U, b as C, s as z, f as Q } from "./CollectionFormBuilder-uvr15jvu.js";
|
|
6
6
|
import { u as j } from "./LevoProvider-DNbYyEaf.js";
|
|
7
7
|
import { s as X } from "./Sonner-t6JVKA0a.js";
|
|
8
8
|
import { a as Z } from "./isEmptyObject-C5s4GzLE.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo suite for React based applications",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^18.3.1",
|
|
18
18
|
"react-dom": "^18.3.1",
|
|
19
|
-
"@levo-so/core": "0.1.
|
|
19
|
+
"@levo-so/core": "0.1.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@radix-ui/react-checkbox": "^1.1.1",
|