@appica/ui-react 1.4.0 → 1.5.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 (68) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +8 -2
  3. package/agent-rules.md +8 -2
  4. package/appica.css +2 -2
  5. package/dist/components/badge/badge.js +1 -1
  6. package/dist/components/badge/badge.js.map +1 -1
  7. package/dist/components/button/button-variants.js +1 -1
  8. package/dist/components/button/button-variants.js.map +1 -1
  9. package/dist/components/card/card.js +1 -1
  10. package/dist/components/card/card.js.map +1 -1
  11. package/dist/components/carousel/carousel.d.ts.map +1 -1
  12. package/dist/components/carousel/carousel.js +12 -4
  13. package/dist/components/carousel/carousel.js.map +1 -1
  14. package/dist/components/checkbox/checkbox.js +1 -1
  15. package/dist/components/checkbox/checkbox.js.map +1 -1
  16. package/dist/components/command-palette/command-palette.d.ts +91 -0
  17. package/dist/components/command-palette/command-palette.d.ts.map +1 -0
  18. package/dist/components/command-palette/command-palette.js +376 -0
  19. package/dist/components/command-palette/command-palette.js.map +1 -0
  20. package/dist/components/date-field/date-field.js +1 -1
  21. package/dist/components/date-field/date-field.js.map +1 -1
  22. package/dist/components/date-picker/date-picker.js +1 -1
  23. package/dist/components/date-picker/date-picker.js.map +1 -1
  24. package/dist/components/input/input-variants.js +2 -2
  25. package/dist/components/input/input-variants.js.map +1 -1
  26. package/dist/components/radio/radio.js +1 -1
  27. package/dist/components/radio/radio.js.map +1 -1
  28. package/dist/components/splitter/splitter.d.ts +57 -0
  29. package/dist/components/splitter/splitter.d.ts.map +1 -0
  30. package/dist/components/splitter/splitter.js +395 -0
  31. package/dist/components/splitter/splitter.js.map +1 -0
  32. package/dist/components/textarea/textarea.js +1 -1
  33. package/dist/components/textarea/textarea.js.map +1 -1
  34. package/dist/components/time-field/time-field.js +1 -1
  35. package/dist/components/time-field/time-field.js.map +1 -1
  36. package/dist/components/toc/toc.d.ts +6 -1
  37. package/dist/components/toc/toc.d.ts.map +1 -1
  38. package/dist/components/toc/toc.js +15 -7
  39. package/dist/components/toc/toc.js.map +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +2 -0
  43. package/dist/index.js.map +1 -1
  44. package/package.json +24 -14
  45. package/src/components/badge/badge.tsx +1 -1
  46. package/src/components/button/button-variants.ts +1 -1
  47. package/src/components/card/card.tsx +1 -1
  48. package/src/components/carousel/carousel.test.tsx +134 -1
  49. package/src/components/carousel/carousel.tsx +13 -4
  50. package/src/components/checkbox/checkbox.tsx +1 -1
  51. package/src/components/command-palette/command-palette.test.tsx +280 -0
  52. package/src/components/command-palette/command-palette.tsx +544 -0
  53. package/src/components/compare-slider/compare-slider.test.tsx +8 -7
  54. package/src/components/date-field/date-field.tsx +1 -1
  55. package/src/components/date-picker/date-picker.tsx +1 -1
  56. package/src/components/input/input-variants.ts +2 -2
  57. package/src/components/radio/radio.tsx +1 -1
  58. package/src/components/rating/rating.test.tsx +10 -3
  59. package/src/components/splitter/splitter.test.tsx +415 -0
  60. package/src/components/splitter/splitter.tsx +555 -0
  61. package/src/components/textarea/textarea.tsx +1 -1
  62. package/src/components/time-field/time-field.tsx +1 -1
  63. package/src/components/toc/toc.test.tsx +15 -0
  64. package/src/components/toc/toc.tsx +22 -7
  65. package/src/index.ts +2 -0
  66. package/src/test/css.ts +9 -0
  67. package/src/test/setup.ts +13 -0
  68. package/styles.css +3 -0
@@ -0,0 +1,415 @@
1
+ import * as React from 'react'
2
+ import { renderToString } from 'react-dom/server'
3
+ import { render, screen } from '@testing-library/react'
4
+ import userEvent from '@testing-library/user-event'
5
+ import { afterEach, describe, expect, it, vi } from 'vitest'
6
+ import { axe } from 'vitest-axe'
7
+ import { Splitter, SplitterHandle, SplitterPanel, type SplitterPanelProps, type SplitterProps } from './splitter'
8
+ import { DirectionProvider } from '../../providers/direction-provider'
9
+ import { cssValue } from '../../test/css'
10
+
11
+ const RECT = { x: 0, y: 0, top: 0, left: 0, right: 200, bottom: 100, width: 200, height: 100 }
12
+
13
+ function stubSize() {
14
+ vi.spyOn(HTMLDivElement.prototype, 'getBoundingClientRect').mockImplementation(
15
+ () => ({ ...RECT, toJSON: () => RECT }) as DOMRect,
16
+ )
17
+ }
18
+
19
+ function renderSplitter(
20
+ props: Partial<SplitterProps> = {},
21
+ first: Partial<SplitterPanelProps> = {},
22
+ second: Partial<SplitterPanelProps> = {},
23
+ ) {
24
+ return render(
25
+ <Splitter data-testid="root" {...props}>
26
+ <SplitterPanel id="first" {...first}>
27
+ First
28
+ </SplitterPanel>
29
+ <SplitterHandle aria-label="Resize first" />
30
+ <SplitterPanel id="second" {...second}>
31
+ Second
32
+ </SplitterPanel>
33
+ </Splitter>,
34
+ )
35
+ }
36
+
37
+ const root = () => screen.getByTestId('root')
38
+ const handle = () => screen.getByRole('separator')
39
+ const panel = (id: string) => document.getElementById(id) as HTMLElement
40
+ const flex = (size: number) => cssValue('flex', `${size} 1 0px`)
41
+
42
+ async function press(keys: string) {
43
+ const user = userEvent.setup()
44
+ handle().focus()
45
+ await user.keyboard(keys)
46
+ }
47
+
48
+ afterEach(() => {
49
+ vi.restoreAllMocks()
50
+ })
51
+
52
+ describe('Splitter', () => {
53
+ it('renders its parts with slots and the separator ARIA', () => {
54
+ renderSplitter({ defaultSizes: [30, 70] }, { minSize: 10, maxSize: 80 })
55
+ expect(root()).toHaveAttribute('data-slot', 'splitter')
56
+ expect(root()).toHaveAttribute('data-orientation', 'horizontal')
57
+ expect(panel('first')).toHaveAttribute('data-slot', 'splitter-panel')
58
+ expect(handle()).toHaveAttribute('data-slot', 'splitter-handle')
59
+ expect(handle()).toHaveAttribute('data-orientation', 'horizontal')
60
+ expect(handle()).toHaveAttribute('tabindex', '0')
61
+ expect(handle()).toHaveAttribute('aria-orientation', 'vertical')
62
+ expect(handle()).toHaveAttribute('aria-valuenow', '30')
63
+ expect(handle()).toHaveAttribute('aria-valuemin', '10')
64
+ expect(handle()).toHaveAttribute('aria-valuemax', '80')
65
+ expect(handle()).toHaveAttribute('aria-controls', 'first')
66
+ expect(handle()).toHaveAttribute('data-base-ui-swipe-ignore', '')
67
+ })
68
+
69
+ it('reports the limits both neighboring panels allow', () => {
70
+ renderSplitter({ defaultSizes: [30, 70] }, { minSize: 20 }, { minSize: 30, maxSize: 75 })
71
+ expect(handle()).toHaveAttribute('aria-valuemin', '25')
72
+ expect(handle()).toHaveAttribute('aria-valuemax', '70')
73
+ })
74
+
75
+ it('reports a horizontal separator when the panels stack vertically', () => {
76
+ renderSplitter({ orientation: 'vertical' })
77
+ expect(root()).toHaveAttribute('data-orientation', 'vertical')
78
+ expect(handle()).toHaveAttribute('data-orientation', 'vertical')
79
+ expect(handle()).toHaveAttribute('aria-orientation', 'horizontal')
80
+ })
81
+
82
+ it('gives each panel an id when none is passed', () => {
83
+ render(
84
+ <Splitter>
85
+ <SplitterPanel data-testid="generated">A</SplitterPanel>
86
+ <SplitterHandle aria-label="Resize" />
87
+ <SplitterPanel>B</SplitterPanel>
88
+ </Splitter>,
89
+ )
90
+ const id = screen.getByTestId('generated').id
91
+ expect(id).not.toBe('')
92
+ expect(handle()).toHaveAttribute('aria-controls', id)
93
+ })
94
+
95
+ it('splits evenly without defaultSizes', () => {
96
+ render(
97
+ <Splitter>
98
+ <SplitterPanel id="a">A</SplitterPanel>
99
+ <SplitterHandle aria-label="Resize A" />
100
+ <SplitterPanel id="b">B</SplitterPanel>
101
+ <SplitterHandle aria-label="Resize B" />
102
+ <SplitterPanel id="c">C</SplitterPanel>
103
+ </Splitter>,
104
+ )
105
+ for (const id of ['a', 'b', 'c']) expect(panel(id).style.flex).toBe(flex(100 / 3))
106
+ const [left, right] = screen.getAllByRole('separator')
107
+ expect(left).toHaveAttribute('aria-valuenow', '33')
108
+ expect(left).toHaveAttribute('aria-controls', 'a')
109
+ expect(right).toHaveAttribute('aria-controls', 'b')
110
+ })
111
+
112
+ it('applies defaultSizes, scaling them to 100 when they do not add up', () => {
113
+ const { unmount } = renderSplitter({ defaultSizes: [30, 70] })
114
+ expect(panel('first').style.flex).toBe(flex(30))
115
+ expect(panel('second').style.flex).toBe(flex(70))
116
+ unmount()
117
+
118
+ renderSplitter({ defaultSizes: [1, 3] })
119
+ expect(panel('first').style.flex).toBe(flex(25))
120
+ expect(handle()).toHaveAttribute('aria-valuenow', '25')
121
+ })
122
+
123
+ it('lays the panels out from defaultSizes in server-rendered markup', () => {
124
+ const container = document.createElement('div')
125
+ container.innerHTML = renderToString(
126
+ <Splitter defaultSizes={[30, 70]}>
127
+ <SplitterPanel id="server-first">First</SplitterPanel>
128
+ <SplitterHandle aria-label="Resize" />
129
+ <SplitterPanel id="server-second">Second</SplitterPanel>
130
+ </Splitter>,
131
+ )
132
+ expect(container.querySelector<HTMLElement>('#server-first')?.style.flex).toBe(flex(30))
133
+ expect(container.querySelector<HTMLElement>('#server-second')?.style.flex).toBe(flex(70))
134
+ expect(container.querySelector('[role="separator"]')).toHaveAttribute('aria-valuenow', '30')
135
+ })
136
+
137
+ it('moves with the arrow keys, clamped by both panels', async () => {
138
+ const onSizesChange = vi.fn()
139
+ const onSizesCommitted = vi.fn()
140
+ renderSplitter({ onSizesChange, onSizesCommitted }, { minSize: 20, maxSize: 80 }, { minSize: 40 })
141
+
142
+ await press('{ArrowRight}')
143
+ expect(handle()).toHaveAttribute('aria-valuenow', '55')
144
+ expect(onSizesChange).toHaveBeenLastCalledWith([55, 45])
145
+ expect(onSizesCommitted).toHaveBeenLastCalledWith([55, 45])
146
+
147
+ await press('{ArrowRight}{ArrowRight}')
148
+ expect(handle()).toHaveAttribute('aria-valuenow', '60')
149
+ expect(panel('second').style.flex).toBe(flex(40))
150
+ expect(onSizesChange).toHaveBeenCalledTimes(2)
151
+
152
+ await press('{ArrowLeft}'.repeat(10))
153
+ expect(handle()).toHaveAttribute('aria-valuenow', '20')
154
+ })
155
+
156
+ it('stops at its own maxSize', async () => {
157
+ renderSplitter({ keyboardStep: 10 }, { maxSize: 65 })
158
+ await press('{ArrowRight}{ArrowRight}')
159
+ expect(handle()).toHaveAttribute('aria-valuenow', '65')
160
+ })
161
+
162
+ it('jumps to the primary panel minimum with Home and its maximum with End', async () => {
163
+ renderSplitter({}, { minSize: 10, maxSize: 70 }, { minSize: 20 })
164
+ await press('{Home}')
165
+ expect(handle()).toHaveAttribute('aria-valuenow', '10')
166
+ await press('{End}')
167
+ expect(handle()).toHaveAttribute('aria-valuenow', '70')
168
+ })
169
+
170
+ it('collapses a collapsible panel with Home, and toggles it with Enter', async () => {
171
+ const onSizesCommitted = vi.fn()
172
+ renderSplitter({ defaultSizes: [30, 70], onSizesCommitted }, { minSize: 20, collapsible: true })
173
+
174
+ expect(handle()).toHaveAttribute('aria-valuemin', '0')
175
+ expect(panel('first')).not.toHaveAttribute('data-collapsed')
176
+
177
+ await press('{Enter}')
178
+ expect(handle()).toHaveAttribute('aria-valuenow', '0')
179
+ expect(panel('first')).toHaveAttribute('data-collapsed')
180
+ expect(onSizesCommitted).toHaveBeenLastCalledWith([0, 100])
181
+
182
+ await press('{Enter}')
183
+ expect(handle()).toHaveAttribute('aria-valuenow', '30')
184
+ expect(panel('first')).not.toHaveAttribute('data-collapsed')
185
+
186
+ await press('{Home}')
187
+ expect(panel('first')).toHaveAttribute('data-collapsed')
188
+ await press('{ArrowRight}')
189
+ expect(handle()).toHaveAttribute('aria-valuenow', '20')
190
+ })
191
+
192
+ it('ignores Enter on a panel that cannot collapse', async () => {
193
+ const onSizesChange = vi.fn()
194
+ renderSplitter({ onSizesChange })
195
+ await press('{Enter}')
196
+ expect(onSizesChange).not.toHaveBeenCalled()
197
+ })
198
+
199
+ it('inverts Left and Right in a right-to-left layout', async () => {
200
+ render(
201
+ <DirectionProvider dir="rtl">
202
+ <Splitter>
203
+ <SplitterPanel>A</SplitterPanel>
204
+ <SplitterHandle aria-label="Resize" />
205
+ <SplitterPanel>B</SplitterPanel>
206
+ </Splitter>
207
+ </DirectionProvider>,
208
+ )
209
+ await press('{ArrowLeft}')
210
+ expect(handle()).toHaveAttribute('aria-valuenow', '55')
211
+ await press('{ArrowRight}{ArrowRight}')
212
+ expect(handle()).toHaveAttribute('aria-valuenow', '45')
213
+ })
214
+
215
+ it('moves with Up and Down when vertical, and ignores Left and Right', async () => {
216
+ renderSplitter({ orientation: 'vertical' })
217
+ await press('{ArrowDown}')
218
+ expect(handle()).toHaveAttribute('aria-valuenow', '55')
219
+ await press('{ArrowUp}{ArrowUp}')
220
+ expect(handle()).toHaveAttribute('aria-valuenow', '45')
221
+ await press('{ArrowRight}{ArrowLeft}')
222
+ expect(handle()).toHaveAttribute('aria-valuenow', '45')
223
+ })
224
+
225
+ it('follows a pointer drag and commits once on release', async () => {
226
+ stubSize()
227
+ const onSizesChange = vi.fn()
228
+ const onSizesCommitted = vi.fn()
229
+ const user = userEvent.setup()
230
+ renderSplitter({ onSizesChange, onSizesCommitted })
231
+
232
+ await user.pointer([
233
+ { keys: '[MouseLeft>]', target: handle(), coords: { clientX: 100, clientY: 50 } },
234
+ { target: handle(), coords: { clientX: 120, clientY: 50 } },
235
+ { target: handle(), coords: { clientX: 140, clientY: 50 } },
236
+ ])
237
+ expect(onSizesChange).toHaveBeenNthCalledWith(1, [60, 40])
238
+ expect(onSizesChange).toHaveBeenNthCalledWith(2, [70, 30])
239
+ expect(panel('first').style.flex).toBe(flex(70))
240
+ expect(root()).toHaveAttribute('data-dragging')
241
+ expect(handle()).toHaveAttribute('data-dragging')
242
+ expect(onSizesCommitted).not.toHaveBeenCalled()
243
+
244
+ await user.pointer({ keys: '[/MouseLeft]', target: handle() })
245
+ expect(onSizesCommitted).toHaveBeenCalledExactlyOnceWith([70, 30])
246
+ expect(root()).not.toHaveAttribute('data-dragging')
247
+ expect(handle()).not.toHaveAttribute('data-dragging')
248
+ })
249
+
250
+ it('drags the other way in a right-to-left layout, and along the height when vertical', async () => {
251
+ stubSize()
252
+ const user = userEvent.setup()
253
+ const { unmount } = render(
254
+ <DirectionProvider dir="rtl">
255
+ <Splitter>
256
+ <SplitterPanel>A</SplitterPanel>
257
+ <SplitterHandle aria-label="Resize" />
258
+ <SplitterPanel>B</SplitterPanel>
259
+ </Splitter>
260
+ </DirectionProvider>,
261
+ )
262
+ await user.pointer([
263
+ { keys: '[MouseLeft>]', target: handle(), coords: { clientX: 100, clientY: 50 } },
264
+ { target: handle(), coords: { clientX: 80, clientY: 50 } },
265
+ { keys: '[/MouseLeft]', target: handle() },
266
+ ])
267
+ expect(handle()).toHaveAttribute('aria-valuenow', '60')
268
+ unmount()
269
+
270
+ renderSplitter({ orientation: 'vertical' })
271
+ await user.pointer([
272
+ { keys: '[MouseLeft>]', target: handle(), coords: { clientX: 100, clientY: 50 } },
273
+ { target: handle(), coords: { clientX: 180, clientY: 60 } },
274
+ { keys: '[/MouseLeft]', target: handle() },
275
+ ])
276
+ expect(handle()).toHaveAttribute('aria-valuenow', '60')
277
+ })
278
+
279
+ it('snaps a collapsible panel shut past half its minSize, and open again past minSize', async () => {
280
+ stubSize()
281
+ const onSizesCommitted = vi.fn()
282
+ const user = userEvent.setup()
283
+ renderSplitter({ defaultSizes: [40, 60], onSizesCommitted }, { minSize: 20, collapsible: true })
284
+
285
+ await user.pointer([
286
+ { keys: '[MouseLeft>]', target: handle(), coords: { clientX: 80, clientY: 50 } },
287
+ { target: handle(), coords: { clientX: 30, clientY: 50 } },
288
+ ])
289
+ expect(handle()).toHaveAttribute('aria-valuenow', '20')
290
+ expect(panel('first')).not.toHaveAttribute('data-collapsed')
291
+
292
+ await user.pointer({ target: handle(), coords: { clientX: 18, clientY: 50 } })
293
+ expect(handle()).toHaveAttribute('aria-valuenow', '0')
294
+ expect(panel('first')).toHaveAttribute('data-collapsed')
295
+
296
+ await user.pointer({ target: handle(), coords: { clientX: 36, clientY: 50 } })
297
+ expect(panel('first')).toHaveAttribute('data-collapsed')
298
+
299
+ await user.pointer({ target: handle(), coords: { clientX: 50, clientY: 50 } })
300
+ expect(handle()).toHaveAttribute('aria-valuenow', '25')
301
+ expect(panel('first')).not.toHaveAttribute('data-collapsed')
302
+
303
+ await user.pointer({ keys: '[/MouseLeft]', target: handle() })
304
+ expect(onSizesCommitted).toHaveBeenCalledExactlyOnceWith([25, 75])
305
+ })
306
+
307
+ it('restores the size a drag collapsed from with Enter', async () => {
308
+ stubSize()
309
+ const user = userEvent.setup()
310
+ renderSplitter({ defaultSizes: [40, 60] }, { minSize: 20, collapsible: true })
311
+
312
+ await user.pointer([
313
+ { keys: '[MouseLeft>]', target: handle(), coords: { clientX: 80, clientY: 50 } },
314
+ { target: handle(), coords: { clientX: 0, clientY: 50 } },
315
+ { keys: '[/MouseLeft]', target: handle() },
316
+ ])
317
+ expect(panel('first')).toHaveAttribute('data-collapsed')
318
+ await press('{Enter}')
319
+ expect(handle()).toHaveAttribute('aria-valuenow', '40')
320
+ })
321
+
322
+ it('does not commit a press that never moves', async () => {
323
+ stubSize()
324
+ const onSizesCommitted = vi.fn()
325
+ const user = userEvent.setup()
326
+ renderSplitter({ onSizesCommitted })
327
+ await user.pointer({ keys: '[MouseLeft]', target: handle(), coords: { clientX: 100, clientY: 50 } })
328
+ expect(onSizesCommitted).not.toHaveBeenCalled()
329
+ })
330
+
331
+ it('reports changes but follows only the sizes prop while controlled', async () => {
332
+ const onSizesChange = vi.fn()
333
+ const { rerender } = renderSplitter({ sizes: [40, 60], onSizesChange })
334
+
335
+ await press('{ArrowRight}')
336
+ expect(onSizesChange).toHaveBeenCalledWith([45, 55])
337
+ expect(handle()).toHaveAttribute('aria-valuenow', '40')
338
+ expect(panel('first').style.flex).toBe(flex(40))
339
+
340
+ rerender(
341
+ <Splitter sizes={[45, 55]}>
342
+ <SplitterPanel id="first">First</SplitterPanel>
343
+ <SplitterHandle aria-label="Resize first" />
344
+ <SplitterPanel id="second">Second</SplitterPanel>
345
+ </Splitter>,
346
+ )
347
+ expect(handle()).toHaveAttribute('aria-valuenow', '45')
348
+ expect(panel('first').style.flex).toBe(flex(45))
349
+ })
350
+
351
+ it('reads panels in DOM order, including ones rendered by a wrapper or toggled off', () => {
352
+ function Sidebar() {
353
+ return <SplitterPanel id="sidebar">Sidebar</SplitterPanel>
354
+ }
355
+ function Layout({ preview }: { preview: boolean }) {
356
+ return (
357
+ <Splitter defaultSizes={[20, 50, 30]}>
358
+ <Sidebar />
359
+ <SplitterHandle aria-label="Resize sidebar" />
360
+ <SplitterPanel id="main">Main</SplitterPanel>
361
+ {preview ? <SplitterHandle aria-label="Resize main" /> : null}
362
+ {preview ? <SplitterPanel id="preview">Preview</SplitterPanel> : null}
363
+ </Splitter>
364
+ )
365
+ }
366
+
367
+ const { rerender } = render(<Layout preview />)
368
+ expect(screen.getByRole('separator', { name: 'Resize sidebar' })).toHaveAttribute('aria-controls', 'sidebar')
369
+ expect(screen.getByRole('separator', { name: 'Resize main' })).toHaveAttribute('aria-controls', 'main')
370
+ expect(panel('sidebar').style.flex).toBe(flex(20))
371
+ expect(panel('main').style.flex).toBe(flex(50))
372
+
373
+ rerender(<Layout preview={false} />)
374
+ expect(screen.getAllByRole('separator')).toHaveLength(1)
375
+ expect(panel('sidebar').style.flex).toBe(flex((20 * 100) / 70))
376
+ expect(panel('main').style.flex).toBe(flex((50 * 100) / 70))
377
+ })
378
+
379
+ it('renders a grip when asked', () => {
380
+ render(
381
+ <Splitter>
382
+ <SplitterPanel>A</SplitterPanel>
383
+ <SplitterHandle aria-label="Resize" grip />
384
+ <SplitterPanel>B</SplitterPanel>
385
+ </Splitter>,
386
+ )
387
+ expect(handle().querySelector('[data-slot="splitter-grip"]')).toHaveAttribute('aria-hidden', 'true')
388
+ })
389
+
390
+ it('throws outside a Splitter', () => {
391
+ vi.spyOn(console, 'error').mockImplementation(() => {})
392
+ expect(() => render(<SplitterPanel />)).toThrow('<SplitterPanel> must be used within <Splitter>')
393
+ })
394
+
395
+ it('has no accessibility violations', async () => {
396
+ const { container } = render(
397
+ <Splitter defaultSizes={[25, 50, 25]}>
398
+ <SplitterPanel minSize={10} collapsible>
399
+ Files
400
+ </SplitterPanel>
401
+ <SplitterHandle aria-label="Resize files" grip />
402
+ <SplitterPanel>
403
+ <Splitter orientation="vertical">
404
+ <SplitterPanel>Editor</SplitterPanel>
405
+ <SplitterHandle aria-label="Resize editor" />
406
+ <SplitterPanel>Terminal</SplitterPanel>
407
+ </Splitter>
408
+ </SplitterPanel>
409
+ <SplitterHandle aria-label="Resize editor area" />
410
+ <SplitterPanel>Outline</SplitterPanel>
411
+ </Splitter>,
412
+ )
413
+ expect(await axe(container)).toHaveNoViolations()
414
+ })
415
+ })