@opencode-ai/ui 0.0.0-beta-202606251302

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 (346) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +110 -0
  3. package/src/assets/audio/alert-01.aac +0 -0
  4. package/src/assets/audio/alert-01.mp3 +0 -0
  5. package/src/assets/audio/alert-02.aac +0 -0
  6. package/src/assets/audio/alert-02.mp3 +0 -0
  7. package/src/assets/audio/alert-03.aac +0 -0
  8. package/src/assets/audio/alert-03.mp3 +0 -0
  9. package/src/assets/audio/alert-04.aac +0 -0
  10. package/src/assets/audio/alert-04.mp3 +0 -0
  11. package/src/assets/audio/alert-05.aac +0 -0
  12. package/src/assets/audio/alert-05.mp3 +0 -0
  13. package/src/assets/audio/alert-06.aac +0 -0
  14. package/src/assets/audio/alert-06.mp3 +0 -0
  15. package/src/assets/audio/alert-07.aac +0 -0
  16. package/src/assets/audio/alert-07.mp3 +0 -0
  17. package/src/assets/audio/alert-08.aac +0 -0
  18. package/src/assets/audio/alert-08.mp3 +0 -0
  19. package/src/assets/audio/alert-09.aac +0 -0
  20. package/src/assets/audio/alert-09.mp3 +0 -0
  21. package/src/assets/audio/alert-10.aac +0 -0
  22. package/src/assets/audio/alert-10.mp3 +0 -0
  23. package/src/assets/audio/bip-bop-01.aac +0 -0
  24. package/src/assets/audio/bip-bop-01.mp3 +0 -0
  25. package/src/assets/audio/bip-bop-02.aac +0 -0
  26. package/src/assets/audio/bip-bop-02.mp3 +0 -0
  27. package/src/assets/audio/bip-bop-03.aac +0 -0
  28. package/src/assets/audio/bip-bop-03.mp3 +0 -0
  29. package/src/assets/audio/bip-bop-04.aac +0 -0
  30. package/src/assets/audio/bip-bop-04.mp3 +0 -0
  31. package/src/assets/audio/bip-bop-05.aac +0 -0
  32. package/src/assets/audio/bip-bop-05.mp3 +0 -0
  33. package/src/assets/audio/bip-bop-06.aac +0 -0
  34. package/src/assets/audio/bip-bop-06.mp3 +0 -0
  35. package/src/assets/audio/bip-bop-07.aac +0 -0
  36. package/src/assets/audio/bip-bop-07.mp3 +0 -0
  37. package/src/assets/audio/bip-bop-08.aac +0 -0
  38. package/src/assets/audio/bip-bop-08.mp3 +0 -0
  39. package/src/assets/audio/bip-bop-09.aac +0 -0
  40. package/src/assets/audio/bip-bop-09.mp3 +0 -0
  41. package/src/assets/audio/bip-bop-10.aac +0 -0
  42. package/src/assets/audio/bip-bop-10.mp3 +0 -0
  43. package/src/assets/audio/nope-01.aac +0 -0
  44. package/src/assets/audio/nope-01.mp3 +0 -0
  45. package/src/assets/audio/nope-02.aac +0 -0
  46. package/src/assets/audio/nope-02.mp3 +0 -0
  47. package/src/assets/audio/nope-03.aac +0 -0
  48. package/src/assets/audio/nope-03.mp3 +0 -0
  49. package/src/assets/audio/nope-04.aac +0 -0
  50. package/src/assets/audio/nope-04.mp3 +0 -0
  51. package/src/assets/audio/nope-05.aac +0 -0
  52. package/src/assets/audio/nope-05.mp3 +0 -0
  53. package/src/assets/audio/nope-06.aac +0 -0
  54. package/src/assets/audio/nope-06.mp3 +0 -0
  55. package/src/assets/audio/nope-07.aac +0 -0
  56. package/src/assets/audio/nope-07.mp3 +0 -0
  57. package/src/assets/audio/nope-08.aac +0 -0
  58. package/src/assets/audio/nope-08.mp3 +0 -0
  59. package/src/assets/audio/nope-09.aac +0 -0
  60. package/src/assets/audio/nope-09.mp3 +0 -0
  61. package/src/assets/audio/nope-10.aac +0 -0
  62. package/src/assets/audio/nope-10.mp3 +0 -0
  63. package/src/assets/audio/nope-11.aac +0 -0
  64. package/src/assets/audio/nope-11.mp3 +0 -0
  65. package/src/assets/audio/nope-12.aac +0 -0
  66. package/src/assets/audio/nope-12.mp3 +0 -0
  67. package/src/assets/audio/staplebops-01.aac +0 -0
  68. package/src/assets/audio/staplebops-01.mp3 +0 -0
  69. package/src/assets/audio/staplebops-02.aac +0 -0
  70. package/src/assets/audio/staplebops-02.mp3 +0 -0
  71. package/src/assets/audio/staplebops-03.aac +0 -0
  72. package/src/assets/audio/staplebops-03.mp3 +0 -0
  73. package/src/assets/audio/staplebops-04.aac +0 -0
  74. package/src/assets/audio/staplebops-04.mp3 +0 -0
  75. package/src/assets/audio/staplebops-05.aac +0 -0
  76. package/src/assets/audio/staplebops-05.mp3 +0 -0
  77. package/src/assets/audio/staplebops-06.aac +0 -0
  78. package/src/assets/audio/staplebops-06.mp3 +0 -0
  79. package/src/assets/audio/staplebops-07.aac +0 -0
  80. package/src/assets/audio/staplebops-07.mp3 +0 -0
  81. package/src/assets/audio/yup-01.aac +0 -0
  82. package/src/assets/audio/yup-01.mp3 +0 -0
  83. package/src/assets/audio/yup-02.aac +0 -0
  84. package/src/assets/audio/yup-02.mp3 +0 -0
  85. package/src/assets/audio/yup-03.aac +0 -0
  86. package/src/assets/audio/yup-03.mp3 +0 -0
  87. package/src/assets/audio/yup-04.aac +0 -0
  88. package/src/assets/audio/yup-04.mp3 +0 -0
  89. package/src/assets/audio/yup-05.aac +0 -0
  90. package/src/assets/audio/yup-05.mp3 +0 -0
  91. package/src/assets/audio/yup-06.aac +0 -0
  92. package/src/assets/audio/yup-06.mp3 +0 -0
  93. package/src/assets/fonts/Inter.ttf +0 -0
  94. package/src/assets/fonts/JetBrainsMonoNerdFontMono-Regular.woff2 +0 -0
  95. package/src/assets/icons/app/android-studio.svg +369 -0
  96. package/src/assets/icons/app/antigravity.svg +97 -0
  97. package/src/assets/icons/app/cursor.svg +16 -0
  98. package/src/assets/icons/app/file-explorer.svg +20 -0
  99. package/src/assets/icons/app/finder.png +0 -0
  100. package/src/assets/icons/app/ghostty.svg +13 -0
  101. package/src/assets/icons/app/iterm2.svg +13 -0
  102. package/src/assets/icons/app/powershell.svg +14 -0
  103. package/src/assets/icons/app/sublimetext.svg +17 -0
  104. package/src/assets/icons/app/terminal.png +0 -0
  105. package/src/assets/icons/app/textmate.png +0 -0
  106. package/src/assets/icons/app/vscode.svg +39 -0
  107. package/src/assets/icons/app/warp.png +0 -0
  108. package/src/assets/icons/app/xcode.png +0 -0
  109. package/src/assets/icons/app/zed-dark.svg +15 -0
  110. package/src/assets/icons/app/zed.svg +15 -0
  111. package/src/components/accordion.css +123 -0
  112. package/src/components/accordion.tsx +92 -0
  113. package/src/components/animated-number.css +75 -0
  114. package/src/components/animated-number.tsx +109 -0
  115. package/src/components/app-icon.css +5 -0
  116. package/src/components/app-icon.tsx +85 -0
  117. package/src/components/app-icons/sprite.svg +114 -0
  118. package/src/components/app-icons/types.ts +21 -0
  119. package/src/components/avatar.css +49 -0
  120. package/src/components/avatar.tsx +55 -0
  121. package/src/components/button.css +194 -0
  122. package/src/components/button.tsx +33 -0
  123. package/src/components/card.css +94 -0
  124. package/src/components/card.tsx +123 -0
  125. package/src/components/checkbox.css +131 -0
  126. package/src/components/checkbox.tsx +43 -0
  127. package/src/components/collapsible.css +148 -0
  128. package/src/components/collapsible.tsx +48 -0
  129. package/src/components/context-menu.css +134 -0
  130. package/src/components/context-menu.tsx +308 -0
  131. package/src/components/dialog.css +181 -0
  132. package/src/components/dialog.tsx +72 -0
  133. package/src/components/diff-changes.css +42 -0
  134. package/src/components/diff-changes.tsx +115 -0
  135. package/src/components/dock-surface.css +23 -0
  136. package/src/components/dock-surface.tsx +54 -0
  137. package/src/components/dropdown-menu.css +135 -0
  138. package/src/components/dropdown-menu.tsx +308 -0
  139. package/src/components/favicon.tsx +13 -0
  140. package/src/components/file-icon.css +26 -0
  141. package/src/components/file-icon.tsx +588 -0
  142. package/src/components/file-icons/sprite.svg +11707 -0
  143. package/src/components/file-icons/types.ts +1095 -0
  144. package/src/components/font.tsx +1 -0
  145. package/src/components/hover-card.css +61 -0
  146. package/src/components/hover-card.tsx +32 -0
  147. package/src/components/icon-button.css +181 -0
  148. package/src/components/icon-button.tsx +29 -0
  149. package/src/components/icon.css +34 -0
  150. package/src/components/icon.tsx +169 -0
  151. package/src/components/image-preview.css +63 -0
  152. package/src/components/image-preview.tsx +32 -0
  153. package/src/components/inline-input.css +17 -0
  154. package/src/components/inline-input.tsx +22 -0
  155. package/src/components/keybind.css +18 -0
  156. package/src/components/keybind.tsx +20 -0
  157. package/src/components/list.css +331 -0
  158. package/src/components/list.tsx +394 -0
  159. package/src/components/logo.css +4 -0
  160. package/src/components/logo.tsx +62 -0
  161. package/src/components/motion-spring.tsx +58 -0
  162. package/src/components/popover.css +98 -0
  163. package/src/components/popover.tsx +153 -0
  164. package/src/components/progress-circle.css +12 -0
  165. package/src/components/progress-circle.tsx +57 -0
  166. package/src/components/progress.css +63 -0
  167. package/src/components/progress.tsx +39 -0
  168. package/src/components/provider-icon.css +5 -0
  169. package/src/components/provider-icon.tsx +25 -0
  170. package/src/components/provider-icons/sprite.svg +1135 -0
  171. package/src/components/provider-icons/types.ts +105 -0
  172. package/src/components/radio-group.css +187 -0
  173. package/src/components/radio-group.tsx +83 -0
  174. package/src/components/resize-handle.css +58 -0
  175. package/src/components/resize-handle.tsx +82 -0
  176. package/src/components/scroll-view.css +66 -0
  177. package/src/components/scroll-view.tsx +250 -0
  178. package/src/components/select.css +202 -0
  179. package/src/components/select.tsx +174 -0
  180. package/src/components/spinner.css +6 -0
  181. package/src/components/spinner.tsx +52 -0
  182. package/src/components/sticky-accordion-header.css +6 -0
  183. package/src/components/sticky-accordion-header.tsx +18 -0
  184. package/src/components/switch.css +132 -0
  185. package/src/components/switch.tsx +29 -0
  186. package/src/components/tabs.css +635 -0
  187. package/src/components/tabs.tsx +125 -0
  188. package/src/components/tag.css +37 -0
  189. package/src/components/tag.tsx +22 -0
  190. package/src/components/text-field.css +134 -0
  191. package/src/components/text-field.tsx +128 -0
  192. package/src/components/text-reveal.css +150 -0
  193. package/src/components/text-reveal.tsx +143 -0
  194. package/src/components/text-shimmer.css +119 -0
  195. package/src/components/text-shimmer.tsx +62 -0
  196. package/src/components/text-strikethrough.css +27 -0
  197. package/src/components/text-strikethrough.tsx +84 -0
  198. package/src/components/toast.css +236 -0
  199. package/src/components/toast.tsx +185 -0
  200. package/src/components/tooltip.css +74 -0
  201. package/src/components/tooltip.tsx +161 -0
  202. package/src/components/typewriter.css +14 -0
  203. package/src/components/typewriter.tsx +55 -0
  204. package/src/context/dialog.tsx +197 -0
  205. package/src/context/file.tsx +10 -0
  206. package/src/context/helper.tsx +38 -0
  207. package/src/context/i18n.tsx +38 -0
  208. package/src/context/index.ts +4 -0
  209. package/src/context/marked.tsx +522 -0
  210. package/src/context/worker-pool.tsx +20 -0
  211. package/src/custom-elements.d.ts +17 -0
  212. package/src/hooks/create-auto-scroll.tsx +237 -0
  213. package/src/hooks/index.ts +2 -0
  214. package/src/hooks/use-filtered-list.tsx +134 -0
  215. package/src/i18n/ar.ts +168 -0
  216. package/src/i18n/br.ts +168 -0
  217. package/src/i18n/bs.ts +172 -0
  218. package/src/i18n/da.ts +167 -0
  219. package/src/i18n/de.ts +173 -0
  220. package/src/i18n/en.ts +176 -0
  221. package/src/i18n/es.ts +168 -0
  222. package/src/i18n/fr.ts +168 -0
  223. package/src/i18n/ja.ts +167 -0
  224. package/src/i18n/ko.ts +168 -0
  225. package/src/i18n/no.ts +171 -0
  226. package/src/i18n/pl.ts +167 -0
  227. package/src/i18n/ru.ts +167 -0
  228. package/src/i18n/th.ts +169 -0
  229. package/src/i18n/tr.ts +174 -0
  230. package/src/i18n/uk.ts +167 -0
  231. package/src/i18n/zh.ts +171 -0
  232. package/src/i18n/zht.ts +171 -0
  233. package/src/storybook/fixtures.ts +51 -0
  234. package/src/storybook/scaffold.tsx +62 -0
  235. package/src/styles/animations.css +141 -0
  236. package/src/styles/base.css +404 -0
  237. package/src/styles/colors.css +772 -0
  238. package/src/styles/index.css +53 -0
  239. package/src/styles/tailwind/colors.css +285 -0
  240. package/src/styles/tailwind/index.css +78 -0
  241. package/src/styles/tailwind/utilities.css +131 -0
  242. package/src/styles/theme.css +609 -0
  243. package/src/styles/utilities.css +118 -0
  244. package/src/theme/color.ts +299 -0
  245. package/src/theme/context.tsx +370 -0
  246. package/src/theme/default-themes.ts +116 -0
  247. package/src/theme/index.ts +78 -0
  248. package/src/theme/loader.ts +112 -0
  249. package/src/theme/resolve.ts +540 -0
  250. package/src/theme/themes/amoled.json +49 -0
  251. package/src/theme/themes/aura.json +51 -0
  252. package/src/theme/themes/ayu.json +51 -0
  253. package/src/theme/themes/carbonfox.json +53 -0
  254. package/src/theme/themes/catppuccin-frappe.json +85 -0
  255. package/src/theme/themes/catppuccin-macchiato.json +85 -0
  256. package/src/theme/themes/catppuccin.json +45 -0
  257. package/src/theme/themes/cobalt2.json +87 -0
  258. package/src/theme/themes/cursor.json +91 -0
  259. package/src/theme/themes/dracula.json +49 -0
  260. package/src/theme/themes/everforest.json +89 -0
  261. package/src/theme/themes/flexoki.json +86 -0
  262. package/src/theme/themes/github.json +85 -0
  263. package/src/theme/themes/gruvbox.json +45 -0
  264. package/src/theme/themes/kanagawa.json +89 -0
  265. package/src/theme/themes/lucent-orng.json +87 -0
  266. package/src/theme/themes/material.json +87 -0
  267. package/src/theme/themes/matrix.json +113 -0
  268. package/src/theme/themes/mercury.json +86 -0
  269. package/src/theme/themes/monokai.json +49 -0
  270. package/src/theme/themes/nightowl.json +46 -0
  271. package/src/theme/themes/nord.json +46 -0
  272. package/src/theme/themes/oc-2.json +468 -0
  273. package/src/theme/themes/one-dark.json +89 -0
  274. package/src/theme/themes/onedarkpro.json +45 -0
  275. package/src/theme/themes/opencode.json +89 -0
  276. package/src/theme/themes/orng.json +87 -0
  277. package/src/theme/themes/osaka-jade.json +88 -0
  278. package/src/theme/themes/palenight.json +85 -0
  279. package/src/theme/themes/rosepine.json +85 -0
  280. package/src/theme/themes/shadesofpurple.json +51 -0
  281. package/src/theme/themes/solarized.json +49 -0
  282. package/src/theme/themes/synthwave84.json +87 -0
  283. package/src/theme/themes/tokyonight.json +47 -0
  284. package/src/theme/themes/vercel.json +90 -0
  285. package/src/theme/themes/vesper.json +51 -0
  286. package/src/theme/themes/zenburn.json +87 -0
  287. package/src/theme/types.ts +75 -0
  288. package/src/theme/v2/avatar.ts +48 -0
  289. package/src/theme/v2/default-primitives.ts +114 -0
  290. package/src/theme/v2/foreground.ts +60 -0
  291. package/src/theme/v2/mapping.ts +138 -0
  292. package/src/theme/v2/resolve.ts +153 -0
  293. package/src/v2/components/accordion-v2.css +139 -0
  294. package/src/v2/components/accordion-v2.tsx +86 -0
  295. package/src/v2/components/avatar-v2.css +70 -0
  296. package/src/v2/components/avatar-v2.tsx +59 -0
  297. package/src/v2/components/badge-v2.css +27 -0
  298. package/src/v2/components/badge-v2.tsx +20 -0
  299. package/src/v2/components/button-v2.css +186 -0
  300. package/src/v2/components/button-v2.tsx +35 -0
  301. package/src/v2/components/checkbox-v2.css +184 -0
  302. package/src/v2/components/checkbox-v2.tsx +65 -0
  303. package/src/v2/components/dialog-v2.css +150 -0
  304. package/src/v2/components/dialog-v2.tsx +93 -0
  305. package/src/v2/components/diff-changes-v2.css +24 -0
  306. package/src/v2/components/diff-changes-v2.tsx +28 -0
  307. package/src/v2/components/field-v2.css +94 -0
  308. package/src/v2/components/field-v2.tsx +265 -0
  309. package/src/v2/components/icon-button-v2.css +155 -0
  310. package/src/v2/components/icon-button-v2.tsx +37 -0
  311. package/src/v2/components/icon.tsx +129 -0
  312. package/src/v2/components/inline-input-v2.css +218 -0
  313. package/src/v2/components/inline-input-v2.tsx +90 -0
  314. package/src/v2/components/keybind-v2.css +76 -0
  315. package/src/v2/components/keybind-v2.tsx +30 -0
  316. package/src/v2/components/line-comment-v2.css +204 -0
  317. package/src/v2/components/line-comment-v2.tsx +155 -0
  318. package/src/v2/components/menu-v2.css +190 -0
  319. package/src/v2/components/menu-v2.tsx +225 -0
  320. package/src/v2/components/project-avatar-v2.css +126 -0
  321. package/src/v2/components/project-avatar-v2.tsx +64 -0
  322. package/src/v2/components/radio-v2.css +202 -0
  323. package/src/v2/components/radio-v2.tsx +72 -0
  324. package/src/v2/components/segmented-control-v2.css +80 -0
  325. package/src/v2/components/segmented-control-v2.tsx +208 -0
  326. package/src/v2/components/select-v2.css +285 -0
  327. package/src/v2/components/select-v2.tsx +208 -0
  328. package/src/v2/components/switch-v2.css +154 -0
  329. package/src/v2/components/switch-v2.tsx +28 -0
  330. package/src/v2/components/tab-state-indicator.tsx +37 -0
  331. package/src/v2/components/tabs-v2.css +225 -0
  332. package/src/v2/components/tabs-v2.tsx +147 -0
  333. package/src/v2/components/text-input-v2.css +145 -0
  334. package/src/v2/components/text-input-v2.tsx +67 -0
  335. package/src/v2/components/text-shimmer-v2.css +125 -0
  336. package/src/v2/components/text-shimmer-v2.tsx +63 -0
  337. package/src/v2/components/textarea-v2.css +78 -0
  338. package/src/v2/components/textarea-v2.tsx +31 -0
  339. package/src/v2/components/toast-v2.css +215 -0
  340. package/src/v2/components/toast-v2.tsx +144 -0
  341. package/src/v2/components/tooltip-v2.css +53 -0
  342. package/src/v2/components/tooltip-v2.tsx +146 -0
  343. package/src/v2/components/wordmark-v2.tsx +92 -0
  344. package/src/v2/styles/colors.css +172 -0
  345. package/src/v2/styles/tailwind.css +2 -0
  346. package/src/v2/styles/theme.css +441 -0
@@ -0,0 +1,114 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0">
2
+ <defs>
3
+ <symbol id="vscode" viewBox="0 0 24 24">
4
+ <rect width="24" height="24" rx="5" fill="#007ACC" />
5
+ <g transform="scale(1.5)">
6
+ <path
7
+ fill="#fff"
8
+ d="M11.5 11.19V4.8L7.3 7.99M1.17 6.07a.6.6 0 0 1-.01-.81L2 4.48c.14-.13.48-.18.73 0l2.39 1.83 5.55-5.09c.22-.22.61-.32 1.05-.08l2.8 1.34c.25.15.49.38.49.81v9.49c0 .28-.2.58-.42.7l-3.08 1.48c-.22.09-.64 0-.79-.14L5.11 9.69l-2.38 1.83c-.27.18-.6.13-.74 0l-.84-.77c-.22-.23-.2-.61.04-.84l2.1-1.9"
9
+ />
10
+ </g>
11
+ </symbol>
12
+
13
+ <symbol id="cursor" viewBox="0 0 24 24">
14
+ <rect width="24" height="24" rx="5" fill="#111827" />
15
+ <path
16
+ fill="#fff"
17
+ d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"
18
+ />
19
+ </symbol>
20
+
21
+ <symbol id="zed" viewBox="0 0 24 24">
22
+ <rect width="24" height="24" rx="5" fill="#084CCF" />
23
+ <g transform="translate(12 12) scale(0.9) translate(-12 -12)">
24
+ <path
25
+ fill="#fff"
26
+ d="M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z"
27
+ />
28
+ </g>
29
+ </symbol>
30
+
31
+ <symbol id="finder" viewBox="0 0 24 24">
32
+ <rect width="24" height="24" rx="5" fill="#8ED0FF" />
33
+ <path d="M12 0H19a5 5 0 0 1 5 5V19a5 5 0 0 1-5 5H12Z" fill="#2D7BF7" />
34
+ <path d="M12 3v18" stroke="#0B2A4A" stroke-opacity="0.35" stroke-width="1.5" />
35
+ <circle cx="8.3" cy="9.2" r="1.1" fill="#0B2A4A" />
36
+ <circle cx="15.7" cy="9.2" r="1.1" fill="#0B2A4A" />
37
+ <path
38
+ d="M7.3 15c1.2 1.55 2.9 2.4 4.7 2.4s3.5-.85 4.7-2.4"
39
+ stroke="#0B2A4A"
40
+ stroke-width="1.5"
41
+ fill="none"
42
+ stroke-linecap="round"
43
+ />
44
+ </symbol>
45
+
46
+ <symbol id="terminal" viewBox="0 0 24 24">
47
+ <rect width="24" height="24" rx="5" fill="#111827" />
48
+ <rect
49
+ x="3.5"
50
+ y="4.5"
51
+ width="17"
52
+ height="15"
53
+ rx="2.5"
54
+ fill="#0B1220"
55
+ stroke="#334155"
56
+ stroke-opacity="0.5"
57
+ />
58
+ <path
59
+ d="M7.8 9.2 11 12 7.8 14.8"
60
+ stroke="#34D399"
61
+ stroke-width="1.8"
62
+ stroke-linecap="round"
63
+ stroke-linejoin="round"
64
+ />
65
+ <rect x="12.2" y="14.2" width="5.4" height="1.6" rx="0.8" fill="#34D399" />
66
+ </symbol>
67
+
68
+ <symbol id="iterm2" viewBox="0 0 24 24">
69
+ <rect width="24" height="24" rx="5" fill="#0B0B0B" />
70
+ <rect x="3.2" y="4.2" width="17.6" height="15.6" rx="2.4" fill="#000" stroke="#60A5FA" stroke-width="1.2" />
71
+ <circle cx="5.5" cy="6.3" r="0.75" fill="#F87171" />
72
+ <circle cx="7.6" cy="6.3" r="0.75" fill="#FBBF24" />
73
+ <circle cx="9.7" cy="6.3" r="0.75" fill="#34D399" />
74
+ <path
75
+ d="M7.9 10.2 10.6 12 7.9 13.8"
76
+ stroke="#34D399"
77
+ stroke-width="1.6"
78
+ stroke-linecap="round"
79
+ stroke-linejoin="round"
80
+ />
81
+ <rect x="11.6" y="13.3" width="5" height="1.4" rx="0.7" fill="#34D399" />
82
+ </symbol>
83
+
84
+ <symbol id="ghostty" viewBox="0 0 24 24">
85
+ <rect width="24" height="24" rx="5" fill="#3551F3" />
86
+ <g transform="translate(12 12) scale(0.9) translate(-12 -12)">
87
+ <path
88
+ fill="#fff"
89
+ d="M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95"
90
+ />
91
+ </g>
92
+ </symbol>
93
+
94
+ <symbol id="xcode" viewBox="0 0 24 24">
95
+ <rect width="24" height="24" rx="5" fill="#147EFB" />
96
+ <path d="M6 8H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
97
+ <path d="M8 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
98
+ <path d="M6 18H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
99
+ <path d="M18 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
100
+ <g transform="translate(12 12) rotate(-35) translate(-12 -12)">
101
+ <rect x="11.1" y="6.2" width="2" height="12.6" rx="1" fill="#fff" />
102
+ <rect x="9.2" y="5.3" width="5.6" height="2.7" rx="1" fill="#fff" />
103
+ </g>
104
+ </symbol>
105
+
106
+ <symbol id="android-studio" viewBox="0 0 24 24">
107
+ <rect width="24" height="24" rx="5" fill="#3DDC84" />
108
+ <circle cx="12" cy="12.2" r="6.8" fill="#3B82F6" />
109
+ <circle cx="12" cy="12.2" r="4.8" fill="none" stroke="#fff" stroke-width="1.6" />
110
+ <path d="M12 9.4l2.2 5-2.2-1.3-2.2 1.3z" fill="#fff" />
111
+ <circle cx="12" cy="12.2" r="0.9" fill="#fff" />
112
+ </symbol>
113
+ </defs>
114
+ </svg>
@@ -0,0 +1,21 @@
1
+ // This file is generated by icon spritesheet generator
2
+
3
+ export const iconNames = [
4
+ "vscode",
5
+ "cursor",
6
+ "zed",
7
+ "file-explorer",
8
+ "finder",
9
+ "terminal",
10
+ "iterm2",
11
+ "ghostty",
12
+ "warp",
13
+ "xcode",
14
+ "android-studio",
15
+ "antigravity",
16
+ "textmate",
17
+ "powershell",
18
+ "sublime-text",
19
+ ] as const
20
+
21
+ export type IconName = (typeof iconNames)[number]
@@ -0,0 +1,49 @@
1
+ [data-component="avatar"] {
2
+ --avatar-bg: var(--color-surface-info-base);
3
+ --avatar-fg: var(--color-text-base);
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ flex-shrink: 0;
8
+ border-radius: var(--radius-sm);
9
+ border: 1px solid var(--color-border-weak-base);
10
+ font-family: var(--font-mono);
11
+ font-weight: 500;
12
+ text-transform: uppercase;
13
+ background-color: var(--avatar-bg);
14
+ color: var(--avatar-fg);
15
+ }
16
+
17
+ [data-component="avatar"][data-has-image] {
18
+ background-color: transparent;
19
+ border: none;
20
+ }
21
+
22
+ [data-component="avatar"][data-size="small"] {
23
+ width: 1.25rem;
24
+ height: 1.25rem;
25
+ font-size: 0.75rem;
26
+ line-height: 1;
27
+ }
28
+
29
+ [data-component="avatar"][data-size="normal"] {
30
+ width: 1.5rem;
31
+ height: 1.5rem;
32
+ font-size: 1.125rem;
33
+ line-height: 1.5rem;
34
+ }
35
+
36
+ [data-component="avatar"][data-size="large"] {
37
+ width: 2rem;
38
+ height: 2rem;
39
+ font-size: 1.25rem;
40
+ line-height: 2rem;
41
+ }
42
+
43
+ [data-component="avatar"] [data-slot="avatar-image"] {
44
+ width: 100%;
45
+ height: 100%;
46
+ display: block;
47
+ object-fit: cover;
48
+ border-radius: inherit;
49
+ }
@@ -0,0 +1,55 @@
1
+ import { type ComponentProps, splitProps, Show } from "solid-js"
2
+
3
+ const segmenter =
4
+ typeof Intl !== "undefined" && "Segmenter" in Intl
5
+ ? new Intl.Segmenter(undefined, { granularity: "grapheme" })
6
+ : undefined
7
+
8
+ function first(value: string) {
9
+ if (!value) return ""
10
+ if (!segmenter) return Array.from(value)[0] ?? ""
11
+ return segmenter.segment(value)[Symbol.iterator]().next().value?.segment ?? Array.from(value)[0] ?? ""
12
+ }
13
+
14
+ export interface AvatarProps extends ComponentProps<"div"> {
15
+ fallback: string
16
+ src?: string
17
+ background?: string
18
+ foreground?: string
19
+ size?: "small" | "normal" | "large"
20
+ }
21
+
22
+ export function Avatar(props: AvatarProps) {
23
+ const [split, rest] = splitProps(props, [
24
+ "fallback",
25
+ "src",
26
+ "background",
27
+ "foreground",
28
+ "size",
29
+ "class",
30
+ "classList",
31
+ "style",
32
+ ])
33
+ const src = split.src // did this so i can zero it out to test fallback
34
+ return (
35
+ <div
36
+ {...rest}
37
+ data-component="avatar"
38
+ data-size={split.size || "normal"}
39
+ data-has-image={src ? "" : undefined}
40
+ classList={{
41
+ ...split.classList,
42
+ [split.class ?? ""]: !!split.class,
43
+ }}
44
+ style={{
45
+ ...(typeof split.style === "object" ? split.style : {}),
46
+ ...(!src && split.background ? { "--avatar-bg": split.background } : {}),
47
+ ...(!src && split.foreground ? { "--avatar-fg": split.foreground } : {}),
48
+ }}
49
+ >
50
+ <Show when={src} fallback={first(split.fallback)}>
51
+ {(src) => <img src={src()} draggable={false} data-slot="avatar-image" />}
52
+ </Show>
53
+ </div>
54
+ )
55
+ }
@@ -0,0 +1,194 @@
1
+ [data-component="button"] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ border-style: solid;
6
+ border-width: 1px;
7
+ border-radius: var(--radius-md);
8
+ text-decoration: none;
9
+ user-select: none;
10
+ cursor: default;
11
+ outline: none;
12
+ white-space: nowrap;
13
+
14
+ &[data-variant="primary"] {
15
+ background-color: var(--button-primary-base);
16
+ border-color: var(--border-weak-base);
17
+ color: var(--icon-invert-base);
18
+
19
+ [data-slot="icon-svg"] {
20
+ color: var(--icon-invert-base);
21
+ }
22
+
23
+ &:hover:not(:disabled) {
24
+ background-color: var(--icon-strong-hover);
25
+ }
26
+ &:focus:not(:disabled) {
27
+ background-color: var(--icon-strong-focus);
28
+ }
29
+ &:active:not(:disabled) {
30
+ background-color: var(--icon-strong-active);
31
+ }
32
+ &:disabled {
33
+ background-color: var(--icon-strong-disabled);
34
+
35
+ [data-slot="icon-svg"] {
36
+ color: var(--icon-invert-base);
37
+ }
38
+ }
39
+ }
40
+
41
+ &[data-variant="ghost"] {
42
+ border-color: transparent;
43
+ background-color: transparent;
44
+ color: var(--text-strong);
45
+
46
+ [data-slot="icon-svg"] {
47
+ color: var(--icon-base);
48
+ }
49
+
50
+ &:hover:not(:disabled) {
51
+ background-color: var(--surface-base-hover);
52
+ }
53
+ &:focus-visible:not(:disabled) {
54
+ background-color: var(--surface-base-hover);
55
+ }
56
+ &:active:not(:disabled) {
57
+ background-color: var(--surface-base-active);
58
+ }
59
+ &:disabled {
60
+ color: var(--text-weak);
61
+ cursor: not-allowed;
62
+
63
+ [data-slot="icon-svg"] {
64
+ color: var(--icon-disabled);
65
+ }
66
+ }
67
+ &[data-selected="true"]:not(:disabled) {
68
+ background-color: var(--surface-base-hover);
69
+ }
70
+ &[data-active="true"] {
71
+ background-color: var(--surface-base-active);
72
+ }
73
+ }
74
+
75
+ &[data-variant="secondary"] {
76
+ border: transparent;
77
+ background-color: var(--button-secondary-base);
78
+ color: var(--text-strong);
79
+ box-shadow: var(--shadow-xs-border-base);
80
+
81
+ &:hover:not(:disabled) {
82
+ background-color: var(--button-secondary-hover);
83
+ }
84
+ &:focus:not(:disabled) {
85
+ background-color: var(--button-secondary-base);
86
+ }
87
+ &:focus-visible:not(:active) {
88
+ background-color: var(--button-secondary-base);
89
+ box-shadow: var(--shadow-xs-border-focus);
90
+ }
91
+ &:focus-visible:active {
92
+ box-shadow: none;
93
+ }
94
+ &:active:not(:disabled) {
95
+ background-color: var(--button-secondary-base);
96
+ }
97
+ &:disabled {
98
+ border-color: var(--border-disabled);
99
+ background-color: var(--surface-disabled);
100
+ color: var(--text-weak);
101
+ cursor: not-allowed;
102
+ }
103
+
104
+ [data-slot="icon-svg"] {
105
+ color: var(--icon-base);
106
+ }
107
+ }
108
+
109
+ &[data-size="small"] {
110
+ height: 24px;
111
+ padding: 0 8px;
112
+ &[data-icon] {
113
+ padding: 0 12px 0 4px;
114
+ }
115
+
116
+ font-size: var(--font-size-small);
117
+ line-height: var(--line-height-large);
118
+ gap: 8px;
119
+
120
+ /* text-12-medium */
121
+ font-family: var(--font-family-sans);
122
+ font-size: var(--font-size-small);
123
+ font-style: normal;
124
+ font-weight: var(--font-weight-medium);
125
+ line-height: var(--line-height-large); /* 166.667% */
126
+ letter-spacing: var(--letter-spacing-normal);
127
+ }
128
+
129
+ &[data-size="normal"] {
130
+ height: 28px;
131
+ line-height: 28px;
132
+ padding: 0 6px;
133
+ &[data-icon] {
134
+ padding: 0 12px 0 4px;
135
+ }
136
+
137
+ font-size: var(--font-size-small);
138
+ gap: 8px;
139
+
140
+ /* text-12-medium */
141
+ font-family: var(--font-family-sans);
142
+ font-size: var(--font-size-small);
143
+ font-style: normal;
144
+ font-weight: var(--font-weight-medium);
145
+ letter-spacing: var(--letter-spacing-normal);
146
+ }
147
+
148
+ &[data-size="large"] {
149
+ height: 32px;
150
+ padding: 6px 12px;
151
+
152
+ &[data-icon] {
153
+ padding: 0 12px 0 8px;
154
+ }
155
+
156
+ gap: 8px;
157
+
158
+ /* text-14-medium */
159
+ font-family: var(--font-family-sans);
160
+ font-size: 14px;
161
+ font-style: normal;
162
+ font-weight: var(--font-weight-medium);
163
+ line-height: var(--line-height-large); /* 142.857% */
164
+ letter-spacing: var(--letter-spacing-normal);
165
+ }
166
+
167
+ &:focus {
168
+ outline: none;
169
+ }
170
+ }
171
+
172
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"] {
173
+ background-color: var(--surface-base-active);
174
+ }
175
+
176
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"] [data-slot="icon-svg"] {
177
+ color: var(--icon-strong-base);
178
+ }
179
+
180
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"]:hover:not(:disabled) {
181
+ background-color: var(--surface-base-active);
182
+ }
183
+
184
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-current="page"] {
185
+ background-color: var(--surface-base-active);
186
+ }
187
+
188
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-current="page"] [data-slot="icon-svg"] {
189
+ color: var(--icon-strong-base);
190
+ }
191
+
192
+ [data-component="button"].titlebar-icon[data-variant="ghost"][aria-current="page"]:hover:not(:disabled) {
193
+ background-color: var(--surface-base-active);
194
+ }
@@ -0,0 +1,33 @@
1
+ import { Button as Kobalte } from "@kobalte/core/button"
2
+ import { type ComponentProps, Show, splitProps } from "solid-js"
3
+ import { Icon, IconProps } from "./icon"
4
+
5
+ export interface ButtonProps
6
+ extends ComponentProps<typeof Kobalte>,
7
+ Pick<ComponentProps<"button">, "class" | "classList" | "children"> {
8
+ size?: "small" | "normal" | "large"
9
+ variant?: "primary" | "secondary" | "ghost"
10
+ icon?: IconProps["name"]
11
+ }
12
+
13
+ export function Button(props: ButtonProps) {
14
+ const [split, rest] = splitProps(props, ["variant", "size", "icon", "class", "classList"])
15
+ return (
16
+ <Kobalte
17
+ {...rest}
18
+ data-component="button"
19
+ data-size={split.size || "normal"}
20
+ data-variant={split.variant || "secondary"}
21
+ data-icon={split.icon}
22
+ classList={{
23
+ ...split.classList,
24
+ [split.class ?? ""]: !!split.class,
25
+ }}
26
+ >
27
+ <Show when={split.icon}>
28
+ <Icon name={split.icon!} size="small" />
29
+ </Show>
30
+ {props.children}
31
+ </Kobalte>
32
+ )
33
+ }
@@ -0,0 +1,94 @@
1
+ [data-component="card"] {
2
+ --card-pad-y: 10px;
3
+ --card-pad-r: 12px;
4
+ --card-pad-l: 10px;
5
+
6
+ width: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ position: relative;
10
+ background: transparent;
11
+ border: none;
12
+ border-radius: var(--radius-md);
13
+ padding: var(--card-pad-y) var(--card-pad-r) var(--card-pad-y) var(--card-pad-l);
14
+
15
+ /* text-14-regular */
16
+ font-family: var(--font-family-sans);
17
+ font-size: var(--font-size-base);
18
+ font-style: normal;
19
+ font-weight: var(--font-weight-regular);
20
+ line-height: var(--line-height-large);
21
+ letter-spacing: var(--letter-spacing-normal);
22
+ color: var(--text-strong);
23
+
24
+ --card-gap: 8px;
25
+ --card-icon: 16px;
26
+ --card-indent: 0px;
27
+ --card-line-pad: 8px;
28
+
29
+ --card-accent: var(--icon-active);
30
+
31
+ &:has([data-slot="card-title"]) {
32
+ gap: 8px;
33
+ }
34
+
35
+ &:has([data-slot="card-title-icon"]) {
36
+ --card-indent: calc(var(--card-icon) + var(--card-gap));
37
+ }
38
+
39
+ &::before {
40
+ content: "";
41
+ position: absolute;
42
+ left: 0;
43
+ top: var(--card-line-pad);
44
+ bottom: var(--card-line-pad);
45
+ width: 2px;
46
+ border-radius: 2px;
47
+ background-color: var(--card-accent);
48
+ }
49
+
50
+ :where([data-card="title"], [data-slot="card-title"]) {
51
+ color: var(--text-strong);
52
+ font-weight: var(--font-weight-medium);
53
+ }
54
+
55
+ :where([data-slot="card-title"]) {
56
+ display: flex;
57
+ align-items: center;
58
+ gap: var(--card-gap);
59
+ }
60
+
61
+ :where([data-slot="card-title"]) [data-component="icon"] {
62
+ color: var(--card-accent);
63
+ }
64
+
65
+ :where([data-slot="card-title-icon"]) {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ width: var(--card-icon);
70
+ height: var(--card-icon);
71
+ flex: 0 0 auto;
72
+ }
73
+
74
+ :where([data-slot="card-title-icon"][data-placeholder]) [data-component="icon"] {
75
+ color: var(--text-weak);
76
+ }
77
+
78
+ :where([data-slot="card-title-icon"])
79
+ [data-slot="icon-svg"]
80
+ :is(path, line, polyline, polygon, rect, circle, ellipse)[stroke] {
81
+ stroke-width: 1.5px !important;
82
+ }
83
+
84
+ :where([data-card="description"], [data-slot="card-description"]) {
85
+ color: var(--text-base);
86
+ white-space: pre-wrap;
87
+ overflow-wrap: anywhere;
88
+ word-break: break-word;
89
+ }
90
+
91
+ :where([data-card="actions"], [data-slot="card-actions"]) {
92
+ padding-left: var(--card-indent);
93
+ }
94
+ }
@@ -0,0 +1,123 @@
1
+ import { type ComponentProps, splitProps } from "solid-js"
2
+ import { Icon, type IconProps } from "./icon"
3
+
4
+ type Variant = "normal" | "error" | "warning" | "success" | "info"
5
+
6
+ export interface CardProps extends ComponentProps<"div"> {
7
+ variant?: Variant
8
+ }
9
+
10
+ export interface CardTitleProps extends ComponentProps<"div"> {
11
+ variant?: Variant
12
+
13
+ /**
14
+ * Optional title icon.
15
+ *
16
+ * - `undefined`: picks a default icon based on `variant` (error/warning/success/info)
17
+ * - `false`/`null`: disables the icon
18
+ * - `Icon` name: forces a specific icon
19
+ */
20
+ icon?: IconProps["name"] | false | null
21
+ }
22
+
23
+ function pick(variant: Variant) {
24
+ if (variant === "error") return "circle-ban-sign" as const
25
+ if (variant === "warning") return "warning" as const
26
+ if (variant === "success") return "circle-check" as const
27
+ if (variant === "info") return "help" as const
28
+ return
29
+ }
30
+
31
+ function mix(style: ComponentProps<"div">["style"], value?: string) {
32
+ if (!value) return style
33
+ if (!style) return { "--card-accent": value }
34
+ if (typeof style === "string") return `${style};--card-accent:${value};`
35
+ return { ...(style as Record<string, string | number>), "--card-accent": value }
36
+ }
37
+
38
+ export function Card(props: CardProps) {
39
+ const [split, rest] = splitProps(props, ["variant", "style", "class", "classList"])
40
+ const variant = () => split.variant ?? "normal"
41
+ const accent = () => {
42
+ const v = variant()
43
+ if (v === "error") return "var(--icon-critical-base)"
44
+ if (v === "warning") return "var(--icon-warning-active)"
45
+ if (v === "success") return "var(--icon-success-active)"
46
+ if (v === "info") return "var(--icon-info-active)"
47
+ return
48
+ }
49
+ return (
50
+ <div
51
+ {...rest}
52
+ data-component="card"
53
+ data-variant={variant()}
54
+ style={mix(split.style, accent())}
55
+ classList={{
56
+ ...split.classList,
57
+ [split.class ?? ""]: !!split.class,
58
+ }}
59
+ >
60
+ {props.children}
61
+ </div>
62
+ )
63
+ }
64
+
65
+ export function CardTitle(props: CardTitleProps) {
66
+ const [split, rest] = splitProps(props, ["variant", "icon", "class", "classList", "children"])
67
+ const show = () => split.icon !== false && split.icon !== null
68
+ const name = () => {
69
+ if (split.icon === false || split.icon === null) return
70
+ if (typeof split.icon === "string") return split.icon
71
+ return pick(split.variant ?? "normal")
72
+ }
73
+ const placeholder = () => !name()
74
+ return (
75
+ <div
76
+ {...rest}
77
+ data-slot="card-title"
78
+ classList={{
79
+ ...split.classList,
80
+ [split.class ?? ""]: !!split.class,
81
+ }}
82
+ >
83
+ {show() ? (
84
+ <span data-slot="card-title-icon" data-placeholder={placeholder() || undefined}>
85
+ <Icon name={name() ?? "dash"} size="small" />
86
+ </span>
87
+ ) : null}
88
+ {split.children}
89
+ </div>
90
+ )
91
+ }
92
+
93
+ export function CardDescription(props: ComponentProps<"div">) {
94
+ const [split, rest] = splitProps(props, ["class", "classList", "children"])
95
+ return (
96
+ <div
97
+ {...rest}
98
+ data-slot="card-description"
99
+ classList={{
100
+ ...split.classList,
101
+ [split.class ?? ""]: !!split.class,
102
+ }}
103
+ >
104
+ {split.children}
105
+ </div>
106
+ )
107
+ }
108
+
109
+ export function CardActions(props: ComponentProps<"div">) {
110
+ const [split, rest] = splitProps(props, ["class", "classList", "children"])
111
+ return (
112
+ <div
113
+ {...rest}
114
+ data-slot="card-actions"
115
+ classList={{
116
+ ...split.classList,
117
+ [split.class ?? ""]: !!split.class,
118
+ }}
119
+ >
120
+ {split.children}
121
+ </div>
122
+ )
123
+ }