@vlrc-fe/components 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/FormFileUpload/index.d.ts +1 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -40
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +46 -80
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +22 -60
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1147 -43
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +30 -64
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +31 -147
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +93 -19
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +80 -25
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +9 -50
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +30 -156
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +350 -14
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +11 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +55 -60
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +430 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +36 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +28 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +14 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +156 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +19 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +67 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +118 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +36 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +13 -0
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +44 -121
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +31 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +37 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +123 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +44 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +43 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +14 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +64 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +23 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +34 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +27 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +30 -12
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +26 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +157 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +34 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +46 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +142 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +125 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +26 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +88 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +221 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +166 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +8 -12
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +126 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +15 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +9 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +17 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +22 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +18 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +6 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +7 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +8 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +7 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +12 -112
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +7 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +9 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +69 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +11 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +202 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +124 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +32 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +20 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +69 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +32 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +4 -726
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +11 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +280 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +157 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +20 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +10 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +14 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +8 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +8 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +11 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +10 -0
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +79 -339
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +6 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +8 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +8 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +10 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +11 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +15 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +11 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +11 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +6 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +43 -0
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +19 -66
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +382 -0
- package/dist/index181.cjs +1 -0
- package/dist/index181.js +40 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +23 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +59 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +55 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +54 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +57 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +57 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +88 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +66 -0
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +18 -8
- package/dist/index190.cjs +1 -0
- package/dist/index190.js +594 -0
- package/dist/index191.cjs +9 -0
- package/dist/index191.js +30 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +50 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +65 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +48 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +67 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +151 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +23 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +27 -0
- package/dist/index199.cjs +1 -0
- package/dist/index199.js +53 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +51 -98
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +161 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +16 -0
- package/dist/index202.cjs +1 -0
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +81 -28
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +64 -14
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -22
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1014 -33
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +22 -96
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +108 -25
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +15 -9
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +20 -66
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +81 -11
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +91 -29
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +14 -41
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +93 -12
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +22 -62
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +84 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +85 -33
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +407 -25
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +170 -25
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +28 -154
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +158 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +104 -45
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +337 -140
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +96 -124
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +319 -23
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +205 -81
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +33 -220
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +161 -163
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +20 -125
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -14
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +167 -7
- package/dist/index5.js +26 -14
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +44 -15
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +15 -18
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +5 -5
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -4
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +24 -6
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +66 -4
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +14 -5
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -8
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +50 -67
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +85 -46
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +6 -10
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -199
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +13 -122
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -30
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +3 -20
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +24 -66
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +68 -30
- package/dist/index67.cjs +38 -1
- package/dist/index67.js +3 -11
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +12 -279
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +50 -155
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +29 -85
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +115 -19
- package/dist/index71.cjs +4 -1
- package/dist/index71.js +6 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +12 -12
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +539 -6
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +197 -6
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +120 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +912 -8
- package/dist/index77.cjs +3 -1
- package/dist/index77.js +76 -4
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +120 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +12 -6
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +35 -62
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +14 -8
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +113 -9
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +725 -13
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +346 -9
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +74 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +148 -4
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +31 -42
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -380
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +345 -37
- package/dist/index89.cjs +20 -1
- package/dist/index89.js +40 -18
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +85 -17
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +113 -56
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +272 -51
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +129 -50
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -54
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +28 -55
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +525 -80
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +75 -61
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +67 -583
- package/dist/index98.cjs +1 -9
- package/dist/index98.js +32 -27
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +17 -49
- package/dist/ui/alert-dialog.d.ts +15 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/avatar.d.ts +7 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/breadcrumb.d.ts +12 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/carousel.d.ts +20 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/context-menu.d.ts +26 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/drawer.d.ts +14 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +12 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts +27 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/navigation-menu.d.ts +15 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/pagination.d.ts +14 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/resizable.d.ts +9 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/sheet.d.ts +14 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sidebar.d.ts +70 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +8 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +8 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +10 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/package.json +23 -5
package/dist/index20.js
CHANGED
|
@@ -1,116 +1,69 @@
|
|
|
1
1
|
import { cn as e } from "./index3.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ChevronRight as t, MoreHorizontal as n } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { Slot as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
className: e("group/item-group flex flex-col", t),
|
|
13
|
-
...r
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Slot as a } from "@radix-ui/react-slot";
|
|
6
|
+
//#region src/ui/breadcrumb.tsx
|
|
7
|
+
function o({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ r("nav", {
|
|
9
|
+
"aria-label": "breadcrumb",
|
|
10
|
+
"data-slot": "breadcrumb",
|
|
11
|
+
...e
|
|
14
12
|
});
|
|
15
13
|
}
|
|
16
|
-
function
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
"data-slot": "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...i
|
|
14
|
+
function s({ className: t, ...n }) {
|
|
15
|
+
return /* @__PURE__ */ r("ol", {
|
|
16
|
+
"data-slot": "breadcrumb-list",
|
|
17
|
+
className: e("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", t),
|
|
18
|
+
...n
|
|
22
19
|
});
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
muted: "bg-muted/50"
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
default: "p-4 gap-4 ",
|
|
33
|
-
sm: "py-3 px-4 gap-2.5"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
variant: "default",
|
|
38
|
-
size: "default"
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
function c({ className: t, variant: i = "default", size: a = "default", asChild: o = !1, ...c }) {
|
|
42
|
-
return /* @__PURE__ */ n(o ? r : "div", {
|
|
43
|
-
"data-slot": "item",
|
|
44
|
-
"data-variant": i,
|
|
45
|
-
"data-size": a,
|
|
46
|
-
className: e(s({
|
|
47
|
-
variant: i,
|
|
48
|
-
size: a,
|
|
49
|
-
className: t
|
|
50
|
-
})),
|
|
51
|
-
...c
|
|
21
|
+
function c({ className: t, ...n }) {
|
|
22
|
+
return /* @__PURE__ */ r("li", {
|
|
23
|
+
"data-slot": "breadcrumb-item",
|
|
24
|
+
className: e("inline-flex items-center gap-1.5", t),
|
|
25
|
+
...n
|
|
52
26
|
});
|
|
53
27
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
})),
|
|
28
|
+
function l({ asChild: t, className: n, ...i }) {
|
|
29
|
+
return /* @__PURE__ */ r(t ? a : "a", {
|
|
30
|
+
"data-slot": "breadcrumb-link",
|
|
31
|
+
className: e("hover:text-foreground transition-colors", n),
|
|
70
32
|
...i
|
|
71
33
|
});
|
|
72
34
|
}
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
"data-slot": "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
35
|
+
function u({ className: t, ...n }) {
|
|
36
|
+
return /* @__PURE__ */ r("span", {
|
|
37
|
+
"data-slot": "breadcrumb-page",
|
|
38
|
+
role: "link",
|
|
39
|
+
"aria-disabled": "true",
|
|
40
|
+
"aria-current": "page",
|
|
41
|
+
className: e("text-foreground font-normal", t),
|
|
42
|
+
...n
|
|
99
43
|
});
|
|
100
44
|
}
|
|
101
|
-
function
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
"data-slot": "
|
|
104
|
-
|
|
105
|
-
|
|
45
|
+
function d({ children: n, className: i, ...a }) {
|
|
46
|
+
return /* @__PURE__ */ r("li", {
|
|
47
|
+
"data-slot": "breadcrumb-separator",
|
|
48
|
+
role: "presentation",
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
className: e("[&>svg]:size-3.5", i),
|
|
51
|
+
...a,
|
|
52
|
+
children: n ?? /* @__PURE__ */ r(t, {})
|
|
106
53
|
});
|
|
107
54
|
}
|
|
108
|
-
function
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
"data-slot": "
|
|
111
|
-
|
|
112
|
-
|
|
55
|
+
function f({ className: t, ...a }) {
|
|
56
|
+
return /* @__PURE__ */ i("span", {
|
|
57
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
58
|
+
role: "presentation",
|
|
59
|
+
"aria-hidden": "true",
|
|
60
|
+
className: e("flex size-9 items-center justify-center", t),
|
|
61
|
+
...a,
|
|
62
|
+
children: [/* @__PURE__ */ r(n, { className: "size-4" }), /* @__PURE__ */ r("span", {
|
|
63
|
+
className: "sr-only",
|
|
64
|
+
children: "More"
|
|
65
|
+
})]
|
|
113
66
|
});
|
|
114
67
|
}
|
|
115
68
|
//#endregion
|
|
116
|
-
export {
|
|
69
|
+
export { o as Breadcrumb, f as BreadcrumbEllipsis, c as BreadcrumbItem, l as BreadcrumbLink, s as BreadcrumbList, u as BreadcrumbPage, d as BreadcrumbSeparator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./index80.cjs"),t=require("./index85.cjs"),n=require("./index101.cjs"),r=require("./index199.cjs");let i=require("react/jsx-runtime");function a({name:a,control:o,label:s=``,size:c=`middle`,options:l=[],onChange:u,value:d,rules:f={},disabled:p=!1,optionType:m=`default`,buttonStyle:h,autoHeightMax:g,showEmpty:_=!1,hideErrorMessage:v=!1,className:y}){let{isRequired:b,processedRules:x,parseValue:S,emitChange:C,sizeClasses:w}=r.useFormRadio({rules:f,value:d,onChange:u,showEmpty:_}),T=(t,r,a)=>(0,i.jsx)(n.RadioGroup,{value:S(r),onValueChange:e=>C(a,e),disabled:p,style:g?{maxHeight:`${g}px`,overflowY:`auto`}:void 0,children:l.map(r=>(0,i.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,i.jsx)(n.RadioGroupItem,{value:String(r.value),id:`${t}-${r.value}`,disabled:p||r.disabled,className:w[c]}),(0,i.jsx)(e.Label,{htmlFor:`${t}-${r.value}`,className:`cursor-pointer font-normal`,children:r.label})]},String(r.value)))});return(0,i.jsx)(t.FormField,{control:o,name:a,rules:x,render:({field:e})=>(0,i.jsxs)(t.FormItem,{className:y,children:[s&&(0,i.jsxs)(t.FormLabel,{children:[s,b&&(0,i.jsx)(`span`,{className:`text-destructive ml-1`,children:`*`})]}),(0,i.jsx)(t.FormControl,{children:T(a,d??e.value,e.onChange)}),!v&&(0,i.jsx)(t.FormMessage,{})]})})}exports.FormRadio=a;
|
package/dist/index200.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Button as e } from "./index10.js";
|
|
2
|
+
import { FileUploadDropzone as t, FileUploadItem as n, FileUploadItemDelete as r, FileUploadItemMetadata as i, FileUploadItemPreview as a, FileUploadItemProgress as o, FileUploadList as s, FileUploadRoot as c, useStore as l } from "./index82.js";
|
|
3
|
+
import { CameraIcon as u, CloudUploadIcon as d, Trash2Icon as f } from "lucide-react";
|
|
4
|
+
import { useEffect as p, useRef as m } from "react";
|
|
5
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
6
|
+
//#region src/Form/FormFileUpload/FileUpload.tsx
|
|
7
|
+
function v({ onChange: e, autoUpload: t, maxFiles: n }) {
|
|
8
|
+
let r = l((e) => e), i = m(null);
|
|
9
|
+
return p(() => {
|
|
10
|
+
if (!e) return;
|
|
11
|
+
let a = Array.from(r.files.values()), o = (() => {
|
|
12
|
+
if (t) {
|
|
13
|
+
let e = a.filter((e) => e.status === "success").map((e) => e.file.uploadedUrl).filter((e) => !!e);
|
|
14
|
+
return n === 1 ? e.length > 0 ? e[e.length - 1] : null : e;
|
|
15
|
+
}
|
|
16
|
+
let e = a.map((e) => e.file);
|
|
17
|
+
return n === 1 ? e.length > 0 ? e[e.length - 1] : null : e;
|
|
18
|
+
})(), s = i.current;
|
|
19
|
+
(t ? JSON.stringify(s) === JSON.stringify(o) : Array.isArray(o) && Array.isArray(s) ? o.length === s.length && o.every((e, t) => e === s[t]) : o === s) || (i.current = o, e(o));
|
|
20
|
+
}, [
|
|
21
|
+
r,
|
|
22
|
+
t,
|
|
23
|
+
n,
|
|
24
|
+
e
|
|
25
|
+
]), null;
|
|
26
|
+
}
|
|
27
|
+
function y(e, t = "") {
|
|
28
|
+
let n = e.split("/").pop()?.split("?")[0] || "file", r = n.split(".").pop()?.toLowerCase(), i = r && {
|
|
29
|
+
jpg: "image/jpeg",
|
|
30
|
+
jpeg: "image/jpeg",
|
|
31
|
+
png: "image/png",
|
|
32
|
+
gif: "image/gif",
|
|
33
|
+
webp: "image/webp"
|
|
34
|
+
}[r];
|
|
35
|
+
i ||= t.includes("image") ? "image/jpeg" : "application/octet-stream";
|
|
36
|
+
let a = new File([""], n, { type: i });
|
|
37
|
+
return a.isUploadedUrl = !0, a.uploadedUrl = e, a;
|
|
38
|
+
}
|
|
39
|
+
function b({ value: l, onChange: p, autoUpload: m = !1, uploadFile: b, maxFiles: x = 1, maxSize: S = 1024 * 1024 * 5, accept: C = "image/*", disabled: w, className: T, variant: E = "default" }) {
|
|
40
|
+
let D = (Array.isArray(l) ? l : l ? [l] : []).map((e) => e instanceof File ? e : typeof e == "string" ? y(e, C) : e);
|
|
41
|
+
return /* @__PURE__ */ _(c, {
|
|
42
|
+
value: D,
|
|
43
|
+
maxFiles: E === "avatar" ? 1 : x,
|
|
44
|
+
maxSize: S,
|
|
45
|
+
accept: C,
|
|
46
|
+
disabled: w,
|
|
47
|
+
onUpload: async (e, t) => {
|
|
48
|
+
if (!m) {
|
|
49
|
+
e.forEach((e) => t.onSuccess(e));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!b) {
|
|
53
|
+
console.warn("uploadFile prop is required when autoUpload is true"), e.forEach((e) => t.onError(e, /* @__PURE__ */ Error("Missing uploadFile function")));
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
await Promise.all(e.map(async (e) => {
|
|
57
|
+
let n = e;
|
|
58
|
+
if (n.isUploadedUrl) {
|
|
59
|
+
t.onSuccess(e);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
t.onProgress(e, 20), n.uploadedUrl = await b(e), t.onProgress(e, 100), t.onSuccess(e);
|
|
64
|
+
} catch (n) {
|
|
65
|
+
t.onError(e, n instanceof Error ? n : /* @__PURE__ */ Error("Upload failed"));
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
},
|
|
69
|
+
className: T,
|
|
70
|
+
children: [/* @__PURE__ */ g(v, {
|
|
71
|
+
onChange: p,
|
|
72
|
+
autoUpload: m,
|
|
73
|
+
maxFiles: E === "avatar" ? 1 : x
|
|
74
|
+
}), E === "avatar" ? /* @__PURE__ */ _("div", {
|
|
75
|
+
className: "flex flex-col items-center gap-2",
|
|
76
|
+
children: [/* @__PURE__ */ g(t, {
|
|
77
|
+
className: "group relative size-32 cursor-pointer overflow-hidden rounded-full border-2 border-dashed border-border p-0 hover:border-primary",
|
|
78
|
+
children: D[0] ? /* @__PURE__ */ _(n, {
|
|
79
|
+
value: D[0],
|
|
80
|
+
className: "relative flex size-full flex-col rounded-none border-none p-0",
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ g(a, {
|
|
83
|
+
className: "size-full rounded-none border-none bg-transparent",
|
|
84
|
+
render: (e) => {
|
|
85
|
+
let t = e.uploadedUrl;
|
|
86
|
+
return t ? /* @__PURE__ */ g("img", {
|
|
87
|
+
src: t,
|
|
88
|
+
alt: "Avatar",
|
|
89
|
+
className: "size-full object-cover"
|
|
90
|
+
}) : /* @__PURE__ */ g("img", {
|
|
91
|
+
src: URL.createObjectURL(e),
|
|
92
|
+
alt: "Avatar",
|
|
93
|
+
className: "size-full object-cover"
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ _("div", {
|
|
98
|
+
className: "absolute inset-0 flex flex-col items-center justify-center gap-1 bg-black/40 opacity-0 transition-opacity group-hover:opacity-100",
|
|
99
|
+
children: [/* @__PURE__ */ g(u, { className: "size-6 text-white" }), /* @__PURE__ */ g("span", {
|
|
100
|
+
className: "text-[10px] text-white",
|
|
101
|
+
children: "Đổi ảnh"
|
|
102
|
+
})]
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ g(o, {
|
|
105
|
+
variant: "fill",
|
|
106
|
+
className: "opacity-50"
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
}) : /* @__PURE__ */ _("div", {
|
|
110
|
+
className: "flex size-full flex-col items-center justify-center gap-1 bg-accent text-muted-foreground transition-colors group-hover:bg-accent/80",
|
|
111
|
+
children: [/* @__PURE__ */ g(u, { className: "size-6" }), /* @__PURE__ */ g("span", {
|
|
112
|
+
className: "text-[10px]",
|
|
113
|
+
children: "Tải lên"
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
}), /* @__PURE__ */ g("div", {
|
|
117
|
+
className: "text-xs text-muted-foreground",
|
|
118
|
+
children: S ? `Max ${Math.round(S / (1024 * 1024))}MB` : ""
|
|
119
|
+
})]
|
|
120
|
+
}) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(t, { children: [
|
|
121
|
+
/* @__PURE__ */ g(d, { className: "h-10 w-10 text-muted-foreground" }),
|
|
122
|
+
/* @__PURE__ */ g("p", {
|
|
123
|
+
className: "text-sm font-medium",
|
|
124
|
+
children: "Drag & drop files here, or click to select"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ _("p", {
|
|
127
|
+
className: "text-xs text-muted-foreground",
|
|
128
|
+
children: [
|
|
129
|
+
x > 1 ? `Up to ${x} files` : "1 file max",
|
|
130
|
+
" ",
|
|
131
|
+
S ? `(Max ${Math.round(S / (1024 * 1024))}MB)` : ""
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
] }), /* @__PURE__ */ g(s, { children: D.map((t, s) => /* @__PURE__ */ _(n, {
|
|
135
|
+
value: t,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ g(a, { render: (e, t) => {
|
|
138
|
+
let n = e.uploadedUrl;
|
|
139
|
+
return n && e.type.startsWith("image/") ? /* @__PURE__ */ g("img", {
|
|
140
|
+
src: n,
|
|
141
|
+
alt: e.name,
|
|
142
|
+
className: "size-full object-cover"
|
|
143
|
+
}) : t();
|
|
144
|
+
} }),
|
|
145
|
+
/* @__PURE__ */ g(i, {}),
|
|
146
|
+
/* @__PURE__ */ g(o, { className: "absolute bottom-0 left-0 right-0 h-1 w-auto rounded-none" }),
|
|
147
|
+
/* @__PURE__ */ g(r, {
|
|
148
|
+
asChild: !0,
|
|
149
|
+
children: /* @__PURE__ */ g(e, {
|
|
150
|
+
variant: "ghost",
|
|
151
|
+
size: "icon",
|
|
152
|
+
className: "h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive",
|
|
153
|
+
children: /* @__PURE__ */ g(f, { className: "h-4 w-4" })
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}, s)) })] })]
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { b as FileUpload };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./index11.cjs"),t=require("./index83.cjs");let n=require("lucide-react"),r=require("react"),i=require("react/jsx-runtime");function a({onChange:e,autoUpload:n,maxFiles:i}){let a=t.useStore(e=>e),o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!e)return;let t=Array.from(a.files.values()),r=(()=>{if(n){let e=t.filter(e=>e.status===`success`).map(e=>e.file.uploadedUrl).filter(e=>!!e);return i===1?e.length>0?e[e.length-1]:null:e}let e=t.map(e=>e.file);return i===1?e.length>0?e[e.length-1]:null:e})(),s=o.current;(n?JSON.stringify(s)===JSON.stringify(r):Array.isArray(r)&&Array.isArray(s)?r.length===s.length&&r.every((e,t)=>e===s[t]):r===s)||(o.current=r,e(r))},[a,n,i,e]),null}function o(e,t=``){let n=e.split(`/`).pop()?.split(`?`)[0]||`file`,r=n.split(`.`).pop()?.toLowerCase(),i=r&&{jpg:`image/jpeg`,jpeg:`image/jpeg`,png:`image/png`,gif:`image/gif`,webp:`image/webp`}[r];i||=t.includes(`image`)?`image/jpeg`:`application/octet-stream`;let a=new File([``],n,{type:i});return a.isUploadedUrl=!0,a.uploadedUrl=e,a}function s({value:r,onChange:s,autoUpload:c=!1,uploadFile:l,maxFiles:u=1,maxSize:d=1024*1024*5,accept:f=`image/*`,disabled:p,className:m,variant:h=`default`}){let g=(Array.isArray(r)?r:r?[r]:[]).map(e=>e instanceof File?e:typeof e==`string`?o(e,f):e);return(0,i.jsxs)(t.FileUploadRoot,{value:g,maxFiles:h===`avatar`?1:u,maxSize:d,accept:f,disabled:p,onUpload:async(e,t)=>{if(!c){e.forEach(e=>t.onSuccess(e));return}if(!l){console.warn(`uploadFile prop is required when autoUpload is true`),e.forEach(e=>t.onError(e,Error(`Missing uploadFile function`)));return}await Promise.all(e.map(async e=>{let n=e;if(n.isUploadedUrl){t.onSuccess(e);return}try{t.onProgress(e,20),n.uploadedUrl=await l(e),t.onProgress(e,100),t.onSuccess(e)}catch(n){t.onError(e,n instanceof Error?n:Error(`Upload failed`))}}))},className:m,children:[(0,i.jsx)(a,{onChange:s,autoUpload:c,maxFiles:h===`avatar`?1:u}),h===`avatar`?(0,i.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,i.jsx)(t.FileUploadDropzone,{className:`group relative size-32 cursor-pointer overflow-hidden rounded-full border-2 border-dashed border-border p-0 hover:border-primary`,children:g[0]?(0,i.jsxs)(t.FileUploadItem,{value:g[0],className:`relative flex size-full flex-col rounded-none border-none p-0`,children:[(0,i.jsx)(t.FileUploadItemPreview,{className:`size-full rounded-none border-none bg-transparent`,render:e=>{let t=e.uploadedUrl;return t?(0,i.jsx)(`img`,{src:t,alt:`Avatar`,className:`size-full object-cover`}):(0,i.jsx)(`img`,{src:URL.createObjectURL(e),alt:`Avatar`,className:`size-full object-cover`})}}),(0,i.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-1 bg-black/40 opacity-0 transition-opacity group-hover:opacity-100`,children:[(0,i.jsx)(n.CameraIcon,{className:`size-6 text-white`}),(0,i.jsx)(`span`,{className:`text-[10px] text-white`,children:`Đổi ảnh`})]}),(0,i.jsx)(t.FileUploadItemProgress,{variant:`fill`,className:`opacity-50`})]}):(0,i.jsxs)(`div`,{className:`flex size-full flex-col items-center justify-center gap-1 bg-accent text-muted-foreground transition-colors group-hover:bg-accent/80`,children:[(0,i.jsx)(n.CameraIcon,{className:`size-6`}),(0,i.jsx)(`span`,{className:`text-[10px]`,children:`Tải lên`})]})}),(0,i.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:d?`Max ${Math.round(d/(1024*1024))}MB`:``})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.FileUploadDropzone,{children:[(0,i.jsx)(n.CloudUploadIcon,{className:`h-10 w-10 text-muted-foreground`}),(0,i.jsx)(`p`,{className:`text-sm font-medium`,children:`Drag & drop files here, or click to select`}),(0,i.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[u>1?`Up to ${u} files`:`1 file max`,` `,d?`(Max ${Math.round(d/(1024*1024))}MB)`:``]})]}),(0,i.jsx)(t.FileUploadList,{children:g.map((r,a)=>(0,i.jsxs)(t.FileUploadItem,{value:r,children:[(0,i.jsx)(t.FileUploadItemPreview,{render:(e,t)=>{let n=e.uploadedUrl;return n&&e.type.startsWith(`image/`)?(0,i.jsx)(`img`,{src:n,alt:e.name,className:`size-full object-cover`}):t()}}),(0,i.jsx)(t.FileUploadItemMetadata,{}),(0,i.jsx)(t.FileUploadItemProgress,{className:`absolute bottom-0 left-0 right-0 h-1 w-auto rounded-none`}),(0,i.jsx)(t.FileUploadItemDelete,{asChild:!0,children:(0,i.jsx)(e.Button,{variant:`ghost`,size:`icon`,className:`h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive`,children:(0,i.jsx)(n.Trash2Icon,{className:`h-4 w-4`})})})]},a))})]})]})}exports.FileUpload=s;
|
package/dist/index201.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormBase as e } from "./index135.js";
|
|
2
|
+
import { FileUpload as t } from "./index200.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/Form/FormFileUpload/index.tsx
|
|
5
|
+
var r = (r) => /* @__PURE__ */ n(e, {
|
|
6
|
+
...r,
|
|
7
|
+
children: ({ onChange: e, value: i, disabled: a }) => /* @__PURE__ */ n(t, {
|
|
8
|
+
...r,
|
|
9
|
+
value: i,
|
|
10
|
+
onChange: e,
|
|
11
|
+
disabled: a || r.disabled,
|
|
12
|
+
className: r.className
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./index136.cjs"),t=require("./index201.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;
|
package/dist/index21.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index4.cjs")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-slot");function o({...e}){return(0,i.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...e})}function s({className:e,...n}){return(0,i.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:t.cn(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,e),...n})}function c({className:e,...n}){return(0,i.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:t.cn(`inline-flex items-center gap-1.5`,e),...n})}function l({asChild:e,className:n,...r}){return(0,i.jsx)(e?a.Slot:`a`,{"data-slot":`breadcrumb-link`,className:t.cn(`hover:text-foreground transition-colors`,n),...r})}function u({className:e,...n}){return(0,i.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:t.cn(`text-foreground font-normal`,e),...n})}function d({children:e,className:r,...a}){return(0,i.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:t.cn(`[&>svg]:size-3.5`,r),...a,children:e??(0,i.jsx)(n.ChevronRight,{})})}function f({className:e,...r}){return(0,i.jsxs)(`span`,{"data-slot":`breadcrumb-ellipsis`,role:`presentation`,"aria-hidden":`true`,className:t.cn(`flex size-9 items-center justify-center`,e),...r,children:[(0,i.jsx)(n.MoreHorizontal,{className:`size-4`}),(0,i.jsx)(`span`,{className:`sr-only`,children:`More`})]})}exports.Breadcrumb=o,exports.BreadcrumbEllipsis=f,exports.BreadcrumbItem=c,exports.BreadcrumbLink=l,exports.BreadcrumbList=s,exports.BreadcrumbPage=u,exports.BreadcrumbSeparator=d;
|
package/dist/index21.js
CHANGED
|
@@ -1,35 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./index3.js";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { Button as t, buttonVariants as n } from "./index10.js";
|
|
4
|
+
import { ChevronDownIcon as r, ChevronLeftIcon as i, ChevronRightIcon as a } from "lucide-react";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
+
import { DayPicker as c, getDefaultClassNames as l } from "react-day-picker";
|
|
8
|
+
//#region src/ui/calendar.tsx
|
|
9
|
+
function u({ className: t, classNames: o, showOutsideDays: u = !0, captionLayout: f = "label", buttonVariant: p = "ghost", formatters: m, components: h, ...g }) {
|
|
10
|
+
let _ = l();
|
|
11
|
+
return /* @__PURE__ */ s(c, {
|
|
12
|
+
showOutsideDays: u,
|
|
13
|
+
className: e("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, t),
|
|
14
|
+
captionLayout: f,
|
|
15
|
+
formatters: {
|
|
16
|
+
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
17
|
+
...m
|
|
18
|
+
},
|
|
19
|
+
classNames: {
|
|
20
|
+
root: e("w-fit", _.root),
|
|
21
|
+
months: e("flex gap-4 flex-col md:flex-row relative", _.months),
|
|
22
|
+
month: e("flex flex-col w-full gap-4", _.month),
|
|
23
|
+
nav: e("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", _.nav),
|
|
24
|
+
button_previous: e(n({ variant: p }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", _.button_previous),
|
|
25
|
+
button_next: e(n({ variant: p }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", _.button_next),
|
|
26
|
+
month_caption: e("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", _.month_caption),
|
|
27
|
+
dropdowns: e("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", _.dropdowns),
|
|
28
|
+
dropdown_root: e("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", _.dropdown_root),
|
|
29
|
+
dropdown: e("absolute bg-popover inset-0 opacity-0", _.dropdown),
|
|
30
|
+
caption_label: e("select-none font-medium", f === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", _.caption_label),
|
|
31
|
+
weekdays: e("flex", _.weekdays),
|
|
32
|
+
weekday: e("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", _.weekday),
|
|
33
|
+
week: e("flex w-full mt-2", _.week),
|
|
34
|
+
week_number_header: e("select-none w-(--cell-size)", _.week_number_header),
|
|
35
|
+
week_number: e("text-[0.8rem] select-none text-muted-foreground", _.week_number),
|
|
36
|
+
day: e("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", g.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md", _.day),
|
|
37
|
+
range_start: e("rounded-l-md bg-accent", _.range_start),
|
|
38
|
+
range_middle: e("rounded-none", _.range_middle),
|
|
39
|
+
range_end: e("rounded-r-md bg-accent", _.range_end),
|
|
40
|
+
today: e("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", _.today),
|
|
41
|
+
outside: e("text-muted-foreground aria-selected:text-muted-foreground", _.outside),
|
|
42
|
+
disabled: e("text-muted-foreground opacity-50", _.disabled),
|
|
43
|
+
hidden: e("invisible", _.hidden),
|
|
44
|
+
...o
|
|
45
|
+
},
|
|
46
|
+
components: {
|
|
47
|
+
Root: ({ className: t, rootRef: n, ...r }) => /* @__PURE__ */ s("div", {
|
|
48
|
+
"data-slot": "calendar",
|
|
49
|
+
ref: n,
|
|
50
|
+
className: e(t),
|
|
51
|
+
...r
|
|
52
|
+
}),
|
|
53
|
+
Chevron: ({ className: t, orientation: n, ...o }) => s(n === "left" ? i : n === "right" ? a : r, {
|
|
54
|
+
className: e("size-4", t),
|
|
55
|
+
...o
|
|
56
|
+
}),
|
|
57
|
+
DayButton: d,
|
|
58
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ s("td", {
|
|
59
|
+
...t,
|
|
60
|
+
children: /* @__PURE__ */ s("div", {
|
|
61
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
62
|
+
children: e
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
...h
|
|
66
|
+
},
|
|
67
|
+
...g
|
|
11
68
|
});
|
|
12
69
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"data-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function o({ ...e }) {
|
|
29
|
-
return /* @__PURE__ */ t(n.Anchor, {
|
|
30
|
-
"data-slot": "popover-anchor",
|
|
31
|
-
...e
|
|
70
|
+
function d({ className: n, day: r, modifiers: i, ...a }) {
|
|
71
|
+
let c = l(), u = o.useRef(null);
|
|
72
|
+
return o.useEffect(() => {
|
|
73
|
+
i.focused && u.current?.focus();
|
|
74
|
+
}, [i.focused]), /* @__PURE__ */ s(t, {
|
|
75
|
+
ref: u,
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
size: "icon",
|
|
78
|
+
"data-day": r.date.toLocaleDateString(),
|
|
79
|
+
"data-selected-single": i.selected && !i.range_start && !i.range_end && !i.range_middle,
|
|
80
|
+
"data-range-start": i.range_start,
|
|
81
|
+
"data-range-end": i.range_end,
|
|
82
|
+
"data-range-middle": i.range_middle,
|
|
83
|
+
className: e("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", c.day, n),
|
|
84
|
+
...a
|
|
32
85
|
});
|
|
33
86
|
}
|
|
34
87
|
//#endregion
|
|
35
|
-
export {
|
|
88
|
+
export { u as Calendar, d as CalendarDayButton };
|
package/dist/index22.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs");let
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs");let r=require("lucide-react"),i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react-day-picker");function s({className:e,classNames:i,showOutsideDays:s=!0,captionLayout:l=`label`,buttonVariant:u=`ghost`,formatters:d,components:f,...p}){let m=(0,o.getDefaultClassNames)();return(0,a.jsx)(o.DayPicker,{showOutsideDays:s,className:t.cn(`bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:l,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...d},classNames:{root:t.cn(`w-fit`,m.root),months:t.cn(`flex gap-4 flex-col md:flex-row relative`,m.months),month:t.cn(`flex flex-col w-full gap-4`,m.month),nav:t.cn(`flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between`,m.nav),button_previous:t.cn(n.buttonVariants({variant:u}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,m.button_previous),button_next:t.cn(n.buttonVariants({variant:u}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,m.button_next),month_caption:t.cn(`flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)`,m.month_caption),dropdowns:t.cn(`w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5`,m.dropdowns),dropdown_root:t.cn(`relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md`,m.dropdown_root),dropdown:t.cn(`absolute bg-popover inset-0 opacity-0`,m.dropdown),caption_label:t.cn(`select-none font-medium`,l===`label`?`text-sm`:`rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5`,m.caption_label),weekdays:t.cn(`flex`,m.weekdays),weekday:t.cn(`text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none`,m.weekday),week:t.cn(`flex w-full mt-2`,m.week),week_number_header:t.cn(`select-none w-(--cell-size)`,m.week_number_header),week_number:t.cn(`text-[0.8rem] select-none text-muted-foreground`,m.week_number),day:t.cn(`relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none`,p.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,m.day),range_start:t.cn(`rounded-l-md bg-accent`,m.range_start),range_middle:t.cn(`rounded-none`,m.range_middle),range_end:t.cn(`rounded-r-md bg-accent`,m.range_end),today:t.cn(`bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none`,m.today),outside:t.cn(`text-muted-foreground aria-selected:text-muted-foreground`,m.outside),disabled:t.cn(`text-muted-foreground opacity-50`,m.disabled),hidden:t.cn(`invisible`,m.hidden),...i},components:{Root:({className:e,rootRef:n,...r})=>(0,a.jsx)(`div`,{"data-slot":`calendar`,ref:n,className:t.cn(e),...r}),Chevron:({className:e,orientation:n,...i})=>n===`left`?(0,a.jsx)(r.ChevronLeftIcon,{className:t.cn(`size-4`,e),...i}):n===`right`?(0,a.jsx)(r.ChevronRightIcon,{className:t.cn(`size-4`,e),...i}):(0,a.jsx)(r.ChevronDownIcon,{className:t.cn(`size-4`,e),...i}),DayButton:c,WeekNumber:({children:e,...t})=>(0,a.jsx)(`td`,{...t,children:(0,a.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...f},...p})}function c({className:e,day:r,modifiers:s,...c}){let l=(0,o.getDefaultClassNames)(),u=i.useRef(null);return i.useEffect(()=>{s.focused&&u.current?.focus()},[s.focused]),(0,a.jsx)(n.Button,{ref:u,variant:`ghost`,size:`icon`,"data-day":r.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:t.cn(`data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70`,l.day,e),...c})}exports.Calendar=s,exports.CalendarDayButton=c;
|
package/dist/index22.js
CHANGED
|
@@ -1,18 +1,68 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { cn as e } from "./index3.js";
|
|
2
|
+
import "react";
|
|
2
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
//#region src/ui/card.tsx
|
|
6
|
+
var r = n("bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm", {
|
|
7
|
+
variants: { variant: {
|
|
8
|
+
default: "gap-6 py-6",
|
|
9
|
+
glass: "gap-6 py-6 bg-card/80 backdrop-blur-sm dark:bg-card/40 dark:border-white/10",
|
|
10
|
+
"glass-strong": "gap-6 py-6 bg-card/60 backdrop-blur-md dark:bg-card/60 dark:backdrop-blur-md dark:border dark:border-white/10",
|
|
11
|
+
elevated: "gap-6 py-6 border-0 shadow-lg hover:-translate-y-1 hover:shadow-xl transition-all",
|
|
12
|
+
"elevated-glass": "gap-6 py-6 border-0 shadow-lg hover:-translate-y-2 hover:shadow-xl transition-all dark:bg-card/60 dark:backdrop-blur-md dark:border dark:border-white/10",
|
|
13
|
+
auth: "w-full max-w-md mx-auto bg-card/80 dark:bg-card/60 backdrop-blur-xl backdrop-saturate-150 border-border/60 dark:border-white/10 rounded-2xl shadow-2xl shadow-primary/10 dark:shadow-black/30"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { variant: "default" }
|
|
16
|
+
});
|
|
17
|
+
function i({ className: n, variant: i, ...a }) {
|
|
6
18
|
return /* @__PURE__ */ t("div", {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className: "h-full w-full bg-blue-500 dark:bg-blue-600 transition-all",
|
|
12
|
-
style: { width: `${a}%` }
|
|
13
|
-
})
|
|
19
|
+
"data-slot": "card",
|
|
20
|
+
"data-variant": i,
|
|
21
|
+
className: e(r({ variant: i }), n),
|
|
22
|
+
...a
|
|
14
23
|
});
|
|
15
|
-
}
|
|
16
|
-
n
|
|
24
|
+
}
|
|
25
|
+
function a({ className: n, ...r }) {
|
|
26
|
+
return /* @__PURE__ */ t("div", {
|
|
27
|
+
"data-slot": "card-header",
|
|
28
|
+
className: e("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", n),
|
|
29
|
+
...r
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function o({ className: n, ...r }) {
|
|
33
|
+
return /* @__PURE__ */ t("div", {
|
|
34
|
+
"data-slot": "card-title",
|
|
35
|
+
className: e("leading-none font-semibold", n),
|
|
36
|
+
...r
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function s({ className: n, ...r }) {
|
|
40
|
+
return /* @__PURE__ */ t("div", {
|
|
41
|
+
"data-slot": "card-description",
|
|
42
|
+
className: e("text-muted-foreground text-sm", n),
|
|
43
|
+
...r
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function c({ className: n, ...r }) {
|
|
47
|
+
return /* @__PURE__ */ t("div", {
|
|
48
|
+
"data-slot": "card-action",
|
|
49
|
+
className: e("col-start-2 row-span-2 row-start-1 self-start justify-self-end", n),
|
|
50
|
+
...r
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function l({ className: n, ...r }) {
|
|
54
|
+
return /* @__PURE__ */ t("div", {
|
|
55
|
+
"data-slot": "card-content",
|
|
56
|
+
className: e("px-6", n),
|
|
57
|
+
...r
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function u({ className: n, ...r }) {
|
|
61
|
+
return /* @__PURE__ */ t("div", {
|
|
62
|
+
"data-slot": "card-footer",
|
|
63
|
+
className: e("flex items-center px-6 [.border-t]:pt-6", n),
|
|
64
|
+
...r
|
|
65
|
+
});
|
|
66
|
+
}
|
|
17
67
|
//#endregion
|
|
18
|
-
export {
|
|
68
|
+
export { i as Card, c as CardAction, l as CardContent, s as CardDescription, u as CardFooter, a as CardHeader, o as CardTitle, r as cardVariants };
|
package/dist/index23.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs");let
|
|
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");var i=(0,require("class-variance-authority").cva)(`bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm`,{variants:{variant:{default:`gap-6 py-6`,glass:`gap-6 py-6 bg-card/80 backdrop-blur-sm dark:bg-card/40 dark:border-white/10`,"glass-strong":`gap-6 py-6 bg-card/60 backdrop-blur-md dark:bg-card/60 dark:backdrop-blur-md dark:border dark:border-white/10`,elevated:`gap-6 py-6 border-0 shadow-lg hover:-translate-y-1 hover:shadow-xl transition-all`,"elevated-glass":`gap-6 py-6 border-0 shadow-lg hover:-translate-y-2 hover:shadow-xl transition-all dark:bg-card/60 dark:backdrop-blur-md dark:border dark:border-white/10`,auth:`w-full max-w-md mx-auto bg-card/80 dark:bg-card/60 backdrop-blur-xl backdrop-saturate-150 border-border/60 dark:border-white/10 rounded-2xl shadow-2xl shadow-primary/10 dark:shadow-black/30`}},defaultVariants:{variant:`default`}});function a({className:e,variant:n,...a}){return(0,r.jsx)(`div`,{"data-slot":`card`,"data-variant":n,className:t.cn(i({variant:n}),e),...a})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:t.cn(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:t.cn(`leading-none font-semibold`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:t.cn(`text-muted-foreground text-sm`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:t.cn(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:t.cn(`px-6`,e),...n})}function d({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:t.cn(`flex items-center px-6 [.border-t]:pt-6`,e),...n})}exports.Card=a,exports.CardAction=l,exports.CardContent=u,exports.CardDescription=c,exports.CardFooter=d,exports.CardHeader=o,exports.CardTitle=s,exports.cardVariants=i;
|