@turingpaper/ui 0.0.1-test.2 → 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 +44 -83
- package/dist/alert-dialog.mjs +108 -175
- package/dist/avatar.mjs +40 -104
- package/dist/badge.mjs +10 -27
- package/dist/breadcrumb.mjs +82 -109
- package/dist/button.mjs +26 -38
- package/dist/card.mjs +62 -96
- package/dist/chart.mjs +208 -0
- package/dist/checkbox.mjs +25 -32
- package/dist/collapsible.mjs +5 -32
- package/dist/command.mjs +101 -165
- package/dist/components/accordion.d.ts +4 -5
- package/dist/components/alert-dialog.d.ts +19 -17
- package/dist/components/avatar.d.ts +4 -10
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/breadcrumb.d.ts +16 -8
- 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 +1 -2
- package/dist/components/collapsible.d.ts +3 -4
- package/dist/components/command.d.ts +78 -16
- package/dist/components/dialog.d.ts +18 -16
- package/dist/components/drawer.d.ts +19 -10
- package/dist/components/dropdown-menu.d.ts +21 -27
- package/dist/components/hover-card.d.ts +3 -4
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-otp.d.ts +34 -0
- package/dist/components/input.d.ts +1 -1
- package/dist/components/label.d.ts +1 -2
- package/dist/components/pagination.d.ts +24 -13
- package/dist/components/popover.d.ts +4 -9
- package/dist/components/progress.d.ts +1 -2
- package/dist/components/radio-group.d.ts +2 -3
- package/dist/components/scroll-area.d.ts +2 -3
- package/dist/components/select.d.ts +11 -14
- package/dist/components/separator.d.ts +1 -2
- package/dist/components/sheet.d.ts +24 -13
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/slider.d.ts +1 -2
- package/dist/components/switch.d.ts +1 -4
- package/dist/components/table.d.ts +8 -8
- package/dist/components/tabs.d.ts +5 -10
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/toggle-group.d.ts +2 -8
- package/dist/components/toggle.d.ts +1 -3
- package/dist/components/tooltip.d.ts +5 -6
- package/dist/dialog.mjs +91 -147
- package/dist/drawer.mjs +89 -118
- package/dist/dropdown-menu.mjs +141 -249
- package/dist/hover-card.mjs +20 -35
- package/dist/input-otp.mjs +48 -0
- package/dist/input.mjs +15 -13
- package/dist/label.mjs +17 -20
- package/dist/pagination.mjs +103 -126
- package/dist/popover.mjs +19 -76
- package/dist/progress.mjs +23 -28
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +29 -42
- package/dist/scroll-area.mjs +36 -57
- package/dist/select.mjs +117 -182
- package/dist/separator.mjs +16 -18
- package/dist/sheet.mjs +99 -128
- package/dist/skeleton.mjs +8 -6
- package/dist/slider.mjs +21 -57
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +25 -29
- package/dist/table.mjs +83 -110
- package/dist/tabs.mjs +42 -86
- package/dist/textarea.mjs +16 -16
- package/dist/toggle-group.mjs +32 -67
- package/dist/toggle.mjs +22 -28
- package/dist/tooltip.mjs +20 -52
- package/package.json +11 -1
package/dist/accordion.mjs
CHANGED
|
@@ -1,85 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
"data-slot": "accordion-trigger",
|
|
43
|
-
className: t(
|
|
44
|
-
"group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
|
|
45
|
-
o
|
|
46
|
-
),
|
|
47
|
-
...a,
|
|
48
|
-
children: [
|
|
49
|
-
e,
|
|
50
|
-
/* @__PURE__ */ n(d, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" }),
|
|
51
|
-
/* @__PURE__ */ n(c, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}
|
|
56
|
-
function x({
|
|
57
|
-
className: o,
|
|
58
|
-
children: e,
|
|
59
|
-
...a
|
|
60
|
-
}) {
|
|
61
|
-
return /* @__PURE__ */ n(
|
|
62
|
-
r.Content,
|
|
63
|
-
{
|
|
64
|
-
"data-slot": "accordion-content",
|
|
65
|
-
className: "overflow-hidden px-4 text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
|
|
66
|
-
...a,
|
|
67
|
-
children: /* @__PURE__ */ n(
|
|
68
|
-
"div",
|
|
69
|
-
{
|
|
70
|
-
className: t(
|
|
71
|
-
"h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
72
|
-
o
|
|
73
|
-
),
|
|
74
|
-
children: e
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
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;
|
|
80
41
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
42
|
+
h as Accordion,
|
|
43
|
+
f as AccordionContent,
|
|
44
|
+
c as AccordionItem,
|
|
45
|
+
l as AccordionTrigger
|
|
85
46
|
};
|
package/dist/alert-dialog.mjs
CHANGED
|
@@ -1,180 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...a
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ e(
|
|
25
|
-
o.Overlay,
|
|
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,
|
|
26
22
|
{
|
|
27
|
-
|
|
28
|
-
className:
|
|
29
|
-
"fixed
|
|
30
|
-
|
|
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
|
|
31
27
|
),
|
|
32
|
-
...
|
|
28
|
+
...e
|
|
33
29
|
}
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function v({
|
|
106
|
-
className: t,
|
|
107
|
-
...a
|
|
108
|
-
}) {
|
|
109
|
-
return /* @__PURE__ */ e(
|
|
110
|
-
o.Title,
|
|
111
|
-
{
|
|
112
|
-
"data-slot": "alert-dialog-title",
|
|
113
|
-
className: l(
|
|
114
|
-
"text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
|
|
115
|
-
t
|
|
116
|
-
),
|
|
117
|
-
...a
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
function b({
|
|
122
|
-
className: t,
|
|
123
|
-
...a
|
|
124
|
-
}) {
|
|
125
|
-
return /* @__PURE__ */ e(
|
|
126
|
-
o.Description,
|
|
127
|
-
{
|
|
128
|
-
"data-slot": "alert-dialog-description",
|
|
129
|
-
className: l(
|
|
130
|
-
"text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
131
|
-
t
|
|
132
|
-
),
|
|
133
|
-
...a
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
function w({
|
|
138
|
-
className: t,
|
|
139
|
-
variant: a = "default",
|
|
140
|
-
size: r = "default",
|
|
141
|
-
...i
|
|
142
|
-
}) {
|
|
143
|
-
return /* @__PURE__ */ e(d, { variant: a, size: r, asChild: !0, children: /* @__PURE__ */ e(
|
|
144
|
-
o.Action,
|
|
145
|
-
{
|
|
146
|
-
"data-slot": "alert-dialog-action",
|
|
147
|
-
className: l(t),
|
|
148
|
-
...i
|
|
149
|
-
}
|
|
150
|
-
) });
|
|
151
|
-
}
|
|
152
|
-
function N({
|
|
153
|
-
className: t,
|
|
154
|
-
variant: a = "outline",
|
|
155
|
-
size: r = "default",
|
|
156
|
-
...i
|
|
157
|
-
}) {
|
|
158
|
-
return /* @__PURE__ */ e(d, { variant: a, size: r, asChild: !0, children: /* @__PURE__ */ e(
|
|
159
|
-
o.Cancel,
|
|
160
|
-
{
|
|
161
|
-
"data-slot": "alert-dialog-cancel",
|
|
162
|
-
className: l(t),
|
|
163
|
-
...i
|
|
164
|
-
}
|
|
165
|
-
) });
|
|
166
|
-
}
|
|
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;
|
|
167
101
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
v as
|
|
179
|
-
x as AlertDialogTrigger
|
|
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
|
|
180
113
|
};
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,106 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
-
function g({
|
|
39
|
-
className: a,
|
|
40
|
-
...t
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */ e(
|
|
43
|
-
s.Fallback,
|
|
44
|
-
{
|
|
45
|
-
"data-slot": "avatar-fallback",
|
|
46
|
-
className: r(
|
|
47
|
-
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
48
|
-
a
|
|
49
|
-
),
|
|
50
|
-
...t
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function v({ className: a, ...t }) {
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
"span",
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "avatar-badge",
|
|
59
|
-
className: r(
|
|
60
|
-
"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
|
|
61
|
-
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
62
|
-
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
63
|
-
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
|
64
|
-
a
|
|
65
|
-
),
|
|
66
|
-
...t
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function f({ className: a, ...t }) {
|
|
71
|
-
return /* @__PURE__ */ e(
|
|
72
|
-
"div",
|
|
73
|
-
{
|
|
74
|
-
"data-slot": "avatar-group",
|
|
75
|
-
className: r(
|
|
76
|
-
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
|
|
77
|
-
a
|
|
78
|
-
),
|
|
79
|
-
...t
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
function m({
|
|
84
|
-
className: a,
|
|
85
|
-
...t
|
|
86
|
-
}) {
|
|
87
|
-
return /* @__PURE__ */ e(
|
|
88
|
-
"div",
|
|
89
|
-
{
|
|
90
|
-
"data-slot": "avatar-group-count",
|
|
91
|
-
className: r(
|
|
92
|
-
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
|
|
93
|
-
a
|
|
94
|
-
),
|
|
95
|
-
...t
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
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;
|
|
99
38
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
f as AvatarGroup,
|
|
104
|
-
m as AvatarGroupCount,
|
|
105
|
-
n as AvatarImage
|
|
39
|
+
t as Avatar,
|
|
40
|
+
i as AvatarFallback,
|
|
41
|
+
f as AvatarImage
|
|
106
42
|
};
|
package/dist/badge.mjs
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cva as n } from "class-variance-authority";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
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",
|
|
7
6
|
{
|
|
8
7
|
variants: {
|
|
9
8
|
variant: {
|
|
10
|
-
default: "bg-primary text-primary-foreground
|
|
11
|
-
secondary: "bg-secondary text-secondary-foreground
|
|
12
|
-
destructive: "bg-destructive
|
|
13
|
-
outline: "
|
|
14
|
-
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
15
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
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"
|
|
16
13
|
}
|
|
17
14
|
},
|
|
18
15
|
defaultVariants: {
|
|
@@ -20,24 +17,10 @@ const u = n(
|
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
19
|
);
|
|
23
|
-
function f({
|
|
24
|
-
className: r,
|
|
25
|
-
variant: e = "default",
|
|
26
|
-
asChild: t = !1,
|
|
27
|
-
...i
|
|
28
|
-
}) {
|
|
29
|
-
const a = t ? d.Root : "span";
|
|
30
|
-
return /* @__PURE__ */ o(
|
|
31
|
-
a,
|
|
32
|
-
{
|
|
33
|
-
"data-slot": "badge",
|
|
34
|
-
"data-variant": e,
|
|
35
|
-
className: s(u({ variant: e }), r),
|
|
36
|
-
...i
|
|
37
|
-
}
|
|
38
|
-
);
|
|
20
|
+
function f({ className: r, variant: e, ...t }) {
|
|
21
|
+
return /* @__PURE__ */ o("div", { className: a(i({ variant: e }), r), ...t });
|
|
39
22
|
}
|
|
40
23
|
export {
|
|
41
24
|
f as Badge,
|
|
42
|
-
|
|
25
|
+
i as badgeVariants
|
|
43
26
|
};
|