@turingpaper/ui 0.0.1-test.1 → 0.0.1-test.3
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/accordion.mjs +46 -0
- package/dist/alert-dialog.mjs +113 -0
- package/dist/avatar.mjs +42 -0
- package/dist/badge.mjs +26 -0
- package/dist/breadcrumb.mjs +90 -0
- package/dist/button.mjs +26 -38
- package/dist/card.mjs +62 -96
- package/dist/chart.mjs +208 -0
- package/dist/checkbox.mjs +27 -0
- package/dist/collapsible.mjs +7 -0
- package/dist/command.mjs +109 -0
- package/dist/components/accordion.d.ts +6 -0
- package/dist/components/alert-dialog.d.ts +20 -0
- package/dist/components/avatar.d.ts +5 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/breadcrumb.d.ts +19 -0
- package/dist/components/button.d.ts +5 -4
- package/dist/components/card.d.ts +7 -10
- package/dist/components/chart.d.ts +62 -0
- package/dist/components/checkbox.d.ts +3 -0
- package/dist/components/collapsible.d.ts +4 -0
- package/dist/components/command.d.ts +80 -0
- package/dist/components/dialog.d.ts +19 -0
- package/dist/components/drawer.d.ts +22 -0
- package/dist/components/dropdown-menu.d.ts +23 -0
- package/dist/components/hover-card.d.ts +5 -0
- package/dist/components/input-group.d.ts +16 -0
- package/dist/components/input-otp.d.ts +34 -0
- package/dist/components/input.d.ts +1 -1
- package/dist/components/label.d.ts +3 -0
- package/dist/components/pagination.d.ts +28 -0
- package/dist/components/popover.d.ts +5 -0
- package/dist/components/progress.d.ts +3 -0
- package/dist/components/radio-group.d.ts +4 -0
- package/dist/components/scroll-area.d.ts +4 -0
- package/dist/components/select.d.ts +12 -0
- package/dist/components/separator.d.ts +3 -0
- package/dist/components/sheet.d.ts +25 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/slider.d.ts +3 -0
- package/dist/components/switch.d.ts +3 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/tabs.d.ts +6 -0
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/toggle-group.d.ts +4 -0
- package/dist/components/toggle.d.ts +7 -0
- package/dist/components/tooltip.d.ts +6 -0
- package/dist/dialog.mjs +100 -0
- package/dist/drawer.mjs +98 -0
- package/dist/dropdown-menu.mjs +143 -0
- package/dist/hover-card.mjs +23 -0
- package/dist/input-group.mjs +141 -0
- package/dist/input-otp.mjs +48 -0
- package/dist/input.mjs +15 -13
- package/dist/label.mjs +19 -0
- package/dist/pagination.mjs +105 -0
- package/dist/popover.mjs +23 -0
- package/dist/progress.mjs +26 -0
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +31 -0
- package/dist/scroll-area.mjs +38 -0
- package/dist/select.mjs +121 -0
- package/dist/separator.mjs +24 -0
- package/dist/sheet.mjs +110 -0
- package/dist/skeleton.mjs +17 -0
- package/dist/slider.mjs +23 -0
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +27 -0
- package/dist/table.mjs +87 -0
- package/dist/tabs.mjs +46 -0
- package/dist/textarea.mjs +18 -0
- package/dist/toggle-group.mjs +41 -0
- package/dist/toggle.mjs +37 -0
- package/dist/tooltip.mjs +23 -0
- package/package.json +138 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import * as e from "radix-ui";
|
|
4
|
+
import { ChevronDown as m } from "lucide-react";
|
|
5
|
+
import { cn as s } from "./utils.mjs";
|
|
6
|
+
const h = e.Root, c = i.forwardRef(({ className: o, ...a }, r) => /* @__PURE__ */ t(
|
|
7
|
+
e.Item,
|
|
8
|
+
{
|
|
9
|
+
ref: r,
|
|
10
|
+
className: s("border-b", o),
|
|
11
|
+
...a
|
|
12
|
+
}
|
|
13
|
+
));
|
|
14
|
+
c.displayName = "AccordionItem";
|
|
15
|
+
const l = i.forwardRef(({ className: o, children: a, ...r }, n) => /* @__PURE__ */ t(e.Header, { className: "flex", children: /* @__PURE__ */ d(
|
|
16
|
+
e.Trigger,
|
|
17
|
+
{
|
|
18
|
+
ref: n,
|
|
19
|
+
className: s(
|
|
20
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
21
|
+
o
|
|
22
|
+
),
|
|
23
|
+
...r,
|
|
24
|
+
children: [
|
|
25
|
+
a,
|
|
26
|
+
/* @__PURE__ */ t(m, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
) }));
|
|
30
|
+
l.displayName = e.Trigger.displayName;
|
|
31
|
+
const f = i.forwardRef(({ className: o, children: a, ...r }, n) => /* @__PURE__ */ t(
|
|
32
|
+
e.Content,
|
|
33
|
+
{
|
|
34
|
+
ref: n,
|
|
35
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
36
|
+
...r,
|
|
37
|
+
children: /* @__PURE__ */ t("div", { className: s("pb-4 pt-0", o), children: a })
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
f.displayName = e.Content.displayName;
|
|
41
|
+
export {
|
|
42
|
+
h as Accordion,
|
|
43
|
+
f as AccordionContent,
|
|
44
|
+
c as AccordionItem,
|
|
45
|
+
l as AccordionTrigger
|
|
46
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import * as t from "radix-ui";
|
|
4
|
+
import { cn as s } from "./utils.mjs";
|
|
5
|
+
import { buttonVariants as r } from "./button.mjs";
|
|
6
|
+
const w = t.Root, v = t.Trigger, m = t.Portal, d = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
|
|
7
|
+
t.Overlay,
|
|
8
|
+
{
|
|
9
|
+
className: s(
|
|
10
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
11
|
+
a
|
|
12
|
+
),
|
|
13
|
+
...e,
|
|
14
|
+
ref: o
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
d.displayName = t.Overlay.displayName;
|
|
18
|
+
const c = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ n(m, { children: [
|
|
19
|
+
/* @__PURE__ */ l(d, {}),
|
|
20
|
+
/* @__PURE__ */ l(
|
|
21
|
+
t.Content,
|
|
22
|
+
{
|
|
23
|
+
ref: o,
|
|
24
|
+
className: s(
|
|
25
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
26
|
+
a
|
|
27
|
+
),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }));
|
|
32
|
+
c.displayName = t.Content.displayName;
|
|
33
|
+
const f = ({
|
|
34
|
+
className: a,
|
|
35
|
+
...e
|
|
36
|
+
}) => /* @__PURE__ */ l(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
className: s(
|
|
40
|
+
"flex flex-col space-y-2 text-center sm:text-left",
|
|
41
|
+
a
|
|
42
|
+
),
|
|
43
|
+
...e
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
f.displayName = "AlertDialogHeader";
|
|
47
|
+
const p = ({
|
|
48
|
+
className: a,
|
|
49
|
+
...e
|
|
50
|
+
}) => /* @__PURE__ */ l(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: s(
|
|
54
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
55
|
+
a
|
|
56
|
+
),
|
|
57
|
+
...e
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
p.displayName = "AlertDialogFooter";
|
|
61
|
+
const g = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
|
|
62
|
+
t.Title,
|
|
63
|
+
{
|
|
64
|
+
ref: o,
|
|
65
|
+
className: s("text-lg font-semibold", a),
|
|
66
|
+
...e
|
|
67
|
+
}
|
|
68
|
+
));
|
|
69
|
+
g.displayName = t.Title.displayName;
|
|
70
|
+
const N = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
|
|
71
|
+
t.Description,
|
|
72
|
+
{
|
|
73
|
+
ref: o,
|
|
74
|
+
className: s("text-sm text-muted-foreground", a),
|
|
75
|
+
...e
|
|
76
|
+
}
|
|
77
|
+
));
|
|
78
|
+
N.displayName = t.Description.displayName;
|
|
79
|
+
const y = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
|
|
80
|
+
t.Action,
|
|
81
|
+
{
|
|
82
|
+
ref: o,
|
|
83
|
+
className: s(r(), a),
|
|
84
|
+
...e
|
|
85
|
+
}
|
|
86
|
+
));
|
|
87
|
+
y.displayName = t.Action.displayName;
|
|
88
|
+
const x = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
|
|
89
|
+
t.Cancel,
|
|
90
|
+
{
|
|
91
|
+
ref: o,
|
|
92
|
+
className: s(
|
|
93
|
+
r({ variant: "outline" }),
|
|
94
|
+
"mt-2 sm:mt-0",
|
|
95
|
+
a
|
|
96
|
+
),
|
|
97
|
+
...e
|
|
98
|
+
}
|
|
99
|
+
));
|
|
100
|
+
x.displayName = t.Cancel.displayName;
|
|
101
|
+
export {
|
|
102
|
+
w as AlertDialog,
|
|
103
|
+
y as AlertDialogAction,
|
|
104
|
+
x as AlertDialogCancel,
|
|
105
|
+
c as AlertDialogContent,
|
|
106
|
+
N as AlertDialogDescription,
|
|
107
|
+
p as AlertDialogFooter,
|
|
108
|
+
f as AlertDialogHeader,
|
|
109
|
+
d as AlertDialogOverlay,
|
|
110
|
+
m as AlertDialogPortal,
|
|
111
|
+
g as AlertDialogTitle,
|
|
112
|
+
v as AlertDialogTrigger
|
|
113
|
+
};
|
package/dist/avatar.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import * as a from "radix-ui";
|
|
4
|
+
import { cn as s } from "./utils.mjs";
|
|
5
|
+
const t = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
|
|
6
|
+
a.Root,
|
|
7
|
+
{
|
|
8
|
+
ref: r,
|
|
9
|
+
className: s(
|
|
10
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
11
|
+
e
|
|
12
|
+
),
|
|
13
|
+
...l
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
t.displayName = a.Root.displayName;
|
|
17
|
+
const f = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
|
|
18
|
+
a.Image,
|
|
19
|
+
{
|
|
20
|
+
ref: r,
|
|
21
|
+
className: s("aspect-square h-full w-full", e),
|
|
22
|
+
...l
|
|
23
|
+
}
|
|
24
|
+
));
|
|
25
|
+
f.displayName = a.Image.displayName;
|
|
26
|
+
const i = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
|
|
27
|
+
a.Fallback,
|
|
28
|
+
{
|
|
29
|
+
ref: r,
|
|
30
|
+
className: s(
|
|
31
|
+
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
32
|
+
e
|
|
33
|
+
),
|
|
34
|
+
...l
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
i.displayName = a.Fallback.displayName;
|
|
38
|
+
export {
|
|
39
|
+
t as Avatar,
|
|
40
|
+
i as AvatarFallback,
|
|
41
|
+
f as AvatarImage
|
|
42
|
+
};
|
package/dist/badge.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { cn as a } from "./utils.mjs";
|
|
4
|
+
const i = n(
|
|
5
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
10
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
11
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
12
|
+
outline: "text-foreground"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
function f({ className: r, variant: e, ...t }) {
|
|
21
|
+
return /* @__PURE__ */ o("div", { className: a(i({ variant: e }), r), ...t });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as Badge,
|
|
25
|
+
i as badgeVariants
|
|
26
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { Slot as n } from "radix-ui";
|
|
4
|
+
import { MoreHorizontal as c, ChevronRight as d } from "lucide-react";
|
|
5
|
+
import { cn as o } from "./utils.mjs";
|
|
6
|
+
const l = t.forwardRef(({ ...r }, e) => /* @__PURE__ */ s("nav", { ref: e, "aria-label": "breadcrumb", ...r }));
|
|
7
|
+
l.displayName = "Breadcrumb";
|
|
8
|
+
const p = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
9
|
+
"ol",
|
|
10
|
+
{
|
|
11
|
+
ref: a,
|
|
12
|
+
className: o(
|
|
13
|
+
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
14
|
+
r
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
|
+
p.displayName = "BreadcrumbList";
|
|
20
|
+
const u = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
21
|
+
"li",
|
|
22
|
+
{
|
|
23
|
+
ref: a,
|
|
24
|
+
className: o("inline-flex items-center gap-1.5", r),
|
|
25
|
+
...e
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
u.displayName = "BreadcrumbItem";
|
|
29
|
+
const f = t.forwardRef(({ asChild: r, className: e, ...a }, m) => /* @__PURE__ */ s(
|
|
30
|
+
r ? n : "a",
|
|
31
|
+
{
|
|
32
|
+
ref: m,
|
|
33
|
+
className: o("transition-colors hover:text-foreground", e),
|
|
34
|
+
...a
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
f.displayName = "BreadcrumbLink";
|
|
38
|
+
const b = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
ref: a,
|
|
42
|
+
role: "link",
|
|
43
|
+
"aria-disabled": "true",
|
|
44
|
+
"aria-current": "page",
|
|
45
|
+
className: o("font-normal text-foreground", r),
|
|
46
|
+
...e
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
b.displayName = "BreadcrumbPage";
|
|
50
|
+
const N = ({
|
|
51
|
+
children: r,
|
|
52
|
+
className: e,
|
|
53
|
+
...a
|
|
54
|
+
}) => /* @__PURE__ */ s(
|
|
55
|
+
"li",
|
|
56
|
+
{
|
|
57
|
+
role: "presentation",
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
className: o("[&>svg]:w-3.5 [&>svg]:h-3.5", e),
|
|
60
|
+
...a,
|
|
61
|
+
children: r ?? /* @__PURE__ */ s(d, {})
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
N.displayName = "BreadcrumbSeparator";
|
|
65
|
+
const B = ({
|
|
66
|
+
className: r,
|
|
67
|
+
...e
|
|
68
|
+
}) => /* @__PURE__ */ i(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
role: "presentation",
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
className: o("flex h-9 w-9 items-center justify-center", r),
|
|
74
|
+
...e,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ s(c, { className: "h-4 w-4" }),
|
|
77
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
B.displayName = "BreadcrumbElipssis";
|
|
82
|
+
export {
|
|
83
|
+
l as Breadcrumb,
|
|
84
|
+
B as BreadcrumbEllipsis,
|
|
85
|
+
u as BreadcrumbItem,
|
|
86
|
+
f as BreadcrumbLink,
|
|
87
|
+
p as BreadcrumbList,
|
|
88
|
+
b as BreadcrumbPage,
|
|
89
|
+
N as BreadcrumbSeparator
|
|
90
|
+
};
|
package/dist/button.mjs
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
3
|
import { Slot as d } from "radix-ui";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import { cn as u } from "./utils.mjs";
|
|
6
|
+
const f = c(
|
|
7
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
7
8
|
{
|
|
8
9
|
variants: {
|
|
9
10
|
variant: {
|
|
10
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
12
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
13
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
15
16
|
link: "text-primary underline-offset-4 hover:underline"
|
|
16
17
|
},
|
|
17
18
|
size: {
|
|
18
|
-
default: "h-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
icon: "size-9",
|
|
23
|
-
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
24
|
-
"icon-sm": "size-8",
|
|
25
|
-
"icon-lg": "size-10"
|
|
19
|
+
default: "h-10 px-4 py-2",
|
|
20
|
+
sm: "h-9 rounded-md px-3",
|
|
21
|
+
lg: "h-11 rounded-md px-8",
|
|
22
|
+
icon: "h-10 w-10"
|
|
26
23
|
}
|
|
27
24
|
},
|
|
28
25
|
defaultVariants: {
|
|
@@ -30,27 +27,18 @@ const u = s(
|
|
|
30
27
|
size: "default"
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
variant: e = "default",
|
|
37
|
-
size: i = "default",
|
|
38
|
-
asChild: r = !1,
|
|
39
|
-
...a
|
|
40
|
-
}) {
|
|
41
|
-
const n = r ? d.Root : "button";
|
|
42
|
-
return /* @__PURE__ */ o(
|
|
43
|
-
n,
|
|
30
|
+
), g = a.forwardRef(
|
|
31
|
+
({ className: e, variant: r, size: t, asChild: o = !1, ...n }, i) => /* @__PURE__ */ s(
|
|
32
|
+
o ? d : "button",
|
|
44
33
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className: l(u({ variant: e, size: i, className: t })),
|
|
49
|
-
...a
|
|
34
|
+
className: u(f({ variant: r, size: t, className: e })),
|
|
35
|
+
ref: i,
|
|
36
|
+
...n
|
|
50
37
|
}
|
|
51
|
-
)
|
|
52
|
-
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
g.displayName = "Button";
|
|
53
41
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
g as Button,
|
|
43
|
+
f as buttonVariants
|
|
56
44
|
};
|
package/dist/card.mjs
CHANGED
|
@@ -1,98 +1,64 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "card-action",
|
|
59
|
-
className: d(
|
|
60
|
-
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
61
|
-
a
|
|
62
|
-
),
|
|
63
|
-
...r
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
function p({ className: a, ...r }) {
|
|
68
|
-
return /* @__PURE__ */ t(
|
|
69
|
-
"div",
|
|
70
|
-
{
|
|
71
|
-
"data-slot": "card-content",
|
|
72
|
-
className: d("px-6 group-data-[size=sm]/card:px-4", a),
|
|
73
|
-
...r
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
function m({ className: a, ...r }) {
|
|
78
|
-
return /* @__PURE__ */ t(
|
|
79
|
-
"div",
|
|
80
|
-
{
|
|
81
|
-
"data-slot": "card-footer",
|
|
82
|
-
className: d(
|
|
83
|
-
"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
|
|
84
|
-
a
|
|
85
|
-
),
|
|
86
|
-
...r
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
}
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as t } from "./utils.mjs";
|
|
4
|
+
const s = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
ref: r,
|
|
8
|
+
className: t(
|
|
9
|
+
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
10
|
+
a
|
|
11
|
+
),
|
|
12
|
+
...e
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
s.displayName = "Card";
|
|
16
|
+
const i = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref: r,
|
|
20
|
+
className: t("flex flex-col space-y-1.5 p-6", a),
|
|
21
|
+
...e
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
i.displayName = "CardHeader";
|
|
25
|
+
const m = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref: r,
|
|
29
|
+
className: t(
|
|
30
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
31
|
+
a
|
|
32
|
+
),
|
|
33
|
+
...e
|
|
34
|
+
}
|
|
35
|
+
));
|
|
36
|
+
m.displayName = "CardTitle";
|
|
37
|
+
const c = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: r,
|
|
41
|
+
className: t("text-sm text-muted-foreground", a),
|
|
42
|
+
...e
|
|
43
|
+
}
|
|
44
|
+
));
|
|
45
|
+
c.displayName = "CardDescription";
|
|
46
|
+
const l = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", a), ...e }));
|
|
47
|
+
l.displayName = "CardContent";
|
|
48
|
+
const n = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
ref: r,
|
|
52
|
+
className: t("flex items-center p-6 pt-0", a),
|
|
53
|
+
...e
|
|
54
|
+
}
|
|
55
|
+
));
|
|
56
|
+
n.displayName = "CardFooter";
|
|
90
57
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
c as CardTitle
|
|
58
|
+
s as Card,
|
|
59
|
+
l as CardContent,
|
|
60
|
+
c as CardDescription,
|
|
61
|
+
n as CardFooter,
|
|
62
|
+
i as CardHeader,
|
|
63
|
+
m as CardTitle
|
|
98
64
|
};
|