@vlrc-fe/components 1.0.9 → 1.0.11
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/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/index100.js +30 -17
- package/dist/index101.cjs +1 -1
- package/dist/index102.js +35 -19
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +29 -19
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +98 -55
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +86 -48
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +12 -6
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +23 -16
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +205 -120
- package/dist/index109.cjs +1 -1
- package/dist/index11.js +105 -53
- package/dist/index113.js +12 -6
- package/dist/index114.cjs +1 -1
- package/dist/index115.js +18 -10
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +82 -41
- package/dist/index117.cjs +1 -1
- package/dist/index118.js +42 -21
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +12 -6
- package/dist/index12.cjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index121.js +18 -12
- package/dist/index122.cjs +1 -1
- package/dist/index123.js +42 -28
- package/dist/index124.cjs +1 -1
- package/dist/index126.js +86 -57
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +30 -17
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +42 -27
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +31 -18
- package/dist/index130.cjs +1 -1
- package/dist/index132.js +50 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +28 -14
- package/dist/index134.cjs +1 -1
- package/dist/index135.js +147 -99
- package/dist/index136.cjs +1 -1
- package/dist/index138.js +242 -170
- package/dist/index139.cjs +1 -1
- package/dist/index14.js +9 -5
- package/dist/index141.js +21 -10
- package/dist/index142.cjs +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index18.js +32 -16
- package/dist/index186.js +57 -44
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +56 -48
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +16 -12
- package/dist/index189.cjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index191.js +36 -23
- package/dist/index192.cjs +1 -1
- package/dist/index197.js +18 -15
- package/dist/index198.cjs +1 -1
- package/dist/index20.js +79 -41
- package/dist/index200.js +49 -33
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +20 -11
- package/dist/index202.cjs +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +30 -23
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +75 -39
- package/dist/index23.cjs +1 -1
- package/dist/index26.js +39 -28
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +20 -12
- package/dist/index28.cjs +1 -1
- package/dist/index33.js +23 -13
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +87 -49
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +86 -45
- package/dist/index36.cjs +1 -1
- package/dist/index4.js +49 -26
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +34 -18
- package/dist/index6.cjs +1 -1
- package/dist/index75.js +142 -77
- package/dist/index76.cjs +1 -1
- package/dist/index77.js +96 -49
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +137 -77
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -7
- package/dist/index80.cjs +1 -1
- package/dist/index81.js +130 -63
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +201 -158
- package/dist/index83.cjs +1 -1
- package/dist/index84.js +97 -59
- package/dist/index85.cjs +1 -1
- package/dist/index86.js +17 -10
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +13 -7
- package/dist/index88.cjs +1 -1
- package/dist/index89.js +54 -28
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +94 -53
- package/dist/index91.cjs +1 -1
- package/dist/index92.js +156 -89
- package/dist/index93.cjs +1 -1
- package/dist/index96.js +89 -47
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +78 -43
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +27 -17
- package/dist/index99.cjs +1 -1
- package/package.json +1 -1
package/dist/index22.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cn as e } from "./index3.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { c as n } from "react/compiler-runtime";
|
|
5
|
+
import { cva as r } from "class-variance-authority";
|
|
5
6
|
//#region src/ui/card.tsx
|
|
6
|
-
var
|
|
7
|
+
var i = r("bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm", {
|
|
7
8
|
variants: { variant: {
|
|
8
9
|
default: "gap-6 py-6",
|
|
9
10
|
glass: "gap-6 py-6 bg-card/80 backdrop-blur-sm dark:bg-card/40 dark:border-white/10",
|
|
@@ -14,55 +15,90 @@ var r = n("bg-card text-card-foreground flex flex-col rounded-xl border shadow-s
|
|
|
14
15
|
} },
|
|
15
16
|
defaultVariants: { variant: "default" }
|
|
16
17
|
});
|
|
17
|
-
function
|
|
18
|
-
|
|
18
|
+
function a(r) {
|
|
19
|
+
let a = n(11), o, s, c;
|
|
20
|
+
a[0] === r ? (o = a[1], s = a[2], c = a[3]) : ({className: o, variant: c, ...s} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c);
|
|
21
|
+
let l;
|
|
22
|
+
a[4] !== o || a[5] !== c ? (l = e(i({ variant: c }), o), a[4] = o, a[5] = c, a[6] = l) : l = a[6];
|
|
23
|
+
let u;
|
|
24
|
+
return a[7] !== s || a[8] !== l || a[9] !== c ? (u = /* @__PURE__ */ t("div", {
|
|
19
25
|
"data-slot": "card",
|
|
20
|
-
"data-variant":
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
23
|
-
});
|
|
26
|
+
"data-variant": c,
|
|
27
|
+
className: l,
|
|
28
|
+
...s
|
|
29
|
+
}), a[7] = s, a[8] = l, a[9] = c, a[10] = u) : u = a[10], u;
|
|
24
30
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
31
|
+
function o(r) {
|
|
32
|
+
let i = n(8), a, o;
|
|
33
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
34
|
+
let s;
|
|
35
|
+
i[3] === a ? s = i[4] : (s = 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", a), i[3] = a, i[4] = s);
|
|
36
|
+
let c;
|
|
37
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
27
38
|
"data-slot": "card-header",
|
|
28
|
-
className:
|
|
29
|
-
...
|
|
30
|
-
});
|
|
39
|
+
className: s,
|
|
40
|
+
...o
|
|
41
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
31
42
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
43
|
+
function s(r) {
|
|
44
|
+
let i = n(8), a, o;
|
|
45
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
46
|
+
let s;
|
|
47
|
+
i[3] === a ? s = i[4] : (s = e("leading-none font-semibold", a), i[3] = a, i[4] = s);
|
|
48
|
+
let c;
|
|
49
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
34
50
|
"data-slot": "card-title",
|
|
35
|
-
className:
|
|
36
|
-
...
|
|
37
|
-
});
|
|
51
|
+
className: s,
|
|
52
|
+
...o
|
|
53
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
38
54
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
55
|
+
function c(r) {
|
|
56
|
+
let i = n(8), a, o;
|
|
57
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
58
|
+
let s;
|
|
59
|
+
i[3] === a ? s = i[4] : (s = e("text-muted-foreground text-sm", a), i[3] = a, i[4] = s);
|
|
60
|
+
let c;
|
|
61
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
41
62
|
"data-slot": "card-description",
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
44
|
-
});
|
|
63
|
+
className: s,
|
|
64
|
+
...o
|
|
65
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
45
66
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
67
|
+
function l(r) {
|
|
68
|
+
let i = n(8), a, o;
|
|
69
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
70
|
+
let s;
|
|
71
|
+
i[3] === a ? s = i[4] : (s = e("col-start-2 row-span-2 row-start-1 self-start justify-self-end", a), i[3] = a, i[4] = s);
|
|
72
|
+
let c;
|
|
73
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
48
74
|
"data-slot": "card-action",
|
|
49
|
-
className:
|
|
50
|
-
...
|
|
51
|
-
});
|
|
75
|
+
className: s,
|
|
76
|
+
...o
|
|
77
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
52
78
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
79
|
+
function u(r) {
|
|
80
|
+
let i = n(8), a, o;
|
|
81
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
82
|
+
let s;
|
|
83
|
+
i[3] === a ? s = i[4] : (s = e("px-6", a), i[3] = a, i[4] = s);
|
|
84
|
+
let c;
|
|
85
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
55
86
|
"data-slot": "card-content",
|
|
56
|
-
className:
|
|
57
|
-
...
|
|
58
|
-
});
|
|
87
|
+
className: s,
|
|
88
|
+
...o
|
|
89
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
59
90
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
91
|
+
function d(r) {
|
|
92
|
+
let i = n(8), a, o;
|
|
93
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
94
|
+
let s;
|
|
95
|
+
i[3] === a ? s = i[4] : (s = e("flex items-center px-6 [.border-t]:pt-6", a), i[3] = a, i[4] = s);
|
|
96
|
+
let c;
|
|
97
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
62
98
|
"data-slot": "card-footer",
|
|
63
|
-
className:
|
|
64
|
-
...
|
|
65
|
-
});
|
|
99
|
+
className: s,
|
|
100
|
+
...o
|
|
101
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
66
102
|
}
|
|
67
103
|
//#endregion
|
|
68
|
-
export {
|
|
104
|
+
export { a as Card, l as CardAction, u as CardContent, c as CardDescription, d as CardFooter, o as CardHeader, s as CardTitle, i as cardVariants };
|
package/dist/index23.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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("react/compiler-runtime");var a=(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 o(e){let n=(0,i.c)(11),o,s,c;n[0]===e?(o=n[1],s=n[2],c=n[3]):({className:o,variant:c,...s}=e,n[0]=e,n[1]=o,n[2]=s,n[3]=c);let l;n[4]!==o||n[5]!==c?(l=t.cn(a({variant:c}),o),n[4]=o,n[5]=c,n[6]=l):l=n[6];let u;return n[7]!==s||n[8]!==l||n[9]!==c?(u=(0,r.jsx)(`div`,{"data-slot":`card`,"data-variant":c,className:l,...s}),n[7]=s,n[8]=l,n[9]=c,n[10]=u):u=n[10],u}function s(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=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`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-header`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`leading-none font-semibold`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-title`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`text-muted-foreground text-sm`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-description`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-action`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function d(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`px-6`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-content`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function f(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`flex items-center px-6 [.border-t]:pt-6`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}exports.Card=o,exports.CardAction=u,exports.CardContent=d,exports.CardDescription=l,exports.CardFooter=f,exports.CardHeader=s,exports.CardTitle=c,exports.cardVariants=a;
|
package/dist/index26.js
CHANGED
|
@@ -5,14 +5,15 @@ import { useEmblaCarousel as n } from "./index25.js";
|
|
|
5
5
|
import { ArrowLeft as r, ArrowRight as i } from "lucide-react";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
8
9
|
//#region src/ui/carousel.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let e = a.useContext(
|
|
10
|
+
var l = a.createContext(null);
|
|
11
|
+
function u() {
|
|
12
|
+
let e = a.useContext(l);
|
|
12
13
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
13
14
|
return e;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function d({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, className: c, children: u, ...d }) {
|
|
16
17
|
let [f, p] = n({
|
|
17
18
|
...r,
|
|
18
19
|
axis: t === "horizontal" ? "x" : "y"
|
|
@@ -31,7 +32,7 @@ function u({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, clas
|
|
|
31
32
|
if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
|
|
32
33
|
p?.off("select", v);
|
|
33
34
|
};
|
|
34
|
-
}, [p, v]), /* @__PURE__ */ o(
|
|
35
|
+
}, [p, v]), /* @__PURE__ */ o(l.Provider, {
|
|
35
36
|
value: {
|
|
36
37
|
carouselRef: f,
|
|
37
38
|
api: p,
|
|
@@ -44,7 +45,7 @@ function u({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, clas
|
|
|
44
45
|
},
|
|
45
46
|
children: /* @__PURE__ */ o("div", {
|
|
46
47
|
onKeyDownCapture: x,
|
|
47
|
-
className: e("relative",
|
|
48
|
+
className: e("relative", c),
|
|
48
49
|
role: "region",
|
|
49
50
|
"aria-roledescription": "carousel",
|
|
50
51
|
"data-slot": "carousel",
|
|
@@ -53,35 +54,45 @@ function u({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, clas
|
|
|
53
54
|
})
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
function f(t) {
|
|
58
|
+
let n = c(12), r, i;
|
|
59
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
60
|
+
let { carouselRef: a, orientation: s } = u(), l = s === "horizontal" ? "-ml-4" : "-mt-4 flex-col", d;
|
|
61
|
+
n[3] !== r || n[4] !== l ? (d = e("flex", l, r), n[3] = r, n[4] = l, n[5] = d) : d = n[5];
|
|
62
|
+
let f;
|
|
63
|
+
n[6] !== i || n[7] !== d ? (f = /* @__PURE__ */ o("div", {
|
|
64
|
+
className: d,
|
|
65
|
+
...i
|
|
66
|
+
}), n[6] = i, n[7] = d, n[8] = f) : f = n[8];
|
|
67
|
+
let p;
|
|
68
|
+
return n[9] !== a || n[10] !== f ? (p = /* @__PURE__ */ o("div", {
|
|
69
|
+
ref: a,
|
|
60
70
|
className: "overflow-hidden",
|
|
61
71
|
"data-slot": "carousel-content",
|
|
62
|
-
children:
|
|
63
|
-
|
|
64
|
-
...n
|
|
65
|
-
})
|
|
66
|
-
});
|
|
72
|
+
children: f
|
|
73
|
+
}), n[9] = a, n[10] = f, n[11] = p) : p = n[11], p;
|
|
67
74
|
}
|
|
68
|
-
function
|
|
69
|
-
let
|
|
70
|
-
|
|
75
|
+
function p(t) {
|
|
76
|
+
let n = c(9), r, i;
|
|
77
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
78
|
+
let { orientation: a } = u(), s = a === "horizontal" ? "pl-4" : "pt-4", l;
|
|
79
|
+
n[3] !== r || n[4] !== s ? (l = e("min-w-0 shrink-0 grow-0 basis-full", s, r), n[3] = r, n[4] = s, n[5] = l) : l = n[5];
|
|
80
|
+
let d;
|
|
81
|
+
return n[6] !== i || n[7] !== l ? (d = /* @__PURE__ */ o("div", {
|
|
71
82
|
role: "group",
|
|
72
83
|
"aria-roledescription": "slide",
|
|
73
84
|
"data-slot": "carousel-item",
|
|
74
|
-
className:
|
|
75
|
-
...
|
|
76
|
-
});
|
|
85
|
+
className: l,
|
|
86
|
+
...i
|
|
87
|
+
}), n[6] = i, n[7] = l, n[8] = d) : d = n[8], d;
|
|
77
88
|
}
|
|
78
|
-
function
|
|
79
|
-
let { orientation:
|
|
89
|
+
function m({ className: n, variant: i = "outline", size: a = "icon", ...c }) {
|
|
90
|
+
let { orientation: l, scrollPrev: d, canScrollPrev: f } = u();
|
|
80
91
|
return /* @__PURE__ */ s(t, {
|
|
81
92
|
"data-slot": "carousel-previous",
|
|
82
93
|
variant: i,
|
|
83
94
|
size: a,
|
|
84
|
-
className: e("absolute size-8 rounded-full",
|
|
95
|
+
className: e("absolute size-8 rounded-full", l === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", n),
|
|
85
96
|
disabled: !f,
|
|
86
97
|
onClick: d,
|
|
87
98
|
...c,
|
|
@@ -91,13 +102,13 @@ function p({ className: n, variant: i = "outline", size: a = "icon", ...c }) {
|
|
|
91
102
|
})]
|
|
92
103
|
});
|
|
93
104
|
}
|
|
94
|
-
function
|
|
95
|
-
let { orientation:
|
|
105
|
+
function h({ className: n, variant: r = "outline", size: a = "icon", ...c }) {
|
|
106
|
+
let { orientation: l, scrollNext: d, canScrollNext: f } = u();
|
|
96
107
|
return /* @__PURE__ */ s(t, {
|
|
97
108
|
"data-slot": "carousel-next",
|
|
98
109
|
variant: r,
|
|
99
110
|
size: a,
|
|
100
|
-
className: e("absolute size-8 rounded-full",
|
|
111
|
+
className: e("absolute size-8 rounded-full", l === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", n),
|
|
101
112
|
disabled: !f,
|
|
102
113
|
onClick: d,
|
|
103
114
|
...c,
|
|
@@ -108,4 +119,4 @@ function m({ className: n, variant: r = "outline", size: a = "icon", ...c }) {
|
|
|
108
119
|
});
|
|
109
120
|
}
|
|
110
121
|
//#endregion
|
|
111
|
-
export {
|
|
122
|
+
export { d as Carousel, f as CarouselContent, p as CarouselItem, h as CarouselNext, m as CarouselPrevious };
|
package/dist/index27.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs"),r=require("./index26.cjs");let i=require("lucide-react"),a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs"),r=require("./index26.cjs");let i=require("lucide-react"),a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime"),s=require("react/compiler-runtime");var c=a.createContext(null);function l(){let e=a.useContext(c);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function u({orientation:e=`horizontal`,opts:n,setApi:i,plugins:s,className:l,children:u,...d}){let[f,p]=r.useEmblaCarousel({...n,axis:e===`horizontal`?`x`:`y`},s),[m,h]=a.useState(!1),[g,_]=a.useState(!1),v=a.useCallback(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=a.useCallback(()=>{p?.scrollPrev()},[p]),b=a.useCallback(()=>{p?.scrollNext()},[p]),x=a.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return a.useEffect(()=>{!p||!i||i(p)},[p,i]),a.useEffect(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,o.jsx)(c.Provider,{value:{carouselRef:f,api:p,opts:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,o.jsx)(`div`,{onKeyDownCapture:x,className:t.cn(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function d(e){let n=(0,s.c)(12),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let{carouselRef:a,orientation:c}=l(),u=c===`horizontal`?`-ml-4`:`-mt-4 flex-col`,d;n[3]!==r||n[4]!==u?(d=t.cn(`flex`,u,r),n[3]=r,n[4]=u,n[5]=d):d=n[5];let f;n[6]!==i||n[7]!==d?(f=(0,o.jsx)(`div`,{className:d,...i}),n[6]=i,n[7]=d,n[8]=f):f=n[8];let p;return n[9]!==a||n[10]!==f?(p=(0,o.jsx)(`div`,{ref:a,className:`overflow-hidden`,"data-slot":`carousel-content`,children:f}),n[9]=a,n[10]=f,n[11]=p):p=n[11],p}function f(e){let n=(0,s.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let{orientation:a}=l(),c=a===`horizontal`?`pl-4`:`pt-4`,u;n[3]!==r||n[4]!==c?(u=t.cn(`min-w-0 shrink-0 grow-0 basis-full`,c,r),n[3]=r,n[4]=c,n[5]=u):u=n[5];let d;return n[6]!==i||n[7]!==u?(d=(0,o.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:u,...i}),n[6]=i,n[7]=u,n[8]=d):d=n[8],d}function p({className:e,variant:r=`outline`,size:a=`icon`,...s}){let{orientation:c,scrollPrev:u,canScrollPrev:d}=l();return(0,o.jsxs)(n.Button,{"data-slot":`carousel-previous`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,c===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,o.jsx)(i.ArrowLeft,{}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function m({className:e,variant:r=`outline`,size:a=`icon`,...s}){let{orientation:c,scrollNext:u,canScrollNext:d}=l();return(0,o.jsxs)(n.Button,{"data-slot":`carousel-next`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,c===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,o.jsx)(i.ArrowRight,{}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=u,exports.CarouselContent=d,exports.CarouselItem=f,exports.CarouselNext=m,exports.CarouselPrevious=p;
|
package/dist/index27.js
CHANGED
|
@@ -2,19 +2,27 @@ import { cn as e } from "./index3.js";
|
|
|
2
2
|
import { CheckIcon as t } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
5
|
+
import { c as r } from "react/compiler-runtime";
|
|
6
|
+
import * as i from "@radix-ui/react-checkbox";
|
|
6
7
|
//#region src/ui/checkbox.tsx
|
|
7
|
-
function
|
|
8
|
-
|
|
8
|
+
function a(a) {
|
|
9
|
+
let o = r(9), s, c;
|
|
10
|
+
o[0] === a ? (s = o[1], c = o[2]) : ({className: s, ...c} = a, o[0] = a, o[1] = s, o[2] = c);
|
|
11
|
+
let l;
|
|
12
|
+
o[3] === s ? l = o[4] : (l = e("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", s), o[3] = s, o[4] = l);
|
|
13
|
+
let u;
|
|
14
|
+
o[5] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ n(i.Indicator, {
|
|
15
|
+
"data-slot": "checkbox-indicator",
|
|
16
|
+
className: "grid place-content-center text-current transition-none",
|
|
17
|
+
children: /* @__PURE__ */ n(t, { className: "size-3.5" })
|
|
18
|
+
}), o[5] = u) : u = o[5];
|
|
19
|
+
let d;
|
|
20
|
+
return o[6] !== c || o[7] !== l ? (d = /* @__PURE__ */ n(i.Root, {
|
|
9
21
|
"data-slot": "checkbox",
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
12
|
-
children:
|
|
13
|
-
|
|
14
|
-
className: "grid place-content-center text-current transition-none",
|
|
15
|
-
children: /* @__PURE__ */ n(t, { className: "size-3.5" })
|
|
16
|
-
})
|
|
17
|
-
});
|
|
22
|
+
className: l,
|
|
23
|
+
...c,
|
|
24
|
+
children: u
|
|
25
|
+
}), o[6] = c, o[7] = l, o[8] = d) : d = o[8], d;
|
|
18
26
|
}
|
|
19
27
|
//#endregion
|
|
20
|
-
export {
|
|
28
|
+
export { a as Checkbox };
|
package/dist/index28.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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-checkbox");
|
|
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("react/compiler-runtime"),o=require("@radix-ui/react-checkbox");o=e.__toESM(o,1);function s(e){let r=(0,a.c)(9),s,c;r[0]===e?(s=r[1],c=r[2]):({className:s,...c}=e,r[0]=e,r[1]=s,r[2]=c);let l;r[3]===s?l=r[4]:(l=t.cn(`peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,s),r[3]=s,r[4]=l);let u;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,i.jsx)(o.Indicator,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,i.jsx)(n.CheckIcon,{className:`size-3.5`})}),r[5]=u):u=r[5];let d;return r[6]!==c||r[7]!==l?(d=(0,i.jsx)(o.Root,{"data-slot":`checkbox`,className:l,...c,children:u}),r[6]=c,r[7]=l,r[8]=d):d=r[8],d}exports.Checkbox=s;
|
package/dist/index33.js
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { CollapsibleContent as e, CollapsibleTrigger as t, Root as n } from "./index32.js";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { c as i } from "react/compiler-runtime";
|
|
4
5
|
//#region src/ui/collapsible.tsx
|
|
5
|
-
function
|
|
6
|
-
|
|
6
|
+
function a(e) {
|
|
7
|
+
let t = i(4), a;
|
|
8
|
+
t[0] === e ? a = t[1] : ({...a} = e, t[0] = e, t[1] = a);
|
|
9
|
+
let o;
|
|
10
|
+
return t[2] === a ? o = t[3] : (o = /* @__PURE__ */ r(n, {
|
|
7
11
|
"data-slot": "collapsible",
|
|
8
|
-
...
|
|
9
|
-
});
|
|
12
|
+
...a
|
|
13
|
+
}), t[2] = a, t[3] = o), o;
|
|
10
14
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
15
|
+
function o(e) {
|
|
16
|
+
let n = i(4), a;
|
|
17
|
+
n[0] === e ? a = n[1] : ({...a} = e, n[0] = e, n[1] = a);
|
|
18
|
+
let o;
|
|
19
|
+
return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(t, {
|
|
13
20
|
"data-slot": "collapsible-trigger",
|
|
14
|
-
...
|
|
15
|
-
});
|
|
21
|
+
...a
|
|
22
|
+
}), n[2] = a, n[3] = o), o;
|
|
16
23
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
24
|
+
function s(t) {
|
|
25
|
+
let n = i(4), a;
|
|
26
|
+
n[0] === t ? a = n[1] : ({...a} = t, n[0] = t, n[1] = a);
|
|
27
|
+
let o;
|
|
28
|
+
return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(e, {
|
|
19
29
|
"data-slot": "collapsible-content",
|
|
20
|
-
...
|
|
21
|
-
});
|
|
30
|
+
...a
|
|
31
|
+
}), n[2] = a, n[3] = o), o;
|
|
22
32
|
}
|
|
23
33
|
//#endregion
|
|
24
|
-
export {
|
|
34
|
+
export { a as Collapsible, s as CollapsibleContent, o as CollapsibleTrigger };
|
package/dist/index34.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index33.cjs");let t=require("react/jsx-runtime");function n({...
|
|
1
|
+
"use client";const e=require("./index33.cjs");let t=require("react/jsx-runtime"),n=require("react/compiler-runtime");function r(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.Root,{"data-slot":`collapsible`,...a}),i[2]=a,i[3]=o),o}function i(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.CollapsibleTrigger,{"data-slot":`collapsible-trigger`,...a}),i[2]=a,i[3]=o),o}function a(r){let i=(0,n.c)(4),a;i[0]===r?a=i[1]:({...a}=r,i[0]=r,i[1]=a);let o;return i[2]===a?o=i[3]:(o=(0,t.jsx)(e.CollapsibleContent,{"data-slot":`collapsible-content`,...a}),i[2]=a,i[3]=o),o}exports.Collapsible=r,exports.CollapsibleContent=a,exports.CollapsibleTrigger=i;
|
package/dist/index34.js
CHANGED
|
@@ -2,47 +2,65 @@ import { cn as e } from "./index3.js";
|
|
|
2
2
|
import { XIcon as t } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
5
|
+
import { c as i } from "react/compiler-runtime";
|
|
6
|
+
import * as a from "@radix-ui/react-dialog";
|
|
6
7
|
//#region src/ui/dialog.tsx
|
|
7
|
-
function
|
|
8
|
-
|
|
8
|
+
function o(e) {
|
|
9
|
+
let t = i(4), r;
|
|
10
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
11
|
+
let o;
|
|
12
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ n(a.Root, {
|
|
9
13
|
"data-slot": "dialog",
|
|
10
|
-
...
|
|
11
|
-
});
|
|
14
|
+
...r
|
|
15
|
+
}), t[2] = r, t[3] = o), o;
|
|
12
16
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
17
|
+
function s(e) {
|
|
18
|
+
let t = i(4), r;
|
|
19
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
20
|
+
let o;
|
|
21
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ n(a.Trigger, {
|
|
15
22
|
"data-slot": "dialog-trigger",
|
|
16
|
-
...
|
|
17
|
-
});
|
|
23
|
+
...r
|
|
24
|
+
}), t[2] = r, t[3] = o), o;
|
|
18
25
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
26
|
+
function c(e) {
|
|
27
|
+
let t = i(4), r;
|
|
28
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
29
|
+
let o;
|
|
30
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ n(a.Portal, {
|
|
21
31
|
"data-slot": "dialog-portal",
|
|
22
|
-
...
|
|
23
|
-
});
|
|
32
|
+
...r
|
|
33
|
+
}), t[2] = r, t[3] = o), o;
|
|
24
34
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
35
|
+
function l(e) {
|
|
36
|
+
let t = i(4), r;
|
|
37
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
38
|
+
let o;
|
|
39
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ n(a.Close, {
|
|
27
40
|
"data-slot": "dialog-close",
|
|
28
|
-
...
|
|
29
|
-
});
|
|
41
|
+
...r
|
|
42
|
+
}), t[2] = r, t[3] = o), o;
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
44
|
+
function u(t) {
|
|
45
|
+
let r = i(8), o, s;
|
|
46
|
+
r[0] === t ? (o = r[1], s = r[2]) : ({className: o, ...s} = t, r[0] = t, r[1] = o, r[2] = s);
|
|
47
|
+
let c;
|
|
48
|
+
r[3] === o ? c = r[4] : (c = 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", o), r[3] = o, r[4] = c);
|
|
49
|
+
let l;
|
|
50
|
+
return r[5] !== s || r[6] !== c ? (l = /* @__PURE__ */ n(a.Overlay, {
|
|
33
51
|
"data-slot": "dialog-overlay",
|
|
34
|
-
className:
|
|
35
|
-
...
|
|
36
|
-
});
|
|
52
|
+
className: c,
|
|
53
|
+
...s
|
|
54
|
+
}), r[5] = s, r[6] = c, r[7] = l) : l = r[7], l;
|
|
37
55
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */ r(
|
|
56
|
+
function d({ className: i, children: o, showCloseButton: s = !0, ...l }) {
|
|
57
|
+
return /* @__PURE__ */ r(c, {
|
|
40
58
|
"data-slot": "dialog-portal",
|
|
41
|
-
children: [/* @__PURE__ */ n(
|
|
59
|
+
children: [/* @__PURE__ */ n(u, {}), /* @__PURE__ */ r(a.Content, {
|
|
42
60
|
"data-slot": "dialog-content",
|
|
43
|
-
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 outline-none sm:max-w-lg",
|
|
44
|
-
...
|
|
45
|
-
children: [o,
|
|
61
|
+
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 outline-none sm:max-w-lg", i),
|
|
62
|
+
...l,
|
|
63
|
+
children: [o, s && /* @__PURE__ */ r(a.Close, {
|
|
46
64
|
"data-slot": "dialog-close",
|
|
47
65
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
48
66
|
children: [/* @__PURE__ */ n(t, {}), /* @__PURE__ */ n("span", {
|
|
@@ -53,33 +71,53 @@ function u({ className: a, children: o, showCloseButton: c = !0, ...u }) {
|
|
|
53
71
|
})]
|
|
54
72
|
});
|
|
55
73
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
74
|
+
function f(t) {
|
|
75
|
+
let r = i(8), a, o;
|
|
76
|
+
r[0] === t ? (a = r[1], o = r[2]) : ({className: a, ...o} = t, r[0] = t, r[1] = a, r[2] = o);
|
|
77
|
+
let s;
|
|
78
|
+
r[3] === a ? s = r[4] : (s = e("flex flex-col gap-2 text-center sm:text-left", a), r[3] = a, r[4] = s);
|
|
79
|
+
let c;
|
|
80
|
+
return r[5] !== o || r[6] !== s ? (c = /* @__PURE__ */ n("div", {
|
|
58
81
|
"data-slot": "dialog-header",
|
|
59
|
-
className:
|
|
60
|
-
...
|
|
61
|
-
});
|
|
82
|
+
className: s,
|
|
83
|
+
...o
|
|
84
|
+
}), r[5] = o, r[6] = s, r[7] = c) : c = r[7], c;
|
|
62
85
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
86
|
+
function p(t) {
|
|
87
|
+
let r = i(8), a, o;
|
|
88
|
+
r[0] === t ? (a = r[1], o = r[2]) : ({className: a, ...o} = t, r[0] = t, r[1] = a, r[2] = o);
|
|
89
|
+
let s;
|
|
90
|
+
r[3] === a ? s = r[4] : (s = e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", a), r[3] = a, r[4] = s);
|
|
91
|
+
let c;
|
|
92
|
+
return r[5] !== o || r[6] !== s ? (c = /* @__PURE__ */ n("div", {
|
|
65
93
|
"data-slot": "dialog-footer",
|
|
66
|
-
className:
|
|
67
|
-
...
|
|
68
|
-
});
|
|
94
|
+
className: s,
|
|
95
|
+
...o
|
|
96
|
+
}), r[5] = o, r[6] = s, r[7] = c) : c = r[7], c;
|
|
69
97
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
98
|
+
function m(t) {
|
|
99
|
+
let r = i(8), o, s;
|
|
100
|
+
r[0] === t ? (o = r[1], s = r[2]) : ({className: o, ...s} = t, r[0] = t, r[1] = o, r[2] = s);
|
|
101
|
+
let c;
|
|
102
|
+
r[3] === o ? c = r[4] : (c = e("text-lg leading-none font-semibold", o), r[3] = o, r[4] = c);
|
|
103
|
+
let l;
|
|
104
|
+
return r[5] !== s || r[6] !== c ? (l = /* @__PURE__ */ n(a.Title, {
|
|
72
105
|
"data-slot": "dialog-title",
|
|
73
|
-
className:
|
|
74
|
-
...
|
|
75
|
-
});
|
|
106
|
+
className: c,
|
|
107
|
+
...s
|
|
108
|
+
}), r[5] = s, r[6] = c, r[7] = l) : l = r[7], l;
|
|
76
109
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
110
|
+
function h(t) {
|
|
111
|
+
let r = i(8), o, s;
|
|
112
|
+
r[0] === t ? (o = r[1], s = r[2]) : ({className: o, ...s} = t, r[0] = t, r[1] = o, r[2] = s);
|
|
113
|
+
let c;
|
|
114
|
+
r[3] === o ? c = r[4] : (c = e("text-muted-foreground text-sm", o), r[3] = o, r[4] = c);
|
|
115
|
+
let l;
|
|
116
|
+
return r[5] !== s || r[6] !== c ? (l = /* @__PURE__ */ n(a.Description, {
|
|
79
117
|
"data-slot": "dialog-description",
|
|
80
|
-
className:
|
|
81
|
-
...
|
|
82
|
-
});
|
|
118
|
+
className: c,
|
|
119
|
+
...s
|
|
120
|
+
}), r[5] = s, r[6] = c, r[7] = l) : l = r[7], l;
|
|
83
121
|
}
|
|
84
122
|
//#endregion
|
|
85
|
-
export {
|
|
123
|
+
export { o as Dialog, l as DialogClose, d as DialogContent, h as DialogDescription, p as DialogFooter, f as DialogHeader, u as DialogOverlay, c as DialogPortal, m as DialogTitle, s as DialogTrigger };
|
package/dist/index35.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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-dialog");
|
|
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("react/compiler-runtime"),o=require("@radix-ui/react-dialog");o=e.__toESM(o,1);function s(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Root,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function c(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Trigger,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function l(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Portal,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function u(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Close,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function d(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`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`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.Overlay,{"data-slot":`dialog-overlay`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}function f({className:e,children:r,showCloseButton:a=!0,...s}){return(0,i.jsxs)(l,{"data-slot":`dialog-portal`,children:[(0,i.jsx)(d,{}),(0,i.jsxs)(o.Content,{"data-slot":`dialog-content`,className:t.cn(`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 outline-none sm:max-w-lg`,e),...s,children:[r,a&&(0,i.jsxs)(o.Close,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,i.jsx)(n.XIcon,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function p(e){let n=(0,a.c)(8),r,o;n[0]===e?(r=n[1],o=n[2]):({className:r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=t.cn(`flex flex-col gap-2 text-center sm:text-left`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{"data-slot":`dialog-header`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function m(e){let n=(0,a.c)(8),r,o;n[0]===e?(r=n[1],o=n[2]):({className:r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=t.cn(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{"data-slot":`dialog-footer`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function h(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`text-lg leading-none font-semibold`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.Title,{"data-slot":`dialog-title`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}function g(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`text-muted-foreground text-sm`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.Description,{"data-slot":`dialog-description`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}exports.Dialog=s,exports.DialogClose=u,exports.DialogContent=f,exports.DialogDescription=g,exports.DialogFooter=m,exports.DialogHeader=p,exports.DialogOverlay=d,exports.DialogPortal=l,exports.DialogTitle=h,exports.DialogTrigger=c;
|