lawgic-dev-kit 0.14.0 → 0.14.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/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/ActionButton/ActionButton.d.ts +1 -1
- package/dist/components/atoms/Avatar/Avatar.d.ts +1 -1
- package/dist/components/atoms/Avatar/Avatar.js +14 -4
- package/dist/components/atoms/Checkbox/Checkbox.js +4 -4
- package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +3 -9
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/atoms/Tooltip/Tooltip.js +121 -0
- package/dist/components/atoms/Tooltip/Tooltip.types.d.ts +9 -0
- package/dist/components/atoms/Tooltip/index.d.ts +1 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.js +3 -2
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/molecules/AlertModal/AlertModal.js +7 -6
- 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 +7 -6
- package/dist/components/molecules/IndexedStepper/IndexedStepper.js +15 -0
- package/dist/components/molecules/InformationContainer/InformationContainer.js +13 -0
- package/dist/components/molecules/Tabs/Tabs.js +3 -2
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.js +96 -0
- package/dist/components/molecules/UncontrolledDateInput/index.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +15 -10
- package/dist/index.js +65 -57
- package/dist/lab/Laboratory.d.ts +2 -0
- package/dist/lab/LaboratoryLayout.d.ts +4 -0
- package/dist/lab/index.lab.d.ts +0 -0
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +56 -56
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +712 -396
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +81 -33
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +15 -0
- package/dist/utils/modal.js +17 -16
- package/dist/utils/toast.js +17 -16
- package/package.json +4 -3
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -5
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +0 -4
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +0 -24
- package/dist/src/components/atoms/SelectInput/index.d.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -33
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
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -9,8 +9,18 @@ import "../../../contexts/themeContext.js";
|
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import "../../../constants/countries.js";
|
|
11
11
|
import "../ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import "../../molecules/InformationContainer/InformationContainer.js";
|
|
13
|
+
const $ = ({
|
|
14
|
+
containerProps: x = {},
|
|
15
|
+
imageProps: p = {},
|
|
16
|
+
src: m = "",
|
|
17
|
+
alt: i = "",
|
|
18
|
+
size: e = 30,
|
|
19
|
+
user: t = null
|
|
20
|
+
}) => {
|
|
21
|
+
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 = () => i ? h(i) : t ? h(
|
|
22
|
+
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
|
|
23
|
+
) : "#9CA1B6", c = (f) => {
|
|
14
24
|
try {
|
|
15
25
|
return f ? (new URL(f), !0) : !1;
|
|
16
26
|
} catch (C) {
|
|
@@ -52,7 +62,7 @@ const V = ({ containerProps: x = {}, imageProps: d = {}, src: m = "", alt: i = "
|
|
|
52
62
|
return /* @__PURE__ */ a.jsxs(
|
|
53
63
|
"div",
|
|
54
64
|
{
|
|
55
|
-
className: "flex items-center justify-center rounded-full overflow-hidden h-full relative " +
|
|
65
|
+
className: "flex items-center justify-center rounded-full overflow-hidden h-full relative " + d,
|
|
56
66
|
style: {
|
|
57
67
|
maxWidth: o,
|
|
58
68
|
maxHeight: o,
|
|
@@ -96,5 +106,5 @@ const V = ({ containerProps: x = {}, imageProps: d = {}, src: m = "", alt: i = "
|
|
|
96
106
|
);
|
|
97
107
|
};
|
|
98
108
|
export {
|
|
99
|
-
|
|
109
|
+
$ as default
|
|
100
110
|
};
|
|
@@ -2,8 +2,8 @@ import { j as d } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
const c = ({
|
|
3
3
|
active: r,
|
|
4
4
|
color: n = "blue",
|
|
5
|
-
variant:
|
|
6
|
-
className:
|
|
5
|
+
variant: l = "rounded",
|
|
6
|
+
className: u,
|
|
7
7
|
size: o = 16,
|
|
8
8
|
...i
|
|
9
9
|
}) => {
|
|
@@ -15,7 +15,7 @@ const c = ({
|
|
|
15
15
|
}[n], a = {
|
|
16
16
|
rounded: "rounded-full",
|
|
17
17
|
square: "rounded-md"
|
|
18
|
-
}[
|
|
18
|
+
}[l], s = (e) => ({
|
|
19
19
|
width: `${e}px`,
|
|
20
20
|
height: `${e}px`,
|
|
21
21
|
minWidth: `${e}px`,
|
|
@@ -24,7 +24,7 @@ const c = ({
|
|
|
24
24
|
return /* @__PURE__ */ d.jsx(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: `transition-colors ease-in-out duration-150 flex items-center justify-center ${a} border-[1.5px] bg-white ${r ? t : "border-gray-400"} ${
|
|
27
|
+
className: `relative transition-colors ease-in-out duration-150 flex items-center justify-center ${a} border-[1.5px] bg-white ${r ? t : "border-gray-400"} ${u}`,
|
|
28
28
|
style: s(o),
|
|
29
29
|
...i,
|
|
30
30
|
children: /* @__PURE__ */ d.jsx(
|
|
@@ -5,7 +5,7 @@ const s = "w-fit transition-colors group ease-in-out duration-200 flex flex-col
|
|
|
5
5
|
}, n = {
|
|
6
6
|
true: "text-aqua-500 hover:text-aqua-500",
|
|
7
7
|
false: "text-gray-800 hover:text-aqua-500"
|
|
8
|
-
}, l = "flex
|
|
8
|
+
}, l = "flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full", c = {
|
|
9
9
|
true: "text-blue-500 bg-blue-100 rounded-full",
|
|
10
10
|
false: "text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"
|
|
11
11
|
}, i = {
|
|
@@ -23,10 +23,7 @@ const s = "w-fit transition-colors group ease-in-out duration-200 flex flex-col
|
|
|
23
23
|
t = i[e];
|
|
24
24
|
break;
|
|
25
25
|
}
|
|
26
|
-
return u(
|
|
27
|
-
l,
|
|
28
|
-
t
|
|
29
|
-
);
|
|
26
|
+
return u(l, t);
|
|
30
27
|
}, f = (a = !1, o = "blue") => {
|
|
31
28
|
const e = String(a);
|
|
32
29
|
let t;
|
|
@@ -39,10 +36,7 @@ const s = "w-fit transition-colors group ease-in-out duration-200 flex flex-col
|
|
|
39
36
|
t = r[e];
|
|
40
37
|
break;
|
|
41
38
|
}
|
|
42
|
-
return u(
|
|
43
|
-
s,
|
|
44
|
-
t
|
|
45
|
-
);
|
|
39
|
+
return u(s, t);
|
|
46
40
|
};
|
|
47
41
|
export {
|
|
48
42
|
f as resolveSectionButtonClasses,
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import S, { useState as j, useRef as E } from "react";
|
|
3
|
+
import { useFloating as P, useHover as v, useFocus as L, useDismiss as D, useRole as F, useInteractions as W } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
4
|
+
import { AnimatePresence as B } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
5
|
+
import { motion as N } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
6
|
+
import { autoUpdate as X } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
7
|
+
import { offset as H, flip as M, shift as Y, arrow as Z } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
8
|
+
const t = 8, z = 1e3, U = "300px", k = {
|
|
9
|
+
top: "bottom",
|
|
10
|
+
right: "left",
|
|
11
|
+
bottom: "top",
|
|
12
|
+
left: "right"
|
|
13
|
+
}, q = {
|
|
14
|
+
top: {
|
|
15
|
+
borderLeft: `${t}px solid transparent`,
|
|
16
|
+
borderRight: `${t}px solid transparent`,
|
|
17
|
+
borderTop: `${t}px solid #C7C8CA`
|
|
18
|
+
},
|
|
19
|
+
bottom: {
|
|
20
|
+
borderLeft: `${t}px solid transparent`,
|
|
21
|
+
borderRight: `${t}px solid transparent`,
|
|
22
|
+
borderBottom: `${t}px solid #C7C8CA`
|
|
23
|
+
},
|
|
24
|
+
left: {
|
|
25
|
+
borderTop: `${t}px solid transparent`,
|
|
26
|
+
borderBottom: `${t}px solid transparent`,
|
|
27
|
+
borderLeft: `${t}px solid #C7C8CA`
|
|
28
|
+
},
|
|
29
|
+
right: {
|
|
30
|
+
borderTop: `${t}px solid transparent`,
|
|
31
|
+
borderBottom: `${t}px solid transparent`,
|
|
32
|
+
borderRight: `${t}px solid #C7C8CA`
|
|
33
|
+
}
|
|
34
|
+
}, ot = ({
|
|
35
|
+
children: p,
|
|
36
|
+
message: d,
|
|
37
|
+
className: c = "",
|
|
38
|
+
placement: m = "top",
|
|
39
|
+
offset: x = 8,
|
|
40
|
+
delay: f = 0
|
|
41
|
+
}) => {
|
|
42
|
+
const [r, u] = j(!1), s = E(null), {
|
|
43
|
+
x: h,
|
|
44
|
+
y: g,
|
|
45
|
+
strategy: b,
|
|
46
|
+
placement: R,
|
|
47
|
+
refs: n,
|
|
48
|
+
context: o,
|
|
49
|
+
middlewareData: $
|
|
50
|
+
} = P({
|
|
51
|
+
open: r,
|
|
52
|
+
onOpenChange: u,
|
|
53
|
+
placement: m,
|
|
54
|
+
middleware: [
|
|
55
|
+
H(x),
|
|
56
|
+
M(),
|
|
57
|
+
Y({ padding: 8 }),
|
|
58
|
+
Z({ element: s })
|
|
59
|
+
],
|
|
60
|
+
whileElementsMounted: X
|
|
61
|
+
}), C = v(o, { delay: f }), w = L(o), y = D(o), T = F(o, { role: "tooltip" }), { getReferenceProps: I, getFloatingProps: O } = W([
|
|
62
|
+
C,
|
|
63
|
+
w,
|
|
64
|
+
y,
|
|
65
|
+
T
|
|
66
|
+
]), i = R.split(
|
|
67
|
+
"-"
|
|
68
|
+
)[0], A = k[i], { x: a, y: l } = $.arrow || { x: 0, y: 0 }, _ = S.cloneElement(p, {
|
|
69
|
+
// @ts-expect-error - Ref is not a valid prop for the children
|
|
70
|
+
ref: n.setReference,
|
|
71
|
+
...I()
|
|
72
|
+
});
|
|
73
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
74
|
+
_,
|
|
75
|
+
/* @__PURE__ */ e.jsx(B, { children: r && /* @__PURE__ */ e.jsx(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
ref: n.setFloating,
|
|
79
|
+
style: {
|
|
80
|
+
position: b,
|
|
81
|
+
top: g ?? 0,
|
|
82
|
+
left: h ?? 0,
|
|
83
|
+
zIndex: z,
|
|
84
|
+
width: "max-content",
|
|
85
|
+
maxWidth: U
|
|
86
|
+
},
|
|
87
|
+
...O(),
|
|
88
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
89
|
+
N.div,
|
|
90
|
+
{
|
|
91
|
+
className: `py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${c} relative`,
|
|
92
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
93
|
+
animate: { opacity: 1, scale: 1 },
|
|
94
|
+
exit: { opacity: 0, scale: 0.95 },
|
|
95
|
+
transition: { duration: 0.1, ease: "easeOut" },
|
|
96
|
+
children: [
|
|
97
|
+
d,
|
|
98
|
+
/* @__PURE__ */ e.jsx(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
ref: s,
|
|
102
|
+
className: "absolute w-0 h-0 tooltip-arrow-light",
|
|
103
|
+
style: {
|
|
104
|
+
position: "absolute",
|
|
105
|
+
left: a != null ? `${a}px` : "",
|
|
106
|
+
top: l != null ? `${l}px` : "",
|
|
107
|
+
[A]: "-7px",
|
|
108
|
+
...q[i]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
) })
|
|
117
|
+
] });
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
ot as default
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tooltip } from './Tooltip';
|
|
@@ -8,7 +8,8 @@ import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
|
8
8
|
import "react-hook-form";
|
|
9
9
|
import "../../../constants/countries.js";
|
|
10
10
|
import "../ImageProfileInput/ImageProfileInput.validators.js";
|
|
11
|
-
|
|
11
|
+
import "../../molecules/InformationContainer/InformationContainer.js";
|
|
12
|
+
const z = ({
|
|
12
13
|
title: h = "drag_and_drop_your_files_here",
|
|
13
14
|
subtitle: d = null,
|
|
14
15
|
buttonTitle: v = "choose_files",
|
|
@@ -112,5 +113,5 @@ const q = ({
|
|
|
112
113
|
] });
|
|
113
114
|
};
|
|
114
115
|
export {
|
|
115
|
-
|
|
116
|
+
z as default
|
|
116
117
|
};
|
|
@@ -5,18 +5,19 @@ import "react";
|
|
|
5
5
|
import "../../../_virtual/lodash.js";
|
|
6
6
|
import { useTheme as j } from "../../../hooks/useTheme.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
|
+
import "../InformationContainer/InformationContainer.js";
|
|
8
9
|
import g from "../../atoms/BoxContainer/BoxContainer.js";
|
|
9
10
|
import a from "../../atoms/Button/Button.js";
|
|
10
11
|
import "../../../constants/countries.js";
|
|
11
12
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
12
13
|
import { AnimatePresence as u } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
13
14
|
import { motion as n } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
14
|
-
const
|
|
15
|
+
const M = ({
|
|
15
16
|
title: s,
|
|
16
17
|
description: r,
|
|
17
|
-
open:
|
|
18
|
+
open: o,
|
|
18
19
|
onClose: i,
|
|
19
|
-
onConfirm:
|
|
20
|
+
onConfirm: l,
|
|
20
21
|
onCancel: c
|
|
21
22
|
}) => {
|
|
22
23
|
const { t: e } = j(), m = {
|
|
@@ -47,11 +48,11 @@ const I = ({
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}, p = () => {
|
|
50
|
-
|
|
51
|
+
l(), i();
|
|
51
52
|
}, d = () => {
|
|
52
53
|
c(), i();
|
|
53
54
|
};
|
|
54
|
-
return /* @__PURE__ */ t.jsx(u, { children:
|
|
55
|
+
return /* @__PURE__ */ t.jsx(u, { children: o && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
55
56
|
n.div,
|
|
56
57
|
{
|
|
57
58
|
className: "fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",
|
|
@@ -108,5 +109,5 @@ const I = ({
|
|
|
108
109
|
) }) });
|
|
109
110
|
};
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
M as default
|
|
112
113
|
};
|
|
@@ -10,6 +10,7 @@ import ie from "./PeriodToggle.js";
|
|
|
10
10
|
import le from "./TimeDisplay.js";
|
|
11
11
|
import { faChevronDown as ce } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
12
12
|
import "react-hook-form";
|
|
13
|
+
import "../InformationContainer/InformationContainer.js";
|
|
13
14
|
import "../../../constants/countries.js";
|
|
14
15
|
import I from "../../atoms/IconButton/IconButton.js";
|
|
15
16
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
@@ -30,7 +31,7 @@ import { setMinutes as R } from "../../../node_modules/date-fns/setMinutes.js";
|
|
|
30
31
|
import { setSeconds as L } from "../../../node_modules/date-fns/setSeconds.js";
|
|
31
32
|
import { formatDate as u } from "../../../node_modules/date-fns/format.js";
|
|
32
33
|
import { es as h } from "../../../node_modules/date-fns/locale/es.js";
|
|
33
|
-
const
|
|
34
|
+
const tt = ({
|
|
34
35
|
date: c,
|
|
35
36
|
onDateChange: S,
|
|
36
37
|
showTimeSelector: _ = !0,
|
|
@@ -295,5 +296,5 @@ const et = ({
|
|
|
295
296
|
] });
|
|
296
297
|
};
|
|
297
298
|
export {
|
|
298
|
-
|
|
299
|
+
tt as default
|
|
299
300
|
};
|
|
@@ -6,13 +6,14 @@ import "../../../_virtual/lodash.js";
|
|
|
6
6
|
import { useTheme as y } from "../../../hooks/useTheme.js";
|
|
7
7
|
import { faCheck as v } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
8
8
|
import "react-hook-form";
|
|
9
|
+
import "../InformationContainer/InformationContainer.js";
|
|
9
10
|
import g from "../../atoms/BoxContainer/BoxContainer.js";
|
|
10
11
|
import l from "../../atoms/Button/Button.js";
|
|
11
12
|
import "../../../constants/countries.js";
|
|
12
13
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
13
14
|
import { AnimatePresence as N } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
14
15
|
import { motion as r } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
15
|
-
const
|
|
16
|
+
const T = ({
|
|
16
17
|
title: n,
|
|
17
18
|
description: c,
|
|
18
19
|
open: o,
|
|
@@ -122,5 +123,5 @@ const R = ({
|
|
|
122
123
|
) }) });
|
|
123
124
|
};
|
|
124
125
|
export {
|
|
125
|
-
|
|
126
|
+
T as default
|
|
126
127
|
};
|
|
@@ -5,19 +5,20 @@ import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
|
5
5
|
import "../../../_virtual/lodash.js";
|
|
6
6
|
import "../../../contexts/themeContext.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
|
+
import "../InformationContainer/InformationContainer.js";
|
|
8
9
|
import _ from "../../atoms/BoxContainer/BoxContainer.js";
|
|
9
10
|
import "../../../constants/countries.js";
|
|
10
11
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
11
12
|
import { autoUpdate as z } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
12
13
|
import { offset as B, flip as D, shift as T } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
13
|
-
const
|
|
14
|
+
const X = ({
|
|
14
15
|
open: e,
|
|
15
16
|
onClose: s,
|
|
16
17
|
component: i,
|
|
17
18
|
children: a,
|
|
18
19
|
placement: l = "bottom",
|
|
19
|
-
className:
|
|
20
|
-
strategy:
|
|
20
|
+
className: m = "",
|
|
21
|
+
strategy: f = "absolute",
|
|
21
22
|
offset: c = 8,
|
|
22
23
|
padding: p = 8
|
|
23
24
|
}) => {
|
|
@@ -28,7 +29,7 @@ const W = ({
|
|
|
28
29
|
const u = () => {
|
|
29
30
|
r(!1), s == null || s();
|
|
30
31
|
}, { x: g, y: x, strategy: y, refs: n, context: o } = M({
|
|
31
|
-
strategy:
|
|
32
|
+
strategy: f,
|
|
32
33
|
open: d,
|
|
33
34
|
onOpenChange: (I) => {
|
|
34
35
|
I || u();
|
|
@@ -72,11 +73,11 @@ const W = ({
|
|
|
72
73
|
},
|
|
73
74
|
...E(),
|
|
74
75
|
className: "floating-element",
|
|
75
|
-
children: /* @__PURE__ */ t.jsx(_, { className:
|
|
76
|
+
children: /* @__PURE__ */ t.jsx(_, { className: m, children: typeof i == "function" ? k.createElement(i) : i })
|
|
76
77
|
}
|
|
77
78
|
)
|
|
78
79
|
] });
|
|
79
80
|
};
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
X as default
|
|
82
83
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as a } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import p from "../../atoms/IndexedStep/IndexedStep.js";
|
|
3
|
+
const r = ({ currentStep: t, steps: l }) => /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-16", children: l.map((o, e) => /* @__PURE__ */ a.jsx(
|
|
4
|
+
p,
|
|
5
|
+
{
|
|
6
|
+
label: o,
|
|
7
|
+
index: e + 1,
|
|
8
|
+
active: e + 1 === t,
|
|
9
|
+
completed: e + 1 < t
|
|
10
|
+
},
|
|
11
|
+
e
|
|
12
|
+
)) });
|
|
13
|
+
export {
|
|
14
|
+
r as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import l from "react";
|
|
3
|
+
const n = ({ label: s, value: e }) => /* @__PURE__ */ t.jsxs("div", { className: "col-span-2 flex flex-col gap-6", children: [
|
|
4
|
+
/* @__PURE__ */ t.jsx("h4", { className: "text-body-m font-600", children: s }),
|
|
5
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-body-s text-gray-600", children: typeof e == "string" || l.isValidElement(e) ? e : null })
|
|
6
|
+
] }), o = ({ title: s, children: e, className: r = "" }) => /* @__PURE__ */ t.jsxs("div", { className: `w-full flex flex-col gap-16 ${r}`, children: [
|
|
7
|
+
/* @__PURE__ */ t.jsx("h4", { className: "text-body-m font-600", children: s }),
|
|
8
|
+
/* @__PURE__ */ t.jsx("div", { className: "w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100", children: e })
|
|
9
|
+
] });
|
|
10
|
+
o.Entry = n;
|
|
11
|
+
export {
|
|
12
|
+
o as default
|
|
13
|
+
};
|
|
@@ -4,11 +4,12 @@ import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
|
4
4
|
import "../../../_virtual/lodash.js";
|
|
5
5
|
import { useTheme as S } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "react-hook-form";
|
|
7
|
+
import "../InformationContainer/InformationContainer.js";
|
|
7
8
|
import "../../../constants/countries.js";
|
|
8
9
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
9
10
|
import L from "../../atoms/Tab/Tab.js";
|
|
10
11
|
import { motion as a } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
11
|
-
const
|
|
12
|
+
const D = ({
|
|
12
13
|
variant: p = "underline",
|
|
13
14
|
color: h = "blue",
|
|
14
15
|
tabs: i,
|
|
@@ -89,5 +90,5 @@ const A = ({
|
|
|
89
90
|
);
|
|
90
91
|
};
|
|
91
92
|
export {
|
|
92
|
-
|
|
93
|
+
D as default
|
|
93
94
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { j as m } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useState as d, useEffect as y } from "react";
|
|
3
|
+
import { faX as I } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
4
|
+
import { FontAwesomeIcon as b } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
|
+
import w from "../CalendarSelector/CalendarSelector.js";
|
|
6
|
+
import M from "../FloatingMenu/FloatingMenu.js";
|
|
7
|
+
import "../../../_virtual/lodash.js";
|
|
8
|
+
import "../../../contexts/themeContext.js";
|
|
9
|
+
import "react-hook-form";
|
|
10
|
+
import S from "../../atoms/UncontrolledTextInput/UncontrolledTextInput.js";
|
|
11
|
+
import "../InformationContainer/InformationContainer.js";
|
|
12
|
+
import "../../../constants/countries.js";
|
|
13
|
+
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
14
|
+
import { formatDate as k } from "../../../node_modules/date-fns/format.js";
|
|
15
|
+
const c = (e) => k(e, "dd/MM/yyyy"), v = (e) => {
|
|
16
|
+
const [t, n, s] = e.split("/");
|
|
17
|
+
if ((t == null ? void 0 : t.length) === 2 && (n == null ? void 0 : n.length) === 2 && (s == null ? void 0 : s.length) === 4) {
|
|
18
|
+
const r = new Date(Number(s), Number(n) - 1, Number(t));
|
|
19
|
+
return isNaN(r.getTime()) ? null : r;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
};
|
|
23
|
+
function H({
|
|
24
|
+
currentDate: e,
|
|
25
|
+
onDateChange: t,
|
|
26
|
+
label: n,
|
|
27
|
+
placeholder: s = "dd/mm/yyyy",
|
|
28
|
+
error: r,
|
|
29
|
+
translatedKey: g,
|
|
30
|
+
showTimeSelector: h = !1
|
|
31
|
+
}) {
|
|
32
|
+
const [x, i] = d(!1), [C, a] = d(
|
|
33
|
+
e ? c(e) : ""
|
|
34
|
+
);
|
|
35
|
+
y(() => {
|
|
36
|
+
a(e ? c(e) : "");
|
|
37
|
+
}, [e]);
|
|
38
|
+
const j = (o) => {
|
|
39
|
+
const l = o.replace(/\D/g, "").slice(0, 8), p = [];
|
|
40
|
+
l.length > 0 && p.push(l.slice(0, 2)), l.length > 2 && p.push(l.slice(2, 4)), l.length > 4 && p.push(l.slice(4, 8));
|
|
41
|
+
const f = p.join("/");
|
|
42
|
+
if (a(f), i(!1), f.length === 10) {
|
|
43
|
+
const u = v(f);
|
|
44
|
+
u && t(u);
|
|
45
|
+
}
|
|
46
|
+
}, N = () => {
|
|
47
|
+
t(null), a("");
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ m.jsx(
|
|
50
|
+
M,
|
|
51
|
+
{
|
|
52
|
+
open: x,
|
|
53
|
+
strategy: "fixed",
|
|
54
|
+
padding: 0,
|
|
55
|
+
offset: 0,
|
|
56
|
+
onClose: () => i(!1),
|
|
57
|
+
className: "p-0!",
|
|
58
|
+
component: /* @__PURE__ */ m.jsx(
|
|
59
|
+
w,
|
|
60
|
+
{
|
|
61
|
+
date: e || /* @__PURE__ */ new Date(),
|
|
62
|
+
onDateChange: (o) => {
|
|
63
|
+
t(o), a(c(o)), i(!1);
|
|
64
|
+
},
|
|
65
|
+
showTimeSelector: h,
|
|
66
|
+
maxDate: /* @__PURE__ */ new Date()
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
children: /* @__PURE__ */ m.jsx(
|
|
70
|
+
S,
|
|
71
|
+
{
|
|
72
|
+
name: g,
|
|
73
|
+
label: n,
|
|
74
|
+
value: C,
|
|
75
|
+
onClick: (o) => {
|
|
76
|
+
o.preventDefault(), i(!0);
|
|
77
|
+
},
|
|
78
|
+
onChange: (o) => j(o),
|
|
79
|
+
placeholder: s,
|
|
80
|
+
error: r,
|
|
81
|
+
rightSide: e && /* @__PURE__ */ m.jsx(
|
|
82
|
+
b,
|
|
83
|
+
{
|
|
84
|
+
icon: I,
|
|
85
|
+
className: "text-gray-500 cursor-pointer",
|
|
86
|
+
onClick: N
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
H as default
|
|
96
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UncontrolledDateInput } from './UncontrolledDateInput';
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
export * from './AlertModal
|
|
2
|
-
export * from './CalendarSelector
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
1
|
+
export * from './AlertModal';
|
|
2
|
+
export * from './CalendarSelector';
|
|
3
|
+
export * from './CalendarSelector';
|
|
4
|
+
export * from './CalendarSelector';
|
|
5
|
+
export * from './DateInput';
|
|
6
|
+
export * from './DialogModal';
|
|
7
|
+
export * from './Dropdown';
|
|
8
|
+
export * from './FileUpload';
|
|
9
|
+
export * from './FloatingMenu';
|
|
10
|
+
export * from './IndexedStepper';
|
|
11
|
+
export * from './InformationContainer';
|
|
12
|
+
export * from './SearchModal';
|
|
13
|
+
export * from './Stepper';
|
|
14
|
+
export * from './Tabs';
|
|
15
|
+
export * from './UncontrolledDateInput';
|