@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/index108.js
CHANGED
|
@@ -1,16 +1,352 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "./index3.js";
|
|
3
|
+
import { Button as t } from "./index10.js";
|
|
4
|
+
import { Separator as n } from "./index80.js";
|
|
5
|
+
import { Input as r } from "./index87.js";
|
|
6
|
+
import { Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c } from "./index105.js";
|
|
7
|
+
import { Skeleton as l } from "./index106.js";
|
|
8
|
+
import { Tooltip as u, TooltipContent as d, TooltipProvider as f, TooltipTrigger as p } from "./index107.js";
|
|
9
|
+
import { PanelLeftIcon as m } from "lucide-react";
|
|
10
|
+
import * as h from "react";
|
|
11
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
12
|
+
import { cva as v } from "class-variance-authority";
|
|
13
|
+
import { Slot as y } from "@radix-ui/react-slot";
|
|
14
|
+
//#region src/ui/sidebar.tsx
|
|
15
|
+
var b = 768;
|
|
16
|
+
function x() {
|
|
17
|
+
return h.useSyncExternalStore((e) => {
|
|
18
|
+
let t = window.matchMedia(`(max-width: ${b - 1}px)`);
|
|
19
|
+
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
20
|
+
}, () => window.matchMedia(`(max-width: ${b - 1}px)`).matches, () => !1);
|
|
21
|
+
}
|
|
22
|
+
var S = "sidebar_state", C = 3600 * 24 * 7, w = "16rem", T = "18rem", E = "3rem", D = "b", O = h.createContext(null);
|
|
23
|
+
function k() {
|
|
24
|
+
let e = h.useContext(O);
|
|
25
|
+
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
function A({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
|
|
29
|
+
let c = x(), [l, u] = h.useState(!1), [d, p] = h.useState(t), m = n ?? d, _ = h.useCallback((e) => {
|
|
30
|
+
let t = typeof e == "function" ? e(m) : e;
|
|
31
|
+
r ? r(t) : p(t), document.cookie = `${S}=${t}; path=/; max-age=${C}`;
|
|
32
|
+
}, [r, m]), v = h.useCallback(() => c ? u((e) => !e) : _((e) => !e), [
|
|
33
|
+
c,
|
|
34
|
+
_,
|
|
35
|
+
u
|
|
36
|
+
]);
|
|
37
|
+
h.useEffect(() => {
|
|
38
|
+
let e = (e) => {
|
|
39
|
+
e.key === D && (e.metaKey || e.ctrlKey) && (e.preventDefault(), v());
|
|
40
|
+
};
|
|
41
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
42
|
+
}, [v]);
|
|
43
|
+
let y = m ? "expanded" : "collapsed", b = h.useMemo(() => ({
|
|
44
|
+
state: y,
|
|
45
|
+
open: m,
|
|
46
|
+
setOpen: _,
|
|
47
|
+
isMobile: c,
|
|
48
|
+
openMobile: l,
|
|
49
|
+
setOpenMobile: u,
|
|
50
|
+
toggleSidebar: v
|
|
51
|
+
}), [
|
|
52
|
+
y,
|
|
53
|
+
m,
|
|
54
|
+
_,
|
|
55
|
+
c,
|
|
56
|
+
l,
|
|
57
|
+
u,
|
|
58
|
+
v
|
|
59
|
+
]);
|
|
60
|
+
return /* @__PURE__ */ g(O.Provider, {
|
|
61
|
+
value: b,
|
|
62
|
+
children: /* @__PURE__ */ g(f, {
|
|
63
|
+
delayDuration: 0,
|
|
64
|
+
children: /* @__PURE__ */ g("div", {
|
|
65
|
+
"data-slot": "sidebar-wrapper",
|
|
66
|
+
style: {
|
|
67
|
+
"--sidebar-width": w,
|
|
68
|
+
"--sidebar-width-icon": E,
|
|
69
|
+
...a
|
|
70
|
+
},
|
|
71
|
+
className: e("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
|
|
72
|
+
...s,
|
|
73
|
+
children: o
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function j({ side: t = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: l, children: u, ...d }) {
|
|
79
|
+
let { isMobile: f, state: p, openMobile: m, setOpenMobile: h } = k();
|
|
80
|
+
return r === "none" ? /* @__PURE__ */ g("div", {
|
|
81
|
+
"data-slot": "sidebar",
|
|
82
|
+
className: e("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", l),
|
|
83
|
+
...d,
|
|
84
|
+
children: u
|
|
85
|
+
}) : f ? /* @__PURE__ */ g(i, {
|
|
86
|
+
open: m,
|
|
87
|
+
onOpenChange: h,
|
|
88
|
+
...d,
|
|
89
|
+
children: /* @__PURE__ */ _(a, {
|
|
90
|
+
"data-sidebar": "sidebar",
|
|
91
|
+
"data-slot": "sidebar",
|
|
92
|
+
"data-mobile": "true",
|
|
93
|
+
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
94
|
+
style: { "--sidebar-width": T },
|
|
95
|
+
side: t,
|
|
96
|
+
children: [/* @__PURE__ */ _(s, {
|
|
97
|
+
className: "sr-only",
|
|
98
|
+
children: [/* @__PURE__ */ g(c, { children: "Sidebar" }), /* @__PURE__ */ g(o, { children: "Displays the mobile sidebar." })]
|
|
99
|
+
}), /* @__PURE__ */ g("div", {
|
|
100
|
+
className: "flex h-full w-full flex-col",
|
|
101
|
+
children: u
|
|
102
|
+
})]
|
|
103
|
+
})
|
|
104
|
+
}) : /* @__PURE__ */ _("div", {
|
|
105
|
+
className: "group peer text-sidebar-foreground hidden md:block",
|
|
106
|
+
"data-state": p,
|
|
107
|
+
"data-collapsible": p === "collapsed" ? r : "",
|
|
108
|
+
"data-variant": n,
|
|
109
|
+
"data-side": t,
|
|
110
|
+
"data-slot": "sidebar",
|
|
111
|
+
children: [/* @__PURE__ */ g("div", {
|
|
112
|
+
"data-slot": "sidebar-gap",
|
|
113
|
+
className: e("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", n === "floating" || n === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
114
|
+
}), /* @__PURE__ */ g("div", {
|
|
115
|
+
"data-slot": "sidebar-container",
|
|
116
|
+
className: e("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", t === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", l),
|
|
117
|
+
...d,
|
|
118
|
+
children: /* @__PURE__ */ g("div", {
|
|
119
|
+
"data-sidebar": "sidebar",
|
|
120
|
+
"data-slot": "sidebar-inner",
|
|
121
|
+
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
122
|
+
children: u
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function M({ className: n, onClick: r, ...i }) {
|
|
128
|
+
let { toggleSidebar: a } = k();
|
|
129
|
+
return /* @__PURE__ */ _(t, {
|
|
130
|
+
"data-sidebar": "trigger",
|
|
131
|
+
"data-slot": "sidebar-trigger",
|
|
132
|
+
variant: "ghost",
|
|
133
|
+
size: "icon",
|
|
134
|
+
className: e("size-7", n),
|
|
135
|
+
onClick: (e) => {
|
|
136
|
+
r?.(e), a();
|
|
137
|
+
},
|
|
138
|
+
...i,
|
|
139
|
+
children: [/* @__PURE__ */ g(m, {}), /* @__PURE__ */ g("span", {
|
|
140
|
+
className: "sr-only",
|
|
141
|
+
children: "Toggle Sidebar"
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function N({ className: t, ...n }) {
|
|
146
|
+
let { toggleSidebar: r } = k();
|
|
147
|
+
return /* @__PURE__ */ g("button", {
|
|
148
|
+
"data-sidebar": "rail",
|
|
149
|
+
"data-slot": "sidebar-rail",
|
|
150
|
+
"aria-label": "Toggle Sidebar",
|
|
151
|
+
tabIndex: -1,
|
|
152
|
+
onClick: r,
|
|
153
|
+
title: "Toggle Sidebar",
|
|
154
|
+
className: e("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", t),
|
|
155
|
+
...n
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function P({ className: t, ...n }) {
|
|
159
|
+
return /* @__PURE__ */ g("main", {
|
|
160
|
+
"data-slot": "sidebar-inset",
|
|
161
|
+
className: e("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", t),
|
|
162
|
+
...n
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function F({ className: t, ...n }) {
|
|
166
|
+
return /* @__PURE__ */ g(r, {
|
|
167
|
+
"data-slot": "sidebar-input",
|
|
168
|
+
"data-sidebar": "input",
|
|
169
|
+
className: e("bg-background h-8 w-full shadow-none", t),
|
|
170
|
+
...n
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function I({ className: t, ...n }) {
|
|
174
|
+
return /* @__PURE__ */ g("div", {
|
|
175
|
+
"data-slot": "sidebar-header",
|
|
176
|
+
"data-sidebar": "header",
|
|
177
|
+
className: e("flex flex-col gap-2 p-2", t),
|
|
178
|
+
...n
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function L({ className: t, ...n }) {
|
|
182
|
+
return /* @__PURE__ */ g("div", {
|
|
183
|
+
"data-slot": "sidebar-footer",
|
|
184
|
+
"data-sidebar": "footer",
|
|
185
|
+
className: e("flex flex-col gap-2 p-2", t),
|
|
186
|
+
...n
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function R({ className: t, ...r }) {
|
|
190
|
+
return /* @__PURE__ */ g(n, {
|
|
191
|
+
"data-slot": "sidebar-separator",
|
|
192
|
+
"data-sidebar": "separator",
|
|
193
|
+
className: e("bg-sidebar-border mx-2 w-auto", t),
|
|
194
|
+
...r
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function z({ className: t, ...n }) {
|
|
198
|
+
return /* @__PURE__ */ g("div", {
|
|
199
|
+
"data-slot": "sidebar-content",
|
|
200
|
+
"data-sidebar": "content",
|
|
201
|
+
className: e("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", t),
|
|
202
|
+
...n
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function B({ className: t, ...n }) {
|
|
206
|
+
return /* @__PURE__ */ g("div", {
|
|
207
|
+
"data-slot": "sidebar-group",
|
|
208
|
+
"data-sidebar": "group",
|
|
209
|
+
className: e("relative flex w-full min-w-0 flex-col p-2", t),
|
|
210
|
+
...n
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function V({ className: t, asChild: n = !1, ...r }) {
|
|
214
|
+
return /* @__PURE__ */ g(n ? y : "div", {
|
|
215
|
+
"data-slot": "sidebar-group-label",
|
|
216
|
+
"data-sidebar": "group-label",
|
|
217
|
+
className: e("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", t),
|
|
218
|
+
...r
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function H({ className: t, asChild: n = !1, ...r }) {
|
|
222
|
+
return /* @__PURE__ */ g(n ? y : "button", {
|
|
223
|
+
"data-slot": "sidebar-group-action",
|
|
224
|
+
"data-sidebar": "group-action",
|
|
225
|
+
className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", t),
|
|
226
|
+
...r
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
function U({ className: t, ...n }) {
|
|
230
|
+
return /* @__PURE__ */ g("div", {
|
|
231
|
+
"data-slot": "sidebar-group-content",
|
|
232
|
+
"data-sidebar": "group-content",
|
|
233
|
+
className: e("w-full text-sm", t),
|
|
234
|
+
...n
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function W({ className: t, ...n }) {
|
|
238
|
+
return /* @__PURE__ */ g("ul", {
|
|
239
|
+
"data-slot": "sidebar-menu",
|
|
240
|
+
"data-sidebar": "menu",
|
|
241
|
+
className: e("flex w-full min-w-0 flex-col gap-1", t),
|
|
242
|
+
...n
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
function G({ className: t, ...n }) {
|
|
246
|
+
return /* @__PURE__ */ g("li", {
|
|
247
|
+
"data-slot": "sidebar-menu-item",
|
|
248
|
+
"data-sidebar": "menu-item",
|
|
249
|
+
className: e("group/menu-item relative", t),
|
|
250
|
+
...n
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
var K = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
254
|
+
variants: {
|
|
255
|
+
variant: {
|
|
256
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
257
|
+
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
258
|
+
},
|
|
259
|
+
size: {
|
|
260
|
+
default: "h-8 text-sm",
|
|
261
|
+
sm: "h-7 text-xs",
|
|
262
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
defaultVariants: {
|
|
266
|
+
variant: "default",
|
|
267
|
+
size: "default"
|
|
268
|
+
}
|
|
14
269
|
});
|
|
270
|
+
function q({ asChild: t = !1, isActive: n = !1, variant: r = "default", size: i = "default", tooltip: a, className: o, ...s }) {
|
|
271
|
+
let c = t ? y : "button", { isMobile: l, state: f } = k(), m = /* @__PURE__ */ g(c, {
|
|
272
|
+
"data-slot": "sidebar-menu-button",
|
|
273
|
+
"data-sidebar": "menu-button",
|
|
274
|
+
"data-size": i,
|
|
275
|
+
"data-active": n,
|
|
276
|
+
className: e(K({
|
|
277
|
+
variant: r,
|
|
278
|
+
size: i
|
|
279
|
+
}), o),
|
|
280
|
+
...s
|
|
281
|
+
});
|
|
282
|
+
return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(p, {
|
|
283
|
+
asChild: !0,
|
|
284
|
+
children: m
|
|
285
|
+
}), /* @__PURE__ */ g(d, {
|
|
286
|
+
side: "right",
|
|
287
|
+
align: "center",
|
|
288
|
+
hidden: f !== "collapsed" || l,
|
|
289
|
+
...a
|
|
290
|
+
})] })) : m;
|
|
291
|
+
}
|
|
292
|
+
function J({ className: t, asChild: n = !1, showOnHover: r = !1, ...i }) {
|
|
293
|
+
return /* @__PURE__ */ g(n ? y : "button", {
|
|
294
|
+
"data-slot": "sidebar-menu-action",
|
|
295
|
+
"data-sidebar": "menu-action",
|
|
296
|
+
className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", r && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", t),
|
|
297
|
+
...i
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function Y({ className: t, ...n }) {
|
|
301
|
+
return /* @__PURE__ */ g("div", {
|
|
302
|
+
"data-slot": "sidebar-menu-badge",
|
|
303
|
+
"data-sidebar": "menu-badge",
|
|
304
|
+
className: e("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", t),
|
|
305
|
+
...n
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
function X({ className: t, showIcon: n = !1, ...r }) {
|
|
309
|
+
let i = h.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
310
|
+
return /* @__PURE__ */ _("div", {
|
|
311
|
+
"data-slot": "sidebar-menu-skeleton",
|
|
312
|
+
"data-sidebar": "menu-skeleton",
|
|
313
|
+
className: e("flex h-8 items-center gap-2 rounded-md px-2", t),
|
|
314
|
+
...r,
|
|
315
|
+
children: [n && /* @__PURE__ */ g(l, {
|
|
316
|
+
className: "size-4 rounded-md",
|
|
317
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
318
|
+
}), /* @__PURE__ */ g(l, {
|
|
319
|
+
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
320
|
+
"data-sidebar": "menu-skeleton-text",
|
|
321
|
+
style: { "--skeleton-width": i }
|
|
322
|
+
})]
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function Z({ className: t, ...n }) {
|
|
326
|
+
return /* @__PURE__ */ g("ul", {
|
|
327
|
+
"data-slot": "sidebar-menu-sub",
|
|
328
|
+
"data-sidebar": "menu-sub",
|
|
329
|
+
className: e("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", t),
|
|
330
|
+
...n
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function Q({ className: t, ...n }) {
|
|
334
|
+
return /* @__PURE__ */ g("li", {
|
|
335
|
+
"data-slot": "sidebar-menu-sub-item",
|
|
336
|
+
"data-sidebar": "menu-sub-item",
|
|
337
|
+
className: e("group/menu-sub-item relative", t),
|
|
338
|
+
...n
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function $({ asChild: t = !1, size: n = "md", isActive: r = !1, className: i, ...a }) {
|
|
342
|
+
return /* @__PURE__ */ g(t ? y : "a", {
|
|
343
|
+
"data-slot": "sidebar-menu-sub-button",
|
|
344
|
+
"data-sidebar": "menu-sub-button",
|
|
345
|
+
"data-size": n,
|
|
346
|
+
"data-active": r,
|
|
347
|
+
className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", n === "sm" && "text-xs", n === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", i),
|
|
348
|
+
...a
|
|
349
|
+
});
|
|
350
|
+
}
|
|
15
351
|
//#endregion
|
|
16
|
-
export {
|
|
352
|
+
export { j as Sidebar, z as SidebarContent, L as SidebarFooter, B as SidebarGroup, H as SidebarGroupAction, U as SidebarGroupContent, V as SidebarGroupLabel, I as SidebarHeader, F as SidebarInput, P as SidebarInset, W as SidebarMenu, J as SidebarMenuAction, Y as SidebarMenuBadge, q as SidebarMenuButton, G as SidebarMenuItem, X as SidebarMenuSkeleton, Z as SidebarMenuSub, $ as SidebarMenuSubButton, Q as SidebarMenuSubItem, A as SidebarProvider, N as SidebarRail, R as SidebarSeparator, M as SidebarTrigger, k as useSidebar };
|
package/dist/index109.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index43.cjs"),t=require("./index108.cjs");let n=require("react/jsx-runtime");var r=r=>(0,n.jsx)(e.FormBase,{...r,children:({onChange:e,value:i,disabled:a})=>(0,n.jsx)(t.FileUpload,{...r,value:i,onChange:e,disabled:a||r.disabled,className:r.className})});exports.default=r;
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs"),r=require("./index81.cjs"),i=require("./index88.cjs"),a=require("./index106.cjs"),o=require("./index107.cjs"),s=require("./index108.cjs");let c=require("lucide-react"),l=require("react");l=e.__toESM(l,1);let u=require("react/jsx-runtime"),d=require("class-variance-authority"),f=require("@radix-ui/react-slot");var p=768;function m(){return l.useSyncExternalStore(e=>{let t=window.matchMedia(`(max-width: ${p-1}px)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},()=>window.matchMedia(`(max-width: ${p-1}px)`).matches,()=>!1)}var h=`sidebar_state`,g=3600*24*7,_=`16rem`,v=`18rem`,y=`3rem`,b=`b`,x=l.createContext(null);function S(){let e=l.useContext(x);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function C({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:a,children:o,...c}){let d=m(),[f,p]=l.useState(!1),[v,S]=l.useState(e),C=n??v,w=l.useCallback(e=>{let t=typeof e==`function`?e(C):e;r?r(t):S(t),document.cookie=`${h}=${t}; path=/; max-age=${g}`},[r,C]),T=l.useCallback(()=>d?p(e=>!e):w(e=>!e),[d,w,p]);l.useEffect(()=>{let e=e=>{e.key===b&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),T())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[T]);let E=C?`expanded`:`collapsed`,D=l.useMemo(()=>({state:E,open:C,setOpen:w,isMobile:d,openMobile:f,setOpenMobile:p,toggleSidebar:T}),[E,C,w,d,f,p,T]);return(0,u.jsx)(x.Provider,{value:D,children:(0,u.jsx)(s.TooltipProvider,{delayDuration:0,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":_,"--sidebar-width-icon":y,...a},className:t.cn(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,i),...c,children:o})})})}function w({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:o,...s}){let{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=S();return r===`none`?(0,u.jsx)(`div`,{"data-slot":`sidebar`,className:t.cn(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...s,children:o}):c?(0,u.jsx)(a.Sheet,{open:d,onOpenChange:f,...s,children:(0,u.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":v},side:e,children:[(0,u.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,u.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,u.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:o})]})}):(0,u.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":l,"data-collapsible":l===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.cn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,className:t.cn(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...s,children:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:o})})]})}function T({className:e,onClick:r,...i}){let{toggleSidebar:a}=S();return(0,u.jsxs)(n.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:t.cn(`size-7`,e),onClick:e=>{r?.(e),a()},...i,children:[(0,u.jsx)(c.PanelLeftIcon,{}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function E({className:e,...n}){let{toggleSidebar:r}=S();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:t.cn(`hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...n})}function D({className:e,...n}){return(0,u.jsx)(`main`,{"data-slot":`sidebar-inset`,className:t.cn(`bg-background relative flex w-full flex-1 flex-col`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...n})}function O({className:e,...n}){return(0,u.jsx)(i.Input,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:t.cn(`bg-background h-8 w-full shadow-none`,e),...n})}function k({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function A({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function j({className:e,...n}){return(0,u.jsx)(r.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:t.cn(`bg-sidebar-border mx-2 w-auto`,e),...n})}function M({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.cn(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function N({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.cn(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function P({className:e,asChild:n=!1,...r}){return(0,u.jsx)(n?f.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:t.cn(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...r})}function F({className:e,asChild:n=!1,...r}){return(0,u.jsx)(n?f.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...r})}function I({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:t.cn(`w-full text-sm`,e),...n})}function L({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.cn(`flex w-full min-w-0 flex-col gap-1`,e),...n})}function R({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.cn(`group/menu-item relative`,e),...n})}var z=(0,d.cva)(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function B({asChild:e=!1,isActive:n=!1,variant:r=`default`,size:i=`default`,tooltip:a,className:o,...c}){let l=e?f.Slot:`button`,{isMobile:d,state:p}=S(),m=(0,u.jsx)(l,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":n,className:t.cn(z({variant:r,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,u.jsxs)(s.Tooltip,{children:[(0,u.jsx)(s.TooltipTrigger,{asChild:!0,children:m}),(0,u.jsx)(s.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function V({className:e,asChild:n=!1,showOnHover:r=!1,...i}){return(0,u.jsx)(n?f.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,r&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0`,e),...i})}function H({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:t.cn(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function U({className:e,showIcon:n=!1,...r}){let i=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:t.cn(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&(0,u.jsx)(o.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(o.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function W({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:t.cn(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function G({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:t.cn(`group/menu-sub-item relative`,e),...n})}function K({asChild:e=!1,size:n=`md`,isActive:r=!1,className:i,...a}){return(0,u.jsx)(e?f.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":n,"data-active":r,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,n===`sm`&&`text-xs`,n===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,i),...a})}exports.Sidebar=w,exports.SidebarContent=M,exports.SidebarFooter=A,exports.SidebarGroup=N,exports.SidebarGroupAction=F,exports.SidebarGroupContent=I,exports.SidebarGroupLabel=P,exports.SidebarHeader=k,exports.SidebarInput=O,exports.SidebarInset=D,exports.SidebarMenu=L,exports.SidebarMenuAction=V,exports.SidebarMenuBadge=H,exports.SidebarMenuButton=B,exports.SidebarMenuItem=R,exports.SidebarMenuSkeleton=U,exports.SidebarMenuSub=W,exports.SidebarMenuSubButton=K,exports.SidebarMenuSubItem=G,exports.SidebarProvider=C,exports.SidebarRail=E,exports.SidebarSeparator=j,exports.SidebarTrigger=T,exports.useSidebar=S;
|
package/dist/index109.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@radix-ui+number@1.1.3/node_modules/@radix-ui/number/dist/index.mjs
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => e(t, "name", {
|
|
3
|
+
value: n,
|
|
4
|
+
configurable: !0
|
|
5
|
+
});
|
|
6
|
+
function n(e, [t, n]) {
|
|
7
|
+
return Math.min(n, Math.max(t, e));
|
|
8
|
+
}
|
|
9
|
+
t(n, "clamp");
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as clamp };
|
package/dist/index11.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("class-variance-authority"),a=require("@radix-ui/react-slot");var o=(0,i.cva)(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-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`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`,accent:`bg-accent text-accent-foreground hover:bg-accent/90`,"accent-cta":`bg-accent text-accent-foreground hover:bg-accent/90 shadow-lg shadow-accent/25 hover:shadow-xl hover:shadow-accent/30 hover:scale-105`,gradient:`bg-linear-to-r from-primary to-accent text-primary-foreground hover:opacity-95 shadow-lg shadow-primary/25 hover:shadow-xl hover:shadow-primary/30`,"gradient-success":`bg-gradient-to-r from-emerald-500 to-green-600 hover:from-emerald-600 hover:to-green-700 text-white shadow-lg shadow-emerald-500/30 hover:shadow-emerald-500/40`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,xl:`h-11 rounded-xl px-6 has-[>svg]:px-4`,"2xl":`h-14 rounded-xl px-8 text-lg has-[>svg]:px-6`,icon:`size-9`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function s({className:e,variant:n=`default`,size:i=`default`,asChild:s=!1,...c}){return(0,r.jsx)(s?a.Slot:`button`,{"data-slot":`button`,"data-variant":n,"data-size":i,className:t.cn(o({variant:n,size:i,className:e})),...c})}exports.Button=s,exports.buttonVariants=o;
|
package/dist/index11.js
CHANGED
|
@@ -1,86 +1,81 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./index3.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Action as t, Cancel as n, Content2 as r, Description2 as i, Overlay2 as a, Portal2 as o, Root2 as s, Title2 as c, Trigger2 as l } from "./index9.js";
|
|
4
|
+
import { buttonVariants as u } from "./index10.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { jsx as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
className: e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", t),
|
|
13
|
-
...n
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
|
+
//#region src/ui/alert-dialog.tsx
|
|
8
|
+
function p({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ d(s, {
|
|
10
|
+
"data-slot": "alert-dialog",
|
|
11
|
+
...e
|
|
14
12
|
});
|
|
15
13
|
}
|
|
16
|
-
function
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: "sr-only",
|
|
21
|
-
children: [/* @__PURE__ */ s(a, { children: o }), /* @__PURE__ */ s(r, { children: l })]
|
|
22
|
-
}), /* @__PURE__ */ s(n, {
|
|
23
|
-
className: e("overflow-hidden p-0", f),
|
|
24
|
-
showCloseButton: p,
|
|
25
|
-
children: /* @__PURE__ */ s(u, {
|
|
26
|
-
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
27
|
-
children: d
|
|
28
|
-
})
|
|
29
|
-
})]
|
|
14
|
+
function m({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ d(l, {
|
|
16
|
+
"data-slot": "alert-dialog-trigger",
|
|
17
|
+
...e
|
|
30
18
|
});
|
|
31
19
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
"data-slot": "
|
|
35
|
-
|
|
36
|
-
children: [/* @__PURE__ */ s(o, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ s(l.Input, {
|
|
37
|
-
"data-slot": "command-input",
|
|
38
|
-
className: e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
39
|
-
...n
|
|
40
|
-
})]
|
|
20
|
+
function h({ ...e }) {
|
|
21
|
+
return /* @__PURE__ */ d(o, {
|
|
22
|
+
"data-slot": "alert-dialog-portal",
|
|
23
|
+
...e
|
|
41
24
|
});
|
|
42
25
|
}
|
|
43
|
-
function
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
"data-slot": "
|
|
46
|
-
className: e("
|
|
26
|
+
function g({ className: t, ...n }) {
|
|
27
|
+
return /* @__PURE__ */ d(a, {
|
|
28
|
+
"data-slot": "alert-dialog-overlay",
|
|
29
|
+
className: e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", t),
|
|
47
30
|
...n
|
|
48
31
|
});
|
|
49
32
|
}
|
|
50
|
-
function
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
"data-slot": "
|
|
53
|
-
className: "
|
|
54
|
-
...
|
|
55
|
-
});
|
|
33
|
+
function _({ className: t, ...n }) {
|
|
34
|
+
return /* @__PURE__ */ f(h, { children: [/* @__PURE__ */ d(g, {}), /* @__PURE__ */ d(r, {
|
|
35
|
+
"data-slot": "alert-dialog-content",
|
|
36
|
+
className: e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", t),
|
|
37
|
+
...n
|
|
38
|
+
})] });
|
|
56
39
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
-
"data-slot": "
|
|
60
|
-
className: e("
|
|
40
|
+
function v({ className: t, ...n }) {
|
|
41
|
+
return /* @__PURE__ */ d("div", {
|
|
42
|
+
"data-slot": "alert-dialog-header",
|
|
43
|
+
className: e("flex flex-col gap-2 text-center sm:text-left", t),
|
|
61
44
|
...n
|
|
62
45
|
});
|
|
63
46
|
}
|
|
64
|
-
function
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
"data-slot": "
|
|
67
|
-
className: e("
|
|
47
|
+
function y({ className: t, ...n }) {
|
|
48
|
+
return /* @__PURE__ */ d("div", {
|
|
49
|
+
"data-slot": "alert-dialog-footer",
|
|
50
|
+
className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
68
51
|
...n
|
|
69
52
|
});
|
|
70
53
|
}
|
|
71
|
-
function
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
"data-slot": "
|
|
74
|
-
className: e("
|
|
54
|
+
function b({ className: t, ...n }) {
|
|
55
|
+
return /* @__PURE__ */ d(c, {
|
|
56
|
+
"data-slot": "alert-dialog-title",
|
|
57
|
+
className: e("text-lg font-semibold", t),
|
|
75
58
|
...n
|
|
76
59
|
});
|
|
77
60
|
}
|
|
78
|
-
function
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
"data-slot": "
|
|
81
|
-
className: e("text-muted-foreground
|
|
61
|
+
function x({ className: t, ...n }) {
|
|
62
|
+
return /* @__PURE__ */ d(i, {
|
|
63
|
+
"data-slot": "alert-dialog-description",
|
|
64
|
+
className: e("text-muted-foreground text-sm", t),
|
|
82
65
|
...n
|
|
83
66
|
});
|
|
84
67
|
}
|
|
68
|
+
function S({ className: n, ...r }) {
|
|
69
|
+
return /* @__PURE__ */ d(t, {
|
|
70
|
+
className: e(u(), n),
|
|
71
|
+
...r
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function C({ className: t, ...r }) {
|
|
75
|
+
return /* @__PURE__ */ d(n, {
|
|
76
|
+
className: e(u({ variant: "outline" }), t),
|
|
77
|
+
...r
|
|
78
|
+
});
|
|
79
|
+
}
|
|
85
80
|
//#endregion
|
|
86
|
-
export {
|
|
81
|
+
export { p as AlertDialog, S as AlertDialogAction, C as AlertDialogCancel, _ as AlertDialogContent, x as AlertDialogDescription, y as AlertDialogFooter, v as AlertDialogHeader, g as AlertDialogOverlay, h as AlertDialogPortal, b as AlertDialogTitle, m as AlertDialogTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0});function n(e,[t,n]){return Math.min(n,Math.max(t,e))}t(n,`clamp`),exports.clamp=n;
|