@loccal/ui 0.0.0-stage → 0.3.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 (254) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/LICENSE +21 -0
  3. package/README.md +38 -3
  4. package/dist/components/ui/accordion.d.ts +6 -0
  5. package/dist/components/ui/accordion.js +17 -0
  6. package/dist/components/ui/ai-panel.d.ts +47 -0
  7. package/dist/components/ui/ai-panel.js +74 -0
  8. package/dist/components/ui/alert-dialog.d.ts +18 -0
  9. package/dist/components/ui/alert-dialog.js +42 -0
  10. package/dist/components/ui/alert.d.ts +10 -0
  11. package/dist/components/ui/alert.js +27 -0
  12. package/dist/components/ui/avatar.d.ts +11 -0
  13. package/dist/components/ui/avatar.js +23 -0
  14. package/dist/components/ui/badge.d.ts +7 -0
  15. package/dist/components/ui/badge.js +36 -0
  16. package/dist/components/ui/breadcrumb.d.ts +10 -0
  17. package/dist/components/ui/breadcrumb.js +36 -0
  18. package/dist/components/ui/button-group.d.ts +10 -0
  19. package/dist/components/ui/button-group.js +36 -0
  20. package/dist/components/ui/button.d.ts +8 -0
  21. package/dist/components/ui/button.js +34 -0
  22. package/dist/components/ui/calendar.d.ts +10 -0
  23. package/dist/components/ui/calendar.js +76 -0
  24. package/dist/components/ui/card.d.ts +11 -0
  25. package/dist/components/ui/card.js +24 -0
  26. package/dist/components/ui/chart.d.ts +44 -0
  27. package/dist/components/ui/chart.js +132 -0
  28. package/dist/components/ui/checkbox.d.ts +3 -0
  29. package/dist/components/ui/checkbox.js +9 -0
  30. package/dist/components/ui/code-view.d.ts +31 -0
  31. package/dist/components/ui/code-view.js +62 -0
  32. package/dist/components/ui/collapsible.d.ts +5 -0
  33. package/dist/components/ui/collapsible.js +13 -0
  34. package/dist/components/ui/command-block.d.ts +28 -0
  35. package/dist/components/ui/command-block.js +58 -0
  36. package/dist/components/ui/command.d.ts +19 -0
  37. package/dist/components/ui/command.js +35 -0
  38. package/dist/components/ui/connection-status.d.ts +29 -0
  39. package/dist/components/ui/connection-status.js +26 -0
  40. package/dist/components/ui/context-menu.d.ts +29 -0
  41. package/dist/components/ui/context-menu.js +51 -0
  42. package/dist/components/ui/data-table.d.ts +49 -0
  43. package/dist/components/ui/data-table.js +100 -0
  44. package/dist/components/ui/dialog.d.ts +18 -0
  45. package/dist/components/ui/dialog.js +37 -0
  46. package/dist/components/ui/drawer.d.ts +16 -0
  47. package/dist/components/ui/drawer.js +75 -0
  48. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  49. package/dist/components/ui/dropdown-menu.js +51 -0
  50. package/dist/components/ui/dropzone.d.ts +11 -0
  51. package/dist/components/ui/dropzone.js +39 -0
  52. package/dist/components/ui/empty.d.ts +11 -0
  53. package/dist/components/ui/empty.js +33 -0
  54. package/dist/components/ui/field.d.ts +24 -0
  55. package/dist/components/ui/field.js +68 -0
  56. package/dist/components/ui/file-tree.d.ts +42 -0
  57. package/dist/components/ui/file-tree.js +88 -0
  58. package/dist/components/ui/file-type-icon.d.ts +16 -0
  59. package/dist/components/ui/file-type-icon.js +19 -0
  60. package/dist/components/ui/hash-chain.d.ts +43 -0
  61. package/dist/components/ui/hash-chain.js +34 -0
  62. package/dist/components/ui/history-palette.d.ts +37 -0
  63. package/dist/components/ui/history-palette.js +44 -0
  64. package/dist/components/ui/hover-card.d.ts +5 -0
  65. package/dist/components/ui/hover-card.js +14 -0
  66. package/dist/components/ui/icon-base.d.ts +15 -0
  67. package/dist/components/ui/icon-base.js +18 -0
  68. package/dist/components/ui/icon.d.ts +15 -0
  69. package/dist/components/ui/icon.js +32 -0
  70. package/dist/components/ui/icons-compat.d.ts +32 -0
  71. package/dist/components/ui/icons-compat.js +34 -0
  72. package/dist/components/ui/icons.d.ts +1048 -0
  73. package/dist/components/ui/icons.js +264 -0
  74. package/dist/components/ui/input-group.d.ts +18 -0
  75. package/dist/components/ui/input-group.js +57 -0
  76. package/dist/components/ui/input-otp.d.ts +11 -0
  77. package/dist/components/ui/input-otp.js +21 -0
  78. package/dist/components/ui/input.d.ts +3 -0
  79. package/dist/components/ui/input.js +7 -0
  80. package/dist/components/ui/kbd.d.ts +3 -0
  81. package/dist/components/ui/kbd.js +9 -0
  82. package/dist/components/ui/label.d.ts +3 -0
  83. package/dist/components/ui/label.js +7 -0
  84. package/dist/components/ui/locale-switch.d.ts +9 -0
  85. package/dist/components/ui/locale-switch.js +31 -0
  86. package/dist/components/ui/log-panel.d.ts +28 -0
  87. package/dist/components/ui/log-panel.js +59 -0
  88. package/dist/components/ui/menubar.d.ts +29 -0
  89. package/dist/components/ui/menubar.js +56 -0
  90. package/dist/components/ui/metric-grid.d.ts +20 -0
  91. package/dist/components/ui/metric-grid.js +14 -0
  92. package/dist/components/ui/model-list.d.ts +33 -0
  93. package/dist/components/ui/model-list.js +69 -0
  94. package/dist/components/ui/navigation-menu.d.ts +11 -0
  95. package/dist/components/ui/navigation-menu.js +31 -0
  96. package/dist/components/ui/number-field.d.ts +29 -0
  97. package/dist/components/ui/number-field.js +65 -0
  98. package/dist/components/ui/pagination.d.ts +17 -0
  99. package/dist/components/ui/pagination.js +26 -0
  100. package/dist/components/ui/pane-tree.d.ts +18 -0
  101. package/dist/components/ui/pane-tree.js +65 -0
  102. package/dist/components/ui/popover.d.ts +9 -0
  103. package/dist/components/ui/popover.js +23 -0
  104. package/dist/components/ui/progress.d.ts +7 -0
  105. package/dist/components/ui/progress.js +20 -0
  106. package/dist/components/ui/radio-group.d.ts +5 -0
  107. package/dist/components/ui/radio-group.js +12 -0
  108. package/dist/components/ui/resizable.d.ts +7 -0
  109. package/dist/components/ui/resizable.js +14 -0
  110. package/dist/components/ui/scroll-area.d.ts +5 -0
  111. package/dist/components/ui/scroll-area.js +11 -0
  112. package/dist/components/ui/select.d.ts +15 -0
  113. package/dist/components/ui/select.js +34 -0
  114. package/dist/components/ui/separator.d.ts +3 -0
  115. package/dist/components/ui/separator.js +8 -0
  116. package/dist/components/ui/settings-layout.d.ts +31 -0
  117. package/dist/components/ui/settings-layout.js +45 -0
  118. package/dist/components/ui/sheet.d.ts +14 -0
  119. package/dist/components/ui/sheet.js +37 -0
  120. package/dist/components/ui/shell-picker.d.ts +18 -0
  121. package/dist/components/ui/shell-picker.js +17 -0
  122. package/dist/components/ui/skeleton.d.ts +2 -0
  123. package/dist/components/ui/skeleton.js +6 -0
  124. package/dist/components/ui/slider.d.ts +3 -0
  125. package/dist/components/ui/slider.js +12 -0
  126. package/dist/components/ui/sonner.d.ts +3 -0
  127. package/dist/components/ui/sonner.js +25 -0
  128. package/dist/components/ui/spinner.d.ts +2 -0
  129. package/dist/components/ui/spinner.js +7 -0
  130. package/dist/components/ui/split-button.d.ts +21 -0
  131. package/dist/components/ui/split-button.js +14 -0
  132. package/dist/components/ui/stat.d.ts +10 -0
  133. package/dist/components/ui/stat.js +8 -0
  134. package/dist/components/ui/status-bar.d.ts +13 -0
  135. package/dist/components/ui/status-bar.js +15 -0
  136. package/dist/components/ui/stepper.d.ts +13 -0
  137. package/dist/components/ui/stepper.js +11 -0
  138. package/dist/components/ui/switch.d.ts +5 -0
  139. package/dist/components/ui/switch.js +8 -0
  140. package/dist/components/ui/table.d.ts +10 -0
  141. package/dist/components/ui/table.js +28 -0
  142. package/dist/components/ui/tabs.d.ts +10 -0
  143. package/dist/components/ui/tabs.js +29 -0
  144. package/dist/components/ui/terminal-tabs.d.ts +31 -0
  145. package/dist/components/ui/terminal-tabs.js +109 -0
  146. package/dist/components/ui/terminal-view.d.ts +51 -0
  147. package/dist/components/ui/terminal-view.js +189 -0
  148. package/dist/components/ui/textarea.d.ts +3 -0
  149. package/dist/components/ui/textarea.js +6 -0
  150. package/dist/components/ui/timeline.d.ts +9 -0
  151. package/dist/components/ui/timeline.js +18 -0
  152. package/dist/components/ui/toggle-group.d.ts +11 -0
  153. package/dist/components/ui/toggle-group.js +24 -0
  154. package/dist/components/ui/toggle.d.ts +8 -0
  155. package/dist/components/ui/toggle.js +26 -0
  156. package/dist/components/ui/tooltip.d.ts +6 -0
  157. package/dist/components/ui/tooltip.js +17 -0
  158. package/dist/components/ui/tree-view.d.ts +20 -0
  159. package/dist/components/ui/tree-view.js +41 -0
  160. package/dist/components/ui/window-frame.d.ts +35 -0
  161. package/dist/components/ui/window-frame.js +49 -0
  162. package/dist/lib/ai-markdown.d.ts +13 -0
  163. package/dist/lib/ai-markdown.js +46 -0
  164. package/dist/lib/command-risk.d.ts +6 -0
  165. package/dist/lib/command-risk.js +42 -0
  166. package/dist/lib/file-icons.d.ts +18 -0
  167. package/dist/lib/file-icons.js +136 -0
  168. package/dist/lib/file-kind.d.ts +10 -0
  169. package/dist/lib/file-kind.js +63 -0
  170. package/dist/lib/format.d.ts +9 -0
  171. package/dist/lib/format.js +30 -0
  172. package/dist/lib/i18n-core.d.ts +20 -0
  173. package/dist/lib/i18n-core.js +36 -0
  174. package/dist/lib/i18n.d.ts +15 -0
  175. package/dist/lib/i18n.js +68 -0
  176. package/dist/lib/icon-data.d.ts +276 -0
  177. package/dist/lib/icon-data.js +307 -0
  178. package/dist/lib/icon-shapes.d.ts +14 -0
  179. package/dist/lib/icon-shapes.js +47 -0
  180. package/dist/lib/log-filter.d.ts +23 -0
  181. package/dist/lib/log-filter.js +44 -0
  182. package/dist/lib/number-field.d.ts +11 -0
  183. package/dist/lib/number-field.js +30 -0
  184. package/dist/lib/pane-tree.d.ts +39 -0
  185. package/dist/lib/pane-tree.js +92 -0
  186. package/dist/lib/platform.d.ts +10 -0
  187. package/dist/lib/platform.js +24 -0
  188. package/dist/lib/shell-meta.d.ts +7 -0
  189. package/dist/lib/shell-meta.js +70 -0
  190. package/dist/lib/syntax.d.ts +16 -0
  191. package/dist/lib/syntax.js +540 -0
  192. package/dist/lib/tab-order.d.ts +6 -0
  193. package/dist/lib/tab-order.js +24 -0
  194. package/dist/lib/table-sort.d.ts +16 -0
  195. package/dist/lib/table-sort.js +66 -0
  196. package/dist/lib/terminal-themes.d.ts +30 -0
  197. package/dist/lib/terminal-themes.js +90 -0
  198. package/dist/lib/utils.d.ts +2 -0
  199. package/dist/lib/utils.js +5 -0
  200. package/dist-cdn/loccal-ui.css +971 -0
  201. package/dist-cdn/loccal-ui.min.js +1 -0
  202. package/dist-wc/base.d.ts +31 -0
  203. package/dist-wc/base.js +104 -0
  204. package/dist-wc/button.d.ts +12 -0
  205. package/dist-wc/button.js +47 -0
  206. package/dist-wc/calendar.d.ts +16 -0
  207. package/dist-wc/calendar.js +106 -0
  208. package/dist-wc/choice.d.ts +17 -0
  209. package/dist-wc/choice.js +76 -0
  210. package/dist-wc/command.d.ts +32 -0
  211. package/dist-wc/command.js +181 -0
  212. package/dist-wc/data-table.d.ts +22 -0
  213. package/dist-wc/data-table.js +128 -0
  214. package/dist-wc/dialog.d.ts +29 -0
  215. package/dist-wc/dialog.js +94 -0
  216. package/dist-wc/disclosure.d.ts +17 -0
  217. package/dist-wc/disclosure.js +91 -0
  218. package/dist-wc/fields2.d.ts +38 -0
  219. package/dist-wc/fields2.js +133 -0
  220. package/dist-wc/file-tree.d.ts +19 -0
  221. package/dist-wc/file-tree.js +97 -0
  222. package/dist-wc/floating.d.ts +32 -0
  223. package/dist-wc/floating.js +91 -0
  224. package/dist-wc/index.d.ts +23 -0
  225. package/dist-wc/index.js +24 -0
  226. package/dist-wc/input-otp.d.ts +14 -0
  227. package/dist-wc/input-otp.js +82 -0
  228. package/dist-wc/navigation-menu.d.ts +14 -0
  229. package/dist-wc/navigation-menu.js +75 -0
  230. package/dist-wc/number-field.d.ts +13 -0
  231. package/dist-wc/number-field.js +67 -0
  232. package/dist-wc/resizable.d.ts +14 -0
  233. package/dist-wc/resizable.js +57 -0
  234. package/dist-wc/select.d.ts +17 -0
  235. package/dist-wc/select.js +80 -0
  236. package/dist-wc/static.d.ts +1 -0
  237. package/dist-wc/static.js +175 -0
  238. package/dist-wc/status-bar.d.ts +11 -0
  239. package/dist-wc/status-bar.js +54 -0
  240. package/dist-wc/styles.css +971 -0
  241. package/dist-wc/tabs.d.ts +16 -0
  242. package/dist-wc/tabs.js +62 -0
  243. package/dist-wc/terminal-tabs.d.ts +16 -0
  244. package/dist-wc/terminal-tabs.js +79 -0
  245. package/dist-wc/toaster.d.ts +16 -0
  246. package/dist-wc/toaster.js +68 -0
  247. package/dist-wc/toggle.d.ts +30 -0
  248. package/dist-wc/toggle.js +101 -0
  249. package/dist-wc/tree.d.ts +17 -0
  250. package/dist-wc/tree.js +72 -0
  251. package/docs/ARQUITETURA-VANILLA.md +54 -0
  252. package/docs/VERSIONING.md +88 -0
  253. package/package.json +1078 -6
  254. package/styles.css +476 -0
@@ -0,0 +1,66 @@
1
+ // Ordenacao e selecao puras da DataTable (testaveis sem DOM).
2
+ /** Ciclo do clique no cabecalho: nenhum -> asc -> desc -> nenhum. Outra coluna reinicia em asc. */
3
+ export function nextSort(current, key) {
4
+ if (!current || current.key !== key)
5
+ return { key, dir: "asc" };
6
+ if (current.dir === "asc")
7
+ return { key, dir: "desc" };
8
+ return null;
9
+ }
10
+ const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" });
11
+ export function compareValues(a, b) {
12
+ const an = a === null || a === undefined;
13
+ const bn = b === null || b === undefined;
14
+ if (an || bn)
15
+ return an === bn ? 0 : an ? 1 : -1;
16
+ if (typeof a === "number" && typeof b === "number")
17
+ return a - b;
18
+ if (a instanceof Date && b instanceof Date)
19
+ return a.getTime() - b.getTime();
20
+ if (typeof a === "boolean" && typeof b === "boolean")
21
+ return Number(a) - Number(b);
22
+ return collator.compare(String(a), String(b));
23
+ }
24
+ /** Ordena sem mutar; estavel; vazios (null/undefined) sempre por ultimo, em qualquer direcao. */
25
+ export function sortRows(rows, sort, value) {
26
+ if (!sort)
27
+ return [...rows];
28
+ const sign = sort.dir === "asc" ? 1 : -1;
29
+ return rows
30
+ .map((row, index) => ({ row, index, v: value(row, sort.key) }))
31
+ .sort((x, y) => {
32
+ const xn = x.v === null || x.v === undefined;
33
+ const yn = y.v === null || y.v === undefined;
34
+ if (xn || yn)
35
+ return xn === yn ? x.index - y.index : xn ? 1 : -1;
36
+ return compareValues(x.v, y.v) * sign || x.index - y.index;
37
+ })
38
+ .map((x) => x.row);
39
+ }
40
+ /** Alterna um id em um conjunto de selecao sem mutar. */
41
+ export function toggleSelected(selected, id) {
42
+ const next = new Set(selected);
43
+ if (next.has(id))
44
+ next.delete(id);
45
+ else
46
+ next.add(id);
47
+ return next;
48
+ }
49
+ /** Seleciona o intervalo entre dois ids na ordem visivel (Shift+clique). */
50
+ export function selectRange(order, selected, from, to) {
51
+ const a = order.indexOf(from);
52
+ const b = order.indexOf(to);
53
+ if (a < 0 || b < 0)
54
+ return new Set(selected);
55
+ const [lo, hi] = a <= b ? [a, b] : [b, a];
56
+ const next = new Set(selected);
57
+ for (let i = lo; i <= hi; i++)
58
+ next.add(order[i]);
59
+ return next;
60
+ }
61
+ export function allState(order, selected) {
62
+ if (order.length === 0)
63
+ return "none";
64
+ const n = order.filter((id) => selected.has(id)).length;
65
+ return n === 0 ? "none" : n === order.length ? "all" : "some";
66
+ }
@@ -0,0 +1,30 @@
1
+ export type TerminalTheme = {
2
+ background: string;
3
+ foreground: string;
4
+ cursor: string;
5
+ cursorAccent: string;
6
+ selectionBackground: string;
7
+ black: string;
8
+ red: string;
9
+ green: string;
10
+ yellow: string;
11
+ blue: string;
12
+ magenta: string;
13
+ cyan: string;
14
+ white: string;
15
+ brightBlack: string;
16
+ brightRed: string;
17
+ brightGreen: string;
18
+ brightYellow: string;
19
+ brightBlue: string;
20
+ brightMagenta: string;
21
+ brightCyan: string;
22
+ brightWhite: string;
23
+ };
24
+ export type TerminalPreset = {
25
+ id: string;
26
+ name: string;
27
+ theme: TerminalTheme;
28
+ };
29
+ export declare const terminalPresets: TerminalPreset[];
30
+ export declare function getTerminalPreset(id: string): TerminalPreset;
@@ -0,0 +1,90 @@
1
+ // Presets de cor do terminal. Mesma forma de ITheme do xterm, sem importar o xterm.
2
+ export const terminalPresets = [
3
+ {
4
+ id: "cyber-noir",
5
+ name: "Cyber Noir",
6
+ theme: {
7
+ background: "#09090b", foreground: "#a1a1aa", cursor: "#22d3ee", cursorAccent: "#09090b",
8
+ selectionBackground: "rgba(34, 211, 238, 0.25)",
9
+ black: "#18181b", red: "#ef4444", green: "#10b981", yellow: "#eab308",
10
+ blue: "#3b82f6", magenta: "#d946ef", cyan: "#06b6d4", white: "#e4e4e7",
11
+ brightBlack: "#3f3f46", brightRed: "#f87171", brightGreen: "#34d399", brightYellow: "#facc15",
12
+ brightBlue: "#60a5fa", brightMagenta: "#e879f9", brightCyan: "#22d3ee", brightWhite: "#ffffff",
13
+ },
14
+ },
15
+ {
16
+ id: "pampulha-night",
17
+ name: "Pampulha Night",
18
+ theme: {
19
+ background: "#0f172a", foreground: "#cbd5e1", cursor: "#fbbf24", cursorAccent: "#0f172a",
20
+ selectionBackground: "rgba(251, 191, 36, 0.22)",
21
+ black: "#1e293b", red: "#e11d48", green: "#059669", yellow: "#d97706",
22
+ blue: "#2563eb", magenta: "#7c3aed", cyan: "#0891b2", white: "#f1f5f9",
23
+ brightBlack: "#475569", brightRed: "#f43f5e", brightGreen: "#10b981", brightYellow: "#fbbf24",
24
+ brightBlue: "#3b82f6", brightMagenta: "#8b5cf6", brightCyan: "#06b6d4", brightWhite: "#ffffff",
25
+ },
26
+ },
27
+ {
28
+ id: "espresso-code",
29
+ name: "Espresso Code",
30
+ theme: {
31
+ background: "#1c1917", foreground: "#d6d3d1", cursor: "#d97706", cursorAccent: "#1c1917",
32
+ selectionBackground: "rgba(217, 119, 6, 0.25)",
33
+ black: "#292524", red: "#dc2626", green: "#65a30d", yellow: "#d97706",
34
+ blue: "#0284c7", magenta: "#9333ea", cyan: "#0d9488", white: "#e7e5e4",
35
+ brightBlack: "#57534e", brightRed: "#ef4444", brightGreen: "#84cc16", brightYellow: "#f59e0b",
36
+ brightBlue: "#0ea5e9", brightMagenta: "#a855f7", brightCyan: "#14b8a6", brightWhite: "#f5f5f4",
37
+ },
38
+ },
39
+ {
40
+ id: "gophers-forge",
41
+ name: "Gopher's Forge",
42
+ theme: {
43
+ background: "#121212", foreground: "#e0e0e0", cursor: "#00add8", cursorAccent: "#121212",
44
+ selectionBackground: "rgba(0, 173, 216, 0.28)",
45
+ black: "#242424", red: "#ff5c5c", green: "#5cff9d", yellow: "#ffdc5c",
46
+ blue: "#5c9dff", magenta: "#d85cff", cyan: "#00add8", white: "#f5f5f5",
47
+ brightBlack: "#484848", brightRed: "#ff8a8a", brightGreen: "#8affba", brightYellow: "#ffe78a",
48
+ brightBlue: "#8abaff", brightMagenta: "#e78aff", brightCyan: "#5ce6ff", brightWhite: "#ffffff",
49
+ },
50
+ },
51
+ {
52
+ id: "phosphor",
53
+ name: "Phosphor",
54
+ theme: {
55
+ background: "#020b05", foreground: "#4ade80", cursor: "#86efac", cursorAccent: "#020b05",
56
+ selectionBackground: "rgba(74, 222, 128, 0.22)",
57
+ black: "#052e16", red: "#f87171", green: "#22c55e", yellow: "#a3e635",
58
+ blue: "#38bdf8", magenta: "#c084fc", cyan: "#2dd4bf", white: "#bbf7d0",
59
+ brightBlack: "#166534", brightRed: "#fca5a5", brightGreen: "#4ade80", brightYellow: "#bef264",
60
+ brightBlue: "#7dd3fc", brightMagenta: "#d8b4fe", brightCyan: "#5eead4", brightWhite: "#f0fdf4",
61
+ },
62
+ },
63
+ {
64
+ id: "loccal-dark",
65
+ name: "Loccal Dark",
66
+ theme: {
67
+ background: "#09090b", foreground: "#f4f4f6", cursor: "#10b981", cursorAccent: "#09090b",
68
+ selectionBackground: "rgba(16, 185, 129, 0.28)",
69
+ black: "#18181b", red: "#f87171", green: "#34d399", yellow: "#fbbf24",
70
+ blue: "#60a5fa", magenta: "#c084fc", cyan: "#22d3ee", white: "#e4e4e7",
71
+ brightBlack: "#71717a", brightRed: "#fca5a5", brightGreen: "#6ee7b7", brightYellow: "#fde68a",
72
+ brightBlue: "#93c5fd", brightMagenta: "#d8b4fe", brightCyan: "#67e8f9", brightWhite: "#ffffff",
73
+ },
74
+ },
75
+ {
76
+ id: "loccal-light",
77
+ name: "Loccal Light",
78
+ theme: {
79
+ background: "#ced5e2", foreground: "#111622", cursor: "#4338ca", cursorAccent: "#ced5e2",
80
+ selectionBackground: "rgba(67, 56, 202, 0.22)",
81
+ black: "#111622", red: "#b91c1c", green: "#047857", yellow: "#b45309",
82
+ blue: "#1d4ed8", magenta: "#6d28d9", cyan: "#0e7490", white: "#334155",
83
+ brightBlack: "#475569", brightRed: "#dc2626", brightGreen: "#059669", brightYellow: "#d97706",
84
+ brightBlue: "#2563eb", brightMagenta: "#7c3aed", brightCyan: "#0891b2", brightWhite: "#090d16",
85
+ },
86
+ },
87
+ ];
88
+ export function getTerminalPreset(id) {
89
+ return terminalPresets.find((p) => p.id === id) ?? terminalPresets[0];
90
+ }
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,5 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }