fina-react-ds 1.0.24 → 1.0.27
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/components/alert-dialog.js +22 -22
- package/dist/components/alert.js +26 -26
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +20 -20
- package/dist/components/button.js +52 -52
- package/dist/components/calendar.js +83 -83
- package/dist/components/card.js +46 -46
- package/dist/components/checkbox.js +21 -21
- package/dist/components/date-picker.js +23 -23
- package/dist/components/dialog.js +38 -38
- package/dist/components/dropdown-menu.js +23 -23
- package/dist/components/file-uploader.js +47 -47
- package/dist/components/form-switch.js +9 -9
- package/dist/components/form.js +15 -15
- package/dist/components/hover-card.js +5 -5
- package/dist/components/input.js +15 -15
- package/dist/components/label.js +17 -17
- package/dist/components/mode-toggle.js +17 -17
- package/dist/components/pagination.js +25 -25
- package/dist/components/popover.js +8 -8
- package/dist/components/select.js +38 -38
- package/dist/components/sheet.js +78 -76
- package/dist/components/sidebar.js +198 -198
- package/dist/components/skeleton.js +7 -7
- package/dist/components/sonner.js +3 -3
- package/dist/components/switch.js +20 -20
- package/dist/components/table.js +44 -44
- package/dist/components/tabs.js +29 -29
- package/dist/components/textarea.js +12 -12
- package/dist/components/tooltip.js +14 -14
- package/dist/lib/arrays.d.ts +2 -2
- package/dist/lib/arrays.js +3 -3
- package/dist/providers/loader-provider.js +7 -7
- package/dist/themes/base.css +985 -884
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (t, a) =>
|
|
3
|
-
import { jsx as o, jsxs as
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var e = (t, a) => s(t, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
4
4
|
import { AlertDialog as l } from "radix-ui";
|
|
5
5
|
import { cn as r } from "../lib/utils.js";
|
|
6
|
-
import { buttonVariants as
|
|
6
|
+
import { buttonVariants as i } from "./button.js";
|
|
7
7
|
function A({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
@@ -16,13 +16,13 @@ function D({
|
|
|
16
16
|
return /* @__PURE__ */ o(l.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
17
17
|
}
|
|
18
18
|
e(D, "AlertDialogTrigger");
|
|
19
|
-
function
|
|
19
|
+
function c({
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ o(l.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
23
23
|
}
|
|
24
|
-
e(
|
|
25
|
-
function
|
|
24
|
+
e(c, "AlertDialogPortal");
|
|
25
|
+
function g({
|
|
26
26
|
className: t,
|
|
27
27
|
...a
|
|
28
28
|
}) {
|
|
@@ -31,26 +31,26 @@ function d({
|
|
|
31
31
|
{
|
|
32
32
|
"data-slot": "alert-dialog-overlay",
|
|
33
33
|
className: r(
|
|
34
|
-
"
|
|
34
|
+
"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",
|
|
35
35
|
t
|
|
36
36
|
),
|
|
37
37
|
...a
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
e(
|
|
41
|
+
e(g, "AlertDialogOverlay");
|
|
42
42
|
function N({
|
|
43
43
|
className: t,
|
|
44
44
|
...a
|
|
45
45
|
}) {
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */ o(
|
|
46
|
+
return /* @__PURE__ */ d(c, { children: [
|
|
47
|
+
/* @__PURE__ */ o(g, {}),
|
|
48
48
|
/* @__PURE__ */ o(
|
|
49
49
|
l.Content,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "alert-dialog-content",
|
|
52
52
|
className: r(
|
|
53
|
-
"
|
|
53
|
+
"bg-card data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
54
54
|
t
|
|
55
55
|
),
|
|
56
56
|
...a
|
|
@@ -68,7 +68,7 @@ function v({
|
|
|
68
68
|
{
|
|
69
69
|
"data-slot": "alert-dialog-header",
|
|
70
70
|
className: r(
|
|
71
|
-
"
|
|
71
|
+
"flex flex-col gap-2 text-center sm:text-left",
|
|
72
72
|
t
|
|
73
73
|
),
|
|
74
74
|
...a
|
|
@@ -85,7 +85,7 @@ function b({
|
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "alert-dialog-footer",
|
|
87
87
|
className: r(
|
|
88
|
-
"
|
|
88
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
89
89
|
t
|
|
90
90
|
),
|
|
91
91
|
...a
|
|
@@ -101,7 +101,7 @@ function y({
|
|
|
101
101
|
l.Title,
|
|
102
102
|
{
|
|
103
103
|
"data-slot": "alert-dialog-title",
|
|
104
|
-
className: r("
|
|
104
|
+
className: r("text-lg font-semibold", t),
|
|
105
105
|
...a
|
|
106
106
|
}
|
|
107
107
|
);
|
|
@@ -115,7 +115,7 @@ function w({
|
|
|
115
115
|
l.Description,
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "alert-dialog-description",
|
|
118
|
-
className: r("
|
|
118
|
+
className: r("text-muted text-sm", t),
|
|
119
119
|
...a
|
|
120
120
|
}
|
|
121
121
|
);
|
|
@@ -124,13 +124,13 @@ e(w, "AlertDialogDescription");
|
|
|
124
124
|
function h({
|
|
125
125
|
color: t = "primary",
|
|
126
126
|
className: a,
|
|
127
|
-
...
|
|
127
|
+
...n
|
|
128
128
|
}) {
|
|
129
129
|
return /* @__PURE__ */ o(
|
|
130
130
|
l.Action,
|
|
131
131
|
{
|
|
132
|
-
className: r(
|
|
133
|
-
...
|
|
132
|
+
className: r(i({ color: t }), a),
|
|
133
|
+
...n
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
136
|
}
|
|
@@ -143,7 +143,7 @@ function z({
|
|
|
143
143
|
l.Cancel,
|
|
144
144
|
{
|
|
145
145
|
className: r(
|
|
146
|
-
|
|
146
|
+
i({ variant: "ghost", color: "dark" }),
|
|
147
147
|
t
|
|
148
148
|
),
|
|
149
149
|
...a
|
|
@@ -159,8 +159,8 @@ export {
|
|
|
159
159
|
w as AlertDialogDescription,
|
|
160
160
|
b as AlertDialogFooter,
|
|
161
161
|
v as AlertDialogHeader,
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
g as AlertDialogOverlay,
|
|
163
|
+
c as AlertDialogPortal,
|
|
164
164
|
y as AlertDialogTitle,
|
|
165
165
|
D as AlertDialogTrigger
|
|
166
166
|
};
|
package/dist/components/alert.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
7
|
-
"
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var e = (t, r) => g(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { cn as o } from "../lib/utils.js";
|
|
6
|
+
const a = n(
|
|
7
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
info: "
|
|
12
|
-
warning: "
|
|
13
|
-
success: "
|
|
14
|
-
destructive: "
|
|
11
|
+
info: "bg-info-light *:data-[slot=alert-description]:text-info-light-foreground text-info-light-foreground border-info-light-foreground/20 [&>svg]:text-info-light-foreground",
|
|
12
|
+
warning: "bg-warning-light text-warning-light-foreground border-warning-light-foreground/20 [&>svg]:text-warning-light-foreground",
|
|
13
|
+
success: "bg-success-light text-success-light-foreground border-success-light-foreground/20 [&>svg]:text-success-light-foreground",
|
|
14
|
+
destructive: "bg-destructive-light text-destructive-light-foreground border-destructive-light-foreground/20 [&>svg]:text-destructive-light-foreground"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaultVariants: {
|
|
@@ -19,55 +19,55 @@ const g = s(
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
function
|
|
22
|
+
function f({
|
|
23
23
|
variant: t,
|
|
24
24
|
className: r,
|
|
25
|
-
...
|
|
25
|
+
...s
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ i(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
30
|
"data-slot": "alert",
|
|
31
31
|
role: "alert",
|
|
32
|
-
className:
|
|
33
|
-
...
|
|
32
|
+
className: o(a({ variant: t }), r),
|
|
33
|
+
...s
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
e(f, "Alert");
|
|
38
38
|
function v({ className: t, ...r }) {
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ i(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
"data-slot": "alert-title",
|
|
43
|
-
className:
|
|
44
|
-
"
|
|
43
|
+
className: o(
|
|
44
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
45
45
|
t
|
|
46
46
|
),
|
|
47
47
|
...r
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
e(v, "AlertTitle");
|
|
52
52
|
function h({
|
|
53
53
|
className: t,
|
|
54
54
|
...r
|
|
55
55
|
}) {
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ i(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
59
|
"data-slot": "alert-description",
|
|
60
|
-
className:
|
|
61
|
-
"
|
|
60
|
+
className: o(
|
|
61
|
+
"col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
62
62
|
t
|
|
63
63
|
),
|
|
64
64
|
...r
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
e(h, "AlertDescription");
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
f as Alert,
|
|
71
71
|
h as AlertDescription,
|
|
72
72
|
v as AlertTitle
|
|
73
73
|
};
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { cn as
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var e = (a, t) => s(a, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { Avatar as l } from "radix-ui";
|
|
5
|
+
import { cn as o } from "../lib/utils.js";
|
|
6
6
|
function u({
|
|
7
7
|
className: a,
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
l.Root,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "avatar",
|
|
14
|
-
className:
|
|
15
|
-
"
|
|
14
|
+
className: o(
|
|
15
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
16
16
|
a
|
|
17
17
|
),
|
|
18
18
|
...t
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
e(u, "Avatar");
|
|
23
23
|
function m({
|
|
24
24
|
className: a,
|
|
25
25
|
...t
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
27
|
+
return /* @__PURE__ */ r(
|
|
28
|
+
l.Image,
|
|
29
29
|
{
|
|
30
30
|
"data-slot": "avatar-image",
|
|
31
|
-
className:
|
|
31
|
+
className: o("aspect-square size-full", a),
|
|
32
32
|
...t
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
e(m, "AvatarImage");
|
|
37
37
|
function v({
|
|
38
38
|
className: a,
|
|
39
39
|
...t
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
41
|
+
return /* @__PURE__ */ r(
|
|
42
|
+
l.Fallback,
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "avatar-fallback",
|
|
45
|
-
className:
|
|
46
|
-
"
|
|
45
|
+
className: o(
|
|
46
|
+
"bg-accent flex size-full items-center justify-center rounded-full",
|
|
47
47
|
a
|
|
48
48
|
),
|
|
49
49
|
...t
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
e(v, "AvatarFallback");
|
|
54
54
|
export {
|
|
55
55
|
u as Avatar,
|
|
56
56
|
v as AvatarFallback,
|
package/dist/components/badge.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (r, i) =>
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
8
|
-
"
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var e = (r, i) => s(r, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
+
import { Slot as a } from "radix-ui";
|
|
5
|
+
import { cva as d } from "class-variance-authority";
|
|
6
|
+
import { cn as f } from "../lib/utils.js";
|
|
7
|
+
const l = d(
|
|
8
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
|
-
primary: "
|
|
13
|
-
info: "
|
|
14
|
-
warning: "
|
|
15
|
-
success: "
|
|
16
|
-
destructive: "
|
|
12
|
+
primary: "bg-primary-light text-primary-light-foreground border-primary-light-foreground/20",
|
|
13
|
+
info: "bg-info-light text-info-light-foreground border-info-light-foreground/20",
|
|
14
|
+
warning: "bg-warning-light text-warning-light-foreground border-warning-light-foreground/20",
|
|
15
|
+
success: "bg-success-light text-success-light-foreground border-success-light-foreground/20",
|
|
16
|
+
destructive: "bg-destructive-light text-destructive-light-foreground border-destructive-light-foreground/20"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
defaultVariants: {
|
|
@@ -25,20 +25,20 @@ function m({
|
|
|
25
25
|
className: r,
|
|
26
26
|
variant: i,
|
|
27
27
|
asChild: t = !1,
|
|
28
|
-
...
|
|
28
|
+
...o
|
|
29
29
|
}) {
|
|
30
|
-
const
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
30
|
+
const n = t ? a.Root : "span";
|
|
31
|
+
return /* @__PURE__ */ g(
|
|
32
|
+
n,
|
|
33
33
|
{
|
|
34
34
|
"data-slot": "badge",
|
|
35
|
-
className:
|
|
36
|
-
...
|
|
35
|
+
className: f(l({ variant: i }), r),
|
|
36
|
+
...o
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
e(m, "Badge");
|
|
41
41
|
export {
|
|
42
42
|
m as Badge,
|
|
43
|
-
|
|
43
|
+
l as badgeVariants
|
|
44
44
|
};
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
8
|
-
"
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var o = (r, e) => c(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
4
|
+
import { Slot as v } from "radix-ui";
|
|
5
|
+
import { cva as g } from "class-variance-authority";
|
|
6
|
+
import { cn as u } from "../lib/utils.js";
|
|
7
|
+
const l = g(
|
|
8
|
+
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
color: {
|
|
12
|
-
primary: "
|
|
13
|
-
info: "
|
|
14
|
-
success: "
|
|
15
|
-
warning: "
|
|
16
|
-
destructive: "
|
|
17
|
-
dark: "
|
|
12
|
+
primary: "focus-visible:ring-primary/50",
|
|
13
|
+
info: "focus-visible:ring-info/50",
|
|
14
|
+
success: "focus-visible:ring-success/50",
|
|
15
|
+
warning: "focus-visible:ring-warning/50",
|
|
16
|
+
destructive: "focus-visible:ring-destructive/50",
|
|
17
|
+
dark: "focus-visible:ring-black/50"
|
|
18
18
|
},
|
|
19
19
|
variant: {
|
|
20
|
-
contained: "
|
|
21
|
-
outline: "
|
|
22
|
-
ghost: "
|
|
23
|
-
link: "
|
|
20
|
+
contained: "border",
|
|
21
|
+
outline: "border bg-transparent",
|
|
22
|
+
ghost: "border border-transparent",
|
|
23
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
24
24
|
},
|
|
25
25
|
size: {
|
|
26
|
-
default: "
|
|
27
|
-
sm: "
|
|
28
|
-
lg: "
|
|
29
|
-
icon: "
|
|
26
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
27
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
28
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
29
|
+
icon: "size-9"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
compoundVariants: [
|
|
33
33
|
{
|
|
34
34
|
color: "primary",
|
|
35
35
|
variant: "contained",
|
|
36
|
-
className: "
|
|
36
|
+
className: "bg-primary border-primary text-primary-foreground hover:bg-primary/90"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
color: "info",
|
|
40
40
|
variant: "contained",
|
|
41
|
-
className: "
|
|
41
|
+
className: "bg-info border-info text-info-foreground hover:bg-info/90"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
color: "success",
|
|
45
45
|
variant: "contained",
|
|
46
|
-
className: "
|
|
46
|
+
className: "bg-success border-success text-success-foreground hover:bg-success/90"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
color: "warning",
|
|
50
50
|
variant: "contained",
|
|
51
|
-
className: "
|
|
51
|
+
className: "bg-warning border-warning text-warning-foreground hover:bg-warning/90"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
color: "destructive",
|
|
55
55
|
variant: "contained",
|
|
56
|
-
className: "
|
|
56
|
+
className: "bg-destructive border-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
color: "dark",
|
|
60
60
|
variant: "contained",
|
|
61
|
-
className: "
|
|
61
|
+
className: "bg-dark border-dark text-dark-foreground hover:bg-dark/90"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
color: "primary",
|
|
65
65
|
variant: "outline",
|
|
66
|
-
className: "
|
|
66
|
+
className: "border-primary text-primary hover:bg-primary hover:text-primary-foreground"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
color: "info",
|
|
70
70
|
variant: "outline",
|
|
71
|
-
className: "
|
|
71
|
+
className: "border-info text-info hover:bg-info hover:text-info-foreground"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
color: "success",
|
|
75
75
|
variant: "outline",
|
|
76
|
-
className: "
|
|
76
|
+
className: "border-success text-success hover:bg-success hover:text-success-foreground"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
color: "warning",
|
|
80
80
|
variant: "outline",
|
|
81
|
-
className: "
|
|
81
|
+
className: "border-warning text-warning hover:bg-warning hover:text-warning-foreground"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
color: "destructive",
|
|
85
85
|
variant: "outline",
|
|
86
|
-
className: "
|
|
86
|
+
className: "border-destructive text-destructive hover:bg-destructive hover:text-destructive-foreground"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
color: "dark",
|
|
90
90
|
variant: "outline",
|
|
91
|
-
className: "
|
|
91
|
+
className: "border-dark text-dark hover:bg-dark hover:text-dark-foreground dark:text-dark-foreground"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
color: "primary",
|
|
95
95
|
variant: "ghost",
|
|
96
|
-
className: "
|
|
96
|
+
className: "text-primary hover:bg-primary/10"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
color: "info",
|
|
100
100
|
variant: "ghost",
|
|
101
|
-
className: "
|
|
101
|
+
className: "text-info hover:bg-info/10"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
color: "success",
|
|
105
105
|
variant: "ghost",
|
|
106
|
-
className: "
|
|
106
|
+
className: "text-success hover:bg-success/10"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
color: "warning",
|
|
110
110
|
variant: "ghost",
|
|
111
|
-
className: "
|
|
111
|
+
className: "text-warning hover:bg-warning/10"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
color: "destructive",
|
|
115
115
|
variant: "ghost",
|
|
116
|
-
className: "
|
|
116
|
+
className: "text-destructive hover:bg-destructive/10"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
color: "dark",
|
|
120
120
|
variant: "ghost",
|
|
121
|
-
className: "
|
|
121
|
+
className: "text-dark dark:text-dark-foreground hover:bg-dark/10 dark:hover:bg-dark"
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
124
|
defaultVariants: {
|
|
@@ -130,24 +130,24 @@ const u = v(
|
|
|
130
130
|
);
|
|
131
131
|
function x({
|
|
132
132
|
className: r,
|
|
133
|
-
variant:
|
|
134
|
-
color:
|
|
135
|
-
size:
|
|
136
|
-
asChild:
|
|
137
|
-
...
|
|
133
|
+
variant: e,
|
|
134
|
+
color: t,
|
|
135
|
+
size: a,
|
|
136
|
+
asChild: i = !1,
|
|
137
|
+
...n
|
|
138
138
|
}) {
|
|
139
|
-
const
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
|
|
139
|
+
const s = i ? v.Root : "button";
|
|
140
|
+
return /* @__PURE__ */ d(
|
|
141
|
+
s,
|
|
142
142
|
{
|
|
143
143
|
"data-slot": "button",
|
|
144
|
-
className:
|
|
145
|
-
...
|
|
144
|
+
className: u(l({ variant: e, color: t, size: a, className: r })),
|
|
145
|
+
...n
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
o(x, "Button");
|
|
150
150
|
export {
|
|
151
151
|
x as Button,
|
|
152
|
-
|
|
152
|
+
l as buttonVariants
|
|
153
153
|
};
|