@satoshibits/react-json-schema-builder 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs49.js +6 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js +6 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +2 -2
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +2 -2
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -6
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -6
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -5
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +5 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs94.js +38 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js +1 -38
- package/dist/index.cjs95.js.map +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +4 -3
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es2.js +73 -71
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es3.js +131 -134
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +1 -1
- package/dist/index.es34.js +1 -1
- package/dist/index.es36.js +7 -7
- package/dist/index.es37.js +20 -20
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es40.js +1 -1
- package/dist/index.es41.js +1 -1
- package/dist/index.es43.js +1 -1
- package/dist/index.es47.js +4 -4
- package/dist/index.es49.js +21 -8
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +9 -5
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +32 -15
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +12 -3
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +8 -38
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +5 -18
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +30 -252
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +6 -21
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +25 -5
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +62 -23
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +27 -63
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es60.js +5 -29
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +24 -5
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +3 -24
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +45 -32
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +7 -3
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +123 -44
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +14 -7
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +125 -116
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +10 -14
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +209 -127
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +12 -10
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +7 -215
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +4 -13
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +27 -7
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +49 -3
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +9 -28
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +253 -48
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +21 -8
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +11 -67
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +203 -10
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +20 -203
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +392 -21
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +61 -386
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es89.js +4 -4
- package/dist/index.es94.js +69 -65
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +8 -68
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +14 -9
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +62 -14
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +64 -61
- package/dist/index.es98.js.map +1 -1
- package/dist/packages/builder/context.d.ts +3 -1
- package/dist/packages/builder/context.d.ts.map +1 -1
- package/dist/packages/builder/schema-builder.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.es71.js
CHANGED
|
@@ -1,219 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { useCallbackRef as ve } from "./index.es73.js";
|
|
8
|
-
import { useLayoutEffect as z } from "./index.es74.js";
|
|
9
|
-
import { useSize as Ce } from "./index.es62.js";
|
|
10
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
11
|
-
import { autoUpdate as Se } from "./index.es82.js";
|
|
12
|
-
var b = "Popper", [M, ke] = Ae(b), [be, X] = M(b), D = (e) => {
|
|
13
|
-
const { __scopePopper: a, children: o } = e, [i, n] = s.useState(null);
|
|
14
|
-
return /* @__PURE__ */ f(be, { scope: a, anchor: i, onAnchorChange: n, children: o });
|
|
15
|
-
};
|
|
16
|
-
D.displayName = b;
|
|
17
|
-
var F = "PopperAnchor", k = s.forwardRef(
|
|
18
|
-
(e, a) => {
|
|
19
|
-
const { __scopePopper: o, virtualRef: i, ...n } = e, t = X(F, o), r = s.useRef(null), g = I(a, r);
|
|
20
|
-
return s.useEffect(() => {
|
|
21
|
-
t.onAnchorChange(i?.current || r.current);
|
|
22
|
-
}), i ? null : /* @__PURE__ */ f(Y.div, { ...n, ref: g });
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
k.displayName = F;
|
|
26
|
-
var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
27
|
-
(e, a) => {
|
|
28
|
-
const {
|
|
29
|
-
__scopePopper: o,
|
|
30
|
-
side: i = "bottom",
|
|
31
|
-
sideOffset: n = 0,
|
|
32
|
-
align: t = "center",
|
|
33
|
-
alignOffset: r = 0,
|
|
34
|
-
arrowPadding: g = 0,
|
|
35
|
-
avoidCollisions: p = !0,
|
|
36
|
-
collisionBoundary: c = [],
|
|
37
|
-
collisionPadding: u = 0,
|
|
38
|
-
sticky: m = "partial",
|
|
39
|
-
hideWhenDetached: P = !1,
|
|
40
|
-
updatePositionStrategy: x = "optimized",
|
|
41
|
-
onPlaced: l,
|
|
42
|
-
...d
|
|
43
|
-
} = e, Z = X(O, o), [C, U] = s.useState(null), q = I(a, (w) => U(w)), [S, G] = s.useState(null), R = Ce(S), J = R?.width ?? 0, E = R?.height ?? 0, K = i + (t !== "center" ? "-" + t : ""), Q = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
|
|
44
|
-
padding: Q,
|
|
45
|
-
boundary: N.filter(Ne),
|
|
46
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
47
|
-
altBoundary: V
|
|
48
|
-
}, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
|
|
49
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
50
|
-
strategy: "fixed",
|
|
51
|
-
placement: K,
|
|
52
|
-
whileElementsMounted: (...w) => Se(...w, {
|
|
53
|
-
animationFrame: x === "always"
|
|
54
|
-
}),
|
|
55
|
-
elements: {
|
|
56
|
-
reference: Z.anchor
|
|
57
|
-
},
|
|
58
|
-
middleware: [
|
|
59
|
-
me({ mainAxis: n + E, alignmentAxis: r }),
|
|
60
|
-
p && he({
|
|
61
|
-
mainAxis: !0,
|
|
62
|
-
crossAxis: !1,
|
|
63
|
-
limiter: m === "partial" ? xe() : void 0,
|
|
64
|
-
...y
|
|
65
|
-
}),
|
|
66
|
-
p && ge({ ...y }),
|
|
67
|
-
ue({
|
|
68
|
-
...y,
|
|
69
|
-
apply: ({ elements: w, rects: W, availableWidth: pe, availableHeight: ce }) => {
|
|
70
|
-
const { width: de, height: le } = W.reference, v = w.floating.style;
|
|
71
|
-
v.setProperty("--radix-popper-available-width", `${pe}px`), v.setProperty("--radix-popper-available-height", `${ce}px`), v.setProperty("--radix-popper-anchor-width", `${de}px`), v.setProperty("--radix-popper-anchor-height", `${le}px`);
|
|
72
|
-
}
|
|
73
|
-
}),
|
|
74
|
-
S && we({ element: S, padding: g }),
|
|
75
|
-
_e({ arrowWidth: J, arrowHeight: E }),
|
|
76
|
-
P && Pe({ strategy: "referenceHidden", ...y })
|
|
77
|
-
]
|
|
78
|
-
}), [$, re] = L(te), H = ve(l);
|
|
79
|
-
z(() => {
|
|
80
|
-
A && H?.();
|
|
81
|
-
}, [A, H]);
|
|
82
|
-
const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = s.useState();
|
|
83
|
-
return z(() => {
|
|
84
|
-
C && se(window.getComputedStyle(C).zIndex);
|
|
85
|
-
}, [C]), /* @__PURE__ */ f(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
ref: ee.setFloating,
|
|
89
|
-
"data-radix-popper-content-wrapper": "",
|
|
90
|
-
style: {
|
|
91
|
-
..._,
|
|
92
|
-
transform: A ? _.transform : "translate(0, -200%)",
|
|
93
|
-
// keep off the page when measuring
|
|
94
|
-
minWidth: "max-content",
|
|
95
|
-
zIndex: ie,
|
|
96
|
-
"--radix-popper-transform-origin": [
|
|
97
|
-
h.transformOrigin?.x,
|
|
98
|
-
h.transformOrigin?.y
|
|
99
|
-
].join(" "),
|
|
100
|
-
// hide the content if using the hide middleware and should be hidden
|
|
101
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
102
|
-
// as if the PopperContent isn't there at all
|
|
103
|
-
...h.hide?.referenceHidden && {
|
|
104
|
-
visibility: "hidden",
|
|
105
|
-
pointerEvents: "none"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
dir: e.dir,
|
|
109
|
-
children: /* @__PURE__ */ f(
|
|
110
|
-
Oe,
|
|
111
|
-
{
|
|
112
|
-
scope: o,
|
|
113
|
-
placedSide: $,
|
|
114
|
-
onArrowChange: G,
|
|
115
|
-
arrowX: oe,
|
|
116
|
-
arrowY: ne,
|
|
117
|
-
shouldHideArrow: ae,
|
|
118
|
-
children: /* @__PURE__ */ f(
|
|
119
|
-
Y.div,
|
|
120
|
-
{
|
|
121
|
-
"data-side": $,
|
|
122
|
-
"data-align": re,
|
|
123
|
-
...d,
|
|
124
|
-
ref: q,
|
|
125
|
-
style: {
|
|
126
|
-
...d.style,
|
|
127
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
128
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
129
|
-
animation: A ? void 0 : "none"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
B.displayName = O;
|
|
140
|
-
var T = "PopperArrow", Ee = {
|
|
141
|
-
top: "bottom",
|
|
142
|
-
right: "left",
|
|
143
|
-
bottom: "top",
|
|
144
|
-
left: "right"
|
|
145
|
-
}, j = s.forwardRef(function(a, o) {
|
|
146
|
-
const { __scopePopper: i, ...n } = a, t = Re(T, i), r = Ee[t.placedSide];
|
|
147
|
-
return (
|
|
148
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
149
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
150
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
151
|
-
/* @__PURE__ */ f(
|
|
152
|
-
"span",
|
|
153
|
-
{
|
|
154
|
-
ref: t.onArrowChange,
|
|
155
|
-
style: {
|
|
156
|
-
position: "absolute",
|
|
157
|
-
left: t.arrowX,
|
|
158
|
-
top: t.arrowY,
|
|
159
|
-
[r]: 0,
|
|
160
|
-
transformOrigin: {
|
|
161
|
-
top: "",
|
|
162
|
-
right: "0 0",
|
|
163
|
-
bottom: "center 0",
|
|
164
|
-
left: "100% 0"
|
|
165
|
-
}[t.placedSide],
|
|
166
|
-
transform: {
|
|
167
|
-
top: "translateY(100%)",
|
|
168
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
169
|
-
bottom: "rotate(180deg)",
|
|
170
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
171
|
-
}[t.placedSide],
|
|
172
|
-
visibility: t.shouldHideArrow ? "hidden" : void 0
|
|
173
|
-
},
|
|
174
|
-
children: /* @__PURE__ */ f(
|
|
175
|
-
ye,
|
|
176
|
-
{
|
|
177
|
-
...n,
|
|
178
|
-
ref: o,
|
|
179
|
-
style: {
|
|
180
|
-
...n.style,
|
|
181
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
182
|
-
display: "block"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
);
|
|
189
|
-
});
|
|
190
|
-
j.displayName = T;
|
|
191
|
-
function Ne(e) {
|
|
192
|
-
return e !== null;
|
|
193
|
-
}
|
|
194
|
-
var _e = (e) => ({
|
|
195
|
-
name: "transformOrigin",
|
|
196
|
-
options: e,
|
|
197
|
-
fn(a) {
|
|
198
|
-
const { placement: o, rects: i, middlewareData: n } = a, r = n.arrow?.centerOffset !== 0, g = r ? 0 : e.arrowWidth, p = r ? 0 : e.arrowHeight, [c, u] = L(o), m = { start: "0%", center: "50%", end: "100%" }[u], P = (n.arrow?.x ?? 0) + g / 2, x = (n.arrow?.y ?? 0) + p / 2;
|
|
199
|
-
let l = "", d = "";
|
|
200
|
-
return c === "bottom" ? (l = r ? m : `${P}px`, d = `${-p}px`) : c === "top" ? (l = r ? m : `${P}px`, d = `${i.floating.height + p}px`) : c === "right" ? (l = `${-p}px`, d = r ? m : `${x}px`) : c === "left" && (l = `${i.floating.width + p}px`, d = r ? m : `${x}px`), { data: { x: l, y: d } };
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
function L(e) {
|
|
204
|
-
const [a, o = "center"] = e.split("-");
|
|
205
|
-
return [a, o];
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function c(r) {
|
|
3
|
+
const t = e.useRef(r);
|
|
4
|
+
return e.useEffect(() => {
|
|
5
|
+
t.current = r;
|
|
6
|
+
}), e.useMemo(() => (...u) => t.current?.(...u), []);
|
|
206
7
|
}
|
|
207
|
-
var Be = D, Te = k, je = B, Le = j;
|
|
208
8
|
export {
|
|
209
|
-
|
|
210
|
-
Le as Arrow,
|
|
211
|
-
je as Content,
|
|
212
|
-
D as Popper,
|
|
213
|
-
k as PopperAnchor,
|
|
214
|
-
j as PopperArrow,
|
|
215
|
-
B as PopperContent,
|
|
216
|
-
Be as Root,
|
|
217
|
-
ke as createPopperScope
|
|
9
|
+
c as useCallbackRef
|
|
218
10
|
};
|
|
219
11
|
//# sourceMappingURL=index.es71.js.map
|
package/dist/index.es71.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es71.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-popper@1.2.2_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_59afb87696a0dce9b123b45a0cbbb3e0/node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","arrowY","cannotCenterArrow","contentZIndex","setContentZIndex","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":";;;;;;;;;;;AAyBA,IAAIA,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,GAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAAS,CAACC,MAAU;AACtB,QAAM,EAAE,eAAAC,GAAe,UAAAC,EAAQ,IAAKF,GAC9B,CAACG,GAAQC,CAAS,IAAIC,EAAM,SAAS,IAAI;AAC/C,SAAuB,gBAAAC,EAAIT,IAAgB,EAAE,OAAOI,GAAe,QAAAE,GAAQ,gBAAgBC,GAAW,UAAAF,GAAU;AAClH;AACAH,EAAO,cAAcN;AACrB,IAAIc,IAAc,gBACdC,IAAeH,EAAM;AAAA,EACvB,CAACL,GAAOS,MAAiB;AACvB,UAAM,EAAE,eAAAR,GAAe,YAAAS,GAAY,GAAGC,EAAa,IAAGX,GAChDY,IAAUd,EAAiBS,GAAaN,CAAa,GACrDY,IAAMR,EAAM,OAAO,IAAI,GACvBS,IAAeC,EAAgBN,GAAcI,CAAG;AACtD,WAAAR,EAAM,UAAU,MAAM;AACpB,MAAAO,EAAQ,eAAeF,GAAY,WAAWG,EAAI,OAAO;AAAA,IAC/D,CAAK,GACMH,IAAa,OAAuB,gBAAAJ,EAAIU,EAAU,KAAK,EAAE,GAAGL,GAAa,KAAKG,GAAc;AAAA,EACvG;AACA;AACAN,EAAa,cAAcD;AAC3B,IAAIU,IAAe,iBACf,CAACC,IAAuBC,EAAiB,IAAIzB,EAAoBuB,CAAY,GAC7EG,IAAgBf,EAAM;AAAA,EACx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AAzC,GAAW,OAAAY,GAAO,gBAAAV,EAAgB,IAAGuC,GAEvCC,IADoBxC,EAAe,OAAO,iBAAiB,GAE3DZ,IAAaoD,IAAgB,IAAIF,EAAQ,YACzCjD,IAAcmD,IAAgB,IAAIF,EAAQ,aAC1C,CAACnB,GAAYC,CAAW,IAAIC,EAA6BvB,CAAS,GAClE2C,IAAe,EAAE,OAAO,MAAM,QAAQ,OAAO,KAAK,OAAQ,EAACrB,CAAW,GACtEsB,KAAgB1C,EAAe,OAAO,KAAK,KAAKZ,IAAa,GAC7DuD,KAAgB3C,EAAe,OAAO,KAAK,KAAKX,IAAc;AACpE,QAAIuD,IAAI,IACJC,IAAI;AACR,WAAI1B,MAAe,YACjByB,IAAIJ,IAAgBC,IAAe,GAAGC,CAAY,MAClDG,IAAI,GAAG,CAACxD,CAAW,QACV8B,MAAe,SACxByB,IAAIJ,IAAgBC,IAAe,GAAGC,CAAY,MAClDG,IAAI,GAAGnC,EAAM,SAAS,SAASrB,CAAW,QACjC8B,MAAe,WACxByB,IAAI,GAAG,CAACvD,CAAW,MACnBwD,IAAIL,IAAgBC,IAAe,GAAGE,CAAY,QACzCxB,MAAe,WACxByB,IAAI,GAAGlC,EAAM,SAAS,QAAQrB,CAAW,MACzCwD,IAAIL,IAAgBC,IAAe,GAAGE,CAAY,OAE7C,EAAE,MAAM,EAAE,GAAAC,GAAG,GAAAC,EAAC,EAAI;AAAA,EAC7B;AACA;AACA,SAASxB,EAA6BvB,GAAW;AAC/C,QAAM,CAAC9B,GAAME,IAAQ,QAAQ,IAAI4B,EAAU,MAAM,GAAG;AACpD,SAAO,CAAC9B,GAAME,CAAK;AACrB;AACG,IAAC4E,KAAQpG,GACRqG,KAAS5F,GACT6F,KAAUjF,GACVkF,KAAQjB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es71.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EAC1B,CAAG,GACME,EAAM,QAAQ,MAAM,IAAIC,MAASF,EAAY,UAAU,GAAGE,CAAI,GAAG,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index.es72.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { useLayoutEffect as c } from "./index.es74.js";
|
|
5
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
-
var l = "Portal", p = o.forwardRef((r, e) => {
|
|
7
|
-
const { container: a, ...f } = r, [i, m] = o.useState(!1);
|
|
8
|
-
c(() => m(!0), []);
|
|
9
|
-
const t = a || i && globalThis?.document?.body;
|
|
10
|
-
return t ? n.createPortal(/* @__PURE__ */ u(s.div, { ...f, ref: e }), t) : null;
|
|
11
|
-
});
|
|
12
|
-
p.displayName = l;
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
var o = globalThis?.document ? e.useLayoutEffect : () => {
|
|
3
|
+
};
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
o as useLayoutEffect
|
|
15
6
|
};
|
|
16
7
|
//# sourceMappingURL=index.es72.js.map
|
package/dist/index.es72.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es72.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es72.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":";AAEG,IAACA,IAA2B,YAAY,WAAYC,EAAM,kBAAkB,MAAM;AACrF;","x_google_ignoreList":[0]}
|
package/dist/index.es73.js
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { Primitive as a } from "./index.es55.js";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
var t = "VisuallyHidden", d = e.forwardRef(
|
|
5
|
+
(r, i) => /* @__PURE__ */ o(
|
|
6
|
+
a.span,
|
|
7
|
+
{
|
|
8
|
+
...r,
|
|
9
|
+
ref: i,
|
|
10
|
+
style: {
|
|
11
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
12
|
+
position: "absolute",
|
|
13
|
+
border: 0,
|
|
14
|
+
width: 1,
|
|
15
|
+
height: 1,
|
|
16
|
+
padding: 0,
|
|
17
|
+
margin: -1,
|
|
18
|
+
overflow: "hidden",
|
|
19
|
+
clip: "rect(0, 0, 0, 0)",
|
|
20
|
+
whiteSpace: "nowrap",
|
|
21
|
+
wordWrap: "normal",
|
|
22
|
+
...r.style
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
d.displayName = t;
|
|
8
28
|
export {
|
|
9
|
-
|
|
29
|
+
d as VisuallyHidden
|
|
10
30
|
};
|
|
11
31
|
//# sourceMappingURL=index.es73.js.map
|
package/dist/index.es73.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es73.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es73.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.1.2_@types+react-dom@18.3.5_@types+react@18.3.18__@ty_96e5d54b7bd10cf53cadcc132d77f938/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["// packages/react/visually-hidden/src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: {\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\",\n ...props.style\n }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","VisuallyHidden","React","props","forwardedRef","jsx","Primitive"],"mappings":";;;AAIA,IAAIA,IAAO,kBACPC,IAAiBC,EAAM;AAAA,EACzB,CAACC,GAAOC,MACiB,gBAAAC;AAAA,IACrBC,EAAU;AAAA,IACV;AAAA,MACE,GAAGH;AAAA,MACH,KAAKC;AAAA,MACL,OAAO;AAAA;AAAA,QAEL,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,UAAU;AAAA,QACV,GAAGD,EAAM;AAAA,MACnB;AAAA,IACA;AAAA,EACK;AAEL;AACAF,EAAe,cAAcD;","x_google_ignoreList":[0]}
|
package/dist/index.es74.js
CHANGED
|
@@ -1,7 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var S = function(r) {
|
|
2
|
+
if (typeof document > "u")
|
|
3
|
+
return null;
|
|
4
|
+
var u = Array.isArray(r) ? r[0] : r;
|
|
5
|
+
return u.ownerDocument.body;
|
|
6
|
+
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
|
7
|
+
return r && (r.host || W(r.parentNode));
|
|
8
|
+
}, D = function(r, u) {
|
|
9
|
+
return u.map(function(e) {
|
|
10
|
+
if (r.contains(e))
|
|
11
|
+
return e;
|
|
12
|
+
var n = W(e);
|
|
13
|
+
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
|
14
|
+
}).filter(function(e) {
|
|
15
|
+
return !!e;
|
|
16
|
+
});
|
|
17
|
+
}, E = function(r, u, e, n) {
|
|
18
|
+
var i = D(u, Array.isArray(r) ? r : [r]);
|
|
19
|
+
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
|
20
|
+
var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
|
21
|
+
!t || s.has(t) || (s.add(t), y(t.parentNode));
|
|
22
|
+
};
|
|
23
|
+
i.forEach(y);
|
|
24
|
+
var A = function(t) {
|
|
25
|
+
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
|
26
|
+
if (s.has(a))
|
|
27
|
+
A(a);
|
|
28
|
+
else
|
|
29
|
+
try {
|
|
30
|
+
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
|
31
|
+
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
|
32
|
+
} catch (k) {
|
|
33
|
+
console.error("aria-hidden: cannot operate on ", a, k);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
return A(u), s.clear(), h++, function() {
|
|
38
|
+
l.forEach(function(t) {
|
|
39
|
+
var a = f.get(t) - 1, c = o.get(t) - 1;
|
|
40
|
+
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
|
41
|
+
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
|
42
|
+
};
|
|
43
|
+
}, C = function(r, u, e) {
|
|
44
|
+
e === void 0 && (e = "data-aria-hidden");
|
|
45
|
+
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
|
46
|
+
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
3
49
|
};
|
|
4
50
|
export {
|
|
5
|
-
|
|
51
|
+
C as hideOthers
|
|
6
52
|
};
|
|
7
53
|
//# sourceMappingURL=index.es74.js.map
|
package/dist/index.es74.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es74.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":";AAEG,IAACA,IAA2B,YAAY,WAAYC,EAAM,kBAAkB,MAAM;AACrF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es74.js","sources":["../../../node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAA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AAC,GACtF+B,IAAiChC,EAAiBC,CAAc;AACpE,SAAK+B,KAILrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,GACjFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KAJvE,WAAY;AAAE,WAAO;AAAA,EAAO;AAK3C;","x_google_ignoreList":[0]}
|
package/dist/index.es75.js
CHANGED
|
@@ -1,31 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ref: i,
|
|
10
|
-
style: {
|
|
11
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
12
|
-
position: "absolute",
|
|
13
|
-
border: 0,
|
|
14
|
-
width: 1,
|
|
15
|
-
height: 1,
|
|
16
|
-
padding: 0,
|
|
17
|
-
margin: -1,
|
|
18
|
-
overflow: "hidden",
|
|
19
|
-
clip: "rect(0, 0, 0, 0)",
|
|
20
|
-
whiteSpace: "nowrap",
|
|
21
|
-
wordWrap: "normal",
|
|
22
|
-
...r.style
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
);
|
|
27
|
-
d.displayName = t;
|
|
1
|
+
import { __assign as m } from "./index.es83.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { RemoveScroll as e } from "./index.es84.js";
|
|
4
|
+
import t from "./index.es85.js";
|
|
5
|
+
var s = r.forwardRef(function(a, o) {
|
|
6
|
+
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
|
7
|
+
});
|
|
8
|
+
s.classNames = e.classNames;
|
|
28
9
|
export {
|
|
29
|
-
|
|
10
|
+
s as default
|
|
30
11
|
};
|
|
31
12
|
//# sourceMappingURL=index.es75.js.map
|
package/dist/index.es75.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es75.js","sources":["../../../node_modules/.pnpm
|
|
1
|
+
{"version":3,"file":"index.es75.js","sources":["../../../node_modules/.pnpm/react-remove-scroll@2.6.3_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,CAAE,GAAEH,GAAO,EAAE,KAAKC,GAAK,SAASG,GAAS,CAAC;AAAK,CAAA;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
|