@opencode-ai/ui 0.0.0-dev-19010 → 0.0.0-dev-202609031506

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 (297) hide show
  1. package/dist/{data-display/accordion → components}/accordion.d.ts +6 -6
  2. package/dist/components/avatar.d.ts +9 -0
  3. package/dist/components/button.d.ts +9 -0
  4. package/dist/components/card.d.ts +1 -1
  5. package/dist/{forms/checkbox → components}/checkbox.d.ts +2 -2
  6. package/dist/components/dialog.d.ts +12 -0
  7. package/dist/{data-display/diff-changes → components}/diff-changes.d.ts +1 -2
  8. package/dist/components/dropdown-menu.d.ts +80 -0
  9. package/dist/components/icon-button.d.ts +10 -0
  10. package/dist/{icons/icon/additional-icons.d.ts → components/icon.d.ts} +8 -8
  11. package/dist/components/keybind.d.ts +6 -0
  12. package/dist/components/list.d.ts +1 -1
  13. package/dist/{feedback/progress-circle → components}/progress-circle.d.ts +0 -2
  14. package/dist/components/radio-group.d.ts +16 -0
  15. package/dist/components/scroll-view.d.ts +3 -3
  16. package/dist/components/select.d.ts +21 -0
  17. package/dist/{forms/switch → components}/switch.d.ts +2 -4
  18. package/dist/{navigation/tabs → components}/tabs.d.ts +8 -15
  19. package/dist/components/tag.d.ts +5 -0
  20. package/dist/{typography/text-shimmer → components}/text-shimmer.d.ts +0 -1
  21. package/dist/components/toast.d.ts +56 -0
  22. package/dist/components/tooltip.d.ts +17 -0
  23. package/dist/context/i18n.d.ts +7 -10
  24. package/dist/context/marked-parser.d.ts +2 -1
  25. package/dist/hooks/use-filtered-list.d.ts +0 -9
  26. package/dist/i18n/ar.d.ts +2 -0
  27. package/dist/i18n/bg.d.ts +2 -0
  28. package/dist/i18n/br.d.ts +2 -0
  29. package/dist/i18n/bs.d.ts +2 -0
  30. package/dist/i18n/da.d.ts +2 -0
  31. package/dist/i18n/de.d.ts +2 -0
  32. package/dist/i18n/en.d.ts +1 -238
  33. package/dist/i18n/es.d.ts +2 -0
  34. package/dist/i18n/fr.d.ts +2 -0
  35. package/dist/i18n/ja.d.ts +2 -0
  36. package/dist/i18n/km.d.ts +2 -0
  37. package/dist/i18n/ko.d.ts +2 -0
  38. package/dist/i18n/lo.d.ts +2 -0
  39. package/dist/i18n/mk.d.ts +2 -0
  40. package/dist/i18n/mn.d.ts +2 -0
  41. package/dist/i18n/my.d.ts +2 -0
  42. package/dist/i18n/pl.d.ts +2 -0
  43. package/dist/i18n/ru.d.ts +2 -0
  44. package/dist/i18n/sr.d.ts +2 -0
  45. package/dist/i18n/tg.d.ts +2 -0
  46. package/dist/i18n/th.d.ts +2 -0
  47. package/dist/i18n/tr.d.ts +2 -0
  48. package/dist/i18n/zh.d.ts +2 -0
  49. package/dist/i18n/zht.d.ts +2 -0
  50. package/dist/v2/components/accordion-v2.d.ts +26 -0
  51. package/dist/{data-display/avatar/avatar.d.ts → v2/components/avatar-v2.d.ts} +1 -1
  52. package/dist/v2/components/badge-v2.d.ts +6 -0
  53. package/dist/v2/components/button-v2.d.ts +10 -0
  54. package/dist/v2/components/checkbox-v2.d.ts +10 -0
  55. package/dist/{overlays/dialog/dialog.d.ts → v2/components/dialog-v2.d.ts} +2 -1
  56. package/dist/v2/components/diff-changes-v2.d.ts +11 -0
  57. package/dist/v2/components/divider-v2.d.ts +5 -0
  58. package/dist/{forms/field/field.d.ts → v2/components/field-v2.d.ts} +10 -4
  59. package/dist/v2/components/icon-button-v2.d.ts +11 -0
  60. package/dist/{icons/icon → v2/components}/icon.d.ts +1 -32
  61. package/dist/v2/components/inline-input-v2.d.ts +21 -0
  62. package/dist/v2/components/keybind-v2.d.ts +7 -0
  63. package/dist/{data-display/line-comment/line-comment.d.ts → v2/components/line-comment-v2.d.ts} +9 -9
  64. package/dist/v2/components/loader-v2.d.ts +3 -0
  65. package/dist/v2/components/menu-v2.d.ts +52 -0
  66. package/dist/v2/components/progress-circle-v2.d.ts +8 -0
  67. package/dist/{data-display/project-avatar/project-avatar.d.ts → v2/components/project-avatar-v2.d.ts} +1 -1
  68. package/dist/v2/components/radio-v2.d.ts +16 -0
  69. package/dist/{navigation/segmented-control/segmented-control.d.ts → v2/components/segmented-control-v2.d.ts} +5 -5
  70. package/dist/{forms/select/select.d.ts → v2/components/select-v2.d.ts} +6 -4
  71. package/dist/v2/components/split-button-v2.d.ts +5 -0
  72. package/dist/v2/components/switch-v2.d.ts +7 -0
  73. package/dist/v2/components/tabs-v2.d.ts +34 -0
  74. package/dist/{forms/text-input/text-input.d.ts → v2/components/text-input-v2.d.ts} +3 -3
  75. package/dist/v2/components/text-shimmer-v2.d.ts +9 -0
  76. package/dist/v2/components/textarea-v2.d.ts +7 -0
  77. package/dist/v2/components/toast-v2.d.ts +57 -0
  78. package/dist/v2/components/tooltip-v2.d.ts +13 -0
  79. package/dist/v2/components/wordmark-v2.d.ts +2 -0
  80. package/package.json +34 -140
  81. package/src/{data-display/accordion → components}/accordion.css +31 -5
  82. package/src/{data-display/accordion → components}/accordion.tsx +14 -14
  83. package/src/components/animated-number.css +11 -29
  84. package/src/components/animated-number.tsx +2 -2
  85. package/src/components/avatar.css +49 -0
  86. package/src/components/avatar.tsx +55 -0
  87. package/src/components/button.css +194 -0
  88. package/src/{actions/button → components}/button.tsx +11 -19
  89. package/src/components/card.css +23 -2
  90. package/src/components/card.tsx +4 -4
  91. package/src/{forms/checkbox → components}/checkbox.css +7 -1
  92. package/src/{forms/checkbox → components}/checkbox.tsx +13 -13
  93. package/src/components/collapsible.tsx +2 -2
  94. package/src/components/dialog.css +181 -0
  95. package/src/components/dialog.tsx +72 -0
  96. package/src/{data-display/diff-changes → components}/diff-changes.css +19 -22
  97. package/src/components/diff-changes.tsx +115 -0
  98. package/src/components/dock-surface.css +9 -2
  99. package/src/components/dropdown-menu.css +135 -0
  100. package/src/components/dropdown-menu.tsx +308 -0
  101. package/src/components/icon-button.css +181 -0
  102. package/src/components/icon-button.tsx +29 -0
  103. package/src/components/icon.css +39 -0
  104. package/src/{icons/icon/additional-icons.ts → components/icon.tsx} +74 -8
  105. package/src/components/image-preview.tsx +2 -3
  106. package/src/components/keybind.css +18 -0
  107. package/src/components/keybind.tsx +20 -0
  108. package/src/components/list.css +5 -5
  109. package/src/components/list.tsx +5 -7
  110. package/src/components/popover.tsx +2 -3
  111. package/src/components/progress-circle.css +16 -0
  112. package/src/components/progress-circle.tsx +64 -0
  113. package/src/components/radio-group.css +187 -0
  114. package/src/components/radio-group.tsx +83 -0
  115. package/src/components/scroll-view.tsx +20 -5
  116. package/src/components/select.css +201 -0
  117. package/src/components/select.tsx +174 -0
  118. package/src/components/sticky-accordion-header.tsx +1 -1
  119. package/src/components/switch.css +136 -0
  120. package/src/components/switch.tsx +29 -0
  121. package/src/{navigation/tabs → components}/tabs.css +229 -39
  122. package/src/components/tabs.tsx +126 -0
  123. package/src/components/tag.css +37 -0
  124. package/src/components/tag.tsx +22 -0
  125. package/src/components/text-field.tsx +4 -12
  126. package/src/{typography/text-shimmer → components}/text-shimmer.css +1 -2
  127. package/src/{typography/text-shimmer → components}/text-shimmer.tsx +0 -1
  128. package/src/components/toast.css +236 -0
  129. package/src/components/toast.tsx +185 -0
  130. package/src/components/tooltip.css +74 -0
  131. package/src/components/tooltip.tsx +163 -0
  132. package/src/context/dialog.tsx +0 -1
  133. package/src/context/i18n.tsx +14 -17
  134. package/src/context/marked-parser.tsx +13 -3
  135. package/src/hooks/create-auto-scroll.tsx +0 -20
  136. package/src/i18n/am.ts +9 -7
  137. package/src/i18n/ar.ts +9 -7
  138. package/src/i18n/az.ts +9 -7
  139. package/src/i18n/bg.ts +9 -7
  140. package/src/i18n/bn.ts +9 -7
  141. package/src/i18n/br.ts +9 -7
  142. package/src/i18n/bs.ts +9 -7
  143. package/src/i18n/ca.ts +9 -7
  144. package/src/i18n/cs.ts +9 -7
  145. package/src/i18n/da.ts +9 -7
  146. package/src/i18n/de.ts +3 -1
  147. package/src/i18n/dv.ts +9 -7
  148. package/src/i18n/dz.ts +7 -5
  149. package/src/i18n/el.ts +9 -7
  150. package/src/i18n/en.ts +11 -54
  151. package/src/i18n/es.ts +8 -6
  152. package/src/i18n/et.ts +9 -7
  153. package/src/i18n/fa.ts +9 -7
  154. package/src/i18n/fi.ts +9 -7
  155. package/src/i18n/fo.ts +9 -7
  156. package/src/i18n/fr.ts +8 -6
  157. package/src/i18n/hi.ts +9 -7
  158. package/src/i18n/hr.ts +9 -7
  159. package/src/i18n/hu.ts +9 -7
  160. package/src/i18n/hy.ts +9 -7
  161. package/src/i18n/id.ts +9 -7
  162. package/src/i18n/is.ts +9 -7
  163. package/src/i18n/it.ts +9 -7
  164. package/src/i18n/ja.ts +9 -7
  165. package/src/i18n/ka.ts +9 -7
  166. package/src/i18n/km.ts +9 -7
  167. package/src/i18n/ko.ts +9 -7
  168. package/src/i18n/lo.ts +9 -7
  169. package/src/i18n/lt.ts +9 -7
  170. package/src/i18n/lv.ts +9 -7
  171. package/src/i18n/mk.ts +9 -7
  172. package/src/i18n/mn.ts +9 -7
  173. package/src/i18n/ms.ts +9 -7
  174. package/src/i18n/my.ts +9 -7
  175. package/src/i18n/ne.ts +9 -7
  176. package/src/i18n/nl.ts +9 -7
  177. package/src/i18n/no.ts +9 -7
  178. package/src/i18n/pa.ts +9 -7
  179. package/src/i18n/pl.ts +9 -7
  180. package/src/i18n/ro.ts +9 -7
  181. package/src/i18n/ru.ts +9 -7
  182. package/src/i18n/si.ts +9 -7
  183. package/src/i18n/sk.ts +9 -7
  184. package/src/i18n/sl.ts +9 -7
  185. package/src/i18n/sq.ts +9 -7
  186. package/src/i18n/sr.ts +9 -7
  187. package/src/i18n/sv.ts +9 -7
  188. package/src/i18n/tg.ts +9 -7
  189. package/src/i18n/th.ts +9 -7
  190. package/src/i18n/tk.ts +9 -7
  191. package/src/i18n/tr.ts +9 -7
  192. package/src/i18n/uk.ts +9 -7
  193. package/src/i18n/ur.ts +9 -7
  194. package/src/i18n/uz.ts +9 -7
  195. package/src/i18n/vi.ts +9 -7
  196. package/src/i18n/zh.ts +9 -7
  197. package/src/i18n/zht.ts +9 -7
  198. package/src/styles/base.css +0 -5
  199. package/src/styles/index.css +20 -4
  200. package/src/styles/tailwind/colors.css +0 -1
  201. package/src/styles/tailwind/index.css +1 -18
  202. package/src/styles/theme.css +2 -2
  203. package/src/theme/context.tsx +11 -19
  204. package/src/theme/themes/oc-2.json +19 -48
  205. package/src/theme/v2/default-primitives.ts +8 -8
  206. package/src/theme/v2/foreground.ts +0 -1
  207. package/src/theme/v2/mapping.ts +1 -5
  208. package/src/v2/components/accordion-v2.css +139 -0
  209. package/src/v2/components/accordion-v2.tsx +86 -0
  210. package/src/{data-display/avatar/avatar.tsx → v2/components/avatar-v2.tsx} +1 -1
  211. package/src/{data-display/badge/badge.css → v2/components/badge-v2.css} +0 -19
  212. package/src/{data-display/badge/badge.tsx → v2/components/badge-v2.tsx} +4 -6
  213. package/src/{actions/button/button.css → v2/components/button-v2.css} +0 -29
  214. package/src/v2/components/button-v2.tsx +35 -0
  215. package/src/v2/components/checkbox-v2.css +184 -0
  216. package/src/v2/components/checkbox-v2.tsx +65 -0
  217. package/src/{overlays/dialog/dialog.css → v2/components/dialog-v2.css} +0 -3
  218. package/src/{overlays/dialog/dialog.tsx → v2/components/dialog-v2.tsx} +13 -11
  219. package/src/v2/components/diff-changes-v2.css +26 -0
  220. package/src/{data-display/diff-changes/diff-changes.tsx → v2/components/diff-changes-v2.tsx} +2 -7
  221. package/src/{layout/divider/divider.tsx → v2/components/divider-v2.tsx} +3 -3
  222. package/src/{forms/field/field.css → v2/components/field-v2.css} +1 -1
  223. package/src/{forms/field/field.tsx → v2/components/field-v2.tsx} +11 -9
  224. package/src/v2/components/icon-button-v2.tsx +37 -0
  225. package/src/{icons/icon → v2/components}/icon.tsx +12 -67
  226. package/src/v2/components/inline-input-v2.css +225 -0
  227. package/src/v2/components/inline-input-v2.tsx +107 -0
  228. package/src/{data-display/keybind/keybind.css → v2/components/keybind-v2.css} +1 -1
  229. package/src/{data-display/keybind/keybind.tsx → v2/components/keybind-v2.tsx} +3 -3
  230. package/src/{data-display/line-comment/line-comment.css → v2/components/line-comment-v2.css} +4 -4
  231. package/src/{data-display/line-comment/line-comment.tsx → v2/components/line-comment-v2.tsx} +15 -17
  232. package/src/{feedback/loader/loader.tsx → v2/components/loader-v2.tsx} +2 -2
  233. package/src/{navigation/menu/menu.css → v2/components/menu-v2.css} +2 -123
  234. package/src/{navigation/menu/menu.tsx → v2/components/menu-v2.tsx} +32 -96
  235. package/src/v2/components/progress-circle-v2.css +13 -0
  236. package/src/v2/components/progress-circle-v2.tsx +52 -0
  237. package/src/{data-display/project-avatar/project-avatar.tsx → v2/components/project-avatar-v2.tsx} +1 -1
  238. package/src/{forms/radio/radio.tsx → v2/components/radio-v2.tsx} +20 -30
  239. package/src/{navigation/segmented-control/segmented-control.css → v2/components/segmented-control-v2.css} +1 -1
  240. package/src/{navigation/segmented-control/segmented-control.tsx → v2/components/segmented-control-v2.tsx} +8 -9
  241. package/src/{forms/select/select.css → v2/components/select-v2.css} +8 -2
  242. package/src/{forms/select/select.tsx → v2/components/select-v2.tsx} +32 -40
  243. package/src/{actions/split-button/split-button.css → v2/components/split-button-v2.css} +6 -1
  244. package/src/{actions/split-button/split-button.tsx → v2/components/split-button-v2.tsx} +4 -4
  245. package/src/{forms/switch/switch.css → v2/components/switch-v2.css} +0 -110
  246. package/src/v2/components/switch-v2.tsx +28 -0
  247. package/src/{navigation/tabs/tabs-current.css → v2/components/tabs-v2.css} +10 -25
  248. package/src/v2/components/tabs-v2.tsx +149 -0
  249. package/src/{forms/text-input/text-input.css → v2/components/text-input-v2.css} +3 -3
  250. package/src/{forms/text-input/text-input.tsx → v2/components/text-input-v2.tsx} +4 -4
  251. package/src/v2/components/text-shimmer-v2.css +125 -0
  252. package/src/v2/components/text-shimmer-v2.tsx +63 -0
  253. package/src/{forms/textarea/textarea.tsx → v2/components/textarea-v2.tsx} +3 -3
  254. package/src/{feedback/toast/toast.tsx → v2/components/toast-v2.tsx} +58 -60
  255. package/src/{overlays/tooltip/tooltip.css → v2/components/tooltip-v2.css} +0 -26
  256. package/src/{overlays/tooltip/tooltip.tsx → v2/components/tooltip-v2.tsx} +17 -24
  257. package/src/{typography/wordmark/wordmark.tsx → v2/components/wordmark-v2.tsx} +2 -2
  258. package/src/{styles/tokens → v2/styles}/colors.css +8 -8
  259. package/src/{styles/tokens → v2/styles}/theme.css +16 -20
  260. package/dist/actions/button/button.d.ts +0 -10
  261. package/dist/actions/icon-button/icon-button.d.ts +0 -11
  262. package/dist/actions/split-button/split-button.d.ts +0 -5
  263. package/dist/context/marked-base.d.ts +0 -3
  264. package/dist/data-display/badge/badge.d.ts +0 -7
  265. package/dist/data-display/keybind/keybind.d.ts +0 -7
  266. package/dist/feedback/loader/loader.d.ts +0 -3
  267. package/dist/feedback/toast/toast.d.ts +0 -57
  268. package/dist/forms/radio/radio.d.ts +0 -16
  269. package/dist/forms/textarea/textarea.d.ts +0 -7
  270. package/dist/i18n/he.d.ts +0 -197
  271. package/dist/layout/divider/divider.d.ts +0 -5
  272. package/dist/navigation/menu/menu.d.ts +0 -59
  273. package/dist/overlays/tooltip/tooltip.d.ts +0 -15
  274. package/dist/typography/wordmark/wordmark.d.ts +0 -2
  275. package/src/actions/icon-button/icon-button.tsx +0 -32
  276. package/src/context/marked-base.tsx +0 -27
  277. package/src/feedback/progress-circle/progress-circle.css +0 -28
  278. package/src/feedback/progress-circle/progress-circle.tsx +0 -64
  279. package/src/forms/switch/switch.tsx +0 -34
  280. package/src/i18n/he.ts +0 -199
  281. package/src/icons/icon/icon.css +0 -3
  282. package/src/navigation/tabs/tabs.tsx +0 -194
  283. /package/dist/{forms/inline-input → components}/inline-input.d.ts +0 -0
  284. /package/dist/{navigation → v2/components}/tab-state-indicator.d.ts +0 -0
  285. /package/src/{forms/inline-input → components}/inline-input.css +0 -0
  286. /package/src/{forms/inline-input → components}/inline-input.tsx +0 -0
  287. /package/src/{data-display/avatar/avatar.css → v2/components/avatar-v2.css} +0 -0
  288. /package/src/{layout/divider/divider.css → v2/components/divider-v2.css} +0 -0
  289. /package/src/{styles/file-tree.css → v2/components/file-tree-v2.css} +0 -0
  290. /package/src/{actions/icon-button/icon-button.css → v2/components/icon-button-v2.css} +0 -0
  291. /package/src/{feedback/loader/loader.css → v2/components/loader-v2.css} +0 -0
  292. /package/src/{data-display/project-avatar/project-avatar.css → v2/components/project-avatar-v2.css} +0 -0
  293. /package/src/{forms/radio/radio.css → v2/components/radio-v2.css} +0 -0
  294. /package/src/{navigation → v2/components}/tab-state-indicator.tsx +0 -0
  295. /package/src/{forms/textarea/textarea.css → v2/components/textarea-v2.css} +0 -0
  296. /package/src/{feedback/toast/toast.css → v2/components/toast-v2.css} +0 -0
  297. /package/src/{styles/tokens/index.css → v2/styles/tailwind.css} +0 -0
@@ -6,31 +6,47 @@
6
6
  @import "./base.css" layer(base);
7
7
  @import "katex/dist/katex.min.css" layer(base);
8
8
 
9
- @import "../data-display/accordion/accordion.css" layer(components);
9
+ @import "../components/accordion.css" layer(components);
10
10
  @import "../components/animated-number.css" layer(components);
11
11
  @import "../components/app-icon.css" layer(components);
12
+ @import "../components/avatar.css" layer(components);
13
+ @import "../components/button.css" layer(components);
12
14
  @import "../components/card.css" layer(components);
13
- @import "../forms/checkbox/checkbox.css" layer(components);
15
+ @import "../components/checkbox.css" layer(components);
14
16
  @import "../components/collapsible.css" layer(components);
17
+ @import "../components/diff-changes.css" layer(components);
15
18
  @import "../components/context-menu.css" layer(components);
19
+ @import "../components/dropdown-menu.css" layer(components);
20
+ @import "../components/dialog.css" layer(components);
16
21
  @import "../components/file-icon.css" layer(components);
17
22
  @import "../components/hover-card.css" layer(components);
18
23
  @import "../components/provider-icon.css" layer(components);
19
24
  @import "../components/dock-surface.css" layer(components);
25
+ @import "../components/icon.css" layer(components);
26
+ @import "../components/icon-button.css" layer(components);
20
27
  @import "../components/image-preview.css" layer(components);
21
- @import "../forms/inline-input/inline-input.css" layer(components);
28
+ @import "../components/keybind.css" layer(components);
22
29
  @import "../components/text-field.css" layer(components);
30
+ @import "../components/inline-input.css" layer(components);
23
31
  @import "../components/list.css" layer(components);
24
32
  @import "../components/logo.css" layer(components);
25
33
  @import "../components/popover.css" layer(components);
26
34
  @import "../components/progress.css" layer(components);
35
+ @import "../components/progress-circle.css" layer(components);
36
+ @import "../components/radio-group.css" layer(components);
27
37
  @import "../components/resize-handle.css" layer(components);
38
+ @import "../components/select.css" layer(components);
28
39
  @import "../components/spinner.css" layer(components);
40
+ @import "../components/switch.css" layer(components);
29
41
  @import "../components/scroll-view.css" layer(components);
30
42
  @import "../components/sticky-accordion-header.css" layer(components);
31
- @import "../navigation/tabs/tabs.css" layer(components);
43
+ @import "../components/tabs.css" layer(components);
44
+ @import "../components/tag.css" layer(components);
32
45
  @import "../components/text-reveal.css" layer(components);
33
46
  @import "../components/text-strikethrough.css" layer(components);
47
+ @import "../components/text-shimmer.css" layer(components);
48
+ @import "../components/toast.css" layer(components);
49
+ @import "../components/tooltip.css" layer(components);
34
50
  @import "../components/typewriter.css" layer(components);
35
51
 
36
52
  @import "./utilities.css" layer(utilities);
@@ -252,7 +252,6 @@
252
252
  --color-v2-text-text-code-accent: var(--v2-text-text-code-accent);
253
253
  --color-v2-icon-icon-base: var(--v2-icon-icon-base);
254
254
  --color-v2-icon-icon-muted: var(--v2-icon-icon-muted);
255
- --color-v2-icon-icon-faint: var(--v2-icon-icon-faint);
256
255
  --color-v2-icon-icon-inverse: var(--v2-icon-icon-inverse);
257
256
  --color-v2-icon-icon-contrast: var(--v2-icon-icon-contrast);
258
257
  --color-v2-icon-icon-accent: var(--v2-icon-icon-accent);
@@ -1,21 +1,7 @@
1
1
  @layer theme, base, components, utilities;
2
2
 
3
3
  @import "tailwindcss/theme.css" layer(theme);
4
- @import "tailwindcss/utilities.css" layer(utilities) source(none);
5
- @source "../../../../app/src";
6
- @source "../../../../app/index.html";
7
- @source not "../../../../app/src/i18n";
8
- @source not "../../../../app/src/**/*.test.{ts,tsx}";
9
- @source "../../../../desktop/src/renderer";
10
- @source not "../../../../desktop/src/renderer/**/*.test.{ts,tsx}";
11
- @source "../../../../enterprise/src";
12
- @source "../../../../session-ui/src";
13
- @source not "../../../../session-ui/src/**/*.test.{ts,tsx}";
14
- @source "../../../../storybook";
15
- @source "../../../src";
16
- @source not "../../../src/assets";
17
- @source not "../../../src/i18n";
18
- @source not "../../../src/**/*.test.{ts,tsx}";
4
+ @import "tailwindcss/utilities.css" layer(utilities) source("../../../../");
19
5
  @import "./utilities.css";
20
6
 
21
7
  @import "../index.css";
@@ -65,9 +51,6 @@
65
51
  --leading-lg: var(--line-height-large);
66
52
  --leading-xl: var(--line-height-x-large);
67
53
  --leading-2xl: var(--line-height-2x-large);
68
- --leading-text-tight: var(--line-height-tight);
69
- --leading-text-compact: var(--line-height-compact);
70
- --leading-text-base: var(--line-height-base);
71
54
 
72
55
  --tracking-normal: var(--letter-spacing-normal);
73
56
  --tracking-tight: var(--letter-spacing-tight);
@@ -1,8 +1,8 @@
1
1
  :root {
2
- --font-family-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
2
+ --font-family-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
3
3
  --font-family-sans--font-feature-settings: normal;
4
4
  --font-family-mono:
5
- "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
5
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
6
6
  --font-family-mono--font-feature-settings: normal;
7
7
 
8
8
  --font-size-small: 13px;
@@ -84,9 +84,8 @@ const names: Record<string, string> = {
84
84
  }
85
85
  const oc2Theme = oc2ThemeJson as DesktopTheme
86
86
 
87
- function resolveStoredTheme(id: string | null | undefined, registered?: Record<string, DesktopTheme>) {
88
- if (id === "oc-2" || (id && (knownThemes().has(id) || registered?.[id]))) return id
89
- return "oc-2"
87
+ function normalize(id: string | null | undefined) {
88
+ return id === "oc-1" ? "oc-2" : id
90
89
  }
91
90
 
92
91
  function read(key: string) {
@@ -178,12 +177,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
178
177
  defaultTheme?: string
179
178
  onThemeApplied?: (theme: DesktopTheme, mode: "light" | "dark", scheme: ColorScheme) => void
180
179
  }) => {
181
- const rawTheme = read(STORAGE_KEYS.THEME_ID) ?? props.defaultTheme
182
- const themeId = resolveStoredTheme(rawTheme)
183
- if (rawTheme && rawTheme !== themeId) {
184
- write(STORAGE_KEYS.THEME_ID, themeId)
185
- clear()
186
- }
180
+ const themeId = normalize(read(STORAGE_KEYS.THEME_ID) ?? props.defaultTheme) ?? "oc-2"
187
181
  const colorScheme = (read(STORAGE_KEYS.COLOR_SCHEME) as ColorScheme | null) ?? "system"
188
182
  const mode = colorScheme === "system" ? getSystemMode() : colorScheme
189
183
  const [store, setStore] = createStore({
@@ -200,7 +194,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
200
194
  const loads = new Map<string, Promise<DesktopTheme | undefined>>()
201
195
 
202
196
  const load = (id: string) => {
203
- const next = id
197
+ const next = normalize(id)
204
198
  if (!next) return Promise.resolve(undefined)
205
199
  const hit = store.themes[next]
206
200
  if (hit) return Promise.resolve(hit)
@@ -239,11 +233,9 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
239
233
 
240
234
  const onStorage = (e: StorageEvent) => {
241
235
  if (e.key === STORAGE_KEYS.THEME_ID && e.newValue) {
242
- const next = resolveStoredTheme(e.newValue, store.themes)
243
- if (next !== e.newValue) {
244
- write(STORAGE_KEYS.THEME_ID, next)
245
- clear()
246
- }
236
+ const next = normalize(e.newValue)
237
+ if (!next) return
238
+ if (next !== "oc-2" && !knownThemes().has(next) && !store.themes[next]) return
247
239
  setStore("themeId", next)
248
240
  if (next === "oc-2") {
249
241
  clear()
@@ -270,8 +262,8 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
270
262
  }
271
263
  makeEventListener(mediaQuery, "change", onMedia)
272
264
 
273
- const rawTheme = read(STORAGE_KEYS.THEME_ID) ?? props.defaultTheme
274
- const savedTheme = resolveStoredTheme(rawTheme, store.themes)
265
+ const rawTheme = read(STORAGE_KEYS.THEME_ID)
266
+ const savedTheme = normalize(rawTheme ?? props.defaultTheme) ?? "oc-2"
275
267
  const savedScheme = (read(STORAGE_KEYS.COLOR_SCHEME) as ColorScheme | null) ?? "system"
276
268
  if (rawTheme && rawTheme !== savedTheme) {
277
269
  write(STORAGE_KEYS.THEME_ID, savedTheme)
@@ -293,7 +285,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
293
285
  })
294
286
 
295
287
  const setTheme = (id: string) => {
296
- const next = id
288
+ const next = normalize(id)
297
289
  if (!next) {
298
290
  console.warn(`Theme "${id}" not found`)
299
291
  return
@@ -333,7 +325,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
333
325
  setColorScheme,
334
326
  registerTheme: (theme: DesktopTheme) => setStore("themes", theme.id, theme),
335
327
  previewTheme: (id: string) => {
336
- const next = id
328
+ const next = normalize(id)
337
329
  if (!next) return
338
330
  if (next !== "oc-2" && !knownThemes().has(next) && !store.themes[next]) return
339
331
  setStore("previewThemeId", next)
@@ -25,7 +25,7 @@
25
25
  "border-weak-base": "#DBDBDB",
26
26
  "border-weaker-base": "#E8E8E8",
27
27
  "icon-base": "#8F8F8F",
28
- "icon-weak-base": "C7C7C7",
28
+ "icon-weak-base": "#C7C7C7",
29
29
  "surface-raised-base": "#F3F3F3",
30
30
  "surface-raised-base-hover": "#EDEDED",
31
31
  "surface-base": "#F8F8F8",
@@ -120,18 +120,18 @@
120
120
  "v2-cyan-1000": "#005a6eff",
121
121
  "v2-cyan-1100": "#004756ff",
122
122
  "v2-cyan-1200": "#00353fff",
123
- "v2-blue-100": "#f5f8ffff",
124
- "v2-blue-200": "#ecf1feff",
123
+ "v2-blue-100": "#ecf1feff",
124
+ "v2-blue-200": "#d7e2fcff",
125
125
  "v2-blue-300": "#c3d4fdff",
126
126
  "v2-blue-400": "#a2bcffff",
127
127
  "v2-blue-500": "#7698fdff",
128
128
  "v2-blue-600": "#3b5cf6ff",
129
- "v2-blue-700": "#0b34f4ff",
130
- "v2-blue-800": "#3250dfff",
131
- "v2-blue-900": "#2c47c8ff",
132
- "v2-blue-1000": "#263fa9ff",
133
- "v2-blue-1100": "#22388fff",
134
- "v2-blue-1200": "#021945ff",
129
+ "v2-blue-700": "#3250dfff",
130
+ "v2-blue-800": "#2c47c8ff",
131
+ "v2-blue-900": "#263fa9ff",
132
+ "v2-blue-1000": "#22388fff",
133
+ "v2-blue-1100": "#1c2e70ff",
134
+ "v2-blue-1200": "#1b2852ff",
135
135
  "v2-purple-100": "#ebecfeff",
136
136
  "v2-purple-200": "#d5d5fcff",
137
137
  "v2-purple-300": "#b9b8f5ff",
@@ -166,7 +166,6 @@
166
166
  "v2-background-bg-contrast": "var(--v2-grey-1000)",
167
167
  "v2-background-bg-button-neutral": "var(--v2-grey-50)",
168
168
  "v2-background-bg-accent": "var(--v2-blue-600)",
169
- "v2-background-bg-code-path": "var(--v2-cyan-100)",
170
169
  "v2-text-text-base": "var(--v2-grey-1100)",
171
170
  "v2-text-text-muted": "var(--v2-grey-700)",
172
171
  "v2-text-text-faint": "var(--v2-grey-600)",
@@ -175,10 +174,8 @@
175
174
  "v2-text-text-accent": "var(--v2-blue-600)",
176
175
  "v2-text-text-accent-hover": "var(--v2-blue-700)",
177
176
  "v2-text-text-code-accent": "var(--v2-blue-900)",
178
- "v2-text-text-code-path": "var(--v2-blue-900)",
179
177
  "v2-icon-icon-base": "var(--v2-grey-800)",
180
178
  "v2-icon-icon-muted": "var(--v2-grey-600)",
181
- "v2-icon-icon-faint": "var(--v2-grey-500)",
182
179
  "v2-icon-icon-inverse": "var(--v2-grey-50)",
183
180
  "v2-icon-icon-contrast": "var(--v2-grey-100)",
184
181
  "v2-icon-icon-accent": "var(--v2-blue-600)",
@@ -207,20 +204,9 @@
207
204
  "v2-state-bg-danger": "var(--v2-red-100)",
208
205
  "v2-state-fg-danger": "var(--v2-red-800)",
209
206
  "v2-state-border-danger": "var(--v2-red-300)",
210
- "v2-state-bg-info": "var(--v2-blue-200)",
207
+ "v2-state-bg-info": "var(--v2-blue-100)",
211
208
  "v2-state-fg-info": "var(--v2-blue-800)",
212
209
  "v2-state-border-info": "var(--v2-blue-300)",
213
- "v2-agent-plan-solid": "var(--v2-pink-800)",
214
- "v2-agent-plan-border": "rgba(200, 61, 139, 0.2)",
215
- "v2-agent-plan-background": "rgba(253, 236, 243, 0.1)",
216
- "v2-agent-build-solid": "var(--v2-blue-800)",
217
- "v2-agent-build-border": "rgba(44, 71, 200, 0.1)",
218
- "v2-agent-build-background": "rgba(236, 241, 254, 0.1)",
219
- "v2-agent-explore-solid": "var(--v2-yellow-900)",
220
- "v2-agent-explore-border": "rgba(203, 159, 52, 0.2)",
221
- "v2-agent-explore-background": "rgba(254, 250, 236, 0.1)",
222
- "v2-agent-review-solid": "var(--v2-green-800)",
223
- "v2-agent-writer-solid": "var(--v2-purple-700)",
224
210
  "v2-avatar-bg-orange": "#ee7330ff",
225
211
  "v2-avatar-border-orange": "#d16427ff",
226
212
  "v2-avatar-bg-yellow": "#e7af36ff",
@@ -249,8 +235,7 @@
249
235
  "v2-elevation-switch-on": "inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)",
250
236
  "v2-illustration-illustration-layer-01": "var(--v2-grey-300)",
251
237
  "v2-illustration-illustration-layer-02": "var(--v2-grey-400)",
252
- "v2-illustration-illustration-layer-03": "var(--v2-grey-500)",
253
- "v2-font-family-code": "var(--font-family-mono)"
238
+ "v2-illustration-illustration-layer-03": "var(--v2-grey-500)"
254
239
  }
255
240
  },
256
241
  "dark": {
@@ -370,18 +355,18 @@
370
355
  "v2-cyan-1000": "#005a6eff",
371
356
  "v2-cyan-1100": "#004756ff",
372
357
  "v2-cyan-1200": "#00353fff",
373
- "v2-blue-100": "#f5f8ffff",
374
- "v2-blue-200": "#ecf1feff",
358
+ "v2-blue-100": "#ecf1feff",
359
+ "v2-blue-200": "#d7e2fcff",
375
360
  "v2-blue-300": "#c3d4fdff",
376
361
  "v2-blue-400": "#a2bcffff",
377
362
  "v2-blue-500": "#7698fdff",
378
363
  "v2-blue-600": "#3b5cf6ff",
379
- "v2-blue-700": "#0b34f4ff",
380
- "v2-blue-800": "#3250dfff",
381
- "v2-blue-900": "#2c47c8ff",
382
- "v2-blue-1000": "#263fa9ff",
383
- "v2-blue-1100": "#22388fff",
384
- "v2-blue-1200": "#021945ff",
364
+ "v2-blue-700": "#3250dfff",
365
+ "v2-blue-800": "#2c47c8ff",
366
+ "v2-blue-900": "#263fa9ff",
367
+ "v2-blue-1000": "#22388fff",
368
+ "v2-blue-1100": "#1c2e70ff",
369
+ "v2-blue-1200": "#1b2852ff",
385
370
  "v2-purple-100": "#ebecfeff",
386
371
  "v2-purple-200": "#d5d5fcff",
387
372
  "v2-purple-300": "#b9b8f5ff",
@@ -416,7 +401,6 @@
416
401
  "v2-background-bg-contrast": "var(--v2-grey-700)",
417
402
  "v2-background-bg-button-neutral": "var(--v2-alpha-light-6)",
418
403
  "v2-background-bg-accent": "var(--v2-blue-600)",
419
- "v2-background-bg-code-path": "var(--v2-cyan-1200)",
420
404
  "v2-text-text-base": "var(--v2-grey-100)",
421
405
  "v2-text-text-muted": "var(--v2-grey-500)",
422
406
  "v2-text-text-faint": "var(--v2-grey-600)",
@@ -425,10 +409,8 @@
425
409
  "v2-text-text-accent": "var(--v2-blue-400)",
426
410
  "v2-text-text-accent-hover": "var(--v2-blue-300)",
427
411
  "v2-text-text-code-accent": "var(--v2-blue-400)",
428
- "v2-text-text-code-path": "var(--v2-blue-300)",
429
412
  "v2-icon-icon-base": "var(--v2-grey-400)",
430
413
  "v2-icon-icon-muted": "var(--v2-grey-600)",
431
- "v2-icon-icon-faint": "var(--v2-grey-500)",
432
414
  "v2-icon-icon-inverse": "var(--v2-grey-1100)",
433
415
  "v2-icon-icon-contrast": "var(--v2-grey-100)",
434
416
  "v2-icon-icon-accent": "var(--v2-blue-400)",
@@ -460,17 +442,6 @@
460
442
  "v2-state-bg-info": "var(--v2-blue-1200)",
461
443
  "v2-state-fg-info": "var(--v2-blue-500)",
462
444
  "v2-state-border-info": "var(--v2-blue-900)",
463
- "v2-agent-plan-solid": "var(--v2-pink-400)",
464
- "v2-agent-plan-border": "rgba(247, 153, 198, 0.2)",
465
- "v2-agent-plan-background": "rgba(170, 53, 118, 0.05)",
466
- "v2-agent-build-solid": "var(--v2-blue-300)",
467
- "v2-agent-build-border": "rgba(162, 188, 255, 0.2)",
468
- "v2-agent-build-background": "rgba(38, 63, 169, 0.05)",
469
- "v2-agent-explore-solid": "var(--v2-yellow-300)",
470
- "v2-agent-explore-border": "rgba(243, 218, 155, 0.2)",
471
- "v2-agent-explore-background": "rgba(172, 136, 51, 0.05)",
472
- "v2-agent-review-solid": "var(--v2-green-300)",
473
- "v2-agent-writer-solid": "var(--v2-purple-400)",
474
445
  "v2-avatar-bg-orange": "#723d22ff",
475
446
  "v2-avatar-border-orange": "#ff8648ff",
476
447
  "v2-avatar-bg-yellow": "#68552bff",
@@ -75,18 +75,18 @@ export const V2_PRIMITIVES_DEFAULT: Record<string, V2ColorValue> = {
75
75
  "v2-cyan-1000": "#005a6eff",
76
76
  "v2-cyan-1100": "#004756ff",
77
77
  "v2-cyan-1200": "#00353fff",
78
- "v2-blue-100": "#f5f8ffff",
79
- "v2-blue-200": "#ecf1feff",
78
+ "v2-blue-100": "#ecf1feff",
79
+ "v2-blue-200": "#d7e2fcff",
80
80
  "v2-blue-300": "#c3d4fdff",
81
81
  "v2-blue-400": "#a2bcffff",
82
82
  "v2-blue-500": "#7698fdff",
83
83
  "v2-blue-600": "#3b5cf6ff",
84
- "v2-blue-700": "#0b34f4ff",
85
- "v2-blue-800": "#3250dfff",
86
- "v2-blue-900": "#2c47c8ff",
87
- "v2-blue-1000": "#263fa9ff",
88
- "v2-blue-1100": "#22388fff",
89
- "v2-blue-1200": "#021945ff",
84
+ "v2-blue-700": "#3250dfff",
85
+ "v2-blue-800": "#2c47c8ff",
86
+ "v2-blue-900": "#263fa9ff",
87
+ "v2-blue-1000": "#22388fff",
88
+ "v2-blue-1100": "#1c2e70ff",
89
+ "v2-blue-1200": "#1b2852ff",
90
90
  "v2-purple-100": "#ebecfeff",
91
91
  "v2-purple-200": "#d5d5fcff",
92
92
  "v2-purple-300": "#b9b8f5ff",
@@ -52,7 +52,6 @@ export function mapV2Foreground(
52
52
  "v2-text-text-faint": shift(body, { l: isDark ? -0.2 : 0.21, c: isDark ? 0.78 : 0.72 }),
53
53
  "v2-icon-icon-base": greyRef(pickGrey(primitives, bgBase, 7, isDark ? 400 : 800)),
54
54
  "v2-icon-icon-muted": greyRef(pickGrey(primitives, bgBase, 3, 600)),
55
- "v2-icon-icon-faint": greyRef(pickGrey(primitives, bgBase, 1.5, 500)),
56
55
  "v2-icon-icon-inverse": greyRef(pickGrey(primitives, bgInverse, 7, inverseTarget)),
57
56
  "v2-icon-icon-contrast": greyRef(pickGrey(primitives, bgContrast, 7, 100)),
58
57
  "v2-icon-icon-accent": isDark ? "var(--v2-blue-400)" : "var(--v2-blue-600)",
@@ -42,13 +42,11 @@ const light: Record<string, V2ColorValue> = {
42
42
  "v2-background-bg-contrast": ref("v2-grey-900"),
43
43
  "v2-background-bg-button-neutral": ref("v2-grey-100"),
44
44
  "v2-background-bg-accent": ref("v2-blue-600"),
45
- "v2-background-bg-code-path": ref("v2-cyan-100"),
46
45
  "v2-text-text-inverse": ref("v2-grey-100"),
47
46
  "v2-text-text-contrast": ref("v2-grey-100"),
48
47
  "v2-text-text-accent": ref("v2-blue-600"),
49
48
  "v2-text-text-accent-hover": ref("v2-blue-700"),
50
49
  "v2-text-text-code-accent": ref("v2-blue-900"),
51
- "v2-text-text-code-path": ref("v2-blue-900"),
52
50
  "v2-border-border-muted": ref("v2-alpha-dark-8"),
53
51
  "v2-border-border-base": ref("v2-alpha-dark-10"),
54
52
  "v2-border-border-strong": ref("v2-alpha-dark-20"),
@@ -73,7 +71,7 @@ const light: Record<string, V2ColorValue> = {
73
71
  "v2-state-bg-danger": ref("v2-red-100"),
74
72
  "v2-state-fg-danger": ref("v2-red-800"),
75
73
  "v2-state-border-danger": ref("v2-red-300"),
76
- "v2-state-bg-info": ref("v2-blue-200"),
74
+ "v2-state-bg-info": ref("v2-blue-100"),
77
75
  "v2-state-fg-info": ref("v2-blue-800"),
78
76
  "v2-state-border-info": ref("v2-blue-300"),
79
77
  ...lightAgentTokens,
@@ -109,13 +107,11 @@ const dark: Record<string, V2ColorValue> = {
109
107
  "v2-background-bg-contrast": ref("v2-grey-700"),
110
108
  "v2-background-bg-button-neutral": ref("v2-alpha-light-6"),
111
109
  "v2-background-bg-accent": ref("v2-blue-600"),
112
- "v2-background-bg-code-path": ref("v2-cyan-1200"),
113
110
  "v2-text-text-inverse": ref("v2-grey-1000"),
114
111
  "v2-text-text-contrast": ref("v2-grey-100"),
115
112
  "v2-text-text-accent": ref("v2-blue-400"),
116
113
  "v2-text-text-accent-hover": ref("v2-blue-300"),
117
114
  "v2-text-text-code-accent": ref("v2-blue-400"),
118
- "v2-text-text-code-path": ref("v2-blue-300"),
119
115
  "v2-border-border-muted": ref("v2-alpha-light-8"),
120
116
  "v2-border-border-base": ref("v2-alpha-light-10"),
121
117
  "v2-border-border-strong": ref("v2-alpha-light-20"),
@@ -0,0 +1,139 @@
1
+ [data-component="accordion-v2"] {
2
+ --accordion-v2-fg: var(--v2-text-text-base);
3
+ --accordion-v2-icon: var(--v2-icon-icon-base);
4
+ --accordion-v2-border: var(--v2-border-border-strong);
5
+ --accordion-v2-bg: var(--v2-background-bg-base);
6
+
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: stretch;
11
+
12
+ width: 100%;
13
+ background: var(--accordion-v2-bg);
14
+ border-radius: 6px;
15
+ box-shadow: 0 0 0 0.5px var(--accordion-v2-border);
16
+ overflow: hidden;
17
+
18
+ color: var(--accordion-v2-fg);
19
+
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ text-rendering: geometricPrecision;
23
+ }
24
+
25
+ [data-component="accordion-v2-item"] {
26
+ box-sizing: border-box;
27
+ display: flex;
28
+ flex-direction: column;
29
+ align-items: stretch;
30
+ width: 100%;
31
+ background: var(--accordion-v2-bg);
32
+ box-shadow: inset 0 -0.5px 0 var(--accordion-v2-border);
33
+ }
34
+
35
+ [data-component="accordion-v2-item"]:last-child {
36
+ box-shadow: none;
37
+ }
38
+
39
+ [data-slot="accordion-v2-header"] {
40
+ display: flex;
41
+ margin: 0;
42
+ }
43
+
44
+ [data-component="accordion-v2-trigger"] {
45
+ box-sizing: border-box;
46
+ display: flex;
47
+ flex-direction: row;
48
+ align-items: center;
49
+ gap: 4px;
50
+
51
+ width: 100%;
52
+ min-height: 30px;
53
+ padding: 0 12px;
54
+
55
+ background: transparent;
56
+ border: 0;
57
+ outline: none;
58
+ cursor: default;
59
+ user-select: none;
60
+
61
+ font-size: 13px;
62
+ font-weight: 440;
63
+ line-height: 100%;
64
+ letter-spacing: -0.04px;
65
+ color: var(--accordion-v2-fg);
66
+ text-align: left;
67
+ }
68
+
69
+ [data-component="accordion-v2-trigger"] [data-slot="accordion-v2-trigger-content"] {
70
+ display: flex;
71
+ flex: 1 1 auto;
72
+ flex-direction: row;
73
+ align-items: center;
74
+ gap: 8px;
75
+ min-width: 0;
76
+ height: 30px;
77
+ }
78
+
79
+ [data-component="accordion-v2-trigger"] [data-slot="accordion-v2-chevron"] {
80
+ flex: none;
81
+ width: 14px;
82
+ height: 14px;
83
+ color: var(--accordion-v2-icon);
84
+ transition: transform 150ms ease;
85
+ }
86
+
87
+ [data-component="accordion-v2-trigger"][data-expanded] [data-slot="accordion-v2-chevron"] {
88
+ transform: rotate(180deg);
89
+ }
90
+
91
+ [data-component="accordion-v2-item"][data-expanded] [data-component="accordion-v2-trigger"] {
92
+ box-shadow: inset 0 -0.5px 0 var(--accordion-v2-border);
93
+ }
94
+
95
+ [data-component="accordion-v2-trigger"][data-disabled] {
96
+ pointer-events: none;
97
+ opacity: 0.5;
98
+ }
99
+
100
+ [data-component="accordion-v2-content"] {
101
+ overflow: hidden;
102
+ font-size: 13px;
103
+ line-height: 140%;
104
+ color: var(--accordion-v2-fg);
105
+ }
106
+
107
+ [data-component="accordion-v2-content"][data-expanded] {
108
+ animation: accordion-v2-down 180ms ease-out;
109
+ }
110
+
111
+ [data-component="accordion-v2-content"][data-closed] {
112
+ animation: accordion-v2-up 180ms ease-out;
113
+ }
114
+
115
+ [data-component="accordion-v2-content"] [data-slot="accordion-v2-content-inner"] {
116
+ display: flex;
117
+ flex-direction: row;
118
+ align-items: flex-start;
119
+ width: 100%;
120
+ padding: 12px;
121
+ }
122
+
123
+ @keyframes accordion-v2-down {
124
+ from {
125
+ height: 0;
126
+ }
127
+ to {
128
+ height: var(--kb-collapsible-content-height);
129
+ }
130
+ }
131
+
132
+ @keyframes accordion-v2-up {
133
+ from {
134
+ height: var(--kb-collapsible-content-height);
135
+ }
136
+ to {
137
+ height: 0;
138
+ }
139
+ }
@@ -0,0 +1,86 @@
1
+ import { Accordion as Kobalte } from "@kobalte/core/accordion"
2
+ import { Show, splitProps, type Component, type ComponentProps, type ParentProps } from "solid-js"
3
+ import "./accordion-v2.css"
4
+
5
+ const ChevronDown: Component = () => (
6
+ <svg
7
+ data-slot="accordion-v2-chevron"
8
+ width="14"
9
+ height="14"
10
+ viewBox="0 0 14 14"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ aria-hidden="true"
14
+ >
15
+ <path d="M4 5.5L7 8.5L10 5.5" stroke="currentColor" />
16
+ </svg>
17
+ )
18
+
19
+ export interface AccordionV2Props extends ComponentProps<typeof Kobalte> {}
20
+ export interface AccordionV2ItemProps extends ComponentProps<typeof Kobalte.Item> {}
21
+ export interface AccordionV2HeaderProps extends ComponentProps<typeof Kobalte.Header> {}
22
+ export interface AccordionV2TriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
23
+ hideChevron?: boolean
24
+ }
25
+ export interface AccordionV2ContentProps extends ComponentProps<typeof Kobalte.Content> {}
26
+
27
+ function AccordionV2Root(props: ParentProps<AccordionV2Props>) {
28
+ const [s, r] = splitProps(props, ["class", "classList"])
29
+ return <Kobalte {...r} data-component="accordion-v2" classList={{ ...s.classList, [s.class ?? ""]: !!s.class }} />
30
+ }
31
+
32
+ function AccordionV2Item(props: ParentProps<AccordionV2ItemProps>) {
33
+ const [s, r] = splitProps(props, ["class", "classList"])
34
+ return (
35
+ <Kobalte.Item
36
+ {...r}
37
+ data-component="accordion-v2-item"
38
+ classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
39
+ />
40
+ )
41
+ }
42
+
43
+ function AccordionV2Header(props: ParentProps<AccordionV2HeaderProps>) {
44
+ const [s, r] = splitProps(props, ["class", "classList", "children"])
45
+ return (
46
+ <Kobalte.Header {...r} data-slot="accordion-v2-header" classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}>
47
+ {s.children}
48
+ </Kobalte.Header>
49
+ )
50
+ }
51
+
52
+ function AccordionV2Trigger(props: ParentProps<AccordionV2TriggerProps>) {
53
+ const [s, r] = splitProps(props, ["class", "classList", "children", "hideChevron"])
54
+ return (
55
+ <Kobalte.Trigger
56
+ {...r}
57
+ data-component="accordion-v2-trigger"
58
+ classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
59
+ >
60
+ <span data-slot="accordion-v2-trigger-content">{s.children}</span>
61
+ <Show when={!s.hideChevron}>
62
+ <ChevronDown />
63
+ </Show>
64
+ </Kobalte.Trigger>
65
+ )
66
+ }
67
+
68
+ function AccordionV2Content(props: ParentProps<AccordionV2ContentProps>) {
69
+ const [s, r] = splitProps(props, ["class", "classList", "children"])
70
+ return (
71
+ <Kobalte.Content
72
+ {...r}
73
+ data-component="accordion-v2-content"
74
+ classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
75
+ >
76
+ <div data-slot="accordion-v2-content-inner">{s.children}</div>
77
+ </Kobalte.Content>
78
+ )
79
+ }
80
+
81
+ export const AccordionV2 = Object.assign(AccordionV2Root, {
82
+ Item: AccordionV2Item,
83
+ Header: AccordionV2Header,
84
+ Trigger: AccordionV2Trigger,
85
+ Content: AccordionV2Content,
86
+ })
@@ -1,5 +1,5 @@
1
1
  import { type ComponentProps, splitProps, Show } from "solid-js"
2
- import "./avatar.css"
2
+ import "./avatar-v2.css"
3
3
 
4
4
  const segmenter =
5
5
  typeof Intl !== "undefined" && "Segmenter" in Intl
@@ -31,22 +31,3 @@
31
31
  background: var(--v2-background-bg-accent);
32
32
  color: var(--v2-text-text-contrast);
33
33
  }
34
-
35
- [data-component="tag"][data-appearance="standard"] {
36
- height: 18px;
37
- padding: 0 6px;
38
- border-radius: var(--radius-xs);
39
- font-family: var(--font-family-sans);
40
- font-size: var(--font-size-small);
41
- font-style: normal;
42
- font-weight: var(--font-weight-medium);
43
- line-height: var(--line-height-large);
44
- letter-spacing: var(--letter-spacing-normal);
45
- font-variant-numeric: normal;
46
- }
47
-
48
- [data-component="tag"][data-appearance="standard"][data-variant="neutral"] {
49
- border: 0.5px solid var(--border-weak-base);
50
- background: var(--surface-raised-base);
51
- color: var(--text-base);
52
- }