@inkeep/cxkit-react 0.5.36 → 0.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/components/embedded-chat.cjs +1 -1
- package/dist/components/embedded-chat.js +1 -1
- package/dist/components/embedded-search-and-chat.impl.cjs +1 -1
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +29 -28
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-context/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-context/dist/index.js +68 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.4_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._ucun7uecgispdhq4vhr26lovum/node_modules/@radix-ui/react-dialog/dist/index.cjs +5 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.4_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._ucun7uecgispdhq4vhr26lovum/node_modules/@radix-ui/react-dialog/dist/index.js +253 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types__v2z2flytqizqloot5tnzsv72ca/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types__v2z2flytqizqloot5tnzsv72ca/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@_jnpeo7zp526zce4fsmzkscleui/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@_jnpeo7zp526zce4fsmzkscleui/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-id/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._k6mvjumazun2buzo2dcp22wl2y/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._k6mvjumazun2buzo2dcp22wl2y/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19._ceqn6mtlqa4vrghvmtsw5zpqya/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19._ceqn6mtlqa4vrghvmtsw5zpqya/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_zjcik7jr4zh3druglzeqejtmrq/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_zjcik7jr4zh3druglzeqejtmrq/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_xmwzi2lpk7e4iscy4hlhgpd4fu/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_xmwzi2lpk7e4iscy4hlhgpd4fu/node_modules/@radix-ui/react-primitive/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js +43 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.cjs +1 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +1 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +38 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +4 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +113 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +65 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +28 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/packages/primitives/src/atoms/cmdk/command-score.cjs +1 -0
- package/dist/packages/primitives/src/atoms/cmdk/command-score.js +46 -0
- package/dist/packages/primitives/src/atoms/cmdk/index.cjs +1 -0
- package/dist/packages/primitives/src/atoms/cmdk/index.js +519 -0
- package/dist/packages/primitives/src/atoms/shadow/context.cjs +1 -0
- package/dist/packages/primitives/src/atoms/shadow/context.js +8 -0
- package/dist/packages/primitives/src/constants/search.cjs +1 -0
- package/dist/packages/primitives/src/constants/search.js +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { useComposedRefs as O } from "../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
3
|
+
import { useLayoutEffect as A } from "../../../../../@radix-ui_react-use-layout-effect@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
4
|
+
function E(n, e) {
|
|
5
|
+
return i.useReducer((t, r) => e[t][r] ?? t, n);
|
|
6
|
+
}
|
|
7
|
+
var T = (n) => {
|
|
8
|
+
const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
|
|
9
|
+
return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
|
|
10
|
+
};
|
|
11
|
+
T.displayName = "Presence";
|
|
12
|
+
function R(n) {
|
|
13
|
+
const [e, t] = i.useState(), r = i.useRef({}), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
|
|
14
|
+
mounted: {
|
|
15
|
+
UNMOUNT: "unmounted",
|
|
16
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
17
|
+
},
|
|
18
|
+
unmountSuspended: {
|
|
19
|
+
MOUNT: "mounted",
|
|
20
|
+
ANIMATION_END: "unmounted"
|
|
21
|
+
},
|
|
22
|
+
unmounted: {
|
|
23
|
+
MOUNT: "mounted"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return i.useEffect(() => {
|
|
27
|
+
const o = l(r.current);
|
|
28
|
+
c.current = N === "mounted" ? o : "none";
|
|
29
|
+
}, [N]), A(() => {
|
|
30
|
+
const o = r.current, m = a.current;
|
|
31
|
+
if (m !== n) {
|
|
32
|
+
const f = c.current, u = l(o);
|
|
33
|
+
n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
|
|
34
|
+
}
|
|
35
|
+
}, [n, s]), A(() => {
|
|
36
|
+
if (e) {
|
|
37
|
+
let o;
|
|
38
|
+
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
39
|
+
const g = l(r.current).includes(u.animationName);
|
|
40
|
+
if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
|
|
41
|
+
const y = e.style.animationFillMode;
|
|
42
|
+
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
43
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, f = (u) => {
|
|
47
|
+
u.target === e && (c.current = l(r.current));
|
|
48
|
+
};
|
|
49
|
+
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
+
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
|
+
};
|
|
52
|
+
} else
|
|
53
|
+
s("ANIMATION_END");
|
|
54
|
+
}, [e, s]), {
|
|
55
|
+
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
56
|
+
ref: i.useCallback((o) => {
|
|
57
|
+
o && (r.current = getComputedStyle(o)), t(o);
|
|
58
|
+
}, [])
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function l(n) {
|
|
62
|
+
return n?.animationName || "none";
|
|
63
|
+
}
|
|
64
|
+
function v(n) {
|
|
65
|
+
let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
66
|
+
return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
T as Presence
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("react-dom"),f=require("../../../../../@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs"),d=require("react/jsx-runtime");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const p=n(u),m=n(l);var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],b=v.reduce((e,t)=>{const i=p.forwardRef((r,o)=>{const{asChild:c,...s}=r,a=c?f.Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...s,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function y(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=b;exports.dispatchDiscreteCustomEvent=y;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import * as f from "react-dom";
|
|
3
|
+
import { Slot as p } from "../../../../../@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
var c = [
|
|
6
|
+
"a",
|
|
7
|
+
"button",
|
|
8
|
+
"div",
|
|
9
|
+
"form",
|
|
10
|
+
"h2",
|
|
11
|
+
"h3",
|
|
12
|
+
"img",
|
|
13
|
+
"input",
|
|
14
|
+
"label",
|
|
15
|
+
"li",
|
|
16
|
+
"nav",
|
|
17
|
+
"ol",
|
|
18
|
+
"p",
|
|
19
|
+
"span",
|
|
20
|
+
"svg",
|
|
21
|
+
"ul"
|
|
22
|
+
], v = c.reduce((r, i) => {
|
|
23
|
+
const t = s.forwardRef((o, e) => {
|
|
24
|
+
const { asChild: m, ...a } = o, n = m ? p : i;
|
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...a, ref: e });
|
|
26
|
+
});
|
|
27
|
+
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
|
28
|
+
}, {});
|
|
29
|
+
function h(r, i) {
|
|
30
|
+
r && f.flushSync(() => r.dispatchEvent(i));
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
v as Primitive,
|
|
34
|
+
h as dispatchDiscreteCustomEvent
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("react-dom");const s=require("../../../../../@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs"),l=require("react/jsx-runtime");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=f(c);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],p=m.reduce((e,t)=>{const r=d.forwardRef((i,n)=>{const{asChild:o,...u}=i,a=o?s.Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...u,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});exports.Primitive=p;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
import { Slot as n } from "../../../../../@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var d = [
|
|
6
|
+
"a",
|
|
7
|
+
"button",
|
|
8
|
+
"div",
|
|
9
|
+
"form",
|
|
10
|
+
"h2",
|
|
11
|
+
"h3",
|
|
12
|
+
"img",
|
|
13
|
+
"input",
|
|
14
|
+
"label",
|
|
15
|
+
"li",
|
|
16
|
+
"nav",
|
|
17
|
+
"ol",
|
|
18
|
+
"p",
|
|
19
|
+
"span",
|
|
20
|
+
"svg",
|
|
21
|
+
"ul"
|
|
22
|
+
], c = d.reduce((o, r) => {
|
|
23
|
+
const i = f.forwardRef((t, e) => {
|
|
24
|
+
const { asChild: m, ...a } = t, p = m ? n : r;
|
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(p, { ...a, ref: e });
|
|
26
|
+
});
|
|
27
|
+
return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
|
|
28
|
+
}, {});
|
|
29
|
+
export {
|
|
30
|
+
c as Primitive
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),m=require("../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs"),a=require("react/jsx-runtime");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=y(g);var p=o.forwardRef((e,t)=>{const{children:r,...n}=e,l=o.Children.toArray(r),i=l.find(b);if(i){const s=i.props.children,c=l.map(f=>f===i?o.Children.count(s)>1?o.Children.only(null):o.isValidElement(s)?s.props.children:null:f);return a.jsx(u,{...n,ref:t,children:o.isValidElement(s)?o.cloneElement(s,void 0,c):null})}return a.jsx(u,{...n,ref:t,children:r})});p.displayName="Slot";var u=o.forwardRef((e,t)=>{const{children:r,...n}=e;if(o.isValidElement(r)){const l=S(r);return o.cloneElement(r,{...j(n,r.props),ref:t?m.composeRefs(t,l):l})}return o.Children.count(r)>1?o.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>a.jsx(a.Fragment,{children:e});function b(e){return o.isValidElement(e)&&e.type===d}function j(e,t){const r={...t};for(const n in t){const l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...c)=>{i(...c),l(...c)}:l&&(r[n]=l):n==="style"?r[n]={...l,...i}:n==="className"&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Slot=p;exports.Slottable=d;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { composeRefs as u } from "../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
3
|
+
import { jsx as c, Fragment as d } from "react/jsx-runtime";
|
|
4
|
+
var m = o.forwardRef((e, n) => {
|
|
5
|
+
const { children: r, ...t } = e, l = o.Children.toArray(r), i = l.find(y);
|
|
6
|
+
if (i) {
|
|
7
|
+
const s = i.props.children, a = l.map((p) => p === i ? o.Children.count(s) > 1 ? o.Children.only(null) : o.isValidElement(s) ? s.props.children : null : p);
|
|
8
|
+
return /* @__PURE__ */ c(f, { ...t, ref: n, children: o.isValidElement(s) ? o.cloneElement(s, void 0, a) : null });
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ c(f, { ...t, ref: n, children: r });
|
|
11
|
+
});
|
|
12
|
+
m.displayName = "Slot";
|
|
13
|
+
var f = o.forwardRef((e, n) => {
|
|
14
|
+
const { children: r, ...t } = e;
|
|
15
|
+
if (o.isValidElement(r)) {
|
|
16
|
+
const l = C(r);
|
|
17
|
+
return o.cloneElement(r, {
|
|
18
|
+
...h(t, r.props),
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
ref: n ? u(n, l) : l
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return o.Children.count(r) > 1 ? o.Children.only(null) : null;
|
|
24
|
+
});
|
|
25
|
+
f.displayName = "SlotClone";
|
|
26
|
+
var g = ({ children: e }) => /* @__PURE__ */ c(d, { children: e });
|
|
27
|
+
function y(e) {
|
|
28
|
+
return o.isValidElement(e) && e.type === g;
|
|
29
|
+
}
|
|
30
|
+
function h(e, n) {
|
|
31
|
+
const r = { ...n };
|
|
32
|
+
for (const t in n) {
|
|
33
|
+
const l = e[t], i = n[t];
|
|
34
|
+
/^on[A-Z]/.test(t) ? l && i ? r[t] = (...a) => {
|
|
35
|
+
i(...a), l(...a);
|
|
36
|
+
} : l && (r[t] = l) : t === "style" ? r[t] = { ...l, ...i } : t === "className" && (r[t] = [l, i].filter(Boolean).join(" "));
|
|
37
|
+
}
|
|
38
|
+
return { ...e, ...r };
|
|
39
|
+
}
|
|
40
|
+
function C(e) {
|
|
41
|
+
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning;
|
|
42
|
+
return r ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
m as Slot,
|
|
46
|
+
g as Slottable
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),m=require("../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs"),a=require("react/jsx-runtime");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=y(g);var p=o.forwardRef((e,t)=>{const{children:r,...n}=e,l=o.Children.toArray(r),i=l.find(b);if(i){const s=i.props.children,c=l.map(f=>f===i?o.Children.count(s)>1?o.Children.only(null):o.isValidElement(s)?s.props.children:null:f);return a.jsx(u,{...n,ref:t,children:o.isValidElement(s)?o.cloneElement(s,void 0,c):null})}return a.jsx(u,{...n,ref:t,children:r})});p.displayName="Slot";var u=o.forwardRef((e,t)=>{const{children:r,...n}=e;if(o.isValidElement(r)){const l=S(r),i=j(n,r.props);return r.type!==o.Fragment&&(i.ref=t?m.composeRefs(t,l):l),o.cloneElement(r,i)}return o.Children.count(r)>1?o.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>a.jsx(a.Fragment,{children:e});function b(e){return o.isValidElement(e)&&e.type===d}function j(e,t){const r={...t};for(const n in t){const l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...c)=>{i(...c),l(...c)}:l&&(r[n]=l):n==="style"?r[n]={...l,...i}:n==="className"&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Slot=p;exports.Slottable=d;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { composeRefs as u } from "../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
3
|
+
import { jsx as c, Fragment as d } from "react/jsx-runtime";
|
|
4
|
+
var m = o.forwardRef((r, n) => {
|
|
5
|
+
const { children: e, ...t } = r, l = o.Children.toArray(e), i = l.find(y);
|
|
6
|
+
if (i) {
|
|
7
|
+
const s = i.props.children, a = l.map((p) => p === i ? o.Children.count(s) > 1 ? o.Children.only(null) : o.isValidElement(s) ? s.props.children : null : p);
|
|
8
|
+
return /* @__PURE__ */ c(f, { ...t, ref: n, children: o.isValidElement(s) ? o.cloneElement(s, void 0, a) : null });
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ c(f, { ...t, ref: n, children: e });
|
|
11
|
+
});
|
|
12
|
+
m.displayName = "Slot";
|
|
13
|
+
var f = o.forwardRef((r, n) => {
|
|
14
|
+
const { children: e, ...t } = r;
|
|
15
|
+
if (o.isValidElement(e)) {
|
|
16
|
+
const l = C(e), i = h(t, e.props);
|
|
17
|
+
return e.type !== o.Fragment && (i.ref = n ? u(n, l) : l), o.cloneElement(e, i);
|
|
18
|
+
}
|
|
19
|
+
return o.Children.count(e) > 1 ? o.Children.only(null) : null;
|
|
20
|
+
});
|
|
21
|
+
f.displayName = "SlotClone";
|
|
22
|
+
var g = ({ children: r }) => /* @__PURE__ */ c(d, { children: r });
|
|
23
|
+
function y(r) {
|
|
24
|
+
return o.isValidElement(r) && r.type === g;
|
|
25
|
+
}
|
|
26
|
+
function h(r, n) {
|
|
27
|
+
const e = { ...n };
|
|
28
|
+
for (const t in n) {
|
|
29
|
+
const l = r[t], i = n[t];
|
|
30
|
+
/^on[A-Z]/.test(t) ? l && i ? e[t] = (...a) => {
|
|
31
|
+
i(...a), l(...a);
|
|
32
|
+
} : l && (e[t] = l) : t === "style" ? e[t] = { ...l, ...i } : t === "className" && (e[t] = [l, i].filter(Boolean).join(" "));
|
|
33
|
+
}
|
|
34
|
+
return { ...r, ...e };
|
|
35
|
+
}
|
|
36
|
+
function C(r) {
|
|
37
|
+
let n = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, e = n && "isReactWarning" in n && n.isReactWarning;
|
|
38
|
+
return e ? r.ref : (n = Object.getOwnPropertyDescriptor(r, "ref")?.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? r.props.ref : r.props.ref || r.ref);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
m as Slot,
|
|
42
|
+
g as Slottable
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=o(u);function a(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>t.current?.(...r),[])}exports.useCallbackRef=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("../../../../../@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis?.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useCallbackRef as s } from "../../../../../@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
3
|
+
function p(n, e = globalThis?.document) {
|
|
4
|
+
const t = s(n);
|
|
5
|
+
r.useEffect(() => {
|
|
6
|
+
const o = (a) => {
|
|
7
|
+
a.key === "Escape" && t(a);
|
|
8
|
+
};
|
|
9
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
10
|
+
}, [t, e]);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
p as useEscapeKeydown
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=a(r);var u=globalThis?.document?n.useLayoutEffect:()=>{};exports.useLayoutEffect=u;
|
package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var k=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,b=function(r){return r&&(r.host||b(r.parentNode))},O=function(r,u){return u.map(function(t){if(r.contains(t))return t;var n=b(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},D=function(r,u,t,n){var i=O(u,Array.isArray(r)?r:[r]);p[t]||(p[t]=new WeakMap);var o=p[t],l=[],s=new Set,S=new Set(i),y=function(e){!e||s.has(e)||(s.add(e),y(e.parentNode))};i.forEach(y);var A=function(e){!e||S.has(e)||Array.prototype.forEach.call(e.children,function(a){if(s.has(a))A(a);else try{var c=a.getAttribute(n),d=c!==null&&c!=="false",w=(f.get(a)||0)+1,M=(o.get(a)||0)+1;f.set(a,w),o.set(a,M),l.push(a),w===1&&d&&v.set(a,!0),M===1&&a.setAttribute(t,"true"),d||a.setAttribute(n,"true")}catch(W){console.error("aria-hidden: cannot operate on ",a,W)}})};return A(u),s.clear(),h++,function(){l.forEach(function(e){var a=f.get(e)-1,c=o.get(e)-1;f.set(e,a),o.set(e,c),a||(v.has(e)||e.removeAttribute(n),v.delete(e)),c||e.removeAttribute(t)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},E=function(r,u,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=k(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),D(n,i,t,"aria-hidden")):function(){return null}};exports.hideOthers=E;
|
package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
C as hideOthers
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};exports.getNonce=e;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("../../../../../react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.cjs"),o=require("./constants.cjs"),p=require("./utils.cjs");function v(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(c,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return c.default=t,Object.freeze(c)}const u=v(f);var m=b.styleSingleton(),r="data-scroll-locked",h=function(t,c,e,n){var i=t.left,l=t.top,d=t.right,a=t.gap;return e===void 0&&(e="margin"),`
|
|
2
|
+
.`.concat(o.noScrollbarsClassName,` {
|
|
3
|
+
overflow: hidden `).concat(n,`;
|
|
4
|
+
padding-right: `).concat(a,"px ").concat(n,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(r,`] {
|
|
7
|
+
overflow: hidden `).concat(n,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([c&&"position: relative ".concat(n,";"),e==="margin"&&`
|
|
10
|
+
padding-left: `.concat(i,`px;
|
|
11
|
+
padding-top: `).concat(l,`px;
|
|
12
|
+
padding-right: `).concat(d,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
16
|
+
`),e==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(o.zeroRightClassName,` {
|
|
20
|
+
right: `).concat(a,"px ").concat(n,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(o.fullWidthClassName,` {
|
|
24
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(o.zeroRightClassName," .").concat(o.zeroRightClassName,` {
|
|
28
|
+
right: 0 `).concat(n,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(o.fullWidthClassName," .").concat(o.fullWidthClassName,` {
|
|
32
|
+
margin-right: 0 `).concat(n,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(r,`] {
|
|
36
|
+
`).concat(o.removedBarSizeVariable,": ").concat(a,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},s=function(){var t=parseInt(document.body.getAttribute(r)||"0",10);return isFinite(t)?t:0},g=function(){u.useEffect(function(){return document.body.setAttribute(r,(s()+1).toString()),function(){var t=s()-1;t<=0?document.body.removeAttribute(r):document.body.setAttribute(r,t.toString())}},[])},y=function(t){var c=t.noRelative,e=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;g();var l=u.useMemo(function(){return p.getGapWidth(i)},[i]);return u.createElement(m,{styles:h(l,!c,i,e?"":"!important")})};exports.RemoveScrollBar=y;exports.lockAttribute=r;exports.useLockAttribute=g;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { styleSingleton as f } from "../../../../../react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.js";
|
|
4
|
+
import { noScrollbarsClassName as p, zeroRightClassName as l, fullWidthClassName as g, removedBarSizeVariable as v } from "./constants.js";
|
|
5
|
+
import { getGapWidth as m } from "./utils.js";
|
|
6
|
+
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
7
|
+
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
|
8
|
+
return o === void 0 && (o = "margin"), `
|
|
9
|
+
.`.concat(p, ` {
|
|
10
|
+
overflow: hidden `).concat(t, `;
|
|
11
|
+
padding-right: `).concat(c, "px ").concat(t, `;
|
|
12
|
+
}
|
|
13
|
+
body[`).concat(e, `] {
|
|
14
|
+
overflow: hidden `).concat(t, `;
|
|
15
|
+
overscroll-behavior: contain;
|
|
16
|
+
`).concat([
|
|
17
|
+
a && "position: relative ".concat(t, ";"),
|
|
18
|
+
o === "margin" && `
|
|
19
|
+
padding-left: `.concat(r, `px;
|
|
20
|
+
padding-top: `).concat(i, `px;
|
|
21
|
+
padding-right: `).concat(s, `px;
|
|
22
|
+
margin-left:0;
|
|
23
|
+
margin-top:0;
|
|
24
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
|
25
|
+
`),
|
|
26
|
+
o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
|
|
27
|
+
].filter(Boolean).join(""), `
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.`).concat(l, ` {
|
|
31
|
+
right: `).concat(c, "px ").concat(t, `;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.`).concat(g, ` {
|
|
35
|
+
margin-right: `).concat(c, "px ").concat(t, `;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.`).concat(l, " .").concat(l, ` {
|
|
39
|
+
right: 0 `).concat(t, `;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(g, " .").concat(g, ` {
|
|
43
|
+
margin-right: 0 `).concat(t, `;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
body[`).concat(e, `] {
|
|
47
|
+
`).concat(v, ": ").concat(c, `px;
|
|
48
|
+
}
|
|
49
|
+
`);
|
|
50
|
+
}, u = function() {
|
|
51
|
+
var n = parseInt(document.body.getAttribute(e) || "0", 10);
|
|
52
|
+
return isFinite(n) ? n : 0;
|
|
53
|
+
}, x = function() {
|
|
54
|
+
d.useEffect(function() {
|
|
55
|
+
return document.body.setAttribute(e, (u() + 1).toString()), function() {
|
|
56
|
+
var n = u() - 1;
|
|
57
|
+
n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
|
|
58
|
+
};
|
|
59
|
+
}, []);
|
|
60
|
+
}, C = function(n) {
|
|
61
|
+
var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
|
|
62
|
+
x();
|
|
63
|
+
var i = d.useMemo(function() {
|
|
64
|
+
return m(r);
|
|
65
|
+
}, [r]);
|
|
66
|
+
return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
C as RemoveScrollBar,
|
|
70
|
+
e as lockAttribute,
|
|
71
|
+
x as useLockAttribute
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e="right-scroll-bar-position",r="width-before-scroll-bar",a="with-scroll-bars-hidden",l="--removed-body-scroll-bar-size";exports.fullWidthClassName=r;exports.noScrollbarsClassName=a;exports.removedBarSizeVariable=l;exports.zeroRightClassName=e;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", e = "with-scroll-bars-hidden", l = "--removed-body-scroll-bar-size";
|
|
3
|
+
export {
|
|
4
|
+
a as fullWidthClassName,
|
|
5
|
+
e as noScrollbarsClassName,
|
|
6
|
+
l as removedBarSizeVariable,
|
|
7
|
+
r as zeroRightClassName
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a={left:0,top:0,right:0,gap:0},r=function(t){return parseInt(t||"",10)||0},o=function(t){var i=window.getComputedStyle(document.body),n=i[t==="padding"?"paddingLeft":"marginLeft"],e=i[t==="padding"?"paddingTop":"marginTop"],d=i[t==="padding"?"paddingRight":"marginRight"];return[r(n),r(e),r(d)]},g=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return a;var i=o(t),n=document.documentElement.clientWidth,e=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,e-n+i[2]-i[0])}};exports.getGapWidth=g;exports.zeroGap=a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var a = {
|
|
3
|
+
left: 0,
|
|
4
|
+
top: 0,
|
|
5
|
+
right: 0,
|
|
6
|
+
gap: 0
|
|
7
|
+
}, e = function(t) {
|
|
8
|
+
return parseInt(t || "", 10) || 0;
|
|
9
|
+
}, o = function(t) {
|
|
10
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
11
|
+
return [e(i), e(r), e(d)];
|
|
12
|
+
}, f = function(t) {
|
|
13
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
14
|
+
return a;
|
|
15
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
16
|
+
return {
|
|
17
|
+
left: n[0],
|
|
18
|
+
top: n[1],
|
|
19
|
+
right: n[2],
|
|
20
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
f as getGapWidth,
|
|
25
|
+
a as zeroGap
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs"),l=require("react"),a=require("./UI.cjs"),u=require("./sidecar.cjs");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=i(l);var n=o.forwardRef(function(e,t){return o.createElement(a.RemoveScroll,s.__assign({},e,{ref:t,sideCar:u.default}))});n.classNames=a.RemoveScroll.classNames;exports.default=n;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __assign as m } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { RemoveScroll as r } from "./UI.js";
|
|
5
|
+
import t from "./sidecar.js";
|
|
6
|
+
var s = e.forwardRef(function(a, o) {
|
|
7
|
+
return e.createElement(r, m({}, a, { ref: o, sideCar: t }));
|
|
8
|
+
});
|
|
9
|
+
s.classNames = r.classNames;
|
|
10
|
+
export {
|
|
11
|
+
s as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs"),q=require("react"),j=require("../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs"),_=require("../../../../../react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.cjs"),d=require("./aggresiveCapture.cjs"),E=require("./handleScroll.cjs");function p(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=p(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},R=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},A=function(e,a){return e[0]===a[0]&&e[1]===a[1]},x=function(e){return`
|
|
2
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
3
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
4
|
+
`)},I=0,v=[];function W(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(I++)[0],S=n.useState(_.styleSingleton)[0],b=n.useRef(e);n.useEffect(function(){b.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=O.__spreadArray([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var k=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!b.current.allowPinchZoom;var s=g(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,P=t.target,m=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&m==="h"&&P.type==="range")return!1;var C=E.locationCouldBeScrolled(m,P);if(!C)return!0;if(C?c=m:(c=m==="v"?"h":"v",C=E.locationCouldBeScrolled(m,P)),!C)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var Y=i.current||c;return E.handleScroll(Y,r,t,Y==="h"?o:f)},[]),y=n.useCallback(function(t){var r=t;if(!(!v.length||v[v.length-1]!==S)){var s="deltaY"in r?R(r):g(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&A(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(b.current.shards||[]).map(M).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?k(r,o[0]):!b.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),w=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:z(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),T=n.useCallback(function(t){l.current=g(t),i.current=void 0},[]),L=n.useCallback(function(t){w(t.type,R(t),t.target,k(t,e.lockRef.current))},[]),X=n.useCallback(function(t){w(t.type,g(t),t.target,k(t,e.lockRef.current))},[]);n.useEffect(function(){return v.push(S),e.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:X}),document.addEventListener("wheel",y,d.nonPassive),document.addEventListener("touchmove",y,d.nonPassive),document.addEventListener("touchstart",T,d.nonPassive),function(){v=v.filter(function(t){return t!==S}),document.removeEventListener("wheel",y,d.nonPassive),document.removeEventListener("touchmove",y,d.nonPassive),document.removeEventListener("touchstart",T,d.nonPassive)}},[]);var B=e.removeScrollBar,D=e.inert;return n.createElement(n.Fragment,null,D?n.createElement(S,{styles:x(h)}):null,B?n.createElement(j.RemoveScrollBar,{gapMode:e.gapMode}):null)}function z(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=W;exports.getDeltaXY=R;exports.getTouchXY=g;
|