@vlrc-fe/components 1.0.6 → 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/Form/FormFileUpload/index.d.ts +1 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -40
- 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/index49.js
CHANGED
|
@@ -1,9 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContextScope as e } from "./index6.js";
|
|
3
|
+
import { useComposedRefs as t } from "./index7.js";
|
|
4
|
+
import { composeEventHandlers as n } from "./index8.js";
|
|
5
|
+
import { Primitive as r } from "./index12.js";
|
|
6
|
+
import { useCallbackRef as i } from "./index15.js";
|
|
7
|
+
import { useLayoutEffect2 as a } from "./index16.js";
|
|
8
|
+
import { useControllableState as o } from "./index29.js";
|
|
9
|
+
import { useId as s } from "./index31.js";
|
|
10
|
+
import { createCollection as c } from "./index36.js";
|
|
11
|
+
import { useIsHydrated2 as l } from "./index48.js";
|
|
12
|
+
import * as u from "react";
|
|
13
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
14
|
+
import { useDirection as f } from "@radix-ui/react-direction";
|
|
15
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.19_@types+react-dom@19.2.3_@types+react@19.2.17__@type_1ba36d19799ef89b87b035255f196a64/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
16
|
+
var p = Object.defineProperty, m = (e, t) => p(e, "name", {
|
|
17
|
+
value: t,
|
|
18
|
+
configurable: !0
|
|
19
|
+
}), h = "rovingFocusGroup.onEntryFocus", g = {
|
|
20
|
+
bubbles: !1,
|
|
21
|
+
cancelable: !0
|
|
22
|
+
}, _ = "RovingFocusGroup", [v, y, b] = c(_), [x, S] = e(_, [b]), [C, w] = x(_), T = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ m(function(e, t) {
|
|
23
|
+
return /* @__PURE__ */ d(v.Provider, {
|
|
24
|
+
scope: e.__scopeRovingFocusGroup,
|
|
25
|
+
children: /* @__PURE__ */ d(v.Slot, {
|
|
26
|
+
scope: e.__scopeRovingFocusGroup,
|
|
27
|
+
children: /* @__PURE__ */ d(E, {
|
|
28
|
+
...e,
|
|
29
|
+
ref: t
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}, "RovingFocusGroup")), E = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ m(function(e, a) {
|
|
34
|
+
let { __scopeRovingFocusGroup: s, orientation: c, loop: l = !1, dir: p, currentTabStopId: m, defaultCurrentTabStopId: v, onCurrentTabStopIdChange: b, onEntryFocus: x, preventScrollOnEntryFocus: S = !1, ...w } = e, T = u.useRef(null), E = t(a, T), D = f(p), [O, k] = o({
|
|
35
|
+
prop: m,
|
|
36
|
+
defaultProp: v ?? null,
|
|
37
|
+
onChange: b,
|
|
38
|
+
caller: _
|
|
39
|
+
}), [A, j] = u.useState(!1), N = i(x), P = y(s), F = u.useRef(!1), [I, L] = u.useState(0);
|
|
40
|
+
return u.useEffect(() => {
|
|
41
|
+
let e = T.current;
|
|
42
|
+
if (e) return e.addEventListener(h, N), () => e.removeEventListener(h, N);
|
|
43
|
+
}, [N]), /* @__PURE__ */ d(C, {
|
|
44
|
+
scope: s,
|
|
45
|
+
orientation: c,
|
|
46
|
+
dir: D,
|
|
47
|
+
loop: l,
|
|
48
|
+
currentTabStopId: O,
|
|
49
|
+
onItemFocus: u.useCallback((e) => k(e), [k]),
|
|
50
|
+
onItemShiftTab: u.useCallback(() => j(!0), []),
|
|
51
|
+
onFocusableItemAdd: u.useCallback(() => L((e) => e + 1), []),
|
|
52
|
+
onFocusableItemRemove: u.useCallback(() => L((e) => e - 1), []),
|
|
53
|
+
children: /* @__PURE__ */ d(r.div, {
|
|
54
|
+
tabIndex: A || I === 0 ? -1 : 0,
|
|
55
|
+
"data-orientation": c,
|
|
56
|
+
...w,
|
|
57
|
+
ref: E,
|
|
58
|
+
style: {
|
|
59
|
+
outline: "none",
|
|
60
|
+
...e.style
|
|
61
|
+
},
|
|
62
|
+
onMouseDown: n(e.onMouseDown, () => {
|
|
63
|
+
F.current = !0;
|
|
64
|
+
}),
|
|
65
|
+
onFocus: n(e.onFocus, (e) => {
|
|
66
|
+
let t = !F.current;
|
|
67
|
+
if (e.target === e.currentTarget && t && !A) {
|
|
68
|
+
let t = new CustomEvent(h, g);
|
|
69
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
70
|
+
let e = P().filter((e) => e.focusable);
|
|
71
|
+
M([
|
|
72
|
+
e.find((e) => e.active),
|
|
73
|
+
e.find((e) => e.id === O),
|
|
74
|
+
...e
|
|
75
|
+
].filter(Boolean).map((e) => e.ref.current), S);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
F.current = !1;
|
|
79
|
+
}),
|
|
80
|
+
onBlur: n(e.onBlur, () => j(!1))
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
}, "RovingFocusGroupImpl")), D = "RovingFocusGroupItem", O = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ m(function(e, t) {
|
|
84
|
+
let { __scopeRovingFocusGroup: i, focusable: o = !0, active: c = !1, tabStopId: f, children: p, ...m } = e, h = s(), g = f || h, _ = w(D, i), b = _.currentTabStopId === g, x = y(i), { onFocusableItemAdd: S, onFocusableItemRemove: C, currentTabStopId: T } = _, E = l();
|
|
85
|
+
return a(() => {
|
|
86
|
+
if (!(!E || !o)) return S(), () => C();
|
|
87
|
+
}, [
|
|
88
|
+
E,
|
|
89
|
+
o,
|
|
90
|
+
S,
|
|
91
|
+
C
|
|
92
|
+
]), u.useEffect(() => {
|
|
93
|
+
if (!(E || !o)) return S(), () => C();
|
|
94
|
+
}, [
|
|
95
|
+
E,
|
|
96
|
+
o,
|
|
97
|
+
S,
|
|
98
|
+
C
|
|
99
|
+
]), /* @__PURE__ */ d(v.ItemSlot, {
|
|
100
|
+
scope: i,
|
|
101
|
+
id: g,
|
|
102
|
+
focusable: o,
|
|
103
|
+
active: c,
|
|
104
|
+
children: /* @__PURE__ */ d(r.span, {
|
|
105
|
+
tabIndex: b ? 0 : -1,
|
|
106
|
+
"data-orientation": _.orientation,
|
|
107
|
+
...m,
|
|
108
|
+
ref: t,
|
|
109
|
+
onMouseDown: n(e.onMouseDown, (e) => {
|
|
110
|
+
o ? _.onItemFocus(g) : e.preventDefault();
|
|
111
|
+
}),
|
|
112
|
+
onFocus: n(e.onFocus, () => _.onItemFocus(g)),
|
|
113
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
114
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
115
|
+
_.onItemShiftTab();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (e.target !== e.currentTarget) return;
|
|
119
|
+
let t = j(e, _.orientation, _.dir);
|
|
120
|
+
if (t !== void 0) {
|
|
121
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
let n = x().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
124
|
+
if (t === "last") n.reverse();
|
|
125
|
+
else if (t === "prev" || t === "next") {
|
|
126
|
+
t === "prev" && n.reverse();
|
|
127
|
+
let r = n.indexOf(e.currentTarget);
|
|
128
|
+
n = _.loop ? N(n, r + 1) : n.slice(r + 1);
|
|
129
|
+
}
|
|
130
|
+
setTimeout(() => M(n));
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
children: typeof p == "function" ? p({
|
|
134
|
+
isCurrentTabStop: b,
|
|
135
|
+
hasTabStop: T != null
|
|
136
|
+
}) : p
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
}, "RovingFocusGroupItem")), k = {
|
|
140
|
+
ArrowLeft: "prev",
|
|
141
|
+
ArrowUp: "prev",
|
|
142
|
+
ArrowRight: "next",
|
|
143
|
+
ArrowDown: "next",
|
|
144
|
+
PageUp: "first",
|
|
145
|
+
Home: "first",
|
|
146
|
+
PageDown: "last",
|
|
147
|
+
End: "last"
|
|
148
|
+
};
|
|
149
|
+
function A(e, t) {
|
|
150
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
7
151
|
}
|
|
152
|
+
m(A, "getDirectionAwareKey");
|
|
153
|
+
function j(e, t, n) {
|
|
154
|
+
let r = A(e.key, n);
|
|
155
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return k[r];
|
|
156
|
+
}
|
|
157
|
+
m(j, "getFocusIntent");
|
|
158
|
+
function M(e, t = !1) {
|
|
159
|
+
let n = document.activeElement;
|
|
160
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
161
|
+
}
|
|
162
|
+
m(M, "focusFirst");
|
|
163
|
+
function N(e, t) {
|
|
164
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
165
|
+
}
|
|
166
|
+
m(N, "wrapArray");
|
|
167
|
+
var P = T, F = O;
|
|
8
168
|
//#endregion
|
|
9
|
-
export {
|
|
169
|
+
export { F as Item, P as Root, S as createRovingFocusGroupScope };
|
package/dist/index5.js
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { cn as e } from "./index3.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var i = r("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
//#region src/ui/alert.tsx
|
|
6
|
+
var r = n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
8
7
|
variants: { variant: {
|
|
9
|
-
default: "
|
|
10
|
-
|
|
11
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
12
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
8
|
+
default: "bg-card text-card-foreground",
|
|
9
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
13
10
|
} },
|
|
14
11
|
defaultVariants: { variant: "default" }
|
|
15
12
|
});
|
|
16
|
-
function
|
|
17
|
-
return /* @__PURE__ */ t(
|
|
18
|
-
"data-slot": "
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
function i({ className: n, variant: i, ...a }) {
|
|
14
|
+
return /* @__PURE__ */ t("div", {
|
|
15
|
+
"data-slot": "alert",
|
|
16
|
+
role: "alert",
|
|
17
|
+
className: e(r({ variant: i }), n),
|
|
18
|
+
...a
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function a({ className: n, ...r }) {
|
|
22
|
+
return /* @__PURE__ */ t("div", {
|
|
23
|
+
"data-slot": "alert-title",
|
|
24
|
+
className: e("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", n),
|
|
25
|
+
...r
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function o({ className: n, ...r }) {
|
|
29
|
+
return /* @__PURE__ */ t("div", {
|
|
30
|
+
"data-slot": "alert-description",
|
|
31
|
+
className: e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", n),
|
|
32
|
+
...r
|
|
21
33
|
});
|
|
22
34
|
}
|
|
23
35
|
//#endregion
|
|
24
|
-
export {
|
|
36
|
+
export { i as Alert, o as AlertDescription, a as AlertTitle };
|
package/dist/index50.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index8.cjs"),r=require("./index9.cjs"),i=require("./index13.cjs"),a=require("./index16.cjs"),o=require("./index17.cjs"),s=require("./index30.cjs"),c=require("./index32.cjs"),l=require("./index37.cjs"),u=require("./index49.cjs");let d=require("react");d=e.__toESM(d,1);let f=require("react/jsx-runtime"),p=require("@radix-ui/react-direction");var m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0}),g=`rovingFocusGroup.onEntryFocus`,_={bubbles:!1,cancelable:!0},v=`RovingFocusGroup`,[y,b,x]=l.createCollection(v),[S,C]=t.createContextScope(v,[x]),[w,T]=S(v),E=d.forwardRef(h(function(e,t){return(0,f.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(D,{...e,ref:t})})})},`RovingFocusGroup`)),D=d.forwardRef(h(function(e,t){let{__scopeRovingFocusGroup:o,orientation:c,loop:l=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:S=!1,...C}=e,T=d.useRef(null),E=n.useComposedRefs(t,T),D=(0,p.useDirection)(u),[O,k]=s.useControllableState({prop:m,defaultProp:h??null,onChange:y,caller:v}),[A,j]=d.useState(!1),M=a.useCallbackRef(x),P=b(o),F=d.useRef(!1),[I,L]=d.useState(0);return d.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(g,M),()=>e.removeEventListener(g,M)},[M]),(0,f.jsx)(w,{scope:o,orientation:c,dir:D,loop:l,currentTabStopId:O,onItemFocus:d.useCallback(e=>k(e),[k]),onItemShiftTab:d.useCallback(()=>j(!0),[]),onFocusableItemAdd:d.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:d.useCallback(()=>L(e=>e-1),[]),children:(0,f.jsx)(i.Primitive.div,{tabIndex:A||I===0?-1:0,"data-orientation":c,...C,ref:E,style:{outline:`none`,...e.style},onMouseDown:r.composeEventHandlers(e.onMouseDown,()=>{F.current=!0}),onFocus:r.composeEventHandlers(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(g,_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),S)}}F.current=!1}),onBlur:r.composeEventHandlers(e.onBlur,()=>j(!1))})})},`RovingFocusGroupImpl`)),O=`RovingFocusGroupItem`,k=d.forwardRef(h(function(e,t){let{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:l,children:p,...m}=e,h=c.useId(),g=l||h,_=T(O,n),v=_.currentTabStopId===g,x=b(n),{onFocusableItemAdd:S,onFocusableItemRemove:C,currentTabStopId:w}=_,E=u.useIsHydrated2();return o.useLayoutEffect2(()=>{if(!(!E||!a))return S(),()=>C()},[E,a,S,C]),d.useEffect(()=>{if(!(E||!a))return S(),()=>C()},[E,a,S,C]),(0,f.jsx)(y.ItemSlot,{scope:n,id:g,focusable:a,active:s,children:(0,f.jsx)(i.Primitive.span,{tabIndex:v?0:-1,"data-orientation":_.orientation,...m,ref:t,onMouseDown:r.composeEventHandlers(e.onMouseDown,e=>{a?_.onItemFocus(g):e.preventDefault()}),onFocus:r.composeEventHandlers(e.onFocus,()=>_.onItemFocus(g)),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){_.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=M(e,_.orientation,_.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=x().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=_.loop?P(n,r+1):n.slice(r+1)}setTimeout(()=>N(n))}}),children:typeof p==`function`?p({isCurrentTabStop:v,hasTabStop:w!=null}):p})})},`RovingFocusGroupItem`)),A={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function j(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}h(j,`getDirectionAwareKey`);function M(e,t,n){let r=j(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return A[r]}h(M,`getFocusIntent`);function N(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}h(N,`focusFirst`);function P(e,t){return e.map((n,r)=>e[(t+r)%e.length])}h(P,`wrapArray`);var F=E,I=k;exports.Item=I,exports.Root=F,exports.createRovingFocusGroupScope=C;
|
package/dist/index50.js
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/
|
|
2
|
-
|
|
3
|
-
return (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
2
|
+
var e = function(e) {
|
|
3
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
4
|
+
}, t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = {}, i = 0, a = function(e) {
|
|
5
|
+
return e && (e.host || a(e.parentNode));
|
|
6
|
+
}, o = function(e, t) {
|
|
7
|
+
return t.map(function(t) {
|
|
8
|
+
if (e.contains(t)) return t;
|
|
9
|
+
var n = a(t);
|
|
10
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
11
|
+
}).filter(function(e) {
|
|
12
|
+
return !!e;
|
|
13
|
+
});
|
|
14
|
+
}, s = function(e, a, s, c) {
|
|
15
|
+
var l = o(a, Array.isArray(e) ? e : [e]);
|
|
16
|
+
r[s] || (r[s] = /* @__PURE__ */ new WeakMap());
|
|
17
|
+
var u = r[s], d = [], f = /* @__PURE__ */ new Set(), p = new Set(l), m = function(e) {
|
|
18
|
+
!e || f.has(e) || (f.add(e), m(e.parentNode));
|
|
14
19
|
};
|
|
15
|
-
|
|
20
|
+
l.forEach(m);
|
|
21
|
+
var h = function(e) {
|
|
22
|
+
!e || p.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
23
|
+
if (f.has(e)) h(e);
|
|
24
|
+
else try {
|
|
25
|
+
var r = e.getAttribute(c), i = r !== null && r !== "false", a = (t.get(e) || 0) + 1, o = (u.get(e) || 0) + 1;
|
|
26
|
+
t.set(e, a), u.set(e, o), d.push(e), a === 1 && i && n.set(e, !0), o === 1 && e.setAttribute(s, "true"), i || e.setAttribute(c, "true");
|
|
27
|
+
} catch (t) {
|
|
28
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
return h(a), f.clear(), i++, function() {
|
|
33
|
+
d.forEach(function(e) {
|
|
34
|
+
var r = t.get(e) - 1, i = u.get(e) - 1;
|
|
35
|
+
t.set(e, r), u.set(e, i), r || (n.has(e) || e.removeAttribute(c), n.delete(e)), i || e.removeAttribute(s);
|
|
36
|
+
}), i--, i || (t = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = {});
|
|
37
|
+
};
|
|
38
|
+
}, c = function(t, n, r) {
|
|
39
|
+
r === void 0 && (r = "data-aria-hidden");
|
|
40
|
+
var i = Array.from(Array.isArray(t) ? t : [t]), a = n || e(t);
|
|
41
|
+
return a ? (i.push.apply(i, Array.from(a.querySelectorAll("[aria-live], script"))), s(i, a, r, "aria-hidden")) : function() {
|
|
42
|
+
return null;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
16
45
|
//#endregion
|
|
17
|
-
export {
|
|
46
|
+
export { c as hideOthers };
|
package/dist/index51.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},t=new WeakMap,n=new WeakMap,r={},i=0,a=function(e){return e&&(e.host||a(e.parentNode))},o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=a(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},s=function(e,a,s,c){var l=o(a,Array.isArray(e)?e:[e]);r[s]||(r[s]=new WeakMap);var u=r[s],d=[],f=new Set,p=new Set(l),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};l.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var r=e.getAttribute(c),i=r!==null&&r!==`false`,a=(t.get(e)||0)+1,o=(u.get(e)||0)+1;t.set(e,a),u.set(e,o),d.push(e),a===1&&i&&n.set(e,!0),o===1&&e.setAttribute(s,`true`),i||e.setAttribute(c,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return h(a),f.clear(),i++,function(){d.forEach(function(e){var r=t.get(e)-1,i=u.get(e)-1;t.set(e,r),u.set(e,i),r||(n.has(e)||e.removeAttribute(c),n.delete(e)),i||e.removeAttribute(s)}),i--,i||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}},c=function(t,n,r){r===void 0&&(r=`data-aria-hidden`);var i=Array.from(Array.isArray(t)?t:[t]),a=n||e(t);return a?(i.push.apply(i,Array.from(a.querySelectorAll(`[aria-live], script`))),s(i,a,r,`aria-hidden`)):function(){return null}};exports.hideOthers=c;
|
package/dist/index51.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/
|
|
2
|
-
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let f = r.slice(c.length);
|
|
9
|
-
return {
|
|
10
|
-
value: d,
|
|
11
|
-
rest: f
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
1
|
+
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
2
|
+
var e = function() {
|
|
3
|
+
return e = Object.assign || function(e) {
|
|
4
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
5
|
+
return e;
|
|
6
|
+
}, e.apply(this, arguments);
|
|
7
|
+
};
|
|
15
8
|
function t(e, t) {
|
|
16
|
-
|
|
9
|
+
var n = {};
|
|
10
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
11
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
12
|
+
return n;
|
|
17
13
|
}
|
|
18
|
-
function n(e, t) {
|
|
19
|
-
for (
|
|
14
|
+
function n(e, t, n) {
|
|
15
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
16
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
20
17
|
}
|
|
21
18
|
//#endregion
|
|
22
|
-
export { e as
|
|
19
|
+
export { e as __assign, t as __rest, n as __spreadArray };
|
package/dist/index52.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.apply(this,arguments)};function t(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function n(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}Object.defineProperty(exports,"__assign",{enumerable:!0,get:function(){return e}}),exports.__rest=t,exports.__spreadArray=n;
|
package/dist/index52.js
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/
|
|
2
|
-
|
|
3
|
-
return (t, n = {}) => {
|
|
4
|
-
let r = t.match(e.matchPattern);
|
|
5
|
-
if (!r) return null;
|
|
6
|
-
let i = r[0], a = t.match(e.parsePattern);
|
|
7
|
-
if (!a) return null;
|
|
8
|
-
let o = e.valueCallback ? e.valueCallback(a[0]) : a[0];
|
|
9
|
-
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
10
|
-
let s = t.slice(i.length);
|
|
11
|
-
return {
|
|
12
|
-
value: o,
|
|
13
|
-
rest: s
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2
|
+
var e = "right-scroll-bar-position", t = "width-before-scroll-bar", n = "with-scroll-bars-hidden", r = "--removed-body-scroll-bar-size";
|
|
17
3
|
//#endregion
|
|
18
|
-
export { e as
|
|
4
|
+
export { t as fullWidthClassName, n as noScrollbarsClassName, r as removedBarSizeVariable, e as zeroRightClassName };
|
package/dist/index53.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=`right-scroll-bar-position`,t=`width-before-scroll-bar`,n=`with-scroll-bars-hidden`,r=`--removed-body-scroll-bar-size`;exports.fullWidthClassName=t,exports.noScrollbarsClassName=n,exports.removedBarSizeVariable=r,exports.zeroRightClassName=e;
|
package/dist/index53.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4
|
+
}
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { e as assignRef };
|
package/dist/index54.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}exports.assignRef=e;
|
package/dist/index54.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
3
3
|
function t(t, n) {
|
|
4
|
-
|
|
4
|
+
var r = e(function() {
|
|
5
|
+
return {
|
|
6
|
+
value: t,
|
|
7
|
+
callback: n,
|
|
8
|
+
facade: {
|
|
9
|
+
get current() {
|
|
10
|
+
return r.value;
|
|
11
|
+
},
|
|
12
|
+
set current(e) {
|
|
13
|
+
var t = r.value;
|
|
14
|
+
t !== e && (r.value = e, r.callback(e, t));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
})[0];
|
|
19
|
+
return r.callback = n, r.facade;
|
|
5
20
|
}
|
|
6
21
|
//#endregion
|
|
7
|
-
export { t as
|
|
22
|
+
export { t as useCallbackRef };
|
package/dist/index55.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("react");function t(t,n){var r=(0,e.useState)(function(){return{value:t,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}exports.useCallbackRef=t;
|
package/dist/index55.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { assignRef as e } from "./index53.js";
|
|
2
|
+
import { useCallbackRef as t } from "./index54.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
5
|
+
var r = typeof window < "u" ? n.useLayoutEffect : n.useEffect, i = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function a(n, a) {
|
|
7
|
+
var o = t(a || null, function(t) {
|
|
8
|
+
return n.forEach(function(n) {
|
|
9
|
+
return e(n, t);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
return r(function() {
|
|
13
|
+
var t = i.get(o);
|
|
14
|
+
if (t) {
|
|
15
|
+
var r = new Set(t), a = new Set(n), s = o.current;
|
|
16
|
+
r.forEach(function(t) {
|
|
17
|
+
a.has(t) || e(t, null);
|
|
18
|
+
}), a.forEach(function(t) {
|
|
19
|
+
r.has(t) || e(t, s);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
i.set(o, n);
|
|
23
|
+
}, [n]), o;
|
|
6
24
|
}
|
|
7
25
|
//#endregion
|
|
8
|
-
export {
|
|
26
|
+
export { a as useMergeRefs };
|
package/dist/index56.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index54.cjs"),n=require("./index55.cjs");let r=require("react");r=e.__toESM(r);var i=typeof window<`u`?r.useLayoutEffect:r.useEffect,a=new WeakMap;function o(e,r){var o=n.useCallbackRef(r||null,function(n){return e.forEach(function(e){return t.assignRef(e,n)})});return i(function(){var n=a.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(e){i.has(e)||t.assignRef(e,null)}),i.forEach(function(e){r.has(e)||t.assignRef(e,s)})}a.set(o,e)},[e]),o}exports.useMergeRefs=o;
|
package/dist/index56.js
CHANGED
|
@@ -1,7 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function t() {
|
|
1
|
+
import { __assign as e } from "./index51.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.8/node_modules/use-sidecar/dist/es2015/medium.js
|
|
3
|
+
function t(e) {
|
|
4
4
|
return e;
|
|
5
5
|
}
|
|
6
|
+
function n(e, n) {
|
|
7
|
+
n === void 0 && (n = t);
|
|
8
|
+
var r = [], i = !1;
|
|
9
|
+
return {
|
|
10
|
+
read: function() {
|
|
11
|
+
if (i) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
12
|
+
return r.length ? r[r.length - 1] : e;
|
|
13
|
+
},
|
|
14
|
+
useMedium: function(e) {
|
|
15
|
+
var t = n(e, i);
|
|
16
|
+
return r.push(t), function() {
|
|
17
|
+
r = r.filter(function(e) {
|
|
18
|
+
return e !== t;
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
assignSyncMedium: function(e) {
|
|
23
|
+
for (i = !0; r.length;) {
|
|
24
|
+
var t = r;
|
|
25
|
+
r = [], t.forEach(e);
|
|
26
|
+
}
|
|
27
|
+
r = {
|
|
28
|
+
push: function(t) {
|
|
29
|
+
return e(t);
|
|
30
|
+
},
|
|
31
|
+
filter: function() {
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
assignMedium: function(e) {
|
|
37
|
+
i = !0;
|
|
38
|
+
var t = [];
|
|
39
|
+
if (r.length) {
|
|
40
|
+
var n = r;
|
|
41
|
+
r = [], n.forEach(e), t = r;
|
|
42
|
+
}
|
|
43
|
+
var a = function() {
|
|
44
|
+
var n = t;
|
|
45
|
+
t = [], n.forEach(e);
|
|
46
|
+
}, o = function() {
|
|
47
|
+
return Promise.resolve().then(a);
|
|
48
|
+
};
|
|
49
|
+
o(), r = {
|
|
50
|
+
push: function(e) {
|
|
51
|
+
t.push(e), o();
|
|
52
|
+
},
|
|
53
|
+
filter: function(e) {
|
|
54
|
+
return t = t.filter(e), r;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function r(t) {
|
|
61
|
+
t === void 0 && (t = {});
|
|
62
|
+
var r = n(null);
|
|
63
|
+
return r.options = e({
|
|
64
|
+
async: !0,
|
|
65
|
+
ssr: !1
|
|
66
|
+
}, t), r;
|
|
67
|
+
}
|
|
6
68
|
//#endregion
|
|
7
|
-
export {
|
|
69
|
+
export { r as createSidecarMedium };
|
package/dist/index57.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={};function t(){return e}
|
|
1
|
+
const e=require("./index52.cjs");function t(e){return e}function n(e,n){n===void 0&&(n=t);var r=[],i=!1;return{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var t=n(e,i);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){i=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}}}function r(t){t===void 0&&(t={});var r=n(null);return r.options=e.__assign({async:!0,ssr:!1},t),r}exports.createSidecarMedium=r;
|
package/dist/index57.js
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __assign as e, __rest as t } from "./index51.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.8/node_modules/use-sidecar/dist/es2015/exports.js
|
|
4
|
+
var r = function(r) {
|
|
5
|
+
var i = r.sideCar, a = t(r, ["sideCar"]);
|
|
6
|
+
if (!i) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
+
var o = i.read();
|
|
8
|
+
if (!o) throw Error("Sidecar medium not found");
|
|
9
|
+
return n.createElement(o, e({}, a));
|
|
10
|
+
};
|
|
11
|
+
r.isSideCarExport = !0;
|
|
12
|
+
function i(e, t) {
|
|
13
|
+
return e.useMedium(t), r;
|
|
5
14
|
}
|
|
6
15
|
//#endregion
|
|
7
|
-
export {
|
|
16
|
+
export { i as exportSidecar };
|
package/dist/index58.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index52.cjs");let n=require("react");n=e.__toESM(n);var r=function(e){var r=e.sideCar,i=t.__rest(e,[`sideCar`]);if(!r)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw Error(`Sidecar medium not found`);return n.createElement(a,t.__assign({},i))};r.isSideCarExport=!0;function i(e,t){return e.useMedium(t),r}exports.exportSidecar=i;
|
package/dist/index58.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function n(n, r) {
|
|
5
|
-
let i = e(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = t(n, r?.in), s = o.getDay(), c = (s < a ? 7 : 0) + s - a;
|
|
6
|
-
return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
|
|
7
|
-
}
|
|
1
|
+
import { createSidecarMedium as e } from "./index56.js";
|
|
2
|
+
//#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/medium.js
|
|
3
|
+
var t = e();
|
|
8
4
|
//#endregion
|
|
9
|
-
export {
|
|
5
|
+
export { t as effectCar };
|
package/dist/index59.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=require("./index57.cjs").createSidecarMedium();exports.effectCar=e;
|