@opencode/ui 2.2.6 → 2.2.7
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 +120 -119
- package/src/feedback/toast/toast.tsx +4 -0
- package/src/forms/inline-input/inline-input.css +0 -1
- package/src/forms/search-list/search-list.tsx +14 -6
- package/src/forms/select/select.tsx +7 -1
- package/src/i18n/uk.ts +3 -3
- package/src/navigation/menu/menu.tsx +3 -0
- package/src/overlays/tooltip/tooltip.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
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
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"types": "./dist/data-display/accordion/accordion.d.ts",
|
|
40
|
+
"import": "./src/data-display/accordion/accordion.tsx"
|
|
41
41
|
},
|
|
42
42
|
"./activity-ring": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
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
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"types": "./dist/data-display/avatar/avatar.d.ts",
|
|
48
|
+
"import": "./src/data-display/avatar/avatar.tsx"
|
|
49
49
|
},
|
|
50
50
|
"./badge": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"types": "./dist/data-display/badge/badge.d.ts",
|
|
52
|
+
"import": "./src/data-display/badge/badge.tsx"
|
|
53
53
|
},
|
|
54
54
|
"./button": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
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
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"types": "./dist/forms/checkbox/checkbox.d.ts",
|
|
61
|
+
"import": "./src/forms/checkbox/checkbox.tsx"
|
|
62
62
|
},
|
|
63
63
|
"./dialog": {
|
|
64
|
-
"
|
|
65
|
-
"
|
|
64
|
+
"types": "./dist/overlays/dialog/dialog.d.ts",
|
|
65
|
+
"import": "./src/overlays/dialog/dialog.tsx"
|
|
66
66
|
},
|
|
67
67
|
"./diff-changes": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
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
|
-
"
|
|
73
|
-
"
|
|
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
|
-
"
|
|
78
|
-
"
|
|
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
|
-
"
|
|
83
|
-
"
|
|
82
|
+
"types": "./dist/icons/icon/icon.d.ts",
|
|
83
|
+
"import": "./src/icons/icon/icon.tsx"
|
|
84
84
|
},
|
|
85
85
|
"./icons/catalog": {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
86
|
+
"types": "./dist/icons/catalog.d.ts",
|
|
87
|
+
"import": "./src/icons/catalog.ts"
|
|
88
88
|
},
|
|
89
89
|
"./icon-button": {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
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
|
-
"
|
|
95
|
-
"
|
|
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
|
-
"
|
|
99
|
-
"
|
|
98
|
+
"types": "./dist/data-display/keybind/keybind.d.ts",
|
|
99
|
+
"import": "./src/data-display/keybind/keybind.tsx"
|
|
100
100
|
},
|
|
101
101
|
"./line-comment": {
|
|
102
|
-
"
|
|
103
|
-
"
|
|
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
|
-
"
|
|
107
|
-
"
|
|
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
|
-
"
|
|
111
|
-
"
|
|
110
|
+
"types": "./dist/feedback/loader/loader.d.ts",
|
|
111
|
+
"import": "./src/feedback/loader/loader.tsx"
|
|
112
112
|
},
|
|
113
113
|
"./mcp-sign-in": {
|
|
114
|
-
"
|
|
115
|
-
"
|
|
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
|
-
"
|
|
119
|
-
"
|
|
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
|
-
"
|
|
123
|
-
"
|
|
122
|
+
"types": "./dist/navigation/menu/menu.d.ts",
|
|
123
|
+
"import": "./src/navigation/menu/menu.tsx"
|
|
124
124
|
},
|
|
125
125
|
"./motion": {
|
|
126
|
-
"
|
|
127
|
-
"
|
|
126
|
+
"types": "./dist/motion/index.d.ts",
|
|
127
|
+
"import": "./src/motion/index.ts"
|
|
128
128
|
},
|
|
129
129
|
"./motion/solid": {
|
|
130
|
-
"
|
|
131
|
-
"
|
|
130
|
+
"types": "./dist/motion/solid.d.ts",
|
|
131
|
+
"import": "./src/motion/solid.ts"
|
|
132
132
|
},
|
|
133
133
|
"./motion-tuning": {
|
|
134
|
-
"
|
|
135
|
-
"
|
|
134
|
+
"types": "./dist/motion-tuning.d.ts",
|
|
135
|
+
"import": "./src/motion-tuning.ts"
|
|
136
136
|
},
|
|
137
137
|
"./motion-tuning-features": {
|
|
138
|
-
"
|
|
139
|
-
"
|
|
138
|
+
"types": "./dist/motion-tuning-features.d.ts",
|
|
139
|
+
"import": "./src/motion-tuning-features.ts"
|
|
140
140
|
},
|
|
141
141
|
"./motion-tuning-fields": {
|
|
142
|
-
"
|
|
143
|
-
"
|
|
142
|
+
"types": "./dist/motion-tuning-fields.d.ts",
|
|
143
|
+
"import": "./src/motion-tuning-fields.ts"
|
|
144
144
|
},
|
|
145
145
|
"./progress-circle": {
|
|
146
|
-
"
|
|
147
|
-
"
|
|
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
|
-
"
|
|
151
|
-
"
|
|
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
|
-
"
|
|
155
|
-
"
|
|
154
|
+
"types": "./dist/forms/radio/radio.d.ts",
|
|
155
|
+
"import": "./src/forms/radio/radio.tsx"
|
|
156
156
|
},
|
|
157
157
|
"./search-list": {
|
|
158
|
-
"
|
|
159
|
-
"
|
|
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
|
-
"
|
|
163
|
-
"
|
|
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
|
-
"
|
|
167
|
-
"
|
|
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
|
-
"
|
|
171
|
-
"
|
|
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
|
-
"
|
|
175
|
-
"
|
|
175
|
+
"types": "./dist/forms/switch/switch.d.ts",
|
|
176
|
+
"import": "./src/forms/switch/switch.tsx"
|
|
176
177
|
},
|
|
177
178
|
"./tab-state-indicator": {
|
|
178
|
-
"
|
|
179
|
-
"
|
|
179
|
+
"types": "./dist/navigation/tab-state-indicator.d.ts",
|
|
180
|
+
"import": "./src/navigation/tab-state-indicator.tsx"
|
|
180
181
|
},
|
|
181
182
|
"./tabs": {
|
|
182
|
-
"
|
|
183
|
-
"
|
|
183
|
+
"types": "./dist/navigation/tabs/tabs.d.ts",
|
|
184
|
+
"import": "./src/navigation/tabs/tabs.tsx"
|
|
184
185
|
},
|
|
185
186
|
"./text-input": {
|
|
186
|
-
"
|
|
187
|
-
"
|
|
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
|
-
"
|
|
192
|
-
"
|
|
192
|
+
"types": "./dist/forms/textarea/textarea.d.ts",
|
|
193
|
+
"import": "./src/forms/textarea/textarea.tsx"
|
|
193
194
|
},
|
|
194
195
|
"./typeahead": {
|
|
195
|
-
"
|
|
196
|
-
"
|
|
196
|
+
"types": "./dist/forms/typeahead/typeahead.d.ts",
|
|
197
|
+
"import": "./src/forms/typeahead/typeahead.tsx"
|
|
197
198
|
},
|
|
198
199
|
"./slash": {
|
|
199
|
-
"
|
|
200
|
-
"
|
|
200
|
+
"types": "./dist/typography/slash/slash.d.ts",
|
|
201
|
+
"import": "./src/typography/slash/slash.tsx"
|
|
201
202
|
},
|
|
202
203
|
"./text-shimmer": {
|
|
203
|
-
"
|
|
204
|
-
"
|
|
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
|
-
"
|
|
208
|
-
"
|
|
208
|
+
"types": "./dist/feedback/toast/toast.d.ts",
|
|
209
|
+
"import": "./src/feedback/toast/toast.tsx"
|
|
209
210
|
},
|
|
210
211
|
"./tooltip": {
|
|
211
|
-
"
|
|
212
|
-
"
|
|
212
|
+
"types": "./dist/overlays/tooltip/tooltip.d.ts",
|
|
213
|
+
"import": "./src/overlays/tooltip/tooltip.tsx"
|
|
213
214
|
},
|
|
214
215
|
"./wordmark": {
|
|
215
|
-
"
|
|
216
|
-
"
|
|
216
|
+
"types": "./dist/typography/wordmark/wordmark.d.ts",
|
|
217
|
+
"import": "./src/typography/wordmark/wordmark.tsx"
|
|
217
218
|
},
|
|
218
219
|
"./*": {
|
|
219
|
-
"
|
|
220
|
-
"
|
|
220
|
+
"types": "./dist/components/*.d.ts",
|
|
221
|
+
"import": "./src/components/*.tsx"
|
|
221
222
|
},
|
|
222
223
|
"./i18n/*": {
|
|
223
|
-
"
|
|
224
|
-
"
|
|
224
|
+
"types": "./dist/i18n/*.d.ts",
|
|
225
|
+
"import": "./src/i18n/*.ts"
|
|
225
226
|
},
|
|
226
227
|
"./hooks": {
|
|
227
|
-
"
|
|
228
|
-
"
|
|
228
|
+
"types": "./dist/hooks/index.d.ts",
|
|
229
|
+
"import": "./src/hooks/index.ts"
|
|
229
230
|
},
|
|
230
231
|
"./context": {
|
|
231
|
-
"
|
|
232
|
-
"
|
|
232
|
+
"types": "./dist/context/index.d.ts",
|
|
233
|
+
"import": "./src/context/index.ts"
|
|
233
234
|
},
|
|
234
235
|
"./context/*": {
|
|
235
|
-
"
|
|
236
|
-
"
|
|
236
|
+
"types": "./dist/context/*.d.ts",
|
|
237
|
+
"import": "./src/context/*.tsx"
|
|
237
238
|
},
|
|
238
239
|
"./storybook/scaffold": {
|
|
239
|
-
"
|
|
240
|
-
"
|
|
240
|
+
"types": "./dist/storybook/scaffold.d.ts",
|
|
241
|
+
"import": "./src/storybook/scaffold.tsx"
|
|
241
242
|
},
|
|
242
243
|
"./storybook/fixtures": {
|
|
243
|
-
"
|
|
244
|
-
"
|
|
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
|
-
"
|
|
252
|
-
"
|
|
252
|
+
"types": "./dist/theme/index.d.ts",
|
|
253
|
+
"import": "./src/theme/index.ts"
|
|
253
254
|
},
|
|
254
255
|
"./theme/*": {
|
|
255
|
-
"
|
|
256
|
-
"
|
|
256
|
+
"types": "./dist/theme/*.d.ts",
|
|
257
|
+
"import": "./src/theme/*.ts"
|
|
257
258
|
},
|
|
258
259
|
"./theme/context": {
|
|
259
|
-
"
|
|
260
|
-
"
|
|
260
|
+
"types": "./dist/theme/context.d.ts",
|
|
261
|
+
"import": "./src/theme/context.tsx"
|
|
261
262
|
},
|
|
262
263
|
"./icons/provider": {
|
|
263
|
-
"
|
|
264
|
-
"
|
|
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
|
-
"
|
|
268
|
-
"
|
|
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
|
-
"
|
|
272
|
-
"
|
|
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
|
-
"
|
|
276
|
-
"
|
|
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.
|
|
293
|
+
"@hona/strobe": "0.28.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": "2.2.
|
|
308
|
+
"@opencode/util": "2.2.7",
|
|
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"
|
|
@@ -187,8 +187,9 @@ export function SearchList<T>(props: {
|
|
|
187
187
|
createEffect(() => props.onActive?.(typeahead.activeItem()))
|
|
188
188
|
|
|
189
189
|
// A new query starts from the top. Results that arrive later for the same query bring a chosen row back into view,
|
|
190
|
-
// but leave the list where the wheel put it while the first row is still the default.
|
|
190
|
+
// but leave the list where the wheel put it while the first row is still the default or the pointer took the row.
|
|
191
191
|
let revealed = props.query
|
|
192
|
+
let pointed: string | undefined
|
|
192
193
|
|
|
193
194
|
createEffect(
|
|
194
195
|
on(
|
|
@@ -197,7 +198,7 @@ export function SearchList<T>(props: {
|
|
|
197
198
|
const fresh = props.query !== revealed
|
|
198
199
|
revealed = props.query
|
|
199
200
|
|
|
200
|
-
if (!fresh && typeahead.activeItem() === all[0]) return
|
|
201
|
+
if (!fresh && (typeahead.activeItem() === all[0] || activeKey() === pointed)) return
|
|
201
202
|
const frame = requestAnimationFrame(reveal)
|
|
202
203
|
onCleanup(() => cancelAnimationFrame(frame))
|
|
203
204
|
},
|
|
@@ -205,7 +206,12 @@ export function SearchList<T>(props: {
|
|
|
205
206
|
),
|
|
206
207
|
)
|
|
207
208
|
|
|
208
|
-
|
|
209
|
+
const choose = (key: string | undefined) => {
|
|
210
|
+
pointed = undefined
|
|
211
|
+
typeahead.setActive(key)
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
props.ref?.({ active: typeahead.activeItem, setActive: choose })
|
|
209
215
|
|
|
210
216
|
const onKeyDown = (event: KeyboardEvent) => {
|
|
211
217
|
if (event.isComposing) return
|
|
@@ -232,7 +238,7 @@ export function SearchList<T>(props: {
|
|
|
232
238
|
const target = all[step(from)]
|
|
233
239
|
|
|
234
240
|
if (target === undefined) return
|
|
235
|
-
|
|
241
|
+
choose(props.key(target))
|
|
236
242
|
reveal()
|
|
237
243
|
}
|
|
238
244
|
|
|
@@ -254,7 +260,7 @@ export function SearchList<T>(props: {
|
|
|
254
260
|
},
|
|
255
261
|
onInput: (event) => {
|
|
256
262
|
// A new query starts again from its first row.
|
|
257
|
-
|
|
263
|
+
choose(undefined)
|
|
258
264
|
props.onQuery(event.currentTarget.value)
|
|
259
265
|
},
|
|
260
266
|
onKeyDown,
|
|
@@ -274,7 +280,9 @@ export function SearchList<T>(props: {
|
|
|
274
280
|
},
|
|
275
281
|
onMouseMove: (event) => {
|
|
276
282
|
// A static cursor must not take the active row while the keyboard scrolls rows beneath it.
|
|
277
|
-
if (event.movementX
|
|
283
|
+
if (event.movementX === 0 && event.movementY === 0) return
|
|
284
|
+
pointed = key
|
|
285
|
+
typeahead.setActive(key)
|
|
278
286
|
},
|
|
279
287
|
// Focus stays in the field.
|
|
280
288
|
onMouseDown: (event) => event.preventDefault(),
|
|
@@ -255,7 +255,13 @@ export function Select<T>(props: SelectProps<T>) {
|
|
|
255
255
|
</span>
|
|
256
256
|
</Trigger>
|
|
257
257
|
<Portal>
|
|
258
|
-
|
|
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>
|
package/src/i18n/uk.ts
CHANGED
|
@@ -120,8 +120,8 @@ export const dict = {
|
|
|
120
120
|
"ui.sessionTurn.status.consideringNextSteps": "Розгляд наступних кроків",
|
|
121
121
|
|
|
122
122
|
"ui.messagePart.diagnostic.error": "Помилка",
|
|
123
|
-
"ui.messagePart.title.edit": "
|
|
124
|
-
"ui.messagePart.title.write": "
|
|
123
|
+
"ui.messagePart.title.edit": "Редагування",
|
|
124
|
+
"ui.messagePart.title.write": "Запис",
|
|
125
125
|
"ui.messagePart.option.typeOwnAnswer": "Введіть власну відповідь",
|
|
126
126
|
"ui.messagePart.review.title": "Перевірте свої відповіді",
|
|
127
127
|
"ui.messagePart.questions.dismissed": "Запитання відхилено",
|
|
@@ -240,7 +240,7 @@ export const dict = {
|
|
|
240
240
|
"ui.question.custom.placeholder": "Введіть свою відповідь…",
|
|
241
241
|
"ui.messagePart.context.match.one": "({{count}} збіг)",
|
|
242
242
|
"ui.messagePart.context.match.other": "({{count}} збігу)",
|
|
243
|
-
"ui.tool.execute": "
|
|
243
|
+
"ui.tool.execute": "Виконання",
|
|
244
244
|
"ui.tool.loadedFile": "Завантажено файл {{path}}",
|
|
245
245
|
"ui.tool.loadedSkill": "Завантажено навичку {{name}}",
|
|
246
246
|
"ui.tool.shell.writingCommand": "Записування команди...",
|
|
@@ -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
|
|