@arcadeai/design-system 0.0.0
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/README.md +128 -0
- package/dist/check-CxcShTlQ.js +11 -0
- package/dist/chevron-down-D_a-ccxi.js +11 -0
- package/dist/chevron-right-DriXIqe5.js +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +195 -0
- package/dist/components/ui/atoms/accordion.d.ts +7 -0
- package/dist/components/ui/atoms/accordion.js +289 -0
- package/dist/components/ui/atoms/alert.d.ts +9 -0
- package/dist/components/ui/atoms/alert.js +66 -0
- package/dist/components/ui/atoms/avatar.d.ts +6 -0
- package/dist/components/ui/atoms/avatar.js +130 -0
- package/dist/components/ui/atoms/badge.d.ts +9 -0
- package/dist/components/ui/atoms/badge.js +41 -0
- package/dist/components/ui/atoms/breadcrumb.d.ts +11 -0
- package/dist/components/ui/atoms/breadcrumb.js +115 -0
- package/dist/components/ui/atoms/button.d.ts +10 -0
- package/dist/components/ui/atoms/button.js +51 -0
- package/dist/components/ui/atoms/card.d.ts +9 -0
- package/dist/components/ui/atoms/card.js +90 -0
- package/dist/components/ui/atoms/chart.d.ts +68 -0
- package/dist/components/ui/atoms/chart.js +10477 -0
- package/dist/components/ui/atoms/collapsible.d.ts +5 -0
- package/dist/components/ui/atoms/collapsible.js +34 -0
- package/dist/components/ui/atoms/command.d.ts +18 -0
- package/dist/components/ui/atoms/command.js +490 -0
- package/dist/components/ui/atoms/dialog.d.ts +15 -0
- package/dist/components/ui/atoms/dialog.js +135 -0
- package/dist/components/ui/atoms/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/atoms/dropdown-menu.js +1035 -0
- package/dist/components/ui/atoms/form.d.ts +24 -0
- package/dist/components/ui/atoms/form.js +297 -0
- package/dist/components/ui/atoms/hover-card.d.ts +6 -0
- package/dist/components/ui/atoms/hover-card.js +211 -0
- package/dist/components/ui/atoms/index.d.ts +33 -0
- package/dist/components/ui/atoms/index.js +195 -0
- package/dist/components/ui/atoms/input.d.ts +3 -0
- package/dist/components/ui/atoms/input.js +21 -0
- package/dist/components/ui/atoms/label.d.ts +4 -0
- package/dist/components/ui/atoms/label.js +36 -0
- package/dist/components/ui/atoms/popover.d.ts +7 -0
- package/dist/components/ui/atoms/popover.js +266 -0
- package/dist/components/ui/atoms/progress.d.ts +4 -0
- package/dist/components/ui/atoms/progress.js +107 -0
- package/dist/components/ui/atoms/resizable.d.ts +8 -0
- package/dist/components/ui/atoms/resizable.js +1564 -0
- package/dist/components/ui/atoms/scroll-area.d.ts +5 -0
- package/dist/components/ui/atoms/scroll-area.js +580 -0
- package/dist/components/ui/atoms/select.d.ts +15 -0
- package/dist/components/ui/atoms/select.js +1000 -0
- package/dist/components/ui/atoms/separator.d.ts +4 -0
- package/dist/components/ui/atoms/separator.js +44 -0
- package/dist/components/ui/atoms/sheet.d.ts +14 -0
- package/dist/components/ui/atoms/sheet.js +127 -0
- package/dist/components/ui/atoms/sidebar.d.ts +69 -0
- package/dist/components/ui/atoms/sidebar.js +602 -0
- package/dist/components/ui/atoms/skeleton.d.ts +2 -0
- package/dist/components/ui/atoms/skeleton.js +15 -0
- package/dist/components/ui/atoms/slider.d.ts +4 -0
- package/dist/components/ui/atoms/slider.js +484 -0
- package/dist/components/ui/atoms/sonner.d.ts +3 -0
- package/dist/components/ui/atoms/sonner.js +788 -0
- package/dist/components/ui/atoms/switch.d.ts +4 -0
- package/dist/components/ui/atoms/switch.js +155 -0
- package/dist/components/ui/atoms/table.d.ts +10 -0
- package/dist/components/ui/atoms/table.js +114 -0
- package/dist/components/ui/atoms/tabs.d.ts +7 -0
- package/dist/components/ui/atoms/tabs.js +218 -0
- package/dist/components/ui/atoms/textarea.d.ts +3 -0
- package/dist/components/ui/atoms/textarea.js +18 -0
- package/dist/components/ui/atoms/toggle.d.ts +9 -0
- package/dist/components/ui/atoms/toggle.js +70 -0
- package/dist/components/ui/atoms/tooltip.d.ts +7 -0
- package/dist/components/ui/atoms/tooltip.js +376 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +195 -0
- package/dist/createLucideIcon-B6fy1GTR.js +94 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +14 -0
- package/dist/index-BAhNQL1u.js +675 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-ByaXH_ih.js +10 -0
- package/dist/index-C9KW2H79.js +36 -0
- package/dist/index-CB1Wkg0G.js +83 -0
- package/dist/index-CHDs-SiB.js +27 -0
- package/dist/index-CJFGOBPb.js +122 -0
- package/dist/index-CL4N9wMT.js +259 -0
- package/dist/index-CuMpq4Un.js +47 -0
- package/dist/index-CxK6rt_N.js +119 -0
- package/dist/index-D2uXV4lz.js +181 -0
- package/dist/index-DLeNytVF.js +9 -0
- package/dist/index-DYfkNB0n.js +54 -0
- package/dist/index-DdnpnyX2.js +34 -0
- package/dist/index-DuekHEmj.js +6 -0
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/index-Dy7YuPrV.js +1532 -0
- package/dist/index-QMp1pYFl.js +145 -0
- package/dist/index-UFb2E87s.js +70 -0
- package/dist/index-nluJZSbA.js +31 -0
- package/dist/index-p7nYL7BU.js +71 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/index-umR1UobZ.js +13 -0
- package/dist/index.css +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +4 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +195 -0
- package/dist/utils-Dy2WjYNJ.js +2744 -0
- package/package.json +100 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../index-DdnpnyX2.js";
|
|
3
|
+
import { c as e } from "../../../utils-Dy2WjYNJ.js";
|
|
4
|
+
const l = i(
|
|
5
|
+
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-card text-card-foreground",
|
|
10
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "default"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
function o({
|
|
19
|
+
className: t,
|
|
20
|
+
variant: r,
|
|
21
|
+
...s
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ a(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: e(l({ variant: r }), t),
|
|
27
|
+
"data-slot": "alert",
|
|
28
|
+
role: "alert",
|
|
29
|
+
...s
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function g({ className: t, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ a(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: e(
|
|
38
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
39
|
+
t
|
|
40
|
+
),
|
|
41
|
+
"data-slot": "alert-title",
|
|
42
|
+
...r
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function u({
|
|
47
|
+
className: t,
|
|
48
|
+
...r
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ a(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: e(
|
|
54
|
+
"col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",
|
|
55
|
+
t
|
|
56
|
+
),
|
|
57
|
+
"data-slot": "alert-description",
|
|
58
|
+
...r
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
o as Alert,
|
|
64
|
+
u as AlertDescription,
|
|
65
|
+
g as AlertTitle
|
|
66
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { c as R } from "../../../index-UFb2E87s.js";
|
|
4
|
+
import { u as b } from "../../../index-DwYXX2sM.js";
|
|
5
|
+
import { u as f } from "../../../index-DuekHEmj.js";
|
|
6
|
+
import { P as m } from "../../../index-C9KW2H79.js";
|
|
7
|
+
import { r as C } from "../../../index-CJFGOBPb.js";
|
|
8
|
+
import { c as v } from "../../../utils-Dy2WjYNJ.js";
|
|
9
|
+
var y = C();
|
|
10
|
+
function N() {
|
|
11
|
+
return y.useSyncExternalStore(
|
|
12
|
+
_,
|
|
13
|
+
() => !0,
|
|
14
|
+
() => !1
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
function _() {
|
|
18
|
+
return () => {
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
var g = "Avatar", [k, V] = R(g), [F, S] = k(g), L = i.forwardRef(
|
|
22
|
+
(a, e) => {
|
|
23
|
+
const { __scopeAvatar: n, ...r } = a, [o, t] = i.useState("idle");
|
|
24
|
+
return /* @__PURE__ */ d(
|
|
25
|
+
F,
|
|
26
|
+
{
|
|
27
|
+
scope: n,
|
|
28
|
+
imageLoadingStatus: o,
|
|
29
|
+
onImageLoadingStatusChange: t,
|
|
30
|
+
children: /* @__PURE__ */ d(m.span, { ...r, ref: e })
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
L.displayName = g;
|
|
36
|
+
var h = "AvatarImage", E = i.forwardRef(
|
|
37
|
+
(a, e) => {
|
|
38
|
+
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
39
|
+
}, ...t } = a, l = S(h, n), s = M(r, t), u = b((c) => {
|
|
40
|
+
o(c), l.onImageLoadingStatusChange(c);
|
|
41
|
+
});
|
|
42
|
+
return f(() => {
|
|
43
|
+
s !== "idle" && u(s);
|
|
44
|
+
}, [s, u]), s === "loaded" ? /* @__PURE__ */ d(m.img, { ...t, ref: e, src: r }) : null;
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
E.displayName = h;
|
|
48
|
+
var I = "AvatarFallback", w = i.forwardRef(
|
|
49
|
+
(a, e) => {
|
|
50
|
+
const { __scopeAvatar: n, delayMs: r, ...o } = a, t = S(I, n), [l, s] = i.useState(r === void 0);
|
|
51
|
+
return i.useEffect(() => {
|
|
52
|
+
if (r !== void 0) {
|
|
53
|
+
const u = window.setTimeout(() => s(!0), r);
|
|
54
|
+
return () => window.clearTimeout(u);
|
|
55
|
+
}
|
|
56
|
+
}, [r]), l && t.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ d(m.span, { ...o, ref: e }) : null;
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
w.displayName = I;
|
|
60
|
+
function A(a, e) {
|
|
61
|
+
return a ? e ? (a.src !== e && (a.src = e), a.complete && a.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
62
|
+
}
|
|
63
|
+
function M(a, { referrerPolicy: e, crossOrigin: n }) {
|
|
64
|
+
const r = N(), o = i.useRef(null), t = r ? (o.current || (o.current = new window.Image()), o.current) : null, [l, s] = i.useState(
|
|
65
|
+
() => A(t, a)
|
|
66
|
+
);
|
|
67
|
+
return f(() => {
|
|
68
|
+
s(A(t, a));
|
|
69
|
+
}, [t, a]), f(() => {
|
|
70
|
+
const u = (x) => () => {
|
|
71
|
+
s(x);
|
|
72
|
+
};
|
|
73
|
+
if (!t) return;
|
|
74
|
+
const c = u("loaded"), p = u("error");
|
|
75
|
+
return t.addEventListener("load", c), t.addEventListener("error", p), e && (t.referrerPolicy = e), typeof n == "string" && (t.crossOrigin = n), () => {
|
|
76
|
+
t.removeEventListener("load", c), t.removeEventListener("error", p);
|
|
77
|
+
};
|
|
78
|
+
}, [t, n, e]), l;
|
|
79
|
+
}
|
|
80
|
+
var P = L, z = E, T = w;
|
|
81
|
+
function W({
|
|
82
|
+
className: a,
|
|
83
|
+
...e
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ d(
|
|
86
|
+
P,
|
|
87
|
+
{
|
|
88
|
+
className: v(
|
|
89
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
90
|
+
a
|
|
91
|
+
),
|
|
92
|
+
"data-slot": "avatar",
|
|
93
|
+
...e
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
function D({
|
|
98
|
+
className: a,
|
|
99
|
+
...e
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ d(
|
|
102
|
+
z,
|
|
103
|
+
{
|
|
104
|
+
className: v("aspect-square size-full", a),
|
|
105
|
+
"data-slot": "avatar-image",
|
|
106
|
+
...e
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
function J({
|
|
111
|
+
className: a,
|
|
112
|
+
...e
|
|
113
|
+
}) {
|
|
114
|
+
return /* @__PURE__ */ d(
|
|
115
|
+
T,
|
|
116
|
+
{
|
|
117
|
+
className: v(
|
|
118
|
+
"flex size-full items-center justify-center rounded-full bg-muted",
|
|
119
|
+
a
|
|
120
|
+
),
|
|
121
|
+
"data-slot": "avatar-fallback",
|
|
122
|
+
...e
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
W as Avatar,
|
|
128
|
+
J as AvatarFallback,
|
|
129
|
+
D as AvatarImage
|
|
130
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "success" | "warning" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { S as i } from "../../../index-CB1Wkg0G.js";
|
|
3
|
+
import { c as o } from "../../../index-DdnpnyX2.js";
|
|
4
|
+
import { c as s } from "../../../utils-Dy2WjYNJ.js";
|
|
5
|
+
const d = o(
|
|
6
|
+
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
11
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
12
|
+
destructive: "border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
|
|
13
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
14
|
+
success: "border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90",
|
|
15
|
+
warning: "border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "default"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
function f({
|
|
24
|
+
className: r,
|
|
25
|
+
variant: e,
|
|
26
|
+
asChild: t = !1,
|
|
27
|
+
...a
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ n(
|
|
30
|
+
t ? i : "span",
|
|
31
|
+
{
|
|
32
|
+
className: s(d({ variant: e }), r),
|
|
33
|
+
"data-slot": "badge",
|
|
34
|
+
...a
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
f as Badge,
|
|
40
|
+
d as badgeVariants
|
|
41
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as a, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { S as i } from "../../../index-CB1Wkg0G.js";
|
|
3
|
+
import { c as t } from "../../../utils-Dy2WjYNJ.js";
|
|
4
|
+
import { C as n } from "../../../chevron-right-DriXIqe5.js";
|
|
5
|
+
import { c as o } from "../../../createLucideIcon-B6fy1GTR.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.522.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const l = [
|
|
13
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
14
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
15
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
16
|
+
], m = o("ellipsis", l);
|
|
17
|
+
function g({ ...r }) {
|
|
18
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
19
|
+
}
|
|
20
|
+
function h({ className: r, ...e }) {
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
"ol",
|
|
23
|
+
{
|
|
24
|
+
className: t(
|
|
25
|
+
"flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",
|
|
26
|
+
r
|
|
27
|
+
),
|
|
28
|
+
"data-slot": "breadcrumb-list",
|
|
29
|
+
...e
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function N({ className: r, ...e }) {
|
|
34
|
+
return /* @__PURE__ */ a(
|
|
35
|
+
"li",
|
|
36
|
+
{
|
|
37
|
+
className: t("inline-flex items-center gap-1.5", r),
|
|
38
|
+
"data-slot": "breadcrumb-item",
|
|
39
|
+
...e
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function y({
|
|
44
|
+
asChild: r,
|
|
45
|
+
className: e,
|
|
46
|
+
...s
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ a(
|
|
49
|
+
r ? i : "a",
|
|
50
|
+
{
|
|
51
|
+
className: t("transition-colors hover:text-foreground", e),
|
|
52
|
+
"data-slot": "breadcrumb-link",
|
|
53
|
+
...s
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function k({ className: r, ...e }) {
|
|
58
|
+
return /* @__PURE__ */ a(
|
|
59
|
+
"span",
|
|
60
|
+
{
|
|
61
|
+
"aria-current": "page",
|
|
62
|
+
"aria-disabled": "true",
|
|
63
|
+
className: t("font-normal text-foreground", r),
|
|
64
|
+
"data-slot": "breadcrumb-page",
|
|
65
|
+
role: "link",
|
|
66
|
+
tabIndex: 0,
|
|
67
|
+
...e
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function B({
|
|
72
|
+
children: r,
|
|
73
|
+
className: e,
|
|
74
|
+
...s
|
|
75
|
+
}) {
|
|
76
|
+
return /* @__PURE__ */ a(
|
|
77
|
+
"li",
|
|
78
|
+
{
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: t("[&>svg]:size-3.5", e),
|
|
81
|
+
"data-slot": "breadcrumb-separator",
|
|
82
|
+
role: "presentation",
|
|
83
|
+
...s,
|
|
84
|
+
children: r ?? /* @__PURE__ */ a(n, {})
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function j({
|
|
89
|
+
className: r,
|
|
90
|
+
...e
|
|
91
|
+
}) {
|
|
92
|
+
return /* @__PURE__ */ c(
|
|
93
|
+
"span",
|
|
94
|
+
{
|
|
95
|
+
"aria-hidden": "true",
|
|
96
|
+
className: t("flex size-9 items-center justify-center", r),
|
|
97
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
98
|
+
role: "presentation",
|
|
99
|
+
...e,
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ a(m, { className: "size-4" }),
|
|
102
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
g as Breadcrumb,
|
|
109
|
+
j as BreadcrumbEllipsis,
|
|
110
|
+
N as BreadcrumbItem,
|
|
111
|
+
y as BreadcrumbLink,
|
|
112
|
+
h as BreadcrumbList,
|
|
113
|
+
k as BreadcrumbPage,
|
|
114
|
+
B as BreadcrumbSeparator
|
|
115
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "warning" | "tertiary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { S as a } from "../../../index-CB1Wkg0G.js";
|
|
3
|
+
import { c as s } from "../../../index-DdnpnyX2.js";
|
|
4
|
+
import { c as d } from "../../../utils-Dy2WjYNJ.js";
|
|
5
|
+
const g = s(
|
|
6
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
11
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
12
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
13
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
14
|
+
tertiary: "bg-tertiary text-tertiary-foreground shadow-xs hover:bg-tertiary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
17
|
+
warning: "bg-warning text-warning-foreground shadow-xs hover:bg-warning/90"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
21
|
+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
22
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
23
|
+
icon: "size-9"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
function p({
|
|
33
|
+
className: r,
|
|
34
|
+
variant: e,
|
|
35
|
+
size: t,
|
|
36
|
+
asChild: i = !1,
|
|
37
|
+
...n
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ o(
|
|
40
|
+
i ? a : "button",
|
|
41
|
+
{
|
|
42
|
+
className: d(g({ variant: e, size: t, className: r })),
|
|
43
|
+
"data-slot": "button",
|
|
44
|
+
...n
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
p as Button,
|
|
50
|
+
g as buttonVariants
|
|
51
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../../utils-Dy2WjYNJ.js";
|
|
3
|
+
function n({ className: t, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ r(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
className: o(
|
|
8
|
+
"flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",
|
|
9
|
+
t
|
|
10
|
+
),
|
|
11
|
+
"data-slot": "card",
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function s({ className: t, ...a }) {
|
|
17
|
+
return /* @__PURE__ */ r(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: o(
|
|
21
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
22
|
+
t
|
|
23
|
+
),
|
|
24
|
+
"data-slot": "card-header",
|
|
25
|
+
...a
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function c({ className: t, ...a }) {
|
|
30
|
+
return /* @__PURE__ */ r(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: o("font-semibold leading-none", t),
|
|
34
|
+
"data-slot": "card-title",
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function i({ className: t, ...a }) {
|
|
40
|
+
return /* @__PURE__ */ r(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: o("text-muted-foreground text-sm", t),
|
|
44
|
+
"data-slot": "card-description",
|
|
45
|
+
...a
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function l({ className: t, ...a }) {
|
|
50
|
+
return /* @__PURE__ */ r(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: o(
|
|
54
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
55
|
+
t
|
|
56
|
+
),
|
|
57
|
+
"data-slot": "card-action",
|
|
58
|
+
...a
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function u({ className: t, ...a }) {
|
|
63
|
+
return /* @__PURE__ */ r(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: o("px-6", t),
|
|
67
|
+
"data-slot": "card-content",
|
|
68
|
+
...a
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
function f({ className: t, ...a }) {
|
|
73
|
+
return /* @__PURE__ */ r(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: o("flex items-center px-6 [.border-t]:pt-6", t),
|
|
77
|
+
"data-slot": "card-footer",
|
|
78
|
+
...a
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
n as Card,
|
|
84
|
+
l as CardAction,
|
|
85
|
+
u as CardContent,
|
|
86
|
+
i as CardDescription,
|
|
87
|
+
f as CardFooter,
|
|
88
|
+
s as CardHeader,
|
|
89
|
+
c as CardTitle
|
|
90
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RechartsPrimitive from 'recharts';
|
|
3
|
+
declare const THEMES: {
|
|
4
|
+
readonly light: "";
|
|
5
|
+
readonly dark: ".dark";
|
|
6
|
+
};
|
|
7
|
+
export type ChartConfig = {
|
|
8
|
+
[k in string]: {
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
icon?: React.ComponentType;
|
|
11
|
+
} & ({
|
|
12
|
+
color?: string;
|
|
13
|
+
theme?: never;
|
|
14
|
+
} | {
|
|
15
|
+
color?: never;
|
|
16
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const ChartStyle: ({ id, config }: {
|
|
24
|
+
id: string;
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
+
type TooltipContentProps = {
|
|
29
|
+
active?: boolean;
|
|
30
|
+
payload?: Array<{
|
|
31
|
+
value?: number | string;
|
|
32
|
+
name?: string;
|
|
33
|
+
dataKey?: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
payload?: {
|
|
36
|
+
fill?: string;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
}>;
|
|
41
|
+
label?: string | number;
|
|
42
|
+
labelFormatter?: (value: unknown, payload: unknown[]) => React.ReactNode;
|
|
43
|
+
formatter?: (value: unknown, name: string, props: unknown, index: number, payload: unknown) => React.ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
indicator?: 'line' | 'dot' | 'dashed';
|
|
46
|
+
hideLabel?: boolean;
|
|
47
|
+
hideIndicator?: boolean;
|
|
48
|
+
labelClassName?: string;
|
|
49
|
+
color?: string;
|
|
50
|
+
nameKey?: string;
|
|
51
|
+
labelKey?: string;
|
|
52
|
+
};
|
|
53
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: TooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
55
|
+
type LegendContentProps = {
|
|
56
|
+
className?: string;
|
|
57
|
+
hideIcon?: boolean;
|
|
58
|
+
payload?: Array<{
|
|
59
|
+
value?: string;
|
|
60
|
+
dataKey?: string;
|
|
61
|
+
color?: string;
|
|
62
|
+
[key: string]: unknown;
|
|
63
|
+
}>;
|
|
64
|
+
verticalAlign?: 'top' | 'bottom';
|
|
65
|
+
nameKey?: string;
|
|
66
|
+
};
|
|
67
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: LegendContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
68
|
+
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|