@opencode-ai/ui 0.0.0-dev-202609050337 → 0.0.0-dev-19145

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/actions/button/button.d.ts +10 -0
  2. package/dist/actions/icon-button/icon-button.d.ts +11 -0
  3. package/dist/actions/split-button/split-button.d.ts +5 -0
  4. package/dist/components/card.d.ts +1 -1
  5. package/dist/components/list.d.ts +1 -1
  6. package/dist/components/scroll-view.d.ts +3 -3
  7. package/dist/context/i18n.d.ts +10 -7
  8. package/dist/context/marked-base.d.ts +3 -0
  9. package/dist/context/marked-parser.d.ts +1 -2
  10. package/dist/{components → data-display/accordion}/accordion.d.ts +6 -6
  11. package/dist/{v2/components/avatar-v2.d.ts → data-display/avatar/avatar.d.ts} +1 -1
  12. package/dist/data-display/badge/badge.d.ts +7 -0
  13. package/dist/{components → data-display/diff-changes}/diff-changes.d.ts +2 -1
  14. package/dist/data-display/keybind/keybind.d.ts +7 -0
  15. package/dist/{v2/components/line-comment-v2.d.ts → data-display/line-comment/line-comment.d.ts} +9 -9
  16. package/dist/{v2/components/project-avatar-v2.d.ts → data-display/project-avatar/project-avatar.d.ts} +1 -1
  17. package/dist/feedback/loader/loader.d.ts +3 -0
  18. package/dist/{components → feedback/progress-circle}/progress-circle.d.ts +2 -0
  19. package/dist/feedback/toast/toast.d.ts +57 -0
  20. package/dist/{components → forms/checkbox}/checkbox.d.ts +2 -2
  21. package/dist/{v2/components/field-v2.d.ts → forms/field/field.d.ts} +4 -10
  22. package/dist/forms/radio/radio.d.ts +16 -0
  23. package/dist/{v2/components/select-v2.d.ts → forms/select/select.d.ts} +4 -6
  24. package/dist/{components → forms/switch}/switch.d.ts +4 -2
  25. package/dist/{v2/components/text-input-v2.d.ts → forms/text-input/text-input.d.ts} +3 -3
  26. package/dist/forms/textarea/textarea.d.ts +7 -0
  27. package/dist/hooks/use-filtered-list.d.ts +9 -0
  28. package/dist/i18n/ar.d.ts +0 -2
  29. package/dist/i18n/bg.d.ts +0 -2
  30. package/dist/i18n/br.d.ts +0 -2
  31. package/dist/i18n/bs.d.ts +0 -2
  32. package/dist/i18n/da.d.ts +0 -2
  33. package/dist/i18n/de.d.ts +0 -2
  34. package/dist/i18n/en.d.ts +242 -1
  35. package/dist/i18n/es.d.ts +0 -2
  36. package/dist/i18n/fr.d.ts +0 -2
  37. package/dist/i18n/he.d.ts +197 -0
  38. package/dist/i18n/ja.d.ts +0 -2
  39. package/dist/i18n/km.d.ts +0 -2
  40. package/dist/i18n/ko.d.ts +0 -2
  41. package/dist/i18n/lo.d.ts +0 -2
  42. package/dist/i18n/mk.d.ts +0 -2
  43. package/dist/i18n/mn.d.ts +0 -2
  44. package/dist/i18n/my.d.ts +0 -2
  45. package/dist/i18n/pl.d.ts +0 -2
  46. package/dist/i18n/ru.d.ts +0 -2
  47. package/dist/i18n/sr.d.ts +0 -2
  48. package/dist/i18n/tg.d.ts +0 -2
  49. package/dist/i18n/th.d.ts +0 -2
  50. package/dist/i18n/tr.d.ts +0 -2
  51. package/dist/i18n/zh.d.ts +0 -2
  52. package/dist/i18n/zht.d.ts +0 -2
  53. package/dist/{components/icon.d.ts → icons/icon/additional-icons.d.ts} +8 -8
  54. package/dist/{v2/components → icons/icon}/icon.d.ts +44 -1
  55. package/dist/layout/divider/divider.d.ts +5 -0
  56. package/dist/navigation/menu/menu.d.ts +59 -0
  57. package/dist/{v2/components/segmented-control-v2.d.ts → navigation/segmented-control/segmented-control.d.ts} +5 -5
  58. package/dist/{components → navigation/tabs}/tabs.d.ts +15 -8
  59. package/dist/{v2/components/dialog-v2.d.ts → overlays/dialog/dialog.d.ts} +1 -2
  60. package/dist/overlays/tooltip/tooltip.d.ts +15 -0
  61. package/dist/{components → typography/text-shimmer}/text-shimmer.d.ts +1 -0
  62. package/dist/typography/wordmark/wordmark.d.ts +2 -0
  63. package/package.json +141 -35
  64. package/src/{v2/components/button-v2.css → actions/button/button.css} +29 -0
  65. package/src/{components → actions/button}/button.tsx +19 -11
  66. package/src/actions/icon-button/icon-button.tsx +32 -0
  67. package/src/{v2/components/split-button-v2.css → actions/split-button/split-button.css} +2 -6
  68. package/src/{v2/components/split-button-v2.tsx → actions/split-button/split-button.tsx} +4 -4
  69. package/src/components/animated-number.css +29 -11
  70. package/src/components/animated-number.tsx +2 -2
  71. package/src/components/card.css +2 -23
  72. package/src/components/card.tsx +4 -4
  73. package/src/components/collapsible.tsx +2 -2
  74. package/src/components/dock-surface.css +2 -9
  75. package/src/components/image-preview.tsx +3 -2
  76. package/src/components/list.css +5 -5
  77. package/src/components/list.tsx +7 -5
  78. package/src/components/popover.tsx +3 -2
  79. package/src/components/scroll-view.tsx +5 -20
  80. package/src/components/sticky-accordion-header.tsx +1 -1
  81. package/src/components/text-field.tsx +12 -4
  82. package/src/context/dialog.tsx +1 -0
  83. package/src/context/i18n.tsx +17 -14
  84. package/src/context/marked-base.tsx +27 -0
  85. package/src/context/marked-parser.tsx +3 -13
  86. package/src/{components → data-display/accordion}/accordion.css +5 -31
  87. package/src/{components → data-display/accordion}/accordion.tsx +14 -14
  88. package/src/{v2/components/avatar-v2.tsx → data-display/avatar/avatar.tsx} +1 -1
  89. package/src/{v2/components/badge-v2.css → data-display/badge/badge.css} +19 -0
  90. package/src/{v2/components/badge-v2.tsx → data-display/badge/badge.tsx} +6 -4
  91. package/src/{components → data-display/diff-changes}/diff-changes.css +22 -19
  92. package/src/{v2/components/diff-changes-v2.tsx → data-display/diff-changes/diff-changes.tsx} +7 -2
  93. package/src/{v2/components/keybind-v2.css → data-display/keybind/keybind.css} +1 -1
  94. package/src/{v2/components/keybind-v2.tsx → data-display/keybind/keybind.tsx} +3 -3
  95. package/src/{v2/components/line-comment-v2.css → data-display/line-comment/line-comment.css} +4 -4
  96. package/src/{v2/components/line-comment-v2.tsx → data-display/line-comment/line-comment.tsx} +17 -15
  97. package/src/{v2/components/project-avatar-v2.tsx → data-display/project-avatar/project-avatar.tsx} +1 -1
  98. package/src/{v2/components/loader-v2.tsx → feedback/loader/loader.tsx} +2 -2
  99. package/src/feedback/progress-circle/progress-circle.css +28 -0
  100. package/src/feedback/progress-circle/progress-circle.tsx +64 -0
  101. package/src/{v2/components/toast-v2.tsx → feedback/toast/toast.tsx} +60 -58
  102. package/src/{components → forms/checkbox}/checkbox.css +1 -7
  103. package/src/{components → forms/checkbox}/checkbox.tsx +13 -13
  104. package/src/{v2/components/field-v2.css → forms/field/field.css} +1 -1
  105. package/src/{v2/components/field-v2.tsx → forms/field/field.tsx} +9 -11
  106. package/src/{v2/components/radio-v2.tsx → forms/radio/radio.tsx} +30 -20
  107. package/src/{v2/components/select-v2.css → forms/select/select.css} +2 -8
  108. package/src/{v2/components/select-v2.tsx → forms/select/select.tsx} +40 -32
  109. package/src/{v2/components/switch-v2.css → forms/switch/switch.css} +110 -0
  110. package/src/forms/switch/switch.tsx +34 -0
  111. package/src/{v2/components/text-input-v2.css → forms/text-input/text-input.css} +3 -3
  112. package/src/{v2/components/text-input-v2.tsx → forms/text-input/text-input.tsx} +4 -4
  113. package/src/{v2/components/textarea-v2.tsx → forms/textarea/textarea.tsx} +3 -3
  114. package/src/hooks/create-auto-scroll.tsx +20 -0
  115. package/src/i18n/am.ts +7 -9
  116. package/src/i18n/ar.ts +7 -9
  117. package/src/i18n/az.ts +7 -9
  118. package/src/i18n/bg.ts +7 -9
  119. package/src/i18n/bn.ts +7 -9
  120. package/src/i18n/br.ts +7 -9
  121. package/src/i18n/bs.ts +7 -9
  122. package/src/i18n/ca.ts +7 -9
  123. package/src/i18n/cs.ts +7 -9
  124. package/src/i18n/da.ts +7 -9
  125. package/src/i18n/de.ts +1 -3
  126. package/src/i18n/dv.ts +7 -9
  127. package/src/i18n/dz.ts +5 -7
  128. package/src/i18n/el.ts +7 -9
  129. package/src/i18n/en.ts +59 -12
  130. package/src/i18n/es.ts +6 -8
  131. package/src/i18n/et.ts +7 -9
  132. package/src/i18n/fa.ts +7 -9
  133. package/src/i18n/fi.ts +7 -9
  134. package/src/i18n/fo.ts +7 -9
  135. package/src/i18n/fr.ts +6 -8
  136. package/src/i18n/he.ts +199 -0
  137. package/src/i18n/hi.ts +7 -9
  138. package/src/i18n/hr.ts +7 -9
  139. package/src/i18n/hu.ts +7 -9
  140. package/src/i18n/hy.ts +7 -9
  141. package/src/i18n/id.ts +7 -9
  142. package/src/i18n/is.ts +7 -9
  143. package/src/i18n/it.ts +7 -9
  144. package/src/i18n/ja.ts +7 -9
  145. package/src/i18n/ka.ts +7 -9
  146. package/src/i18n/km.ts +7 -9
  147. package/src/i18n/ko.ts +7 -9
  148. package/src/i18n/lo.ts +7 -9
  149. package/src/i18n/lt.ts +7 -9
  150. package/src/i18n/lv.ts +7 -9
  151. package/src/i18n/mk.ts +7 -9
  152. package/src/i18n/mn.ts +7 -9
  153. package/src/i18n/ms.ts +7 -9
  154. package/src/i18n/my.ts +7 -9
  155. package/src/i18n/ne.ts +7 -9
  156. package/src/i18n/nl.ts +7 -9
  157. package/src/i18n/no.ts +7 -9
  158. package/src/i18n/pa.ts +7 -9
  159. package/src/i18n/pl.ts +7 -9
  160. package/src/i18n/ro.ts +7 -9
  161. package/src/i18n/ru.ts +7 -9
  162. package/src/i18n/si.ts +7 -9
  163. package/src/i18n/sk.ts +7 -9
  164. package/src/i18n/sl.ts +7 -9
  165. package/src/i18n/sq.ts +7 -9
  166. package/src/i18n/sr.ts +7 -9
  167. package/src/i18n/sv.ts +7 -9
  168. package/src/i18n/tg.ts +7 -9
  169. package/src/i18n/th.ts +7 -9
  170. package/src/i18n/tk.ts +7 -9
  171. package/src/i18n/tr.ts +7 -9
  172. package/src/i18n/uk.ts +7 -9
  173. package/src/i18n/ur.ts +7 -9
  174. package/src/i18n/uz.ts +7 -9
  175. package/src/i18n/vi.ts +7 -9
  176. package/src/i18n/zh.ts +7 -9
  177. package/src/i18n/zht.ts +7 -9
  178. package/src/{components/icon.tsx → icons/icon/additional-icons.ts} +8 -74
  179. package/src/icons/icon/icon.css +3 -0
  180. package/src/{v2/components → icons/icon}/icon.tsx +80 -12
  181. package/src/{v2/components/divider-v2.tsx → layout/divider/divider.tsx} +3 -3
  182. package/src/{v2/components/menu-v2.css → navigation/menu/menu.css} +124 -2
  183. package/src/{v2/components/menu-v2.tsx → navigation/menu/menu.tsx} +96 -32
  184. package/src/{v2/components/segmented-control-v2.css → navigation/segmented-control/segmented-control.css} +1 -1
  185. package/src/{v2/components/segmented-control-v2.tsx → navigation/segmented-control/segmented-control.tsx} +9 -8
  186. package/src/{v2/components/tabs-v2.css → navigation/tabs/tabs-current.css} +25 -10
  187. package/src/{components → navigation/tabs}/tabs.css +53 -232
  188. package/src/navigation/tabs/tabs.tsx +194 -0
  189. package/src/{v2/components/dialog-v2.css → overlays/dialog/dialog.css} +3 -0
  190. package/src/{v2/components/dialog-v2.tsx → overlays/dialog/dialog.tsx} +11 -13
  191. package/src/{v2/components/tooltip-v2.css → overlays/tooltip/tooltip.css} +26 -0
  192. package/src/{v2/components/tooltip-v2.tsx → overlays/tooltip/tooltip.tsx} +24 -17
  193. package/src/styles/base.css +5 -0
  194. package/src/styles/index.css +4 -20
  195. package/src/styles/tailwind/colors.css +1 -0
  196. package/src/styles/tailwind/index.css +18 -1
  197. package/src/styles/theme.css +2 -2
  198. package/src/{v2/styles → styles/tokens}/colors.css +8 -8
  199. package/src/{v2/styles → styles/tokens}/theme.css +20 -16
  200. package/src/theme/context.tsx +19 -11
  201. package/src/theme/themes/oc-2.json +48 -19
  202. package/src/theme/v2/default-primitives.ts +8 -8
  203. package/src/theme/v2/foreground.ts +1 -0
  204. package/src/theme/v2/mapping.ts +5 -1
  205. package/src/{components → typography/text-shimmer}/text-shimmer.css +2 -1
  206. package/src/{components → typography/text-shimmer}/text-shimmer.tsx +1 -0
  207. package/src/{v2/components/wordmark-v2.tsx → typography/wordmark/wordmark.tsx} +2 -2
  208. package/dist/components/avatar.d.ts +0 -9
  209. package/dist/components/button.d.ts +0 -9
  210. package/dist/components/dialog.d.ts +0 -12
  211. package/dist/components/dropdown-menu.d.ts +0 -80
  212. package/dist/components/icon-button.d.ts +0 -10
  213. package/dist/components/keybind.d.ts +0 -6
  214. package/dist/components/radio-group.d.ts +0 -16
  215. package/dist/components/select.d.ts +0 -21
  216. package/dist/components/tag.d.ts +0 -5
  217. package/dist/components/toast.d.ts +0 -56
  218. package/dist/components/tooltip.d.ts +0 -17
  219. package/dist/v2/components/accordion-v2.d.ts +0 -26
  220. package/dist/v2/components/badge-v2.d.ts +0 -6
  221. package/dist/v2/components/button-v2.d.ts +0 -10
  222. package/dist/v2/components/checkbox-v2.d.ts +0 -10
  223. package/dist/v2/components/diff-changes-v2.d.ts +0 -11
  224. package/dist/v2/components/divider-v2.d.ts +0 -5
  225. package/dist/v2/components/icon-button-v2.d.ts +0 -11
  226. package/dist/v2/components/inline-input-v2.d.ts +0 -21
  227. package/dist/v2/components/keybind-v2.d.ts +0 -7
  228. package/dist/v2/components/loader-v2.d.ts +0 -3
  229. package/dist/v2/components/menu-v2.d.ts +0 -52
  230. package/dist/v2/components/progress-circle-v2.d.ts +0 -8
  231. package/dist/v2/components/radio-v2.d.ts +0 -16
  232. package/dist/v2/components/split-button-v2.d.ts +0 -5
  233. package/dist/v2/components/switch-v2.d.ts +0 -7
  234. package/dist/v2/components/tabs-v2.d.ts +0 -34
  235. package/dist/v2/components/text-shimmer-v2.d.ts +0 -9
  236. package/dist/v2/components/textarea-v2.d.ts +0 -7
  237. package/dist/v2/components/toast-v2.d.ts +0 -57
  238. package/dist/v2/components/tooltip-v2.d.ts +0 -13
  239. package/dist/v2/components/wordmark-v2.d.ts +0 -2
  240. package/src/components/avatar.css +0 -49
  241. package/src/components/avatar.tsx +0 -55
  242. package/src/components/button.css +0 -194
  243. package/src/components/dialog.css +0 -181
  244. package/src/components/dialog.tsx +0 -72
  245. package/src/components/diff-changes.tsx +0 -115
  246. package/src/components/dropdown-menu.css +0 -135
  247. package/src/components/dropdown-menu.tsx +0 -308
  248. package/src/components/icon-button.css +0 -181
  249. package/src/components/icon-button.tsx +0 -29
  250. package/src/components/icon.css +0 -39
  251. package/src/components/keybind.css +0 -18
  252. package/src/components/keybind.tsx +0 -20
  253. package/src/components/progress-circle.css +0 -16
  254. package/src/components/progress-circle.tsx +0 -64
  255. package/src/components/radio-group.css +0 -187
  256. package/src/components/radio-group.tsx +0 -83
  257. package/src/components/select.css +0 -201
  258. package/src/components/select.tsx +0 -174
  259. package/src/components/switch.css +0 -136
  260. package/src/components/switch.tsx +0 -29
  261. package/src/components/tabs.tsx +0 -126
  262. package/src/components/tag.css +0 -37
  263. package/src/components/tag.tsx +0 -22
  264. package/src/components/toast.css +0 -236
  265. package/src/components/toast.tsx +0 -185
  266. package/src/components/tooltip.css +0 -74
  267. package/src/components/tooltip.tsx +0 -163
  268. package/src/v2/components/accordion-v2.css +0 -139
  269. package/src/v2/components/accordion-v2.tsx +0 -86
  270. package/src/v2/components/button-v2.tsx +0 -35
  271. package/src/v2/components/checkbox-v2.css +0 -184
  272. package/src/v2/components/checkbox-v2.tsx +0 -65
  273. package/src/v2/components/diff-changes-v2.css +0 -26
  274. package/src/v2/components/icon-button-v2.tsx +0 -37
  275. package/src/v2/components/inline-input-v2.css +0 -225
  276. package/src/v2/components/inline-input-v2.tsx +0 -107
  277. package/src/v2/components/progress-circle-v2.css +0 -13
  278. package/src/v2/components/progress-circle-v2.tsx +0 -52
  279. package/src/v2/components/switch-v2.tsx +0 -28
  280. package/src/v2/components/tabs-v2.tsx +0 -149
  281. package/src/v2/components/text-shimmer-v2.css +0 -125
  282. package/src/v2/components/text-shimmer-v2.tsx +0 -63
  283. /package/dist/{components → forms/inline-input}/inline-input.d.ts +0 -0
  284. /package/dist/{v2/components → navigation}/tab-state-indicator.d.ts +0 -0
  285. /package/src/{v2/components/icon-button-v2.css → actions/icon-button/icon-button.css} +0 -0
  286. /package/src/{v2/components/avatar-v2.css → data-display/avatar/avatar.css} +0 -0
  287. /package/src/{v2/components/project-avatar-v2.css → data-display/project-avatar/project-avatar.css} +0 -0
  288. /package/src/{v2/components/loader-v2.css → feedback/loader/loader.css} +0 -0
  289. /package/src/{v2/components/toast-v2.css → feedback/toast/toast.css} +0 -0
  290. /package/src/{components → forms/inline-input}/inline-input.css +0 -0
  291. /package/src/{components → forms/inline-input}/inline-input.tsx +0 -0
  292. /package/src/{v2/components/radio-v2.css → forms/radio/radio.css} +0 -0
  293. /package/src/{v2/components/textarea-v2.css → forms/textarea/textarea.css} +0 -0
  294. /package/src/{v2/components/divider-v2.css → layout/divider/divider.css} +0 -0
  295. /package/src/{v2/components → navigation}/tab-state-indicator.tsx +0 -0
  296. /package/src/{v2/components/file-tree-v2.css → styles/file-tree.css} +0 -0
  297. /package/src/{v2/styles/tailwind.css → styles/tokens/index.css} +0 -0
@@ -1,184 +0,0 @@
1
- [data-slot="checkbox-v2"] {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 6px;
5
- cursor: default;
6
-
7
- &:where([data-disabled]) {
8
- cursor: not-allowed;
9
- }
10
-
11
- [data-slot="checkbox-v2-error"] {
12
- color: var(--v2-state-fg-danger);
13
- font-size: 12px;
14
- font-weight: var(--font-weight-regular);
15
- line-height: var(--line-height-normal);
16
- letter-spacing: var(--letter-spacing-normal);
17
- }
18
-
19
- [data-slot="checkbox-v2-error"]:empty {
20
- display: none;
21
- }
22
- }
23
-
24
- [data-slot="checkbox-v2-row"] {
25
- position: relative;
26
- display: flex;
27
- flex-direction: row;
28
- align-items: flex-start;
29
- padding: 0px;
30
- gap: 8px;
31
-
32
- [data-slot="checkbox-v2-input"] {
33
- position: absolute;
34
- width: 1px;
35
- height: 1px;
36
- padding: 0;
37
- margin: -1px;
38
- overflow: hidden;
39
- clip: rect(0, 0, 0, 0);
40
- white-space: nowrap;
41
- border-width: 0;
42
- }
43
-
44
- [data-slot="checkbox-v2-control-stack"] {
45
- position: relative;
46
- width: 16px;
47
- height: 20px;
48
- flex: none;
49
- }
50
-
51
- [data-slot="checkbox-v2-control"] {
52
- box-sizing: border-box;
53
- position: absolute;
54
- width: 16px;
55
- height: 16px;
56
- flex: none;
57
- flex-shrink: 0;
58
- left: 0;
59
- top: calc(50% - 16px / 2);
60
- border-radius: 4px;
61
- border: none;
62
- box-shadow: inset 0 0 0 0.5px var(--v2-border-border-strong);
63
-
64
- background:
65
- linear-gradient(180deg, var(--v2-alpha-light-6) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
66
- transition:
67
- background 170ms ease-out,
68
- opacity 170ms ease-out,
69
- outline-color 170ms ease-out;
70
- }
71
-
72
- [data-slot="checkbox-v2-indicator"] {
73
- position: absolute;
74
- inset: 0;
75
- width: 16px;
76
- height: 16px;
77
- pointer-events: none;
78
- }
79
-
80
- [data-slot="checkbox-v2-text"] {
81
- display: flex;
82
- flex-direction: column;
83
- justify-content: center;
84
- align-items: flex-start;
85
- padding: 0px;
86
- gap: 6px;
87
- }
88
-
89
- [data-slot="checkbox-v2-label"] {
90
- display: inline-flex;
91
- user-select: none;
92
- color: inherit;
93
- font-style: normal;
94
- font-weight: 440;
95
- font-variant-numeric: tabular-nums;
96
- font-variation-settings: "slnt" 0;
97
- }
98
-
99
- [data-slot="checkbox-v2-label-text"] {
100
- display: inline-flex;
101
- align-items: center;
102
- user-select: none;
103
- color: var(--v2-text-text-base);
104
- font-size: 13px;
105
- line-height: 20px;
106
- letter-spacing: -0.04px;
107
- }
108
-
109
- [data-slot="checkbox-v2-description"] {
110
- color: var(--v2-text-text-muted);
111
- font-size: 11px;
112
- font-weight: 440;
113
- line-height: 1;
114
- letter-spacing: 0.05px;
115
- font-variant-numeric: tabular-nums;
116
- user-select: none;
117
- }
118
- }
119
-
120
- [data-slot="checkbox-v2"]:where(:not([data-readonly]))
121
- [data-slot="checkbox-v2-input"]:focus-visible
122
- ~ [data-slot="checkbox-v2-control-stack"]
123
- [data-slot="checkbox-v2-control"] {
124
- outline: 2px solid var(--v2-border-border-focus);
125
- outline-offset: 1px;
126
- }
127
-
128
- [data-slot="checkbox-v2"]:where(:hover):where(:not([data-disabled], [data-readonly], [data-invalid])):where(
129
- :not([data-checked], [data-indeterminate])
130
- )
131
- [data-slot="checkbox-v2-control"] {
132
- background:
133
- linear-gradient(0deg, var(--v2-overlay-simple-overlay-hover), var(--v2-overlay-simple-overlay-hover)),
134
- linear-gradient(180deg, var(--v2-alpha-light-6) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
135
- }
136
-
137
- [data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-control"] {
138
- opacity: 0.5;
139
- }
140
-
141
- [data-slot="checkbox-v2"]:where([data-checked], [data-indeterminate]) [data-slot="checkbox-v2-control"] {
142
- background:
143
- linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-accent);
144
- }
145
-
146
- [data-slot="checkbox-v2"]:where([data-checked], [data-indeterminate]):where(:hover):where(
147
- :not([data-disabled], [data-readonly])
148
- )
149
- [data-slot="checkbox-v2-control"] {
150
- background:
151
- linear-gradient(
152
- 0deg,
153
- var(--v2-overlay-simple-overlay-contrast-hover),
154
- var(--v2-overlay-simple-overlay-contrast-hover)
155
- ),
156
- linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-accent);
157
- }
158
-
159
- [data-slot="checkbox-v2"]:where([data-invalid]):where(:not([data-checked], [data-indeterminate]))
160
- [data-slot="checkbox-v2-control"] {
161
- background: var(--v2-state-bg-danger);
162
- box-shadow: inset 0 0 0 0.5px var(--v2-state-border-danger);
163
- }
164
-
165
- [data-slot="checkbox-v2"] .checkbox-v2-icon {
166
- position: absolute;
167
- left: 50%;
168
- top: 50%;
169
- transform: translate(-50%, -50%);
170
- display: none;
171
- }
172
-
173
- [data-slot="checkbox-v2"]:where([data-checked]):where(:not([data-indeterminate])) .checkbox-v2-icon--check {
174
- display: block;
175
- }
176
-
177
- [data-slot="checkbox-v2"]:where([data-indeterminate]) .checkbox-v2-icon--minus {
178
- display: block;
179
- }
180
-
181
- [data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-label"],
182
- [data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-description"] {
183
- opacity: 0.5;
184
- }
@@ -1,65 +0,0 @@
1
- import { Checkbox as Kobalte } from "@kobalte/core/checkbox"
2
- import { Show, splitProps, type JSX } from "solid-js"
3
- import type { ComponentProps } from "solid-js"
4
- import "./checkbox-v2.css"
5
-
6
- export interface CheckboxV2Props extends ComponentProps<typeof Kobalte> {
7
- label: JSX.Element
8
- description?: JSX.Element
9
- hideLabel?: boolean
10
- }
11
-
12
- export function CheckboxV2(props: CheckboxV2Props) {
13
- const [local, others] = splitProps(props, ["class", "classList", "label", "description", "hideLabel"])
14
- return (
15
- <Kobalte
16
- {...others}
17
- data-slot="checkbox-v2"
18
- classList={{
19
- ...local.classList,
20
- [local.class ?? ""]: !!local.class,
21
- }}
22
- >
23
- <div data-slot="checkbox-v2-row">
24
- <Kobalte.Input data-slot="checkbox-v2-input" />
25
- <div data-slot="checkbox-v2-control-stack">
26
- <Kobalte.Control data-slot="checkbox-v2-control">
27
- <Kobalte.Indicator data-slot="checkbox-v2-indicator">
28
- <svg
29
- class="checkbox-v2-icon checkbox-v2-icon--check"
30
- width="16"
31
- height="16"
32
- viewBox="0 0 16 16"
33
- fill="none"
34
- xmlns="http://www.w3.org/2000/svg"
35
- aria-hidden="true"
36
- >
37
- <path d="M3.53564 8.17857L6.39279 11.75L12.4642 4.25" stroke="#FAFAFA" stroke-width="1" />
38
- </svg>
39
- <svg
40
- class="checkbox-v2-icon checkbox-v2-icon--minus"
41
- width="16"
42
- height="16"
43
- viewBox="0 0 16 16"
44
- fill="none"
45
- xmlns="http://www.w3.org/2000/svg"
46
- aria-hidden="true"
47
- >
48
- <path d="M12.75 8H3.25" stroke="#FAFAFA" stroke-linejoin="round" stroke-width="1" />
49
- </svg>
50
- </Kobalte.Indicator>
51
- </Kobalte.Control>
52
- </div>
53
- <Kobalte.Label data-slot="checkbox-v2-label" classList={{ "sr-only": local.hideLabel }}>
54
- <div data-slot="checkbox-v2-text">
55
- <span data-slot="checkbox-v2-label-text">{local.label}</span>
56
- <Show when={local.description}>
57
- {(description) => <span data-slot="checkbox-v2-description">{description()}</span>}
58
- </Show>
59
- </div>
60
- </Kobalte.Label>
61
- </div>
62
- <Kobalte.ErrorMessage data-slot="checkbox-v2-error" />
63
- </Kobalte>
64
- )
65
- }
@@ -1,26 +0,0 @@
1
- [data-component="diff-changes"] {
2
- display: flex;
3
- direction: ltr;
4
- unicode-bidi: isolate;
5
- gap: 8px;
6
- justify-content: flex-end;
7
- align-items: center;
8
-
9
- [data-slot="diff-changes-additions"],
10
- [data-slot="diff-changes-deletions"] {
11
- font-size: 11px;
12
- font-style: normal;
13
- font-weight: 440;
14
- line-height: 1;
15
- letter-spacing: 0.05px;
16
- text-align: right;
17
- }
18
-
19
- [data-slot="diff-changes-additions"] {
20
- color: var(--v2-state-fg-success);
21
- }
22
-
23
- [data-slot="diff-changes-deletions"] {
24
- color: var(--v2-state-fg-danger);
25
- }
26
- }
@@ -1,37 +0,0 @@
1
- import { Button as Kobalte } from "@kobalte/core/button"
2
- import { type ComponentProps, splitProps } from "solid-js"
3
- import { JSX } from "solid-js"
4
- import "./icon-button-v2.css"
5
-
6
- export interface IconButtonV2Props
7
- extends ComponentProps<typeof Kobalte>,
8
- Pick<ComponentProps<"button">, "class" | "classList"> {
9
- // temporary
10
- icon?: JSX.Element
11
- // icon: IconProps["name"]
12
- size?: "small" | "normal" | "large"
13
- // iconSize?: IconProps["size"]
14
- variant?: "neutral" | "contrast" | "ghost" | "ghost-muted"
15
- state?: "rest" | "hover" | "pressed"
16
- }
17
-
18
- export function IconButtonV2(props: ComponentProps<"button"> & IconButtonV2Props) {
19
- const [split, rest] = splitProps(props, ["variant", "size", "iconSize", "class", "classList", "state"])
20
- return (
21
- <Kobalte
22
- {...rest}
23
- data-component="icon-button-v2"
24
- // data-icon={props.icon}
25
- data-size={split.size || "normal"}
26
- data-variant={split.variant || "neutral"}
27
- data-state={split.state}
28
- classList={{
29
- ...split.classList,
30
- [split.class ?? ""]: !!split.class,
31
- }}
32
- >
33
- {props.icon}
34
- {/*<Icon name={props.icon} size={split.iconSize ?? (split.size === "large" ? "normal" : "small")} />*/}
35
- </Kobalte>
36
- )
37
- }
@@ -1,225 +0,0 @@
1
- [data-component="inline-input-v2"] {
2
- box-sizing: border-box;
3
- display: flex;
4
- flex-direction: row;
5
- align-items: stretch;
6
- padding: 0;
7
- width: 280px;
8
- height: 28px;
9
- border: 0;
10
- border-radius: 6px;
11
- outline: 1px solid transparent;
12
- outline-offset: 0;
13
- background:
14
- linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
15
- box-shadow: var(--v2-elevation-button-neutral);
16
- flex: none;
17
- align-self: stretch;
18
- overflow: hidden;
19
- transition:
20
- background 85ms ease-out,
21
- outline-color 85ms ease-out,
22
- box-shadow 85ms ease-out;
23
- }
24
-
25
- [data-component="inline-input-v2"][data-appearance="large"] {
26
- height: 32px;
27
- }
28
-
29
- [data-component="inline-input-v2"]:where(:hover):not([data-disabled], [data-invalid]):not(:focus-within) {
30
- background:
31
- linear-gradient(0deg, var(--v2-overlay-simple-overlay-hover), var(--v2-overlay-simple-overlay-hover)),
32
- linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
33
- }
34
-
35
- [data-component="inline-input-v2"]:where(:hover):not([data-disabled], [data-invalid]):not(:focus-within)
36
- [data-slot="inline-input-v2-prefix"] {
37
- background: transparent;
38
- }
39
-
40
- [data-component="inline-input-v2"]:where(:focus-within):not([data-disabled], [data-invalid]) {
41
- outline-color: var(--v2-border-border-focus);
42
- box-shadow: none;
43
- }
44
-
45
- [data-component="inline-input-v2"]:where([data-invalid]):not([data-disabled]) {
46
- outline-color: var(--v2-state-fg-danger);
47
- box-shadow: none;
48
- }
49
-
50
- [data-component="inline-input-v2"]:where([data-disabled]) {
51
- opacity: 0.5;
52
- cursor: not-allowed;
53
- }
54
-
55
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-prefix"] {
56
- box-sizing: border-box;
57
- display: flex;
58
- flex-direction: column;
59
- justify-content: center;
60
- align-items: flex-start;
61
- flex: none;
62
- align-self: stretch;
63
- width: fit-content;
64
- min-width: 0;
65
- max-width: 100%;
66
- padding: 4px 8px;
67
- gap: 4px;
68
- background: var(--v2-background-bg-layer-01);
69
- border-radius: 4px 0 0 4px;
70
- cursor: default;
71
- transition: background 85ms ease-out;
72
- }
73
-
74
- [data-component="inline-input-v2"]:where([data-disabled]) [data-slot="inline-input-v2-prefix"] {
75
- cursor: not-allowed;
76
- }
77
-
78
- [data-component="inline-input-v2"][data-label-width] [data-slot="inline-input-v2-prefix"] {
79
- width: var(--inline-input-v2-label-width);
80
- min-width: var(--inline-input-v2-label-width);
81
- max-width: var(--inline-input-v2-label-width);
82
- }
83
-
84
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-prefix-text"] {
85
- display: block;
86
- width: 100%;
87
- overflow: hidden;
88
- text-overflow: ellipsis;
89
- white-space: nowrap;
90
- font-style: normal;
91
- font-weight: 440;
92
- font-size: 13px;
93
- line-height: 1;
94
- letter-spacing: -0.04px;
95
- color: var(--v2-text-text-muted);
96
- font-variation-settings: "slnt" 0;
97
- user-select: none;
98
- }
99
-
100
- [data-component="inline-input-v2"][data-numeric] [data-slot="inline-input-v2-prefix-text"] {
101
- font-variant-numeric: tabular-nums;
102
- }
103
-
104
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-divider"] {
105
- flex: none;
106
- align-self: stretch;
107
- width: 0.5px;
108
- min-width: 0.5px;
109
- background: var(--v2-border-border-base);
110
- }
111
-
112
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-field"] {
113
- display: flex;
114
- flex-direction: row;
115
- align-items: center;
116
- align-self: stretch;
117
- flex: 1 1 auto;
118
- min-width: 0;
119
- padding: 4px 8px;
120
- gap: 8px;
121
- }
122
-
123
- [data-component="inline-input-v2"][data-appearance="large"] [data-slot="inline-input-v2-field"] {
124
- padding-top: 6px;
125
- padding-bottom: 6px;
126
- }
127
-
128
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-value"] {
129
- display: flex;
130
- flex-direction: row;
131
- align-items: center;
132
- flex: 1 1 auto;
133
- min-width: 0;
134
- min-height: 0;
135
- }
136
-
137
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-input"] {
138
- display: block;
139
- width: 100%;
140
- min-width: 0;
141
- height: 100%;
142
- padding: 0;
143
- margin: 0;
144
- border: 0;
145
- background: transparent;
146
- outline: none;
147
- font-style: normal;
148
- font-weight: 440;
149
- font-size: 13px;
150
- line-height: 1;
151
- letter-spacing: -0.04px;
152
- color: var(--v2-text-text-base);
153
- font-variation-settings: "slnt" 0;
154
- }
155
-
156
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-input"]::placeholder {
157
- color: var(--v2-text-text-faint);
158
- user-select: none;
159
- }
160
-
161
- [data-component="inline-input-v2"][data-numeric] [data-slot="inline-input-v2-input"] {
162
- font-variant-numeric: tabular-nums;
163
- }
164
-
165
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-icon-button"] {
166
- display: flex;
167
- flex-direction: row;
168
- justify-content: center;
169
- align-items: center;
170
- flex: none;
171
- width: 20px;
172
- height: 20px;
173
- padding: 2px;
174
- gap: 3px;
175
- border: 0;
176
- border-radius: 4px;
177
- background: transparent;
178
- color: var(--v2-icon-icon-muted);
179
- cursor: pointer;
180
- outline: none;
181
- }
182
-
183
- [data-component="inline-input-v2"]
184
- [data-slot="inline-input-v2-icon-button"]:is(:hover, [data-state="hover"]):not(:disabled) {
185
- background-color: var(--v2-overlay-simple-overlay-hover);
186
- }
187
-
188
- [data-component="inline-input-v2"]
189
- [data-slot="inline-input-v2-icon-button"]:is(:active, [data-state="pressed"]):not(:disabled) {
190
- background-color: var(--v2-overlay-simple-overlay-pressed);
191
- }
192
-
193
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-icon-button"]:focus {
194
- outline: none;
195
- }
196
-
197
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-icon-button"]:focus-visible {
198
- outline: 2px solid var(--v2-border-border-focus);
199
- outline-offset: 1px;
200
- }
201
-
202
- [data-component="inline-input-v2"]:where([data-disabled]) [data-slot="inline-input-v2-icon-button"] {
203
- cursor: not-allowed;
204
- pointer-events: none;
205
- }
206
-
207
- [data-component="inline-input-v2"] [data-slot="inline-input-v2-icon-button"] [data-slot="icon-svg"] {
208
- display: block;
209
- flex: none;
210
- color: currentColor;
211
- }
212
-
213
- [data-component="inline-input-v2"][data-invalid]:not([data-disabled]) [data-slot="inline-input-v2-prefix-text"] {
214
- color: var(--v2-text-text-muted);
215
- }
216
-
217
- [data-component="inline-input-v2"][data-invalid]:not([data-disabled]) [data-slot="inline-input-v2-input"] {
218
- color: var(--v2-state-fg-danger);
219
- caret-color: var(--v2-state-fg-danger);
220
- }
221
-
222
- [data-component="inline-input-v2"][data-invalid]:not([data-disabled]) [data-slot="inline-input-v2-input"]::placeholder {
223
- color: var(--v2-state-fg-danger);
224
- opacity: 1;
225
- }
@@ -1,107 +0,0 @@
1
- import { type ComponentProps, type JSX, Show, splitProps } from "solid-js"
2
- import { Icon } from "./icon"
3
- import { useI18n } from "../../context/i18n"
4
- import "./inline-input-v2.css"
5
-
6
- export interface InlineInputV2Props extends Omit<ComponentProps<"input">, "type" | "prefix"> {
7
- /** Inline label shown before the field (prefix segment). */
8
- prefix: JSX.Element
9
- /** Fixed width for the prefix segment (px number or CSS length). Omit for fit-content. */
10
- labelWidth?: number | string
11
- /** Show the trailing copy action. */
12
- showCopyButton?: boolean
13
- /** Accessible label for the copy button. */
14
- copyLabel?: string
15
- onCopyClick?: (event: MouseEvent) => void
16
- /** Apply tabular numerals to the prefix and field value. */
17
- numeric?: boolean
18
- /** Error styling for the field and value text. */
19
- invalid?: boolean
20
- /** `base` is 28px tall; `large` is 32px tall. */
21
- appearance?: "base" | "large"
22
- type?: ComponentProps<"input">["type"]
23
- }
24
-
25
- export function InlineInputV2(props: InlineInputV2Props) {
26
- const i18n = useI18n()
27
- const [local, inputProps] = splitProps(props, [
28
- "class",
29
- "classList",
30
- "prefix",
31
- "labelWidth",
32
- "showCopyButton",
33
- "copyLabel",
34
- "onCopyClick",
35
- "numeric",
36
- "invalid",
37
- "appearance",
38
- "disabled",
39
- "style",
40
- ])
41
-
42
- let input: HTMLInputElement | undefined
43
-
44
- return (
45
- <div
46
- data-component="inline-input-v2"
47
- data-disabled={local.disabled ? "" : undefined}
48
- data-invalid={local.invalid ? "" : undefined}
49
- data-numeric={local.numeric ? "" : undefined}
50
- data-appearance={local.appearance ?? "base"}
51
- data-label-width={local.labelWidth != null ? "" : undefined}
52
- classList={{
53
- ...local.classList,
54
- [local.class ?? ""]: !!local.class,
55
- }}
56
- style={{
57
- ...(typeof local.style === "object" && local.style != null ? local.style : {}),
58
- ...(local.labelWidth != null
59
- ? {
60
- "--inline-input-v2-label-width":
61
- typeof local.labelWidth === "number" ? `${local.labelWidth}px` : local.labelWidth,
62
- }
63
- : {}),
64
- }}
65
- >
66
- <div
67
- data-slot="inline-input-v2-prefix"
68
- onMouseDown={(event) => {
69
- if (local.disabled || event.button !== 0) return
70
- // Keep focus on the input without using a native <label>, so external labels still work.
71
- event.preventDefault()
72
- input?.focus()
73
- }}
74
- >
75
- <span data-slot="inline-input-v2-prefix-text">{local.prefix}</span>
76
- </div>
77
- <div data-slot="inline-input-v2-divider" aria-hidden="true" />
78
- <div data-slot="inline-input-v2-field">
79
- <div data-slot="inline-input-v2-value">
80
- <input
81
- {...inputProps}
82
- ref={(el) => {
83
- input = el
84
- const ref = inputProps.ref
85
- if (typeof ref === "function") ref(el)
86
- }}
87
- type={inputProps.type ?? "text"}
88
- disabled={local.disabled}
89
- aria-invalid={local.invalid ? true : undefined}
90
- data-slot="inline-input-v2-input"
91
- />
92
- </div>
93
- <Show when={local.showCopyButton}>
94
- <button
95
- type="button"
96
- data-slot="inline-input-v2-icon-button"
97
- aria-label={local.copyLabel ?? i18n.t("ui.message.copy")}
98
- disabled={local.disabled}
99
- onClick={local.onCopyClick}
100
- >
101
- <Icon name="copy" />
102
- </button>
103
- </Show>
104
- </div>
105
- </div>
106
- )
107
- }
@@ -1,13 +0,0 @@
1
- [data-component="progress-circle-v2"] {
2
- display: block;
3
- transform: rotate(-90deg);
4
- }
5
-
6
- [data-component="progress-circle-v2"] [data-slot="progress-circle-v2-background"] {
7
- stroke: var(--v2-background-bg-layer-04);
8
- }
9
-
10
- [data-component="progress-circle-v2"] [data-slot="progress-circle-v2-progress"] {
11
- stroke: var(--v2-icon-icon-base);
12
- transition: stroke-dashoffset 0.35s cubic-bezier(0.65, 0, 0.35, 1);
13
- }