@rpcbase/ui 0.237.0 → 0.239.0
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/components/AddressAutocompleteInput/index.d.ts.map +1 -1
- package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
- package/dist/helpers/useMapsLibrary.d.ts.map +1 -1
- package/dist/index151.js +4 -4
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index16.js +228 -196
- package/dist/index16.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +6 -6
- package/dist/index167.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index172.js +3 -3
- package/dist/index175.js +1 -1
- package/dist/index176.js +4 -4
- package/dist/index182.js +1 -1
- package/dist/index184.js +12 -12
- package/dist/index187.js +5 -5
- package/dist/index189.js +3 -3
- package/dist/index190.js +1 -1
- package/dist/index193.js +3 -3
- package/dist/index194.js +5 -5
- package/dist/index22.js.map +1 -1
- package/dist/index256.js +14 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +146 -58
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +30 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +9 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +44 -46
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +12 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +43 -28
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +93 -14
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +86 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +105 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +51 -50
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +11 -25
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +37 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +8 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +117 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +17 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +14 -69
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +3 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +36 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +20 -27
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +9 -13
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +20 -37
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +59 -255
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +6 -278
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +10 -67
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +47 -96
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +4 -84
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +29 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +15 -28
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +5 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +22 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +51 -16
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +25 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +41 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +38 -27
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +45 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +20 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +65 -264
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +17 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +11 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +26 -24
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +13 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +15 -122
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index300.js +36 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +260 -38
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +275 -62
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +68 -13
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +99 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +83 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +15 -6
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +34 -133
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +15 -398
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +3 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +27 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -14
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +75 -151
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +267 -28
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -9
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -49
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +25 -11
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +15 -43
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +119 -89
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -86
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +39 -104
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +60 -47
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +13 -11
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +7 -37
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +5 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +3 -116
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +10 -17
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -15
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +133 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +398 -35
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +52 -20
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +11 -9
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -8
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +3 -3
- package/dist/index346.js +2 -2
- package/dist/index348.js +8 -8
- package/dist/index349.js +3 -3
- package/dist/index350.js +2 -2
- package/dist/index351.js +5 -5
- package/dist/index353.js +1 -1
- package/dist/index362.js +21 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +4 -12
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +5 -16
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +11 -5
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +15 -19
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +19 -43
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +40 -13
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +17 -4
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +4 -200
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +197 -74
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +77 -20
- package/dist/index372.js.map +1 -1
- package/dist/index374.js +3 -3
- package/dist/index375.js +1 -1
- package/dist/index376.js +3 -3
- package/dist/index378.js +2 -2
- package/dist/index380.js +1 -1
- package/dist/index381.js +2 -2
- package/dist/index407.js +1 -1
- package/dist/index49.js +28 -28
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +17 -17
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/package.json +1 -1
package/dist/index371.js
CHANGED
|
@@ -1,81 +1,204 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { flip as H, size as I, computePosition as J, offset as K, hide as N, shift as Q, limitShift as T } from "./index332.js";
|
|
2
|
+
import { autoUpdate as ae, platform as me } from "./index332.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { useLayoutEffect as X } from "react";
|
|
5
|
+
import * as Y from "react-dom";
|
|
6
|
+
var Z = typeof document < "u", b = function() {
|
|
7
|
+
}, R = Z ? X : b;
|
|
8
|
+
function w(e, t) {
|
|
9
|
+
if (e === t)
|
|
10
|
+
return !0;
|
|
11
|
+
if (typeof e != typeof t)
|
|
12
|
+
return !1;
|
|
13
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
14
|
+
return !0;
|
|
15
|
+
let n, f, c;
|
|
16
|
+
if (e && t && typeof e == "object") {
|
|
17
|
+
if (Array.isArray(e)) {
|
|
18
|
+
if (n = e.length, n !== t.length) return !1;
|
|
19
|
+
for (f = n; f-- !== 0; )
|
|
20
|
+
if (!w(e[f], t[f]))
|
|
21
|
+
return !1;
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
if (c = Object.keys(e), n = c.length, n !== Object.keys(t).length)
|
|
25
|
+
return !1;
|
|
26
|
+
for (f = n; f-- !== 0; )
|
|
27
|
+
if (!{}.hasOwnProperty.call(t, c[f]))
|
|
28
|
+
return !1;
|
|
29
|
+
for (f = n; f-- !== 0; ) {
|
|
30
|
+
const p = c[f];
|
|
31
|
+
if (!(p === "_owner" && e.$$typeof) && !w(e[p], t[p]))
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
return e !== e && t !== t;
|
|
37
|
+
}
|
|
38
|
+
function L(e) {
|
|
39
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
40
|
+
}
|
|
41
|
+
function z(e, t) {
|
|
42
|
+
const n = L(e);
|
|
43
|
+
return Math.round(t * n) / n;
|
|
44
|
+
}
|
|
45
|
+
function k(e) {
|
|
46
|
+
const t = r.useRef(e);
|
|
47
|
+
return R(() => {
|
|
48
|
+
t.current = e;
|
|
49
|
+
}), t;
|
|
50
|
+
}
|
|
51
|
+
function ne(e) {
|
|
52
|
+
e === void 0 && (e = {});
|
|
8
53
|
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
floating: t.useState("floatingElement"),
|
|
14
|
-
domReference: t.useState("domReferenceElement")
|
|
15
|
-
}, [d, M] = o.useState(null), R = o.useRef(null), b = V(y);
|
|
16
|
-
F(() => {
|
|
17
|
-
r.domReference && (R.current = r.domReference);
|
|
18
|
-
}, [r.domReference]);
|
|
19
|
-
const n = P({
|
|
20
|
-
...c,
|
|
54
|
+
placement: t = "bottom",
|
|
55
|
+
strategy: n = "absolute",
|
|
56
|
+
middleware: f = [],
|
|
57
|
+
platform: c,
|
|
21
58
|
elements: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
59
|
+
reference: p,
|
|
60
|
+
floating: A
|
|
61
|
+
} = {},
|
|
62
|
+
transform: D = !0,
|
|
63
|
+
whileElementsMounted: E,
|
|
64
|
+
open: x
|
|
65
|
+
} = e, [s, C] = r.useState({
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0,
|
|
68
|
+
strategy: n,
|
|
69
|
+
placement: t,
|
|
70
|
+
middlewareData: {},
|
|
71
|
+
isPositioned: !1
|
|
72
|
+
}), [M, q] = r.useState(f);
|
|
73
|
+
w(M, f) || q(f);
|
|
74
|
+
const [B, U] = r.useState(null), [V, W] = r.useState(null), _ = r.useCallback((o) => {
|
|
75
|
+
o !== a.current && (a.current = o, U(o));
|
|
76
|
+
}, []), v = r.useCallback((o) => {
|
|
77
|
+
o !== m.current && (m.current = o, W(o));
|
|
78
|
+
}, []), i = p || B, u = A || V, a = r.useRef(null), m = r.useRef(null), y = r.useRef(s), G = E != null, S = k(E), P = k(c), F = k(x), g = r.useCallback(() => {
|
|
79
|
+
if (!a.current || !m.current)
|
|
80
|
+
return;
|
|
81
|
+
const o = {
|
|
82
|
+
placement: t,
|
|
83
|
+
strategy: n,
|
|
84
|
+
middleware: M
|
|
85
|
+
};
|
|
86
|
+
P.current && (o.platform = P.current), J(a.current, m.current, o).then((h) => {
|
|
87
|
+
const d = {
|
|
88
|
+
...h,
|
|
89
|
+
// The floating element's position may be recomputed while it's closed
|
|
90
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
91
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
92
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
93
|
+
isPositioned: F.current !== !1
|
|
94
|
+
};
|
|
95
|
+
$.current && !w(y.current, d) && (y.current = d, Y.flushSync(() => {
|
|
96
|
+
C(d);
|
|
97
|
+
}));
|
|
98
|
+
});
|
|
99
|
+
}, [M, t, n, P, F]);
|
|
100
|
+
R(() => {
|
|
101
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((o) => ({
|
|
102
|
+
...o,
|
|
103
|
+
isPositioned: !1
|
|
104
|
+
})));
|
|
105
|
+
}, [x]);
|
|
106
|
+
const $ = r.useRef(!1);
|
|
107
|
+
R(() => ($.current = !0, () => {
|
|
108
|
+
$.current = !1;
|
|
109
|
+
}), []), R(() => {
|
|
110
|
+
if (i && (a.current = i), u && (m.current = u), i && u) {
|
|
111
|
+
if (S.current)
|
|
112
|
+
return S.current(i, u, g);
|
|
113
|
+
g();
|
|
26
114
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
rootStore: t
|
|
65
|
-
}), [n, f, a, i, t, E, p]);
|
|
66
|
-
return F(() => {
|
|
67
|
-
t.context.dataRef.current.floatingContext = u;
|
|
68
|
-
const e = b?.nodesRef.current.find((m) => m.id === i);
|
|
69
|
-
e && (e.context = u);
|
|
70
|
-
}), o.useMemo(() => ({
|
|
71
|
-
...n,
|
|
72
|
-
context: u,
|
|
73
|
-
refs: f,
|
|
74
|
-
elements: a,
|
|
75
|
-
rootStore: t
|
|
76
|
-
}), [n, f, a, u, t]);
|
|
115
|
+
}, [i, u, g, S, G]);
|
|
116
|
+
const O = r.useMemo(() => ({
|
|
117
|
+
reference: a,
|
|
118
|
+
floating: m,
|
|
119
|
+
setReference: _,
|
|
120
|
+
setFloating: v
|
|
121
|
+
}), [_, v]), l = r.useMemo(() => ({
|
|
122
|
+
reference: i,
|
|
123
|
+
floating: u
|
|
124
|
+
}), [i, u]), j = r.useMemo(() => {
|
|
125
|
+
const o = {
|
|
126
|
+
position: n,
|
|
127
|
+
left: 0,
|
|
128
|
+
top: 0
|
|
129
|
+
};
|
|
130
|
+
if (!l.floating)
|
|
131
|
+
return o;
|
|
132
|
+
const h = z(l.floating, s.x), d = z(l.floating, s.y);
|
|
133
|
+
return D ? {
|
|
134
|
+
...o,
|
|
135
|
+
transform: "translate(" + h + "px, " + d + "px)",
|
|
136
|
+
...L(l.floating) >= 1.5 && {
|
|
137
|
+
willChange: "transform"
|
|
138
|
+
}
|
|
139
|
+
} : {
|
|
140
|
+
position: n,
|
|
141
|
+
left: h,
|
|
142
|
+
top: d
|
|
143
|
+
};
|
|
144
|
+
}, [n, D, l.floating, s.x, s.y]);
|
|
145
|
+
return r.useMemo(() => ({
|
|
146
|
+
...s,
|
|
147
|
+
update: g,
|
|
148
|
+
refs: O,
|
|
149
|
+
elements: l,
|
|
150
|
+
floatingStyles: j
|
|
151
|
+
}), [s, g, O, l, j]);
|
|
77
152
|
}
|
|
153
|
+
const re = (e, t) => {
|
|
154
|
+
const n = K(e);
|
|
155
|
+
return {
|
|
156
|
+
name: n.name,
|
|
157
|
+
fn: n.fn,
|
|
158
|
+
options: [e, t]
|
|
159
|
+
};
|
|
160
|
+
}, oe = (e, t) => {
|
|
161
|
+
const n = Q(e);
|
|
162
|
+
return {
|
|
163
|
+
name: n.name,
|
|
164
|
+
fn: n.fn,
|
|
165
|
+
options: [e, t]
|
|
166
|
+
};
|
|
167
|
+
}, fe = (e, t) => ({
|
|
168
|
+
fn: T(e).fn,
|
|
169
|
+
options: [e, t]
|
|
170
|
+
}), se = (e, t) => {
|
|
171
|
+
const n = H(e);
|
|
172
|
+
return {
|
|
173
|
+
name: n.name,
|
|
174
|
+
fn: n.fn,
|
|
175
|
+
options: [e, t]
|
|
176
|
+
};
|
|
177
|
+
}, ie = (e, t) => {
|
|
178
|
+
const n = I(e);
|
|
179
|
+
return {
|
|
180
|
+
name: n.name,
|
|
181
|
+
fn: n.fn,
|
|
182
|
+
options: [e, t]
|
|
183
|
+
};
|
|
184
|
+
}, ue = (e, t) => {
|
|
185
|
+
const n = N(e);
|
|
186
|
+
return {
|
|
187
|
+
name: n.name,
|
|
188
|
+
fn: n.fn,
|
|
189
|
+
options: [e, t]
|
|
190
|
+
};
|
|
191
|
+
};
|
|
78
192
|
export {
|
|
79
|
-
|
|
193
|
+
ae as autoUpdate,
|
|
194
|
+
J as computePosition,
|
|
195
|
+
se as flip,
|
|
196
|
+
ue as hide,
|
|
197
|
+
fe as limitShift,
|
|
198
|
+
re as offset,
|
|
199
|
+
me as platform,
|
|
200
|
+
oe as shift,
|
|
201
|
+
ie as size,
|
|
202
|
+
ne as useFloating
|
|
80
203
|
};
|
|
81
204
|
//# sourceMappingURL=index371.js.map
|
package/dist/index371.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useFloating as usePosition } from '@floating-ui/react-dom';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingTree } from \"../components/FloatingTree.js\";\nimport { useFloatingRootContext } from \"./useFloatingRootContext.js\";\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nexport function useFloating(options = {}) {\n const {\n nodeId,\n externalTree\n } = options;\n const internalRootStore = useFloatingRootContext(options);\n const rootContext = options.rootContext || internalRootStore;\n const rootContextElements = {\n reference: rootContext.useState('referenceElement'),\n floating: rootContext.useState('floatingElement'),\n domReference: rootContext.useState('domReferenceElement')\n };\n const [positionReference, setPositionReferenceRaw] = React.useState(null);\n const domReferenceRef = React.useRef(null);\n const tree = useFloatingTree(externalTree);\n useIsoLayoutEffect(() => {\n if (rootContextElements.domReference) {\n domReferenceRef.current = rootContextElements.domReference;\n }\n }, [rootContextElements.domReference]);\n const position = usePosition({\n ...options,\n elements: {\n ...rootContextElements,\n ...(positionReference && {\n reference: positionReference\n })\n }\n });\n const setPositionReference = React.useCallback(node => {\n const computedPositionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n getClientRects: () => node.getClientRects(),\n contextElement: node\n } : node;\n // Store the positionReference in state if the DOM reference is specified externally via the\n // `elements.reference` option. This ensures that it won't be overridden on future renders.\n setPositionReferenceRaw(computedPositionReference);\n position.refs.setReference(computedPositionReference);\n }, [position.refs]);\n const [localDomReference, setLocalDomReference] = React.useState(undefined);\n const [localFloatingElement, setLocalFloatingElement] = React.useState(null);\n rootContext.useSyncedValue('referenceElement', localDomReference ?? null);\n const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;\n rootContext.useSyncedValue('domReferenceElement', localDomReference === undefined ? rootContextElements.domReference : localDomReferenceElement);\n rootContext.useSyncedValue('floatingElement', localFloatingElement);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setLocalDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs, setLocalDomReference]);\n const setFloating = React.useCallback(node => {\n setLocalFloatingElement(node);\n position.refs.setFloating(node);\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setFloating,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setFloating, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: rootContextElements.domReference\n }), [position.elements, rootContextElements.domReference]);\n const open = rootContext.useState('open');\n const floatingId = rootContext.useState('floatingId');\n const context = React.useMemo(() => ({\n ...position,\n dataRef: rootContext.context.dataRef,\n open,\n onOpenChange: rootContext.setOpen,\n events: rootContext.context.events,\n floatingId,\n refs,\n elements,\n nodeId,\n rootStore: rootContext\n }), [position, refs, elements, nodeId, rootContext, open, floatingId]);\n useIsoLayoutEffect(() => {\n rootContext.context.dataRef.current.floatingContext = context;\n const node = tree?.nodesRef.current.find(n => n.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements,\n rootStore: rootContext\n }), [position, refs, elements, context, rootContext]);\n}"],"names":["useFloating","options","nodeId","externalTree","internalRootStore","useFloatingRootContext","rootContext","rootContextElements","positionReference","setPositionReferenceRaw","React","domReferenceRef","tree","useFloatingTree","useIsoLayoutEffect","position","usePosition","setPositionReference","node","computedPositionReference","isElement","localDomReference","setLocalDomReference","localFloatingElement","setLocalFloatingElement","localDomReferenceElement","setReference","setFloating","refs","elements","open","floatingId","context","n"],"mappings":";;;;;;AAYO,SAASA,EAAYC,IAAU,IAAI;AACxC,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMF,GACEG,IAAoBC,EAAuBJ,CAAO,GAClDK,IAAcL,EAAQ,eAAeG,GACrCG,IAAsB;AAAA,IAC1B,WAAWD,EAAY,SAAS,kBAAkB;AAAA,IAClD,UAAUA,EAAY,SAAS,iBAAiB;AAAA,IAChD,cAAcA,EAAY,SAAS,qBAAqB;AAAA,EAC5D,GACQ,CAACE,GAAmBC,CAAuB,IAAIC,EAAM,SAAS,IAAI,GAClEC,IAAkBD,EAAM,OAAO,IAAI,GACnCE,IAAOC,EAAgBV,CAAY;AACzC,EAAAW,EAAmB,MAAM;AACvB,IAAIP,EAAoB,iBACtBI,EAAgB,UAAUJ,EAAoB;AAAA,EAElD,GAAG,CAACA,EAAoB,YAAY,CAAC;AACrC,QAAMQ,IAAWC,EAAY;AAAA,IAC3B,GAAGf;AAAA,IACH,UAAU;AAAA,MACR,GAAGM;AAAA,MACH,GAAIC,KAAqB;AAAA,QACvB,WAAWA;AAAA,MACnB;AAAA,IACA;AAAA,EACA,CAAG,GACKS,IAAuBP,EAAM,YAAY,CAAAQ,MAAQ;AACrD,UAAMC,IAA4BC,EAAUF,CAAI,IAAI;AAAA,MAClD,uBAAuB,MAAMA,EAAK,sBAAqB;AAAA,MACvD,gBAAgB,MAAMA,EAAK,eAAc;AAAA,MACzC,gBAAgBA;AAAA,IACtB,IAAQA;AAGJ,IAAAT,EAAwBU,CAAyB,GACjDJ,EAAS,KAAK,aAAaI,CAAyB;AAAA,EACtD,GAAG,CAACJ,EAAS,IAAI,CAAC,GACZ,CAACM,GAAmBC,CAAoB,IAAIZ,EAAM,SAAS,MAAS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AAA,IACH,SAAST,EAAY,QAAQ;AAAA,IAC7B,MAAAwB;AAAA,IACA,cAAcxB,EAAY;AAAA,IAC1B,QAAQA,EAAY,QAAQ;AAAA,IAC5B,YAAAyB;AAAA,IACA,MAAAH;AAAA,IACA,UAAAC;AAAA,IACA,QAAA3B;AAAA,IACA,WAAWI;AAAA,EACf,IAAM,CAACS,GAAUa,GAAMC,GAAU3B,GAAQI,GAAawB,GAAMC,CAAU,CAAC;AACrE,SAAAjB,EAAmB,MAAM;AACvB,IAAAR,EAAY,QAAQ,QAAQ,QAAQ,kBAAkB0B;AACtD,UAAMd,IAAON,GAAM,SAAS,QAAQ,KAAK,CAAAqB,MAAKA,EAAE,OAAO/B,CAAM;AAC7D,IAAIgB,MACFA,EAAK,UAAUc;AAAA,EAEnB,CAAC,GACMtB,EAAM,QAAQ,OAAO;AAAA,IAC1B,GAAGK;AAAA,IACH,SAAAiB;AAAA,IACA,MAAAJ;AAAA,IACA,UAAAC;AAAA,IACA,WAAWvB;AAAA,EACf,IAAM,CAACS,GAAUa,GAAMC,GAAUG,GAAS1B,CAAW,CAAC;AACtD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index371.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1"],"mappings":";;;;;AAMA,IAAIA,IAAW,OAAO,WAAa,KAE/BC,IAAO,WAAgB;AAAC,GACxBC,IAAQF,IAAWG,IAAkBF;AAIzC,SAASG,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAUC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AACvB,iBAAO;AAGX,aAAO;AAAA,IACT;AAGA,QAFAC,IAAO,OAAO,KAAKJ,CAAC,GACpBE,IAASE,EAAK,QACVF,MAAW,OAAO,KAAKD,CAAC,EAAE;AAC5B,aAAO;AAET,SAAKE,IAAID,GAAQC,QAAQ;AACvB,UAAI,CAAC,CAAA,EAAG,eAAe,KAAKF,GAAGG,EAAKD,CAAC,CAAC;AACpC,eAAO;AAGX,SAAKA,IAAID,GAAQC,QAAQ,KAAI;AAC3B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ACA,GAQMS,KAAO,CAACpD,GAAS2C,MAAS;AAC9B,QAAMC,IAASS,EAAOrD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA,GAsBMW,KAAO,CAACtD,GAAS2C,MAAS;AAC9B,QAAMC,IAASW,EAAOvD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
|
package/dist/index372.js
CHANGED
|
@@ -1,24 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useFloating as P } from "./index371.js";
|
|
3
|
+
import { isElement as s } from "./index331.js";
|
|
4
|
+
import { useIsoLayoutEffect as F } from "./index283.js";
|
|
5
|
+
import { useFloatingTree as V } from "./index382.js";
|
|
6
|
+
import { useFloatingRootContext as v } from "./index300.js";
|
|
7
|
+
function $(c = {}) {
|
|
8
|
+
const {
|
|
9
|
+
nodeId: i,
|
|
10
|
+
externalTree: y
|
|
11
|
+
} = c, I = v(c), t = c.rootContext || I, r = {
|
|
12
|
+
reference: t.useState("referenceElement"),
|
|
13
|
+
floating: t.useState("floatingElement"),
|
|
14
|
+
domReference: t.useState("domReferenceElement")
|
|
15
|
+
}, [d, M] = o.useState(null), R = o.useRef(null), b = V(y);
|
|
16
|
+
F(() => {
|
|
17
|
+
r.domReference && (R.current = r.domReference);
|
|
18
|
+
}, [r.domReference]);
|
|
19
|
+
const n = P({
|
|
20
|
+
...c,
|
|
21
|
+
elements: {
|
|
22
|
+
...r,
|
|
23
|
+
...d && {
|
|
24
|
+
reference: d
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}), g = o.useCallback((e) => {
|
|
28
|
+
const m = s(e) ? {
|
|
29
|
+
getBoundingClientRect: () => e.getBoundingClientRect(),
|
|
30
|
+
getClientRects: () => e.getClientRects(),
|
|
31
|
+
contextElement: e
|
|
32
|
+
} : e;
|
|
33
|
+
M(m), n.refs.setReference(m);
|
|
34
|
+
}, [n.refs]), [l, S] = o.useState(void 0), [k, D] = o.useState(null);
|
|
35
|
+
t.useSyncedValue("referenceElement", l ?? null);
|
|
36
|
+
const L = s(l) ? l : null;
|
|
37
|
+
t.useSyncedValue("domReferenceElement", l === void 0 ? r.domReference : L), t.useSyncedValue("floatingElement", k);
|
|
38
|
+
const x = o.useCallback((e) => {
|
|
39
|
+
(s(e) || e === null) && (R.current = e, S(e)), (s(n.refs.reference.current) || n.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
40
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
41
|
+
// callback ref.
|
|
42
|
+
e !== null && !s(e)) && n.refs.setReference(e);
|
|
43
|
+
}, [n.refs, S]), C = o.useCallback((e) => {
|
|
44
|
+
D(e), n.refs.setFloating(e);
|
|
45
|
+
}, [n.refs]), f = o.useMemo(() => ({
|
|
46
|
+
...n.refs,
|
|
47
|
+
setReference: x,
|
|
48
|
+
setFloating: C,
|
|
49
|
+
setPositionReference: g,
|
|
50
|
+
domReference: R
|
|
51
|
+
}), [n.refs, x, C, g]), a = o.useMemo(() => ({
|
|
52
|
+
...n.elements,
|
|
53
|
+
domReference: r.domReference
|
|
54
|
+
}), [n.elements, r.domReference]), E = t.useState("open"), p = t.useState("floatingId"), u = o.useMemo(() => ({
|
|
55
|
+
...n,
|
|
56
|
+
dataRef: t.context.dataRef,
|
|
57
|
+
open: E,
|
|
58
|
+
onOpenChange: t.setOpen,
|
|
59
|
+
events: t.context.events,
|
|
60
|
+
floatingId: p,
|
|
61
|
+
refs: f,
|
|
62
|
+
elements: a,
|
|
63
|
+
nodeId: i,
|
|
64
|
+
rootStore: t
|
|
65
|
+
}), [n, f, a, i, t, E, p]);
|
|
66
|
+
return F(() => {
|
|
67
|
+
t.context.dataRef.current.floatingContext = u;
|
|
68
|
+
const e = b?.nodesRef.current.find((m) => m.id === i);
|
|
69
|
+
e && (e.context = u);
|
|
70
|
+
}), o.useMemo(() => ({
|
|
71
|
+
...n,
|
|
72
|
+
context: u,
|
|
73
|
+
refs: f,
|
|
74
|
+
elements: a,
|
|
75
|
+
rootStore: t
|
|
76
|
+
}), [n, f, a, u, t]);
|
|
15
77
|
}
|
|
16
78
|
export {
|
|
17
|
-
|
|
18
|
-
u as RFC3966_ISDN_SUBADDRESS_,
|
|
19
|
-
a as RFC3966_PHONE_CONTEXT_,
|
|
20
|
-
l as RFC3966_PREFIX_,
|
|
21
|
-
D as default,
|
|
22
|
-
S as isPhoneContextValid
|
|
79
|
+
$ as useFloating
|
|
23
80
|
};
|
|
24
81
|
//# sourceMappingURL=index372.js.map
|
package/dist/index372.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index372.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index372.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useFloating as usePosition } from '@floating-ui/react-dom';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingTree } from \"../components/FloatingTree.js\";\nimport { useFloatingRootContext } from \"./useFloatingRootContext.js\";\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nexport function useFloating(options = {}) {\n const {\n nodeId,\n externalTree\n } = options;\n const internalRootStore = useFloatingRootContext(options);\n const rootContext = options.rootContext || internalRootStore;\n const rootContextElements = {\n reference: rootContext.useState('referenceElement'),\n floating: rootContext.useState('floatingElement'),\n domReference: rootContext.useState('domReferenceElement')\n };\n const [positionReference, setPositionReferenceRaw] = React.useState(null);\n const domReferenceRef = React.useRef(null);\n const tree = useFloatingTree(externalTree);\n useIsoLayoutEffect(() => {\n if (rootContextElements.domReference) {\n domReferenceRef.current = rootContextElements.domReference;\n }\n }, [rootContextElements.domReference]);\n const position = usePosition({\n ...options,\n elements: {\n ...rootContextElements,\n ...(positionReference && {\n reference: positionReference\n })\n }\n });\n const setPositionReference = React.useCallback(node => {\n const computedPositionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n getClientRects: () => node.getClientRects(),\n contextElement: node\n } : node;\n // Store the positionReference in state if the DOM reference is specified externally via the\n // `elements.reference` option. This ensures that it won't be overridden on future renders.\n setPositionReferenceRaw(computedPositionReference);\n position.refs.setReference(computedPositionReference);\n }, [position.refs]);\n const [localDomReference, setLocalDomReference] = React.useState(undefined);\n const [localFloatingElement, setLocalFloatingElement] = React.useState(null);\n rootContext.useSyncedValue('referenceElement', localDomReference ?? null);\n const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;\n rootContext.useSyncedValue('domReferenceElement', localDomReference === undefined ? rootContextElements.domReference : localDomReferenceElement);\n rootContext.useSyncedValue('floatingElement', localFloatingElement);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setLocalDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs, setLocalDomReference]);\n const setFloating = React.useCallback(node => {\n setLocalFloatingElement(node);\n position.refs.setFloating(node);\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setFloating,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setFloating, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: rootContextElements.domReference\n }), [position.elements, rootContextElements.domReference]);\n const open = rootContext.useState('open');\n const floatingId = rootContext.useState('floatingId');\n const context = React.useMemo(() => ({\n ...position,\n dataRef: rootContext.context.dataRef,\n open,\n onOpenChange: rootContext.setOpen,\n events: rootContext.context.events,\n floatingId,\n refs,\n elements,\n nodeId,\n rootStore: rootContext\n }), [position, refs, elements, nodeId, rootContext, open, floatingId]);\n useIsoLayoutEffect(() => {\n rootContext.context.dataRef.current.floatingContext = context;\n const node = tree?.nodesRef.current.find(n => n.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements,\n rootStore: rootContext\n }), [position, refs, elements, context, rootContext]);\n}"],"names":["useFloating","options","nodeId","externalTree","internalRootStore","useFloatingRootContext","rootContext","rootContextElements","positionReference","setPositionReferenceRaw","React","domReferenceRef","tree","useFloatingTree","useIsoLayoutEffect","position","usePosition","setPositionReference","node","computedPositionReference","isElement","localDomReference","setLocalDomReference","localFloatingElement","setLocalFloatingElement","localDomReferenceElement","setReference","setFloating","refs","elements","open","floatingId","context","n"],"mappings":";;;;;;AAYO,SAASA,EAAYC,IAAU,IAAI;AACxC,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMF,GACEG,IAAoBC,EAAuBJ,CAAO,GAClDK,IAAcL,EAAQ,eAAeG,GACrCG,IAAsB;AAAA,IAC1B,WAAWD,EAAY,SAAS,kBAAkB;AAAA,IAClD,UAAUA,EAAY,SAAS,iBAAiB;AAAA,IAChD,cAAcA,EAAY,SAAS,qBAAqB;AAAA,EAC5D,GACQ,CAACE,GAAmBC,CAAuB,IAAIC,EAAM,SAAS,IAAI,GAClEC,IAAkBD,EAAM,OAAO,IAAI,GACnCE,IAAOC,EAAgBV,CAAY;AACzC,EAAAW,E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ACA,UAAAC;AAAA,IACA,WAAWvB;AAAA,EACf,IAAM,CAACS,GAAUa,GAAMC,GAAUG,GAAS1B,CAAW,CAAC;AACtD;","x_google_ignoreList":[0]}
|
package/dist/index374.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { useIsoLayoutEffect as u } from "./
|
|
3
|
-
import { isSafari as i } from "./
|
|
4
|
-
import { visuallyHidden as f } from "./
|
|
2
|
+
import { useIsoLayoutEffect as u } from "./index283.js";
|
|
3
|
+
import { isSafari as i } from "./index323.js";
|
|
4
|
+
import { visuallyHidden as f } from "./index278.js";
|
|
5
5
|
import { j as n } from "./index30.js";
|
|
6
6
|
const d = /* @__PURE__ */ r.forwardRef(function(t, s) {
|
|
7
7
|
const [o, e] = r.useState();
|
package/dist/index375.js
CHANGED
package/dist/index376.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./
|
|
2
|
-
import { ownerDocument as c } from "./
|
|
3
|
-
import { contains as f, activeElement as I } from "./
|
|
1
|
+
import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./index331.js";
|
|
2
|
+
import { ownerDocument as c } from "./index306.js";
|
|
3
|
+
import { contains as f, activeElement as I } from "./index313.js";
|
|
4
4
|
import { isElementVisible as C } from "./index378.js";
|
|
5
5
|
const N = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
|
|
6
6
|
function R(t) {
|
package/dist/index378.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { floor as _ } from "./
|
|
2
|
-
import { getComputedStyle as K } from "./
|
|
1
|
+
import { floor as _ } from "./index321.js";
|
|
2
|
+
import { getComputedStyle as K } from "./index331.js";
|
|
3
3
|
import { stopEvent as b } from "./index375.js";
|
|
4
4
|
import { ARROW_UP as Q, ARROW_DOWN as X, ARROW_LEFT as z, ARROW_RIGHT as B } from "./index385.js";
|
|
5
5
|
function W(t, r, o) {
|
package/dist/index380.js
CHANGED
package/dist/index381.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isShadowRoot as O, getNodeName as y } from "./
|
|
2
|
-
import { ownerDocument as U } from "./
|
|
1
|
+
import { isShadowRoot as O, getNodeName as y } from "./index331.js";
|
|
2
|
+
import { ownerDocument as U } from "./index306.js";
|
|
3
3
|
const k = {
|
|
4
4
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
5
5
|
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
package/dist/index407.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { evaluate as P, getSide as E, getSideAxis as S, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, getAlignment as j, min as X, max as L, getAlignmentAxis as ee, getPaddingObject as te, rectToClientRect as Y, sides as ne, getAxisLength as ie, clamp as $, getOppositeAxis as U } from "./
|
|
1
|
+
import { evaluate as P, getSide as E, getSideAxis as S, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, getAlignment as j, min as X, max as L, getAlignmentAxis as ee, getPaddingObject as te, rectToClientRect as Y, sides as ne, getAxisLength as ie, clamp as $, getOppositeAxis as U } from "./index321.js";
|
|
2
2
|
function z(t, e, d) {
|
|
3
3
|
let {
|
|
4
4
|
reference: i,
|
package/dist/index49.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { visuallyHiddenInput as Ze, visuallyHidden as et } from "./
|
|
3
|
-
import { useMergedRefs as tt } from "./
|
|
4
|
-
import { useRefWithInit as ot } from "./
|
|
2
|
+
import { visuallyHiddenInput as Ze, visuallyHidden as et } from "./index278.js";
|
|
3
|
+
import { useMergedRefs as tt } from "./index279.js";
|
|
4
|
+
import { useRefWithInit as ot } from "./index280.js";
|
|
5
5
|
import { useOnFirstRender as nt } from "./index188.js";
|
|
6
|
-
import { usePreviousValue as rt } from "./
|
|
7
|
-
import { useControlled as le } from "./
|
|
8
|
-
import { useIsoLayoutEffect as x } from "./
|
|
9
|
-
import { useStableCallback as b } from "./
|
|
10
|
-
import { useValueAsRef as st } from "./
|
|
11
|
-
import { EMPTY_ARRAY as ie, EMPTY_OBJECT as lt } from "./
|
|
12
|
-
import { SelectRootContext as it, SelectFloatingContext as at } from "./
|
|
13
|
-
import { useFieldRootContext as ut } from "./
|
|
14
|
-
import { useRegisterFieldControl as ct } from "./
|
|
15
|
-
import { useLabelableId as dt } from "./
|
|
16
|
-
import { useTransitionStatus as ft } from "./
|
|
17
|
-
import { selectors as A } from "./
|
|
6
|
+
import { usePreviousValue as rt } from "./index281.js";
|
|
7
|
+
import { useControlled as le } from "./index282.js";
|
|
8
|
+
import { useIsoLayoutEffect as x } from "./index283.js";
|
|
9
|
+
import { useStableCallback as b } from "./index284.js";
|
|
10
|
+
import { useValueAsRef as st } from "./index285.js";
|
|
11
|
+
import { EMPTY_ARRAY as ie, EMPTY_OBJECT as lt } from "./index286.js";
|
|
12
|
+
import { SelectRootContext as it, SelectFloatingContext as at } from "./index287.js";
|
|
13
|
+
import { useFieldRootContext as ut } from "./index288.js";
|
|
14
|
+
import { useRegisterFieldControl as ct } from "./index289.js";
|
|
15
|
+
import { useLabelableId as dt } from "./index290.js";
|
|
16
|
+
import { useTransitionStatus as ft } from "./index291.js";
|
|
17
|
+
import { selectors as A } from "./index292.js";
|
|
18
18
|
import { createChangeEventDetails as ae } from "./index175.js";
|
|
19
19
|
import { useOpenChangeComplete as mt } from "./index182.js";
|
|
20
|
-
import { useFormContext as pt } from "./
|
|
21
|
-
import { stringifyAsValue as y, stringifyAsLabel as gt } from "./
|
|
22
|
-
import { defaultItemEquality as ht, findItemIndex as ue } from "./
|
|
23
|
-
import { useValueChanged as Rt } from "./
|
|
24
|
-
import { useOpenInteractionType as vt } from "./
|
|
25
|
-
import { getMaxScrollOffset as It, normalizeScrollOffset as bt } from "./
|
|
20
|
+
import { useFormContext as pt } from "./index293.js";
|
|
21
|
+
import { stringifyAsValue as y, stringifyAsLabel as gt } from "./index294.js";
|
|
22
|
+
import { defaultItemEquality as ht, findItemIndex as ue } from "./index295.js";
|
|
23
|
+
import { useValueChanged as Rt } from "./index296.js";
|
|
24
|
+
import { useOpenInteractionType as vt } from "./index297.js";
|
|
25
|
+
import { getMaxScrollOffset as It, normalizeScrollOffset as bt } from "./index298.js";
|
|
26
26
|
import { j as M } from "./index30.js";
|
|
27
|
-
import { useStore as w } from "./
|
|
28
|
-
import { useFloatingRootContext as yt } from "./
|
|
27
|
+
import { useStore as w } from "./index299.js";
|
|
28
|
+
import { useFloatingRootContext as yt } from "./index300.js";
|
|
29
29
|
import { useClick as Ct } from "./index194.js";
|
|
30
|
-
import { useDismiss as Vt } from "./
|
|
31
|
-
import { useListNavigation as xt } from "./
|
|
32
|
-
import { useTypeahead as At } from "./
|
|
30
|
+
import { useDismiss as Vt } from "./index301.js";
|
|
31
|
+
import { useListNavigation as xt } from "./index302.js";
|
|
32
|
+
import { useTypeahead as At } from "./index303.js";
|
|
33
33
|
import { useInteractions as Mt } from "./index195.js";
|
|
34
|
-
import { mergeProps as wt } from "./
|
|
35
|
-
import { Store as Pt } from "./
|
|
34
|
+
import { mergeProps as wt } from "./index304.js";
|
|
35
|
+
import { Store as Pt } from "./index305.js";
|
|
36
36
|
import { none as St, focusOut as Et, outsidePress as Tt } from "./index177.js";
|
|
37
37
|
function ho(ce) {
|
|
38
38
|
const {
|