@opencode/ui 0.0.0-dev-1039 → 0.0.0-dev-1063

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "0.0.0-dev-1039",
3
+ "version": "0.0.0-dev-1063",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,244 +36,245 @@
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
156
  },
157
157
  "./search-list": {
158
- "import": "./src/forms/search-list/search-list.tsx",
159
- "types": "./dist/forms/search-list/search-list.d.ts"
158
+ "types": "./dist/forms/search-list/search-list.d.ts",
159
+ "import": "./src/forms/search-list/search-list.tsx"
160
160
  },
161
161
  "./segmented-control": {
162
- "import": "./src/navigation/segmented-control/segmented-control.tsx",
163
- "types": "./dist/navigation/segmented-control/segmented-control.d.ts"
162
+ "types": "./dist/navigation/segmented-control/segmented-control.d.ts",
163
+ "import": "./src/navigation/segmented-control/segmented-control.tsx"
164
164
  },
165
165
  "./select": {
166
- "import": "./src/forms/select/select.tsx",
167
- "types": "./dist/forms/select/select.d.ts"
166
+ "types": "./dist/forms/select/select.d.ts",
167
+ "import": "./src/forms/select/select.tsx"
168
168
  },
169
+ "./select.css": "./src/forms/select/select.css",
169
170
  "./split-button": {
170
- "import": "./src/actions/split-button/split-button.tsx",
171
- "types": "./dist/actions/split-button/split-button.d.ts"
171
+ "types": "./dist/actions/split-button/split-button.d.ts",
172
+ "import": "./src/actions/split-button/split-button.tsx"
172
173
  },
173
174
  "./switch": {
174
- "import": "./src/forms/switch/switch.tsx",
175
- "types": "./dist/forms/switch/switch.d.ts"
175
+ "types": "./dist/forms/switch/switch.d.ts",
176
+ "import": "./src/forms/switch/switch.tsx"
176
177
  },
177
178
  "./tab-state-indicator": {
178
- "import": "./src/navigation/tab-state-indicator.tsx",
179
- "types": "./dist/navigation/tab-state-indicator.d.ts"
179
+ "types": "./dist/navigation/tab-state-indicator.d.ts",
180
+ "import": "./src/navigation/tab-state-indicator.tsx"
180
181
  },
181
182
  "./tabs": {
182
- "import": "./src/navigation/tabs/tabs.tsx",
183
- "types": "./dist/navigation/tabs/tabs.d.ts"
183
+ "types": "./dist/navigation/tabs/tabs.d.ts",
184
+ "import": "./src/navigation/tabs/tabs.tsx"
184
185
  },
185
186
  "./text-input": {
186
- "import": "./src/forms/text-input/text-input.tsx",
187
- "types": "./dist/forms/text-input/text-input.d.ts"
187
+ "types": "./dist/forms/text-input/text-input.d.ts",
188
+ "import": "./src/forms/text-input/text-input.tsx"
188
189
  },
189
190
  "./text-input.css": "./src/forms/text-input/text-input.css",
190
191
  "./textarea": {
191
- "import": "./src/forms/textarea/textarea.tsx",
192
- "types": "./dist/forms/textarea/textarea.d.ts"
192
+ "types": "./dist/forms/textarea/textarea.d.ts",
193
+ "import": "./src/forms/textarea/textarea.tsx"
193
194
  },
194
195
  "./typeahead": {
195
- "import": "./src/forms/typeahead/typeahead.tsx",
196
- "types": "./dist/forms/typeahead/typeahead.d.ts"
196
+ "types": "./dist/forms/typeahead/typeahead.d.ts",
197
+ "import": "./src/forms/typeahead/typeahead.tsx"
197
198
  },
198
199
  "./slash": {
199
- "import": "./src/typography/slash/slash.tsx",
200
- "types": "./dist/typography/slash/slash.d.ts"
200
+ "types": "./dist/typography/slash/slash.d.ts",
201
+ "import": "./src/typography/slash/slash.tsx"
201
202
  },
202
203
  "./text-shimmer": {
203
- "import": "./src/typography/text-shimmer/text-shimmer.tsx",
204
- "types": "./dist/typography/text-shimmer/text-shimmer.d.ts"
204
+ "types": "./dist/typography/text-shimmer/text-shimmer.d.ts",
205
+ "import": "./src/typography/text-shimmer/text-shimmer.tsx"
205
206
  },
206
207
  "./toast": {
207
- "import": "./src/feedback/toast/toast.tsx",
208
- "types": "./dist/feedback/toast/toast.d.ts"
208
+ "types": "./dist/feedback/toast/toast.d.ts",
209
+ "import": "./src/feedback/toast/toast.tsx"
209
210
  },
210
211
  "./tooltip": {
211
- "import": "./src/overlays/tooltip/tooltip.tsx",
212
- "types": "./dist/overlays/tooltip/tooltip.d.ts"
212
+ "types": "./dist/overlays/tooltip/tooltip.d.ts",
213
+ "import": "./src/overlays/tooltip/tooltip.tsx"
213
214
  },
214
215
  "./wordmark": {
215
- "import": "./src/typography/wordmark/wordmark.tsx",
216
- "types": "./dist/typography/wordmark/wordmark.d.ts"
216
+ "types": "./dist/typography/wordmark/wordmark.d.ts",
217
+ "import": "./src/typography/wordmark/wordmark.tsx"
217
218
  },
218
219
  "./*": {
219
- "import": "./src/components/*.tsx",
220
- "types": "./dist/components/*.d.ts"
220
+ "types": "./dist/components/*.d.ts",
221
+ "import": "./src/components/*.tsx"
221
222
  },
222
223
  "./i18n/*": {
223
- "import": "./src/i18n/*.ts",
224
- "types": "./dist/i18n/*.d.ts"
224
+ "types": "./dist/i18n/*.d.ts",
225
+ "import": "./src/i18n/*.ts"
225
226
  },
226
227
  "./hooks": {
227
- "import": "./src/hooks/index.ts",
228
- "types": "./dist/hooks/index.d.ts"
228
+ "types": "./dist/hooks/index.d.ts",
229
+ "import": "./src/hooks/index.ts"
229
230
  },
230
231
  "./context": {
231
- "import": "./src/context/index.ts",
232
- "types": "./dist/context/index.d.ts"
232
+ "types": "./dist/context/index.d.ts",
233
+ "import": "./src/context/index.ts"
233
234
  },
234
235
  "./context/*": {
235
- "import": "./src/context/*.tsx",
236
- "types": "./dist/context/*.d.ts"
236
+ "types": "./dist/context/*.d.ts",
237
+ "import": "./src/context/*.tsx"
237
238
  },
238
239
  "./storybook/scaffold": {
239
- "import": "./src/storybook/scaffold.tsx",
240
- "types": "./dist/storybook/scaffold.d.ts"
240
+ "types": "./dist/storybook/scaffold.d.ts",
241
+ "import": "./src/storybook/scaffold.tsx"
241
242
  },
242
243
  "./storybook/fixtures": {
243
- "import": "./src/storybook/fixtures.ts",
244
- "types": "./dist/storybook/fixtures.d.ts"
244
+ "types": "./dist/storybook/fixtures.d.ts",
245
+ "import": "./src/storybook/fixtures.ts"
245
246
  },
246
247
  "./styles": "./src/styles/index.css",
247
248
  "./styles/tokens": "./src/styles/tokens/index.css",
248
249
  "./styles/tokens/*": "./src/styles/tokens/*",
249
250
  "./styles/tailwind": "./src/styles/tailwind/index.css",
250
251
  "./theme": {
251
- "import": "./src/theme/index.ts",
252
- "types": "./dist/theme/index.d.ts"
252
+ "types": "./dist/theme/index.d.ts",
253
+ "import": "./src/theme/index.ts"
253
254
  },
254
255
  "./theme/*": {
255
- "import": "./src/theme/*.ts",
256
- "types": "./dist/theme/*.d.ts"
256
+ "types": "./dist/theme/*.d.ts",
257
+ "import": "./src/theme/*.ts"
257
258
  },
258
259
  "./theme/context": {
259
- "import": "./src/theme/context.tsx",
260
- "types": "./dist/theme/context.d.ts"
260
+ "types": "./dist/theme/context.d.ts",
261
+ "import": "./src/theme/context.tsx"
261
262
  },
262
263
  "./icons/provider": {
263
- "import": "./src/components/provider-icons/types.ts",
264
- "types": "./dist/components/provider-icons/types.d.ts"
264
+ "types": "./dist/components/provider-icons/types.d.ts",
265
+ "import": "./src/components/provider-icons/types.ts"
265
266
  },
266
267
  "./icons/file-type": {
267
- "import": "./src/components/file-icons/types.ts",
268
- "types": "./dist/components/file-icons/types.d.ts"
268
+ "types": "./dist/components/file-icons/types.d.ts",
269
+ "import": "./src/components/file-icons/types.ts"
269
270
  },
270
271
  "./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"
272
+ "types": "./dist/components/file-icons/choose-icon-name.d.ts",
273
+ "import": "./src/components/file-icons/choose-icon-name.ts"
273
274
  },
274
275
  "./icons/app": {
275
- "import": "./src/components/app-icons/types.ts",
276
- "types": "./dist/components/app-icons/types.d.ts"
276
+ "types": "./dist/components/app-icons/types.d.ts",
277
+ "import": "./src/components/app-icons/types.ts"
277
278
  },
278
279
  "./fonts/*": "./src/assets/fonts/*",
279
280
  "./audio/*": "./src/assets/audio/*"
@@ -289,7 +290,7 @@
289
290
  "generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
290
291
  },
291
292
  "devDependencies": {
292
- "@hona/strobe": "0.24.0",
293
+ "@hona/strobe": "0.26.0",
293
294
  "@solidjs/meta": "0.29.4",
294
295
  "@tsconfig/node22": "22.0.2",
295
296
  "@types/bun": "1.4.3",
@@ -304,7 +305,7 @@
304
305
  "dependencies": {
305
306
  "@kitlangton/solid-motion": "0.2.2",
306
307
  "@kobalte/core": "0.13.13",
307
- "@opencode/util": "0.0.0-dev-1039",
308
+ "@opencode/util": "0.0.0-dev-1063",
308
309
  "@pierre/diffs": "1.6.1",
309
310
  "@pierre/highlights": "0.2.0",
310
311
  "@solid-primitives/event-listener": "2.4.6",
@@ -25,6 +25,10 @@ function ToastRegion(props: ToastRegionProps) {
25
25
  // The Portal's container holds the toast region whenever it exists. Watching the container, not the whole body,
26
26
  // keeps every DOM change elsewhere in the page (each streamed delta, each mounted row) from scanning the document.
27
27
  const observe = (container: HTMLDivElement) => {
28
+ // A modal dialog hides what's outside it from assistive tech. The region is in the Portal's own div, so that div,
29
+ // rather than the toaster, is what the dialog would hide.
30
+ container.setAttribute("data-kb-top-layer", "")
31
+
28
32
  const sync = () => {
29
33
  container.querySelectorAll<HTMLElement>(".toast-v2-region .toast-v2").forEach((element) => {
30
34
  const hidden = element.dataset.visible === "false"
@@ -12,6 +12,5 @@
12
12
 
13
13
  &:focus {
14
14
  outline: none;
15
- box-shadow: var(--inline-input-shadow, 0 0 0 1px var(--v2-border-border-focus));
16
15
  }
17
16
  }
@@ -255,7 +255,13 @@ export function Select<T>(props: SelectProps<T>) {
255
255
  </span>
256
256
  </Trigger>
257
257
  <Portal>
258
- <Content class={local.contentClass} data-component="menu-v2-content" data-slot="select-v2-content">
258
+ {/* A modal dialog hides what's outside it from assistive tech, and this list is portaled outside it. */}
259
+ <Content
260
+ class={local.contentClass}
261
+ data-kb-top-layer=""
262
+ data-component="menu-v2-content"
263
+ data-slot="select-v2-content"
264
+ >
259
265
  <MenuScroll viewportRef={(element) => (scroller = element)}>
260
266
  <Listbox data-slot="select-v2-listbox" scrollRef={() => scroller} />
261
267
  </MenuScroll>
@@ -283,6 +283,7 @@ function MenuSubContent(props: ComponentProps<typeof DropdownMenu.SubContent>) {
283
283
  return (
284
284
  <DropdownMenu.SubContent
285
285
  {...r}
286
+ data-kb-top-layer=""
286
287
  data-component="menu-v2-content"
287
288
  data-appearance={ctx.appearance()}
288
289
  classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
@@ -360,6 +361,8 @@ function MenuContent(props: ComponentProps<typeof DropdownMenu.Content>) {
360
361
  {...r}
361
362
  onCloseAutoFocus={onCloseAutoFocus}
362
363
  onInteractOutside={onInteractOutside}
364
+ // A modal dialog hides what's outside it from assistive tech, and a non-modal menu is portaled outside it.
365
+ data-kb-top-layer=""
363
366
  data-component="menu-v2-content"
364
367
  data-appearance={ctx.appearance()}
365
368
  classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
@@ -214,6 +214,8 @@ function ActiveTooltip(props: TooltipProps) {
214
214
  />
215
215
  <Portal>
216
216
  <Content
217
+ // A modal dialog hides what's outside it from assistive tech, and this tip is portaled outside it.
218
+ data-kb-top-layer=""
217
219
  ref={(el) => {
218
220
  const theme = ref?.closest("[data-theme]")?.getAttribute("data-theme")
219
221