@vlrc-fe/components 1.0.7 → 1.0.8
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/MultiSelect/type.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -41
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +46 -80
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +22 -60
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1147 -43
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +30 -64
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +31 -147
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +93 -19
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +80 -25
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +9 -50
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +30 -156
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +350 -14
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +11 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +55 -60
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +430 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +36 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +28 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +14 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +156 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +19 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +67 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +118 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +36 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +13 -0
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +44 -121
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +31 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +37 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +123 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +44 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +43 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +14 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +64 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +23 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +34 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +27 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +30 -12
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +26 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +157 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +34 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +46 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +142 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +125 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +26 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +88 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +221 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +166 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +8 -12
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +126 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +15 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +9 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +17 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +22 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +18 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +6 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +7 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +8 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +7 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +12 -112
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +7 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +9 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +69 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +11 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +202 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +124 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +32 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +20 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +69 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +32 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +4 -726
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +11 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +280 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +157 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +20 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +10 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +14 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +8 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +8 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +11 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +10 -0
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +79 -339
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +6 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +8 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +8 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +10 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +11 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +15 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +11 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +11 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +6 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +43 -0
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +19 -66
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +382 -0
- package/dist/index181.cjs +1 -0
- package/dist/index181.js +40 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +23 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +59 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +55 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +54 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +57 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +57 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +88 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +66 -0
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +18 -8
- package/dist/index190.cjs +1 -0
- package/dist/index190.js +594 -0
- package/dist/index191.cjs +9 -0
- package/dist/index191.js +30 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +50 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +65 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +48 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +67 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +151 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +23 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +27 -0
- package/dist/index199.cjs +1 -0
- package/dist/index199.js +53 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +51 -98
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +161 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +16 -0
- package/dist/index202.cjs +1 -0
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +81 -28
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +64 -14
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -22
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1014 -33
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +22 -96
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +108 -25
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +15 -9
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +20 -66
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +81 -11
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +91 -29
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +14 -41
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +93 -12
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +22 -62
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +84 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +85 -33
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +407 -25
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +170 -25
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +28 -154
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +158 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +104 -45
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +337 -140
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +96 -124
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +319 -23
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +205 -81
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +33 -220
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +161 -163
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +20 -125
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -14
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +167 -7
- package/dist/index5.js +26 -14
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +44 -15
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +15 -18
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +5 -5
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -4
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +24 -6
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +66 -4
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +14 -5
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -8
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +50 -67
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +85 -46
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +6 -10
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -199
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +13 -122
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -30
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +3 -20
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +24 -66
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +68 -30
- package/dist/index67.cjs +38 -1
- package/dist/index67.js +3 -11
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +12 -279
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +50 -155
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +29 -85
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +115 -19
- package/dist/index71.cjs +4 -1
- package/dist/index71.js +6 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +12 -12
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +539 -6
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +197 -6
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +120 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +912 -8
- package/dist/index77.cjs +3 -1
- package/dist/index77.js +76 -4
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +120 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +12 -6
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +35 -62
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +14 -8
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +113 -9
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +725 -13
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +346 -9
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +74 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +148 -4
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +31 -42
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -380
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +345 -37
- package/dist/index89.cjs +20 -1
- package/dist/index89.js +40 -18
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +85 -17
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +113 -56
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +272 -51
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +129 -50
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -54
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +28 -55
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +525 -80
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +75 -61
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +67 -583
- package/dist/index98.cjs +1 -9
- package/dist/index98.js +32 -27
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +17 -49
- package/dist/ui/alert-dialog.d.ts +15 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/avatar.d.ts +7 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/breadcrumb.d.ts +12 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/carousel.d.ts +20 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/context-menu.d.ts +26 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/drawer.d.ts +14 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +12 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts +27 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/navigation-menu.d.ts +15 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/pagination.d.ts +14 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/resizable.d.ts +9 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/sheet.d.ts +14 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sidebar.d.ts +70 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +8 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +8 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +10 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/package.json +23 -5
package/dist/index70.js
CHANGED
|
@@ -1,20 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
import { __spreadArray as e } from "./index51.js";
|
|
2
|
+
import { styleSingleton as t } from "./index63.js";
|
|
3
|
+
import "./index64.js";
|
|
4
|
+
import { RemoveScrollBar as n } from "./index66.js";
|
|
5
|
+
import "./index67.js";
|
|
6
|
+
import { nonPassive as r } from "./index68.js";
|
|
7
|
+
import { handleScroll as i, locationCouldBeScrolled as a } from "./index69.js";
|
|
8
|
+
import * as o from "react";
|
|
9
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
10
|
+
var s = function(e) {
|
|
11
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
12
|
+
}, c = function(e) {
|
|
13
|
+
return [e.deltaX, e.deltaY];
|
|
14
|
+
}, l = function(e) {
|
|
15
|
+
return e && "current" in e ? e.current : e;
|
|
16
|
+
}, u = function(e, t) {
|
|
17
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
18
|
+
}, d = function(e) {
|
|
19
|
+
return `
|
|
20
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
21
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
22
|
+
`;
|
|
23
|
+
}, f = 0, p = [];
|
|
24
|
+
function m(m) {
|
|
25
|
+
var g = o.useRef([]), _ = o.useRef([0, 0]), v = o.useRef(), y = o.useState(f++)[0], b = o.useState(t)[0], x = o.useRef(m);
|
|
26
|
+
o.useEffect(function() {
|
|
27
|
+
x.current = m;
|
|
28
|
+
}, [m]), o.useEffect(function() {
|
|
29
|
+
if (m.inert) {
|
|
30
|
+
document.body.classList.add(`block-interactivity-${y}`);
|
|
31
|
+
var t = e([m.lockRef.current], (m.shards || []).map(l), !0).filter(Boolean);
|
|
32
|
+
return t.forEach(function(e) {
|
|
33
|
+
return e.classList.add(`allow-interactivity-${y}`);
|
|
34
|
+
}), function() {
|
|
35
|
+
document.body.classList.remove(`block-interactivity-${y}`), t.forEach(function(e) {
|
|
36
|
+
return e.classList.remove(`allow-interactivity-${y}`);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}, [
|
|
41
|
+
m.inert,
|
|
42
|
+
m.lockRef.current,
|
|
43
|
+
m.shards
|
|
44
|
+
]);
|
|
45
|
+
var S = o.useCallback(function(e, t) {
|
|
46
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !x.current.allowPinchZoom;
|
|
47
|
+
var n = s(e), r = _.current, o = "deltaX" in e ? e.deltaX : r[0] - n[0], c = "deltaY" in e ? e.deltaY : r[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
48
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
49
|
+
var f = window.getSelection(), p = f && f.anchorNode;
|
|
50
|
+
if (p && (p === u || p.contains(u))) return !1;
|
|
51
|
+
var m = a(d, u);
|
|
52
|
+
if (!m) return !0;
|
|
53
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = a(d, u)), !m) return !1;
|
|
54
|
+
if (!v.current && "changedTouches" in e && (o || c) && (v.current = l), !l) return !0;
|
|
55
|
+
var h = v.current || l;
|
|
56
|
+
return i(h, t, e, h === "h" ? o : c, !0);
|
|
57
|
+
}, []), C = o.useCallback(function(e) {
|
|
58
|
+
var t = e;
|
|
59
|
+
if (!(!p.length || p[p.length - 1] !== b)) {
|
|
60
|
+
var n = "deltaY" in t ? c(t) : s(t), r = g.current.filter(function(e) {
|
|
61
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && u(e.delta, n);
|
|
62
|
+
})[0];
|
|
63
|
+
if (r && r.should) {
|
|
64
|
+
t.cancelable && t.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!r) {
|
|
68
|
+
var i = (x.current.shards || []).map(l).filter(Boolean).filter(function(e) {
|
|
69
|
+
return e.contains(t.target);
|
|
70
|
+
});
|
|
71
|
+
(i.length > 0 ? S(t, i[0]) : !x.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, []), w = o.useCallback(function(e, t, n, r) {
|
|
75
|
+
var i = {
|
|
76
|
+
name: e,
|
|
77
|
+
delta: t,
|
|
78
|
+
target: n,
|
|
79
|
+
should: r,
|
|
80
|
+
shadowParent: h(n)
|
|
81
|
+
};
|
|
82
|
+
g.current.push(i), setTimeout(function() {
|
|
83
|
+
g.current = g.current.filter(function(e) {
|
|
84
|
+
return e !== i;
|
|
85
|
+
});
|
|
86
|
+
}, 1);
|
|
87
|
+
}, []), T = o.useCallback(function(e) {
|
|
88
|
+
_.current = s(e), v.current = void 0;
|
|
89
|
+
}, []), E = o.useCallback(function(e) {
|
|
90
|
+
w(e.type, c(e), e.target, S(e, m.lockRef.current));
|
|
91
|
+
}, []), D = o.useCallback(function(e) {
|
|
92
|
+
w(e.type, s(e), e.target, S(e, m.lockRef.current));
|
|
93
|
+
}, []);
|
|
94
|
+
o.useEffect(function() {
|
|
95
|
+
return p.push(b), m.setCallbacks({
|
|
96
|
+
onScrollCapture: E,
|
|
97
|
+
onWheelCapture: E,
|
|
98
|
+
onTouchMoveCapture: D
|
|
99
|
+
}), document.addEventListener("wheel", C, r), document.addEventListener("touchmove", C, r), document.addEventListener("touchstart", T, r), function() {
|
|
100
|
+
p = p.filter(function(e) {
|
|
101
|
+
return e !== b;
|
|
102
|
+
}), document.removeEventListener("wheel", C, r), document.removeEventListener("touchmove", C, r), document.removeEventListener("touchstart", T, r);
|
|
103
|
+
};
|
|
104
|
+
}, []);
|
|
105
|
+
var O = m.removeScrollBar, k = m.inert;
|
|
106
|
+
return o.createElement(o.Fragment, null, k ? o.createElement(b, { styles: d(y) }) : null, O ? o.createElement(n, {
|
|
107
|
+
noRelative: m.noRelative,
|
|
108
|
+
gapMode: m.gapMode
|
|
109
|
+
}) : null);
|
|
110
|
+
}
|
|
111
|
+
function h(e) {
|
|
112
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
113
|
+
return t;
|
|
114
|
+
}
|
|
19
115
|
//#endregion
|
|
20
|
-
export {
|
|
116
|
+
export { m as RemoveScrollSideCar };
|
package/dist/index71.cjs
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index52.cjs"),n=require("./index64.cjs");require("./index65.cjs");const r=require("./index67.cjs");require("./index68.cjs");const i=require("./index69.cjs"),a=require("./index70.cjs");let o=require("react");o=e.__toESM(o);var s=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},c=function(e){return[e.deltaX,e.deltaY]},l=function(e){return e&&`current`in e?e.current:e},u=function(e,t){return e[0]===t[0]&&e[1]===t[1]},d=function(e){return`
|
|
2
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
3
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
4
|
+
`},f=0,p=[];function m(e){var m=o.useRef([]),g=o.useRef([0,0]),_=o.useRef(),v=o.useState(f++)[0],y=o.useState(n.styleSingleton)[0],b=o.useRef(e);o.useEffect(function(){b.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${v}`);var n=t.__spreadArray([e.lockRef.current],(e.shards||[]).map(l),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add(`allow-interactivity-${v}`)}),function(){document.body.classList.remove(`block-interactivity-${v}`),n.forEach(function(e){return e.classList.remove(`allow-interactivity-${v}`)})}}},[e.inert,e.lockRef.current,e.shards]);var x=o.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!b.current.allowPinchZoom;var n=s(e),r=g.current,i=`deltaX`in e?e.deltaX:r[0]-n[0],o=`deltaY`in e?e.deltaY:r[1]-n[1],c,l=e.target,u=Math.abs(i)>Math.abs(o)?`h`:`v`;if(`touches`in e&&u===`h`&&l.type===`range`)return!1;var d=window.getSelection(),f=d&&d.anchorNode;if(f&&(f===l||f.contains(l)))return!1;var p=a.locationCouldBeScrolled(u,l);if(!p)return!0;if(p?c=u:(c=u===`v`?`h`:`v`,p=a.locationCouldBeScrolled(u,l)),!p)return!1;if(!_.current&&`changedTouches`in e&&(i||o)&&(_.current=c),!c)return!0;var m=_.current||c;return a.handleScroll(m,t,e,m===`h`?i:o,!0)},[]),S=o.useCallback(function(e){var t=e;if(!(!p.length||p[p.length-1]!==y)){var n=`deltaY`in t?c(t):s(t),r=m.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&u(e.delta,n)})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var i=(b.current.shards||[]).map(l).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?x(t,i[0]):!b.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),C=o.useCallback(function(e,t,n,r){var i={name:e,delta:t,target:n,should:r,shadowParent:h(n)};m.current.push(i),setTimeout(function(){m.current=m.current.filter(function(e){return e!==i})},1)},[]),w=o.useCallback(function(e){g.current=s(e),_.current=void 0},[]),T=o.useCallback(function(t){C(t.type,c(t),t.target,x(t,e.lockRef.current))},[]),E=o.useCallback(function(t){C(t.type,s(t),t.target,x(t,e.lockRef.current))},[]);o.useEffect(function(){return p.push(y),e.setCallbacks({onScrollCapture:T,onWheelCapture:T,onTouchMoveCapture:E}),document.addEventListener(`wheel`,S,i.nonPassive),document.addEventListener(`touchmove`,S,i.nonPassive),document.addEventListener(`touchstart`,w,i.nonPassive),function(){p=p.filter(function(e){return e!==y}),document.removeEventListener(`wheel`,S,i.nonPassive),document.removeEventListener(`touchmove`,S,i.nonPassive),document.removeEventListener(`touchstart`,w,i.nonPassive)}},[]);var D=e.removeScrollBar,O=e.inert;return o.createElement(o.Fragment,null,O?o.createElement(y,{styles:d(v)}):null,D?o.createElement(r.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function h(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}exports.RemoveScrollSideCar=m;
|
package/dist/index71.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
weekStartsOn: 1
|
|
7
|
-
});
|
|
8
|
-
}
|
|
1
|
+
import { exportSidecar as e } from "./index57.js";
|
|
2
|
+
import { effectCar as t } from "./index58.js";
|
|
3
|
+
import { RemoveScrollSideCar as n } from "./index70.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
5
|
+
var r = e(t, n);
|
|
9
6
|
//#endregion
|
|
10
|
-
export {
|
|
7
|
+
export { r as default };
|
package/dist/index72.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index58.cjs"),t=require("./index59.cjs"),n=require("./index71.cjs");var r=e.exportSidecar(t.effectCar,n.RemoveScrollSideCar);exports.default=r;
|
package/dist/index72.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
1
|
+
import { __assign as e } from "./index51.js";
|
|
2
|
+
import { RemoveScroll as t } from "./index59.js";
|
|
3
3
|
import n from "./index71.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
6
|
+
var i = r.forwardRef(function(i, a) {
|
|
7
|
+
return r.createElement(t, e({}, i, {
|
|
8
|
+
ref: a,
|
|
9
|
+
sideCar: n
|
|
10
|
+
}));
|
|
11
|
+
});
|
|
12
|
+
i.classNames = t.classNames;
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { i as default };
|
package/dist/index73.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index52.cjs"),n=require("./index60.cjs"),r=require("./index72.cjs");let i=require("react");i=e.__toESM(i);var a=i.forwardRef(function(e,a){return i.createElement(n.RemoveScroll,t.__assign({},e,{ref:a,sideCar:r.default}))});a.classNames=n.RemoveScroll.classNames,exports.default=a;
|