lawgic-dev-kit 0.20.0 → 0.20.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.
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var o = { exports: {} };
2
2
  export {
3
- e as __module
3
+ o as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var o = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- o as __module
3
+ e as __module
4
4
  };
@@ -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
- const q = ({
15
- containerProps: x = {},
16
- imageProps: p = {},
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 } = x, { className: s = " ", ...v } = p, o = e + "px", n = e * 0.5 + "px", l = e * 0.4 + "px", [j, w] = W(!1), N = () => a ? h(a) : t ? h(
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
- q as default
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
- const G = ({
15
+ import "react-dom";
16
+ const J = ({
16
17
  filter: e,
17
18
  filterControl: g,
18
19
  translations: j = {}
19
20
  }) => {
20
- var c, p, u, d, r, m, x, v, y, b;
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: (c = e.value) != null && c.startDate ? new Date(e.value.startDate) : null,
39
- maxDate: (p = e.value) != null && p.endDate ? new Date(e.value.endDate) : void 0,
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
- G as default
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
- const te = ({
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
- te as default
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 X = ({
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
- X as default
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 ct = ({
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
- ct as default
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 G = ({
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
- G as default
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: f = "",
22
- strategy: m = "absolute",
23
- styles: c = {},
24
- offset: p = 8,
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: m,
35
+ strategy: f,
35
36
  open: u,
36
37
  onOpenChange: (I) => {
37
38
  !I && !e && g();
38
39
  },
39
- middleware: [D(p), T(), U({ padding: 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
- ...c
82
+ ...p
82
83
  },
83
84
  ...E(),
84
85
  className: "floating-element",
85
- children: /* @__PURE__ */ t.jsx(z, { className: f, children: typeof i == "function" ? w.createElement(i) : i })
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
- $ as default
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 x } from "react";
3
- import { AnimatePresence as u } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
4
- import { motion as r } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
5
- const b = ({
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";
5
+ import { motion as s } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
6
+ const E = ({
6
7
  open: e,
7
- onClose: a,
8
- children: s,
9
- side: n = "right",
10
- className: l = "",
11
- backdropClassName: d = "",
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
- x(() => {
16
- const t = (p) => {
17
- p.key === "Escape" && e && a();
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, a]);
23
- const c = {
24
+ }, [e, n]);
25
+ const p = {
24
26
  initial: {
25
- x: n === "right" ? "100%" : "-100%"
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: n === "right" ? "100%" : "-100%",
41
+ x: a === "right" ? "100%" : "-100%",
40
42
  // opacity: 0,
41
43
  transition: {
42
44
  type: "spring",
@@ -45,53 +47,51 @@ const b = ({
45
47
  opacity: { duration: 0.15 }
46
48
  }
47
49
  }
48
- }, f = {
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
- return /* @__PURE__ */ i.jsx(u, { children: e && /* @__PURE__ */ i.jsxs("div", { className: `fixed inset-0 z-[${m}] flex`, children: [
54
+ }, r = /* @__PURE__ */ i.jsx(b, { children: e && /* @__PURE__ */ i.jsxs("div", { className: "fixed inset-0 flex", style: { zIndex: m }, children: [
54
55
  /* @__PURE__ */ i.jsx(
55
- r.div,
56
+ s.div,
56
57
  {
57
- variants: f,
58
+ variants: u,
58
59
  initial: "initial",
59
60
  animate: "animate",
60
61
  exit: "exit",
61
- className: `absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${d}`,
62
+ className: `absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${c}`,
62
63
  onClick: (t) => {
63
- t.preventDefault(), t.stopPropagation(), a();
64
+ t.preventDefault(), t.stopPropagation(), n();
64
65
  }
65
66
  }
66
67
  ),
67
68
  /* @__PURE__ */ i.jsx(
68
69
  "div",
69
70
  {
70
- className: `relative flex w-full pointer-events-none ${n === "left" ? "justify-start" : "justify-end"}`,
71
+ className: `relative flex w-full pointer-events-none ${a === "left" ? "justify-start" : "justify-end"}`,
71
72
  children: /* @__PURE__ */ i.jsx(
72
- r.div,
73
+ s.div,
73
74
  {
74
- variants: c,
75
+ variants: p,
75
76
  initial: "initial",
76
77
  animate: "animate",
77
78
  exit: "exit",
78
79
  className: `
79
80
  relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
80
- ${l}
81
+ ${d}
81
82
  `,
82
- style: {
83
- width: typeof o == "number" ? `${o}px` : o
84
- },
83
+ style: { width: typeof o == "number" ? `${o}px` : o },
85
84
  onClick: (t) => {
86
85
  t.preventDefault(), t.stopPropagation();
87
86
  },
88
- children: s
87
+ children: l
89
88
  }
90
89
  )
91
90
  }
92
91
  )
93
92
  ] }) });
93
+ return f && typeof document < "u" && document.body ? v(r, document.body) : r;
94
94
  };
95
95
  export {
96
- b as default
96
+ E as default
97
97
  };
@@ -7,4 +7,5 @@ export interface SideModalProps {
7
7
  backdropClassName?: string;
8
8
  width?: string | number;
9
9
  zIndex?: number;
10
+ usePortal?: boolean;
10
11
  }
@@ -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 a } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
13
- const G = ({
14
- variant: p = "underline",
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
- a.div,
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: p
71
+ variant: a
71
72
  }
72
73
  )
73
74
  },
74
75
  e.id
75
76
  )),
76
77
  /* @__PURE__ */ r.jsx(
77
- a.div,
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
- G as default
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 Y({
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
- Y as default
115
+ Z as default
115
116
  };