@turingpaper/ui 0.0.1-test.1 → 0.0.1-test.2
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 +85 -0
- package/dist/alert-dialog.mjs +180 -0
- package/dist/avatar.mjs +106 -0
- package/dist/badge.mjs +43 -0
- package/dist/breadcrumb.mjs +117 -0
- package/dist/checkbox.mjs +34 -0
- package/dist/collapsible.mjs +34 -0
- package/dist/command.mjs +173 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/alert-dialog.d.ts +18 -0
- package/dist/components/avatar.d.ts +11 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/command.d.ts +18 -0
- package/dist/components/dialog.d.ts +17 -0
- package/dist/components/drawer.d.ts +13 -0
- package/dist/components/dropdown-menu.d.ts +29 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/input-group.d.ts +16 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/pagination.d.ts +17 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/progress.d.ts +4 -0
- package/dist/components/radio-group.d.ts +5 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/select.d.ts +15 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/sheet.d.ts +14 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/toggle-group.d.ts +10 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/dialog.mjs +156 -0
- package/dist/drawer.mjs +127 -0
- package/dist/dropdown-menu.mjs +251 -0
- package/dist/hover-card.mjs +38 -0
- package/dist/input-group.mjs +141 -0
- package/dist/label.mjs +22 -0
- package/dist/pagination.mjs +128 -0
- package/dist/popover.mjs +80 -0
- package/dist/progress.mjs +31 -0
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +44 -0
- package/dist/scroll-area.mjs +59 -0
- package/dist/select.mjs +186 -0
- package/dist/separator.mjs +26 -0
- package/dist/sheet.mjs +139 -0
- package/dist/skeleton.mjs +15 -0
- package/dist/slider.mjs +59 -0
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +31 -0
- package/dist/table.mjs +114 -0
- package/dist/tabs.mjs +90 -0
- package/dist/textarea.mjs +18 -0
- package/dist/toggle-group.mjs +76 -0
- package/dist/toggle.mjs +43 -0
- package/dist/tooltip.mjs +55 -0
- package/package.json +128 -2
package/dist/dialog.mjs
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Dialog as e } from "radix-ui";
|
|
3
|
+
import { cn as l } from "./utils.mjs";
|
|
4
|
+
import { Button as d } from "./button.mjs";
|
|
5
|
+
import { XIcon as s } from "lucide-react";
|
|
6
|
+
function h({
|
|
7
|
+
...o
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ a(e.Root, { "data-slot": "dialog", ...o });
|
|
10
|
+
}
|
|
11
|
+
function D({
|
|
12
|
+
...o
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ a(e.Trigger, { "data-slot": "dialog-trigger", ...o });
|
|
15
|
+
}
|
|
16
|
+
function c({
|
|
17
|
+
...o
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ a(e.Portal, { "data-slot": "dialog-portal", ...o });
|
|
20
|
+
}
|
|
21
|
+
function v({
|
|
22
|
+
...o
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...o });
|
|
25
|
+
}
|
|
26
|
+
function u({
|
|
27
|
+
className: o,
|
|
28
|
+
...t
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ a(
|
|
31
|
+
e.Overlay,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "dialog-overlay",
|
|
34
|
+
className: l(
|
|
35
|
+
"fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
36
|
+
o
|
|
37
|
+
),
|
|
38
|
+
...t
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function C({
|
|
43
|
+
className: o,
|
|
44
|
+
children: t,
|
|
45
|
+
showCloseButton: n = !0,
|
|
46
|
+
...i
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ r(c, { children: [
|
|
49
|
+
/* @__PURE__ */ a(u, {}),
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
|
+
e.Content,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "dialog-content",
|
|
54
|
+
className: l(
|
|
55
|
+
"fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-4xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/5 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
56
|
+
o
|
|
57
|
+
),
|
|
58
|
+
...i,
|
|
59
|
+
children: [
|
|
60
|
+
t,
|
|
61
|
+
n && /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", asChild: !0, children: /* @__PURE__ */ r(
|
|
62
|
+
d,
|
|
63
|
+
{
|
|
64
|
+
variant: "ghost",
|
|
65
|
+
className: "absolute top-4 right-4",
|
|
66
|
+
size: "icon-sm",
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ a(
|
|
69
|
+
s,
|
|
70
|
+
{}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
80
|
+
}
|
|
81
|
+
function b({ className: o, ...t }) {
|
|
82
|
+
return /* @__PURE__ */ a(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "dialog-header",
|
|
86
|
+
className: l("flex flex-col gap-2", o),
|
|
87
|
+
...t
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function N({
|
|
92
|
+
className: o,
|
|
93
|
+
showCloseButton: t = !1,
|
|
94
|
+
children: n,
|
|
95
|
+
...i
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ r(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "dialog-footer",
|
|
101
|
+
className: l(
|
|
102
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
103
|
+
o
|
|
104
|
+
),
|
|
105
|
+
...i,
|
|
106
|
+
children: [
|
|
107
|
+
n,
|
|
108
|
+
t && /* @__PURE__ */ a(e.Close, { asChild: !0, children: /* @__PURE__ */ a(d, { variant: "outline", children: "Close" }) })
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
function y({
|
|
114
|
+
className: o,
|
|
115
|
+
...t
|
|
116
|
+
}) {
|
|
117
|
+
return /* @__PURE__ */ a(
|
|
118
|
+
e.Title,
|
|
119
|
+
{
|
|
120
|
+
"data-slot": "dialog-title",
|
|
121
|
+
className: l(
|
|
122
|
+
"text-base leading-none font-medium",
|
|
123
|
+
o
|
|
124
|
+
),
|
|
125
|
+
...t
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function z({
|
|
130
|
+
className: o,
|
|
131
|
+
...t
|
|
132
|
+
}) {
|
|
133
|
+
return /* @__PURE__ */ a(
|
|
134
|
+
e.Description,
|
|
135
|
+
{
|
|
136
|
+
"data-slot": "dialog-description",
|
|
137
|
+
className: l(
|
|
138
|
+
"text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
139
|
+
o
|
|
140
|
+
),
|
|
141
|
+
...t
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
h as Dialog,
|
|
147
|
+
v as DialogClose,
|
|
148
|
+
C as DialogContent,
|
|
149
|
+
z as DialogDescription,
|
|
150
|
+
N as DialogFooter,
|
|
151
|
+
b as DialogHeader,
|
|
152
|
+
u as DialogOverlay,
|
|
153
|
+
c as DialogPortal,
|
|
154
|
+
y as DialogTitle,
|
|
155
|
+
D as DialogTrigger
|
|
156
|
+
};
|
package/dist/drawer.mjs
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { Drawer as a } from "vaul";
|
|
3
|
+
import { cn as o } from "./utils.mjs";
|
|
4
|
+
function w({
|
|
5
|
+
...r
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e(a.Root, { "data-slot": "drawer", ...r });
|
|
8
|
+
}
|
|
9
|
+
function f({
|
|
10
|
+
...r
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ e(a.Trigger, { "data-slot": "drawer-trigger", ...r });
|
|
13
|
+
}
|
|
14
|
+
function i({
|
|
15
|
+
...r
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ e(a.Portal, { "data-slot": "drawer-portal", ...r });
|
|
18
|
+
}
|
|
19
|
+
function m({
|
|
20
|
+
...r
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e(a.Close, { "data-slot": "drawer-close", ...r });
|
|
23
|
+
}
|
|
24
|
+
function l({
|
|
25
|
+
className: r,
|
|
26
|
+
...t
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ e(
|
|
29
|
+
a.Overlay,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "drawer-overlay",
|
|
32
|
+
className: o(
|
|
33
|
+
"fixed inset-0 z-50 bg-black/80 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
34
|
+
r
|
|
35
|
+
),
|
|
36
|
+
...t
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function p({
|
|
41
|
+
className: r,
|
|
42
|
+
children: t,
|
|
43
|
+
...n
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ d(i, { "data-slot": "drawer-portal", children: [
|
|
46
|
+
/* @__PURE__ */ e(l, {}),
|
|
47
|
+
/* @__PURE__ */ d(
|
|
48
|
+
a.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "drawer-content",
|
|
51
|
+
className: o(
|
|
52
|
+
"group/drawer-content fixed z-50 flex h-auto flex-col bg-transparent p-4 text-sm text-popover-foreground before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border before:border-border before:bg-popover data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
53
|
+
r
|
|
54
|
+
),
|
|
55
|
+
...n,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ e("div", { className: "mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
58
|
+
t
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
function x({ className: r, ...t }) {
|
|
65
|
+
return /* @__PURE__ */ e(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
"data-slot": "drawer-header",
|
|
69
|
+
className: o(
|
|
70
|
+
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
|
|
71
|
+
r
|
|
72
|
+
),
|
|
73
|
+
...t
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function b({ className: r, ...t }) {
|
|
78
|
+
return /* @__PURE__ */ e(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
"data-slot": "drawer-footer",
|
|
82
|
+
className: o("mt-auto flex flex-col gap-2 p-4", r),
|
|
83
|
+
...t
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function v({
|
|
88
|
+
className: r,
|
|
89
|
+
...t
|
|
90
|
+
}) {
|
|
91
|
+
return /* @__PURE__ */ e(
|
|
92
|
+
a.Title,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "drawer-title",
|
|
95
|
+
className: o(
|
|
96
|
+
"text-base font-medium text-foreground",
|
|
97
|
+
r
|
|
98
|
+
),
|
|
99
|
+
...t
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function g({
|
|
104
|
+
className: r,
|
|
105
|
+
...t
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ e(
|
|
108
|
+
a.Description,
|
|
109
|
+
{
|
|
110
|
+
"data-slot": "drawer-description",
|
|
111
|
+
className: o("text-sm text-muted-foreground", r),
|
|
112
|
+
...t
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
w as Drawer,
|
|
118
|
+
m as DrawerClose,
|
|
119
|
+
p as DrawerContent,
|
|
120
|
+
g as DrawerDescription,
|
|
121
|
+
b as DrawerFooter,
|
|
122
|
+
x as DrawerHeader,
|
|
123
|
+
l as DrawerOverlay,
|
|
124
|
+
i as DrawerPortal,
|
|
125
|
+
v as DrawerTitle,
|
|
126
|
+
f as DrawerTrigger
|
|
127
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { DropdownMenu as n } from "radix-ui";
|
|
3
|
+
import { cn as d } from "./utils.mjs";
|
|
4
|
+
import { CheckIcon as s, ChevronRightIcon as c } from "lucide-react";
|
|
5
|
+
function g({
|
|
6
|
+
...e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
9
|
+
}
|
|
10
|
+
function x({
|
|
11
|
+
...e
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
14
|
+
}
|
|
15
|
+
function v({
|
|
16
|
+
...e
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ t(
|
|
19
|
+
n.Trigger,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "dropdown-menu-trigger",
|
|
22
|
+
...e
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function w({
|
|
27
|
+
className: e,
|
|
28
|
+
align: o = "start",
|
|
29
|
+
sideOffset: a = 4,
|
|
30
|
+
...r
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
|
|
33
|
+
n.Content,
|
|
34
|
+
{
|
|
35
|
+
"data-slot": "dropdown-menu-content",
|
|
36
|
+
sideOffset: a,
|
|
37
|
+
align: o,
|
|
38
|
+
className: d("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-48 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-2xl bg-popover p-1 text-popover-foreground shadow-2xl ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
39
|
+
...r
|
|
40
|
+
}
|
|
41
|
+
) });
|
|
42
|
+
}
|
|
43
|
+
function h({
|
|
44
|
+
...e
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ t(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
47
|
+
}
|
|
48
|
+
function b({
|
|
49
|
+
className: e,
|
|
50
|
+
inset: o,
|
|
51
|
+
variant: a = "default",
|
|
52
|
+
...r
|
|
53
|
+
}) {
|
|
54
|
+
return /* @__PURE__ */ t(
|
|
55
|
+
n.Item,
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "dropdown-menu-item",
|
|
58
|
+
"data-inset": o,
|
|
59
|
+
"data-variant": a,
|
|
60
|
+
className: d(
|
|
61
|
+
"group/dropdown-menu-item relative flex cursor-default items-center gap-2.5 rounded-xl px-3 py-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
62
|
+
e
|
|
63
|
+
),
|
|
64
|
+
...r
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function D({
|
|
69
|
+
className: e,
|
|
70
|
+
children: o,
|
|
71
|
+
checked: a,
|
|
72
|
+
inset: r,
|
|
73
|
+
...u
|
|
74
|
+
}) {
|
|
75
|
+
return /* @__PURE__ */ i(
|
|
76
|
+
n.CheckboxItem,
|
|
77
|
+
{
|
|
78
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
79
|
+
"data-inset": r,
|
|
80
|
+
className: d(
|
|
81
|
+
"relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
82
|
+
e
|
|
83
|
+
),
|
|
84
|
+
checked: a,
|
|
85
|
+
...u,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ t(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
91
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
92
|
+
children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(
|
|
93
|
+
s,
|
|
94
|
+
{}
|
|
95
|
+
) })
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
o
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function M({
|
|
104
|
+
...e
|
|
105
|
+
}) {
|
|
106
|
+
return /* @__PURE__ */ t(
|
|
107
|
+
n.RadioGroup,
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
110
|
+
...e
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function z({
|
|
115
|
+
className: e,
|
|
116
|
+
children: o,
|
|
117
|
+
inset: a,
|
|
118
|
+
...r
|
|
119
|
+
}) {
|
|
120
|
+
return /* @__PURE__ */ i(
|
|
121
|
+
n.RadioItem,
|
|
122
|
+
{
|
|
123
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
124
|
+
"data-inset": a,
|
|
125
|
+
className: d(
|
|
126
|
+
"relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
127
|
+
e
|
|
128
|
+
),
|
|
129
|
+
...r,
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ t(
|
|
132
|
+
"span",
|
|
133
|
+
{
|
|
134
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
135
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
136
|
+
children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(
|
|
137
|
+
s,
|
|
138
|
+
{}
|
|
139
|
+
) })
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
o
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function k({
|
|
148
|
+
className: e,
|
|
149
|
+
inset: o,
|
|
150
|
+
...a
|
|
151
|
+
}) {
|
|
152
|
+
return /* @__PURE__ */ t(
|
|
153
|
+
n.Label,
|
|
154
|
+
{
|
|
155
|
+
"data-slot": "dropdown-menu-label",
|
|
156
|
+
"data-inset": o,
|
|
157
|
+
className: d(
|
|
158
|
+
"px-3 py-2.5 text-xs text-muted-foreground data-inset:pl-9.5",
|
|
159
|
+
e
|
|
160
|
+
),
|
|
161
|
+
...a
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
function y({
|
|
166
|
+
className: e,
|
|
167
|
+
...o
|
|
168
|
+
}) {
|
|
169
|
+
return /* @__PURE__ */ t(
|
|
170
|
+
n.Separator,
|
|
171
|
+
{
|
|
172
|
+
"data-slot": "dropdown-menu-separator",
|
|
173
|
+
className: d("-mx-1 my-1 h-px bg-border/50", e),
|
|
174
|
+
...o
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
function I({
|
|
179
|
+
className: e,
|
|
180
|
+
...o
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ t(
|
|
183
|
+
"span",
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
186
|
+
className: d(
|
|
187
|
+
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
188
|
+
e
|
|
189
|
+
),
|
|
190
|
+
...o
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
function N({
|
|
195
|
+
...e
|
|
196
|
+
}) {
|
|
197
|
+
return /* @__PURE__ */ t(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
198
|
+
}
|
|
199
|
+
function _({
|
|
200
|
+
className: e,
|
|
201
|
+
inset: o,
|
|
202
|
+
children: a,
|
|
203
|
+
...r
|
|
204
|
+
}) {
|
|
205
|
+
return /* @__PURE__ */ i(
|
|
206
|
+
n.SubTrigger,
|
|
207
|
+
{
|
|
208
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
209
|
+
"data-inset": o,
|
|
210
|
+
className: d(
|
|
211
|
+
"flex cursor-default items-center gap-2 rounded-xl px-3 py-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
212
|
+
e
|
|
213
|
+
),
|
|
214
|
+
...r,
|
|
215
|
+
children: [
|
|
216
|
+
a,
|
|
217
|
+
/* @__PURE__ */ t(c, { className: "ml-auto" })
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
function S({
|
|
223
|
+
className: e,
|
|
224
|
+
...o
|
|
225
|
+
}) {
|
|
226
|
+
return /* @__PURE__ */ t(
|
|
227
|
+
n.SubContent,
|
|
228
|
+
{
|
|
229
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
230
|
+
className: d("z-50 min-w-36 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-2xl bg-popover p-1 text-popover-foreground shadow-2xl ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
231
|
+
...o
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
export {
|
|
236
|
+
g as DropdownMenu,
|
|
237
|
+
D as DropdownMenuCheckboxItem,
|
|
238
|
+
w as DropdownMenuContent,
|
|
239
|
+
h as DropdownMenuGroup,
|
|
240
|
+
b as DropdownMenuItem,
|
|
241
|
+
k as DropdownMenuLabel,
|
|
242
|
+
x as DropdownMenuPortal,
|
|
243
|
+
M as DropdownMenuRadioGroup,
|
|
244
|
+
z as DropdownMenuRadioItem,
|
|
245
|
+
y as DropdownMenuSeparator,
|
|
246
|
+
I as DropdownMenuShortcut,
|
|
247
|
+
N as DropdownMenuSub,
|
|
248
|
+
S as DropdownMenuSubContent,
|
|
249
|
+
_ as DropdownMenuSubTrigger,
|
|
250
|
+
v as DropdownMenuTrigger
|
|
251
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { HoverCard as t } from "radix-ui";
|
|
3
|
+
import { cn as n } from "./utils.mjs";
|
|
4
|
+
function m({
|
|
5
|
+
...o
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ r(t.Root, { "data-slot": "hover-card", ...o });
|
|
8
|
+
}
|
|
9
|
+
function c({
|
|
10
|
+
...o
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ r(t.Trigger, { "data-slot": "hover-card-trigger", ...o });
|
|
13
|
+
}
|
|
14
|
+
function f({
|
|
15
|
+
className: o,
|
|
16
|
+
align: e = "center",
|
|
17
|
+
sideOffset: a = 4,
|
|
18
|
+
...d
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ r(t.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ r(
|
|
21
|
+
t.Content,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "hover-card-content",
|
|
24
|
+
align: e,
|
|
25
|
+
sideOffset: a,
|
|
26
|
+
className: n(
|
|
27
|
+
"z-50 w-72 origin-(--radix-hover-card-content-transform-origin) rounded-2xl bg-popover p-4 text-sm text-popover-foreground shadow-2xl ring-1 ring-foreground/5 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
28
|
+
o
|
|
29
|
+
),
|
|
30
|
+
...d
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
m as HoverCard,
|
|
36
|
+
f as HoverCardContent,
|
|
37
|
+
c as HoverCardTrigger
|
|
38
|
+
};
|