@turingpaper/ui 0.0.1-test.4 → 0.0.1-test.6
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 +18 -18
- package/dist/alert-dialog.mjs +4 -4
- package/dist/avatar.mjs +13 -13
- package/dist/checkbox.mjs +1 -1
- package/dist/collapsible.mjs +4 -4
- package/dist/components/accordion.d.ts +5 -4
- package/dist/components/alert-dialog.d.ts +10 -10
- package/dist/components/avatar.d.ts +4 -3
- package/dist/components/checkbox.d.ts +2 -1
- package/dist/components/collapsible.d.ts +4 -3
- package/dist/components/command.d.ts +2 -1
- package/dist/components/dialog.d.ts +9 -9
- package/dist/components/dropdown-menu.d.ts +20 -16
- package/dist/components/hover-card.d.ts +4 -3
- package/dist/components/label.d.ts +3 -1
- package/dist/components/popover.d.ts +4 -3
- package/dist/components/progress.d.ts +2 -1
- package/dist/components/radio-group.d.ts +3 -2
- package/dist/components/scroll-area.d.ts +3 -2
- package/dist/components/select.d.ts +11 -10
- package/dist/components/separator.d.ts +2 -1
- package/dist/components/sheet.d.ts +10 -10
- package/dist/components/slider.d.ts +2 -1
- package/dist/components/switch.d.ts +2 -1
- package/dist/components/tabs.d.ts +5 -4
- package/dist/components/toggle-group.d.ts +10 -2
- package/dist/components/toggle.d.ts +6 -1
- package/dist/components/tooltip.d.ts +5 -4
- package/dist/dialog.mjs +31 -31
- package/dist/dropdown-menu.mjs +8 -8
- package/dist/hover-card.mjs +4 -4
- package/dist/label.mjs +9 -9
- package/dist/popover.mjs +6 -6
- package/dist/progress.mjs +10 -10
- package/dist/provider.mjs +1 -1
- package/dist/radio-group.mjs +13 -13
- package/dist/scroll-area.mjs +11 -11
- package/dist/select.mjs +5 -5
- package/dist/separator.mjs +14 -14
- package/dist/sheet.mjs +11 -11
- package/dist/slider.mjs +7 -7
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +6 -6
- package/dist/tabs.mjs +20 -20
- package/dist/toggle-group.mjs +18 -18
- package/dist/toggle.mjs +9 -9
- package/dist/tooltip.mjs +5 -5
- package/package.json +1 -1
package/dist/dialog.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { Dialog as a } from "radix-ui";
|
|
4
4
|
import { X as c } from "lucide-react";
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
7
|
-
|
|
5
|
+
import { cn as l } from "./utils.mjs";
|
|
6
|
+
const h = a.Root, w = a.Trigger, m = a.Portal, v = a.Close, d = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
7
|
+
a.Overlay,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
10
|
-
className:
|
|
10
|
+
className: l(
|
|
11
11
|
"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",
|
|
12
|
-
|
|
12
|
+
e
|
|
13
13
|
),
|
|
14
14
|
...t
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
d.displayName =
|
|
18
|
-
const f =
|
|
17
|
+
d.displayName = a.Overlay.displayName;
|
|
18
|
+
const f = i.forwardRef(({ className: e, children: t, ...s }, r) => /* @__PURE__ */ n(m, { children: [
|
|
19
19
|
/* @__PURE__ */ o(d, {}),
|
|
20
20
|
/* @__PURE__ */ n(
|
|
21
|
-
|
|
21
|
+
a.Content,
|
|
22
22
|
{
|
|
23
23
|
ref: r,
|
|
24
|
-
className:
|
|
24
|
+
className: l(
|
|
25
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
|
-
|
|
26
|
+
e
|
|
27
27
|
),
|
|
28
28
|
...s,
|
|
29
29
|
children: [
|
|
30
30
|
t,
|
|
31
|
-
/* @__PURE__ */ n(
|
|
31
|
+
/* @__PURE__ */ n(a.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
32
32
|
/* @__PURE__ */ o(c, { className: "h-4 w-4" }),
|
|
33
33
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
34
34
|
] })
|
|
@@ -36,59 +36,59 @@ const f = l.forwardRef(({ className: a, children: t, ...s }, r) => /* @__PURE__
|
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
] }));
|
|
39
|
-
f.displayName =
|
|
39
|
+
f.displayName = a.Content.displayName;
|
|
40
40
|
const p = ({
|
|
41
|
-
className:
|
|
41
|
+
className: e,
|
|
42
42
|
...t
|
|
43
43
|
}) => /* @__PURE__ */ o(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
className:
|
|
46
|
+
className: l(
|
|
47
47
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
48
|
-
|
|
48
|
+
e
|
|
49
49
|
),
|
|
50
50
|
...t
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
p.displayName = "DialogHeader";
|
|
54
54
|
const g = ({
|
|
55
|
-
className:
|
|
55
|
+
className: e,
|
|
56
56
|
...t
|
|
57
57
|
}) => /* @__PURE__ */ o(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className:
|
|
60
|
+
className: l(
|
|
61
61
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
62
|
-
|
|
62
|
+
e
|
|
63
63
|
),
|
|
64
64
|
...t
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
g.displayName = "DialogFooter";
|
|
68
|
-
const u =
|
|
69
|
-
|
|
68
|
+
const u = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
69
|
+
a.Title,
|
|
70
70
|
{
|
|
71
71
|
ref: s,
|
|
72
|
-
className:
|
|
72
|
+
className: l(
|
|
73
73
|
"text-lg font-semibold leading-none tracking-tight",
|
|
74
|
-
|
|
74
|
+
e
|
|
75
75
|
),
|
|
76
76
|
...t
|
|
77
77
|
}
|
|
78
78
|
));
|
|
79
|
-
u.displayName =
|
|
80
|
-
const y =
|
|
81
|
-
|
|
79
|
+
u.displayName = a.Title.displayName;
|
|
80
|
+
const y = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
81
|
+
a.Description,
|
|
82
82
|
{
|
|
83
83
|
ref: s,
|
|
84
|
-
className:
|
|
84
|
+
className: l("text-sm text-muted-foreground", e),
|
|
85
85
|
...t
|
|
86
86
|
}
|
|
87
87
|
));
|
|
88
|
-
y.displayName =
|
|
88
|
+
y.displayName = a.Description.displayName;
|
|
89
89
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
h as Dialog,
|
|
91
|
+
v as DialogClose,
|
|
92
92
|
f as DialogContent,
|
|
93
93
|
y as DialogDescription,
|
|
94
94
|
g as DialogFooter,
|
package/dist/dropdown-menu.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import
|
|
3
|
+
import { DropdownMenu as e } from "radix-ui";
|
|
4
4
|
import { ChevronRight as m, Check as c, Circle as p } from "lucide-react";
|
|
5
5
|
import { cn as s } from "./utils.mjs";
|
|
6
|
-
const
|
|
6
|
+
const I = e.Root, S = e.Trigger, C = e.Group, z = e.Portal, k = e.Sub, _ = e.RadioGroup, u = d.forwardRef(({ className: o, inset: t, children: a, ...r }, i) => /* @__PURE__ */ l(
|
|
7
7
|
e.SubTrigger,
|
|
8
8
|
{
|
|
9
9
|
ref: i,
|
|
@@ -125,19 +125,19 @@ const y = ({
|
|
|
125
125
|
);
|
|
126
126
|
y.displayName = "DropdownMenuShortcut";
|
|
127
127
|
export {
|
|
128
|
-
|
|
128
|
+
I as DropdownMenu,
|
|
129
129
|
b as DropdownMenuCheckboxItem,
|
|
130
130
|
g as DropdownMenuContent,
|
|
131
|
-
|
|
131
|
+
C as DropdownMenuGroup,
|
|
132
132
|
w as DropdownMenuItem,
|
|
133
133
|
x as DropdownMenuLabel,
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
z as DropdownMenuPortal,
|
|
135
|
+
_ as DropdownMenuRadioGroup,
|
|
136
136
|
h as DropdownMenuRadioItem,
|
|
137
137
|
N as DropdownMenuSeparator,
|
|
138
138
|
y as DropdownMenuShortcut,
|
|
139
|
-
|
|
139
|
+
k as DropdownMenuSub,
|
|
140
140
|
f as DropdownMenuSubContent,
|
|
141
141
|
u as DropdownMenuSubTrigger,
|
|
142
|
-
|
|
142
|
+
S as DropdownMenuTrigger
|
|
143
143
|
};
|
package/dist/hover-card.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import
|
|
3
|
+
import { HoverCard as o } from "radix-ui";
|
|
4
4
|
import { cn as s } from "./utils.mjs";
|
|
5
|
-
const
|
|
5
|
+
const c = o.Root, g = o.Trigger, m = n.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ i(
|
|
6
6
|
o.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: d,
|
|
@@ -17,7 +17,7 @@ const l = o.Root, c = o.Trigger, m = n.forwardRef(({ className: t, align: e = "c
|
|
|
17
17
|
));
|
|
18
18
|
m.displayName = o.Content.displayName;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
c as HoverCard,
|
|
21
21
|
m as HoverCardContent,
|
|
22
|
-
|
|
22
|
+
g as HoverCardTrigger
|
|
23
23
|
};
|
package/dist/label.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
3
|
+
import { Label as o } from "radix-ui";
|
|
4
|
+
import { cva as s } from "class-variance-authority";
|
|
5
|
+
import { cn as i } from "./utils.mjs";
|
|
6
|
+
const l = s(
|
|
7
7
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
8
|
-
),
|
|
8
|
+
), p = m.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ t(
|
|
9
9
|
o.Root,
|
|
10
10
|
{
|
|
11
11
|
ref: r,
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
12
|
+
className: i(l(), a),
|
|
13
|
+
...e
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
|
-
|
|
16
|
+
p.displayName = o.Root.displayName;
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
p as Label
|
|
19
19
|
};
|
package/dist/popover.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import
|
|
3
|
+
import { Popover as o } from "radix-ui";
|
|
4
4
|
import { cn as s } from "./utils.mjs";
|
|
5
|
-
const
|
|
5
|
+
const c = o.Root, g = o.Trigger, m = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
6
6
|
o.Content,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
8
|
+
ref: i,
|
|
9
9
|
align: a,
|
|
10
10
|
sideOffset: r,
|
|
11
11
|
className: s(
|
|
12
12
|
"z-50 w-72 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-popover-content-transform-origin]",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...d
|
|
16
16
|
}
|
|
17
17
|
) }));
|
|
18
18
|
m.displayName = o.Content.displayName;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
c as Popover,
|
|
21
21
|
m as PopoverContent,
|
|
22
|
-
|
|
22
|
+
g as PopoverTrigger
|
|
23
23
|
};
|
package/dist/progress.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { Progress as r } from "radix-ui";
|
|
4
|
+
import { cn as m } from "./utils.mjs";
|
|
5
|
+
const f = t.forwardRef(({ className: a, value: s, ...e }, l) => /* @__PURE__ */ o(
|
|
6
6
|
r.Root,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
8
|
+
ref: l,
|
|
9
|
+
className: m(
|
|
10
10
|
"relative h-4 w-full overflow-hidden rounded-full bg-secondary",
|
|
11
11
|
a
|
|
12
12
|
),
|
|
13
|
-
...
|
|
13
|
+
...e,
|
|
14
14
|
children: /* @__PURE__ */ o(
|
|
15
15
|
r.Indicator,
|
|
16
16
|
{
|
|
17
17
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
18
|
-
style: { transform: `translateX(-${100 - (
|
|
18
|
+
style: { transform: `translateX(-${100 - (s || 0)}%)` }
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
|
|
23
|
+
f.displayName = r.Root.displayName;
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
f as Progress
|
|
26
26
|
};
|