@boxcustodia/library 0.0.5 → 0.0.7
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/index.es10.js +1 -1
- package/dist/index.es100.js +4 -14
- package/dist/index.es101.js +14 -5
- package/dist/index.es102.js +4 -56
- package/dist/index.es103.js +55 -257
- package/dist/index.es104.js +29 -12
- package/dist/index.es105.js +12 -1062
- package/dist/index.es106.js +11 -4
- package/dist/index.es107.js +21 -4
- package/dist/index.es108.js +12 -29
- package/dist/index.es109.js +4 -4
- package/dist/index.es110.js +12 -224
- package/dist/index.es111.js +1062 -11
- package/dist/index.es112.js +4 -11
- package/dist/index.es113.js +4 -41
- package/dist/index.es114.js +222 -19
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +41 -12
- package/dist/index.es117.js +237 -61
- package/dist/index.es118.js +61 -237
- package/dist/index.es119.js +12 -12
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es124.js +216 -4
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +5 -5
- package/dist/index.es128.js +4 -8
- package/dist/index.es129.js +7 -215
- package/dist/index.es13.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +1 -1
- package/dist/index.es134.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +6 -5
- package/dist/index.es144.js +65 -2
- package/dist/index.es145.js +10 -6
- package/dist/index.es146.js +118 -58
- package/dist/index.es147.js +134 -10
- package/dist/index.es148.js +13 -124
- package/dist/index.es149.js +31 -133
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +14 -13
- package/dist/index.es151.js +9 -33
- package/dist/index.es152.js +50 -15
- package/dist/index.es153.js +6 -9
- package/dist/index.es154.js +2 -50
- package/dist/index.es155.js +649 -3
- package/dist/index.es156.js +193 -625
- package/dist/index.es157.js +3 -217
- package/dist/index.es159.js +1 -1
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +6 -118
- package/dist/index.es165.js +3 -35
- package/dist/index.es166.js +2054 -2
- package/dist/index.es167.js +118 -2
- package/dist/index.es168.js +32 -20
- package/dist/index.es169.js +2 -9
- package/dist/index.es170.js +2 -38
- package/dist/index.es171.js +14 -11
- package/dist/index.es172.js +9 -6
- package/dist/index.es173.js +40 -3
- package/dist/index.es174.js +17 -2053
- package/dist/index.es186.js +2 -2
- package/dist/index.es207.js +1 -1
- package/dist/index.es241.js +4 -4
- package/dist/index.es243.js +2 -2
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es249.js +2 -26
- package/dist/index.es250.js +397 -4
- package/dist/index.es251.js +722 -7
- package/dist/index.es252.js +282 -13
- package/dist/index.es253.js +60 -13
- package/dist/index.es254.js +9 -134
- package/dist/index.es255.js +28 -31
- package/dist/index.es256.js +195 -459
- package/dist/index.es257.js +25 -131
- package/dist/index.es258.js +5 -27
- package/dist/index.es259.js +7 -4
- package/dist/index.es260.js +12 -25
- package/dist/index.es261.js +13 -7
- package/dist/index.es262.js +134 -11
- package/dist/index.es263.js +30 -27
- package/dist/index.es264.js +460 -46
- package/dist/index.es265.js +129 -28
- package/dist/index.es266.js +26 -43
- package/dist/index.es267.js +4 -158
- package/dist/index.es268.js +23 -30
- package/dist/index.es269.js +8 -2
- package/dist/index.es270.js +9 -77
- package/dist/index.es271.js +28 -18
- package/dist/index.es272.js +48 -24
- package/dist/index.es273.js +31 -16
- package/dist/index.es274.js +44 -8
- package/dist/index.es275.js +159 -2
- package/dist/index.es276.js +32 -396
- package/dist/index.es277.js +2 -723
- package/dist/index.es278.js +71 -274
- package/dist/index.es279.js +18 -60
- package/dist/index.es280.js +25 -10
- package/dist/index.es281.js +16 -29
- package/dist/index.es282.js +8 -199
- package/dist/index.es29.js +6 -6
- package/dist/index.es31.js +29 -29
- package/dist/index.es32.js +1 -1
- package/dist/index.es326.js +1 -1
- package/dist/index.es34.js +5 -5
- package/dist/index.es341.js +5 -5
- package/dist/index.es345.js +1 -1
- package/dist/index.es346.js +2 -2
- package/dist/index.es347.js +2 -334
- package/dist/index.es348.js +106 -31
- package/dist/index.es349.js +75 -16
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +35 -29
- package/dist/index.es351.js +63 -29
- package/dist/index.es352.js +34 -6
- package/dist/index.es353.js +66 -3
- package/dist/index.es354.js +111 -105
- package/dist/index.es355.js +88 -71
- package/dist/index.es356.js +38 -31
- package/dist/index.es357.js +3 -64
- package/dist/index.es358.js +3 -34
- package/dist/index.es359.js +3 -66
- package/dist/index.es360.js +3 -113
- package/dist/index.es361.js +3 -94
- package/dist/index.es362.js +3 -43
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es365.js +2 -2
- package/dist/index.es366.js +241 -4
- package/dist/index.es367.js +384 -4
- package/dist/index.es368.js +169 -4
- package/dist/index.es369.js +153 -4
- package/dist/index.es370.js +142 -4
- package/dist/index.es371.js +2 -2
- package/dist/index.es372.js +4 -241
- package/dist/index.es373.js +4 -384
- package/dist/index.es374.js +4 -169
- package/dist/index.es375.js +4 -153
- package/dist/index.es376.js +4 -142
- package/dist/index.es377.js +334 -2
- package/dist/index.es378.js +31 -2
- package/dist/index.es379.js +17 -2
- package/dist/index.es38.js +4 -4
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +29 -2
- package/dist/index.es382.js +5 -2
- package/dist/index.es384.js +1 -1
- package/dist/index.es385.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es40.js +3 -3
- package/dist/index.es41.js +1 -1
- package/dist/index.es418.js +1 -1
- package/dist/index.es419.js +4 -4
- package/dist/index.es425.js +21 -24
- package/dist/index.es426.js +2 -11
- package/dist/index.es427.js +34 -34
- package/dist/index.es428.js +176 -31
- package/dist/index.es429.js +88 -13
- package/dist/index.es430.js +17 -5
- package/dist/index.es431.js +2 -107
- package/dist/index.es432.js +4 -24
- package/dist/index.es433.js +2 -2
- package/dist/index.es434.js +4 -35
- package/dist/index.es435.js +25 -176
- package/dist/index.es436.js +4 -89
- package/dist/index.es437.js +277 -17
- package/dist/index.es438.js +80 -2
- package/dist/index.es439.js +166 -2
- package/dist/index.es44.js +1 -1
- package/dist/index.es440.js +25 -2
- package/dist/index.es441.js +11 -2
- package/dist/index.es442.js +31 -22
- package/dist/index.es443.js +30 -2
- package/dist/index.es444.js +12 -2
- package/dist/index.es445.js +2 -2
- package/dist/index.es446.js +2 -275
- package/dist/index.es447.js +3 -80
- package/dist/index.es448.js +104 -163
- package/dist/index.es45.js +4 -4
- package/dist/index.es454.js +1 -1
- package/dist/index.es455.js +1 -1
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +4 -4
- package/dist/index.es476.js +1 -1
- package/dist/index.es477.js +1 -1
- package/dist/index.es48.js +1 -1
- package/dist/index.es50.js +1 -1
- package/dist/index.es52.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es66.js +1 -1
- package/dist/index.es67.js +2 -2
- package/dist/index.es69.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es754.js +21 -13
- package/dist/index.es755.js +82 -13
- package/dist/index.es756.js +14 -60
- package/dist/index.es757.js +2 -22
- package/dist/index.es758.js +2 -83
- package/dist/index.es759.js +14 -2
- package/dist/index.es760.js +60 -2
- package/dist/index.es770.js +2 -8
- package/dist/index.es771.js +2 -56
- package/dist/index.es772.js +7 -18
- package/dist/index.es773.js +56 -2
- package/dist/index.es774.js +19 -2
- package/dist/index.es78.js +1 -1
- package/dist/index.es781.js +2 -2
- package/dist/index.es783.js +1 -1
- package/dist/index.es784.js +2 -2
- package/dist/index.es787.js +26 -56
- package/dist/index.es788.js +3 -10
- package/dist/index.es789.js +57 -14
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +6 -3
- package/dist/index.es791.js +15 -28
- package/dist/index.es792.js +7 -3
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es800.js +1 -1
- package/dist/index.es802.js +1 -1
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +2 -2
- package/dist/index.es809.js +1 -1
- package/dist/index.es811.js +5 -5
- package/dist/index.es812.js +2 -2
- package/dist/index.es813.js +1 -1
- package/dist/index.es815.js +2 -2
- package/dist/index.es823.js +1 -1
- package/dist/index.es827.js +15 -64
- package/dist/index.es828.js +7 -11
- package/dist/index.es829.js +61 -38
- package/dist/index.es830.js +7 -54
- package/dist/index.es831.js +40 -16
- package/dist/index.es832.js +57 -17
- package/dist/index.es833.js +20 -7
- package/dist/index.es834.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es90.js +9 -55
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +55 -90
- package/dist/index.es93.js +87 -34
- package/dist/index.es94.js +36 -23
- package/dist/index.es95.js +18 -24
- package/dist/index.es96.js +30 -9
- package/dist/index.es97.js +259 -12
- package/dist/index.es98.js +10 -3672
- package/dist/index.es99.js +3673 -3
- package/dist/style.css +14 -2
- package/package.json +2 -2
package/dist/index.es157.js
CHANGED
|
@@ -1,220 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
import { Root as Oe } from "./index.es246.js";
|
|
4
|
-
import { useComposedRefs as T } from "./index.es137.js";
|
|
5
|
-
import { createContextScope as Re } from "./index.es146.js";
|
|
6
|
-
import { Primitive as z } from "./index.es151.js";
|
|
7
|
-
import { useCallbackRef as Ee } from "./index.es139.js";
|
|
8
|
-
import { useLayoutEffect as B } from "./index.es155.js";
|
|
9
|
-
import { useSize as Ne } from "./index.es247.js";
|
|
10
|
-
import { j as f } from "./index.es82.js";
|
|
11
|
-
import { autoUpdate as _e } from "./index.es248.js";
|
|
12
|
-
var N = "Popper", [L, Ue] = Re(N), [$e, Z] = L(N), U = (e) => {
|
|
13
|
-
const { __scopePopper: i, children: n } = e, [t, a] = s.useState(null);
|
|
14
|
-
return /* @__PURE__ */ f.jsx($e, { scope: i, anchor: t, onAnchorChange: a, children: n });
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
var o = globalThis != null && globalThis.document ? e.useLayoutEffect : () => {
|
|
15
3
|
};
|
|
16
|
-
U.displayName = N;
|
|
17
|
-
var q = "PopperAnchor", G = s.forwardRef(
|
|
18
|
-
(e, i) => {
|
|
19
|
-
const { __scopePopper: n, virtualRef: t, ...a } = e, r = Z(q, n), o = s.useRef(null), w = T(i, o);
|
|
20
|
-
return s.useEffect(() => {
|
|
21
|
-
r.onAnchorChange((t == null ? void 0 : t.current) || o.current);
|
|
22
|
-
}), t ? null : /* @__PURE__ */ f.jsx(z.div, { ...a, ref: w });
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
G.displayName = q;
|
|
26
|
-
var _ = "PopperContent", [je, He] = L(_), J = s.forwardRef(
|
|
27
|
-
(e, i) => {
|
|
28
|
-
var I, Y, M, X, D, F;
|
|
29
|
-
const {
|
|
30
|
-
__scopePopper: n,
|
|
31
|
-
side: t = "bottom",
|
|
32
|
-
sideOffset: a = 0,
|
|
33
|
-
align: r = "center",
|
|
34
|
-
alignOffset: o = 0,
|
|
35
|
-
arrowPadding: w = 0,
|
|
36
|
-
avoidCollisions: p = !0,
|
|
37
|
-
collisionBoundary: c = [],
|
|
38
|
-
collisionPadding: x = 0,
|
|
39
|
-
sticky: m = "partial",
|
|
40
|
-
hideWhenDetached: y = !1,
|
|
41
|
-
updatePositionStrategy: A = "optimized",
|
|
42
|
-
onPlaced: l,
|
|
43
|
-
...d
|
|
44
|
-
} = e, v = Z(_, n), [h, C] = s.useState(null), ee = T(i, (P) => C(P)), [E, te] = s.useState(null), g = Ne(E), re = (g == null ? void 0 : g.width) ?? 0, $ = (g == null ? void 0 : g.height) ?? 0, oe = t + (r !== "center" ? "-" + r : ""), ne = typeof x == "number" ? x : { top: 0, right: 0, bottom: 0, left: 0, ...x }, j = Array.isArray(c) ? c : [c], ae = j.length > 0, b = {
|
|
45
|
-
padding: ne,
|
|
46
|
-
boundary: j.filter(Ie),
|
|
47
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
48
|
-
altBoundary: ae
|
|
49
|
-
}, { refs: ie, floatingStyles: H, placement: se, isPositioned: S, middlewareData: u } = xe({
|
|
50
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
51
|
-
strategy: "fixed",
|
|
52
|
-
placement: oe,
|
|
53
|
-
whileElementsMounted: (...P) => _e(...P, {
|
|
54
|
-
animationFrame: A === "always"
|
|
55
|
-
}),
|
|
56
|
-
elements: {
|
|
57
|
-
reference: v.anchor
|
|
58
|
-
},
|
|
59
|
-
middleware: [
|
|
60
|
-
Pe({ mainAxis: a + $, alignmentAxis: o }),
|
|
61
|
-
p && ye({
|
|
62
|
-
mainAxis: !0,
|
|
63
|
-
crossAxis: !1,
|
|
64
|
-
limiter: m === "partial" ? Se() : void 0,
|
|
65
|
-
...b
|
|
66
|
-
}),
|
|
67
|
-
p && Ae({ ...b }),
|
|
68
|
-
ve({
|
|
69
|
-
...b,
|
|
70
|
-
apply: ({ elements: P, rects: k, availableWidth: he, availableHeight: ge }) => {
|
|
71
|
-
const { width: ue, height: we } = k.reference, R = P.floating.style;
|
|
72
|
-
R.setProperty("--radix-popper-available-width", `${he}px`), R.setProperty("--radix-popper-available-height", `${ge}px`), R.setProperty("--radix-popper-anchor-width", `${ue}px`), R.setProperty("--radix-popper-anchor-height", `${we}px`);
|
|
73
|
-
}
|
|
74
|
-
}),
|
|
75
|
-
E && Ce({ element: E, padding: w }),
|
|
76
|
-
Ye({ arrowWidth: re, arrowHeight: $ }),
|
|
77
|
-
y && be({ strategy: "referenceHidden", ...b })
|
|
78
|
-
]
|
|
79
|
-
}), [W, pe] = V(se), O = Ee(l);
|
|
80
|
-
B(() => {
|
|
81
|
-
S && (O == null || O());
|
|
82
|
-
}, [S, O]);
|
|
83
|
-
const ce = (I = u.arrow) == null ? void 0 : I.x, de = (Y = u.arrow) == null ? void 0 : Y.y, le = ((M = u.arrow) == null ? void 0 : M.centerOffset) !== 0, [fe, me] = s.useState();
|
|
84
|
-
return B(() => {
|
|
85
|
-
h && me(window.getComputedStyle(h).zIndex);
|
|
86
|
-
}, [h]), /* @__PURE__ */ f.jsx(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
ref: ie.setFloating,
|
|
90
|
-
"data-radix-popper-content-wrapper": "",
|
|
91
|
-
style: {
|
|
92
|
-
...H,
|
|
93
|
-
transform: S ? H.transform : "translate(0, -200%)",
|
|
94
|
-
// keep off the page when measuring
|
|
95
|
-
minWidth: "max-content",
|
|
96
|
-
zIndex: fe,
|
|
97
|
-
"--radix-popper-transform-origin": [
|
|
98
|
-
(X = u.transformOrigin) == null ? void 0 : X.x,
|
|
99
|
-
(D = u.transformOrigin) == null ? void 0 : D.y
|
|
100
|
-
].join(" "),
|
|
101
|
-
// hide the content if using the hide middleware and should be hidden
|
|
102
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
103
|
-
// as if the PopperContent isn't there at all
|
|
104
|
-
...((F = u.hide) == null ? void 0 : F.referenceHidden) && {
|
|
105
|
-
visibility: "hidden",
|
|
106
|
-
pointerEvents: "none"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
dir: e.dir,
|
|
110
|
-
children: /* @__PURE__ */ f.jsx(
|
|
111
|
-
je,
|
|
112
|
-
{
|
|
113
|
-
scope: n,
|
|
114
|
-
placedSide: W,
|
|
115
|
-
onArrowChange: te,
|
|
116
|
-
arrowX: ce,
|
|
117
|
-
arrowY: de,
|
|
118
|
-
shouldHideArrow: le,
|
|
119
|
-
children: /* @__PURE__ */ f.jsx(
|
|
120
|
-
z.div,
|
|
121
|
-
{
|
|
122
|
-
"data-side": W,
|
|
123
|
-
"data-align": pe,
|
|
124
|
-
...d,
|
|
125
|
-
ref: ee,
|
|
126
|
-
style: {
|
|
127
|
-
...d.style,
|
|
128
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
129
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
130
|
-
animation: S ? void 0 : "none"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
J.displayName = _;
|
|
141
|
-
var K = "PopperArrow", We = {
|
|
142
|
-
top: "bottom",
|
|
143
|
-
right: "left",
|
|
144
|
-
bottom: "top",
|
|
145
|
-
left: "right"
|
|
146
|
-
}, Q = s.forwardRef(function(i, n) {
|
|
147
|
-
const { __scopePopper: t, ...a } = i, r = He(K, t), o = We[r.placedSide];
|
|
148
|
-
return (
|
|
149
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
150
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
151
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
152
|
-
/* @__PURE__ */ f.jsx(
|
|
153
|
-
"span",
|
|
154
|
-
{
|
|
155
|
-
ref: r.onArrowChange,
|
|
156
|
-
style: {
|
|
157
|
-
position: "absolute",
|
|
158
|
-
left: r.arrowX,
|
|
159
|
-
top: r.arrowY,
|
|
160
|
-
[o]: 0,
|
|
161
|
-
transformOrigin: {
|
|
162
|
-
top: "",
|
|
163
|
-
right: "0 0",
|
|
164
|
-
bottom: "center 0",
|
|
165
|
-
left: "100% 0"
|
|
166
|
-
}[r.placedSide],
|
|
167
|
-
transform: {
|
|
168
|
-
top: "translateY(100%)",
|
|
169
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
170
|
-
bottom: "rotate(180deg)",
|
|
171
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
172
|
-
}[r.placedSide],
|
|
173
|
-
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
174
|
-
},
|
|
175
|
-
children: /* @__PURE__ */ f.jsx(
|
|
176
|
-
Oe,
|
|
177
|
-
{
|
|
178
|
-
...a,
|
|
179
|
-
ref: n,
|
|
180
|
-
style: {
|
|
181
|
-
...a.style,
|
|
182
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
183
|
-
display: "block"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
);
|
|
190
|
-
});
|
|
191
|
-
Q.displayName = K;
|
|
192
|
-
function Ie(e) {
|
|
193
|
-
return e !== null;
|
|
194
|
-
}
|
|
195
|
-
var Ye = (e) => ({
|
|
196
|
-
name: "transformOrigin",
|
|
197
|
-
options: e,
|
|
198
|
-
fn(i) {
|
|
199
|
-
var v, h, C;
|
|
200
|
-
const { placement: n, rects: t, middlewareData: a } = i, o = ((v = a.arrow) == null ? void 0 : v.centerOffset) !== 0, w = o ? 0 : e.arrowWidth, p = o ? 0 : e.arrowHeight, [c, x] = V(n), m = { start: "0%", center: "50%", end: "100%" }[x], y = (((h = a.arrow) == null ? void 0 : h.x) ?? 0) + w / 2, A = (((C = a.arrow) == null ? void 0 : C.y) ?? 0) + p / 2;
|
|
201
|
-
let l = "", d = "";
|
|
202
|
-
return c === "bottom" ? (l = o ? m : `${y}px`, d = `${-p}px`) : c === "top" ? (l = o ? m : `${y}px`, d = `${t.floating.height + p}px`) : c === "right" ? (l = `${-p}px`, d = o ? m : `${A}px`) : c === "left" && (l = `${t.floating.width + p}px`, d = o ? m : `${A}px`), { data: { x: l, y: d } };
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
function V(e) {
|
|
206
|
-
const [i, n = "center"] = e.split("-");
|
|
207
|
-
return [i, n];
|
|
208
|
-
}
|
|
209
|
-
var qe = U, Ge = G, Je = J, Ke = Q;
|
|
210
4
|
export {
|
|
211
|
-
|
|
212
|
-
Ke as Arrow,
|
|
213
|
-
Je as Content,
|
|
214
|
-
U as Popper,
|
|
215
|
-
G as PopperAnchor,
|
|
216
|
-
Q as PopperArrow,
|
|
217
|
-
J as PopperContent,
|
|
218
|
-
qe as Root,
|
|
219
|
-
Ue as createPopperScope
|
|
5
|
+
o as useLayoutEffect
|
|
220
6
|
};
|
package/dist/index.es159.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import n from "react";
|
|
2
|
-
import { createContextScope as O } from "./index.
|
|
2
|
+
import { createContextScope as O } from "./index.es144.js";
|
|
3
3
|
import { useComposedRefs as I } from "./index.es137.js";
|
|
4
4
|
import { Slot as S } from "./index.es87.js";
|
|
5
5
|
import { j as u } from "./index.es82.js";
|
package/dist/index.es162.js
CHANGED
package/dist/index.es163.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { validateFieldsNatively as v, toNestErrors as d } from "./index.
|
|
2
|
-
import { appendErrors as h } from "./index.
|
|
1
|
+
import { validateFieldsNatively as v, toNestErrors as d } from "./index.es280.js";
|
|
2
|
+
import { appendErrors as h } from "./index.es111.js";
|
|
3
3
|
var m = function(t, u) {
|
|
4
4
|
for (var o = {}; t.length; ) {
|
|
5
5
|
var r = t[0], c = r.code, n = r.message, e = r.path.join(".");
|
package/dist/index.es164.js
CHANGED
|
@@ -1,120 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import s from "react";
|
|
7
|
-
import c from "./index.es333.js";
|
|
8
|
-
import { getInitialChildMapping as E, getNextChildMapping as y, getChildMapping as g } from "./index.es334.js";
|
|
9
|
-
var M = Object.values || function(a) {
|
|
10
|
-
return Object.keys(a).map(function(r) {
|
|
11
|
-
return a[r];
|
|
12
|
-
});
|
|
13
|
-
}, F = {
|
|
14
|
-
component: "div",
|
|
15
|
-
childFactory: function(r) {
|
|
16
|
-
return r;
|
|
17
|
-
}
|
|
18
|
-
}, h = /* @__PURE__ */ function(a) {
|
|
19
|
-
x(r, a);
|
|
20
|
-
function r(p, t) {
|
|
21
|
-
var e;
|
|
22
|
-
e = a.call(this, p, t) || this;
|
|
23
|
-
var o = e.handleExited.bind(v(e));
|
|
24
|
-
return e.state = {
|
|
25
|
-
contextValue: {
|
|
26
|
-
isMounting: !0
|
|
27
|
-
},
|
|
28
|
-
handleExited: o,
|
|
29
|
-
firstRender: !0
|
|
30
|
-
}, e;
|
|
31
|
-
}
|
|
32
|
-
var l = r.prototype;
|
|
33
|
-
return l.componentDidMount = function() {
|
|
34
|
-
this.mounted = !0, this.setState({
|
|
35
|
-
contextValue: {
|
|
36
|
-
isMounting: !1
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}, l.componentWillUnmount = function() {
|
|
40
|
-
this.mounted = !1;
|
|
41
|
-
}, r.getDerivedStateFromProps = function(t, e) {
|
|
42
|
-
var o = e.children, n = e.handleExited, i = e.firstRender;
|
|
43
|
-
return {
|
|
44
|
-
children: i ? E(t, n) : y(t, o, n),
|
|
45
|
-
firstRender: !1
|
|
46
|
-
};
|
|
47
|
-
}, l.handleExited = function(t, e) {
|
|
48
|
-
var o = g(this.props.children);
|
|
49
|
-
t.key in o || (t.props.onExited && t.props.onExited(e), this.mounted && this.setState(function(n) {
|
|
50
|
-
var i = f({}, n.children);
|
|
51
|
-
return delete i[t.key], {
|
|
52
|
-
children: i
|
|
53
|
-
};
|
|
54
|
-
}));
|
|
55
|
-
}, l.render = function() {
|
|
56
|
-
var t = this.props, e = t.component, o = t.childFactory, n = m(t, ["component", "childFactory"]), i = this.state.contextValue, u = M(this.state.children).map(o);
|
|
57
|
-
return delete n.appear, delete n.enter, delete n.exit, e === null ? /* @__PURE__ */ s.createElement(c.Provider, {
|
|
58
|
-
value: i
|
|
59
|
-
}, u) : /* @__PURE__ */ s.createElement(c.Provider, {
|
|
60
|
-
value: i
|
|
61
|
-
}, /* @__PURE__ */ s.createElement(e, n, u));
|
|
62
|
-
}, r;
|
|
63
|
-
}(s.Component);
|
|
64
|
-
h.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
65
|
-
/**
|
|
66
|
-
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
67
|
-
* behavior by providing a `component` prop.
|
|
68
|
-
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
69
|
-
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
70
|
-
* borks your css styles.
|
|
71
|
-
*/
|
|
72
|
-
component: d.any,
|
|
73
|
-
/**
|
|
74
|
-
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
75
|
-
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
76
|
-
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
77
|
-
* with our `<Fade>` example.
|
|
78
|
-
*
|
|
79
|
-
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
80
|
-
* children, sometimes you may want to have a single transition child with
|
|
81
|
-
* content that you want to be transitioned out and in when you change it
|
|
82
|
-
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
83
|
-
* the transition child as you change its content, this will cause
|
|
84
|
-
* `TransitionGroup` to transition the child out and back in.
|
|
85
|
-
*/
|
|
86
|
-
children: d.node,
|
|
87
|
-
/**
|
|
88
|
-
* A convenience prop that enables or disables appear animations
|
|
89
|
-
* for all children. Note that specifying this will override any defaults set
|
|
90
|
-
* on individual children Transitions.
|
|
91
|
-
*/
|
|
92
|
-
appear: d.bool,
|
|
93
|
-
/**
|
|
94
|
-
* A convenience prop that enables or disables enter animations
|
|
95
|
-
* for all children. Note that specifying this will override any defaults set
|
|
96
|
-
* on individual children Transitions.
|
|
97
|
-
*/
|
|
98
|
-
enter: d.bool,
|
|
99
|
-
/**
|
|
100
|
-
* A convenience prop that enables or disables exit animations
|
|
101
|
-
* for all children. Note that specifying this will override any defaults set
|
|
102
|
-
* on individual children Transitions.
|
|
103
|
-
*/
|
|
104
|
-
exit: d.bool,
|
|
105
|
-
/**
|
|
106
|
-
* You may need to apply reactive updates to a child as it is exiting.
|
|
107
|
-
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
108
|
-
* child the element has already been removed and not accessible to the consumer.
|
|
109
|
-
*
|
|
110
|
-
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
111
|
-
* to wrap every child, even the ones that are leaving.
|
|
112
|
-
*
|
|
113
|
-
* @type Function(child: ReactElement) -> ReactElement
|
|
114
|
-
*/
|
|
115
|
-
childFactory: d.func
|
|
116
|
-
} : {};
|
|
117
|
-
h.defaultProps = F;
|
|
1
|
+
import { __module as e } from "./index.es249.js";
|
|
2
|
+
import { __require as t } from "./index.es250.js";
|
|
3
|
+
import { __require as r } from "./index.es251.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = r();
|
|
5
|
+
var p = e.exports;
|
|
118
6
|
export {
|
|
119
|
-
|
|
7
|
+
p as t
|
|
120
8
|
};
|
package/dist/index.es165.js
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const n = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, { useDebugValue: l } = c, { useSyncExternalStoreWithSelector: f } = d;
|
|
5
|
-
let s = !1;
|
|
6
|
-
const p = (t) => t;
|
|
7
|
-
function E(t, o = p, e) {
|
|
8
|
-
(n ? "production" : void 0) !== "production" && e && !s && (console.warn(
|
|
9
|
-
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
10
|
-
), s = !0);
|
|
11
|
-
const r = f(
|
|
12
|
-
t.subscribe,
|
|
13
|
-
t.getState,
|
|
14
|
-
t.getServerState || t.getInitialState,
|
|
15
|
-
o,
|
|
16
|
-
e
|
|
17
|
-
);
|
|
18
|
-
return l(r), r;
|
|
19
|
-
}
|
|
20
|
-
const i = (t) => {
|
|
21
|
-
(n ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
22
|
-
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
23
|
-
);
|
|
24
|
-
const o = typeof t == "function" ? a(t) : t, e = (r, u) => E(o, r, u);
|
|
25
|
-
return Object.assign(e, o), e;
|
|
26
|
-
}, m = (t) => t ? i(t) : i;
|
|
27
|
-
var v = (t) => ((n ? "production" : void 0) !== "production" && console.warn(
|
|
28
|
-
"[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."
|
|
29
|
-
), m(t));
|
|
30
|
-
export {
|
|
31
|
-
m as create,
|
|
32
|
-
a as createStore,
|
|
33
|
-
v as default,
|
|
34
|
-
E as useStore
|
|
35
|
-
};
|
|
1
|
+
import e from "react-dom";
|
|
2
|
+
var _ = e;
|
|
3
|
+
process.env.NODE_ENV === "production" ? (_.createRoot, _.hydrateRoot) : _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|