@turingpaper/ui 0.0.1-test.2 → 0.0.1-test.4
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 +49 -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/dropdown-menu.mjs
CHANGED
|
@@ -1,251 +1,143 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
...
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
}
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import * as e from "radix-ui";
|
|
4
|
+
import { ChevronRight as m, Check as c, Circle as p } from "lucide-react";
|
|
5
|
+
import { cn as s } from "./utils.mjs";
|
|
6
|
+
const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: o, inset: t, children: a, ...r }, i) => /* @__PURE__ */ l(
|
|
7
|
+
e.SubTrigger,
|
|
8
|
+
{
|
|
9
|
+
ref: i,
|
|
10
|
+
className: s(
|
|
11
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
|
+
t && "pl-8",
|
|
13
|
+
o
|
|
14
|
+
),
|
|
15
|
+
...r,
|
|
16
|
+
children: [
|
|
17
|
+
a,
|
|
18
|
+
/* @__PURE__ */ n(m, { className: "ml-auto" })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
));
|
|
22
|
+
u.displayName = e.SubTrigger.displayName;
|
|
23
|
+
const f = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
|
|
24
|
+
e.SubContent,
|
|
25
|
+
{
|
|
26
|
+
ref: a,
|
|
27
|
+
className: s(
|
|
28
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[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 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
29
|
+
o
|
|
30
|
+
),
|
|
31
|
+
...t
|
|
32
|
+
}
|
|
33
|
+
));
|
|
34
|
+
f.displayName = e.SubContent.displayName;
|
|
35
|
+
const g = d.forwardRef(({ className: o, sideOffset: t = 4, ...a }, r) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
|
|
36
|
+
e.Content,
|
|
37
|
+
{
|
|
38
|
+
ref: r,
|
|
39
|
+
sideOffset: t,
|
|
40
|
+
className: s(
|
|
41
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[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 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
42
|
+
o
|
|
43
|
+
),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
) }));
|
|
47
|
+
g.displayName = e.Content.displayName;
|
|
48
|
+
const w = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
|
|
49
|
+
e.Item,
|
|
50
|
+
{
|
|
51
|
+
ref: r,
|
|
52
|
+
className: s(
|
|
53
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
54
|
+
t && "pl-8",
|
|
55
|
+
o
|
|
56
|
+
),
|
|
57
|
+
...a
|
|
58
|
+
}
|
|
59
|
+
));
|
|
60
|
+
w.displayName = e.Item.displayName;
|
|
61
|
+
const b = d.forwardRef(({ className: o, children: t, checked: a, ...r }, i) => /* @__PURE__ */ l(
|
|
62
|
+
e.CheckboxItem,
|
|
63
|
+
{
|
|
64
|
+
ref: i,
|
|
65
|
+
className: s(
|
|
66
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
67
|
+
o
|
|
68
|
+
),
|
|
69
|
+
checked: a,
|
|
70
|
+
...r,
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-4 w-4" }) }) }),
|
|
73
|
+
t
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
));
|
|
77
|
+
b.displayName = e.CheckboxItem.displayName;
|
|
78
|
+
const h = d.forwardRef(({ className: o, children: t, ...a }, r) => /* @__PURE__ */ l(
|
|
79
|
+
e.RadioItem,
|
|
80
|
+
{
|
|
81
|
+
ref: r,
|
|
82
|
+
className: s(
|
|
83
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
84
|
+
o
|
|
85
|
+
),
|
|
86
|
+
...a,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(p, { className: "h-2 w-2 fill-current" }) }) }),
|
|
89
|
+
t
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
));
|
|
93
|
+
h.displayName = e.RadioItem.displayName;
|
|
94
|
+
const x = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
|
|
95
|
+
e.Label,
|
|
96
|
+
{
|
|
97
|
+
ref: r,
|
|
98
|
+
className: s(
|
|
99
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
100
|
+
t && "pl-8",
|
|
101
|
+
o
|
|
102
|
+
),
|
|
103
|
+
...a
|
|
104
|
+
}
|
|
105
|
+
));
|
|
106
|
+
x.displayName = e.Label.displayName;
|
|
107
|
+
const N = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
|
|
108
|
+
e.Separator,
|
|
109
|
+
{
|
|
110
|
+
ref: a,
|
|
111
|
+
className: s("-mx-1 my-1 h-px bg-muted", o),
|
|
112
|
+
...t
|
|
113
|
+
}
|
|
114
|
+
));
|
|
115
|
+
N.displayName = e.Separator.displayName;
|
|
116
|
+
const y = ({
|
|
117
|
+
className: o,
|
|
118
|
+
...t
|
|
119
|
+
}) => /* @__PURE__ */ n(
|
|
120
|
+
"span",
|
|
121
|
+
{
|
|
122
|
+
className: s("ml-auto text-xs tracking-widest opacity-60", o),
|
|
123
|
+
...t
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
y.displayName = "DropdownMenuShortcut";
|
|
235
127
|
export {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
128
|
+
R as DropdownMenu,
|
|
129
|
+
b as DropdownMenuCheckboxItem,
|
|
130
|
+
g as DropdownMenuContent,
|
|
131
|
+
S as DropdownMenuGroup,
|
|
132
|
+
w as DropdownMenuItem,
|
|
133
|
+
x as DropdownMenuLabel,
|
|
134
|
+
C as DropdownMenuPortal,
|
|
135
|
+
k as DropdownMenuRadioGroup,
|
|
136
|
+
h as DropdownMenuRadioItem,
|
|
137
|
+
N as DropdownMenuSeparator,
|
|
138
|
+
y as DropdownMenuShortcut,
|
|
139
|
+
z as DropdownMenuSub,
|
|
140
|
+
f as DropdownMenuSubContent,
|
|
141
|
+
u as DropdownMenuSubTrigger,
|
|
142
|
+
I as DropdownMenuTrigger
|
|
251
143
|
};
|
package/dist/hover-card.mjs
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
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
|
-
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
|
-
}
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import * as o from "radix-ui";
|
|
4
|
+
import { cn as s } from "./utils.mjs";
|
|
5
|
+
const l = o.Root, c = o.Trigger, m = n.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ i(
|
|
6
|
+
o.Content,
|
|
7
|
+
{
|
|
8
|
+
ref: d,
|
|
9
|
+
align: e,
|
|
10
|
+
sideOffset: a,
|
|
11
|
+
className: s(
|
|
12
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[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 origin-[--radix-hover-card-content-transform-origin]",
|
|
13
|
+
t
|
|
14
|
+
),
|
|
15
|
+
...r
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
m.displayName = o.Content.displayName;
|
|
34
19
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
l as HoverCard,
|
|
21
|
+
m as HoverCardContent,
|
|
37
22
|
c as HoverCardTrigger
|
|
38
23
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { OTPInput as m, OTPInputContext as u } from "input-otp";
|
|
4
|
+
import { Dot as f } from "lucide-react";
|
|
5
|
+
import { cn as n } from "./utils.mjs";
|
|
6
|
+
const x = a.forwardRef(({ className: e, containerClassName: t, ...o }, s) => /* @__PURE__ */ r(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
containerClassName: n(
|
|
11
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
className: n("disabled:cursor-not-allowed", e),
|
|
15
|
+
...o
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
x.displayName = "InputOTP";
|
|
19
|
+
const O = a.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r("div", { ref: o, className: n("flex items-center", e), ...t }));
|
|
20
|
+
O.displayName = "InputOTPGroup";
|
|
21
|
+
const P = a.forwardRef(({ index: e, className: t, ...o }, s) => {
|
|
22
|
+
const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
|
|
23
|
+
return /* @__PURE__ */ c(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
ref: s,
|
|
27
|
+
className: n(
|
|
28
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
29
|
+
p && "z-10 ring-2 ring-ring ring-offset-background",
|
|
30
|
+
t
|
|
31
|
+
),
|
|
32
|
+
...o,
|
|
33
|
+
children: [
|
|
34
|
+
d,
|
|
35
|
+
l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
P.displayName = "InputOTPSlot";
|
|
41
|
+
const T = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
|
|
42
|
+
T.displayName = "InputOTPSeparator";
|
|
43
|
+
export {
|
|
44
|
+
x as InputOTP,
|
|
45
|
+
O as InputOTPGroup,
|
|
46
|
+
T as InputOTPSeparator,
|
|
47
|
+
P as InputOTPSlot
|
|
48
|
+
};
|
package/dist/input.mjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { cn as f } from "./utils.mjs";
|
|
4
|
+
const s = n.forwardRef(
|
|
5
|
+
({ className: e, type: r, ...o }, t) => /* @__PURE__ */ i(
|
|
5
6
|
"input",
|
|
6
7
|
{
|
|
7
|
-
type:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
i
|
|
8
|
+
type: r,
|
|
9
|
+
className: f(
|
|
10
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
|
+
e
|
|
12
12
|
),
|
|
13
|
-
|
|
13
|
+
ref: t,
|
|
14
|
+
...o
|
|
14
15
|
}
|
|
15
|
-
)
|
|
16
|
-
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
s.displayName = "Input";
|
|
17
19
|
export {
|
|
18
|
-
|
|
20
|
+
s as Input
|
|
19
21
|
};
|
package/dist/label.mjs
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import * as o from "radix-ui";
|
|
4
|
+
import { cva as i } from "class-variance-authority";
|
|
5
|
+
import { cn as s } from "./utils.mjs";
|
|
6
|
+
const p = i(
|
|
7
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
8
|
+
), d = m.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
|
|
9
|
+
o.Root,
|
|
10
|
+
{
|
|
11
|
+
ref: r,
|
|
12
|
+
className: s(p(), e),
|
|
13
|
+
...a
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
d.displayName = o.Root.displayName;
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
d as Label
|
|
22
19
|
};
|