@opencode-ai/ui 0.0.0 → 1.17.13

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 (473) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/accordion.d.ts +24 -0
  3. package/dist/components/animated-number.d.ts +4 -0
  4. package/dist/components/app-icon.d.ts +6 -0
  5. package/dist/components/app-icons/types.d.ts +2 -0
  6. package/dist/components/avatar.d.ts +9 -0
  7. package/dist/components/button.d.ts +9 -0
  8. package/dist/components/card.d.ts +22 -0
  9. package/dist/components/checkbox.d.ts +8 -0
  10. package/dist/components/collapsible.d.ts +17 -0
  11. package/dist/components/context-menu.d.ts +80 -0
  12. package/dist/components/dialog.d.ts +12 -0
  13. package/dist/components/diff-changes.d.ts +11 -0
  14. package/dist/components/dock-surface.d.ts +7 -0
  15. package/dist/components/dropdown-menu.d.ts +80 -0
  16. package/dist/components/favicon.d.ts +1 -0
  17. package/dist/components/file-icon.d.ts +12 -0
  18. package/dist/components/file-icons/types.d.ts +2 -0
  19. package/dist/components/font.d.ts +1 -0
  20. package/dist/components/hover-card.d.ts +9 -0
  21. package/dist/components/icon-button.d.ts +10 -0
  22. package/dist/components/icon.d.ts +104 -0
  23. package/dist/components/image-preview.d.ts +5 -0
  24. package/dist/components/inline-input.d.ts +5 -0
  25. package/dist/components/keybind.d.ts +6 -0
  26. package/dist/components/list.d.ts +45 -0
  27. package/dist/components/logo.d.ts +8 -0
  28. package/dist/components/motion-spring.d.ts +4 -0
  29. package/dist/components/popover.d.ts +14 -0
  30. package/dist/components/progress-circle.d.ts +7 -0
  31. package/dist/components/progress.d.ts +7 -0
  32. package/dist/components/provider-icon.d.ts +5 -0
  33. package/dist/components/provider-icons/types.d.ts +2 -0
  34. package/dist/components/radio-group.d.ts +16 -0
  35. package/dist/components/resize-handle.d.ts +12 -0
  36. package/dist/components/scroll-view.d.ts +15 -0
  37. package/dist/components/select.d.ts +21 -0
  38. package/dist/components/spinner.d.ts +6 -0
  39. package/dist/components/sticky-accordion-header.d.ts +5 -0
  40. package/dist/components/switch.d.ts +7 -0
  41. package/dist/components/tabs.d.ts +32 -0
  42. package/dist/components/tag.d.ts +5 -0
  43. package/dist/components/text-field.d.ts +13 -0
  44. package/dist/components/text-reveal.d.ts +13 -0
  45. package/dist/components/text-shimmer.d.ts +8 -0
  46. package/dist/components/text-strikethrough.d.ts +11 -0
  47. package/dist/components/toast.d.ts +56 -0
  48. package/dist/components/tooltip.d.ts +17 -0
  49. package/dist/components/typewriter.d.ts +6 -0
  50. package/dist/context/dialog.d.ts +18 -0
  51. package/dist/context/file.d.ts +5 -0
  52. package/dist/context/helper.d.ts +14 -0
  53. package/dist/context/i18n.d.ts +12 -0
  54. package/dist/context/index.d.ts +4 -0
  55. package/dist/context/marked.d.ts +9 -0
  56. package/dist/context/worker-pool.d.ts +9 -0
  57. package/dist/hooks/create-auto-scroll.d.ts +17 -0
  58. package/dist/hooks/index.d.ts +2 -0
  59. package/dist/hooks/use-filtered-list.d.ts +39 -0
  60. package/dist/i18n/ar.d.ts +148 -0
  61. package/dist/i18n/br.d.ts +148 -0
  62. package/dist/i18n/bs.d.ts +148 -0
  63. package/dist/i18n/da.d.ts +148 -0
  64. package/dist/i18n/de.d.ts +148 -0
  65. package/dist/i18n/en.d.ts +1 -0
  66. package/dist/i18n/es.d.ts +148 -0
  67. package/dist/i18n/fr.d.ts +148 -0
  68. package/dist/i18n/ja.d.ts +148 -0
  69. package/dist/i18n/ko.d.ts +148 -0
  70. package/dist/i18n/no.d.ts +4 -0
  71. package/dist/i18n/pl.d.ts +148 -0
  72. package/dist/i18n/ru.d.ts +148 -0
  73. package/dist/i18n/th.d.ts +148 -0
  74. package/dist/i18n/tr.d.ts +148 -0
  75. package/dist/i18n/uk.d.ts +1 -0
  76. package/dist/i18n/zh.d.ts +148 -0
  77. package/dist/i18n/zht.d.ts +148 -0
  78. package/dist/storybook/fixtures.d.ts +19 -0
  79. package/dist/storybook/scaffold.d.ts +16 -0
  80. package/dist/theme/color.d.ts +30 -0
  81. package/dist/theme/context.d.ts +21 -0
  82. package/dist/theme/default-themes.d.ts +39 -0
  83. package/dist/theme/index.d.ts +7 -0
  84. package/dist/theme/loader.d.ts +6 -0
  85. package/dist/theme/resolve.d.ts +7 -0
  86. package/dist/theme/types.d.ts +56 -0
  87. package/dist/theme/v2/avatar.d.ts +5 -0
  88. package/dist/theme/v2/default-primitives.d.ts +3 -0
  89. package/dist/theme/v2/foreground.d.ts +2 -0
  90. package/dist/theme/v2/mapping.d.ts +3 -0
  91. package/dist/theme/v2/resolve.d.ts +9 -0
  92. package/dist/v2/components/accordion-v2.d.ts +26 -0
  93. package/dist/v2/components/avatar-v2.d.ts +11 -0
  94. package/dist/v2/components/badge-v2.d.ts +5 -0
  95. package/dist/v2/components/button-v2.d.ts +10 -0
  96. package/dist/v2/components/checkbox-v2.d.ts +10 -0
  97. package/dist/v2/components/dialog-v2.d.ts +26 -0
  98. package/dist/v2/components/diff-changes-v2.d.ts +11 -0
  99. package/dist/v2/components/divider-v2.d.ts +5 -0
  100. package/dist/v2/components/field-v2.d.ts +28 -0
  101. package/dist/v2/components/icon-button-v2.d.ts +11 -0
  102. package/dist/v2/components/icon.d.ts +121 -0
  103. package/dist/v2/components/inline-input-v2.d.ts +21 -0
  104. package/dist/v2/components/keybind-v2.d.ts +7 -0
  105. package/dist/v2/components/line-comment-v2.d.ts +28 -0
  106. package/dist/v2/components/loader-v2.d.ts +3 -0
  107. package/dist/v2/components/menu-v2.d.ts +52 -0
  108. package/dist/v2/components/progress-circle-v2.d.ts +8 -0
  109. package/dist/v2/components/project-avatar-v2.d.ts +11 -0
  110. package/dist/v2/components/radio-v2.d.ts +16 -0
  111. package/dist/v2/components/segmented-control-v2.d.ts +21 -0
  112. package/dist/v2/components/select-v2.d.ts +24 -0
  113. package/dist/v2/components/switch-v2.d.ts +7 -0
  114. package/dist/v2/components/tab-state-indicator.d.ts +2 -0
  115. package/dist/v2/components/tabs-v2.d.ts +34 -0
  116. package/dist/v2/components/text-input-v2.d.ts +17 -0
  117. package/dist/v2/components/text-shimmer-v2.d.ts +9 -0
  118. package/dist/v2/components/textarea-v2.d.ts +7 -0
  119. package/dist/v2/components/toast-v2.d.ts +48 -0
  120. package/dist/v2/components/tooltip-v2.d.ts +13 -0
  121. package/dist/v2/components/wordmark-v2.d.ts +2 -0
  122. package/package.json +148 -6
  123. package/src/assets/audio/alert-01.aac +0 -0
  124. package/src/assets/audio/alert-01.mp3 +0 -0
  125. package/src/assets/audio/alert-02.aac +0 -0
  126. package/src/assets/audio/alert-02.mp3 +0 -0
  127. package/src/assets/audio/alert-03.aac +0 -0
  128. package/src/assets/audio/alert-03.mp3 +0 -0
  129. package/src/assets/audio/alert-04.aac +0 -0
  130. package/src/assets/audio/alert-04.mp3 +0 -0
  131. package/src/assets/audio/alert-05.aac +0 -0
  132. package/src/assets/audio/alert-05.mp3 +0 -0
  133. package/src/assets/audio/alert-06.aac +0 -0
  134. package/src/assets/audio/alert-06.mp3 +0 -0
  135. package/src/assets/audio/alert-07.aac +0 -0
  136. package/src/assets/audio/alert-07.mp3 +0 -0
  137. package/src/assets/audio/alert-08.aac +0 -0
  138. package/src/assets/audio/alert-08.mp3 +0 -0
  139. package/src/assets/audio/alert-09.aac +0 -0
  140. package/src/assets/audio/alert-09.mp3 +0 -0
  141. package/src/assets/audio/alert-10.aac +0 -0
  142. package/src/assets/audio/alert-10.mp3 +0 -0
  143. package/src/assets/audio/bip-bop-01.aac +0 -0
  144. package/src/assets/audio/bip-bop-01.mp3 +0 -0
  145. package/src/assets/audio/bip-bop-02.aac +0 -0
  146. package/src/assets/audio/bip-bop-02.mp3 +0 -0
  147. package/src/assets/audio/bip-bop-03.aac +0 -0
  148. package/src/assets/audio/bip-bop-03.mp3 +0 -0
  149. package/src/assets/audio/bip-bop-04.aac +0 -0
  150. package/src/assets/audio/bip-bop-04.mp3 +0 -0
  151. package/src/assets/audio/bip-bop-05.aac +0 -0
  152. package/src/assets/audio/bip-bop-05.mp3 +0 -0
  153. package/src/assets/audio/bip-bop-06.aac +0 -0
  154. package/src/assets/audio/bip-bop-06.mp3 +0 -0
  155. package/src/assets/audio/bip-bop-07.aac +0 -0
  156. package/src/assets/audio/bip-bop-07.mp3 +0 -0
  157. package/src/assets/audio/bip-bop-08.aac +0 -0
  158. package/src/assets/audio/bip-bop-08.mp3 +0 -0
  159. package/src/assets/audio/bip-bop-09.aac +0 -0
  160. package/src/assets/audio/bip-bop-09.mp3 +0 -0
  161. package/src/assets/audio/bip-bop-10.aac +0 -0
  162. package/src/assets/audio/bip-bop-10.mp3 +0 -0
  163. package/src/assets/audio/nope-01.aac +0 -0
  164. package/src/assets/audio/nope-01.mp3 +0 -0
  165. package/src/assets/audio/nope-02.aac +0 -0
  166. package/src/assets/audio/nope-02.mp3 +0 -0
  167. package/src/assets/audio/nope-03.aac +0 -0
  168. package/src/assets/audio/nope-03.mp3 +0 -0
  169. package/src/assets/audio/nope-04.aac +0 -0
  170. package/src/assets/audio/nope-04.mp3 +0 -0
  171. package/src/assets/audio/nope-05.aac +0 -0
  172. package/src/assets/audio/nope-05.mp3 +0 -0
  173. package/src/assets/audio/nope-06.aac +0 -0
  174. package/src/assets/audio/nope-06.mp3 +0 -0
  175. package/src/assets/audio/nope-07.aac +0 -0
  176. package/src/assets/audio/nope-07.mp3 +0 -0
  177. package/src/assets/audio/nope-08.aac +0 -0
  178. package/src/assets/audio/nope-08.mp3 +0 -0
  179. package/src/assets/audio/nope-09.aac +0 -0
  180. package/src/assets/audio/nope-09.mp3 +0 -0
  181. package/src/assets/audio/nope-10.aac +0 -0
  182. package/src/assets/audio/nope-10.mp3 +0 -0
  183. package/src/assets/audio/nope-11.aac +0 -0
  184. package/src/assets/audio/nope-11.mp3 +0 -0
  185. package/src/assets/audio/nope-12.aac +0 -0
  186. package/src/assets/audio/nope-12.mp3 +0 -0
  187. package/src/assets/audio/staplebops-01.aac +0 -0
  188. package/src/assets/audio/staplebops-01.mp3 +0 -0
  189. package/src/assets/audio/staplebops-02.aac +0 -0
  190. package/src/assets/audio/staplebops-02.mp3 +0 -0
  191. package/src/assets/audio/staplebops-03.aac +0 -0
  192. package/src/assets/audio/staplebops-03.mp3 +0 -0
  193. package/src/assets/audio/staplebops-04.aac +0 -0
  194. package/src/assets/audio/staplebops-04.mp3 +0 -0
  195. package/src/assets/audio/staplebops-05.aac +0 -0
  196. package/src/assets/audio/staplebops-05.mp3 +0 -0
  197. package/src/assets/audio/staplebops-06.aac +0 -0
  198. package/src/assets/audio/staplebops-06.mp3 +0 -0
  199. package/src/assets/audio/staplebops-07.aac +0 -0
  200. package/src/assets/audio/staplebops-07.mp3 +0 -0
  201. package/src/assets/audio/yup-01.aac +0 -0
  202. package/src/assets/audio/yup-01.mp3 +0 -0
  203. package/src/assets/audio/yup-02.aac +0 -0
  204. package/src/assets/audio/yup-02.mp3 +0 -0
  205. package/src/assets/audio/yup-03.aac +0 -0
  206. package/src/assets/audio/yup-03.mp3 +0 -0
  207. package/src/assets/audio/yup-04.aac +0 -0
  208. package/src/assets/audio/yup-04.mp3 +0 -0
  209. package/src/assets/audio/yup-05.aac +0 -0
  210. package/src/assets/audio/yup-05.mp3 +0 -0
  211. package/src/assets/audio/yup-06.aac +0 -0
  212. package/src/assets/audio/yup-06.mp3 +0 -0
  213. package/src/assets/fonts/Inter.ttf +0 -0
  214. package/src/assets/fonts/JetBrainsMonoNerdFontMono-Regular.woff2 +0 -0
  215. package/src/assets/icons/app/android-studio.svg +369 -0
  216. package/src/assets/icons/app/antigravity.svg +97 -0
  217. package/src/assets/icons/app/cursor.svg +16 -0
  218. package/src/assets/icons/app/file-explorer.svg +20 -0
  219. package/src/assets/icons/app/finder.png +0 -0
  220. package/src/assets/icons/app/ghostty.svg +13 -0
  221. package/src/assets/icons/app/iterm2.svg +13 -0
  222. package/src/assets/icons/app/powershell.svg +14 -0
  223. package/src/assets/icons/app/sublimetext.svg +17 -0
  224. package/src/assets/icons/app/terminal.png +0 -0
  225. package/src/assets/icons/app/textmate.png +0 -0
  226. package/src/assets/icons/app/vscode.svg +39 -0
  227. package/src/assets/icons/app/warp.png +0 -0
  228. package/src/assets/icons/app/xcode.png +0 -0
  229. package/src/assets/icons/app/zed-dark.svg +15 -0
  230. package/src/assets/icons/app/zed.svg +15 -0
  231. package/src/components/accordion.css +147 -0
  232. package/src/components/accordion.tsx +92 -0
  233. package/src/components/animated-number.css +75 -0
  234. package/src/components/animated-number.tsx +109 -0
  235. package/src/components/app-icon.css +5 -0
  236. package/src/components/app-icon.tsx +85 -0
  237. package/src/components/app-icons/sprite.svg +114 -0
  238. package/src/components/app-icons/types.ts +21 -0
  239. package/src/components/avatar.css +49 -0
  240. package/src/components/avatar.tsx +55 -0
  241. package/src/components/button.css +194 -0
  242. package/src/components/button.tsx +33 -0
  243. package/src/components/card.css +115 -0
  244. package/src/components/card.tsx +123 -0
  245. package/src/components/checkbox.css +131 -0
  246. package/src/components/checkbox.tsx +43 -0
  247. package/src/components/collapsible.css +148 -0
  248. package/src/components/collapsible.tsx +48 -0
  249. package/src/components/context-menu.css +134 -0
  250. package/src/components/context-menu.tsx +308 -0
  251. package/src/components/dialog.css +181 -0
  252. package/src/components/dialog.tsx +72 -0
  253. package/src/components/diff-changes.css +42 -0
  254. package/src/components/diff-changes.tsx +115 -0
  255. package/src/components/dock-surface.css +23 -0
  256. package/src/components/dock-surface.tsx +54 -0
  257. package/src/components/dropdown-menu.css +135 -0
  258. package/src/components/dropdown-menu.tsx +308 -0
  259. package/src/components/favicon.tsx +13 -0
  260. package/src/components/file-icon.css +26 -0
  261. package/src/components/file-icon.tsx +588 -0
  262. package/src/components/file-icons/sprite.svg +11707 -0
  263. package/src/components/file-icons/types.ts +1095 -0
  264. package/src/components/font.tsx +1 -0
  265. package/src/components/hover-card.css +61 -0
  266. package/src/components/hover-card.tsx +32 -0
  267. package/src/components/icon-button.css +181 -0
  268. package/src/components/icon-button.tsx +29 -0
  269. package/src/components/icon.css +34 -0
  270. package/src/components/icon.tsx +169 -0
  271. package/src/components/image-preview.css +63 -0
  272. package/src/components/image-preview.tsx +32 -0
  273. package/src/components/inline-input.css +17 -0
  274. package/src/components/inline-input.tsx +22 -0
  275. package/src/components/keybind.css +18 -0
  276. package/src/components/keybind.tsx +20 -0
  277. package/src/components/list.css +331 -0
  278. package/src/components/list.tsx +394 -0
  279. package/src/components/logo.css +4 -0
  280. package/src/components/logo.tsx +62 -0
  281. package/src/components/motion-spring.tsx +58 -0
  282. package/src/components/popover.css +98 -0
  283. package/src/components/popover.tsx +153 -0
  284. package/src/components/progress-circle.css +16 -0
  285. package/src/components/progress-circle.tsx +64 -0
  286. package/src/components/progress.css +63 -0
  287. package/src/components/progress.tsx +39 -0
  288. package/src/components/provider-icon.css +5 -0
  289. package/src/components/provider-icon.tsx +25 -0
  290. package/src/components/provider-icons/sprite.svg +1135 -0
  291. package/src/components/provider-icons/types.ts +105 -0
  292. package/src/components/radio-group.css +187 -0
  293. package/src/components/radio-group.tsx +83 -0
  294. package/src/components/resize-handle.css +58 -0
  295. package/src/components/resize-handle.tsx +82 -0
  296. package/src/components/scroll-view.css +66 -0
  297. package/src/components/scroll-view.tsx +250 -0
  298. package/src/components/select.css +199 -0
  299. package/src/components/select.tsx +174 -0
  300. package/src/components/spinner.css +6 -0
  301. package/src/components/spinner.tsx +52 -0
  302. package/src/components/sticky-accordion-header.css +6 -0
  303. package/src/components/sticky-accordion-header.tsx +18 -0
  304. package/src/components/switch.css +132 -0
  305. package/src/components/switch.tsx +29 -0
  306. package/src/components/tabs.css +635 -0
  307. package/src/components/tabs.tsx +125 -0
  308. package/src/components/tag.css +37 -0
  309. package/src/components/tag.tsx +22 -0
  310. package/src/components/text-field.css +134 -0
  311. package/src/components/text-field.tsx +128 -0
  312. package/src/components/text-reveal.css +150 -0
  313. package/src/components/text-reveal.tsx +143 -0
  314. package/src/components/text-shimmer.css +119 -0
  315. package/src/components/text-shimmer.tsx +62 -0
  316. package/src/components/text-strikethrough.css +27 -0
  317. package/src/components/text-strikethrough.tsx +84 -0
  318. package/src/components/toast.css +236 -0
  319. package/src/components/toast.tsx +185 -0
  320. package/src/components/tooltip.css +74 -0
  321. package/src/components/tooltip.tsx +163 -0
  322. package/src/components/typewriter.css +14 -0
  323. package/src/components/typewriter.tsx +55 -0
  324. package/src/context/dialog.tsx +197 -0
  325. package/src/context/file.tsx +10 -0
  326. package/src/context/helper.tsx +38 -0
  327. package/src/context/i18n.tsx +38 -0
  328. package/src/context/index.ts +4 -0
  329. package/src/context/marked.tsx +522 -0
  330. package/src/context/worker-pool.tsx +20 -0
  331. package/src/custom-elements.d.ts +17 -0
  332. package/src/hooks/create-auto-scroll.tsx +237 -0
  333. package/src/hooks/index.ts +2 -0
  334. package/src/hooks/use-filtered-list.tsx +134 -0
  335. package/src/i18n/ar.ts +168 -0
  336. package/src/i18n/br.ts +168 -0
  337. package/src/i18n/bs.ts +172 -0
  338. package/src/i18n/da.ts +167 -0
  339. package/src/i18n/de.ts +173 -0
  340. package/src/i18n/en.ts +176 -0
  341. package/src/i18n/es.ts +168 -0
  342. package/src/i18n/fr.ts +168 -0
  343. package/src/i18n/ja.ts +167 -0
  344. package/src/i18n/ko.ts +168 -0
  345. package/src/i18n/no.ts +171 -0
  346. package/src/i18n/pl.ts +167 -0
  347. package/src/i18n/ru.ts +167 -0
  348. package/src/i18n/th.ts +169 -0
  349. package/src/i18n/tr.ts +174 -0
  350. package/src/i18n/uk.ts +167 -0
  351. package/src/i18n/zh.ts +171 -0
  352. package/src/i18n/zht.ts +171 -0
  353. package/src/storybook/fixtures.ts +51 -0
  354. package/src/storybook/scaffold.tsx +62 -0
  355. package/src/styles/animations.css +141 -0
  356. package/src/styles/base.css +404 -0
  357. package/src/styles/colors.css +772 -0
  358. package/src/styles/index.css +53 -0
  359. package/src/styles/tailwind/colors.css +286 -0
  360. package/src/styles/tailwind/index.css +78 -0
  361. package/src/styles/tailwind/utilities.css +131 -0
  362. package/src/styles/theme.css +609 -0
  363. package/src/styles/utilities.css +118 -0
  364. package/src/theme/color.ts +299 -0
  365. package/src/theme/context.tsx +370 -0
  366. package/src/theme/default-themes.ts +116 -0
  367. package/src/theme/index.ts +78 -0
  368. package/src/theme/loader.ts +112 -0
  369. package/src/theme/resolve.ts +540 -0
  370. package/src/theme/themes/amoled.json +49 -0
  371. package/src/theme/themes/aura.json +51 -0
  372. package/src/theme/themes/ayu.json +51 -0
  373. package/src/theme/themes/carbonfox.json +53 -0
  374. package/src/theme/themes/catppuccin-frappe.json +85 -0
  375. package/src/theme/themes/catppuccin-macchiato.json +85 -0
  376. package/src/theme/themes/catppuccin.json +45 -0
  377. package/src/theme/themes/cobalt2.json +87 -0
  378. package/src/theme/themes/cursor.json +91 -0
  379. package/src/theme/themes/dracula.json +49 -0
  380. package/src/theme/themes/everforest.json +89 -0
  381. package/src/theme/themes/flexoki.json +86 -0
  382. package/src/theme/themes/github.json +85 -0
  383. package/src/theme/themes/gruvbox.json +45 -0
  384. package/src/theme/themes/kanagawa.json +89 -0
  385. package/src/theme/themes/lucent-orng.json +87 -0
  386. package/src/theme/themes/material.json +87 -0
  387. package/src/theme/themes/matrix.json +113 -0
  388. package/src/theme/themes/mercury.json +86 -0
  389. package/src/theme/themes/monokai.json +49 -0
  390. package/src/theme/themes/nightowl.json +46 -0
  391. package/src/theme/themes/nord.json +46 -0
  392. package/src/theme/themes/oc-2.json +474 -0
  393. package/src/theme/themes/one-dark.json +89 -0
  394. package/src/theme/themes/onedarkpro.json +45 -0
  395. package/src/theme/themes/opencode.json +89 -0
  396. package/src/theme/themes/orng.json +87 -0
  397. package/src/theme/themes/osaka-jade.json +88 -0
  398. package/src/theme/themes/palenight.json +85 -0
  399. package/src/theme/themes/rosepine.json +85 -0
  400. package/src/theme/themes/shadesofpurple.json +51 -0
  401. package/src/theme/themes/solarized.json +49 -0
  402. package/src/theme/themes/synthwave84.json +87 -0
  403. package/src/theme/themes/tokyonight.json +47 -0
  404. package/src/theme/themes/vercel.json +90 -0
  405. package/src/theme/themes/vesper.json +51 -0
  406. package/src/theme/themes/zenburn.json +87 -0
  407. package/src/theme/types.ts +75 -0
  408. package/src/theme/v2/avatar.ts +48 -0
  409. package/src/theme/v2/default-primitives.ts +114 -0
  410. package/src/theme/v2/foreground.ts +60 -0
  411. package/src/theme/v2/mapping.ts +140 -0
  412. package/src/theme/v2/resolve.ts +153 -0
  413. package/src/v2/components/accordion-v2.css +139 -0
  414. package/src/v2/components/accordion-v2.tsx +86 -0
  415. package/src/v2/components/avatar-v2.css +70 -0
  416. package/src/v2/components/avatar-v2.tsx +59 -0
  417. package/src/v2/components/badge-v2.css +27 -0
  418. package/src/v2/components/badge-v2.tsx +20 -0
  419. package/src/v2/components/button-v2.css +239 -0
  420. package/src/v2/components/button-v2.tsx +35 -0
  421. package/src/v2/components/checkbox-v2.css +184 -0
  422. package/src/v2/components/checkbox-v2.tsx +65 -0
  423. package/src/v2/components/dialog-v2.css +177 -0
  424. package/src/v2/components/dialog-v2.tsx +114 -0
  425. package/src/v2/components/diff-changes-v2.css +24 -0
  426. package/src/v2/components/diff-changes-v2.tsx +28 -0
  427. package/src/v2/components/divider-v2.css +11 -0
  428. package/src/v2/components/divider-v2.tsx +20 -0
  429. package/src/v2/components/field-v2.css +94 -0
  430. package/src/v2/components/field-v2.tsx +265 -0
  431. package/src/v2/components/icon-button-v2.css +155 -0
  432. package/src/v2/components/icon-button-v2.tsx +37 -0
  433. package/src/v2/components/icon.tsx +173 -0
  434. package/src/v2/components/inline-input-v2.css +218 -0
  435. package/src/v2/components/inline-input-v2.tsx +90 -0
  436. package/src/v2/components/keybind-v2.css +76 -0
  437. package/src/v2/components/keybind-v2.tsx +30 -0
  438. package/src/v2/components/line-comment-v2.css +204 -0
  439. package/src/v2/components/line-comment-v2.tsx +155 -0
  440. package/src/v2/components/loader-v2.css +32 -0
  441. package/src/v2/components/loader-v2.tsx +31 -0
  442. package/src/v2/components/menu-v2.css +190 -0
  443. package/src/v2/components/menu-v2.tsx +225 -0
  444. package/src/v2/components/progress-circle-v2.css +13 -0
  445. package/src/v2/components/progress-circle-v2.tsx +52 -0
  446. package/src/v2/components/project-avatar-v2.css +125 -0
  447. package/src/v2/components/project-avatar-v2.tsx +64 -0
  448. package/src/v2/components/radio-v2.css +202 -0
  449. package/src/v2/components/radio-v2.tsx +72 -0
  450. package/src/v2/components/segmented-control-v2.css +80 -0
  451. package/src/v2/components/segmented-control-v2.tsx +208 -0
  452. package/src/v2/components/select-v2.css +285 -0
  453. package/src/v2/components/select-v2.tsx +208 -0
  454. package/src/v2/components/switch-v2.css +154 -0
  455. package/src/v2/components/switch-v2.tsx +28 -0
  456. package/src/v2/components/tab-state-indicator.tsx +37 -0
  457. package/src/v2/components/tabs-v2.css +225 -0
  458. package/src/v2/components/tabs-v2.tsx +147 -0
  459. package/src/v2/components/text-input-v2.css +145 -0
  460. package/src/v2/components/text-input-v2.tsx +67 -0
  461. package/src/v2/components/text-shimmer-v2.css +125 -0
  462. package/src/v2/components/text-shimmer-v2.tsx +63 -0
  463. package/src/v2/components/textarea-v2.css +78 -0
  464. package/src/v2/components/textarea-v2.tsx +31 -0
  465. package/src/v2/components/toast-v2.css +215 -0
  466. package/src/v2/components/toast-v2.tsx +144 -0
  467. package/src/v2/components/tooltip-v2.css +64 -0
  468. package/src/v2/components/tooltip-v2.tsx +147 -0
  469. package/src/v2/components/wordmark-v2.tsx +92 -0
  470. package/src/v2/styles/colors.css +172 -0
  471. package/src/v2/styles/tailwind.css +2 -0
  472. package/src/v2/styles/theme.css +457 -0
  473. package/README.md +0 -3
@@ -0,0 +1,76 @@
1
+ * {
2
+ -webkit-font-smoothing: antialiased;
3
+ -moz-osx-font-smoothing: grayscale;
4
+ text-rendering: geometricPrecision;
5
+ }
6
+
7
+ [data-component="keybind-v2"] {
8
+ box-sizing: border-box;
9
+ font-variant-numeric: tabular-nums;
10
+ display: inline-flex;
11
+ flex-direction: row;
12
+ align-items: center;
13
+ padding: 0;
14
+ gap: 2px;
15
+ flex-shrink: 0;
16
+ }
17
+
18
+ [data-component="keybind-v2"] *,
19
+ [data-component="keybind-v2"] *::before,
20
+ [data-component="keybind-v2"] *::after {
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ [data-component="keybind-v2"] [data-slot="keybind-v2-key"] {
25
+ display: flex;
26
+ flex-direction: row;
27
+ justify-content: center;
28
+ align-items: center;
29
+ padding: 0;
30
+ gap: 4px;
31
+ min-width: 14px;
32
+ height: 14px;
33
+ border-radius: 2px;
34
+ flex: none;
35
+ flex-grow: 0;
36
+ }
37
+
38
+ [data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-key"] {
39
+ background: var(--v2-background-bg-layer-03);
40
+ }
41
+
42
+ [data-component="keybind-v2"][data-variant="ghost"] [data-slot="keybind-v2-key"] {
43
+ background: transparent;
44
+ }
45
+
46
+ [data-component="keybind-v2"] [data-slot="keybind-v2-label"] {
47
+ display: flex;
48
+ flex-direction: row;
49
+ justify-content: center;
50
+ align-items: center;
51
+ min-width: 14px;
52
+ height: 11px;
53
+ padding: 0;
54
+ flex: none;
55
+ font-style: normal;
56
+ font-weight: 530;
57
+ font-size: 11px;
58
+ line-height: 1;
59
+ text-align: center;
60
+ letter-spacing: 0.05px;
61
+ text-transform: uppercase;
62
+ font-variant-numeric: tabular-nums;
63
+ font-feature-settings:
64
+ "tnum" on,
65
+ "lnum" on;
66
+ font-variation-settings: "slnt" 0;
67
+ user-select: none;
68
+ }
69
+
70
+ [data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-label"] {
71
+ color: var(--v2-text-text-muted);
72
+ }
73
+
74
+ [data-component="keybind-v2"][data-variant="ghost"] [data-slot="keybind-v2-label"] {
75
+ color: var(--v2-text-text-faint);
76
+ }
@@ -0,0 +1,30 @@
1
+ import { type ComponentProps, For, splitProps } from "solid-js"
2
+ import "./keybind-v2.css"
3
+
4
+ export interface KeybindV2Props extends ComponentProps<"div"> {
5
+ keys: string[]
6
+ variant?: "neutral" | "ghost"
7
+ }
8
+
9
+ export function KeybindV2(props: KeybindV2Props) {
10
+ const [local, rest] = splitProps(props, ["keys", "variant", "class", "classList"])
11
+ return (
12
+ <div
13
+ {...rest}
14
+ data-component="keybind-v2"
15
+ data-variant={local.variant || "neutral"}
16
+ classList={{
17
+ ...local.classList,
18
+ [local.class ?? ""]: !!local.class,
19
+ }}
20
+ >
21
+ <For each={local.keys}>
22
+ {(key) => (
23
+ <div data-slot="keybind-v2-key">
24
+ <span data-slot="keybind-v2-label">{key}</span>
25
+ </div>
26
+ )}
27
+ </For>
28
+ </div>
29
+ )
30
+ }
@@ -0,0 +1,204 @@
1
+ * {
2
+ -webkit-font-smoothing: antialiased;
3
+ -moz-osx-font-smoothing: grayscale;
4
+ text-rendering: geometricPrecision;
5
+ }
6
+
7
+ [data-component="line-comment-v2"] {
8
+ box-sizing: border-box;
9
+ font-variant-numeric: tabular-nums;
10
+ min-width: 0;
11
+ width: 100%;
12
+ max-width: 400px;
13
+ }
14
+
15
+ [data-component="line-comment-v2"] *,
16
+ [data-component="line-comment-v2"] *::before,
17
+ [data-component="line-comment-v2"] *::after {
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ [data-component="line-comment-v2"] [data-slot="line-comment-v2-shell"] {
22
+ background: var(--v2-background-bg-layer-01);
23
+ border-radius: 6px;
24
+ box-shadow: var(--v2-elevation-raised);
25
+ }
26
+
27
+ /* --- Display (read) --- */
28
+ [data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-shell"] {
29
+ display: flex;
30
+ flex-direction: row;
31
+ align-items: flex-start;
32
+ padding: 12px;
33
+ gap: 8px;
34
+ }
35
+
36
+ [data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-column"] {
37
+ display: flex;
38
+ flex-direction: column;
39
+ align-items: flex-start;
40
+ gap: 8px;
41
+ flex: 1 1 auto;
42
+ min-width: 0;
43
+ }
44
+
45
+ [data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-text"] {
46
+ margin: 0;
47
+ width: 100%;
48
+ font-size: 13px;
49
+ font-style: normal;
50
+ font-weight: 440;
51
+ line-height: 1;
52
+ letter-spacing: -0.04px;
53
+ color: var(--v2-text-text-base);
54
+ font-variation-settings: "slnt" 0;
55
+ }
56
+
57
+ [data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-meta"] {
58
+ font-size: 11px;
59
+ font-style: normal;
60
+ font-weight: 530;
61
+ line-height: 1;
62
+ letter-spacing: 0.05px;
63
+ color: var(--v2-text-text-faint);
64
+ font-variation-settings: "slnt" 0;
65
+ }
66
+
67
+ [data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-tools"] {
68
+ display: flex;
69
+ flex-direction: row;
70
+ align-items: flex-start;
71
+ flex-shrink: 0;
72
+ }
73
+
74
+ [data-slot="line-comment-v2-overflow"] {
75
+ display: inline-flex;
76
+ flex-direction: row;
77
+ justify-content: center;
78
+ align-items: center;
79
+ width: 20px;
80
+ height: 20px;
81
+ padding: 2px;
82
+ gap: 3px;
83
+ margin: 0;
84
+ border: none;
85
+ border-radius: 4px;
86
+ background: transparent;
87
+ color: var(--v2-icon-icon-muted);
88
+ cursor: pointer;
89
+ outline: none;
90
+ }
91
+
92
+ [data-slot="line-comment-v2-overflow"]:focus {
93
+ outline: none;
94
+ }
95
+
96
+ [data-slot="line-comment-v2-overflow"]:focus-visible {
97
+ outline: 2px solid var(--v2-border-border-focus);
98
+ outline-offset: 2px;
99
+ }
100
+
101
+ [data-slot="line-comment-v2-overflow"]:is(:hover, [data-state="hover"]) {
102
+ background-color: var(--v2-overlay-simple-overlay-hover);
103
+ }
104
+
105
+ [data-slot="line-comment-v2-overflow"]:is(:active, [data-state="pressed"]) {
106
+ background-color: var(--v2-overlay-simple-overlay-pressed);
107
+ }
108
+
109
+ [data-slot="line-comment-v2-overflow"] svg {
110
+ display: block;
111
+ flex-shrink: 0;
112
+ }
113
+
114
+ /* --- Editor --- */
115
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-shell"] {
116
+ display: flex;
117
+ flex-direction: column;
118
+ align-items: flex-start;
119
+ padding: 12px;
120
+ gap: 12px;
121
+ }
122
+
123
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-field"] {
124
+ display: flex;
125
+ flex-direction: column;
126
+ align-items: flex-start;
127
+ gap: 8px;
128
+ width: 100%;
129
+ min-width: 0;
130
+ }
131
+
132
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-label"] {
133
+ display: flex;
134
+ flex-direction: row;
135
+ align-items: center;
136
+ width: 100%;
137
+ font-size: 13px;
138
+ font-style: normal;
139
+ font-weight: 530;
140
+ line-height: 1;
141
+ letter-spacing: -0.04px;
142
+ color: var(--v2-text-text-base);
143
+ user-select: none;
144
+ }
145
+
146
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"] {
147
+ display: block;
148
+ width: 100%;
149
+ min-width: 0;
150
+ min-height: 80px;
151
+ padding: 8px;
152
+ margin: 0;
153
+ resize: vertical;
154
+ border: 1px solid var(--v2-border-border-base);
155
+ border-radius: 6px;
156
+ background:
157
+ linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
158
+ font-size: 13px;
159
+ font-style: normal;
160
+ font-weight: 440;
161
+ line-height: 1.35;
162
+ letter-spacing: -0.04px;
163
+ color: var(--v2-text-text-base);
164
+ font-variation-settings: "slnt" 0;
165
+ outline: none;
166
+ }
167
+
168
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]::placeholder {
169
+ color: var(--v2-text-text-faint);
170
+ user-select: none;
171
+ }
172
+
173
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]:focus {
174
+ border-color: var(--v2-border-border-focus);
175
+ }
176
+
177
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer"] {
178
+ display: flex;
179
+ flex-direction: row;
180
+ align-items: center;
181
+ gap: 4px;
182
+ width: 100%;
183
+ min-width: 0;
184
+ }
185
+
186
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-meta"] {
187
+ flex: 1 1 auto;
188
+ min-width: 0;
189
+ font-size: 11px;
190
+ font-style: normal;
191
+ font-weight: 530;
192
+ line-height: 1;
193
+ letter-spacing: 0.05px;
194
+ color: var(--v2-text-text-faint);
195
+ font-variation-settings: "slnt" 0;
196
+ }
197
+
198
+ [data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-actions"] {
199
+ display: flex;
200
+ flex-direction: row;
201
+ align-items: center;
202
+ gap: 8px;
203
+ flex-shrink: 0;
204
+ }
@@ -0,0 +1,155 @@
1
+ import { type ComponentProps, type JSX, Show, onMount, splitProps } from "solid-js"
2
+ import { ButtonV2 } from "./button-v2"
3
+ import "./line-comment-v2.css"
4
+
5
+ /** Horizontal “more” glyph for the display-card overflow control (Figma outline-dots). */
6
+ export function LineCommentV2OverflowIcon(props: ComponentProps<"svg">) {
7
+ return (
8
+ <svg
9
+ {...props}
10
+ width={props.width ?? 16}
11
+ height={props.height ?? 16}
12
+ viewBox="0 0 16 16"
13
+ fill="none"
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ aria-hidden={props["aria-hidden"] ?? "true"}
16
+ >
17
+ <path d="M2.5 7.5H3.5V8.5H2.5V7.5Z" stroke="currentColor" />
18
+ <path d="M7.5 7.5H8.5V8.5H7.5V7.5Z" stroke="currentColor" />
19
+ <path d="M12.5 7.5H13.5V8.5H12.5V7.5Z" stroke="currentColor" />
20
+ </svg>
21
+ )
22
+ }
23
+
24
+ export interface LineCommentV2Props extends ComponentProps<"div"> {
25
+ /** Main comment body (text or rich content). */
26
+ comment: JSX.Element
27
+ /** Line / selection context (e.g. “Comment on line 40”). */
28
+ selection: JSX.Element
29
+ /** Typically an overflow menu trigger; use `LineCommentV2OverflowIcon` inside `line-comment-v2-overflow`. */
30
+ actions?: JSX.Element
31
+ }
32
+
33
+ export function LineCommentV2(props: LineCommentV2Props) {
34
+ const [local, rest] = splitProps(props, ["comment", "selection", "actions", "class", "classList"])
35
+ return (
36
+ <div
37
+ {...rest}
38
+ data-component="line-comment-v2"
39
+ data-variant="display"
40
+ classList={{
41
+ ...local.classList,
42
+ [local.class ?? ""]: !!local.class,
43
+ }}
44
+ >
45
+ <div data-slot="line-comment-v2-shell">
46
+ <div data-slot="line-comment-v2-column">
47
+ <div data-slot="line-comment-v2-text">{local.comment}</div>
48
+ <div data-slot="line-comment-v2-meta">{local.selection}</div>
49
+ </div>
50
+ <Show when={local.actions}>{(actions) => <div data-slot="line-comment-v2-tools">{actions()}</div>}</Show>
51
+ </div>
52
+ </div>
53
+ )
54
+ }
55
+
56
+ export interface LineCommentEditorV2Props extends Omit<ComponentProps<"div">, "children" | "onInput" | "onSubmit"> {
57
+ /** Visible field label above the textarea (default: “Comment”). */
58
+ heading?: JSX.Element | string
59
+ value: string
60
+ onInput: (value: string) => void
61
+ onCancel: () => void
62
+ onSubmit: (value: string) => void
63
+ selection: JSX.Element
64
+ placeholder?: string
65
+ rows?: number
66
+ cancelLabel?: string
67
+ submitLabel?: string
68
+ autofocus?: boolean
69
+ }
70
+
71
+ export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
72
+ let textareaRef: HTMLTextAreaElement | undefined
73
+
74
+ const [local, rest] = splitProps(props, [
75
+ "heading",
76
+ "value",
77
+ "onInput",
78
+ "onCancel",
79
+ "onSubmit",
80
+ "selection",
81
+ "placeholder",
82
+ "rows",
83
+ "cancelLabel",
84
+ "submitLabel",
85
+ "autofocus",
86
+ "class",
87
+ "classList",
88
+ ])
89
+
90
+ const heading = () => local.heading ?? "Comment"
91
+ const canSubmit = () => local.value.trim().length > 0
92
+
93
+ const submit = () => {
94
+ const v = local.value.trim()
95
+ if (!v) return
96
+ local.onSubmit(v)
97
+ }
98
+
99
+ onMount(() => {
100
+ if (local.autofocus === false) return
101
+ requestAnimationFrame(() => textareaRef?.focus())
102
+ })
103
+
104
+ return (
105
+ <div
106
+ {...rest}
107
+ data-component="line-comment-v2"
108
+ data-variant="editor"
109
+ classList={{
110
+ ...local.classList,
111
+ [local.class ?? ""]: !!local.class,
112
+ }}
113
+ >
114
+ <div data-slot="line-comment-v2-shell">
115
+ <div data-slot="line-comment-v2-field">
116
+ <div data-slot="line-comment-v2-label">{heading()}</div>
117
+ <textarea
118
+ ref={(el) => {
119
+ textareaRef = el
120
+ }}
121
+ data-slot="line-comment-v2-textarea"
122
+ rows={local.rows ?? 3}
123
+ placeholder={local.placeholder ?? "Add context for this change"}
124
+ value={local.value}
125
+ onInput={(e) => local.onInput(e.currentTarget.value)}
126
+ onKeyDown={(e) => {
127
+ e.stopPropagation()
128
+ if (e.key === "Escape") {
129
+ e.preventDefault()
130
+ e.currentTarget.blur()
131
+ local.onCancel()
132
+ return
133
+ }
134
+ if (e.key === "Enter" && !e.shiftKey) {
135
+ e.preventDefault()
136
+ submit()
137
+ }
138
+ }}
139
+ />
140
+ </div>
141
+ <div data-slot="line-comment-v2-footer">
142
+ <div data-slot="line-comment-v2-footer-meta">{local.selection}</div>
143
+ <div data-slot="line-comment-v2-footer-actions">
144
+ <ButtonV2 type="button" size="normal" variant="neutral" onClick={() => local.onCancel()}>
145
+ {local.cancelLabel ?? "Cancel"}
146
+ </ButtonV2>
147
+ <ButtonV2 type="button" size="normal" variant="contrast" disabled={!canSubmit()} onClick={submit}>
148
+ {local.submitLabel ?? "Comment"}
149
+ </ButtonV2>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ )
155
+ }
@@ -0,0 +1,32 @@
1
+ [data-component="loader-v2"] {
2
+ --_duration: 900ms;
3
+ display: block;
4
+ flex-shrink: 0;
5
+ color: var(--v2-icon-icon-muted, #808080);
6
+ animation: loader-v2-spin var(--_duration) linear infinite;
7
+ transform-origin: center;
8
+ }
9
+
10
+ [data-component="loader-v2"] [data-slot="loader-v2-background"] {
11
+ stroke: currentColor;
12
+ opacity: 0.2;
13
+ }
14
+
15
+ [data-component="loader-v2"] [data-slot="loader-v2-progress"] {
16
+ stroke: currentColor;
17
+ stroke-linecap: round;
18
+ transform: rotate(-90deg);
19
+ transform-origin: center;
20
+ }
21
+
22
+ @keyframes loader-v2-spin {
23
+ to {
24
+ transform: rotate(360deg);
25
+ }
26
+ }
27
+
28
+ @media (prefers-reduced-motion: reduce) {
29
+ [data-component="loader-v2"] {
30
+ animation: none;
31
+ }
32
+ }
@@ -0,0 +1,31 @@
1
+ import { splitProps, type ComponentProps } from "solid-js"
2
+ import "./loader-v2.css"
3
+
4
+ export function LoaderV2(props: ComponentProps<"svg">) {
5
+ const [local, rest] = splitProps(props, ["class", "classList", "width", "height"])
6
+ return (
7
+ <svg
8
+ {...rest}
9
+ class={local.class}
10
+ classList={local.classList}
11
+ width={local.width ?? 16}
12
+ height={local.height ?? 16}
13
+ viewBox="0 0 16 16"
14
+ fill="none"
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ data-component="loader-v2"
17
+ aria-hidden={rest["aria-hidden"] ?? "true"}
18
+ >
19
+ <circle cx="8" cy="8" r="6" data-slot="loader-v2-background" stroke-width="2" />
20
+ <circle
21
+ cx="8"
22
+ cy="8"
23
+ r="6"
24
+ data-slot="loader-v2-progress"
25
+ pathLength="100"
26
+ stroke-width="2"
27
+ stroke-dasharray="33 67"
28
+ />
29
+ </svg>
30
+ )
31
+ }