@opencode/ui 2.2.6 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/components/diagram-preview.d.ts +9 -0
  2. package/dist/components/image-zoom.d.ts +4 -0
  3. package/dist/components/provider-icon.d.ts +2 -0
  4. package/dist/data-display/badge/badge.d.ts +1 -1
  5. package/dist/data-display/diff-changes/diff-changes.d.ts +2 -0
  6. package/dist/data-display/project-avatar/project-avatar.d.ts +2 -0
  7. package/dist/feedback/toast/toast.d.ts +2 -0
  8. package/dist/forms/redirect-paste/redirect-paste.d.ts +23 -0
  9. package/dist/i18n/am.d.ts +1 -0
  10. package/dist/i18n/ar.d.ts +1 -0
  11. package/dist/i18n/az.d.ts +1 -0
  12. package/dist/i18n/bg.d.ts +1 -0
  13. package/dist/i18n/bn.d.ts +1 -0
  14. package/dist/i18n/br.d.ts +1 -0
  15. package/dist/i18n/bs.d.ts +1 -0
  16. package/dist/i18n/ca.d.ts +1 -0
  17. package/dist/i18n/cs.d.ts +1 -0
  18. package/dist/i18n/da.d.ts +1 -0
  19. package/dist/i18n/de.d.ts +1 -0
  20. package/dist/i18n/dv.d.ts +1 -0
  21. package/dist/i18n/dz.d.ts +1 -0
  22. package/dist/i18n/el.d.ts +1 -0
  23. package/dist/i18n/en.d.ts +52 -0
  24. package/dist/i18n/es.d.ts +1 -0
  25. package/dist/i18n/et.d.ts +1 -0
  26. package/dist/i18n/fa.d.ts +1 -0
  27. package/dist/i18n/fi.d.ts +1 -0
  28. package/dist/i18n/fo.d.ts +1 -0
  29. package/dist/i18n/fr.d.ts +1 -0
  30. package/dist/i18n/he.d.ts +1 -0
  31. package/dist/i18n/hi.d.ts +1 -0
  32. package/dist/i18n/hr.d.ts +1 -0
  33. package/dist/i18n/hu.d.ts +1 -0
  34. package/dist/i18n/hy.d.ts +1 -0
  35. package/dist/i18n/id.d.ts +1 -0
  36. package/dist/i18n/is.d.ts +1 -0
  37. package/dist/i18n/it.d.ts +1 -0
  38. package/dist/i18n/ja.d.ts +1 -0
  39. package/dist/i18n/ka.d.ts +1 -0
  40. package/dist/i18n/km.d.ts +1 -0
  41. package/dist/i18n/ko.d.ts +1 -0
  42. package/dist/i18n/lo.d.ts +1 -0
  43. package/dist/i18n/lt.d.ts +1 -0
  44. package/dist/i18n/lv.d.ts +1 -0
  45. package/dist/i18n/mk.d.ts +1 -0
  46. package/dist/i18n/mn.d.ts +1 -0
  47. package/dist/i18n/ms.d.ts +1 -0
  48. package/dist/i18n/my.d.ts +1 -0
  49. package/dist/i18n/ne.d.ts +1 -0
  50. package/dist/i18n/nl.d.ts +1 -0
  51. package/dist/i18n/pa.d.ts +1 -0
  52. package/dist/i18n/pl.d.ts +1 -0
  53. package/dist/i18n/ro.d.ts +1 -0
  54. package/dist/i18n/ru.d.ts +1 -0
  55. package/dist/i18n/si.d.ts +1 -0
  56. package/dist/i18n/sk.d.ts +1 -0
  57. package/dist/i18n/sl.d.ts +1 -0
  58. package/dist/i18n/sq.d.ts +1 -0
  59. package/dist/i18n/sr.d.ts +1 -0
  60. package/dist/i18n/sv.d.ts +1 -0
  61. package/dist/i18n/tg.d.ts +1 -0
  62. package/dist/i18n/th.d.ts +1 -0
  63. package/dist/i18n/tk.d.ts +1 -0
  64. package/dist/i18n/tr.d.ts +1 -0
  65. package/dist/i18n/uk.d.ts +1 -0
  66. package/dist/i18n/ur.d.ts +1 -0
  67. package/dist/i18n/uz.d.ts +1 -0
  68. package/dist/i18n/vi.d.ts +1 -0
  69. package/dist/i18n/zh.d.ts +1 -0
  70. package/dist/i18n/zht.d.ts +1 -0
  71. package/dist/icons/catalog.d.ts +4 -0
  72. package/package.json +124 -119
  73. package/src/components/diagram-preview.css +95 -0
  74. package/src/components/diagram-preview.tsx +332 -0
  75. package/src/components/image-preview.tsx +6 -20
  76. package/src/components/image-zoom.ts +18 -0
  77. package/src/components/provider-icon.tsx +7 -2
  78. package/src/data-display/badge/badge.css +6 -0
  79. package/src/data-display/badge/badge.tsx +1 -1
  80. package/src/data-display/diff-changes/diff-changes.tsx +10 -2
  81. package/src/data-display/project-avatar/project-avatar.css +13 -0
  82. package/src/data-display/project-avatar/project-avatar.tsx +14 -1
  83. package/src/feedback/toast/toast.tsx +11 -1
  84. package/src/forms/inline-input/inline-input.css +0 -1
  85. package/src/forms/redirect-paste/redirect-paste.tsx +75 -0
  86. package/src/forms/search-list/search-list.tsx +14 -6
  87. package/src/forms/select/select.tsx +7 -1
  88. package/src/i18n/am.ts +1 -0
  89. package/src/i18n/ar.ts +1 -0
  90. package/src/i18n/az.ts +1 -0
  91. package/src/i18n/bg.ts +1 -0
  92. package/src/i18n/bn.ts +1 -0
  93. package/src/i18n/br.ts +1 -0
  94. package/src/i18n/bs.ts +1 -0
  95. package/src/i18n/ca.ts +1 -0
  96. package/src/i18n/cs.ts +1 -0
  97. package/src/i18n/da.ts +1 -0
  98. package/src/i18n/de.ts +1 -0
  99. package/src/i18n/dv.ts +1 -0
  100. package/src/i18n/dz.ts +1 -0
  101. package/src/i18n/el.ts +1 -0
  102. package/src/i18n/en.ts +53 -0
  103. package/src/i18n/es.ts +1 -0
  104. package/src/i18n/et.ts +1 -0
  105. package/src/i18n/fa.ts +1 -0
  106. package/src/i18n/fi.ts +1 -0
  107. package/src/i18n/fo.ts +1 -0
  108. package/src/i18n/fr.ts +1 -0
  109. package/src/i18n/he.ts +1 -0
  110. package/src/i18n/hi.ts +1 -0
  111. package/src/i18n/hr.ts +1 -0
  112. package/src/i18n/hu.ts +1 -0
  113. package/src/i18n/hy.ts +1 -0
  114. package/src/i18n/id.ts +1 -0
  115. package/src/i18n/is.ts +1 -0
  116. package/src/i18n/it.ts +1 -0
  117. package/src/i18n/ja.ts +1 -0
  118. package/src/i18n/ka.ts +1 -0
  119. package/src/i18n/km.ts +1 -0
  120. package/src/i18n/ko.ts +1 -0
  121. package/src/i18n/lo.ts +1 -0
  122. package/src/i18n/lt.ts +1 -0
  123. package/src/i18n/lv.ts +1 -0
  124. package/src/i18n/mk.ts +1 -0
  125. package/src/i18n/mn.ts +1 -0
  126. package/src/i18n/ms.ts +1 -0
  127. package/src/i18n/my.ts +1 -0
  128. package/src/i18n/ne.ts +1 -0
  129. package/src/i18n/nl.ts +1 -0
  130. package/src/i18n/no.ts +1 -0
  131. package/src/i18n/pa.ts +1 -0
  132. package/src/i18n/pl.ts +1 -0
  133. package/src/i18n/ro.ts +1 -0
  134. package/src/i18n/ru.ts +1 -0
  135. package/src/i18n/si.ts +1 -0
  136. package/src/i18n/sk.ts +1 -0
  137. package/src/i18n/sl.ts +1 -0
  138. package/src/i18n/sq.ts +1 -0
  139. package/src/i18n/sr.ts +1 -0
  140. package/src/i18n/sv.ts +1 -0
  141. package/src/i18n/tg.ts +1 -0
  142. package/src/i18n/th.ts +1 -0
  143. package/src/i18n/tk.ts +1 -0
  144. package/src/i18n/tr.ts +1 -0
  145. package/src/i18n/uk.ts +4 -3
  146. package/src/i18n/ur.ts +1 -0
  147. package/src/i18n/uz.ts +1 -0
  148. package/src/i18n/vi.ts +1 -0
  149. package/src/i18n/zh.ts +1 -0
  150. package/src/i18n/zht.ts +1 -0
  151. package/src/icons/catalog.ts +4 -0
  152. package/src/icons/icon/additional-icons.ts +4 -2
  153. package/src/icons/new-icons.ts +0 -1
  154. package/src/navigation/menu/menu.tsx +3 -0
  155. package/src/overlays/tooltip/tooltip.tsx +2 -0
  156. package/src/styles/index.css +1 -0
package/dist/i18n/sr.d.ts CHANGED
@@ -173,6 +173,7 @@ export declare const dict: {
173
173
  "ui.common.dismiss": string;
174
174
  "ui.common.close": string;
175
175
  "ui.common.next": string;
176
+ "ui.common.continue": string;
176
177
  "ui.common.submit": string;
177
178
  "ui.common.showMore": string;
178
179
  "ui.permission.deny": string;
package/dist/i18n/sv.d.ts CHANGED
@@ -196,6 +196,7 @@ export declare const dict: {
196
196
  "ui.common.dismiss": string;
197
197
  "ui.common.close": string;
198
198
  "ui.common.next": string;
199
+ "ui.common.continue": string;
199
200
  "ui.common.submit": string;
200
201
  "ui.common.showMore": string;
201
202
  "ui.permission.deny": string;
package/dist/i18n/tg.d.ts CHANGED
@@ -159,6 +159,7 @@ export declare const dict: {
159
159
  "ui.common.dismiss": string;
160
160
  "ui.common.close": string;
161
161
  "ui.common.next": string;
162
+ "ui.common.continue": string;
162
163
  "ui.common.submit": string;
163
164
  "ui.common.showMore": string;
164
165
  "ui.permission.deny": string;
package/dist/i18n/th.d.ts CHANGED
@@ -155,6 +155,7 @@ export declare const dict: {
155
155
  "ui.common.dismiss": string;
156
156
  "ui.common.close": string;
157
157
  "ui.common.next": string;
158
+ "ui.common.continue": string;
158
159
  "ui.common.submit": string;
159
160
  "ui.common.showMore": string;
160
161
  "ui.permission.deny": string;
package/dist/i18n/tk.d.ts CHANGED
@@ -159,6 +159,7 @@ export declare const dict: {
159
159
  "ui.common.dismiss": string;
160
160
  "ui.common.close": string;
161
161
  "ui.common.next": string;
162
+ "ui.common.continue": string;
162
163
  "ui.common.submit": string;
163
164
  "ui.common.showMore": string;
164
165
  "ui.permission.deny": string;
package/dist/i18n/tr.d.ts CHANGED
@@ -156,6 +156,7 @@ export declare const dict: {
156
156
  "ui.common.dismiss": string;
157
157
  "ui.common.close": string;
158
158
  "ui.common.next": string;
159
+ "ui.common.continue": string;
159
160
  "ui.common.submit": string;
160
161
  "ui.common.showMore": string;
161
162
  "ui.common.moreCount.one": string;
package/dist/i18n/uk.d.ts CHANGED
@@ -187,6 +187,7 @@ export declare const dict: {
187
187
  "ui.common.dismiss": string;
188
188
  "ui.common.close": string;
189
189
  "ui.common.next": string;
190
+ "ui.common.continue": string;
190
191
  "ui.common.submit": string;
191
192
  "ui.common.showMore": string;
192
193
  "ui.permission.deny": string;
package/dist/i18n/ur.d.ts CHANGED
@@ -159,6 +159,7 @@ export declare const dict: {
159
159
  "ui.common.dismiss": string;
160
160
  "ui.common.close": string;
161
161
  "ui.common.next": string;
162
+ "ui.common.continue": string;
162
163
  "ui.common.submit": string;
163
164
  "ui.common.showMore": string;
164
165
  "ui.permission.deny": string;
package/dist/i18n/uz.d.ts CHANGED
@@ -159,6 +159,7 @@ export declare const dict: {
159
159
  "ui.common.dismiss": string;
160
160
  "ui.common.close": string;
161
161
  "ui.common.next": string;
162
+ "ui.common.continue": string;
162
163
  "ui.common.submit": string;
163
164
  "ui.common.showMore": string;
164
165
  "ui.permission.deny": string;
package/dist/i18n/vi.d.ts CHANGED
@@ -164,6 +164,7 @@ export declare const dict: {
164
164
  "ui.common.dismiss": string;
165
165
  "ui.common.close": string;
166
166
  "ui.common.next": string;
167
+ "ui.common.continue": string;
167
168
  "ui.common.submit": string;
168
169
  "ui.common.showMore": string;
169
170
  "ui.permission.deny": string;
package/dist/i18n/zh.d.ts CHANGED
@@ -152,6 +152,7 @@ export declare const dict: {
152
152
  "ui.common.dismiss": string;
153
153
  "ui.common.close": string;
154
154
  "ui.common.next": string;
155
+ "ui.common.continue": string;
155
156
  "ui.common.submit": string;
156
157
  "ui.common.showMore": string;
157
158
  "ui.permission.deny": string;
@@ -152,6 +152,7 @@ export declare const dict: {
152
152
  "ui.common.dismiss": string;
153
153
  "ui.common.close": string;
154
154
  "ui.common.next": string;
155
+ "ui.common.continue": string;
155
156
  "ui.common.submit": string;
156
157
  "ui.common.showMore": string;
157
158
  "ui.permission.deny": string;
@@ -260,6 +260,10 @@ declare const icons: {
260
260
  viewBox: string;
261
261
  body: string;
262
262
  };
263
+ "outline-maximize": {
264
+ viewBox: string;
265
+ body: string;
266
+ };
263
267
  "outline-hexagonal-warning": {
264
268
  viewBox: string;
265
269
  body: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "2.2.6",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,244 +36,249 @@
36
36
  "exports": {
37
37
  "./package.json": "./package.json",
38
38
  "./accordion": {
39
- "import": "./src/data-display/accordion/accordion.tsx",
40
- "types": "./dist/data-display/accordion/accordion.d.ts"
39
+ "types": "./dist/data-display/accordion/accordion.d.ts",
40
+ "import": "./src/data-display/accordion/accordion.tsx"
41
41
  },
42
42
  "./activity-ring": {
43
- "import": "./src/feedback/activity-ring/activity-ring.tsx",
44
- "types": "./dist/feedback/activity-ring/activity-ring.d.ts"
43
+ "types": "./dist/feedback/activity-ring/activity-ring.d.ts",
44
+ "import": "./src/feedback/activity-ring/activity-ring.tsx"
45
45
  },
46
46
  "./avatar": {
47
- "import": "./src/data-display/avatar/avatar.tsx",
48
- "types": "./dist/data-display/avatar/avatar.d.ts"
47
+ "types": "./dist/data-display/avatar/avatar.d.ts",
48
+ "import": "./src/data-display/avatar/avatar.tsx"
49
49
  },
50
50
  "./badge": {
51
- "import": "./src/data-display/badge/badge.tsx",
52
- "types": "./dist/data-display/badge/badge.d.ts"
51
+ "types": "./dist/data-display/badge/badge.d.ts",
52
+ "import": "./src/data-display/badge/badge.tsx"
53
53
  },
54
54
  "./button": {
55
- "import": "./src/actions/button/button.tsx",
56
- "types": "./dist/actions/button/button.d.ts"
55
+ "types": "./dist/actions/button/button.d.ts",
56
+ "import": "./src/actions/button/button.tsx"
57
57
  },
58
58
  "./button.css": "./src/actions/button/button.css",
59
59
  "./checkbox": {
60
- "import": "./src/forms/checkbox/checkbox.tsx",
61
- "types": "./dist/forms/checkbox/checkbox.d.ts"
60
+ "types": "./dist/forms/checkbox/checkbox.d.ts",
61
+ "import": "./src/forms/checkbox/checkbox.tsx"
62
62
  },
63
63
  "./dialog": {
64
- "import": "./src/overlays/dialog/dialog.tsx",
65
- "types": "./dist/overlays/dialog/dialog.d.ts"
64
+ "types": "./dist/overlays/dialog/dialog.d.ts",
65
+ "import": "./src/overlays/dialog/dialog.tsx"
66
66
  },
67
67
  "./diff-changes": {
68
- "import": "./src/data-display/diff-changes/diff-changes.tsx",
69
- "types": "./dist/data-display/diff-changes/diff-changes.d.ts"
68
+ "types": "./dist/data-display/diff-changes/diff-changes.d.ts",
69
+ "import": "./src/data-display/diff-changes/diff-changes.tsx"
70
70
  },
71
71
  "./divider": {
72
- "import": "./src/layout/divider/divider.tsx",
73
- "types": "./dist/layout/divider/divider.d.ts"
72
+ "types": "./dist/layout/divider/divider.d.ts",
73
+ "import": "./src/layout/divider/divider.tsx"
74
74
  },
75
75
  "./document-surface.css": "./src/components/document-surface.css",
76
76
  "./field": {
77
- "import": "./src/forms/field/field.tsx",
78
- "types": "./dist/forms/field/field.d.ts"
77
+ "types": "./dist/forms/field/field.d.ts",
78
+ "import": "./src/forms/field/field.tsx"
79
79
  },
80
80
  "./file-tree.css": "./src/styles/file-tree.css",
81
81
  "./icon": {
82
- "import": "./src/icons/icon/icon.tsx",
83
- "types": "./dist/icons/icon/icon.d.ts"
82
+ "types": "./dist/icons/icon/icon.d.ts",
83
+ "import": "./src/icons/icon/icon.tsx"
84
84
  },
85
85
  "./icons/catalog": {
86
- "import": "./src/icons/catalog.ts",
87
- "types": "./dist/icons/catalog.d.ts"
86
+ "types": "./dist/icons/catalog.d.ts",
87
+ "import": "./src/icons/catalog.ts"
88
88
  },
89
89
  "./icon-button": {
90
- "import": "./src/actions/icon-button/icon-button.tsx",
91
- "types": "./dist/actions/icon-button/icon-button.d.ts"
90
+ "types": "./dist/actions/icon-button/icon-button.d.ts",
91
+ "import": "./src/actions/icon-button/icon-button.tsx"
92
92
  },
93
93
  "./inline-input": {
94
- "import": "./src/forms/inline-input/inline-input.tsx",
95
- "types": "./dist/forms/inline-input/inline-input.d.ts"
94
+ "types": "./dist/forms/inline-input/inline-input.d.ts",
95
+ "import": "./src/forms/inline-input/inline-input.tsx"
96
96
  },
97
97
  "./keybind": {
98
- "import": "./src/data-display/keybind/keybind.tsx",
99
- "types": "./dist/data-display/keybind/keybind.d.ts"
98
+ "types": "./dist/data-display/keybind/keybind.d.ts",
99
+ "import": "./src/data-display/keybind/keybind.tsx"
100
100
  },
101
101
  "./line-comment": {
102
- "import": "./src/data-display/line-comment/line-comment.tsx",
103
- "types": "./dist/data-display/line-comment/line-comment.d.ts"
102
+ "types": "./dist/data-display/line-comment/line-comment.d.ts",
103
+ "import": "./src/data-display/line-comment/line-comment.tsx"
104
104
  },
105
105
  "./line-comment/machine": {
106
- "import": "./src/data-display/line-comment/machine.ts",
107
- "types": "./dist/data-display/line-comment/machine.d.ts"
106
+ "types": "./dist/data-display/line-comment/machine.d.ts",
107
+ "import": "./src/data-display/line-comment/machine.ts"
108
108
  },
109
109
  "./loader": {
110
- "import": "./src/feedback/loader/loader.tsx",
111
- "types": "./dist/feedback/loader/loader.d.ts"
110
+ "types": "./dist/feedback/loader/loader.d.ts",
111
+ "import": "./src/feedback/loader/loader.tsx"
112
112
  },
113
113
  "./mcp-sign-in": {
114
- "import": "./src/overlays/mcp-sign-in/mcp-sign-in.ts",
115
- "types": "./dist/overlays/mcp-sign-in/mcp-sign-in.d.ts"
114
+ "types": "./dist/overlays/mcp-sign-in/mcp-sign-in.d.ts",
115
+ "import": "./src/overlays/mcp-sign-in/mcp-sign-in.ts"
116
116
  },
117
117
  "./mcp-sign-in/machine": {
118
- "import": "./src/overlays/mcp-sign-in/machine.ts",
119
- "types": "./dist/overlays/mcp-sign-in/machine.d.ts"
118
+ "types": "./dist/overlays/mcp-sign-in/machine.d.ts",
119
+ "import": "./src/overlays/mcp-sign-in/machine.ts"
120
120
  },
121
121
  "./menu": {
122
- "import": "./src/navigation/menu/menu.tsx",
123
- "types": "./dist/navigation/menu/menu.d.ts"
122
+ "types": "./dist/navigation/menu/menu.d.ts",
123
+ "import": "./src/navigation/menu/menu.tsx"
124
124
  },
125
125
  "./motion": {
126
- "import": "./src/motion/index.ts",
127
- "types": "./dist/motion/index.d.ts"
126
+ "types": "./dist/motion/index.d.ts",
127
+ "import": "./src/motion/index.ts"
128
128
  },
129
129
  "./motion/solid": {
130
- "import": "./src/motion/solid.ts",
131
- "types": "./dist/motion/solid.d.ts"
130
+ "types": "./dist/motion/solid.d.ts",
131
+ "import": "./src/motion/solid.ts"
132
132
  },
133
133
  "./motion-tuning": {
134
- "import": "./src/motion-tuning.ts",
135
- "types": "./dist/motion-tuning.d.ts"
134
+ "types": "./dist/motion-tuning.d.ts",
135
+ "import": "./src/motion-tuning.ts"
136
136
  },
137
137
  "./motion-tuning-features": {
138
- "import": "./src/motion-tuning-features.ts",
139
- "types": "./dist/motion-tuning-features.d.ts"
138
+ "types": "./dist/motion-tuning-features.d.ts",
139
+ "import": "./src/motion-tuning-features.ts"
140
140
  },
141
141
  "./motion-tuning-fields": {
142
- "import": "./src/motion-tuning-fields.ts",
143
- "types": "./dist/motion-tuning-fields.d.ts"
142
+ "types": "./dist/motion-tuning-fields.d.ts",
143
+ "import": "./src/motion-tuning-fields.ts"
144
144
  },
145
145
  "./progress-circle": {
146
- "import": "./src/feedback/progress-circle/progress-circle.tsx",
147
- "types": "./dist/feedback/progress-circle/progress-circle.d.ts"
146
+ "types": "./dist/feedback/progress-circle/progress-circle.d.ts",
147
+ "import": "./src/feedback/progress-circle/progress-circle.tsx"
148
148
  },
149
149
  "./project-avatar": {
150
- "import": "./src/data-display/project-avatar/project-avatar.tsx",
151
- "types": "./dist/data-display/project-avatar/project-avatar.d.ts"
150
+ "types": "./dist/data-display/project-avatar/project-avatar.d.ts",
151
+ "import": "./src/data-display/project-avatar/project-avatar.tsx"
152
152
  },
153
153
  "./radio": {
154
- "import": "./src/forms/radio/radio.tsx",
155
- "types": "./dist/forms/radio/radio.d.ts"
154
+ "types": "./dist/forms/radio/radio.d.ts",
155
+ "import": "./src/forms/radio/radio.tsx"
156
+ },
157
+ "./redirect-paste": {
158
+ "types": "./dist/forms/redirect-paste/redirect-paste.d.ts",
159
+ "import": "./src/forms/redirect-paste/redirect-paste.tsx"
156
160
  },
157
161
  "./search-list": {
158
- "import": "./src/forms/search-list/search-list.tsx",
159
- "types": "./dist/forms/search-list/search-list.d.ts"
162
+ "types": "./dist/forms/search-list/search-list.d.ts",
163
+ "import": "./src/forms/search-list/search-list.tsx"
160
164
  },
161
165
  "./segmented-control": {
162
- "import": "./src/navigation/segmented-control/segmented-control.tsx",
163
- "types": "./dist/navigation/segmented-control/segmented-control.d.ts"
166
+ "types": "./dist/navigation/segmented-control/segmented-control.d.ts",
167
+ "import": "./src/navigation/segmented-control/segmented-control.tsx"
164
168
  },
165
169
  "./select": {
166
- "import": "./src/forms/select/select.tsx",
167
- "types": "./dist/forms/select/select.d.ts"
170
+ "types": "./dist/forms/select/select.d.ts",
171
+ "import": "./src/forms/select/select.tsx"
168
172
  },
173
+ "./select.css": "./src/forms/select/select.css",
169
174
  "./split-button": {
170
- "import": "./src/actions/split-button/split-button.tsx",
171
- "types": "./dist/actions/split-button/split-button.d.ts"
175
+ "types": "./dist/actions/split-button/split-button.d.ts",
176
+ "import": "./src/actions/split-button/split-button.tsx"
172
177
  },
173
178
  "./switch": {
174
- "import": "./src/forms/switch/switch.tsx",
175
- "types": "./dist/forms/switch/switch.d.ts"
179
+ "types": "./dist/forms/switch/switch.d.ts",
180
+ "import": "./src/forms/switch/switch.tsx"
176
181
  },
177
182
  "./tab-state-indicator": {
178
- "import": "./src/navigation/tab-state-indicator.tsx",
179
- "types": "./dist/navigation/tab-state-indicator.d.ts"
183
+ "types": "./dist/navigation/tab-state-indicator.d.ts",
184
+ "import": "./src/navigation/tab-state-indicator.tsx"
180
185
  },
181
186
  "./tabs": {
182
- "import": "./src/navigation/tabs/tabs.tsx",
183
- "types": "./dist/navigation/tabs/tabs.d.ts"
187
+ "types": "./dist/navigation/tabs/tabs.d.ts",
188
+ "import": "./src/navigation/tabs/tabs.tsx"
184
189
  },
185
190
  "./text-input": {
186
- "import": "./src/forms/text-input/text-input.tsx",
187
- "types": "./dist/forms/text-input/text-input.d.ts"
191
+ "types": "./dist/forms/text-input/text-input.d.ts",
192
+ "import": "./src/forms/text-input/text-input.tsx"
188
193
  },
189
194
  "./text-input.css": "./src/forms/text-input/text-input.css",
190
195
  "./textarea": {
191
- "import": "./src/forms/textarea/textarea.tsx",
192
- "types": "./dist/forms/textarea/textarea.d.ts"
196
+ "types": "./dist/forms/textarea/textarea.d.ts",
197
+ "import": "./src/forms/textarea/textarea.tsx"
193
198
  },
194
199
  "./typeahead": {
195
- "import": "./src/forms/typeahead/typeahead.tsx",
196
- "types": "./dist/forms/typeahead/typeahead.d.ts"
200
+ "types": "./dist/forms/typeahead/typeahead.d.ts",
201
+ "import": "./src/forms/typeahead/typeahead.tsx"
197
202
  },
198
203
  "./slash": {
199
- "import": "./src/typography/slash/slash.tsx",
200
- "types": "./dist/typography/slash/slash.d.ts"
204
+ "types": "./dist/typography/slash/slash.d.ts",
205
+ "import": "./src/typography/slash/slash.tsx"
201
206
  },
202
207
  "./text-shimmer": {
203
- "import": "./src/typography/text-shimmer/text-shimmer.tsx",
204
- "types": "./dist/typography/text-shimmer/text-shimmer.d.ts"
208
+ "types": "./dist/typography/text-shimmer/text-shimmer.d.ts",
209
+ "import": "./src/typography/text-shimmer/text-shimmer.tsx"
205
210
  },
206
211
  "./toast": {
207
- "import": "./src/feedback/toast/toast.tsx",
208
- "types": "./dist/feedback/toast/toast.d.ts"
212
+ "types": "./dist/feedback/toast/toast.d.ts",
213
+ "import": "./src/feedback/toast/toast.tsx"
209
214
  },
210
215
  "./tooltip": {
211
- "import": "./src/overlays/tooltip/tooltip.tsx",
212
- "types": "./dist/overlays/tooltip/tooltip.d.ts"
216
+ "types": "./dist/overlays/tooltip/tooltip.d.ts",
217
+ "import": "./src/overlays/tooltip/tooltip.tsx"
213
218
  },
214
219
  "./wordmark": {
215
- "import": "./src/typography/wordmark/wordmark.tsx",
216
- "types": "./dist/typography/wordmark/wordmark.d.ts"
220
+ "types": "./dist/typography/wordmark/wordmark.d.ts",
221
+ "import": "./src/typography/wordmark/wordmark.tsx"
217
222
  },
218
223
  "./*": {
219
- "import": "./src/components/*.tsx",
220
- "types": "./dist/components/*.d.ts"
224
+ "types": "./dist/components/*.d.ts",
225
+ "import": "./src/components/*.tsx"
221
226
  },
222
227
  "./i18n/*": {
223
- "import": "./src/i18n/*.ts",
224
- "types": "./dist/i18n/*.d.ts"
228
+ "types": "./dist/i18n/*.d.ts",
229
+ "import": "./src/i18n/*.ts"
225
230
  },
226
231
  "./hooks": {
227
- "import": "./src/hooks/index.ts",
228
- "types": "./dist/hooks/index.d.ts"
232
+ "types": "./dist/hooks/index.d.ts",
233
+ "import": "./src/hooks/index.ts"
229
234
  },
230
235
  "./context": {
231
- "import": "./src/context/index.ts",
232
- "types": "./dist/context/index.d.ts"
236
+ "types": "./dist/context/index.d.ts",
237
+ "import": "./src/context/index.ts"
233
238
  },
234
239
  "./context/*": {
235
- "import": "./src/context/*.tsx",
236
- "types": "./dist/context/*.d.ts"
240
+ "types": "./dist/context/*.d.ts",
241
+ "import": "./src/context/*.tsx"
237
242
  },
238
243
  "./storybook/scaffold": {
239
- "import": "./src/storybook/scaffold.tsx",
240
- "types": "./dist/storybook/scaffold.d.ts"
244
+ "types": "./dist/storybook/scaffold.d.ts",
245
+ "import": "./src/storybook/scaffold.tsx"
241
246
  },
242
247
  "./storybook/fixtures": {
243
- "import": "./src/storybook/fixtures.ts",
244
- "types": "./dist/storybook/fixtures.d.ts"
248
+ "types": "./dist/storybook/fixtures.d.ts",
249
+ "import": "./src/storybook/fixtures.ts"
245
250
  },
246
251
  "./styles": "./src/styles/index.css",
247
252
  "./styles/tokens": "./src/styles/tokens/index.css",
248
253
  "./styles/tokens/*": "./src/styles/tokens/*",
249
254
  "./styles/tailwind": "./src/styles/tailwind/index.css",
250
255
  "./theme": {
251
- "import": "./src/theme/index.ts",
252
- "types": "./dist/theme/index.d.ts"
256
+ "types": "./dist/theme/index.d.ts",
257
+ "import": "./src/theme/index.ts"
253
258
  },
254
259
  "./theme/*": {
255
- "import": "./src/theme/*.ts",
256
- "types": "./dist/theme/*.d.ts"
260
+ "types": "./dist/theme/*.d.ts",
261
+ "import": "./src/theme/*.ts"
257
262
  },
258
263
  "./theme/context": {
259
- "import": "./src/theme/context.tsx",
260
- "types": "./dist/theme/context.d.ts"
264
+ "types": "./dist/theme/context.d.ts",
265
+ "import": "./src/theme/context.tsx"
261
266
  },
262
267
  "./icons/provider": {
263
- "import": "./src/components/provider-icons/types.ts",
264
- "types": "./dist/components/provider-icons/types.d.ts"
268
+ "types": "./dist/components/provider-icons/types.d.ts",
269
+ "import": "./src/components/provider-icons/types.ts"
265
270
  },
266
271
  "./icons/file-type": {
267
- "import": "./src/components/file-icons/types.ts",
268
- "types": "./dist/components/file-icons/types.d.ts"
272
+ "types": "./dist/components/file-icons/types.d.ts",
273
+ "import": "./src/components/file-icons/types.ts"
269
274
  },
270
275
  "./icons/file-type-name": {
271
- "import": "./src/components/file-icons/choose-icon-name.ts",
272
- "types": "./dist/components/file-icons/choose-icon-name.d.ts"
276
+ "types": "./dist/components/file-icons/choose-icon-name.d.ts",
277
+ "import": "./src/components/file-icons/choose-icon-name.ts"
273
278
  },
274
279
  "./icons/app": {
275
- "import": "./src/components/app-icons/types.ts",
276
- "types": "./dist/components/app-icons/types.d.ts"
280
+ "types": "./dist/components/app-icons/types.d.ts",
281
+ "import": "./src/components/app-icons/types.ts"
277
282
  },
278
283
  "./fonts/*": "./src/assets/fonts/*",
279
284
  "./audio/*": "./src/assets/audio/*"
@@ -289,7 +294,7 @@
289
294
  "generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
290
295
  },
291
296
  "devDependencies": {
292
- "@hona/strobe": "0.14.0",
297
+ "@hona/strobe": "0.34.0",
293
298
  "@solidjs/meta": "0.29.4",
294
299
  "@tsconfig/node22": "22.0.2",
295
300
  "@types/bun": "1.4.3",
@@ -304,7 +309,7 @@
304
309
  "dependencies": {
305
310
  "@kitlangton/solid-motion": "0.2.2",
306
311
  "@kobalte/core": "0.13.13",
307
- "@opencode/util": "2.2.6",
312
+ "@opencode/util": "2.3.0",
308
313
  "@pierre/diffs": "1.6.1",
309
314
  "@pierre/highlights": "0.2.0",
310
315
  "@solid-primitives/event-listener": "2.4.6",
@@ -0,0 +1,95 @@
1
+ [data-component="diagram-preview"] {
2
+ position: fixed;
3
+ inset: 0;
4
+ z-index: 50;
5
+ pointer-events: none;
6
+
7
+ /* The diagram is shown over the dialog stack's overlay, fitted to the window with room for the controls under it. */
8
+ [data-slot="diagram-preview-content"] {
9
+ position: absolute;
10
+ inset: 0;
11
+ pointer-events: auto;
12
+
13
+ &:focus-visible {
14
+ outline: none;
15
+ }
16
+ }
17
+
18
+ @media (prefers-reduced-motion: no-preference) {
19
+ [data-slot="diagram-preview-content"][data-expanded] {
20
+ animation: diagram-preview-in 150ms ease-out;
21
+ }
22
+ }
23
+
24
+ [data-slot="diagram-preview-body"] {
25
+ position: absolute;
26
+ inset: 44px clamp(8px, 3vw, 36px);
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ padding: 12px;
31
+ overflow: hidden;
32
+ user-select: none;
33
+ /* A zoomed diagram fades out in the padding instead of being cut at the edge; a fitted one never reaches it. */
34
+ mask-image:
35
+ linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent),
36
+ linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 12px), transparent);
37
+ mask-composite: intersect;
38
+
39
+ &[data-zoomed] {
40
+ cursor: grab;
41
+ touch-action: pinch-zoom;
42
+ }
43
+
44
+ &[data-dragging] {
45
+ cursor: grabbing;
46
+ }
47
+ }
48
+
49
+ [data-slot="diagram-preview-canvas"] {
50
+ flex: none;
51
+ border-radius: var(--radius-md);
52
+ background: var(--v2-background-bg-layer-02);
53
+ box-shadow: inset 0 0 0 0.5px var(--v2-border-border-base);
54
+ transform-origin: center;
55
+
56
+ > svg {
57
+ display: block;
58
+ }
59
+ }
60
+
61
+ [data-slot="diagram-preview-controls"] {
62
+ position: absolute;
63
+ bottom: 12px;
64
+ inset-inline: 0;
65
+ width: fit-content;
66
+ margin-inline: auto;
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 2px;
70
+ padding: 2px;
71
+ border-radius: 8px;
72
+ background: var(--v2-background-bg-layer-01);
73
+ box-shadow: var(--v2-elevation-floating);
74
+ }
75
+
76
+ [data-slot="diagram-preview-zoom-level"] {
77
+ min-width: 52px;
78
+ justify-content: center;
79
+ font-variant-numeric: tabular-nums;
80
+ }
81
+
82
+ [data-slot="diagram-preview-divider"] {
83
+ width: 1px;
84
+ height: 16px;
85
+ margin-inline: 2px;
86
+ background: var(--v2-border-border-base);
87
+ }
88
+ }
89
+
90
+ @keyframes diagram-preview-in {
91
+ from {
92
+ opacity: 0;
93
+ transform: scale(0.98);
94
+ }
95
+ }