@inkeep/cxkit-react 0.5.37 → 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-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 @@
|
|
|
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;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __spreadArray as x } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { RemoveScrollBar as A } from "../../../../../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";
|
|
5
|
+
import { styleSingleton as I } 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";
|
|
6
|
+
import { nonPassive as s } from "./aggresiveCapture.js";
|
|
7
|
+
import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
|
|
8
|
+
var b = function(t) {
|
|
9
|
+
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
10
|
+
}, Y = function(t) {
|
|
11
|
+
return [t.deltaX, t.deltaY];
|
|
12
|
+
}, B = function(t) {
|
|
13
|
+
return t && "current" in t ? t.current : t;
|
|
14
|
+
}, p = function(t, c) {
|
|
15
|
+
return t[0] === c[0] && t[1] === c[1];
|
|
16
|
+
}, F = function(t) {
|
|
17
|
+
return `
|
|
18
|
+
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
19
|
+
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
20
|
+
`);
|
|
21
|
+
}, K = 0, f = [];
|
|
22
|
+
function z(t) {
|
|
23
|
+
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(K++)[0], m = n.useState(I)[0], g = n.useRef(t);
|
|
24
|
+
n.useEffect(function() {
|
|
25
|
+
g.current = t;
|
|
26
|
+
}, [t]), n.useEffect(function() {
|
|
27
|
+
if (t.inert) {
|
|
28
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
29
|
+
var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
|
|
30
|
+
return e.forEach(function(r) {
|
|
31
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
32
|
+
}), function() {
|
|
33
|
+
document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
|
|
34
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}, [t.inert, t.lockRef.current, t.shards]);
|
|
39
|
+
var k = n.useCallback(function(e, r) {
|
|
40
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
|
|
41
|
+
return !g.current.allowPinchZoom;
|
|
42
|
+
var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
|
|
43
|
+
if ("touches" in e && v === "h" && C.type === "range")
|
|
44
|
+
return !1;
|
|
45
|
+
var y = T(v, C);
|
|
46
|
+
if (!y)
|
|
47
|
+
return !0;
|
|
48
|
+
if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
|
|
49
|
+
return !1;
|
|
50
|
+
if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
|
|
51
|
+
return !0;
|
|
52
|
+
var P = d.current || a;
|
|
53
|
+
return W(P, r, e, P === "h" ? u : i);
|
|
54
|
+
}, []), S = n.useCallback(function(e) {
|
|
55
|
+
var r = e;
|
|
56
|
+
if (!(!f.length || f[f.length - 1] !== m)) {
|
|
57
|
+
var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
|
|
58
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && p(a.delta, l);
|
|
59
|
+
})[0];
|
|
60
|
+
if (o && o.should) {
|
|
61
|
+
r.cancelable && r.preventDefault();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!o) {
|
|
65
|
+
var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
|
|
66
|
+
return a.contains(r.target);
|
|
67
|
+
}), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
|
|
68
|
+
i && r.cancelable && r.preventDefault();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, []), R = n.useCallback(function(e, r, l, o) {
|
|
72
|
+
var u = { name: e, delta: r, target: l, should: o, shadowParent: O(l) };
|
|
73
|
+
c.current.push(u), setTimeout(function() {
|
|
74
|
+
c.current = c.current.filter(function(i) {
|
|
75
|
+
return i !== u;
|
|
76
|
+
});
|
|
77
|
+
}, 1);
|
|
78
|
+
}, []), w = n.useCallback(function(e) {
|
|
79
|
+
E.current = b(e), d.current = void 0;
|
|
80
|
+
}, []), L = n.useCallback(function(e) {
|
|
81
|
+
R(e.type, Y(e), e.target, k(e, t.lockRef.current));
|
|
82
|
+
}, []), M = n.useCallback(function(e) {
|
|
83
|
+
R(e.type, b(e), e.target, k(e, t.lockRef.current));
|
|
84
|
+
}, []);
|
|
85
|
+
n.useEffect(function() {
|
|
86
|
+
return f.push(m), t.setCallbacks({
|
|
87
|
+
onScrollCapture: L,
|
|
88
|
+
onWheelCapture: L,
|
|
89
|
+
onTouchMoveCapture: M
|
|
90
|
+
}), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
|
|
91
|
+
f = f.filter(function(e) {
|
|
92
|
+
return e !== m;
|
|
93
|
+
}), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
|
|
94
|
+
};
|
|
95
|
+
}, []);
|
|
96
|
+
var X = t.removeScrollBar, D = t.inert;
|
|
97
|
+
return n.createElement(
|
|
98
|
+
n.Fragment,
|
|
99
|
+
null,
|
|
100
|
+
D ? n.createElement(m, { styles: F(h) }) : null,
|
|
101
|
+
X ? n.createElement(A, { gapMode: t.gapMode }) : null
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function O(t) {
|
|
105
|
+
for (var c = null; t !== null; )
|
|
106
|
+
t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
|
|
107
|
+
return c;
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
z as RemoveScrollSideCar,
|
|
111
|
+
Y as getDeltaXY,
|
|
112
|
+
b as getTouchXY
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs"),j=require("react"),f=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/constants.cjs"),k=require("./medium.cjs"),q=require("../../../../../use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs");function B(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=B(j);var o=function(){},s=a.forwardRef(function(e,n){var r=a.useRef(null),l=a.useState({onScrollCapture:o,onWheelCapture:o,onTouchMoveCapture:o}),m=l[0],g=l[1],v=e.forwardProps,c=e.children,h=e.className,_=e.removeScrollBar,b=e.enabled,C=e.shards,S=e.sideCar,P=e.noIsolation,R=e.inert,w=e.allowPinchZoom,i=e.as,M=i===void 0?"div":i,N=e.gapMode,y=t.__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=S,u=q.useMergeRefs([r,n]),d=t.__assign(t.__assign({},y),m);return a.createElement(a.Fragment,null,b&&a.createElement(O,{sideCar:k.effectCar,removeScrollBar:_,shards:C,noIsolation:P,inert:R,setCallbacks:g,allowPinchZoom:!!w,lockRef:r,gapMode:N}),v?a.cloneElement(a.Children.only(c),t.__assign(t.__assign({},d),{ref:u})):a.createElement(M,t.__assign({},d,{className:h,ref:u}),c))});s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};s.classNames={fullWidth:f.fullWidthClassName,zeroRight:f.zeroRightClassName};exports.RemoveScroll=s;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __rest as k, __assign as r } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { zeroRightClassName as E, fullWidthClassName as I } from "../../../../../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";
|
|
5
|
+
import { effectCar as Z } from "./medium.js";
|
|
6
|
+
import { useMergeRefs as W } from "../../../../../use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js";
|
|
7
|
+
var l = function() {
|
|
8
|
+
}, m = a.forwardRef(function(e, d) {
|
|
9
|
+
var o = a.useRef(null), n = a.useState({
|
|
10
|
+
onScrollCapture: l,
|
|
11
|
+
onWheelCapture: l,
|
|
12
|
+
onTouchMoveCapture: l
|
|
13
|
+
}), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([o, d]), c = r(r({}, _), f);
|
|
14
|
+
return a.createElement(
|
|
15
|
+
a.Fragment,
|
|
16
|
+
null,
|
|
17
|
+
g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: o, gapMode: M }),
|
|
18
|
+
u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
m.defaultProps = {
|
|
22
|
+
enabled: !0,
|
|
23
|
+
removeScrollBar: !0,
|
|
24
|
+
inert: !1
|
|
25
|
+
};
|
|
26
|
+
m.classNames = {
|
|
27
|
+
fullWidth: I,
|
|
28
|
+
zeroRight: E
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
m as RemoveScroll
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=!1;if(typeof window<"u")try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{t=!1}var r=t?{passive:!1}:!1;exports.nonPassive=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var t = !1;
|
|
3
|
+
if (typeof window < "u")
|
|
4
|
+
try {
|
|
5
|
+
var e = Object.defineProperty({}, "passive", {
|
|
6
|
+
get: function() {
|
|
7
|
+
return t = !0, !0;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
11
|
+
} catch {
|
|
12
|
+
t = !1;
|
|
13
|
+
}
|
|
14
|
+
var s = t ? { passive: !1 } : !1;
|
|
15
|
+
export {
|
|
16
|
+
s as nonPassive
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var y=function(e){return e.tagName==="TEXTAREA"},w=function(e,r){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!y(e)&&o[r]==="visible")},p=function(e){return w(e,"overflowY")},B=function(e){return w(e,"overflowX")},H=function(e,r){var o=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var v=g(e,l);if(v){var n=b(e,l),a=n[1],t=n[2];if(a>t)return!0}l=l.parentNode}while(l&&l!==o.body);return!1},V=function(e){var r=e.scrollTop,o=e.scrollHeight,l=e.clientHeight;return[r,o,l]},D=function(e){var r=e.scrollLeft,o=e.scrollWidth,l=e.clientWidth;return[r,o,l]},g=function(e,r){return e==="v"?p(r):B(r)},b=function(e,r){return e==="v"?V(r):D(r)},R=function(e,r){return e==="h"&&r==="rtl"?-1:1},W=function(e,r,o,l,v){var n=R(e,window.getComputedStyle(r).direction),a=n*l,t=o.target,f=r.contains(t),c=!1,s=a>0,d=0,h=0;do{var i=b(e,t),u=i[0],m=i[1],C=i[2],S=m-C-n*u;(u||S)&&g(e,t)&&(d+=S,h+=u),t instanceof ShadowRoot?t=t.host:t=t.parentNode}while(!f&&t!==document.body||f&&(r.contains(t)||r===t));return(s&&Math.abs(d)<1||!s&&Math.abs(h)<1)&&(c=!0),c};exports.handleScroll=W;exports.locationCouldBeScrolled=H;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var p = function(e) {
|
|
3
|
+
return e.tagName === "TEXTAREA";
|
|
4
|
+
}, w = function(e, r) {
|
|
5
|
+
if (!(e instanceof Element))
|
|
6
|
+
return !1;
|
|
7
|
+
var o = window.getComputedStyle(e);
|
|
8
|
+
return (
|
|
9
|
+
// not-not-scrollable
|
|
10
|
+
o[r] !== "hidden" && // contains scroll inside self
|
|
11
|
+
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
|
12
|
+
);
|
|
13
|
+
}, y = function(e) {
|
|
14
|
+
return w(e, "overflowY");
|
|
15
|
+
}, H = function(e) {
|
|
16
|
+
return w(e, "overflowX");
|
|
17
|
+
}, R = function(e, r) {
|
|
18
|
+
var o = r.ownerDocument, t = r;
|
|
19
|
+
do {
|
|
20
|
+
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
|
21
|
+
var v = g(e, t);
|
|
22
|
+
if (v) {
|
|
23
|
+
var n = b(e, t), a = n[1], l = n[2];
|
|
24
|
+
if (a > l)
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
t = t.parentNode;
|
|
28
|
+
} while (t && t !== o.body);
|
|
29
|
+
return !1;
|
|
30
|
+
}, B = function(e) {
|
|
31
|
+
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
|
32
|
+
return [
|
|
33
|
+
r,
|
|
34
|
+
o,
|
|
35
|
+
t
|
|
36
|
+
];
|
|
37
|
+
}, V = function(e) {
|
|
38
|
+
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
|
39
|
+
return [
|
|
40
|
+
r,
|
|
41
|
+
o,
|
|
42
|
+
t
|
|
43
|
+
];
|
|
44
|
+
}, g = function(e, r) {
|
|
45
|
+
return e === "v" ? y(r) : H(r);
|
|
46
|
+
}, b = function(e, r) {
|
|
47
|
+
return e === "v" ? B(r) : V(r);
|
|
48
|
+
}, D = function(e, r) {
|
|
49
|
+
return e === "h" && r === "rtl" ? -1 : 1;
|
|
50
|
+
}, W = function(e, r, o, t, v) {
|
|
51
|
+
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
|
52
|
+
do {
|
|
53
|
+
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
|
54
|
+
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
55
|
+
} while (
|
|
56
|
+
// portaled content
|
|
57
|
+
!f && l !== document.body || // self content
|
|
58
|
+
f && (r.contains(l) || r === l)
|
|
59
|
+
);
|
|
60
|
+
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
W as handleScroll,
|
|
64
|
+
R as locationCouldBeScrolled
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.cjs");var r=e.createSidecarMedium();exports.effectCar=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SideEffect.cjs"),r=require("./medium.cjs"),t=require("../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.cjs"),i=t.exportSidecar(r.effectCar,e.RemoveScrollSideCar);exports.default=i;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RemoveScrollSideCar as r } from "./SideEffect.js";
|
|
3
|
+
import { effectCar as e } from "./medium.js";
|
|
4
|
+
import { exportSidecar as o } from "../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.js";
|
|
5
|
+
const a = o(e, r);
|
|
6
|
+
export {
|
|
7
|
+
a as default
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./hook.cjs");var i=function(){var t=r.styleHookSingleton(),n=function(e){var l=e.styles,o=e.dynamic;return t(l,o),null};return n};exports.styleSingleton=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),c=require("./singleton.cjs");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=u(r);var l=function(){var e=c.stylesheetSingleton();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}};exports.styleHookSingleton=l;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { stylesheetSingleton as r } from "./singleton.js";
|
|
4
|
+
var f = function() {
|
|
5
|
+
var e = r();
|
|
6
|
+
return function(t, n) {
|
|
7
|
+
o.useEffect(function() {
|
|
8
|
+
return e.add(t), function() {
|
|
9
|
+
e.remove();
|
|
10
|
+
};
|
|
11
|
+
}, [t && n]);
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
f as styleHookSingleton
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs");function o(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=l.getNonce();return e&&t.setAttribute("nonce",e),t}function r(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function i(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var u=function(){var t=0,e=null;return{add:function(n){t==0&&(e=o())&&(r(e,n),i(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};exports.stylesheetSingleton=u;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { getNonce as o } from "../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js";
|
|
3
|
+
function r() {
|
|
4
|
+
if (!document)
|
|
5
|
+
return null;
|
|
6
|
+
var t = document.createElement("style");
|
|
7
|
+
t.type = "text/css";
|
|
8
|
+
var e = o();
|
|
9
|
+
return e && t.setAttribute("nonce", e), t;
|
|
10
|
+
}
|
|
11
|
+
function l(t, e) {
|
|
12
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
13
|
+
}
|
|
14
|
+
function i(t) {
|
|
15
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
16
|
+
e.appendChild(t);
|
|
17
|
+
}
|
|
18
|
+
var c = function() {
|
|
19
|
+
var t = 0, e = null;
|
|
20
|
+
return {
|
|
21
|
+
add: function(n) {
|
|
22
|
+
t == 0 && (e = r()) && (l(e, n), i(e)), t++;
|
|
23
|
+
},
|
|
24
|
+
remove: function() {
|
|
25
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
c as stylesheetSingleton
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},exports.__assign.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function p(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}exports.__rest=s;exports.__spreadArray=p;
|