@turingpaper/ui 0.0.1-test.7 → 0.0.1-test.8
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/breadcrumb.mjs +37 -34
- package/dist/button.mjs +21 -18
- package/dist/components/command.d.ts +12 -12
- package/dist/input-otp.mjs +9 -9
- package/dist/input.mjs +9 -9
- package/dist/provider.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/textarea.mjs +4 -4
- package/package.json +1 -1
package/dist/breadcrumb.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { MoreHorizontal as
|
|
3
|
+
import { Slot as c } from "radix-ui";
|
|
4
|
+
import { MoreHorizontal as d, ChevronRight as l } from "lucide-react";
|
|
5
5
|
import { cn as o } from "./utils.mjs";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
6
|
+
const p = t.forwardRef(({ ...r }, e) => /* @__PURE__ */ s("nav", { ref: e, "aria-label": "breadcrumb", ...r }));
|
|
7
|
+
p.displayName = "Breadcrumb";
|
|
8
|
+
const u = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
9
9
|
"ol",
|
|
10
10
|
{
|
|
11
11
|
ref: a,
|
|
@@ -16,8 +16,8 @@ const p = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
|
16
16
|
...e
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
u.displayName = "BreadcrumbList";
|
|
20
|
+
const f = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
21
21
|
"li",
|
|
22
22
|
{
|
|
23
23
|
ref: a,
|
|
@@ -25,17 +25,20 @@ const u = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
|
25
25
|
...e
|
|
26
26
|
}
|
|
27
27
|
));
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
r ?
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
f.displayName = "BreadcrumbItem";
|
|
29
|
+
const b = t.forwardRef(({ asChild: r, className: e, ...a }, m) => {
|
|
30
|
+
const i = r ? c.Root : "a";
|
|
31
|
+
return /* @__PURE__ */ s(
|
|
32
|
+
i,
|
|
33
|
+
{
|
|
34
|
+
ref: m,
|
|
35
|
+
className: o("transition-colors hover:text-foreground", e),
|
|
36
|
+
...a
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
b.displayName = "BreadcrumbLink";
|
|
41
|
+
const N = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
39
42
|
"span",
|
|
40
43
|
{
|
|
41
44
|
ref: a,
|
|
@@ -46,8 +49,8 @@ const b = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
|
46
49
|
...e
|
|
47
50
|
}
|
|
48
51
|
));
|
|
49
|
-
|
|
50
|
-
const
|
|
52
|
+
N.displayName = "BreadcrumbPage";
|
|
53
|
+
const B = ({
|
|
51
54
|
children: r,
|
|
52
55
|
className: e,
|
|
53
56
|
...a
|
|
@@ -58,14 +61,14 @@ const N = ({
|
|
|
58
61
|
"aria-hidden": "true",
|
|
59
62
|
className: o("[&>svg]:w-3.5 [&>svg]:h-3.5", e),
|
|
60
63
|
...a,
|
|
61
|
-
children: r ?? /* @__PURE__ */ s(
|
|
64
|
+
children: r ?? /* @__PURE__ */ s(l, {})
|
|
62
65
|
}
|
|
63
66
|
);
|
|
64
|
-
|
|
65
|
-
const
|
|
67
|
+
B.displayName = "BreadcrumbSeparator";
|
|
68
|
+
const g = ({
|
|
66
69
|
className: r,
|
|
67
70
|
...e
|
|
68
|
-
}) => /* @__PURE__ */
|
|
71
|
+
}) => /* @__PURE__ */ n(
|
|
69
72
|
"span",
|
|
70
73
|
{
|
|
71
74
|
role: "presentation",
|
|
@@ -73,18 +76,18 @@ const B = ({
|
|
|
73
76
|
className: o("flex h-9 w-9 items-center justify-center", r),
|
|
74
77
|
...e,
|
|
75
78
|
children: [
|
|
76
|
-
/* @__PURE__ */ s(
|
|
79
|
+
/* @__PURE__ */ s(d, { className: "h-4 w-4" }),
|
|
77
80
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
|
|
78
81
|
]
|
|
79
82
|
}
|
|
80
83
|
);
|
|
81
|
-
|
|
84
|
+
g.displayName = "BreadcrumbElipssis";
|
|
82
85
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
p as Breadcrumb,
|
|
87
|
+
g as BreadcrumbEllipsis,
|
|
88
|
+
f as BreadcrumbItem,
|
|
89
|
+
b as BreadcrumbLink,
|
|
90
|
+
u as BreadcrumbList,
|
|
91
|
+
N as BreadcrumbPage,
|
|
92
|
+
B as BreadcrumbSeparator
|
|
90
93
|
};
|
package/dist/button.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { Slot as u } from "radix-ui";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
5
|
+
import { cn as f } from "./utils.mjs";
|
|
6
|
+
const g = c(
|
|
7
7
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
12
12
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
13
|
-
outline: "border border-input bg-background hover:bg-
|
|
13
|
+
outline: "border border-input bg-background hover:bg-muted hover:text-foreground",
|
|
14
14
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
16
16
|
link: "text-primary underline-offset-4 hover:underline"
|
|
@@ -27,18 +27,21 @@ const f = c(
|
|
|
27
27
|
size: "default"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
),
|
|
31
|
-
({ className: e, variant: r, size: t, asChild: o = !1, ...n }, i) =>
|
|
32
|
-
o ?
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
), m = d.forwardRef(
|
|
31
|
+
({ className: e, variant: r, size: t, asChild: o = !1, ...n }, i) => {
|
|
32
|
+
const s = o ? u.Root : "button";
|
|
33
|
+
return /* @__PURE__ */ a(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
className: f(g({ variant: r, size: t, className: e })),
|
|
37
|
+
ref: i,
|
|
38
|
+
...n
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
39
42
|
);
|
|
40
|
-
|
|
43
|
+
m.displayName = "Button";
|
|
41
44
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
m as Button,
|
|
46
|
+
g as buttonVariants
|
|
44
47
|
};
|
|
@@ -3,11 +3,11 @@ import * as React from "react";
|
|
|
3
3
|
type DialogProps = React.ComponentProps<typeof Dialog>;
|
|
4
4
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
6
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean;
|
|
10
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
10
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
11
11
|
label?: string;
|
|
12
12
|
shouldFilter?: boolean;
|
|
13
13
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -29,45 +29,45 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
29
29
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
30
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
31
31
|
children?: React.ReactNode;
|
|
32
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
32
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
33
33
|
ref?: React.Ref<HTMLDivElement>;
|
|
34
34
|
} & {
|
|
35
35
|
asChild?: boolean;
|
|
36
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
36
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
37
37
|
label?: string;
|
|
38
38
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
40
40
|
children?: React.ReactNode;
|
|
41
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
41
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
42
42
|
ref?: React.Ref<HTMLDivElement>;
|
|
43
43
|
} & {
|
|
44
44
|
asChild?: boolean;
|
|
45
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
45
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
46
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
47
47
|
children?: React.ReactNode;
|
|
48
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
48
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
49
49
|
ref?: React.Ref<HTMLDivElement>;
|
|
50
50
|
} & {
|
|
51
51
|
asChild?: boolean;
|
|
52
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
52
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
53
53
|
heading?: React.ReactNode;
|
|
54
54
|
value?: string;
|
|
55
55
|
forceMount?: boolean;
|
|
56
56
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
57
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
58
58
|
ref?: React.Ref<HTMLDivElement>;
|
|
59
59
|
} & {
|
|
60
60
|
asChild?: boolean;
|
|
61
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
61
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
62
62
|
alwaysRender?: boolean;
|
|
63
63
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
64
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
65
65
|
children?: React.ReactNode;
|
|
66
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement
|
|
66
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
67
67
|
ref?: React.Ref<HTMLDivElement>;
|
|
68
68
|
} & {
|
|
69
69
|
asChild?: boolean;
|
|
70
|
-
}, "asChild" | keyof React.HTMLAttributes<HTMLDivElement
|
|
70
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
71
71
|
disabled?: boolean;
|
|
72
72
|
onSelect?: (value: string) => void;
|
|
73
73
|
value?: string;
|
package/dist/input-otp.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { OTPInput as m, OTPInputContext as u } from "input-otp";
|
|
4
4
|
import { Dot as f } from "lucide-react";
|
|
5
5
|
import { cn as n } from "./utils.mjs";
|
|
6
|
-
const x = a.forwardRef(({ className: e, containerClassName:
|
|
6
|
+
const x = a.forwardRef(({ className: e, containerClassName: r, ...o }, s) => /* @__PURE__ */ t(
|
|
7
7
|
m,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
10
10
|
containerClassName: n(
|
|
11
11
|
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
12
|
-
|
|
12
|
+
r
|
|
13
13
|
),
|
|
14
14
|
className: n("disabled:cursor-not-allowed", e),
|
|
15
15
|
...o
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
18
|
x.displayName = "InputOTP";
|
|
19
|
-
const O = a.forwardRef(({ className: e, ...
|
|
19
|
+
const O = a.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t("div", { ref: o, className: n("flex items-center", e), ...r }));
|
|
20
20
|
O.displayName = "InputOTPGroup";
|
|
21
|
-
const P = a.forwardRef(({ index: e, className:
|
|
21
|
+
const P = a.forwardRef(({ index: e, className: r, ...o }, s) => {
|
|
22
22
|
const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
|
|
23
23
|
return /* @__PURE__ */ c(
|
|
24
24
|
"div",
|
|
@@ -26,19 +26,19 @@ const P = a.forwardRef(({ index: e, className: t, ...o }, s) => {
|
|
|
26
26
|
ref: s,
|
|
27
27
|
className: n(
|
|
28
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
|
|
30
|
-
|
|
29
|
+
p && "z-10 border-ring ring-3 ring-ring/50",
|
|
30
|
+
r
|
|
31
31
|
),
|
|
32
32
|
...o,
|
|
33
33
|
children: [
|
|
34
34
|
d,
|
|
35
|
-
l && /* @__PURE__ */
|
|
35
|
+
l && /* @__PURE__ */ t("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
});
|
|
40
40
|
P.displayName = "InputOTPSlot";
|
|
41
|
-
const T = a.forwardRef(({ ...e },
|
|
41
|
+
const T = a.forwardRef(({ ...e }, r) => /* @__PURE__ */ t("div", { ref: r, role: "separator", ...e, children: /* @__PURE__ */ t(f, {}) }));
|
|
42
42
|
T.displayName = "InputOTPSeparator";
|
|
43
43
|
export {
|
|
44
44
|
x as InputOTP,
|
package/dist/input.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
({ className: e, type: r, ...o },
|
|
3
|
+
import { cn as d } from "./utils.mjs";
|
|
4
|
+
const l = n.forwardRef(
|
|
5
|
+
({ className: e, type: r, ...o }, i) => /* @__PURE__ */ t(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
8
|
type: r,
|
|
9
|
-
className:
|
|
10
|
-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base
|
|
9
|
+
className: d(
|
|
10
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base 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:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
11
|
e
|
|
12
12
|
),
|
|
13
|
-
ref:
|
|
13
|
+
ref: i,
|
|
14
14
|
...o
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
l.displayName = "Input";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
l as Input
|
|
21
21
|
};
|