@drjoshcsimmons/scl 0.1.0 → 0.1.1
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/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +31 -0
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox/index.d.ts +3 -0
- package/dist/components/ui/combobox/index.d.ts.map +1 -0
- package/dist/components/ui/command/command.d.ts +85 -0
- package/dist/components/ui/command/command.d.ts.map +1 -0
- package/dist/components/ui/command/index.d.ts +2 -0
- package/dist/components/ui/command/index.d.ts.map +1 -0
- package/dist/components/ui/dithered-image/dithered-image.d.ts +6 -2
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/index.d.ts +1 -1
- package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
- package/dist/components/ui/form/form.d.ts +24 -0
- package/dist/components/ui/form/form.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +2 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/progress/progress.d.ts +0 -6
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +4 -1
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -5
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +166 -143
- package/dist/index10.js +30 -30
- package/dist/index100.js +9 -30
- package/dist/index101.js +50 -15
- package/dist/index102.js +212 -128
- package/dist/index103.js +4 -50
- package/dist/index104.js +30 -9
- package/dist/index105.js +6 -4
- package/dist/index106.js +19 -179
- package/dist/index107.js +9 -650
- package/dist/index108.js +38 -107
- package/dist/index109.js +17 -90
- package/dist/index11.js +13 -13
- package/dist/index110.js +11 -66
- package/dist/index111.js +201 -154
- package/dist/index112.js +20 -395
- package/dist/index113.js +395 -1675
- package/dist/index114.js +2 -278
- package/dist/index115.js +49 -128
- package/dist/index116.js +65 -32
- package/dist/index117.js +2 -1611
- package/dist/index118.js +2 -298
- package/dist/index119.js +22 -632
- package/dist/index12.js +1 -1
- package/dist/index120.js +29 -144
- package/dist/index121.js +5 -21
- package/dist/index122.js +5 -9
- package/dist/index123.js +3 -38
- package/dist/index124.js +24 -18
- package/dist/index125.js +113 -6
- package/dist/index126.js +15 -11
- package/dist/index127.js +513 -194
- package/dist/index128.js +128 -22
- package/dist/index129.js +114 -380
- package/dist/index13.js +132 -93
- package/dist/index130.js +59 -1300
- package/dist/index131.js +63 -612
- package/dist/index132.js +9 -2
- package/dist/index133.js +13 -52
- package/dist/index134.js +64 -63
- package/dist/index135.js +3 -24
- package/dist/index136.js +23 -29
- package/dist/index137.js +23 -5
- package/dist/index138.js +13 -2
- package/dist/index139.js +28 -2
- package/dist/index14.js +106 -220
- package/dist/index140.js +5 -5
- package/dist/index15.js +79 -125
- package/dist/index16.js +280 -17
- package/dist/index17.js +139 -12
- package/dist/index18.js +92 -22
- package/dist/index19.js +18 -55
- package/dist/index2.js +2 -2
- package/dist/index20.js +14 -26
- package/dist/index21.js +19 -33
- package/dist/index22.js +38 -121
- package/dist/index23.js +29 -22
- package/dist/index24.js +31 -64
- package/dist/index25.js +121 -15
- package/dist/index26.js +19 -29
- package/dist/index27.js +68 -77
- package/dist/index28.js +20 -25
- package/dist/index29.js +32 -88
- package/dist/index3.js +11 -9
- package/dist/index30.js +138 -38
- package/dist/index31.js +20 -227
- package/dist/index32.js +88 -18
- package/dist/index33.js +37 -28
- package/dist/index34.js +86 -22
- package/dist/index35.js +17 -102
- package/dist/index36.js +34 -65
- package/dist/index37.js +23 -49
- package/dist/index38.js +38 -99
- package/dist/index39.js +65 -10
- package/dist/index4.js +6 -6
- package/dist/index40.js +49 -15
- package/dist/index41.js +93 -2256
- package/dist/index42.js +10 -32
- package/dist/index43.js +15 -18
- package/dist/index44.js +2251 -225
- package/dist/index45.js +33 -11
- package/dist/index46.js +116 -64
- package/dist/index47.js +207 -219
- package/dist/index48.js +5 -3
- package/dist/index49.js +54 -330
- package/dist/index5.js +23 -23
- package/dist/index50.js +244 -55
- package/dist/index51.js +9 -241
- package/dist/index52.js +60 -847
- package/dist/index53.js +236 -9
- package/dist/index54.js +11 -118
- package/dist/index55.js +300 -215
- package/dist/index56.js +4 -3
- package/dist/index57.js +225 -11
- package/dist/index58.js +11 -236
- package/dist/index59.js +27 -256
- package/dist/index6.js +12 -12
- package/dist/index60.js +260 -12
- package/dist/index61.js +12 -22
- package/dist/index62.js +94 -506
- package/dist/index63.js +12 -6155
- package/dist/index64.js +20 -2631
- package/dist/index65.js +16 -296
- package/dist/index66.js +232 -663
- package/dist/index67.js +125 -825
- package/dist/index68.js +159 -23
- package/dist/index69.js +241 -315
- package/dist/index7.js +22 -22
- package/dist/index70.js +72 -4889
- package/dist/index71.js +503 -802
- package/dist/index72.js +412 -1235
- package/dist/index73.js +323 -521
- package/dist/index74.js +839 -104
- package/dist/index75.js +9 -161
- package/dist/index76.js +67 -30
- package/dist/index77.js +22 -430
- package/dist/index78.js +6 -129
- package/dist/index79.js +48 -75
- package/dist/index8.js +17 -18
- package/dist/index80.js +42 -64
- package/dist/index81.js +50 -44
- package/dist/index82.js +32 -25
- package/dist/index83.js +10 -6
- package/dist/index84.js +7 -51
- package/dist/index85.js +5 -33
- package/dist/index86.js +24 -10
- package/dist/index87.js +68 -7
- package/dist/index88.js +55 -30
- package/dist/index89.js +10 -54
- package/dist/index9.js +23 -31
- package/dist/index90.js +4 -11
- package/dist/index91.js +30 -4
- package/dist/index92.js +1 -1
- package/dist/index93.js +180 -5
- package/dist/index94.js +14 -24
- package/dist/index95.js +643 -62
- package/dist/index96.js +5 -5
- package/dist/index97.js +128 -212
- package/dist/index98.js +2 -2
- package/dist/index99.js +13 -52
- package/dist/tokens/colors.d.ts +26 -86
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +12 -84
- package/dist/tokens/index.d.ts.map +1 -1
- package/package.json +26 -22
- package/dist/index141.js +0 -5
- package/dist/index142.js +0 -26
- package/dist/index143.js +0 -115
- package/dist/index144.js +0 -18
- package/dist/index145.js +0 -527
- package/dist/index146.js +0 -130
- package/dist/index147.js +0 -136
- package/dist/index148.js +0 -67
- package/dist/index149.js +0 -71
- package/dist/index150.js +0 -11
- package/dist/index151.js +0 -16
- package/dist/index152.js +0 -68
- package/dist/index153.js +0 -6
- package/dist/index154.js +0 -25
- package/dist/index155.js +0 -25
- package/dist/index156.js +0 -15
- package/dist/index157.js +0 -30
- package/dist/index158.js +0 -7
package/dist/index27.js
CHANGED
|
@@ -1,81 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
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
|
-
rightContent: u,
|
|
29
|
-
...N
|
|
30
|
-
}, g) => {
|
|
31
|
-
const c = m.useMemo(() => {
|
|
32
|
-
if (i !== void 0) return i;
|
|
33
|
-
if (e !== void 0 && l !== void 0 && l > 0)
|
|
34
|
-
return e <= 1 ? "Top" : e >= l ? "Bot" : `${Math.round(e / l * 100)}%`;
|
|
35
|
-
}, [i, e, l]);
|
|
36
|
-
return /* @__PURE__ */ a(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
ref: g,
|
|
40
|
-
className: n(
|
|
41
|
-
"flex h-6 w-full items-stretch font-mono text-sm bg-black text-white",
|
|
42
|
-
o
|
|
43
|
-
),
|
|
44
|
-
...N,
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ a("div", { className: "flex items-stretch", children: [
|
|
47
|
-
/* @__PURE__ */ t(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
className: n(
|
|
51
|
-
"flex items-center px-3 font-bold",
|
|
52
|
-
y[x]
|
|
53
|
-
),
|
|
54
|
-
children: f
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
b,
|
|
58
|
-
d && /* @__PURE__ */ a("div", { className: "flex items-center px-2 text-white", children: [
|
|
59
|
-
/* @__PURE__ */ t("span", { className: "mr-1", children: "⎇" }),
|
|
60
|
-
d
|
|
61
|
-
] })
|
|
62
|
-
] }),
|
|
63
|
-
/* @__PURE__ */ t("div", { className: "flex flex-1 items-center px-3 bg-blue-800 mx-2", children: p || /* @__PURE__ */ t(w, { children: s && /* @__PURE__ */ a("span", { className: "text-white truncate", children: [
|
|
64
|
-
s,
|
|
65
|
-
h && /* @__PURE__ */ t("span", { className: "text-terminal-yellow ml-1", children: "[+]" }),
|
|
66
|
-
v && /* @__PURE__ */ t("span", { className: "text-terminal-orange ml-1", children: "[RO]" })
|
|
67
|
-
] }) }) }),
|
|
68
|
-
/* @__PURE__ */ a("div", { className: "flex items-stretch gap-2", children: [
|
|
69
|
-
u,
|
|
70
|
-
c !== void 0 && /* @__PURE__ */ t("div", { className: "flex items-center px-3 text-white", children: c }),
|
|
71
|
-
(e !== void 0 || r !== void 0) && /* @__PURE__ */ t("div", { className: "flex items-center px-3 bg-terminal-yellow text-black font-bold", children: e !== void 0 && r !== void 0 ? `${e}:${r}` : e !== void 0 ? `Ln ${e}` : `Col ${r}` })
|
|
72
|
-
] })
|
|
73
|
-
]
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as l, Title as m, Description as c } from "./index60.js";
|
|
4
|
+
import { cva as y } from "./index45.js";
|
|
5
|
+
import { cn as s } from "./index2.js";
|
|
6
|
+
import N from "./index61.js";
|
|
7
|
+
const H = g, O = x, P = n, b = u, f = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
8
|
+
d,
|
|
9
|
+
{
|
|
10
|
+
className: s(
|
|
11
|
+
"fixed inset-0 z-50 bg-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
12
|
+
e
|
|
13
|
+
),
|
|
14
|
+
...t,
|
|
15
|
+
ref: o
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
f.displayName = d.displayName;
|
|
19
|
+
const S = y(
|
|
20
|
+
"fixed z-[60] gap-4 bg-black p-6 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
side: {
|
|
24
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
25
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
26
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
27
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
74
28
|
}
|
|
75
|
-
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
side: "right"
|
|
32
|
+
}
|
|
76
33
|
}
|
|
77
|
-
)
|
|
78
|
-
|
|
34
|
+
), w = i.forwardRef(({ side: e = "right", className: t, children: o, ...p }, h) => /* @__PURE__ */ r(b, { children: [
|
|
35
|
+
/* @__PURE__ */ a(f, {}),
|
|
36
|
+
/* @__PURE__ */ r(
|
|
37
|
+
l,
|
|
38
|
+
{
|
|
39
|
+
ref: h,
|
|
40
|
+
className: s(S({ side: e }), t),
|
|
41
|
+
...p,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ r(n, { className: "absolute right-4 top-4 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-secondary", children: [
|
|
44
|
+
/* @__PURE__ */ a(N, { className: "h-4 w-4" }),
|
|
45
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
46
|
+
] }),
|
|
47
|
+
o
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }));
|
|
52
|
+
w.displayName = l.displayName;
|
|
53
|
+
const v = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
54
|
+
v.displayName = "SheetHeader";
|
|
55
|
+
const R = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
56
|
+
R.displayName = "SheetFooter";
|
|
57
|
+
const C = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(m, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...t }));
|
|
58
|
+
C.displayName = m.displayName;
|
|
59
|
+
const T = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(c, { ref: o, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
60
|
+
T.displayName = c.displayName;
|
|
79
61
|
export {
|
|
80
|
-
|
|
62
|
+
H as Sheet,
|
|
63
|
+
P as SheetClose,
|
|
64
|
+
w as SheetContent,
|
|
65
|
+
T as SheetDescription,
|
|
66
|
+
R as SheetFooter,
|
|
67
|
+
v as SheetHeader,
|
|
68
|
+
f as SheetOverlay,
|
|
69
|
+
b as SheetPortal,
|
|
70
|
+
C as SheetTitle,
|
|
71
|
+
O as SheetTrigger
|
|
81
72
|
};
|
package/dist/index28.js
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
}
|
|
23
|
-
));
|
|
24
|
-
c.displayName = a.displayName;
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "./index2.js";
|
|
3
|
+
function a({
|
|
4
|
+
className: r,
|
|
5
|
+
blink: e = !0,
|
|
6
|
+
...o
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: m(
|
|
12
|
+
"border border-primary/30 bg-primary/10",
|
|
13
|
+
e && "animate-blink",
|
|
14
|
+
r
|
|
15
|
+
),
|
|
16
|
+
...o
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
25
20
|
export {
|
|
26
|
-
|
|
21
|
+
a as Skeleton
|
|
27
22
|
};
|
package/dist/index29.js
CHANGED
|
@@ -1,90 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
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
|
-
...a
|
|
33
|
-
}
|
|
34
|
-
));
|
|
35
|
-
b.displayName = "TableFooter";
|
|
36
|
-
const c = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
37
|
-
"tr",
|
|
38
|
-
{
|
|
39
|
-
ref: o,
|
|
40
|
-
className: r(
|
|
41
|
-
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
42
|
-
e
|
|
43
|
-
),
|
|
44
|
-
...a
|
|
45
|
-
}
|
|
46
|
-
));
|
|
47
|
-
c.displayName = "TableRow";
|
|
48
|
-
const f = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
49
|
-
"th",
|
|
50
|
-
{
|
|
51
|
-
ref: o,
|
|
52
|
-
className: r(
|
|
53
|
-
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
54
|
-
e
|
|
55
|
-
),
|
|
56
|
-
...a
|
|
57
|
-
}
|
|
58
|
-
));
|
|
59
|
-
f.displayName = "TableHead";
|
|
60
|
-
const i = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
61
|
-
"td",
|
|
62
|
-
{
|
|
63
|
-
ref: o,
|
|
64
|
-
className: r(
|
|
65
|
-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
66
|
-
e
|
|
67
|
-
),
|
|
68
|
-
...a
|
|
69
|
-
}
|
|
70
|
-
));
|
|
71
|
-
i.displayName = "TableCell";
|
|
72
|
-
const n = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
73
|
-
"caption",
|
|
74
|
-
{
|
|
75
|
-
ref: o,
|
|
76
|
-
className: r("mt-4 text-sm text-muted-foreground", e),
|
|
77
|
-
...a
|
|
78
|
-
}
|
|
79
|
-
));
|
|
80
|
-
n.displayName = "TableCaption";
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { Root as n, Track as l, Range as p, Thumb as d } from "./index72.js";
|
|
4
|
+
import { cn as h } from "./index2.js";
|
|
5
|
+
const g = b.forwardRef(({ className: i, defaultValue: r, value: o, ...s }, m) => {
|
|
6
|
+
const t = (o == null ? void 0 : o.length) ?? (r == null ? void 0 : r.length) ?? 1;
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
n,
|
|
9
|
+
{
|
|
10
|
+
ref: m,
|
|
11
|
+
defaultValue: r,
|
|
12
|
+
value: o,
|
|
13
|
+
className: h(
|
|
14
|
+
"relative flex w-full touch-none select-none items-center",
|
|
15
|
+
i
|
|
16
|
+
),
|
|
17
|
+
...s,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ e(l, { className: "relative h-2 w-full grow overflow-hidden border border-primary bg-background", children: /* @__PURE__ */ e(p, { className: "absolute h-full bg-primary" }) }),
|
|
20
|
+
Array.from({ length: t }).map((f, c) => /* @__PURE__ */ e(
|
|
21
|
+
d,
|
|
22
|
+
{
|
|
23
|
+
className: "block h-5 w-3 border-2 border-primary bg-primary transition-all focus-visible:outline-none hover:bg-background disabled:pointer-events-none disabled:opacity-50"
|
|
24
|
+
},
|
|
25
|
+
c
|
|
26
|
+
))
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
});
|
|
31
|
+
g.displayName = n.displayName;
|
|
81
32
|
export {
|
|
82
|
-
|
|
83
|
-
m as TableBody,
|
|
84
|
-
n as TableCaption,
|
|
85
|
-
i as TableCell,
|
|
86
|
-
b as TableFooter,
|
|
87
|
-
f as TableHead,
|
|
88
|
-
s as TableHeader,
|
|
89
|
-
c as TableRow
|
|
33
|
+
g as Slider
|
|
90
34
|
};
|
package/dist/index3.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { colors as o } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { colors as o } from "./index38.js";
|
|
2
|
+
import { palette as g } from "./index38.js";
|
|
3
|
+
import { typography as r } from "./index39.js";
|
|
4
|
+
import { borderRadius as m, spacing as t } from "./index40.js";
|
|
5
|
+
import { animations as p } from "./index41.js";
|
|
6
|
+
import { shadows as i } from "./index42.js";
|
|
6
7
|
const c = {
|
|
7
8
|
colors: o,
|
|
8
9
|
typography: r,
|
|
9
10
|
spacing: t,
|
|
10
11
|
borderRadius: m,
|
|
11
|
-
animations:
|
|
12
|
-
shadows:
|
|
12
|
+
animations: p,
|
|
13
|
+
shadows: i
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
p as animations,
|
|
16
17
|
m as borderRadius,
|
|
17
18
|
o as colors,
|
|
18
|
-
|
|
19
|
+
g as palette,
|
|
20
|
+
i as shadows,
|
|
19
21
|
t as spacing,
|
|
20
22
|
c as theme,
|
|
21
23
|
r as typography
|
package/dist/index30.js
CHANGED
|
@@ -1,46 +1,146 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as c, List as n, Trigger as o, Content as d } from "./index75.js";
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
4
3
|
import { cn as r } from "./index2.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
const B = {
|
|
5
|
+
default: {
|
|
6
|
+
bg: "bg-blue-600",
|
|
7
|
+
fg: "text-yellow-300",
|
|
8
|
+
label: "NORMAL"
|
|
9
|
+
},
|
|
10
|
+
insert: {
|
|
11
|
+
bg: "bg-green-600",
|
|
12
|
+
fg: "text-black",
|
|
13
|
+
label: "INSERT"
|
|
14
|
+
},
|
|
15
|
+
visual: {
|
|
16
|
+
bg: "bg-fuchsia-500",
|
|
17
|
+
fg: "text-black",
|
|
18
|
+
label: "VISUAL"
|
|
19
|
+
},
|
|
20
|
+
command: {
|
|
21
|
+
bg: "bg-red-600",
|
|
22
|
+
fg: "text-white",
|
|
23
|
+
label: "COMMAND"
|
|
14
24
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
}, p = ({
|
|
26
|
+
direction: m = "right",
|
|
27
|
+
fromBg: i,
|
|
28
|
+
toBg: d
|
|
29
|
+
}) => m === "right" ? /* @__PURE__ */ e(
|
|
30
|
+
"span",
|
|
19
31
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
e
|
|
24
|
-
),
|
|
25
|
-
...t
|
|
32
|
+
className: r("inline-flex items-center", d),
|
|
33
|
+
style: { fontSize: "1.5rem", lineHeight: 1 },
|
|
34
|
+
children: /* @__PURE__ */ e("span", { className: i.replace("bg-", "text-") })
|
|
26
35
|
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
const m = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
|
|
30
|
-
d,
|
|
36
|
+
) : /* @__PURE__ */ e(
|
|
37
|
+
"span",
|
|
31
38
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
className: r("inline-flex items-center", i),
|
|
40
|
+
style: { fontSize: "1.5rem", lineHeight: 1 },
|
|
41
|
+
children: /* @__PURE__ */ e("span", { className: d.replace("bg-", "text-") })
|
|
42
|
+
}
|
|
43
|
+
), C = u.forwardRef(
|
|
44
|
+
({
|
|
45
|
+
className: m,
|
|
46
|
+
mode: i,
|
|
47
|
+
modeVariant: d = "default",
|
|
48
|
+
filename: o,
|
|
49
|
+
filetype: f,
|
|
50
|
+
filetypeAbbr: g,
|
|
51
|
+
encoding: N = "utf-8",
|
|
52
|
+
line: t,
|
|
53
|
+
column: c,
|
|
54
|
+
totalLines: a,
|
|
55
|
+
percentage: n,
|
|
56
|
+
branch: x,
|
|
57
|
+
diffStat: O,
|
|
58
|
+
modified: v = !1,
|
|
59
|
+
readonly: y = !1,
|
|
60
|
+
leftContent: w,
|
|
61
|
+
centerContent: S,
|
|
62
|
+
rightContent: M,
|
|
63
|
+
...R
|
|
64
|
+
}, $) => {
|
|
65
|
+
const s = B[d], A = i || s.label, b = u.useMemo(() => {
|
|
66
|
+
if (n !== void 0) return n;
|
|
67
|
+
if (t !== void 0 && a !== void 0 && a > 0)
|
|
68
|
+
return t <= 1 ? "Top" : t >= a ? "Bot" : `${Math.round(t / a * 100)}%`;
|
|
69
|
+
}, [n, t, a]);
|
|
70
|
+
return /* @__PURE__ */ l(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
ref: $,
|
|
74
|
+
className: r(
|
|
75
|
+
"flex h-6 w-full items-stretch font-mono text-sm",
|
|
76
|
+
m
|
|
77
|
+
),
|
|
78
|
+
...R,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ l("div", { className: "flex items-stretch", children: [
|
|
81
|
+
/* @__PURE__ */ e(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: r(
|
|
85
|
+
"flex items-center px-2 font-bold",
|
|
86
|
+
s.bg,
|
|
87
|
+
s.fg
|
|
88
|
+
),
|
|
89
|
+
children: A
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ e(p, { fromBg: s.bg, toBg: "bg-muted" }),
|
|
93
|
+
w,
|
|
94
|
+
x && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ l("div", { className: "flex items-center px-2 bg-muted text-yellow-400", children: [
|
|
95
|
+
/* @__PURE__ */ e("span", { className: "mr-1" }),
|
|
96
|
+
x
|
|
97
|
+
] }) })
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 items-center px-3 bg-muted", children: S || /* @__PURE__ */ l(h, { children: [
|
|
100
|
+
/* @__PURE__ */ e("span", { className: "mr-1 text-muted-foreground" }),
|
|
101
|
+
o && /* @__PURE__ */ l("span", { className: "text-primary truncate", children: [
|
|
102
|
+
o,
|
|
103
|
+
v && /* @__PURE__ */ e("span", { className: "text-yellow-400 ml-1", children: "[+]" }),
|
|
104
|
+
y && /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "[RO]" })
|
|
105
|
+
] })
|
|
106
|
+
] }) }),
|
|
107
|
+
/* @__PURE__ */ l("div", { className: "flex items-stretch", children: [
|
|
108
|
+
M,
|
|
109
|
+
(f || g) && /* @__PURE__ */ l("div", { className: "flex items-center px-2 bg-muted text-cyan-400", children: [
|
|
110
|
+
/* @__PURE__ */ e("span", { className: "mr-1" }),
|
|
111
|
+
g || f
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ e("div", { className: "flex items-center px-2 bg-muted text-muted-foreground", children: N }),
|
|
114
|
+
/* @__PURE__ */ e(p, { direction: "left", fromBg: s.bg, toBg: "bg-muted" }),
|
|
115
|
+
b !== void 0 && /* @__PURE__ */ e(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: r(
|
|
119
|
+
"flex items-center px-2 font-bold",
|
|
120
|
+
s.bg,
|
|
121
|
+
s.fg
|
|
122
|
+
),
|
|
123
|
+
children: b
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
(t !== void 0 || c !== void 0) && /* @__PURE__ */ e(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
className: r(
|
|
130
|
+
"flex items-center px-2 font-bold",
|
|
131
|
+
s.bg,
|
|
132
|
+
s.fg
|
|
133
|
+
),
|
|
134
|
+
children: t !== void 0 && c !== void 0 ? `${t}:${c}` : t !== void 0 ? `Ln ${t}` : `Col ${c}`
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
);
|
|
38
141
|
}
|
|
39
|
-
)
|
|
40
|
-
|
|
142
|
+
);
|
|
143
|
+
C.displayName = "Statusline";
|
|
41
144
|
export {
|
|
42
|
-
|
|
43
|
-
m as TabsContent,
|
|
44
|
-
f as TabsList,
|
|
45
|
-
l as TabsTrigger
|
|
145
|
+
C as Statusline
|
|
46
146
|
};
|