@turingpaper/ui 0.0.12 → 0.0.14

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.
Files changed (44) hide show
  1. package/dist/accordion.mjs +34 -46
  2. package/dist/alert-dialog.mjs +54 -113
  3. package/dist/avatar.mjs +26 -42
  4. package/dist/badge.mjs +21 -25
  5. package/dist/breadcrumb.mjs +58 -91
  6. package/dist/button.mjs +40 -48
  7. package/dist/card.mjs +41 -63
  8. package/dist/chart.mjs +123 -204
  9. package/dist/checkbox.mjs +17 -26
  10. package/dist/collapsible.mjs +6 -7
  11. package/dist/command.mjs +70 -109
  12. package/dist/components/mermaid-diagram.d.ts +0 -2
  13. package/dist/dialog.mjs +48 -99
  14. package/dist/drawer.mjs +48 -98
  15. package/dist/dropdown-menu.mjs +72 -143
  16. package/dist/hover-card.mjs +16 -23
  17. package/dist/input-group.mjs +71 -135
  18. package/dist/input-otp.mjs +40 -47
  19. package/dist/input.mjs +13 -21
  20. package/dist/label.mjs +15 -19
  21. package/dist/map.mjs +640 -730
  22. package/dist/mermaid-diagram.mjs +125 -141
  23. package/dist/pagination.mjs +62 -105
  24. package/dist/popover.mjs +15 -23
  25. package/dist/progress.mjs +16 -24
  26. package/dist/provider.d.ts +2 -1
  27. package/dist/provider.mjs +18 -14
  28. package/dist/radio-group.mjs +23 -30
  29. package/dist/scroll-area.mjs +30 -38
  30. package/dist/select.mjs +69 -121
  31. package/dist/separator.mjs +16 -24
  32. package/dist/sheet.mjs +58 -110
  33. package/dist/skeleton.mjs +10 -16
  34. package/dist/slider.mjs +18 -23
  35. package/dist/styles.css +1 -1
  36. package/dist/switch.mjs +14 -27
  37. package/dist/table.mjs +57 -87
  38. package/dist/tabs.mjs +25 -46
  39. package/dist/textarea.mjs +11 -17
  40. package/dist/toggle-group.mjs +36 -40
  41. package/dist/toggle.mjs +34 -37
  42. package/dist/tooltip.mjs +15 -23
  43. package/dist/utils.mjs +6 -6
  44. package/package.json +7 -7
@@ -1,144 +1,128 @@
1
- import { jsx as r, jsxs as v } from "react/jsx-runtime";
2
- import { cn as b } from "./utils.mjs";
3
- import { forwardRef as p, useMemo as f, useState as x, useCallback as h } from "react";
4
- import { THEMES as S, renderMermaidSVG as w } from "beautiful-mermaid";
5
- import { TransformWrapper as C, TransformComponent as k, useControls as E } from "react-zoom-pan-pinch";
6
- import { ZoomIn as N, ZoomOut as O, RotateCcw as T, Check as y, Copy as I, Download as z } from "lucide-react";
7
- const R = "script, foreignObject, iframe, object, embed", M = /^on/i;
8
- function j(e) {
9
- let t;
10
- try {
11
- t = new DOMParser().parseFromString(e, "image/svg+xml");
12
- } catch {
13
- return null;
14
- }
15
- const o = t.documentElement;
16
- if (o.tagName !== "svg" || t.querySelector("parsererror") || o.querySelectorAll(R).length > 0) return null;
17
- const n = o.querySelectorAll("*");
18
- for (const s of n)
19
- for (const a of s.attributes)
20
- if (M.test(a.name)) return null;
21
- return e;
1
+ import { cn as e } from "./utils.mjs";
2
+ import { forwardRef as t, useCallback as n, useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
3
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ import { Check as l, Copy as u, Download as d, RotateCcw as f, ZoomIn as p, ZoomOut as m } from "lucide-react";
5
+ import h from "mermaid";
6
+ import { TransformComponent as g, TransformWrapper as _, useControls as v } from "react-zoom-pan-pinch";
7
+ //#region src/components/mermaid-diagram.tsx
8
+ var y = "script, iframe, object, embed", b = /^on/i;
9
+ function x(e) {
10
+ let t;
11
+ try {
12
+ t = new DOMParser().parseFromString(e, "image/svg+xml");
13
+ } catch {
14
+ return null;
15
+ }
16
+ let n = t.documentElement;
17
+ if (n.tagName !== "svg" || t.querySelector("parsererror") || n.querySelectorAll(y).length > 0) return null;
18
+ let r = n.querySelectorAll("*");
19
+ for (let e of r) for (let t of e.attributes) if (b.test(t.name)) return null;
20
+ return e;
22
21
  }
23
- const L = {
24
- ...S["github-light"],
25
- transparent: !0
26
- };
27
- function _(e) {
28
- if (!e) return "mermaid-diagram.svg";
29
- const t = Math.max(e.lastIndexOf("/"), e.lastIndexOf("\\")), o = t >= 0 ? e.substring(t + 1) : e, n = o.lastIndexOf(".");
30
- return `${(n > 0 ? o.substring(0, n) : o).replace(/[^a-zA-Z0-9_-]/g, "") || "mermaid-diagram"}.svg`;
22
+ var S = !1;
23
+ function C() {
24
+ S ||= (h.initialize({
25
+ startOnLoad: !1,
26
+ theme: "default",
27
+ er: { useMaxWidth: !0 }
28
+ }), !0);
31
29
  }
32
- const G = p(({ className: e, code: t, filename: o, options: n, ...s }, a) => {
33
- const i = f(() => _(o), [o]), { svg: l, error: u } = f(() => {
34
- if (!t.trim())
35
- return { svg: null, error: "Empty diagram" };
36
- let d;
37
- try {
38
- d = w(t, { ...L, ...n });
39
- } catch (c) {
40
- return {
41
- svg: null,
42
- error: c instanceof Error ? c.message : "Invalid diagram"
43
- };
44
- }
45
- return j(d) ? { svg: d, error: null } : { svg: null, error: "Invalid SVG" };
46
- }, [t, n]);
47
- return u ? /* @__PURE__ */ r(
48
- "div",
49
- {
50
- ref: a,
51
- className: b(
52
- "flex items-center justify-center text-muted-foreground text-sm",
53
- e
54
- ),
55
- ...s,
56
- children: u
57
- }
58
- ) : /* @__PURE__ */ r(
59
- "div",
60
- {
61
- ref: a,
62
- className: b("relative w-full h-full overflow-hidden", e),
63
- ...s,
64
- children: /* @__PURE__ */ v(
65
- C,
66
- {
67
- initialScale: 1,
68
- minScale: 0.25,
69
- maxScale: 4,
70
- centerOnInit: !0,
71
- children: [
72
- /* @__PURE__ */ r(A, { code: t, svg: l, svgFilename: i }),
73
- /* @__PURE__ */ r(
74
- k,
75
- {
76
- wrapperClass: "!w-full !h-full",
77
- contentClass: "!w-full",
78
- children: /* @__PURE__ */ r(
79
- "div",
80
- {
81
- className: "w-full [&>svg]:w-full [&>svg]:h-auto",
82
- dangerouslySetInnerHTML: { __html: l }
83
- }
84
- )
85
- }
86
- )
87
- ]
88
- }
89
- )
90
- }
91
- );
92
- }), A = ({ code: e, svg: t, svgFilename: o }) => {
93
- const { zoomIn: n, zoomOut: s, resetTransform: a } = E(), [i, l] = x(!1), u = h(async () => {
94
- await navigator.clipboard.writeText(e), l(!0), setTimeout(() => l(!1), 2e3);
95
- }, [e]), d = h(() => {
96
- const g = new Blob([t], { type: "image/svg+xml" }), c = URL.createObjectURL(g), m = document.createElement("a");
97
- m.href = c, m.download = o, m.click(), URL.revokeObjectURL(c);
98
- }, [t, o]);
99
- return /* @__PURE__ */ v("div", { className: "absolute top-2 right-2 z-10 flex gap-1", children: [
100
- /* @__PURE__ */ r(
101
- "button",
102
- {
103
- onClick: () => n(),
104
- className: "p-1.5 rounded-md bg-background/80 border border-border hover:bg-muted text-foreground",
105
- children: /* @__PURE__ */ r(N, { size: 16 })
106
- }
107
- ),
108
- /* @__PURE__ */ r(
109
- "button",
110
- {
111
- onClick: () => s(),
112
- className: "p-1.5 rounded-md bg-background/80 border border-border hover:bg-muted text-foreground",
113
- children: /* @__PURE__ */ r(O, { size: 16 })
114
- }
115
- ),
116
- /* @__PURE__ */ r(
117
- "button",
118
- {
119
- onClick: () => a(),
120
- className: "p-1.5 rounded-md bg-background/80 border border-border hover:bg-muted text-foreground",
121
- children: /* @__PURE__ */ r(T, { size: 16 })
122
- }
123
- ),
124
- /* @__PURE__ */ r(
125
- "button",
126
- {
127
- onClick: u,
128
- className: "p-1.5 rounded-md bg-background/80 border border-border hover:bg-muted text-foreground",
129
- children: i ? /* @__PURE__ */ r(y, { size: 16 }) : /* @__PURE__ */ r(I, { size: 16 })
130
- }
131
- ),
132
- /* @__PURE__ */ r(
133
- "button",
134
- {
135
- onClick: d,
136
- className: "p-1.5 rounded-md bg-background/80 border border-border hover:bg-muted text-foreground",
137
- children: /* @__PURE__ */ r(z, { size: 16 })
138
- }
139
- )
140
- ] });
141
- };
142
- export {
143
- G as MermaidDiagram
30
+ var w = 0;
31
+ function T(e) {
32
+ if (!e) return "mermaid-diagram.svg";
33
+ let t = Math.max(e.lastIndexOf("/"), e.lastIndexOf("\\")), n = t >= 0 ? e.substring(t + 1) : e, r = n.lastIndexOf(".");
34
+ return `${(r > 0 ? n.substring(0, r) : n).replace(/[^a-zA-Z0-9_-]/g, "") || "mermaid-diagram"}.svg`;
35
+ }
36
+ var E = t(({ className: t, code: n, filename: l, ...u }, d) => {
37
+ let f = i(() => T(l), [l]), [p, m] = o(null), [v, y] = o(null), b = a(n);
38
+ return b.current = n, r(() => {
39
+ if (!n.trim()) {
40
+ m(null), y("Empty diagram");
41
+ return;
42
+ }
43
+ C();
44
+ let e = `mermaid-${++w}`, t = n;
45
+ h.render(e, t).then(({ svg: e }) => {
46
+ if (b.current === t) {
47
+ if (!x(e)) {
48
+ m(null), y("Invalid SVG");
49
+ return;
50
+ }
51
+ m(e), y(null);
52
+ }
53
+ }, (e) => {
54
+ b.current === t && (m(null), y(e instanceof Error ? e.message : "Invalid diagram"));
55
+ });
56
+ }, [n]), v ? /* @__PURE__ */ s("div", {
57
+ ref: d,
58
+ className: e("flex items-center justify-center text-muted-foreground text-sm", t),
59
+ ...u,
60
+ children: v
61
+ }) : p ? /* @__PURE__ */ s("div", {
62
+ ref: d,
63
+ className: e("relative w-full h-full overflow-hidden", t),
64
+ ...u,
65
+ children: /* @__PURE__ */ c(_, {
66
+ initialScale: 1,
67
+ minScale: .25,
68
+ maxScale: 4,
69
+ centerOnInit: !0,
70
+ children: [/* @__PURE__ */ s(D, {
71
+ code: n,
72
+ svg: p,
73
+ svgFilename: f
74
+ }), /* @__PURE__ */ s(g, {
75
+ wrapperClass: "!w-full !h-full",
76
+ contentClass: "!w-full",
77
+ children: /* @__PURE__ */ s("div", {
78
+ className: "w-full [&>svg]:mx-auto [&>svg]:h-auto [&>svg]:max-w-full",
79
+ dangerouslySetInnerHTML: { __html: p }
80
+ })
81
+ })]
82
+ })
83
+ }) : /* @__PURE__ */ s("div", {
84
+ ref: d,
85
+ className: e("flex items-center justify-center text-muted-foreground text-sm", t),
86
+ ...u,
87
+ children: "Rendering..."
88
+ });
89
+ }), D = ({ code: e, svg: t, svgFilename: r }) => {
90
+ let { zoomIn: i, zoomOut: a, resetTransform: h } = v(), [g, _] = o(!1), y = n(async () => {
91
+ await navigator.clipboard.writeText(e), _(!0), setTimeout(() => _(!1), 2e3);
92
+ }, [e]), b = n(() => {
93
+ let e = new Blob([t], { type: "image/svg+xml" }), n = URL.createObjectURL(e), i = document.createElement("a");
94
+ i.href = n, i.download = r, i.click(), URL.revokeObjectURL(n);
95
+ }, [t, r]);
96
+ return /* @__PURE__ */ c("div", {
97
+ className: "absolute top-2 right-2 z-10 flex gap-1",
98
+ children: [
99
+ /* @__PURE__ */ s("button", {
100
+ onClick: () => i(),
101
+ className: "p-1.5 rounded-md bg-background border border-border hover:bg-muted text-foreground",
102
+ children: /* @__PURE__ */ s(p, { size: 16 })
103
+ }),
104
+ /* @__PURE__ */ s("button", {
105
+ onClick: () => a(),
106
+ className: "p-1.5 rounded-md bg-background border border-border hover:bg-muted text-foreground",
107
+ children: /* @__PURE__ */ s(m, { size: 16 })
108
+ }),
109
+ /* @__PURE__ */ s("button", {
110
+ onClick: () => h(),
111
+ className: "p-1.5 rounded-md bg-background border border-border hover:bg-muted text-foreground",
112
+ children: /* @__PURE__ */ s(f, { size: 16 })
113
+ }),
114
+ /* @__PURE__ */ s("button", {
115
+ onClick: y,
116
+ className: "p-1.5 rounded-md bg-background border border-border hover:bg-muted text-foreground",
117
+ children: s(g ? l : u, { size: 16 })
118
+ }),
119
+ /* @__PURE__ */ s("button", {
120
+ onClick: b,
121
+ className: "p-1.5 rounded-md bg-background border border-border hover:bg-muted text-foreground",
122
+ children: /* @__PURE__ */ s(d, { size: 16 })
123
+ })
124
+ ]
125
+ });
144
126
  };
127
+ //#endregion
128
+ export { E as MermaidDiagram };
@@ -1,105 +1,62 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { MoreHorizontal as m, ChevronRight as c, ChevronLeft as p } from "lucide-react";
4
- import { cn as n } from "./utils.mjs";
5
- import { buttonVariants as g } from "./button.mjs";
6
- const N = ({ className: i, ...a }) => /* @__PURE__ */ e(
7
- "nav",
8
- {
9
- role: "navigation",
10
- "aria-label": "pagination",
11
- className: n("mx-auto flex w-full justify-center", i),
12
- ...a
13
- }
14
- );
15
- N.displayName = "Pagination";
16
- const d = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ e(
17
- "ul",
18
- {
19
- ref: t,
20
- className: n("flex flex-row items-center gap-1", i),
21
- ...a
22
- }
23
- ));
24
- d.displayName = "PaginationContent";
25
- const f = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ e("li", { ref: t, className: n("", i), ...a }));
26
- f.displayName = "PaginationItem";
27
- const s = ({
28
- className: i,
29
- isActive: a,
30
- size: t = "icon",
31
- ...r
32
- }) => /* @__PURE__ */ e(
33
- "a",
34
- {
35
- "aria-current": a ? "page" : void 0,
36
- className: n(
37
- g({
38
- variant: a ? "outline" : "ghost",
39
- size: t
40
- }),
41
- i
42
- ),
43
- ...r
44
- }
45
- );
46
- s.displayName = "PaginationLink";
47
- const P = ({
48
- className: i,
49
- ...a
50
- }) => /* @__PURE__ */ o(
51
- s,
52
- {
53
- "aria-label": "Go to previous page",
54
- size: "default",
55
- className: n("gap-1 pl-2.5", i),
56
- ...a,
57
- children: [
58
- /* @__PURE__ */ e(p, { className: "h-4 w-4" }),
59
- /* @__PURE__ */ e("span", { children: "Previous" })
60
- ]
61
- }
62
- );
63
- P.displayName = "PaginationPrevious";
64
- const h = ({
65
- className: i,
66
- ...a
67
- }) => /* @__PURE__ */ o(
68
- s,
69
- {
70
- "aria-label": "Go to next page",
71
- size: "default",
72
- className: n("gap-1 pr-2.5", i),
73
- ...a,
74
- children: [
75
- /* @__PURE__ */ e("span", { children: "Next" }),
76
- /* @__PURE__ */ e(c, { className: "h-4 w-4" })
77
- ]
78
- }
79
- );
80
- h.displayName = "PaginationNext";
81
- const u = ({
82
- className: i,
83
- ...a
84
- }) => /* @__PURE__ */ o(
85
- "span",
86
- {
87
- "aria-hidden": !0,
88
- className: n("flex h-9 w-9 items-center justify-center", i),
89
- ...a,
90
- children: [
91
- /* @__PURE__ */ e(m, { className: "h-4 w-4" }),
92
- /* @__PURE__ */ e("span", { className: "sr-only", children: "More pages" })
93
- ]
94
- }
95
- );
96
- u.displayName = "PaginationEllipsis";
97
- export {
98
- N as Pagination,
99
- d as PaginationContent,
100
- u as PaginationEllipsis,
101
- f as PaginationItem,
102
- s as PaginationLink,
103
- h as PaginationNext,
104
- P as PaginationPrevious
105
- };
1
+ import { cn as e } from "./utils.mjs";
2
+ import { buttonVariants as t } from "./button.mjs";
3
+ import * as n from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { ChevronLeft as a, ChevronRight as o, MoreHorizontal as s } from "lucide-react";
6
+ //#region src/components/pagination.tsx
7
+ var c = ({ className: t, ...n }) => /* @__PURE__ */ r("nav", {
8
+ role: "navigation",
9
+ "aria-label": "pagination",
10
+ className: e("mx-auto flex w-full justify-center", t),
11
+ ...n
12
+ });
13
+ c.displayName = "Pagination";
14
+ var l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("ul", {
15
+ ref: i,
16
+ className: e("flex flex-row items-center gap-1", t),
17
+ ...n
18
+ }));
19
+ l.displayName = "PaginationContent";
20
+ var u = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("li", {
21
+ ref: i,
22
+ className: e("", t),
23
+ ...n
24
+ }));
25
+ u.displayName = "PaginationItem";
26
+ var d = ({ className: n, isActive: i, size: a = "icon", ...o }) => /* @__PURE__ */ r("a", {
27
+ "aria-current": i ? "page" : void 0,
28
+ className: e(t({
29
+ variant: i ? "outline" : "ghost",
30
+ size: a
31
+ }), n),
32
+ ...o
33
+ });
34
+ d.displayName = "PaginationLink";
35
+ var f = ({ className: t, ...n }) => /* @__PURE__ */ i(d, {
36
+ "aria-label": "Go to previous page",
37
+ size: "default",
38
+ className: e("gap-1 pl-2.5", t),
39
+ ...n,
40
+ children: [/* @__PURE__ */ r(a, { className: "h-4 w-4" }), /* @__PURE__ */ r("span", { children: "Previous" })]
41
+ });
42
+ f.displayName = "PaginationPrevious";
43
+ var p = ({ className: t, ...n }) => /* @__PURE__ */ i(d, {
44
+ "aria-label": "Go to next page",
45
+ size: "default",
46
+ className: e("gap-1 pr-2.5", t),
47
+ ...n,
48
+ children: [/* @__PURE__ */ r("span", { children: "Next" }), /* @__PURE__ */ r(o, { className: "h-4 w-4" })]
49
+ });
50
+ p.displayName = "PaginationNext";
51
+ var m = ({ className: t, ...n }) => /* @__PURE__ */ i("span", {
52
+ "aria-hidden": !0,
53
+ className: e("flex h-9 w-9 items-center justify-center", t),
54
+ ...n,
55
+ children: [/* @__PURE__ */ r(s, { className: "h-4 w-4" }), /* @__PURE__ */ r("span", {
56
+ className: "sr-only",
57
+ children: "More pages"
58
+ })]
59
+ });
60
+ m.displayName = "PaginationEllipsis";
61
+ //#endregion
62
+ export { c as Pagination, l as PaginationContent, m as PaginationEllipsis, u as PaginationItem, d as PaginationLink, p as PaginationNext, f as PaginationPrevious };
package/dist/popover.mjs CHANGED
@@ -1,23 +1,15 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { Popover as o } from "radix-ui";
4
- import { cn as s } from "./utils.mjs";
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
- o.Content,
7
- {
8
- ref: i,
9
- align: a,
10
- sideOffset: r,
11
- className: s(
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
- e
14
- ),
15
- ...d
16
- }
17
- ) }));
18
- m.displayName = o.Content.displayName;
19
- export {
20
- c as Popover,
21
- m as PopoverContent,
22
- g as PopoverTrigger
23
- };
1
+ import { cn as e } from "./utils.mjs";
2
+ import * as t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { Popover as r } from "radix-ui";
5
+ //#region src/components/popover.tsx
6
+ var i = r.Root, a = r.Trigger, o = t.forwardRef(({ className: t, align: i = "center", sideOffset: a = 4, ...o }, s) => /* @__PURE__ */ n(r.Portal, { children: /* @__PURE__ */ n(r.Content, {
7
+ ref: s,
8
+ align: i,
9
+ sideOffset: a,
10
+ className: e("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]", t),
11
+ ...o
12
+ }) }));
13
+ o.displayName = r.Content.displayName;
14
+ //#endregion
15
+ export { i as Popover, o as PopoverContent, a as PopoverTrigger };
package/dist/progress.mjs CHANGED
@@ -1,26 +1,18 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ "use client";
2
+ import { cn as e } from "./utils.mjs";
2
3
  import * as t from "react";
4
+ import { jsx as n } from "react/jsx-runtime";
3
5
  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
- r.Root,
7
- {
8
- ref: l,
9
- className: m(
10
- "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
11
- a
12
- ),
13
- ...e,
14
- children: /* @__PURE__ */ o(
15
- r.Indicator,
16
- {
17
- className: "h-full w-full flex-1 bg-primary transition-all",
18
- style: { transform: `translateX(-${100 - (s || 0)}%)` }
19
- }
20
- )
21
- }
22
- ));
23
- f.displayName = r.Root.displayName;
24
- export {
25
- f as Progress
26
- };
6
+ //#region src/components/progress.tsx
7
+ var i = t.forwardRef(({ className: t, value: i, ...a }, o) => /* @__PURE__ */ n(r.Root, {
8
+ ref: o,
9
+ className: e("relative h-4 w-full overflow-hidden rounded-full bg-secondary", t),
10
+ ...a,
11
+ children: /* @__PURE__ */ n(r.Indicator, {
12
+ className: "h-full w-full flex-1 bg-primary transition-all",
13
+ style: { transform: `translateX(-${100 - (i || 0)}%)` }
14
+ })
15
+ }));
16
+ i.displayName = r.Root.displayName;
17
+ //#endregion
18
+ export { i as Progress };
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
- export declare function TuringpaperUI({ children }: {
2
+ export declare function TuringpaperUI({ className, children }: {
3
+ className?: string;
3
4
  children: React.ReactNode;
4
5
  }): import("react/jsx-runtime").JSX.Element;