lawgic-dev-kit 0.20.1 → 0.20.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.
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/components/atoms/Avatar/Avatar.js +6 -5
- package/dist/components/atoms/FilterPill/FilterPill.js +6 -5
- package/dist/components/atoms/UploadContainer/UploadContainer.js +3 -2
- package/dist/components/molecules/AlertModal/AlertModal.js +3 -2
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +3 -2
- package/dist/components/molecules/DialogModal/DialogModal.js +3 -2
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +11 -10
- package/dist/components/molecules/SideModal/SideModal.js +51 -58
- package/dist/components/molecules/SideModal/SideModal.types.d.ts +1 -0
- package/dist/components/molecules/Tabs/Tabs.js +8 -7
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.js +3 -2
- package/dist/lawgic-dev-kit.umd.js +35 -35
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/utils/modal.js +34 -33
- package/dist/utils/toast.js +3 -2
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = r();
|
|
4
|
-
const s = /* @__PURE__ */ o(t);
|
|
1
|
+
import { __require as r } from "../node_modules/tiny-case/index.js";
|
|
2
|
+
var a = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
a as t
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -11,15 +11,16 @@ import "../../../constants/countries.js";
|
|
|
11
11
|
import "../ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
12
|
import "fuse.js";
|
|
13
13
|
import "../../molecules/InformationContainer/InformationContainer.js";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
import "react-dom";
|
|
15
|
+
const D = ({
|
|
16
|
+
containerProps: p = {},
|
|
17
|
+
imageProps: x = {},
|
|
17
18
|
src: m = "",
|
|
18
19
|
alt: a = "",
|
|
19
20
|
size: e = 30,
|
|
20
21
|
user: t = null
|
|
21
22
|
}) => {
|
|
22
|
-
const { className: d = " ", ...g } =
|
|
23
|
+
const { className: d = " ", ...g } = p, { className: s = " ", ...v } = x, o = e + "px", n = e * 0.5 + "px", l = e * 0.4 + "px", [j, w] = W(!1), N = () => a ? h(a) : t ? h(
|
|
23
24
|
t != null && t.first_name || t != null && t.last_name ? ((t == null ? void 0 : t.first_name) || "") + " " + ((t == null ? void 0 : t.last_name) || "") : t == null ? void 0 : t.email
|
|
24
25
|
) : "#9CA1B6", r = (f) => {
|
|
25
26
|
try {
|
|
@@ -107,5 +108,5 @@ const q = ({
|
|
|
107
108
|
);
|
|
108
109
|
};
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
D as default
|
|
111
112
|
};
|
|
@@ -12,12 +12,13 @@ import L from "../UncontrolledTextInput/UncontrolledTextInput.js";
|
|
|
12
12
|
import M from "../../molecules/FloatingMenu/FloatingMenu.js";
|
|
13
13
|
import "../../molecules/InformationContainer/InformationContainer.js";
|
|
14
14
|
import h from "../../molecules/UncontrolledDateInput/UncontrolledDateInput.js";
|
|
15
|
-
|
|
15
|
+
import "react-dom";
|
|
16
|
+
const J = ({
|
|
16
17
|
filter: e,
|
|
17
18
|
filterControl: g,
|
|
18
19
|
translations: j = {}
|
|
19
20
|
}) => {
|
|
20
|
-
var
|
|
21
|
+
var p, c, u, d, r, m, x, v, y, b;
|
|
21
22
|
const [k, l] = O(!0), { updateFilter: o, removeFilter: w } = g, S = !!(e != null && e.value), n = (t, s) => j[t] || s, N = (t, s = []) => {
|
|
22
23
|
const i = s.find((F) => F.value === t);
|
|
23
24
|
return i ? i.label : String(t);
|
|
@@ -35,8 +36,8 @@ const G = ({
|
|
|
35
36
|
/* @__PURE__ */ a.jsx("div", { className: "scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99", children: /* @__PURE__ */ a.jsx(
|
|
36
37
|
h,
|
|
37
38
|
{
|
|
38
|
-
currentDate: (
|
|
39
|
-
maxDate: (
|
|
39
|
+
currentDate: (p = e.value) != null && p.startDate ? new Date(e.value.startDate) : null,
|
|
40
|
+
maxDate: (c = e.value) != null && c.endDate ? new Date(e.value.endDate) : void 0,
|
|
40
41
|
futureDates: !0,
|
|
41
42
|
onDateChange: (t) => o({
|
|
42
43
|
key: e.key,
|
|
@@ -154,5 +155,5 @@ const G = ({
|
|
|
154
155
|
);
|
|
155
156
|
};
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
J as default
|
|
158
159
|
};
|
|
@@ -13,7 +13,8 @@ import A from "../TextButton/TextButton.js";
|
|
|
13
13
|
import "fuse.js";
|
|
14
14
|
import _ from "../LoadingProgress/LoadingProgress.js";
|
|
15
15
|
import "../../molecules/InformationContainer/InformationContainer.js";
|
|
16
|
-
|
|
16
|
+
import "react-dom";
|
|
17
|
+
const le = ({
|
|
17
18
|
title: m = "drag_and_drop_your_files_here",
|
|
18
19
|
subtitle: p = null,
|
|
19
20
|
buttonTitle: h = "choose_files",
|
|
@@ -202,5 +203,5 @@ const te = ({
|
|
|
202
203
|
] });
|
|
203
204
|
};
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
le as default
|
|
206
207
|
};
|
|
@@ -8,12 +8,13 @@ import "react-hook-form";
|
|
|
8
8
|
import "../InformationContainer/InformationContainer.js";
|
|
9
9
|
import g from "../../atoms/BoxContainer/BoxContainer.js";
|
|
10
10
|
import r from "../../atoms/Button/Button.js";
|
|
11
|
+
import "react-dom";
|
|
11
12
|
import "../../../constants/countries.js";
|
|
12
13
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
13
14
|
import "fuse.js";
|
|
14
15
|
import { AnimatePresence as v } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
15
16
|
import { motion as l } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
16
|
-
const
|
|
17
|
+
const q = ({
|
|
17
18
|
title: n,
|
|
18
19
|
description: c,
|
|
19
20
|
open: o,
|
|
@@ -111,5 +112,5 @@ const X = ({
|
|
|
111
112
|
) }) });
|
|
112
113
|
};
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
q as default
|
|
115
116
|
};
|
|
@@ -12,6 +12,7 @@ import { faChevronDown as fe } from "../../../node_modules/@fortawesome/pro-regu
|
|
|
12
12
|
import { getColorVariants as ge } from "./CalendarSelector.styles.js";
|
|
13
13
|
import "react-hook-form";
|
|
14
14
|
import "../InformationContainer/InformationContainer.js";
|
|
15
|
+
import "react-dom";
|
|
15
16
|
import "../../../constants/countries.js";
|
|
16
17
|
import W from "../../atoms/IconButton/IconButton.js";
|
|
17
18
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
@@ -33,7 +34,7 @@ import { setMinutes as V } from "../../../node_modules/date-fns/setMinutes.js";
|
|
|
33
34
|
import { setSeconds as q } from "../../../node_modules/date-fns/setSeconds.js";
|
|
34
35
|
import { formatDate as h } from "../../../node_modules/date-fns/format.js";
|
|
35
36
|
import { es as v } from "../../../node_modules/date-fns/locale/es.js";
|
|
36
|
-
const
|
|
37
|
+
const mt = ({
|
|
37
38
|
date: p,
|
|
38
39
|
onDateChange: E,
|
|
39
40
|
showTimeSelector: z = !0,
|
|
@@ -334,5 +335,5 @@ const ct = ({
|
|
|
334
335
|
] });
|
|
335
336
|
};
|
|
336
337
|
export {
|
|
337
|
-
|
|
338
|
+
mt as default
|
|
338
339
|
};
|
|
@@ -9,12 +9,13 @@ import "react-hook-form";
|
|
|
9
9
|
import "../InformationContainer/InformationContainer.js";
|
|
10
10
|
import N from "../../atoms/BoxContainer/BoxContainer.js";
|
|
11
11
|
import r from "../../atoms/Button/Button.js";
|
|
12
|
+
import "react-dom";
|
|
12
13
|
import "../../../constants/countries.js";
|
|
13
14
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
14
15
|
import "fuse.js";
|
|
15
16
|
import { AnimatePresence as b } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
16
17
|
import { motion as c } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
17
|
-
const
|
|
18
|
+
const H = ({
|
|
18
19
|
title: n,
|
|
19
20
|
description: m,
|
|
20
21
|
open: o,
|
|
@@ -118,5 +119,5 @@ const G = ({
|
|
|
118
119
|
) }) });
|
|
119
120
|
};
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
H as default
|
|
122
123
|
};
|
|
@@ -7,21 +7,22 @@ import "../../../contexts/themeContext.js";
|
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "../InformationContainer/InformationContainer.js";
|
|
9
9
|
import z from "../../atoms/BoxContainer/BoxContainer.js";
|
|
10
|
+
import "react-dom";
|
|
10
11
|
import "../../../constants/countries.js";
|
|
11
12
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
13
|
import "fuse.js";
|
|
13
14
|
import { autoUpdate as B } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
14
15
|
import { offset as D, flip as T, shift as U } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
15
|
-
const
|
|
16
|
+
const ee = ({
|
|
16
17
|
open: e,
|
|
17
18
|
onClose: s,
|
|
18
19
|
component: i,
|
|
19
20
|
children: n,
|
|
20
21
|
placement: l = "bottom",
|
|
21
|
-
className:
|
|
22
|
-
strategy:
|
|
23
|
-
styles:
|
|
24
|
-
offset:
|
|
22
|
+
className: m = "",
|
|
23
|
+
strategy: f = "absolute",
|
|
24
|
+
styles: p = {},
|
|
25
|
+
offset: c = 8,
|
|
25
26
|
padding: d = 8
|
|
26
27
|
}) => {
|
|
27
28
|
const [u, o] = P(e);
|
|
@@ -31,12 +32,12 @@ const $ = ({
|
|
|
31
32
|
const g = () => {
|
|
32
33
|
o(!1), s == null || s();
|
|
33
34
|
}, { x, y, strategy: h, refs: a, context: r } = M({
|
|
34
|
-
strategy:
|
|
35
|
+
strategy: f,
|
|
35
36
|
open: u,
|
|
36
37
|
onOpenChange: (I) => {
|
|
37
38
|
!I && !e && g();
|
|
38
39
|
},
|
|
39
|
-
middleware: [D(
|
|
40
|
+
middleware: [D(c), T(), U({ padding: d })],
|
|
40
41
|
whileElementsMounted: B,
|
|
41
42
|
placement: l
|
|
42
43
|
}), j = N(r, {
|
|
@@ -78,15 +79,15 @@ const $ = ({
|
|
|
78
79
|
left: x ?? 0,
|
|
79
80
|
...R,
|
|
80
81
|
zIndex: 999,
|
|
81
|
-
...
|
|
82
|
+
...p
|
|
82
83
|
},
|
|
83
84
|
...E(),
|
|
84
85
|
className: "floating-element",
|
|
85
|
-
children: /* @__PURE__ */ t.jsx(z, { className:
|
|
86
|
+
children: /* @__PURE__ */ t.jsx(z, { className: m, children: typeof i == "function" ? w.createElement(i) : i })
|
|
86
87
|
}
|
|
87
88
|
)
|
|
88
89
|
] });
|
|
89
90
|
};
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
ee as default
|
|
92
93
|
};
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { j as i } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import {
|
|
2
|
+
import { useEffect as y } from "react";
|
|
3
|
+
import { createPortal as v } from "react-dom";
|
|
4
|
+
import { AnimatePresence as b } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
4
5
|
import { motion as s } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
5
|
-
const
|
|
6
|
+
const E = ({
|
|
6
7
|
open: e,
|
|
7
|
-
onClose:
|
|
8
|
-
children:
|
|
9
|
-
side:
|
|
10
|
-
className:
|
|
11
|
-
backdropClassName:
|
|
8
|
+
onClose: n,
|
|
9
|
+
children: l,
|
|
10
|
+
side: a = "right",
|
|
11
|
+
className: d = "",
|
|
12
|
+
backdropClassName: c = "",
|
|
12
13
|
width: o = "650px",
|
|
13
|
-
zIndex: m = 9999
|
|
14
|
+
zIndex: m = 9999,
|
|
15
|
+
usePortal: f = !0
|
|
14
16
|
}) => {
|
|
15
|
-
|
|
16
|
-
const t = (
|
|
17
|
-
|
|
17
|
+
y(() => {
|
|
18
|
+
const t = (x) => {
|
|
19
|
+
x.key === "Escape" && e && n();
|
|
18
20
|
};
|
|
19
21
|
return e && (document.addEventListener("keydown", t), document.body.style.overflow = "hidden"), () => {
|
|
20
22
|
document.removeEventListener("keydown", t), document.body.style.overflow = "unset";
|
|
21
23
|
};
|
|
22
|
-
}, [e,
|
|
23
|
-
const
|
|
24
|
+
}, [e, n]);
|
|
25
|
+
const p = {
|
|
24
26
|
initial: {
|
|
25
|
-
x:
|
|
27
|
+
x: a === "right" ? "100%" : "-100%"
|
|
26
28
|
// opacity: 0,
|
|
27
29
|
},
|
|
28
30
|
animate: {
|
|
@@ -36,7 +38,7 @@ const b = ({
|
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
40
|
exit: {
|
|
39
|
-
x:
|
|
41
|
+
x: a === "right" ? "100%" : "-100%",
|
|
40
42
|
// opacity: 0,
|
|
41
43
|
transition: {
|
|
42
44
|
type: "spring",
|
|
@@ -45,60 +47,51 @@ const b = ({
|
|
|
45
47
|
opacity: { duration: 0.15 }
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
},
|
|
50
|
+
}, u = {
|
|
49
51
|
initial: { opacity: 0 },
|
|
50
52
|
animate: { opacity: 1, transition: { duration: 0.2 } },
|
|
51
53
|
exit: { opacity: 0, transition: { duration: 0.15 } }
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
}, r = /* @__PURE__ */ i.jsx(b, { children: e && /* @__PURE__ */ i.jsxs("div", { className: "fixed inset-0 flex", style: { zIndex: m }, children: [
|
|
55
|
+
/* @__PURE__ */ i.jsx(
|
|
56
|
+
s.div,
|
|
57
|
+
{
|
|
58
|
+
variants: u,
|
|
59
|
+
initial: "initial",
|
|
60
|
+
animate: "animate",
|
|
61
|
+
exit: "exit",
|
|
62
|
+
className: `absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${c}`,
|
|
63
|
+
onClick: (t) => {
|
|
64
|
+
t.preventDefault(), t.stopPropagation(), n();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ i.jsx(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
className: `relative flex w-full pointer-events-none ${a === "left" ? "justify-start" : "justify-end"}`,
|
|
72
|
+
children: /* @__PURE__ */ i.jsx(
|
|
60
73
|
s.div,
|
|
61
74
|
{
|
|
62
|
-
variants:
|
|
75
|
+
variants: p,
|
|
63
76
|
initial: "initial",
|
|
64
77
|
animate: "animate",
|
|
65
78
|
exit: "exit",
|
|
66
|
-
className: `
|
|
67
|
-
onClick: (t) => {
|
|
68
|
-
t.preventDefault(), t.stopPropagation(), a();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ i.jsx(
|
|
73
|
-
"div",
|
|
74
|
-
{
|
|
75
|
-
className: `relative flex w-full pointer-events-none ${n === "left" ? "justify-start" : "justify-end"}`,
|
|
76
|
-
children: /* @__PURE__ */ i.jsx(
|
|
77
|
-
s.div,
|
|
78
|
-
{
|
|
79
|
-
variants: c,
|
|
80
|
-
initial: "initial",
|
|
81
|
-
animate: "animate",
|
|
82
|
-
exit: "exit",
|
|
83
|
-
className: `
|
|
79
|
+
className: `
|
|
84
80
|
relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
|
|
85
|
-
${
|
|
81
|
+
${d}
|
|
86
82
|
`,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
children: r
|
|
94
|
-
}
|
|
95
|
-
)
|
|
83
|
+
style: { width: typeof o == "number" ? `${o}px` : o },
|
|
84
|
+
onClick: (t) => {
|
|
85
|
+
t.preventDefault(), t.stopPropagation();
|
|
86
|
+
},
|
|
87
|
+
children: l
|
|
96
88
|
}
|
|
97
89
|
)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
) });
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] }) });
|
|
93
|
+
return f && typeof document < "u" && document.body ? v(r, document.body) : r;
|
|
101
94
|
};
|
|
102
95
|
export {
|
|
103
|
-
|
|
96
|
+
E as default
|
|
104
97
|
};
|
|
@@ -5,13 +5,14 @@ import "../../../_virtual/lodash.js";
|
|
|
5
5
|
import { useTheme as L } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import "../InformationContainer/InformationContainer.js";
|
|
8
|
+
import "react-dom";
|
|
8
9
|
import "../../../constants/countries.js";
|
|
9
10
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
10
11
|
import y from "../../atoms/Tab/Tab.js";
|
|
11
12
|
import "fuse.js";
|
|
12
|
-
import { motion as
|
|
13
|
-
const
|
|
14
|
-
variant:
|
|
13
|
+
import { motion as p } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
14
|
+
const H = ({
|
|
15
|
+
variant: a = "underline",
|
|
15
16
|
color: h = "blue",
|
|
16
17
|
tabs: i,
|
|
17
18
|
activeTab: n,
|
|
@@ -51,7 +52,7 @@ const G = ({
|
|
|
51
52
|
className: `flex items-center relative ${x}`,
|
|
52
53
|
children: [
|
|
53
54
|
i.map((e, t) => /* @__PURE__ */ r.jsx(
|
|
54
|
-
|
|
55
|
+
p.div,
|
|
55
56
|
{
|
|
56
57
|
ref: (l) => {
|
|
57
58
|
o.current[t] = l;
|
|
@@ -67,14 +68,14 @@ const G = ({
|
|
|
67
68
|
direction: R,
|
|
68
69
|
isSelected: n === e.id,
|
|
69
70
|
onClick: () => w(e.id),
|
|
70
|
-
variant:
|
|
71
|
+
variant: a
|
|
71
72
|
}
|
|
72
73
|
)
|
|
73
74
|
},
|
|
74
75
|
e.id
|
|
75
76
|
)),
|
|
76
77
|
/* @__PURE__ */ r.jsx(
|
|
77
|
-
|
|
78
|
+
p.div,
|
|
78
79
|
{
|
|
79
80
|
className: `absolute bottom-0 h-2 bg-${E}-500`,
|
|
80
81
|
initial: !1,
|
|
@@ -94,5 +95,5 @@ const G = ({
|
|
|
94
95
|
);
|
|
95
96
|
};
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
H as default
|
|
98
99
|
};
|
|
@@ -9,6 +9,7 @@ import "../../../contexts/themeContext.js";
|
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import U from "../../atoms/UncontrolledTextInput/UncontrolledTextInput.js";
|
|
11
11
|
import "../InformationContainer/InformationContainer.js";
|
|
12
|
+
import "react-dom";
|
|
12
13
|
import "../../../constants/countries.js";
|
|
13
14
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
14
15
|
import "fuse.js";
|
|
@@ -21,7 +22,7 @@ const c = (e) => V(e, "dd/MM/yyyy"), A = (e) => {
|
|
|
21
22
|
}
|
|
22
23
|
return null;
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
+
function Z({
|
|
25
26
|
currentDate: e,
|
|
26
27
|
onDateChange: o,
|
|
27
28
|
label: n,
|
|
@@ -111,5 +112,5 @@ function Y({
|
|
|
111
112
|
);
|
|
112
113
|
}
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
Z as default
|
|
115
116
|
};
|