@drjoshcsimmons/scl 0.1.0 → 0.1.2
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 +218 -29
- package/dist/index101.js +646 -11
- package/dist/index102.js +173 -127
- package/dist/index103.js +4 -50
- package/dist/index104.js +30 -9
- package/dist/index105.js +6 -4
- package/dist/index106.js +11 -180
- package/dist/index107.js +19 -648
- package/dist/index108.js +9 -107
- package/dist/index109.js +38 -91
- package/dist/index11.js +13 -13
- package/dist/index110.js +18 -67
- 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 +19 -1605
- package/dist/index118.js +28 -297
- package/dist/index119.js +5 -635
- package/dist/index12.js +1 -1
- package/dist/index120.js +2 -144
- package/dist/index121.js +2 -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 +237 -11
- package/dist/index46.js +11 -73
- package/dist/index47.js +33 -249
- package/dist/index48.js +118 -9
- package/dist/index49.js +63 -326
- package/dist/index5.js +23 -23
- package/dist/index50.js +307 -57
- package/dist/index51.js +12 -241
- package/dist/index52.js +222 -822
- package/dist/index53.js +6 -3
- package/dist/index54.js +56 -114
- package/dist/index55.js +248 -219
- package/dist/index56.js +249 -11
- package/dist/index57.js +3 -5
- package/dist/index58.js +110 -221
- package/dist/index59.js +12 -260
- package/dist/index6.js +12 -12
- package/dist/index60.js +18 -12
- package/dist/index61.js +221 -18
- package/dist/index62.js +11 -530
- package/dist/index63.js +11 -6155
- package/dist/index64.js +234 -2626
- package/dist/index65.js +230 -292
- package/dist/index66.js +504 -646
- package/dist/index67.js +155 -824
- package/dist/index68.js +128 -23
- package/dist/index69.js +319 -311
- package/dist/index7.js +22 -22
- package/dist/index70.js +72 -4889
- package/dist/index71.js +408 -802
- package/dist/index72.js +18 -1254
- package/dist/index73.js +844 -518
- package/dist/index74.js +9 -125
- package/dist/index75.js +31 -161
- package/dist/index76.js +7 -31
- package/dist/index77.js +62 -429
- package/dist/index78.js +50 -128
- package/dist/index79.js +4 -81
- package/dist/index8.js +17 -18
- package/dist/index80.js +23 -64
- package/dist/index81.js +33 -45
- package/dist/index82.js +63 -21
- package/dist/index83.js +10 -6
- package/dist/index84.js +52 -49
- package/dist/index85.js +10 -33
- package/dist/index86.js +30 -11
- package/dist/index87.js +12 -7
- package/dist/index88.js +46 -30
- package/dist/index89.js +7 -54
- package/dist/index9.js +23 -31
- package/dist/index90.js +14 -10
- package/dist/index91.js +125 -4
- package/dist/index92.js +131 -9
- package/dist/index93.js +14 -6
- package/dist/index94.js +14 -24
- package/dist/index95.js +9 -69
- package/dist/index96.js +47 -122
- package/dist/index97.js +51 -216
- package/dist/index98.js +6 -14
- package/dist/index99.js +24 -53
- 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 +28 -23
- 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/index31.js
CHANGED
|
@@ -1,234 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
var V = (t, e, r) => e in t ? D(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var F = (t, e, r) => V(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { jsxs as A, jsx as w } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
2
|
import * as a from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { html as z } from "./index66.js";
|
|
11
|
-
import { css as I } from "./index67.js";
|
|
12
|
-
import { json as O } from "./index68.js";
|
|
13
|
-
import { markdown as $ } from "./index69.js";
|
|
14
|
-
import { vim as q } from "./index70.js";
|
|
15
|
-
import { defaultKeymap as G, historyKeymap as J } from "./index71.js";
|
|
16
|
-
import { HighlightStyle as M, syntaxHighlighting as Q } from "./index72.js";
|
|
17
|
-
import { tags as o } from "./index73.js";
|
|
18
|
-
const U = v.line({
|
|
19
|
-
attributes: { class: "cm-vim-empty-line" }
|
|
20
|
-
}), X = H.fromClass(
|
|
21
|
-
class {
|
|
22
|
-
constructor(t) {
|
|
23
|
-
F(this, "decorations");
|
|
24
|
-
this.decorations = this.buildDecorations(t);
|
|
25
|
-
}
|
|
26
|
-
update(t) {
|
|
27
|
-
(t.docChanged || t.viewportChanged) && (this.decorations = this.buildDecorations(t.view));
|
|
28
|
-
}
|
|
29
|
-
buildDecorations(t) {
|
|
30
|
-
const e = [], r = t.state.doc.lines;
|
|
31
|
-
for (let i = r + 1; i <= r + 20; i++) {
|
|
32
|
-
const m = t.state.doc.length;
|
|
33
|
-
e.push(U.range(m));
|
|
34
|
-
}
|
|
35
|
-
return v.set(e, !0);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
3
|
+
import { Root as o, Thumb as n } from "./index68.js";
|
|
4
|
+
import { cn as e } from "./index2.js";
|
|
5
|
+
const c = a.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ r(
|
|
6
|
+
o,
|
|
38
7
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
onChange: m,
|
|
48
|
-
onCursorChange: g,
|
|
49
|
-
vimMode: l = !1,
|
|
50
|
-
language: s = "none",
|
|
51
|
-
placeholder: d,
|
|
52
|
-
readOnly: b = !1
|
|
53
|
-
}, E) => {
|
|
54
|
-
const y = a.useRef(null), c = a.useRef(null), B = a.useCallback(() => {
|
|
55
|
-
switch (s) {
|
|
56
|
-
case "javascript":
|
|
57
|
-
case "typescript":
|
|
58
|
-
return W({ typescript: s === "typescript" });
|
|
59
|
-
case "html":
|
|
60
|
-
return z();
|
|
61
|
-
case "css":
|
|
62
|
-
return I();
|
|
63
|
-
case "json":
|
|
64
|
-
return O();
|
|
65
|
-
case "markdown":
|
|
66
|
-
return $();
|
|
67
|
-
default:
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}, [s]), h = u.theme({
|
|
71
|
-
"&": {
|
|
72
|
-
backgroundColor: "#000000",
|
|
73
|
-
color: "#00ff00",
|
|
74
|
-
fontSize: "14px",
|
|
75
|
-
fontFamily: "BigBlueTerm437, monospace !important",
|
|
76
|
-
height: `${e * 1.5}rem`
|
|
77
|
-
},
|
|
78
|
-
".cm-scroller": {
|
|
79
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
80
|
-
},
|
|
81
|
-
".cm-content": {
|
|
82
|
-
caretColor: "#00ff00",
|
|
83
|
-
padding: "0.5rem",
|
|
84
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
85
|
-
},
|
|
86
|
-
".cm-line": {
|
|
87
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
88
|
-
},
|
|
89
|
-
".cm-cursor": {
|
|
90
|
-
borderLeftColor: "#00ff00",
|
|
91
|
-
borderLeftWidth: "2px"
|
|
92
|
-
},
|
|
93
|
-
".cm-activeLine": {
|
|
94
|
-
backgroundColor: "rgba(0, 255, 0, 0.05)"
|
|
95
|
-
},
|
|
96
|
-
".cm-selectionBackground": {
|
|
97
|
-
backgroundColor: "rgba(0, 255, 0, 0.2) !important"
|
|
98
|
-
},
|
|
99
|
-
"&.cm-focused .cm-selectionBackground": {
|
|
100
|
-
backgroundColor: "rgba(0, 255, 0, 0.3) !important"
|
|
101
|
-
},
|
|
102
|
-
".cm-gutters": {
|
|
103
|
-
backgroundColor: "#000000",
|
|
104
|
-
color: "#ffff00",
|
|
105
|
-
border: "none",
|
|
106
|
-
borderRight: "1px solid #00ff00",
|
|
107
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
108
|
-
},
|
|
109
|
-
".cm-lineNumbers .cm-gutterElement": {
|
|
110
|
-
padding: "0 0.5rem",
|
|
111
|
-
minWidth: "3rem",
|
|
112
|
-
textAlign: "right",
|
|
113
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
114
|
-
},
|
|
115
|
-
".cm-vim-empty-line::before": {
|
|
116
|
-
content: '"~"',
|
|
117
|
-
color: "#ff00ff",
|
|
118
|
-
position: "absolute",
|
|
119
|
-
left: "0.5rem",
|
|
120
|
-
fontFamily: "BigBlueTerm437, monospace !important"
|
|
121
|
-
},
|
|
122
|
-
// Syntax highlighting colors (terminal palette)
|
|
123
|
-
".cm-keyword": { color: "#ff00ff", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
124
|
-
// magenta
|
|
125
|
-
".cm-string": { color: "#ffff00", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
126
|
-
// yellow
|
|
127
|
-
".cm-comment": { color: "#00ff00", opacity: "0.6", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
128
|
-
// dim green
|
|
129
|
-
".cm-number": { color: "#ff00ff", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
130
|
-
// magenta
|
|
131
|
-
".cm-variable": { color: "#00ff00", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
132
|
-
// green
|
|
133
|
-
".cm-operator": { color: "#ff0000", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
134
|
-
// red
|
|
135
|
-
".cm-propertyName": { color: "#00ffff", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
136
|
-
// cyan
|
|
137
|
-
".cm-typeName": { color: "#0000ff", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
138
|
-
// blue
|
|
139
|
-
".cm-function": { color: "#ffff00", fontFamily: "BigBlueTerm437, monospace !important" },
|
|
140
|
-
// yellow
|
|
141
|
-
".cm-bracket": { color: "#00ff00", fontFamily: "BigBlueTerm437, monospace !important" }
|
|
142
|
-
// green
|
|
143
|
-
}), S = M.define([
|
|
144
|
-
{ tag: o.keyword, color: "#ff00ff" },
|
|
145
|
-
{ tag: o.string, color: "#ffff00" },
|
|
146
|
-
{ tag: o.comment, color: "#00ff00", opacity: "0.6" },
|
|
147
|
-
{ tag: o.number, color: "#ff00ff" },
|
|
148
|
-
{ tag: o.variableName, color: "#00ff00" },
|
|
149
|
-
{ tag: o.operator, color: "#ff0000" },
|
|
150
|
-
{ tag: o.propertyName, color: "#00ffff" },
|
|
151
|
-
{ tag: o.typeName, color: "#0000ff" },
|
|
152
|
-
{ tag: o.function(o.variableName), color: "#ffff00" },
|
|
153
|
-
{ tag: o.bracket, color: "#00ff00" },
|
|
154
|
-
{ tag: o.tagName, color: "#ff00ff" },
|
|
155
|
-
{ tag: o.attributeName, color: "#00ffff" },
|
|
156
|
-
{ tag: o.attributeValue, color: "#ffff00" }
|
|
157
|
-
]);
|
|
158
|
-
return a.useEffect(() => {
|
|
159
|
-
if (!y.current) return;
|
|
160
|
-
const n = [
|
|
161
|
-
h,
|
|
162
|
-
Q(S),
|
|
163
|
-
X,
|
|
164
|
-
K.of([...G, ...J]),
|
|
165
|
-
u.updateListener.of((f) => {
|
|
166
|
-
if (f.docChanged) {
|
|
167
|
-
const p = f.state.doc.toString();
|
|
168
|
-
m == null || m(p);
|
|
169
|
-
}
|
|
170
|
-
if (f.selectionSet && g) {
|
|
171
|
-
const p = f.state.selection.main, x = f.state.doc.lineAt(p.head), R = x.number, j = p.head - x.from + 1;
|
|
172
|
-
g(R, j);
|
|
173
|
-
}
|
|
174
|
-
}),
|
|
175
|
-
N.readOnly.of(b)
|
|
176
|
-
];
|
|
177
|
-
r && n.push(P()), l && n.push(q());
|
|
178
|
-
const T = B();
|
|
179
|
-
T && n.push(T), d && n.push(
|
|
180
|
-
u.contentAttributes.of({ "data-placeholder": d })
|
|
181
|
-
);
|
|
182
|
-
const L = N.create({
|
|
183
|
-
doc: i,
|
|
184
|
-
extensions: n
|
|
185
|
-
}), k = new u({
|
|
186
|
-
state: L,
|
|
187
|
-
parent: y.current
|
|
188
|
-
});
|
|
189
|
-
return c.current = k, () => {
|
|
190
|
-
k.destroy(), c.current = null;
|
|
191
|
-
};
|
|
192
|
-
}, [
|
|
193
|
-
l,
|
|
194
|
-
s,
|
|
195
|
-
r,
|
|
196
|
-
d,
|
|
197
|
-
b,
|
|
198
|
-
e,
|
|
199
|
-
B,
|
|
200
|
-
h,
|
|
201
|
-
m,
|
|
202
|
-
g
|
|
203
|
-
]), a.useEffect(() => {
|
|
204
|
-
if (c.current) {
|
|
205
|
-
const n = c.current.state.doc.toString();
|
|
206
|
-
n !== i && c.current.dispatch({
|
|
207
|
-
changes: {
|
|
208
|
-
from: 0,
|
|
209
|
-
to: n.length,
|
|
210
|
-
insert: i
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}, [i]), /* @__PURE__ */ A(
|
|
215
|
-
"div",
|
|
8
|
+
className: e(
|
|
9
|
+
"peer inline-flex h-6 w-12 shrink-0 cursor-pointer items-center border-2 border-primary bg-background px-0.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
10
|
+
i
|
|
11
|
+
),
|
|
12
|
+
...s,
|
|
13
|
+
ref: t,
|
|
14
|
+
children: /* @__PURE__ */ r(
|
|
15
|
+
n,
|
|
216
16
|
{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
l && "vim-mode",
|
|
221
|
-
t
|
|
222
|
-
),
|
|
223
|
-
children: [
|
|
224
|
-
/* @__PURE__ */ w("div", { ref: y }),
|
|
225
|
-
l && /* @__PURE__ */ w("div", { className: "text-xs text-terminal-yellow px-2 py-1 border-t border-terminal-green bg-black", children: "VIM MODE ENABLED" })
|
|
226
|
-
]
|
|
17
|
+
className: e(
|
|
18
|
+
"pointer-events-none block h-4 w-5 bg-primary transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
19
|
+
)
|
|
227
20
|
}
|
|
228
|
-
)
|
|
21
|
+
)
|
|
229
22
|
}
|
|
230
|
-
);
|
|
231
|
-
|
|
23
|
+
));
|
|
24
|
+
c.displayName = o.displayName;
|
|
232
25
|
export {
|
|
233
|
-
|
|
26
|
+
c as Switch
|
|
234
27
|
};
|
package/dist/index32.js
CHANGED
|
@@ -1,20 +1,90 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { cn as r } from "./index2.js";
|
|
4
|
+
const d = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ t(
|
|
5
|
+
"table",
|
|
6
|
+
{
|
|
7
|
+
ref: o,
|
|
8
|
+
className: r("w-full caption-bottom text-sm", e),
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
) }));
|
|
12
|
+
d.displayName = "Table";
|
|
13
|
+
const s = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("thead", { ref: o, className: r("[&_tr]:border-b", e), ...a }));
|
|
14
|
+
s.displayName = "TableHeader";
|
|
15
|
+
const m = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
16
|
+
"tbody",
|
|
17
|
+
{
|
|
18
|
+
ref: o,
|
|
19
|
+
className: r("[&_tr:last-child]:border-0", e),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
));
|
|
23
|
+
m.displayName = "TableBody";
|
|
24
|
+
const b = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
|
|
25
|
+
"tfoot",
|
|
26
|
+
{
|
|
27
|
+
ref: o,
|
|
28
|
+
className: r(
|
|
29
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
30
|
+
e
|
|
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";
|
|
18
81
|
export {
|
|
19
|
-
|
|
82
|
+
d as Table,
|
|
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
|
|
20
90
|
};
|
package/dist/index33.js
CHANGED
|
@@ -1,37 +1,46 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"inline-flex items-center justify-center text-sm font-medium transition-colors hover:bg-terminal-green/20 hover:text-terminal-green focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-terminal-green disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-terminal-green data-[state=on]:text-black data-[state=off]:bg-black data-[state=off]:text-terminal-green data-[state=off]:border-2 data-[state=off]:border-terminal-green [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
|
3
|
+
import { Root as d, List as o, Trigger as n, Content as c } from "./index67.js";
|
|
4
|
+
import { cn as r } from "./index2.js";
|
|
5
|
+
const u = d, f = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
|
|
6
|
+
o,
|
|
8
7
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: "h-9 px-2 min-w-9",
|
|
16
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
17
|
-
lg: "h-10 px-2.5 min-w-10"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "default",
|
|
22
|
-
size: "default"
|
|
23
|
-
}
|
|
8
|
+
ref: a,
|
|
9
|
+
className: r(
|
|
10
|
+
"inline-flex h-9 items-center justify-center bg-muted p-1 text-muted-foreground",
|
|
11
|
+
e
|
|
12
|
+
),
|
|
13
|
+
...t
|
|
24
14
|
}
|
|
25
|
-
)
|
|
26
|
-
|
|
15
|
+
));
|
|
16
|
+
f.displayName = o.displayName;
|
|
17
|
+
const m = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
|
|
18
|
+
n,
|
|
19
|
+
{
|
|
20
|
+
ref: a,
|
|
21
|
+
className: r(
|
|
22
|
+
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-primary data-[state=active]:border-2 data-[state=active]:border-primary data-[state=inactive]:border-2 data-[state=inactive]:border-transparent data-[state=inactive]:text-muted-foreground",
|
|
23
|
+
e
|
|
24
|
+
),
|
|
25
|
+
...t
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
m.displayName = n.displayName;
|
|
29
|
+
const l = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
|
|
30
|
+
c,
|
|
27
31
|
{
|
|
28
|
-
ref:
|
|
29
|
-
className:
|
|
30
|
-
|
|
32
|
+
ref: a,
|
|
33
|
+
className: r(
|
|
34
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
35
|
+
e
|
|
36
|
+
),
|
|
37
|
+
...t
|
|
31
38
|
}
|
|
32
39
|
));
|
|
33
|
-
|
|
40
|
+
l.displayName = c.displayName;
|
|
34
41
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
u as Tabs,
|
|
43
|
+
l as TabsContent,
|
|
44
|
+
f as TabsList,
|
|
45
|
+
m as TabsTrigger
|
|
37
46
|
};
|
package/dist/index34.js
CHANGED
|
@@ -1,25 +1,89 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
),
|
|
16
|
-
|
|
1
|
+
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { cn as f } from "./index2.js";
|
|
4
|
+
const S = m.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
className: p,
|
|
7
|
+
visibleLines: h = 10,
|
|
8
|
+
showLineNumbers: g = !0,
|
|
9
|
+
value: d = "",
|
|
10
|
+
onChange: l,
|
|
11
|
+
onCursorChange: u,
|
|
12
|
+
placeholder: b,
|
|
13
|
+
readOnly: x = !1
|
|
14
|
+
}, y) => {
|
|
15
|
+
const e = m.useRef(null), n = m.useRef(null), o = d.split(`
|
|
16
|
+
`).length, k = () => {
|
|
17
|
+
e.current && n.current && (n.current.scrollTop = e.current.scrollTop);
|
|
18
|
+
}, s = () => {
|
|
19
|
+
if (e.current && u) {
|
|
20
|
+
const t = e.current, a = t.value.substring(0, t.selectionStart).split(`
|
|
21
|
+
`), T = a.length, v = a[a.length - 1].length + 1;
|
|
22
|
+
u(T, v);
|
|
23
|
+
}
|
|
24
|
+
}, N = (t) => {
|
|
25
|
+
l == null || l(t.target.value);
|
|
26
|
+
}, c = 1.5, R = h * c;
|
|
27
|
+
return /* @__PURE__ */ w(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
ref: y,
|
|
31
|
+
className: f(
|
|
32
|
+
"flex font-mono text-sm bg-black border-2 border-primary overflow-hidden",
|
|
33
|
+
p
|
|
34
|
+
),
|
|
35
|
+
style: { height: `${R}rem` },
|
|
36
|
+
children: [
|
|
37
|
+
g && /* @__PURE__ */ i(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: n,
|
|
41
|
+
className: "flex-shrink-0 overflow-hidden select-none bg-black border-r border-primary text-yellow-400 text-right",
|
|
42
|
+
style: { width: "3rem" },
|
|
43
|
+
children: Array.from({ length: Math.max(o, h) }, (t, r) => /* @__PURE__ */ i(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: f(
|
|
47
|
+
"px-2 leading-6",
|
|
48
|
+
r >= o && "text-blue-500"
|
|
49
|
+
),
|
|
50
|
+
style: { height: `${c}rem` },
|
|
51
|
+
children: r < o ? r + 1 : "~"
|
|
52
|
+
},
|
|
53
|
+
r
|
|
54
|
+
))
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ i(
|
|
58
|
+
"textarea",
|
|
59
|
+
{
|
|
60
|
+
ref: e,
|
|
61
|
+
value: d,
|
|
62
|
+
onChange: N,
|
|
63
|
+
onScroll: k,
|
|
64
|
+
onSelect: s,
|
|
65
|
+
onKeyUp: s,
|
|
66
|
+
onClick: s,
|
|
67
|
+
placeholder: b,
|
|
68
|
+
readOnly: x,
|
|
69
|
+
spellCheck: !1,
|
|
70
|
+
className: f(
|
|
71
|
+
"flex-1 bg-black text-primary resize-none outline-none p-2 leading-6",
|
|
72
|
+
"placeholder:text-primary/50",
|
|
73
|
+
x && "cursor-default"
|
|
74
|
+
),
|
|
75
|
+
style: {
|
|
76
|
+
lineHeight: `${c}rem`,
|
|
77
|
+
fontFamily: "inherit"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
17
84
|
}
|
|
18
|
-
)
|
|
19
|
-
|
|
85
|
+
);
|
|
86
|
+
S.displayName = "TerminalTextarea";
|
|
20
87
|
export {
|
|
21
|
-
|
|
22
|
-
c as TooltipContent,
|
|
23
|
-
f as TooltipProvider,
|
|
24
|
-
x as TooltipTrigger
|
|
88
|
+
S as TerminalTextarea
|
|
25
89
|
};
|
package/dist/index35.js
CHANGED
|
@@ -1,105 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Yellow (#ffff00)
|
|
15
|
-
primaryForeground: "0 0% 0%",
|
|
16
|
-
secondary: "120 100% 25%",
|
|
17
|
-
// Darker green
|
|
18
|
-
secondaryForeground: "120 100% 50%",
|
|
19
|
-
muted: "0 0% 10%",
|
|
20
|
-
mutedForeground: "120 100% 35%",
|
|
21
|
-
accent: "60 100% 50%",
|
|
22
|
-
// Yellow
|
|
23
|
-
accentForeground: "0 0% 0%",
|
|
24
|
-
destructive: "0 100% 50%",
|
|
25
|
-
// Red
|
|
26
|
-
destructiveForeground: "0 0% 0%",
|
|
27
|
-
border: "120 100% 25%",
|
|
28
|
-
// Dark green border
|
|
29
|
-
input: "0 0% 10%",
|
|
30
|
-
ring: "120 100% 50%",
|
|
31
|
-
chart1: "120 100% 50%",
|
|
32
|
-
// Green
|
|
33
|
-
chart2: "60 100% 50%",
|
|
34
|
-
// Yellow
|
|
35
|
-
chart3: "300 100% 50%",
|
|
36
|
-
// Magenta
|
|
37
|
-
chart4: "240 100% 50%",
|
|
38
|
-
// Blue
|
|
39
|
-
chart5: "30 100% 50%"
|
|
40
|
-
// Orange
|
|
41
|
-
},
|
|
42
|
-
dark: {
|
|
43
|
-
background: "0 0% 0%",
|
|
44
|
-
foreground: "120 100% 50%",
|
|
45
|
-
card: "0 0% 5%",
|
|
46
|
-
cardForeground: "120 100% 50%",
|
|
47
|
-
popover: "0 0% 5%",
|
|
48
|
-
popoverForeground: "120 100% 50%",
|
|
49
|
-
primary: "60 100% 50%",
|
|
50
|
-
primaryForeground: "0 0% 0%",
|
|
51
|
-
secondary: "120 100% 25%",
|
|
52
|
-
secondaryForeground: "120 100% 50%",
|
|
53
|
-
muted: "0 0% 10%",
|
|
54
|
-
mutedForeground: "120 100% 35%",
|
|
55
|
-
accent: "60 100% 50%",
|
|
56
|
-
accentForeground: "0 0% 0%",
|
|
57
|
-
destructive: "0 100% 50%",
|
|
58
|
-
destructiveForeground: "0 0% 0%",
|
|
59
|
-
border: "120 100% 25%",
|
|
60
|
-
input: "0 0% 10%",
|
|
61
|
-
ring: "120 100% 50%",
|
|
62
|
-
chart1: "120 100% 50%",
|
|
63
|
-
chart2: "60 100% 50%",
|
|
64
|
-
chart3: "300 100% 50%",
|
|
65
|
-
chart4: "240 100% 50%",
|
|
66
|
-
chart5: "30 100% 50%"
|
|
67
|
-
},
|
|
68
|
-
// Extended palette from source application
|
|
69
|
-
terminal: {
|
|
70
|
-
green: "rgb(0 255 0)",
|
|
71
|
-
blue: "rgb(0 0 255)",
|
|
72
|
-
yellow: "rgb(255 255 0)",
|
|
73
|
-
magenta: "rgb(255 0 255)",
|
|
74
|
-
red: "rgb(255 0 0)",
|
|
75
|
-
orange: "rgb(255 167 0)",
|
|
76
|
-
deepblue: "rgb(0 0 152)",
|
|
77
|
-
black: "rgb(0 0 0)"
|
|
78
|
-
},
|
|
79
|
-
// Sidebar specific colors (terminal themed)
|
|
80
|
-
sidebar: {
|
|
81
|
-
light: {
|
|
82
|
-
background: "0 0% 0%",
|
|
83
|
-
foreground: "120 100% 50%",
|
|
84
|
-
primary: "60 100% 50%",
|
|
85
|
-
primaryForeground: "0 0% 0%",
|
|
86
|
-
accent: "120 100% 15%",
|
|
87
|
-
accentForeground: "120 100% 50%",
|
|
88
|
-
border: "120 100% 25%",
|
|
89
|
-
ring: "120 100% 50%"
|
|
90
|
-
},
|
|
91
|
-
dark: {
|
|
92
|
-
background: "0 0% 0%",
|
|
93
|
-
foreground: "120 100% 50%",
|
|
94
|
-
primary: "60 100% 50%",
|
|
95
|
-
primaryForeground: "0 0% 0%",
|
|
96
|
-
accent: "120 100% 15%",
|
|
97
|
-
accentForeground: "120 100% 50%",
|
|
98
|
-
border: "120 100% 25%",
|
|
99
|
-
ring: "120 100% 50%"
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cn as o } from "./index2.js";
|
|
4
|
+
const s = i.forwardRef(
|
|
5
|
+
({ className: r, ...e }, a) => /* @__PURE__ */ t(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
className: o(
|
|
9
|
+
"flex min-h-[60px] w-full border-2 border-primary bg-black text-primary px-3 py-2 text-base placeholder:text-primary/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
10
|
+
r
|
|
11
|
+
),
|
|
12
|
+
ref: a,
|
|
13
|
+
...e
|
|
100
14
|
}
|
|
101
|
-
|
|
102
|
-
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
s.displayName = "Textarea";
|
|
103
18
|
export {
|
|
104
|
-
|
|
19
|
+
s as Textarea
|
|
105
20
|
};
|