@drjoshcsimmons/scl 0.1.0

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 (301) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -0
  3. package/dist/components/ui/accordion/accordion.d.ts +8 -0
  4. package/dist/components/ui/accordion/accordion.d.ts.map +1 -0
  5. package/dist/components/ui/accordion/index.d.ts +2 -0
  6. package/dist/components/ui/accordion/index.d.ts.map +1 -0
  7. package/dist/components/ui/alert/alert.d.ts +9 -0
  8. package/dist/components/ui/alert/alert.d.ts.map +1 -0
  9. package/dist/components/ui/alert/index.d.ts +2 -0
  10. package/dist/components/ui/alert/index.d.ts.map +1 -0
  11. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +21 -0
  12. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
  13. package/dist/components/ui/alert-dialog/index.d.ts +2 -0
  14. package/dist/components/ui/alert-dialog/index.d.ts.map +1 -0
  15. package/dist/components/ui/avatar/avatar.d.ts +7 -0
  16. package/dist/components/ui/avatar/avatar.d.ts.map +1 -0
  17. package/dist/components/ui/avatar/index.d.ts +2 -0
  18. package/dist/components/ui/avatar/index.d.ts.map +1 -0
  19. package/dist/components/ui/badge/badge.d.ts +10 -0
  20. package/dist/components/ui/badge/badge.d.ts.map +1 -0
  21. package/dist/components/ui/badge/index.d.ts +2 -0
  22. package/dist/components/ui/badge/index.d.ts.map +1 -0
  23. package/dist/components/ui/button/button.d.ts +12 -0
  24. package/dist/components/ui/button/button.d.ts.map +1 -0
  25. package/dist/components/ui/button/index.d.ts +2 -0
  26. package/dist/components/ui/button/index.d.ts.map +1 -0
  27. package/dist/components/ui/card/card.d.ts +9 -0
  28. package/dist/components/ui/card/card.d.ts.map +1 -0
  29. package/dist/components/ui/card/index.d.ts +2 -0
  30. package/dist/components/ui/card/index.d.ts.map +1 -0
  31. package/dist/components/ui/checkbox/checkbox.d.ts +5 -0
  32. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -0
  33. package/dist/components/ui/checkbox/index.d.ts +2 -0
  34. package/dist/components/ui/checkbox/index.d.ts.map +1 -0
  35. package/dist/components/ui/collapsible/collapsible.d.ts +6 -0
  36. package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -0
  37. package/dist/components/ui/collapsible/index.d.ts +2 -0
  38. package/dist/components/ui/collapsible/index.d.ts.map +1 -0
  39. package/dist/components/ui/dialog/dialog.d.ts +20 -0
  40. package/dist/components/ui/dialog/dialog.d.ts.map +1 -0
  41. package/dist/components/ui/dialog/index.d.ts +2 -0
  42. package/dist/components/ui/dialog/index.d.ts.map +1 -0
  43. package/dist/components/ui/dithered-image/dithered-image.d.ts +17 -0
  44. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -0
  45. package/dist/components/ui/dithered-image/index.d.ts +3 -0
  46. package/dist/components/ui/dithered-image/index.d.ts.map +1 -0
  47. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +28 -0
  48. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -0
  49. package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
  50. package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -0
  51. package/dist/components/ui/input/index.d.ts +2 -0
  52. package/dist/components/ui/input/index.d.ts.map +1 -0
  53. package/dist/components/ui/input/input.d.ts +5 -0
  54. package/dist/components/ui/input/input.d.ts.map +1 -0
  55. package/dist/components/ui/label/index.d.ts +2 -0
  56. package/dist/components/ui/label/index.d.ts.map +1 -0
  57. package/dist/components/ui/label/label.d.ts +6 -0
  58. package/dist/components/ui/label/label.d.ts.map +1 -0
  59. package/dist/components/ui/popover/index.d.ts +2 -0
  60. package/dist/components/ui/popover/index.d.ts.map +1 -0
  61. package/dist/components/ui/popover/popover.d.ts +8 -0
  62. package/dist/components/ui/popover/popover.d.ts.map +1 -0
  63. package/dist/components/ui/progress/index.d.ts +2 -0
  64. package/dist/components/ui/progress/index.d.ts.map +1 -0
  65. package/dist/components/ui/progress/progress.d.ts +19 -0
  66. package/dist/components/ui/progress/progress.d.ts.map +1 -0
  67. package/dist/components/ui/radio-group/index.d.ts +2 -0
  68. package/dist/components/ui/radio-group/index.d.ts.map +1 -0
  69. package/dist/components/ui/radio-group/radio-group.d.ts +6 -0
  70. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -0
  71. package/dist/components/ui/scroll-area/index.d.ts +2 -0
  72. package/dist/components/ui/scroll-area/index.d.ts.map +1 -0
  73. package/dist/components/ui/scroll-area/scroll-area.d.ts +6 -0
  74. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -0
  75. package/dist/components/ui/select/index.d.ts +2 -0
  76. package/dist/components/ui/select/index.d.ts.map +1 -0
  77. package/dist/components/ui/select/select.d.ts +14 -0
  78. package/dist/components/ui/select/select.d.ts.map +1 -0
  79. package/dist/components/ui/separator/index.d.ts +2 -0
  80. package/dist/components/ui/separator/index.d.ts.map +1 -0
  81. package/dist/components/ui/separator/separator.d.ts +5 -0
  82. package/dist/components/ui/separator/separator.d.ts.map +1 -0
  83. package/dist/components/ui/sheet/index.d.ts +2 -0
  84. package/dist/components/ui/sheet/index.d.ts.map +1 -0
  85. package/dist/components/ui/sheet/sheet.d.ts +26 -0
  86. package/dist/components/ui/sheet/sheet.d.ts.map +1 -0
  87. package/dist/components/ui/skeleton/index.d.ts +2 -0
  88. package/dist/components/ui/skeleton/index.d.ts.map +1 -0
  89. package/dist/components/ui/skeleton/skeleton.d.ts +3 -0
  90. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -0
  91. package/dist/components/ui/slider/index.d.ts +2 -0
  92. package/dist/components/ui/slider/index.d.ts.map +1 -0
  93. package/dist/components/ui/slider/slider.d.ts +5 -0
  94. package/dist/components/ui/slider/slider.d.ts.map +1 -0
  95. package/dist/components/ui/statusline/index.d.ts +2 -0
  96. package/dist/components/ui/statusline/index.d.ts.map +1 -0
  97. package/dist/components/ui/statusline/statusline.d.ts +40 -0
  98. package/dist/components/ui/statusline/statusline.d.ts.map +1 -0
  99. package/dist/components/ui/switch/index.d.ts +2 -0
  100. package/dist/components/ui/switch/index.d.ts.map +1 -0
  101. package/dist/components/ui/switch/switch.d.ts +5 -0
  102. package/dist/components/ui/switch/switch.d.ts.map +1 -0
  103. package/dist/components/ui/table/index.d.ts +2 -0
  104. package/dist/components/ui/table/index.d.ts.map +1 -0
  105. package/dist/components/ui/table/table.d.ts +11 -0
  106. package/dist/components/ui/table/table.d.ts.map +1 -0
  107. package/dist/components/ui/tabs/index.d.ts +2 -0
  108. package/dist/components/ui/tabs/index.d.ts.map +1 -0
  109. package/dist/components/ui/tabs/tabs.d.ts +8 -0
  110. package/dist/components/ui/tabs/tabs.d.ts.map +1 -0
  111. package/dist/components/ui/terminal-textarea/index.d.ts +2 -0
  112. package/dist/components/ui/terminal-textarea/index.d.ts.map +1 -0
  113. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +27 -0
  114. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -0
  115. package/dist/components/ui/textarea/index.d.ts +2 -0
  116. package/dist/components/ui/textarea/index.d.ts.map +1 -0
  117. package/dist/components/ui/textarea/textarea.d.ts +5 -0
  118. package/dist/components/ui/textarea/textarea.d.ts.map +1 -0
  119. package/dist/components/ui/toggle/index.d.ts +2 -0
  120. package/dist/components/ui/toggle/index.d.ts.map +1 -0
  121. package/dist/components/ui/toggle/toggle.d.ts +13 -0
  122. package/dist/components/ui/toggle/toggle.d.ts.map +1 -0
  123. package/dist/components/ui/tooltip/index.d.ts +2 -0
  124. package/dist/components/ui/tooltip/index.d.ts.map +1 -0
  125. package/dist/components/ui/tooltip/tooltip.d.ts +11 -0
  126. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -0
  127. package/dist/index.d.ts +34 -0
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/index.js +165 -0
  130. package/dist/index10.js +61 -0
  131. package/dist/index100.js +32 -0
  132. package/dist/index101.js +17 -0
  133. package/dist/index102.js +137 -0
  134. package/dist/index103.js +52 -0
  135. package/dist/index104.js +11 -0
  136. package/dist/index105.js +6 -0
  137. package/dist/index106.js +183 -0
  138. package/dist/index107.js +652 -0
  139. package/dist/index108.js +109 -0
  140. package/dist/index109.js +93 -0
  141. package/dist/index11.js +27 -0
  142. package/dist/index110.js +69 -0
  143. package/dist/index111.js +161 -0
  144. package/dist/index112.js +399 -0
  145. package/dist/index113.js +1682 -0
  146. package/dist/index114.js +280 -0
  147. package/dist/index115.js +134 -0
  148. package/dist/index116.js +34 -0
  149. package/dist/index117.js +1613 -0
  150. package/dist/index118.js +300 -0
  151. package/dist/index119.js +637 -0
  152. package/dist/index12.js +7 -0
  153. package/dist/index120.js +146 -0
  154. package/dist/index121.js +23 -0
  155. package/dist/index122.js +11 -0
  156. package/dist/index123.js +40 -0
  157. package/dist/index124.js +20 -0
  158. package/dist/index125.js +8 -0
  159. package/dist/index126.js +14 -0
  160. package/dist/index127.js +208 -0
  161. package/dist/index128.js +24 -0
  162. package/dist/index129.js +402 -0
  163. package/dist/index13.js +100 -0
  164. package/dist/index130.js +1308 -0
  165. package/dist/index131.js +620 -0
  166. package/dist/index132.js +4 -0
  167. package/dist/index133.js +55 -0
  168. package/dist/index134.js +67 -0
  169. package/dist/index135.js +27 -0
  170. package/dist/index136.js +31 -0
  171. package/dist/index137.js +7 -0
  172. package/dist/index138.js +4 -0
  173. package/dist/index139.js +4 -0
  174. package/dist/index14.js +226 -0
  175. package/dist/index140.js +7 -0
  176. package/dist/index141.js +5 -0
  177. package/dist/index142.js +26 -0
  178. package/dist/index143.js +115 -0
  179. package/dist/index144.js +18 -0
  180. package/dist/index145.js +527 -0
  181. package/dist/index146.js +130 -0
  182. package/dist/index147.js +136 -0
  183. package/dist/index148.js +67 -0
  184. package/dist/index149.js +71 -0
  185. package/dist/index15.js +146 -0
  186. package/dist/index150.js +11 -0
  187. package/dist/index151.js +16 -0
  188. package/dist/index152.js +68 -0
  189. package/dist/index153.js +6 -0
  190. package/dist/index154.js +25 -0
  191. package/dist/index155.js +25 -0
  192. package/dist/index156.js +15 -0
  193. package/dist/index157.js +30 -0
  194. package/dist/index158.js +7 -0
  195. package/dist/index16.js +21 -0
  196. package/dist/index17.js +19 -0
  197. package/dist/index18.js +24 -0
  198. package/dist/index19.js +58 -0
  199. package/dist/index2.js +8 -0
  200. package/dist/index20.js +31 -0
  201. package/dist/index21.js +38 -0
  202. package/dist/index22.js +123 -0
  203. package/dist/index23.js +24 -0
  204. package/dist/index24.js +72 -0
  205. package/dist/index25.js +17 -0
  206. package/dist/index26.js +34 -0
  207. package/dist/index27.js +81 -0
  208. package/dist/index28.js +27 -0
  209. package/dist/index29.js +90 -0
  210. package/dist/index3.js +22 -0
  211. package/dist/index30.js +46 -0
  212. package/dist/index31.js +234 -0
  213. package/dist/index32.js +20 -0
  214. package/dist/index33.js +37 -0
  215. package/dist/index34.js +25 -0
  216. package/dist/index35.js +105 -0
  217. package/dist/index36.js +68 -0
  218. package/dist/index37.js +51 -0
  219. package/dist/index38.js +102 -0
  220. package/dist/index39.js +13 -0
  221. package/dist/index4.js +46 -0
  222. package/dist/index40.js +17 -0
  223. package/dist/index41.js +2265 -0
  224. package/dist/index42.js +35 -0
  225. package/dist/index43.js +20 -0
  226. package/dist/index44.js +239 -0
  227. package/dist/index45.js +13 -0
  228. package/dist/index46.js +75 -0
  229. package/dist/index47.js +251 -0
  230. package/dist/index48.js +11 -0
  231. package/dist/index49.js +338 -0
  232. package/dist/index5.js +51 -0
  233. package/dist/index50.js +62 -0
  234. package/dist/index51.js +243 -0
  235. package/dist/index52.js +862 -0
  236. package/dist/index53.js +11 -0
  237. package/dist/index54.js +120 -0
  238. package/dist/index55.js +227 -0
  239. package/dist/index56.js +13 -0
  240. package/dist/index57.js +13 -0
  241. package/dist/index58.js +238 -0
  242. package/dist/index59.js +262 -0
  243. package/dist/index6.js +51 -0
  244. package/dist/index60.js +14 -0
  245. package/dist/index61.js +24 -0
  246. package/dist/index62.js +532 -0
  247. package/dist/index63.js +6157 -0
  248. package/dist/index64.js +2635 -0
  249. package/dist/index65.js +300 -0
  250. package/dist/index66.js +674 -0
  251. package/dist/index67.js +832 -0
  252. package/dist/index68.js +27 -0
  253. package/dist/index69.js +330 -0
  254. package/dist/index7.js +42 -0
  255. package/dist/index70.js +4901 -0
  256. package/dist/index71.js +831 -0
  257. package/dist/index72.js +1260 -0
  258. package/dist/index73.js +536 -0
  259. package/dist/index74.js +127 -0
  260. package/dist/index75.js +163 -0
  261. package/dist/index76.js +33 -0
  262. package/dist/index77.js +437 -0
  263. package/dist/index78.js +132 -0
  264. package/dist/index79.js +83 -0
  265. package/dist/index8.js +31 -0
  266. package/dist/index80.js +70 -0
  267. package/dist/index81.js +48 -0
  268. package/dist/index82.js +29 -0
  269. package/dist/index83.js +9 -0
  270. package/dist/index84.js +54 -0
  271. package/dist/index85.js +36 -0
  272. package/dist/index86.js +13 -0
  273. package/dist/index87.js +10 -0
  274. package/dist/index88.js +32 -0
  275. package/dist/index89.js +57 -0
  276. package/dist/index9.js +54 -0
  277. package/dist/index90.js +13 -0
  278. package/dist/index91.js +6 -0
  279. package/dist/index92.js +15 -0
  280. package/dist/index93.js +8 -0
  281. package/dist/index94.js +27 -0
  282. package/dist/index95.js +71 -0
  283. package/dist/index96.js +127 -0
  284. package/dist/index97.js +221 -0
  285. package/dist/index98.js +16 -0
  286. package/dist/index99.js +56 -0
  287. package/dist/lib/utils.d.ts +14 -0
  288. package/dist/lib/utils.d.ts.map +1 -0
  289. package/dist/tokens/animations.d.ts +174 -0
  290. package/dist/tokens/animations.d.ts.map +1 -0
  291. package/dist/tokens/colors.d.ts +92 -0
  292. package/dist/tokens/colors.d.ts.map +1 -0
  293. package/dist/tokens/index.d.ts +403 -0
  294. package/dist/tokens/index.d.ts.map +1 -0
  295. package/dist/tokens/shadows.d.ts +15 -0
  296. package/dist/tokens/shadows.d.ts.map +1 -0
  297. package/dist/tokens/spacing.d.ts +55 -0
  298. package/dist/tokens/spacing.d.ts.map +1 -0
  299. package/dist/tokens/typography.d.ts +80 -0
  300. package/dist/tokens/typography.d.ts.map +1 -0
  301. package/package.json +128 -0
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { Root as s, Trigger as m, Anchor as l, Portal as p, Content as t } from "./index51.js";
4
+ import { cn as c } from "./index2.js";
5
+ const u = s, P = m, v = l, f = i.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, d) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(
6
+ t,
7
+ {
8
+ ref: d,
9
+ align: a,
10
+ sideOffset: r,
11
+ className: c(
12
+ "z-50 w-72 rounded-md border border-terminal-green bg-black p-4 text-terminal-green 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",
13
+ e
14
+ ),
15
+ ...n
16
+ }
17
+ ) }));
18
+ f.displayName = t.displayName;
19
+ export {
20
+ u as Popover,
21
+ v as PopoverAnchor,
22
+ f as PopoverContent,
23
+ P as PopoverTrigger
24
+ };
@@ -0,0 +1,58 @@
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { Root as h } from "./index79.js";
4
+ import { cn as d } from "./index2.js";
5
+ const u = {
6
+ red: "bg-terminal-red",
7
+ yellow: "bg-terminal-yellow",
8
+ green: "bg-terminal-green",
9
+ magenta: "bg-terminal-magenta",
10
+ blue: "bg-terminal-blue"
11
+ }, w = m.forwardRef(
12
+ ({
13
+ className: f,
14
+ value: e = 0,
15
+ segments: l = 20,
16
+ colorRange: a = !1,
17
+ color: i = "yellow",
18
+ showPercentage: o = !1,
19
+ label: n,
20
+ ...g
21
+ }, c) => {
22
+ const p = m.useMemo(() => a ? e < 34 ? "red" : e < 67 ? "yellow" : "green" : i, [e, a, i]), b = Math.floor(e / 100 * l);
23
+ return /* @__PURE__ */ t("div", { className: "w-full", children: [
24
+ (n || o) && /* @__PURE__ */ t("div", { className: "flex justify-between items-center mb-2 font-mono text-xs text-terminal-green", children: [
25
+ n && /* @__PURE__ */ r("span", { children: n }),
26
+ o && /* @__PURE__ */ t("span", { children: [
27
+ Math.round(e),
28
+ "%"
29
+ ] })
30
+ ] }),
31
+ /* @__PURE__ */ r(
32
+ h,
33
+ {
34
+ ref: c,
35
+ className: d("relative h-6 w-full overflow-hidden bg-black border-2 border-terminal-green", f),
36
+ ...g,
37
+ children: /* @__PURE__ */ r("div", { className: "flex h-full gap-[2px] p-[2px]", children: Array.from({ length: l }).map((y, s) => {
38
+ const x = s < b;
39
+ return /* @__PURE__ */ r(
40
+ "div",
41
+ {
42
+ className: d(
43
+ "flex-1 transition-colors duration-200",
44
+ x ? u[p] : "bg-[repeating-linear-gradient(45deg,transparent,transparent_2px,rgba(0,255,0,0.1)_2px,rgba(0,255,0,0.1)_4px)]"
45
+ )
46
+ },
47
+ s
48
+ );
49
+ }) })
50
+ }
51
+ )
52
+ ] });
53
+ }
54
+ );
55
+ w.displayName = "Progress";
56
+ export {
57
+ w as Progress
58
+ };
package/dist/index2.js ADDED
@@ -0,0 +1,8 @@
1
+ import { clsx as o } from "./index40.js";
2
+ import { twMerge as t } from "./index41.js";
3
+ function n(...r) {
4
+ return t(o(r));
5
+ }
6
+ export {
7
+ n as cn
8
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { Root as t, Item as s, Indicator as c } from "./index58.js";
4
+ import { cn as l } from "./index2.js";
5
+ import f from "./index56.js";
6
+ const d = i.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
7
+ t,
8
+ {
9
+ className: l("grid gap-2", r),
10
+ ...a,
11
+ ref: o
12
+ }
13
+ ));
14
+ d.displayName = t.displayName;
15
+ const m = i.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
16
+ s,
17
+ {
18
+ ref: o,
19
+ className: l(
20
+ "h-6 w-6 rounded-full border-2 border-[#00ff00] bg-black focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#00ff00] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#00ff00] flex items-center justify-center",
21
+ r
22
+ ),
23
+ ...a,
24
+ children: /* @__PURE__ */ e(c, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(f, { className: "h-3 w-3 fill-black text-black" }) })
25
+ }
26
+ ));
27
+ m.displayName = s.displayName;
28
+ export {
29
+ d as RadioGroup,
30
+ m as RadioGroupItem
31
+ };
@@ -0,0 +1,38 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { Root as s, Viewport as d, Corner as p, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index62.js";
4
+ import { cn as i } from "./index2.js";
5
+ const h = t.forwardRef(({ className: l, children: r, ...a }, o) => /* @__PURE__ */ n(
6
+ s,
7
+ {
8
+ ref: o,
9
+ className: i("relative overflow-hidden", l),
10
+ ...a,
11
+ children: [
12
+ /* @__PURE__ */ e(d, { className: "h-full w-full rounded-[inherit]", children: r }),
13
+ /* @__PURE__ */ e(m, {}),
14
+ /* @__PURE__ */ e(p, {})
15
+ ]
16
+ }
17
+ ));
18
+ h.displayName = s.displayName;
19
+ const m = t.forwardRef(({ className: l, orientation: r = "vertical", ...a }, o) => /* @__PURE__ */ e(
20
+ c,
21
+ {
22
+ ref: o,
23
+ orientation: r,
24
+ className: i(
25
+ "flex touch-none select-none transition-colors",
26
+ r === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
27
+ r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
28
+ l
29
+ ),
30
+ ...a,
31
+ children: /* @__PURE__ */ e(f, { className: "relative flex-1 bg-terminal-green terminal-glow" })
32
+ }
33
+ ));
34
+ m.displayName = c.displayName;
35
+ export {
36
+ h as ScrollArea,
37
+ m as ScrollBar
38
+ };
@@ -0,0 +1,123 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { Root as N, Group as g, Value as b, Trigger as n, Icon as S, Portal as v, Content as d, Viewport as R, Label as c, Item as m, ItemIndicator as C, ItemText as j, Separator as f, ScrollUpButton as p, ScrollDownButton as u } from "./index52.js";
4
+ import { cn as o } from "./index2.js";
5
+ import h from "./index45.js";
6
+ import I from "./index48.js";
7
+ import B from "./index53.js";
8
+ const E = N, F = g, H = b, k = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
9
+ n,
10
+ {
11
+ ref: l,
12
+ className: o(
13
+ "flex h-10 w-full items-center justify-between whitespace-nowrap border border-[#00ff00] bg-black text-[#00ff00] px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-[#00ff00] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
14
+ a
15
+ ),
16
+ ...t,
17
+ children: [
18
+ r,
19
+ /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(h, { className: "h-4 w-4 text-[#00ff00]" }) })
20
+ ]
21
+ }
22
+ ));
23
+ k.displayName = n.displayName;
24
+ const w = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
25
+ p,
26
+ {
27
+ ref: t,
28
+ className: o(
29
+ "flex cursor-default items-center justify-center py-1",
30
+ a
31
+ ),
32
+ ...r,
33
+ children: /* @__PURE__ */ e(B, { className: "h-4 w-4 text-[#00ff00]" })
34
+ }
35
+ ));
36
+ w.displayName = p.displayName;
37
+ const x = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
38
+ u,
39
+ {
40
+ ref: t,
41
+ className: o(
42
+ "flex cursor-default items-center justify-center py-1",
43
+ a
44
+ ),
45
+ ...r,
46
+ children: /* @__PURE__ */ e(h, { className: "h-4 w-4 text-[#00ff00]" })
47
+ }
48
+ ));
49
+ x.displayName = u.displayName;
50
+ const z = s.forwardRef(({ className: a, children: r, position: t = "popper", ...l }, y) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ i(
51
+ d,
52
+ {
53
+ ref: y,
54
+ className: o(
55
+ "relative z-[60] max-h-96 min-w-[8rem] overflow-hidden border border-[#00ff00] bg-black text-[#00ff00] shadow-md 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",
56
+ t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
57
+ a
58
+ ),
59
+ position: t,
60
+ ...l,
61
+ children: [
62
+ /* @__PURE__ */ e(w, {}),
63
+ /* @__PURE__ */ e(
64
+ R,
65
+ {
66
+ className: o(
67
+ "p-1",
68
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
69
+ ),
70
+ children: r
71
+ }
72
+ ),
73
+ /* @__PURE__ */ e(x, {})
74
+ ]
75
+ }
76
+ ) }));
77
+ z.displayName = d.displayName;
78
+ const D = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
79
+ c,
80
+ {
81
+ ref: t,
82
+ className: o("px-2 py-1.5 text-sm font-semibold", a),
83
+ ...r
84
+ }
85
+ ));
86
+ D.displayName = c.displayName;
87
+ const T = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
88
+ m,
89
+ {
90
+ ref: l,
91
+ className: o(
92
+ "relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-terminal-green/20 hover:text-terminal-green focus:bg-terminal-green/20 focus:text-terminal-green data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
93
+ a
94
+ ),
95
+ ...t,
96
+ children: [
97
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(I, { className: "h-4 w-4" }) }) }),
98
+ /* @__PURE__ */ e(j, { children: r })
99
+ ]
100
+ }
101
+ ));
102
+ T.displayName = m.displayName;
103
+ const U = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
104
+ f,
105
+ {
106
+ ref: t,
107
+ className: o("-mx-1 my-1 h-px bg-muted", a),
108
+ ...r
109
+ }
110
+ ));
111
+ U.displayName = f.displayName;
112
+ export {
113
+ E as Select,
114
+ z as SelectContent,
115
+ F as SelectGroup,
116
+ T as SelectItem,
117
+ D as SelectLabel,
118
+ x as SelectScrollDownButton,
119
+ w as SelectScrollUpButton,
120
+ U as SelectSeparator,
121
+ k as SelectTrigger,
122
+ H as SelectValue
123
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { Root as r } from "./index61.js";
4
+ import { cn as s } from "./index2.js";
5
+ const e = l.forwardRef(
6
+ ({ className: a, orientation: o = "horizontal", decorative: m = !0, ...f }, p) => /* @__PURE__ */ t(
7
+ r,
8
+ {
9
+ ref: p,
10
+ decorative: m,
11
+ orientation: o,
12
+ className: s(
13
+ "shrink-0 bg-[#00ff00]",
14
+ o === "horizontal" ? "h-[2px] w-full" : "h-full w-[3px]",
15
+ a
16
+ ),
17
+ ...f
18
+ }
19
+ )
20
+ );
21
+ e.displayName = r.displayName;
22
+ export {
23
+ e as Separator
24
+ };
@@ -0,0 +1,72 @@
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 d, Overlay as n, Content as l, Title as m, Description as c } from "./index59.js";
4
+ import { cva as y } from "./index42.js";
5
+ import { cn as s } from "./index2.js";
6
+ import N from "./index60.js";
7
+ const H = g, O = x, P = d, b = u, f = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
8
+ n,
9
+ {
10
+ className: s(
11
+ "fixed inset-0 z-50 bg-black/80 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 = n.displayName;
19
+ const S = y(
20
+ "fixed z-[60] gap-4 bg-black p-6 shadow-lg 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"
28
+ }
29
+ },
30
+ defaultVariants: {
31
+ side: "right"
32
+ }
33
+ }
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(d, { className: "absolute right-4 top-4 rounded-sm 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;
61
+ export {
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
72
+ };
@@ -0,0 +1,17 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { cn as t } from "./index2.js";
3
+ function i({
4
+ className: e,
5
+ ...r
6
+ }) {
7
+ return /* @__PURE__ */ n(
8
+ "div",
9
+ {
10
+ className: t("animate-pulse bg-terminal-green/25", e),
11
+ ...r
12
+ }
13
+ );
14
+ }
15
+ export {
16
+ i as Skeleton
17
+ };
@@ -0,0 +1,34 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import * as b from "react";
3
+ import { Root as n, Track as f, Range as a, Thumb as h } from "./index77.js";
4
+ import { cn as d } from "./index2.js";
5
+ const p = b.forwardRef(({ className: s, defaultValue: o, value: r, ...t }, i) => {
6
+ const c = (r == null ? void 0 : r.length) ?? (o == null ? void 0 : o.length) ?? 1;
7
+ return /* @__PURE__ */ l(
8
+ n,
9
+ {
10
+ ref: i,
11
+ defaultValue: o,
12
+ value: r,
13
+ className: d(
14
+ "relative flex w-full touch-none select-none items-center",
15
+ s
16
+ ),
17
+ ...t,
18
+ children: [
19
+ /* @__PURE__ */ e(f, { className: "relative h-2 w-full grow overflow-hidden border border-[#00ff00] bg-black", children: /* @__PURE__ */ e(a, { className: "absolute h-full bg-[#00ff00]" }) }),
20
+ Array.from({ length: c }).map((g, m) => /* @__PURE__ */ e(
21
+ h,
22
+ {
23
+ className: "block h-5 w-3 border-2 border-[#00ff00] bg-[#00ff00] transition-all focus-visible:outline-none hover:bg-black disabled:pointer-events-none disabled:opacity-50"
24
+ },
25
+ m
26
+ ))
27
+ ]
28
+ }
29
+ );
30
+ });
31
+ p.displayName = n.displayName;
32
+ export {
33
+ p as Slider
34
+ };
@@ -0,0 +1,81 @@
1
+ import { jsxs as a, jsx as t, Fragment as w } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { cn as n } from "./index2.js";
4
+ const y = {
5
+ default: "bg-terminal-yellow text-black",
6
+ insert: "bg-terminal-blue text-black",
7
+ visual: "bg-terminal-magenta text-black",
8
+ command: "bg-terminal-red text-black"
9
+ }, k = m.forwardRef(
10
+ ({
11
+ className: o,
12
+ mode: f = "NORMAL",
13
+ modeVariant: x = "default",
14
+ filename: s,
15
+ filetype: $,
16
+ filetypeAbbr: R,
17
+ encoding: S = "utf-8",
18
+ line: e,
19
+ column: r,
20
+ totalLines: l,
21
+ percentage: i,
22
+ branch: d,
23
+ diffStat: M,
24
+ modified: h = !1,
25
+ readonly: v = !1,
26
+ leftContent: b,
27
+ centerContent: p,
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
+ ]
74
+ }
75
+ );
76
+ }
77
+ );
78
+ k.displayName = "Statusline";
79
+ export {
80
+ k as Statusline
81
+ };
@@ -0,0 +1,27 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { Root as a, Thumb as o } from "./index78.js";
4
+ import { cn as t } from "./index2.js";
5
+ const c = n.forwardRef(({ className: r, ...s }, i) => /* @__PURE__ */ e(
6
+ a,
7
+ {
8
+ className: t(
9
+ "peer inline-flex h-6 w-12 shrink-0 cursor-pointer items-center border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-terminal-green focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-terminal-green data-[state=checked]:border-terminal-green data-[state=unchecked]:bg-black data-[state=unchecked]:border-terminal-red",
10
+ r
11
+ ),
12
+ ...s,
13
+ ref: i,
14
+ children: /* @__PURE__ */ e(
15
+ o,
16
+ {
17
+ className: t(
18
+ "pointer-events-none block h-4 w-4 transition-transform data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-0 data-[state=checked]:bg-black data-[state=unchecked]:bg-terminal-red"
19
+ )
20
+ }
21
+ )
22
+ }
23
+ ));
24
+ c.displayName = a.displayName;
25
+ export {
26
+ c as Switch
27
+ };
@@ -0,0 +1,90 @@
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";
81
+ export {
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
90
+ };
package/dist/index3.js ADDED
@@ -0,0 +1,22 @@
1
+ import { colors as o } from "./index35.js";
2
+ import { typography as r } from "./index36.js";
3
+ import { borderRadius as m, spacing as t } from "./index37.js";
4
+ import { animations as i } from "./index38.js";
5
+ import { shadows as p } from "./index39.js";
6
+ const c = {
7
+ colors: o,
8
+ typography: r,
9
+ spacing: t,
10
+ borderRadius: m,
11
+ animations: i,
12
+ shadows: p
13
+ };
14
+ export {
15
+ i as animations,
16
+ m as borderRadius,
17
+ o as colors,
18
+ p as shadows,
19
+ t as spacing,
20
+ c as theme,
21
+ r as typography
22
+ };