@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/index90.js
CHANGED
|
@@ -1,59 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "./
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { cn as e } from "./index3.js";
|
|
2
|
+
import { Separator as t } from "./index80.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { cva as r } from "class-variance-authority";
|
|
6
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
7
|
+
//#region src/ui/item.tsx
|
|
8
|
+
function a({ className: t, ...r }) {
|
|
9
|
+
return /* @__PURE__ */ n("div", {
|
|
10
|
+
role: "list",
|
|
11
|
+
"data-slot": "item-group",
|
|
12
|
+
className: e("group/item-group flex flex-col", t),
|
|
13
|
+
...r
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function o({ className: r, ...i }) {
|
|
17
|
+
return /* @__PURE__ */ n(t, {
|
|
18
|
+
"data-slot": "item-separator",
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
className: e("my-0", r),
|
|
21
|
+
...i
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var s = r("group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "bg-transparent",
|
|
28
|
+
outline: "border-border",
|
|
29
|
+
muted: "bg-muted/50"
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
default: "p-4 gap-4 ",
|
|
33
|
+
sm: "py-3 px-4 gap-2.5"
|
|
18
34
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "default",
|
|
38
|
+
size: "default"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
function c({ className: t, variant: r = "default", size: a = "default", asChild: o = !1, ...c }) {
|
|
42
|
+
return /* @__PURE__ */ n(o ? i : "div", {
|
|
43
|
+
"data-slot": "item",
|
|
44
|
+
"data-variant": r,
|
|
45
|
+
"data-size": a,
|
|
46
|
+
className: e(s({
|
|
47
|
+
variant: r,
|
|
48
|
+
size: a,
|
|
49
|
+
className: t
|
|
50
|
+
})),
|
|
51
|
+
...c
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
var l = r("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5", {
|
|
55
|
+
variants: { variant: {
|
|
56
|
+
default: "bg-transparent",
|
|
57
|
+
icon: "size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
58
|
+
image: "size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover"
|
|
59
|
+
} },
|
|
60
|
+
defaultVariants: { variant: "default" }
|
|
61
|
+
});
|
|
62
|
+
function u({ className: t, variant: r = "default", ...i }) {
|
|
63
|
+
return /* @__PURE__ */ n("div", {
|
|
64
|
+
"data-slot": "item-media",
|
|
65
|
+
"data-variant": r,
|
|
66
|
+
className: e(l({
|
|
67
|
+
variant: r,
|
|
68
|
+
className: t
|
|
69
|
+
})),
|
|
70
|
+
...i
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function d({ className: t, ...r }) {
|
|
74
|
+
return /* @__PURE__ */ n("div", {
|
|
75
|
+
"data-slot": "item-content",
|
|
76
|
+
className: e("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", t),
|
|
77
|
+
...r
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function f({ className: t, ...r }) {
|
|
81
|
+
return /* @__PURE__ */ n("div", {
|
|
82
|
+
"data-slot": "item-title",
|
|
83
|
+
className: e("flex w-fit items-center gap-2 text-sm leading-snug font-medium", t),
|
|
84
|
+
...r
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function p({ className: t, ...r }) {
|
|
88
|
+
return /* @__PURE__ */ n("p", {
|
|
89
|
+
"data-slot": "item-description",
|
|
90
|
+
className: e("text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t),
|
|
91
|
+
...r
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function m({ className: t, ...r }) {
|
|
95
|
+
return /* @__PURE__ */ n("div", {
|
|
96
|
+
"data-slot": "item-actions",
|
|
97
|
+
className: e("flex items-center gap-2", t),
|
|
98
|
+
...r
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function h({ className: t, ...r }) {
|
|
102
|
+
return /* @__PURE__ */ n("div", {
|
|
103
|
+
"data-slot": "item-header",
|
|
104
|
+
className: e("flex basis-full items-center justify-between gap-2", t),
|
|
105
|
+
...r
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function g({ className: t, ...r }) {
|
|
109
|
+
return /* @__PURE__ */ n("div", {
|
|
110
|
+
"data-slot": "item-footer",
|
|
111
|
+
className: e("flex basis-full items-center justify-between gap-2", t),
|
|
112
|
+
...r
|
|
113
|
+
});
|
|
57
114
|
}
|
|
58
115
|
//#endregion
|
|
59
|
-
export { m as
|
|
116
|
+
export { c as Item, m as ItemActions, d as ItemContent, p as ItemDescription, g as ItemFooter, a as ItemGroup, h as ItemHeader, u as ItemMedia, o as ItemSeparator, f as ItemTitle };
|
package/dist/index91.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index81.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("class-variance-authority"),o=require("@radix-ui/react-slot");function s({className:e,...n}){return(0,i.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:t.cn(`group/item-group flex flex-col`,e),...n})}function c({className:e,...r}){return(0,i.jsx)(n.Separator,{"data-slot":`item-separator`,orientation:`horizontal`,className:t.cn(`my-0`,e),...r})}var l=(0,a.cva)(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted/50`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function u({className:e,variant:n=`default`,size:r=`default`,asChild:a=!1,...s}){return(0,i.jsx)(a?o.Slot:`div`,{"data-slot":`item`,"data-variant":n,"data-size":r,className:t.cn(l({variant:n,size:r,className:e})),...s})}var d=(0,a.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function f({className:e,variant:n=`default`,...r}){return(0,i.jsx)(`div`,{"data-slot":`item-media`,"data-variant":n,className:t.cn(d({variant:n,className:e})),...r})}function p({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-content`,className:t.cn(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...n})}function m({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-title`,className:t.cn(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...n})}function h({className:e,...n}){return(0,i.jsx)(`p`,{"data-slot":`item-description`,className:t.cn(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function g({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-actions`,className:t.cn(`flex items-center gap-2`,e),...n})}function _({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-header`,className:t.cn(`flex basis-full items-center justify-between gap-2`,e),...n})}function v({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-footer`,className:t.cn(`flex basis-full items-center justify-between gap-2`,e),...n})}exports.Item=u,exports.ItemActions=g,exports.ItemContent=p,exports.ItemDescription=h,exports.ItemFooter=v,exports.ItemGroup=s,exports.ItemHeader=_,exports.ItemMedia=f,exports.ItemSeparator=c,exports.ItemTitle=m;
|
package/dist/index91.js
CHANGED
|
@@ -1,55 +1,276 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 { useControllableState as i } from "./index29.js";
|
|
7
|
+
import { useId as a } from "./index31.js";
|
|
8
|
+
import { createCollection as o } from "./index36.js";
|
|
9
|
+
import { Item as s, Root as c, createRovingFocusGroupScope as l } from "./index49.js";
|
|
10
|
+
import { Anchor2 as u, CheckboxItem as d, Content2 as f, Group as p, Item2 as m, ItemIndicator as h, Label as g, Portal as _, RadioGroup as v, RadioItem as y, Root3 as b, Separator as x, Sub as S, SubContent as C, SubTrigger as w, createMenuScope as T } from "./index73.js";
|
|
11
|
+
import * as E from "react";
|
|
12
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
13
|
+
import { useDirection as O } from "@radix-ui/react-direction";
|
|
14
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-menubar@1.1.24_@types+react-dom@19.2.3_@types+react@19.2.17__@types+rea_db9202c20d138f0ad6d75a42c821293e/node_modules/@radix-ui/react-menubar/dist/index.mjs
|
|
15
|
+
var k = Object.defineProperty, A = (e, t) => k(e, "name", {
|
|
16
|
+
value: t,
|
|
17
|
+
configurable: !0
|
|
18
|
+
}), j = "Menubar", [M, N, ee] = o(j), [P, te] = e(j, [ee, l]), F = T(), I = l(), [L, R] = P(j), z = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
19
|
+
let { __scopeMenubar: n, value: a, onValueChange: o, defaultValue: s, loop: l = !0, dir: u, ...d } = e, f = O(u), p = I(n), [m, h] = i({
|
|
20
|
+
prop: a,
|
|
21
|
+
onChange: o,
|
|
22
|
+
defaultProp: s ?? "",
|
|
23
|
+
caller: j
|
|
24
|
+
}), [g, _] = E.useState(null);
|
|
25
|
+
return /* @__PURE__ */ D(L, {
|
|
26
|
+
scope: n,
|
|
27
|
+
value: m,
|
|
28
|
+
onMenuOpen: E.useCallback((e) => {
|
|
29
|
+
h(e), _(e);
|
|
30
|
+
}, [h]),
|
|
31
|
+
onMenuClose: E.useCallback(() => h(""), [h]),
|
|
32
|
+
onMenuToggle: E.useCallback((e) => {
|
|
33
|
+
h((t) => t ? "" : e), _(e);
|
|
34
|
+
}, [h]),
|
|
35
|
+
dir: f,
|
|
36
|
+
loop: l,
|
|
37
|
+
children: /* @__PURE__ */ D(M.Provider, {
|
|
38
|
+
scope: n,
|
|
39
|
+
children: /* @__PURE__ */ D(M.Slot, {
|
|
40
|
+
scope: n,
|
|
41
|
+
children: /* @__PURE__ */ D(c, {
|
|
42
|
+
asChild: !0,
|
|
43
|
+
...p,
|
|
44
|
+
orientation: "horizontal",
|
|
45
|
+
loop: l,
|
|
46
|
+
dir: f,
|
|
47
|
+
currentTabStopId: g,
|
|
48
|
+
onCurrentTabStopIdChange: _,
|
|
49
|
+
children: /* @__PURE__ */ D(r.div, {
|
|
50
|
+
role: "menubar",
|
|
51
|
+
...d,
|
|
52
|
+
ref: t
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}, "Menubar")), B = "MenubarMenu", [V, H] = P(B), U = /* @__PURE__ */ A((e) => {
|
|
59
|
+
let { __scopeMenubar: t, value: n, ...r } = e, i = a(), o = n || i || "LEGACY_REACT_AUTO_VALUE", s = R(B, t), c = F(t), l = E.useRef(null), u = E.useRef(!1), d = s.value === o;
|
|
60
|
+
return E.useEffect(() => {
|
|
61
|
+
d || (u.current = !1);
|
|
62
|
+
}, [d]), /* @__PURE__ */ D(V, {
|
|
63
|
+
scope: t,
|
|
64
|
+
value: o,
|
|
65
|
+
triggerId: a(),
|
|
66
|
+
triggerRef: l,
|
|
67
|
+
contentId: a(),
|
|
68
|
+
wasKeyboardTriggerOpenRef: u,
|
|
69
|
+
children: /* @__PURE__ */ D(b, {
|
|
70
|
+
...c,
|
|
71
|
+
open: d,
|
|
72
|
+
onOpenChange: (e) => {
|
|
73
|
+
e || s.onMenuClose();
|
|
74
|
+
},
|
|
75
|
+
modal: !1,
|
|
76
|
+
dir: s.dir,
|
|
77
|
+
...r
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
}, "MenubarMenu"), W = "MenubarTrigger", G = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, i) {
|
|
81
|
+
let { __scopeMenubar: a, disabled: o = !1, ...c } = e, l = I(a), d = F(a), f = R(W, a), p = H(W, a), m = E.useRef(null), h = t(i, m, p.triggerRef), [g, _] = E.useState(!1), v = f.value === p.value;
|
|
82
|
+
return /* @__PURE__ */ D(M.ItemSlot, {
|
|
83
|
+
scope: a,
|
|
84
|
+
value: p.value,
|
|
85
|
+
disabled: o,
|
|
86
|
+
children: /* @__PURE__ */ D(s, {
|
|
87
|
+
asChild: !0,
|
|
88
|
+
...l,
|
|
89
|
+
focusable: !o,
|
|
90
|
+
tabStopId: p.value,
|
|
91
|
+
children: /* @__PURE__ */ D(u, {
|
|
92
|
+
asChild: !0,
|
|
93
|
+
...d,
|
|
94
|
+
children: /* @__PURE__ */ D(r.button, {
|
|
95
|
+
type: "button",
|
|
96
|
+
role: "menuitem",
|
|
97
|
+
id: p.triggerId,
|
|
98
|
+
"aria-haspopup": "menu",
|
|
99
|
+
"aria-expanded": v,
|
|
100
|
+
"aria-controls": v ? p.contentId : void 0,
|
|
101
|
+
"data-highlighted": g ? "" : void 0,
|
|
102
|
+
"data-state": v ? "open" : "closed",
|
|
103
|
+
"data-disabled": o ? "" : void 0,
|
|
104
|
+
disabled: o,
|
|
105
|
+
...c,
|
|
106
|
+
ref: h,
|
|
107
|
+
onPointerDown: n(e.onPointerDown, (e) => {
|
|
108
|
+
!o && e.button === 0 && e.ctrlKey === !1 && (f.onMenuOpen(p.value), v || e.preventDefault());
|
|
109
|
+
}),
|
|
110
|
+
onPointerEnter: n(e.onPointerEnter, () => {
|
|
111
|
+
f.value && !v && (f.onMenuOpen(p.value), m.current?.focus());
|
|
112
|
+
}),
|
|
113
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
114
|
+
o || (["Enter", " "].includes(e.key) && f.onMenuToggle(p.value), e.key === "ArrowDown" && f.onMenuOpen(p.value), [
|
|
115
|
+
"Enter",
|
|
116
|
+
" ",
|
|
117
|
+
"ArrowDown"
|
|
118
|
+
].includes(e.key) && (p.wasKeyboardTriggerOpenRef.current = !0, e.preventDefault()));
|
|
119
|
+
}),
|
|
120
|
+
onFocus: n(e.onFocus, () => _(!0)),
|
|
121
|
+
onBlur: n(e.onBlur, () => _(!1))
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
}, "MenubarTrigger")), K = /* @__PURE__ */ A((e) => {
|
|
127
|
+
let { __scopeMenubar: t, ...n } = e;
|
|
128
|
+
return /* @__PURE__ */ D(_, {
|
|
129
|
+
...F(t),
|
|
130
|
+
...n
|
|
131
|
+
});
|
|
132
|
+
}, "MenubarPortal"), q = "MenubarContent", J = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
133
|
+
let { __scopeMenubar: r, align: i = "start", ...a } = e, o = F(r), s = R(q, r), c = H(q, r), l = N(r), u = E.useRef(!1);
|
|
134
|
+
return /* @__PURE__ */ D(f, {
|
|
135
|
+
id: c.contentId,
|
|
136
|
+
"aria-labelledby": c.triggerId,
|
|
137
|
+
"data-radix-menubar-content": "",
|
|
138
|
+
...o,
|
|
139
|
+
...a,
|
|
140
|
+
ref: t,
|
|
141
|
+
align: i,
|
|
142
|
+
onCloseAutoFocus: n(e.onCloseAutoFocus, (e) => {
|
|
143
|
+
!s.value && !u.current && c.triggerRef.current?.focus(), u.current = !1, e.preventDefault();
|
|
144
|
+
}),
|
|
145
|
+
onFocusOutside: n(e.onFocusOutside, (e) => {
|
|
146
|
+
let t = e.target;
|
|
147
|
+
l().some((e) => e.ref.current?.contains(t)) && e.preventDefault();
|
|
148
|
+
}),
|
|
149
|
+
onInteractOutside: n(e.onInteractOutside, () => {
|
|
150
|
+
u.current = !0;
|
|
151
|
+
}),
|
|
152
|
+
onEntryFocus: (e) => {
|
|
153
|
+
c.wasKeyboardTriggerOpenRef.current || e.preventDefault();
|
|
12
154
|
},
|
|
13
|
-
|
|
14
|
-
|
|
155
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
156
|
+
if (["ArrowRight", "ArrowLeft"].includes(e.key)) {
|
|
157
|
+
let t = e.target, n = t.hasAttribute("data-radix-menubar-subtrigger"), r = t.closest("[data-radix-menubar-content]") !== e.currentTarget, i = (s.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === e.key;
|
|
158
|
+
if (!i && n || r && i) return;
|
|
159
|
+
let a = l().filter((e) => !e.disabled).map((e) => e.value);
|
|
160
|
+
i && a.reverse();
|
|
161
|
+
let o = a.indexOf(c.value);
|
|
162
|
+
a = s.loop ? $(a, o + 1) : a.slice(o + 1);
|
|
163
|
+
let [u] = a;
|
|
164
|
+
u && s.onMenuOpen(u);
|
|
165
|
+
}
|
|
166
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
167
|
+
style: {
|
|
168
|
+
...e.style,
|
|
169
|
+
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
170
|
+
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
171
|
+
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
172
|
+
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
173
|
+
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
15
174
|
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
175
|
+
});
|
|
176
|
+
}, "MenubarContent")), Y = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
177
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
178
|
+
return /* @__PURE__ */ D(p, {
|
|
179
|
+
...F(n),
|
|
180
|
+
...r,
|
|
181
|
+
ref: t
|
|
182
|
+
});
|
|
183
|
+
}, "MenubarGroup")), X = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
184
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
185
|
+
return /* @__PURE__ */ D(g, {
|
|
186
|
+
...F(n),
|
|
187
|
+
...r,
|
|
188
|
+
ref: t
|
|
189
|
+
});
|
|
190
|
+
}, "MenubarLabel")), Z = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
191
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
192
|
+
return /* @__PURE__ */ D(m, {
|
|
193
|
+
...F(n),
|
|
194
|
+
...r,
|
|
195
|
+
ref: t
|
|
196
|
+
});
|
|
197
|
+
}, "MenubarItem")), ne = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
198
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
199
|
+
return /* @__PURE__ */ D(d, {
|
|
200
|
+
...F(n),
|
|
201
|
+
...r,
|
|
202
|
+
ref: t
|
|
203
|
+
});
|
|
204
|
+
}, "MenubarCheckboxItem")), Q = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
205
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
206
|
+
return /* @__PURE__ */ D(v, {
|
|
207
|
+
...F(n),
|
|
208
|
+
...r,
|
|
209
|
+
ref: t
|
|
210
|
+
});
|
|
211
|
+
}, "MenubarRadioGroup")), re = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
212
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
213
|
+
return /* @__PURE__ */ D(y, {
|
|
214
|
+
...F(n),
|
|
215
|
+
...r,
|
|
216
|
+
ref: t
|
|
217
|
+
});
|
|
218
|
+
}, "MenubarRadioItem")), ie = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
219
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
220
|
+
return /* @__PURE__ */ D(h, {
|
|
221
|
+
...F(n),
|
|
222
|
+
...r,
|
|
223
|
+
ref: t
|
|
224
|
+
});
|
|
225
|
+
}, "MenubarItemIndicator")), ae = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
226
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
227
|
+
return /* @__PURE__ */ D(x, {
|
|
228
|
+
...F(n),
|
|
229
|
+
...r,
|
|
230
|
+
ref: t
|
|
231
|
+
});
|
|
232
|
+
}, "MenubarSeparator")), oe = "MenubarSub", se = /* @__PURE__ */ A((e) => {
|
|
233
|
+
let { __scopeMenubar: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s = F(t), [c, l] = i({
|
|
234
|
+
prop: r,
|
|
235
|
+
defaultProp: o ?? !1,
|
|
236
|
+
onChange: a,
|
|
237
|
+
caller: oe
|
|
238
|
+
});
|
|
239
|
+
return /* @__PURE__ */ D(S, {
|
|
240
|
+
...s,
|
|
241
|
+
open: c,
|
|
242
|
+
onOpenChange: l,
|
|
243
|
+
children: n
|
|
244
|
+
});
|
|
245
|
+
}, "MenubarSub"), ce = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
246
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
247
|
+
return /* @__PURE__ */ D(w, {
|
|
248
|
+
"data-radix-menubar-subtrigger": "",
|
|
249
|
+
...F(n),
|
|
250
|
+
...r,
|
|
251
|
+
ref: t
|
|
252
|
+
});
|
|
253
|
+
}, "MenubarSubTrigger")), le = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ A(function(e, t) {
|
|
254
|
+
let { __scopeMenubar: n, ...r } = e;
|
|
255
|
+
return /* @__PURE__ */ D(C, {
|
|
256
|
+
...F(n),
|
|
257
|
+
"data-radix-menubar-content": "",
|
|
258
|
+
...r,
|
|
259
|
+
ref: t,
|
|
260
|
+
style: {
|
|
261
|
+
...e.style,
|
|
262
|
+
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
263
|
+
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
264
|
+
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
265
|
+
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
266
|
+
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}, "MenubarSubContent"));
|
|
270
|
+
function $(e, t) {
|
|
271
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
53
272
|
}
|
|
273
|
+
A($, "wrapArray");
|
|
274
|
+
var ue = z, de = U, fe = G, pe = K, me = J, he = Y, ge = X, _e = Z, ve = ne, ye = Q, be = re, xe = ie, Se = ae, Ce = se, we = ce, Te = le;
|
|
54
275
|
//#endregion
|
|
55
|
-
export {
|
|
276
|
+
export { ve as CheckboxItem2, me as Content2, he as Group2, _e as Item3, xe as ItemIndicator2, ge as Label2, de as Menu, pe as Portal2, ye as RadioGroup2, be as RadioItem2, ue as Root3, Se as Separator2, Ce as Sub2, Te as SubContent2, we as SubTrigger2, fe as Trigger };
|
package/dist/index92.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
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("./index30.cjs"),o=require("./index32.cjs"),s=require("./index37.cjs"),c=require("./index50.cjs"),l=require("./index74.cjs");let u=require("react");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("@radix-ui/react-direction");var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h=`Menubar`,[g,_,v]=s.createCollection(h),[y,b]=t.createContextScope(h,[v,c.createRovingFocusGroupScope]),x=l.createMenuScope(),S=c.createRovingFocusGroupScope(),[C,w]=y(h),T=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:s,loop:l=!0,dir:p,...m}=e,_=(0,f.useDirection)(p),v=S(n),[y,b]=a.useControllableState({prop:r,onChange:o,defaultProp:s??``,caller:h}),[x,w]=u.useState(null);return(0,d.jsx)(C,{scope:n,value:y,onMenuOpen:u.useCallback(e=>{b(e),w(e)},[b]),onMenuClose:u.useCallback(()=>b(``),[b]),onMenuToggle:u.useCallback(e=>{b(t=>t?``:e),w(e)},[b]),dir:_,loop:l,children:(0,d.jsx)(g.Provider,{scope:n,children:(0,d.jsx)(g.Slot,{scope:n,children:(0,d.jsx)(c.Root,{asChild:!0,...v,orientation:`horizontal`,loop:l,dir:_,currentTabStopId:x,onCurrentTabStopIdChange:w,children:(0,d.jsx)(i.Primitive.div,{role:`menubar`,...m,ref:t})})})})})},`Menubar`)),E=`MenubarMenu`,[ee,D]=y(E),te=m(e=>{let{__scopeMenubar:t,value:n,...r}=e,i=o.useId(),a=n||i||`LEGACY_REACT_AUTO_VALUE`,s=w(E,t),c=x(t),f=u.useRef(null),p=u.useRef(!1),m=s.value===a;return u.useEffect(()=>{m||(p.current=!1)},[m]),(0,d.jsx)(ee,{scope:t,value:a,triggerId:o.useId(),triggerRef:f,contentId:o.useId(),wasKeyboardTriggerOpenRef:p,children:(0,d.jsx)(l.Root3,{...c,open:m,onOpenChange:e=>{e||s.onMenuClose()},modal:!1,dir:s.dir,...r})})},`MenubarMenu`),O=`MenubarTrigger`,k=u.forwardRef(m(function(e,t){let{__scopeMenubar:a,disabled:o=!1,...s}=e,f=S(a),p=x(a),m=w(O,a),h=D(O,a),_=u.useRef(null),v=n.useComposedRefs(t,_,h.triggerRef),[y,b]=u.useState(!1),C=m.value===h.value;return(0,d.jsx)(g.ItemSlot,{scope:a,value:h.value,disabled:o,children:(0,d.jsx)(c.Item,{asChild:!0,...f,focusable:!o,tabStopId:h.value,children:(0,d.jsx)(l.Anchor2,{asChild:!0,...p,children:(0,d.jsx)(i.Primitive.button,{type:`button`,role:`menuitem`,id:h.triggerId,"aria-haspopup":`menu`,"aria-expanded":C,"aria-controls":C?h.contentId:void 0,"data-highlighted":y?``:void 0,"data-state":C?`open`:`closed`,"data-disabled":o?``:void 0,disabled:o,...s,ref:v,onPointerDown:r.composeEventHandlers(e.onPointerDown,e=>{!o&&e.button===0&&e.ctrlKey===!1&&(m.onMenuOpen(h.value),C||e.preventDefault())}),onPointerEnter:r.composeEventHandlers(e.onPointerEnter,()=>{m.value&&!C&&(m.onMenuOpen(h.value),_.current?.focus())}),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{o||([`Enter`,` `].includes(e.key)&&m.onMenuToggle(h.value),e.key===`ArrowDown`&&m.onMenuOpen(h.value),[`Enter`,` `,`ArrowDown`].includes(e.key)&&(h.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:r.composeEventHandlers(e.onFocus,()=>b(!0)),onBlur:r.composeEventHandlers(e.onBlur,()=>b(!1))})})})})},`MenubarTrigger`)),A=m(e=>{let{__scopeMenubar:t,...n}=e,r=x(t);return(0,d.jsx)(l.Portal,{...r,...n})},`MenubarPortal`),j=`MenubarContent`,M=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,align:i=`start`,...a}=e,o=x(n),s=w(j,n),c=D(j,n),f=_(n),p=u.useRef(!1);return(0,d.jsx)(l.Content2,{id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":``,...o,...a,ref:t,align:i,onCloseAutoFocus:r.composeEventHandlers(e.onCloseAutoFocus,e=>{!s.value&&!p.current&&c.triggerRef.current?.focus(),p.current=!1,e.preventDefault()}),onFocusOutside:r.composeEventHandlers(e.onFocusOutside,e=>{let t=e.target;f().some(e=>e.ref.current?.contains(t))&&e.preventDefault()}),onInteractOutside:r.composeEventHandlers(e.onInteractOutside,()=>{p.current=!0}),onEntryFocus:e=>{c.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{if([`ArrowRight`,`ArrowLeft`].includes(e.key)){let t=e.target,n=t.hasAttribute(`data-radix-menubar-subtrigger`),r=t.closest(`[data-radix-menubar-content]`)!==e.currentTarget,i=(s.dir===`rtl`?`ArrowRight`:`ArrowLeft`)===e.key;if(!i&&n||r&&i)return;let a=f().filter(e=>!e.disabled).map(e=>e.value);i&&a.reverse();let o=a.indexOf(c.value);a=s.loop?G(a,o+1):a.slice(o+1);let[l]=a;l&&s.onMenuOpen(l)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})},`MenubarContent`)),N=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.Group,{...i,...r,ref:t})},`MenubarGroup`)),P=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.Label,{...i,...r,ref:t})},`MenubarLabel`)),F=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.Item2,{...i,...r,ref:t})},`MenubarItem`)),I=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.CheckboxItem,{...i,...r,ref:t})},`MenubarCheckboxItem`)),L=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.RadioGroup,{...i,...r,ref:t})},`MenubarRadioGroup`)),R=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.RadioItem,{...i,...r,ref:t})},`MenubarRadioItem`)),z=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.ItemIndicator,{...i,...r,ref:t})},`MenubarItemIndicator`)),B=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.Separator,{...i,...r,ref:t})},`MenubarSeparator`)),V=`MenubarSub`,H=m(e=>{let{__scopeMenubar:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,s=x(t),[c,u]=a.useControllableState({prop:r,defaultProp:o??!1,onChange:i,caller:V});return(0,d.jsx)(l.Sub,{...s,open:c,onOpenChange:u,children:n})},`MenubarSub`),U=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.SubTrigger,{"data-radix-menubar-subtrigger":``,...i,...r,ref:t})},`MenubarSubTrigger`)),W=u.forwardRef(m(function(e,t){let{__scopeMenubar:n,...r}=e,i=x(n);return(0,d.jsx)(l.SubContent,{...i,"data-radix-menubar-content":``,...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})},`MenubarSubContent`));function G(e,t){return e.map((n,r)=>e[(t+r)%e.length])}m(G,`wrapArray`);var K=T,q=te,J=k,Y=A,X=M,Z=N,Q=P,ne=F,re=I,ie=L,ae=R,oe=z,$=B,se=H,ce=U,le=W;exports.CheckboxItem2=re,exports.Content2=X,exports.Group2=Z,exports.Item3=ne,exports.ItemIndicator2=oe,exports.Label2=Q,exports.Menu=q,exports.Portal2=Y,exports.RadioGroup2=ie,exports.RadioItem2=ae,exports.Root3=K,exports.Separator2=$,exports.Sub2=se,exports.SubContent2=le,exports.SubTrigger2=ce,exports.Trigger=J;
|