@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,155 @@
|
|
|
1
|
+
import { jsxs as I, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { c as M } from "../../../index-DLeNytVF.js";
|
|
4
|
+
import { u as x } from "../../../index-CB1Wkg0G.js";
|
|
5
|
+
import { c as H } from "../../../index-UFb2E87s.js";
|
|
6
|
+
import { u as j } from "../../../index-DYfkNB0n.js";
|
|
7
|
+
import { u as z } from "../../../index-BZPx6jYI.js";
|
|
8
|
+
import { u as A } from "../../../index-CHDs-SiB.js";
|
|
9
|
+
import { P as y } from "../../../index-C9KW2H79.js";
|
|
10
|
+
import { c as C } from "../../../utils-Dy2WjYNJ.js";
|
|
11
|
+
var m = "Switch", [U, Z] = H(m), [q, L] = U(m), P = a.forwardRef(
|
|
12
|
+
(e, r) => {
|
|
13
|
+
const {
|
|
14
|
+
__scopeSwitch: t,
|
|
15
|
+
name: s,
|
|
16
|
+
checked: o,
|
|
17
|
+
defaultChecked: b,
|
|
18
|
+
required: d,
|
|
19
|
+
disabled: n,
|
|
20
|
+
value: u = "on",
|
|
21
|
+
onCheckedChange: w,
|
|
22
|
+
form: c,
|
|
23
|
+
...k
|
|
24
|
+
} = e, [l, p] = a.useState(null), v = x(r, (h) => p(h)), S = a.useRef(!1), g = l ? c || !!l.closest("form") : !0, [f, B] = j({
|
|
25
|
+
prop: o,
|
|
26
|
+
defaultProp: b ?? !1,
|
|
27
|
+
onChange: w,
|
|
28
|
+
caller: m
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ I(q, { scope: t, checked: f, disabled: n, children: [
|
|
31
|
+
/* @__PURE__ */ i(
|
|
32
|
+
y.button,
|
|
33
|
+
{
|
|
34
|
+
type: "button",
|
|
35
|
+
role: "switch",
|
|
36
|
+
"aria-checked": f,
|
|
37
|
+
"aria-required": d,
|
|
38
|
+
"data-state": N(f),
|
|
39
|
+
"data-disabled": n ? "" : void 0,
|
|
40
|
+
disabled: n,
|
|
41
|
+
value: u,
|
|
42
|
+
...k,
|
|
43
|
+
ref: v,
|
|
44
|
+
onClick: M(e.onClick, (h) => {
|
|
45
|
+
B((T) => !T), g && (S.current = h.isPropagationStopped(), S.current || h.stopPropagation());
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
g && /* @__PURE__ */ i(
|
|
50
|
+
_,
|
|
51
|
+
{
|
|
52
|
+
control: l,
|
|
53
|
+
bubbles: !S.current,
|
|
54
|
+
name: s,
|
|
55
|
+
value: u,
|
|
56
|
+
checked: f,
|
|
57
|
+
required: d,
|
|
58
|
+
disabled: n,
|
|
59
|
+
form: c,
|
|
60
|
+
style: { transform: "translateX(-100%)" }
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
P.displayName = m;
|
|
67
|
+
var R = "SwitchThumb", E = a.forwardRef(
|
|
68
|
+
(e, r) => {
|
|
69
|
+
const { __scopeSwitch: t, ...s } = e, o = L(R, t);
|
|
70
|
+
return /* @__PURE__ */ i(
|
|
71
|
+
y.span,
|
|
72
|
+
{
|
|
73
|
+
"data-state": N(o.checked),
|
|
74
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
75
|
+
...s,
|
|
76
|
+
ref: r
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
E.displayName = R;
|
|
82
|
+
var O = "SwitchBubbleInput", _ = a.forwardRef(
|
|
83
|
+
({
|
|
84
|
+
__scopeSwitch: e,
|
|
85
|
+
control: r,
|
|
86
|
+
checked: t,
|
|
87
|
+
bubbles: s = !0,
|
|
88
|
+
...o
|
|
89
|
+
}, b) => {
|
|
90
|
+
const d = a.useRef(null), n = x(d, b), u = z(t), w = A(r);
|
|
91
|
+
return a.useEffect(() => {
|
|
92
|
+
const c = d.current;
|
|
93
|
+
if (!c) return;
|
|
94
|
+
const k = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(
|
|
95
|
+
k,
|
|
96
|
+
"checked"
|
|
97
|
+
).set;
|
|
98
|
+
if (u !== t && p) {
|
|
99
|
+
const v = new Event("click", { bubbles: s });
|
|
100
|
+
p.call(c, t), c.dispatchEvent(v);
|
|
101
|
+
}
|
|
102
|
+
}, [u, t, s]), /* @__PURE__ */ i(
|
|
103
|
+
"input",
|
|
104
|
+
{
|
|
105
|
+
type: "checkbox",
|
|
106
|
+
"aria-hidden": !0,
|
|
107
|
+
defaultChecked: t,
|
|
108
|
+
...o,
|
|
109
|
+
tabIndex: -1,
|
|
110
|
+
ref: n,
|
|
111
|
+
style: {
|
|
112
|
+
...o.style,
|
|
113
|
+
...w,
|
|
114
|
+
position: "absolute",
|
|
115
|
+
pointerEvents: "none",
|
|
116
|
+
opacity: 0,
|
|
117
|
+
margin: 0
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
_.displayName = O;
|
|
124
|
+
function N(e) {
|
|
125
|
+
return e ? "checked" : "unchecked";
|
|
126
|
+
}
|
|
127
|
+
var D = P, F = E;
|
|
128
|
+
function ee({
|
|
129
|
+
className: e,
|
|
130
|
+
...r
|
|
131
|
+
}) {
|
|
132
|
+
return /* @__PURE__ */ i(
|
|
133
|
+
D,
|
|
134
|
+
{
|
|
135
|
+
className: C(
|
|
136
|
+
"peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
|
|
137
|
+
e
|
|
138
|
+
),
|
|
139
|
+
"data-slot": "switch",
|
|
140
|
+
...r,
|
|
141
|
+
children: /* @__PURE__ */ i(
|
|
142
|
+
F,
|
|
143
|
+
{
|
|
144
|
+
className: C(
|
|
145
|
+
"pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"
|
|
146
|
+
),
|
|
147
|
+
"data-slot": "switch-thumb"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
ee as Switch
|
|
155
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../../utils-Dy2WjYNJ.js";
|
|
3
|
+
function n({ className: t, ...e }) {
|
|
4
|
+
return /* @__PURE__ */ a(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
className: "relative w-full overflow-x-auto",
|
|
8
|
+
"data-slot": "table-container",
|
|
9
|
+
children: /* @__PURE__ */ a(
|
|
10
|
+
"table",
|
|
11
|
+
{
|
|
12
|
+
className: o("w-full caption-bottom text-sm", t),
|
|
13
|
+
"data-slot": "table",
|
|
14
|
+
...e
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function s({ className: t, ...e }) {
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
"thead",
|
|
23
|
+
{
|
|
24
|
+
className: o("[&_tr]:border-b", t),
|
|
25
|
+
"data-slot": "table-header",
|
|
26
|
+
...e
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function d({ className: t, ...e }) {
|
|
31
|
+
return /* @__PURE__ */ a(
|
|
32
|
+
"tbody",
|
|
33
|
+
{
|
|
34
|
+
className: o("[&_tr:last-child]:border-0", t),
|
|
35
|
+
"data-slot": "table-body",
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function c({ className: t, ...e }) {
|
|
41
|
+
return /* @__PURE__ */ a(
|
|
42
|
+
"tfoot",
|
|
43
|
+
{
|
|
44
|
+
className: o(
|
|
45
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
46
|
+
t
|
|
47
|
+
),
|
|
48
|
+
"data-slot": "table-footer",
|
|
49
|
+
...e
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function b({ className: t, ...e }) {
|
|
54
|
+
return /* @__PURE__ */ a(
|
|
55
|
+
"tr",
|
|
56
|
+
{
|
|
57
|
+
className: o(
|
|
58
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
59
|
+
t
|
|
60
|
+
),
|
|
61
|
+
"data-slot": "table-row",
|
|
62
|
+
...e
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function i({ className: t, ...e }) {
|
|
67
|
+
return /* @__PURE__ */ a(
|
|
68
|
+
"th",
|
|
69
|
+
{
|
|
70
|
+
className: o(
|
|
71
|
+
"h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
72
|
+
t
|
|
73
|
+
),
|
|
74
|
+
"data-slot": "table-head",
|
|
75
|
+
...e
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function m({ className: t, ...e }) {
|
|
80
|
+
return /* @__PURE__ */ a(
|
|
81
|
+
"td",
|
|
82
|
+
{
|
|
83
|
+
className: o(
|
|
84
|
+
"whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
85
|
+
t
|
|
86
|
+
),
|
|
87
|
+
"data-slot": "table-cell",
|
|
88
|
+
...e
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function u({
|
|
93
|
+
className: t,
|
|
94
|
+
...e
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ a(
|
|
97
|
+
"caption",
|
|
98
|
+
{
|
|
99
|
+
className: o("mt-4 text-muted-foreground text-sm", t),
|
|
100
|
+
"data-slot": "table-caption",
|
|
101
|
+
...e
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
n as Table,
|
|
107
|
+
d as TableBody,
|
|
108
|
+
u as TableCaption,
|
|
109
|
+
m as TableCell,
|
|
110
|
+
c as TableFooter,
|
|
111
|
+
i as TableHead,
|
|
112
|
+
s as TableHeader,
|
|
113
|
+
b as TableRow
|
|
114
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { c as T } from "../../../index-DLeNytVF.js";
|
|
4
|
+
import { c as M } from "../../../index-UFb2E87s.js";
|
|
5
|
+
import { c as h, R as k, I as E } from "../../../index-D2uXV4lz.js";
|
|
6
|
+
import { P as F } from "../../../index-p7nYL7BU.js";
|
|
7
|
+
import { P as m } from "../../../index-C9KW2H79.js";
|
|
8
|
+
import { u as $ } from "../../../index-ByaXH_ih.js";
|
|
9
|
+
import { u as D } from "../../../index-DYfkNB0n.js";
|
|
10
|
+
import { u as V } from "../../../index-umR1UobZ.js";
|
|
11
|
+
import { c as p } from "../../../utils-Dy2WjYNJ.js";
|
|
12
|
+
var g = "Tabs", [G, ee] = M(g, [
|
|
13
|
+
h
|
|
14
|
+
]), C = h(), [L, x] = G(g), I = f.forwardRef(
|
|
15
|
+
(e, t) => {
|
|
16
|
+
const {
|
|
17
|
+
__scopeTabs: c,
|
|
18
|
+
value: a,
|
|
19
|
+
onValueChange: i,
|
|
20
|
+
defaultValue: d,
|
|
21
|
+
orientation: o = "horizontal",
|
|
22
|
+
dir: u,
|
|
23
|
+
activationMode: b = "automatic",
|
|
24
|
+
...v
|
|
25
|
+
} = e, s = $(u), [r, l] = D({
|
|
26
|
+
prop: a,
|
|
27
|
+
onChange: i,
|
|
28
|
+
defaultProp: d ?? "",
|
|
29
|
+
caller: g
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ n(
|
|
32
|
+
L,
|
|
33
|
+
{
|
|
34
|
+
scope: c,
|
|
35
|
+
baseId: V(),
|
|
36
|
+
value: r,
|
|
37
|
+
onValueChange: l,
|
|
38
|
+
orientation: o,
|
|
39
|
+
dir: s,
|
|
40
|
+
activationMode: b,
|
|
41
|
+
children: /* @__PURE__ */ n(
|
|
42
|
+
m.div,
|
|
43
|
+
{
|
|
44
|
+
dir: s,
|
|
45
|
+
"data-orientation": o,
|
|
46
|
+
...v,
|
|
47
|
+
ref: t
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
I.displayName = g;
|
|
55
|
+
var y = "TabsList", _ = f.forwardRef(
|
|
56
|
+
(e, t) => {
|
|
57
|
+
const { __scopeTabs: c, loop: a = !0, ...i } = e, d = x(y, c), o = C(c);
|
|
58
|
+
return /* @__PURE__ */ n(
|
|
59
|
+
k,
|
|
60
|
+
{
|
|
61
|
+
asChild: !0,
|
|
62
|
+
...o,
|
|
63
|
+
orientation: d.orientation,
|
|
64
|
+
dir: d.dir,
|
|
65
|
+
loop: a,
|
|
66
|
+
children: /* @__PURE__ */ n(
|
|
67
|
+
m.div,
|
|
68
|
+
{
|
|
69
|
+
role: "tablist",
|
|
70
|
+
"aria-orientation": d.orientation,
|
|
71
|
+
...i,
|
|
72
|
+
ref: t
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
_.displayName = y;
|
|
80
|
+
var N = "TabsTrigger", R = f.forwardRef(
|
|
81
|
+
(e, t) => {
|
|
82
|
+
const { __scopeTabs: c, value: a, disabled: i = !1, ...d } = e, o = x(N, c), u = C(c), b = P(o.baseId, a), v = S(o.baseId, a), s = a === o.value;
|
|
83
|
+
return /* @__PURE__ */ n(
|
|
84
|
+
E,
|
|
85
|
+
{
|
|
86
|
+
asChild: !0,
|
|
87
|
+
...u,
|
|
88
|
+
focusable: !i,
|
|
89
|
+
active: s,
|
|
90
|
+
children: /* @__PURE__ */ n(
|
|
91
|
+
m.button,
|
|
92
|
+
{
|
|
93
|
+
type: "button",
|
|
94
|
+
role: "tab",
|
|
95
|
+
"aria-selected": s,
|
|
96
|
+
"aria-controls": v,
|
|
97
|
+
"data-state": s ? "active" : "inactive",
|
|
98
|
+
"data-disabled": i ? "" : void 0,
|
|
99
|
+
disabled: i,
|
|
100
|
+
id: b,
|
|
101
|
+
...d,
|
|
102
|
+
ref: t,
|
|
103
|
+
onMouseDown: T(e.onMouseDown, (r) => {
|
|
104
|
+
!i && r.button === 0 && r.ctrlKey === !1 ? o.onValueChange(a) : r.preventDefault();
|
|
105
|
+
}),
|
|
106
|
+
onKeyDown: T(e.onKeyDown, (r) => {
|
|
107
|
+
[" ", "Enter"].includes(r.key) && o.onValueChange(a);
|
|
108
|
+
}),
|
|
109
|
+
onFocus: T(e.onFocus, () => {
|
|
110
|
+
const r = o.activationMode !== "manual";
|
|
111
|
+
!s && !i && r && o.onValueChange(a);
|
|
112
|
+
})
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
R.displayName = N;
|
|
120
|
+
var w = "TabsContent", A = f.forwardRef(
|
|
121
|
+
(e, t) => {
|
|
122
|
+
const { __scopeTabs: c, value: a, forceMount: i, children: d, ...o } = e, u = x(w, c), b = P(u.baseId, a), v = S(u.baseId, a), s = a === u.value, r = f.useRef(s);
|
|
123
|
+
return f.useEffect(() => {
|
|
124
|
+
const l = requestAnimationFrame(() => r.current = !1);
|
|
125
|
+
return () => cancelAnimationFrame(l);
|
|
126
|
+
}, []), /* @__PURE__ */ n(F, { present: i || s, children: ({ present: l }) => /* @__PURE__ */ n(
|
|
127
|
+
m.div,
|
|
128
|
+
{
|
|
129
|
+
"data-state": s ? "active" : "inactive",
|
|
130
|
+
"data-orientation": u.orientation,
|
|
131
|
+
role: "tabpanel",
|
|
132
|
+
"aria-labelledby": b,
|
|
133
|
+
hidden: !l,
|
|
134
|
+
id: v,
|
|
135
|
+
tabIndex: 0,
|
|
136
|
+
...o,
|
|
137
|
+
ref: t,
|
|
138
|
+
style: {
|
|
139
|
+
...e.style,
|
|
140
|
+
animationDuration: r.current ? "0s" : void 0
|
|
141
|
+
},
|
|
142
|
+
children: l && d
|
|
143
|
+
}
|
|
144
|
+
) });
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
A.displayName = w;
|
|
148
|
+
function P(e, t) {
|
|
149
|
+
return `${e}-trigger-${t}`;
|
|
150
|
+
}
|
|
151
|
+
function S(e, t) {
|
|
152
|
+
return `${e}-content-${t}`;
|
|
153
|
+
}
|
|
154
|
+
var j = I, z = _, K = R, B = A;
|
|
155
|
+
function te({
|
|
156
|
+
className: e,
|
|
157
|
+
...t
|
|
158
|
+
}) {
|
|
159
|
+
return /* @__PURE__ */ n(
|
|
160
|
+
j,
|
|
161
|
+
{
|
|
162
|
+
className: p("flex flex-col gap-2", e),
|
|
163
|
+
"data-slot": "tabs",
|
|
164
|
+
...t
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function ae({
|
|
169
|
+
className: e,
|
|
170
|
+
...t
|
|
171
|
+
}) {
|
|
172
|
+
return /* @__PURE__ */ n(
|
|
173
|
+
z,
|
|
174
|
+
{
|
|
175
|
+
className: p(
|
|
176
|
+
"inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",
|
|
177
|
+
e
|
|
178
|
+
),
|
|
179
|
+
"data-slot": "tabs-list",
|
|
180
|
+
...t
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
function oe({
|
|
185
|
+
className: e,
|
|
186
|
+
...t
|
|
187
|
+
}) {
|
|
188
|
+
return /* @__PURE__ */ n(
|
|
189
|
+
K,
|
|
190
|
+
{
|
|
191
|
+
className: p(
|
|
192
|
+
"inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
193
|
+
e
|
|
194
|
+
),
|
|
195
|
+
"data-slot": "tabs-trigger",
|
|
196
|
+
...t
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
function re({
|
|
201
|
+
className: e,
|
|
202
|
+
...t
|
|
203
|
+
}) {
|
|
204
|
+
return /* @__PURE__ */ n(
|
|
205
|
+
B,
|
|
206
|
+
{
|
|
207
|
+
className: p("flex-1 outline-none", e),
|
|
208
|
+
"data-slot": "tabs-content",
|
|
209
|
+
...t
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
export {
|
|
214
|
+
te as Tabs,
|
|
215
|
+
re as TabsContent,
|
|
216
|
+
ae as TabsList,
|
|
217
|
+
oe as TabsTrigger
|
|
218
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../../utils-Dy2WjYNJ.js";
|
|
3
|
+
function n({ className: r, ...e }) {
|
|
4
|
+
return /* @__PURE__ */ i(
|
|
5
|
+
"textarea",
|
|
6
|
+
{
|
|
7
|
+
className: t(
|
|
8
|
+
"field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
9
|
+
r
|
|
10
|
+
),
|
|
11
|
+
"data-slot": "textarea",
|
|
12
|
+
...e
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
n as Textarea
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { c as f } from "../../../index-DLeNytVF.js";
|
|
4
|
+
import { u as g } from "../../../index-DYfkNB0n.js";
|
|
5
|
+
import { P as m } from "../../../index-C9KW2H79.js";
|
|
6
|
+
import { c as v } from "../../../index-DdnpnyX2.js";
|
|
7
|
+
import { c as p } from "../../../utils-Dy2WjYNJ.js";
|
|
8
|
+
var s = "Toggle", i = u.forwardRef((e, t) => {
|
|
9
|
+
const { pressed: r, defaultPressed: a, onPressedChange: d, ...l } = e, [o, c] = g({
|
|
10
|
+
prop: r,
|
|
11
|
+
onChange: d,
|
|
12
|
+
defaultProp: a ?? !1,
|
|
13
|
+
caller: s
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ n(
|
|
16
|
+
m.button,
|
|
17
|
+
{
|
|
18
|
+
type: "button",
|
|
19
|
+
"aria-pressed": o,
|
|
20
|
+
"data-state": o ? "on" : "off",
|
|
21
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
22
|
+
...l,
|
|
23
|
+
ref: t,
|
|
24
|
+
onClick: f(e.onClick, () => {
|
|
25
|
+
e.disabled || c(!o);
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
i.displayName = s;
|
|
31
|
+
var b = i;
|
|
32
|
+
const h = v(
|
|
33
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground 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 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
34
|
+
{
|
|
35
|
+
variants: {
|
|
36
|
+
variant: {
|
|
37
|
+
default: "bg-transparent",
|
|
38
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
default: "h-9 min-w-9 px-2",
|
|
42
|
+
sm: "h-8 min-w-8 px-1.5",
|
|
43
|
+
lg: "h-10 min-w-10 px-2.5"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "default",
|
|
48
|
+
size: "default"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
function z({
|
|
53
|
+
className: e,
|
|
54
|
+
variant: t,
|
|
55
|
+
size: r,
|
|
56
|
+
...a
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ n(
|
|
59
|
+
b,
|
|
60
|
+
{
|
|
61
|
+
className: p(h({ variant: t, size: r, className: e })),
|
|
62
|
+
"data-slot": "toggle",
|
|
63
|
+
...a
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
z as Toggle,
|
|
69
|
+
h as toggleVariants
|
|
70
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|