@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.
Files changed (195) hide show
  1. package/dist/components/ui/alert/alert.d.ts +1 -1
  2. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  3. package/dist/components/ui/badge/badge.d.ts +1 -1
  4. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  5. package/dist/components/ui/button/button.d.ts +1 -1
  6. package/dist/components/ui/button/button.d.ts.map +1 -1
  7. package/dist/components/ui/combobox/combobox.d.ts +31 -0
  8. package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
  9. package/dist/components/ui/combobox/index.d.ts +3 -0
  10. package/dist/components/ui/combobox/index.d.ts.map +1 -0
  11. package/dist/components/ui/command/command.d.ts +85 -0
  12. package/dist/components/ui/command/command.d.ts.map +1 -0
  13. package/dist/components/ui/command/index.d.ts +2 -0
  14. package/dist/components/ui/command/index.d.ts.map +1 -0
  15. package/dist/components/ui/dithered-image/dithered-image.d.ts +6 -2
  16. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
  17. package/dist/components/ui/dithered-image/index.d.ts +1 -1
  18. package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
  19. package/dist/components/ui/form/form.d.ts +24 -0
  20. package/dist/components/ui/form/form.d.ts.map +1 -0
  21. package/dist/components/ui/form/index.d.ts +2 -0
  22. package/dist/components/ui/form/index.d.ts.map +1 -0
  23. package/dist/components/ui/progress/progress.d.ts +0 -6
  24. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  25. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  26. package/dist/components/ui/skeleton/skeleton.d.ts +4 -1
  27. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  28. package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
  29. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -5
  30. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +166 -143
  34. package/dist/index10.js +30 -30
  35. package/dist/index100.js +218 -29
  36. package/dist/index101.js +646 -11
  37. package/dist/index102.js +173 -127
  38. package/dist/index103.js +4 -50
  39. package/dist/index104.js +30 -9
  40. package/dist/index105.js +6 -4
  41. package/dist/index106.js +11 -180
  42. package/dist/index107.js +19 -648
  43. package/dist/index108.js +9 -107
  44. package/dist/index109.js +38 -91
  45. package/dist/index11.js +13 -13
  46. package/dist/index110.js +18 -67
  47. package/dist/index111.js +201 -154
  48. package/dist/index112.js +20 -395
  49. package/dist/index113.js +395 -1675
  50. package/dist/index114.js +2 -278
  51. package/dist/index115.js +49 -128
  52. package/dist/index116.js +65 -32
  53. package/dist/index117.js +19 -1605
  54. package/dist/index118.js +28 -297
  55. package/dist/index119.js +5 -635
  56. package/dist/index12.js +1 -1
  57. package/dist/index120.js +2 -144
  58. package/dist/index121.js +2 -21
  59. package/dist/index122.js +5 -9
  60. package/dist/index123.js +3 -38
  61. package/dist/index124.js +24 -18
  62. package/dist/index125.js +113 -6
  63. package/dist/index126.js +15 -11
  64. package/dist/index127.js +513 -194
  65. package/dist/index128.js +128 -22
  66. package/dist/index129.js +114 -380
  67. package/dist/index13.js +132 -93
  68. package/dist/index130.js +59 -1300
  69. package/dist/index131.js +63 -612
  70. package/dist/index132.js +9 -2
  71. package/dist/index133.js +13 -52
  72. package/dist/index134.js +64 -63
  73. package/dist/index135.js +3 -24
  74. package/dist/index136.js +23 -29
  75. package/dist/index137.js +23 -5
  76. package/dist/index138.js +13 -2
  77. package/dist/index139.js +28 -2
  78. package/dist/index14.js +106 -220
  79. package/dist/index140.js +5 -5
  80. package/dist/index15.js +79 -125
  81. package/dist/index16.js +280 -17
  82. package/dist/index17.js +139 -12
  83. package/dist/index18.js +92 -22
  84. package/dist/index19.js +18 -55
  85. package/dist/index2.js +2 -2
  86. package/dist/index20.js +14 -26
  87. package/dist/index21.js +19 -33
  88. package/dist/index22.js +38 -121
  89. package/dist/index23.js +29 -22
  90. package/dist/index24.js +31 -64
  91. package/dist/index25.js +121 -15
  92. package/dist/index26.js +19 -29
  93. package/dist/index27.js +68 -77
  94. package/dist/index28.js +20 -25
  95. package/dist/index29.js +32 -88
  96. package/dist/index3.js +11 -9
  97. package/dist/index30.js +138 -38
  98. package/dist/index31.js +20 -227
  99. package/dist/index32.js +88 -18
  100. package/dist/index33.js +37 -28
  101. package/dist/index34.js +86 -22
  102. package/dist/index35.js +17 -102
  103. package/dist/index36.js +34 -65
  104. package/dist/index37.js +23 -49
  105. package/dist/index38.js +38 -99
  106. package/dist/index39.js +65 -10
  107. package/dist/index4.js +6 -6
  108. package/dist/index40.js +49 -15
  109. package/dist/index41.js +93 -2256
  110. package/dist/index42.js +10 -32
  111. package/dist/index43.js +15 -18
  112. package/dist/index44.js +2251 -225
  113. package/dist/index45.js +237 -11
  114. package/dist/index46.js +11 -73
  115. package/dist/index47.js +33 -249
  116. package/dist/index48.js +118 -9
  117. package/dist/index49.js +63 -326
  118. package/dist/index5.js +23 -23
  119. package/dist/index50.js +307 -57
  120. package/dist/index51.js +12 -241
  121. package/dist/index52.js +222 -822
  122. package/dist/index53.js +6 -3
  123. package/dist/index54.js +56 -114
  124. package/dist/index55.js +248 -219
  125. package/dist/index56.js +249 -11
  126. package/dist/index57.js +3 -5
  127. package/dist/index58.js +110 -221
  128. package/dist/index59.js +12 -260
  129. package/dist/index6.js +12 -12
  130. package/dist/index60.js +18 -12
  131. package/dist/index61.js +221 -18
  132. package/dist/index62.js +11 -530
  133. package/dist/index63.js +11 -6155
  134. package/dist/index64.js +234 -2626
  135. package/dist/index65.js +230 -292
  136. package/dist/index66.js +504 -646
  137. package/dist/index67.js +155 -824
  138. package/dist/index68.js +128 -23
  139. package/dist/index69.js +319 -311
  140. package/dist/index7.js +22 -22
  141. package/dist/index70.js +72 -4889
  142. package/dist/index71.js +408 -802
  143. package/dist/index72.js +18 -1254
  144. package/dist/index73.js +844 -518
  145. package/dist/index74.js +9 -125
  146. package/dist/index75.js +31 -161
  147. package/dist/index76.js +7 -31
  148. package/dist/index77.js +62 -429
  149. package/dist/index78.js +50 -128
  150. package/dist/index79.js +4 -81
  151. package/dist/index8.js +17 -18
  152. package/dist/index80.js +23 -64
  153. package/dist/index81.js +33 -45
  154. package/dist/index82.js +63 -21
  155. package/dist/index83.js +10 -6
  156. package/dist/index84.js +52 -49
  157. package/dist/index85.js +10 -33
  158. package/dist/index86.js +30 -11
  159. package/dist/index87.js +12 -7
  160. package/dist/index88.js +46 -30
  161. package/dist/index89.js +7 -54
  162. package/dist/index9.js +23 -31
  163. package/dist/index90.js +14 -10
  164. package/dist/index91.js +125 -4
  165. package/dist/index92.js +131 -9
  166. package/dist/index93.js +14 -6
  167. package/dist/index94.js +14 -24
  168. package/dist/index95.js +9 -69
  169. package/dist/index96.js +47 -122
  170. package/dist/index97.js +51 -216
  171. package/dist/index98.js +6 -14
  172. package/dist/index99.js +24 -53
  173. package/dist/tokens/colors.d.ts +26 -86
  174. package/dist/tokens/colors.d.ts.map +1 -1
  175. package/dist/tokens/index.d.ts +12 -84
  176. package/dist/tokens/index.d.ts.map +1 -1
  177. package/package.json +28 -23
  178. package/dist/index141.js +0 -5
  179. package/dist/index142.js +0 -26
  180. package/dist/index143.js +0 -115
  181. package/dist/index144.js +0 -18
  182. package/dist/index145.js +0 -527
  183. package/dist/index146.js +0 -130
  184. package/dist/index147.js +0 -136
  185. package/dist/index148.js +0 -67
  186. package/dist/index149.js +0 -71
  187. package/dist/index150.js +0 -11
  188. package/dist/index151.js +0 -16
  189. package/dist/index152.js +0 -68
  190. package/dist/index153.js +0 -6
  191. package/dist/index154.js +0 -25
  192. package/dist/index155.js +0 -25
  193. package/dist/index156.js +0 -15
  194. package/dist/index157.js +0 -30
  195. package/dist/index158.js +0 -7
package/dist/index31.js CHANGED
@@ -1,234 +1,27 @@
1
- var D = Object.defineProperty;
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 { cn as C } from "./index2.js";
7
- import { EditorView as u, ViewPlugin as H, keymap as K, lineNumbers as P, Decoration as v } from "./index63.js";
8
- import { EditorState as N } from "./index64.js";
9
- import { javascript as W } from "./index65.js";
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
- decorations: (t) => t.decorations
40
- }
41
- ), Y = a.forwardRef(
42
- ({
43
- className: t,
44
- visibleLines: e = 10,
45
- showLineNumbers: r = !0,
46
- value: i = "",
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
- ref: E,
218
- className: C(
219
- "font-mono text-sm bg-black border-2 border-terminal-green overflow-hidden",
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
- Y.displayName = "TerminalTextarea";
23
+ ));
24
+ c.displayName = o.displayName;
232
25
  export {
233
- Y as TerminalTextarea
26
+ c as Switch
234
27
  };
package/dist/index32.js CHANGED
@@ -1,20 +1,90 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as a from "react";
3
- import { cn as f } from "./index2.js";
4
- const i = a.forwardRef(
5
- ({ className: e, ...r }, t) => /* @__PURE__ */ o(
6
- "textarea",
7
- {
8
- className: f(
9
- "flex min-h-[60px] w-full border border-[#00ff00] bg-black text-[#00ff00] px-3 py-2 text-base placeholder:text-[#00ff00]/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#00ff00] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
10
- e
11
- ),
12
- ref: t,
13
- ...r
14
- }
15
- )
16
- );
17
- i.displayName = "Textarea";
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
- i as Textarea
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 e } from "./index76.js";
4
- import { cva as l } from "./index42.js";
5
- import { cn as m } from "./index2.js";
6
- const f = l(
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
- variants: {
10
- variant: {
11
- default: "bg-transparent",
12
- outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
13
- },
14
- size: {
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
- ), d = s.forwardRef(({ className: t, variant: a, size: r, ...n }, o) => /* @__PURE__ */ i(
26
- e,
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: o,
29
- className: m(f({ variant: a, size: r, className: t })),
30
- ...n
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
- d.displayName = e.displayName;
40
+ l.displayName = c.displayName;
34
41
  export {
35
- d as Toggle,
36
- f as toggleVariants
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 e } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import { Root as s, Trigger as n, Portal as m, Content as a, Provider as l } from "./index49.js";
4
- import { cn as p } from "./index2.js";
5
- const f = ({ children: o, ...t }) => /* @__PURE__ */ e(l, { delayDuration: 100, skipDelayDuration: 300, ...t, children: o });
6
- f.displayName = "TooltipProvider";
7
- const T = s, x = n, c = d.forwardRef(({ className: o, sideOffset: t = 4, ...i }, r) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
8
- a,
9
- {
10
- ref: r,
11
- sideOffset: t,
12
- className: p(
13
- "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
14
- o
15
- ),
16
- ...i
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
- c.displayName = a.displayName;
85
+ );
86
+ S.displayName = "TerminalTextarea";
20
87
  export {
21
- T as Tooltip,
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
- const r = {
2
- // Terminal theme (default) - green on black CRT aesthetic
3
- light: {
4
- background: "0 0% 0%",
5
- // Black
6
- foreground: "120 100% 50%",
7
- // Terminal green (#00ff00)
8
- card: "0 0% 5%",
9
- // Slightly lighter black
10
- cardForeground: "120 100% 50%",
11
- popover: "0 0% 5%",
12
- popoverForeground: "120 100% 50%",
13
- primary: "60 100% 50%",
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
- r as colors
19
+ s as Textarea
105
20
  };