lawgic-dev-kit 0.20.4 → 0.20.6
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 +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +73 -62
- package/dist/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +1 -0
- package/dist/lawgic-dev-kit.umd.js +39 -39
- 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/FloatingMenu/FloatingMenu.types.d.ts +13 -0
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/toposort/index.js";
|
|
3
|
+
var t = r();
|
|
4
|
+
const s = /* @__PURE__ */ o(t);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
s as default
|
|
5
7
|
};
|
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useFloating as I, useClick as M, useDismiss as N, useInteractions as O, useTransitionStyles as S } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
3
|
+
import A, { useState as C, useEffect as P } from "react";
|
|
4
4
|
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
8
|
import "../InformationContainer/InformationContainer.js";
|
|
9
|
-
import
|
|
9
|
+
import _ from "../../atoms/BoxContainer/BoxContainer.js";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "../../../constants/countries.js";
|
|
12
12
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
13
13
|
import "fuse.js";
|
|
14
|
+
import z from "../../atoms/ClickAwayListener/ClickAwayListener.js";
|
|
14
15
|
import { autoUpdate as B } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
15
|
-
import { offset as D, flip as
|
|
16
|
-
const
|
|
17
|
-
open:
|
|
16
|
+
import { offset as D, flip as L, shift as T } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
17
|
+
const ie = ({
|
|
18
|
+
open: t,
|
|
18
19
|
onClose: s,
|
|
19
20
|
component: i,
|
|
20
|
-
children:
|
|
21
|
-
placement:
|
|
22
|
-
className:
|
|
23
|
-
strategy:
|
|
24
|
-
styles:
|
|
25
|
-
offset:
|
|
26
|
-
padding:
|
|
21
|
+
children: m,
|
|
22
|
+
placement: f = "bottom",
|
|
23
|
+
className: c = "",
|
|
24
|
+
strategy: p = "absolute",
|
|
25
|
+
styles: d = {},
|
|
26
|
+
offset: u = 8,
|
|
27
|
+
padding: g = 8,
|
|
28
|
+
handleClickAway: x = !0
|
|
27
29
|
}) => {
|
|
28
|
-
const [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, [
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
}, { x, y, strategy:
|
|
35
|
-
strategy:
|
|
36
|
-
open:
|
|
37
|
-
onOpenChange: (
|
|
38
|
-
!
|
|
30
|
+
const [o, n] = C(t);
|
|
31
|
+
P(() => {
|
|
32
|
+
n(t);
|
|
33
|
+
}, [t]);
|
|
34
|
+
const a = () => {
|
|
35
|
+
n(!1), s == null || s();
|
|
36
|
+
}, { x: y, y: h, strategy: j, refs: l, context: r } = I({
|
|
37
|
+
strategy: p,
|
|
38
|
+
open: o,
|
|
39
|
+
onOpenChange: (R) => {
|
|
40
|
+
!R && !t && a();
|
|
39
41
|
},
|
|
40
|
-
middleware: [D(
|
|
42
|
+
middleware: [D(u), L(), T({ padding: g })],
|
|
41
43
|
whileElementsMounted: B,
|
|
42
|
-
placement:
|
|
43
|
-
}),
|
|
44
|
+
placement: f
|
|
45
|
+
}), b = M(r, {
|
|
44
46
|
enabled: !1
|
|
45
47
|
// Deshabilitamos el click interno ya que está controlado externamente
|
|
46
|
-
}),
|
|
48
|
+
}), k = N(r, {
|
|
47
49
|
enabled: !1
|
|
48
50
|
// Deshabilitamos dismiss cuando está controlado externamente por props
|
|
49
|
-
}), { getReferenceProps: v, getFloatingProps:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]), { isMounted:
|
|
51
|
+
}), { getReferenceProps: v, getFloatingProps: w } = O([
|
|
52
|
+
b,
|
|
53
|
+
k
|
|
54
|
+
]), { isMounted: E, styles: F } = S(r, {
|
|
53
55
|
duration: {
|
|
54
56
|
open: 200,
|
|
55
57
|
close: 150
|
|
@@ -59,35 +61,44 @@ const ee = ({
|
|
|
59
61
|
transform: "translateY(-4px) scale(0.95)"
|
|
60
62
|
}
|
|
61
63
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
64
|
+
return /* @__PURE__ */ e.jsx(
|
|
65
|
+
z,
|
|
66
|
+
{
|
|
67
|
+
enabled: x,
|
|
68
|
+
onClickAway: () => {
|
|
69
|
+
o && a();
|
|
70
|
+
},
|
|
71
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
72
|
+
/* @__PURE__ */ e.jsx(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
ref: l.setReference,
|
|
76
|
+
...v(),
|
|
77
|
+
className: "reference-element",
|
|
78
|
+
children: m
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
E && /* @__PURE__ */ e.jsx(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
ref: l.setFloating,
|
|
85
|
+
style: {
|
|
86
|
+
position: j,
|
|
87
|
+
top: h ?? 0,
|
|
88
|
+
left: y ?? 0,
|
|
89
|
+
...F,
|
|
90
|
+
zIndex: 999,
|
|
91
|
+
...d
|
|
92
|
+
},
|
|
93
|
+
...w(),
|
|
94
|
+
className: "floating-element",
|
|
95
|
+
children: /* @__PURE__ */ e.jsx(_, { className: c, children: typeof i == "function" ? A.createElement(i) : i })
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] })
|
|
99
|
+
}
|
|
100
|
+
);
|
|
90
101
|
};
|
|
91
102
|
export {
|
|
92
|
-
|
|
103
|
+
ie as default
|
|
93
104
|
};
|