rift-ds 1.27.0 → 1.29.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.
- package/README.md +1 -1
- package/behaviors/typeahead.d.ts +27 -0
- package/behaviors/typeahead.js +30 -0
- package/bin/rift-ds.mjs +5 -4
- package/bin/templates/blocks/app/shader/page.module.css +75 -0
- package/bin/templates/blocks/app/shader/page.tsx +81 -0
- package/bin/templates/blocks/components/blocks/emberScene.ts +53 -0
- package/bin/templates/blocks/registry.json +11 -0
- package/chat/ChatWidget.d.ts +1 -1
- package/chat/threads.js +7 -4
- package/components/Button/Button.css +38 -0
- package/components/Button/Button.d.ts +12 -1
- package/components/Button/Button.js +2 -0
- package/components/Carousel/Carousel.js +4 -0
- package/components/ColorPicker/ColorPicker.js +5 -0
- package/components/CommandPalette/CommandPalette.js +1 -0
- package/components/ContextMenu/ContextMenu.js +8 -0
- package/components/DataTable/DataTable.css +1 -1
- package/components/Dropdown/Dropdown.js +13 -0
- package/components/DropdownMenu/DropdownMenu.js +12 -0
- package/components/EntitySwitcher/EntitySwitcher.js +23 -1
- package/components/FilterBar/FilterBar.js +8 -0
- package/components/ModelPicker/ModelPicker.js +8 -0
- package/components/RadioButton/RadioButton.js +19 -2
- package/components/RichDropdown/RichDropdown.js +8 -0
- package/components/SegmentedControl/SegmentedControl.js +6 -0
- package/components/ShaderScene/ShaderScene.d.ts +36 -13
- package/components/ShaderScene/ShaderScene.js +41 -3
- package/components/ShaderScene/assemble.d.ts +10 -3
- package/components/ShaderScene/assemble.js +29 -0
- package/components/ShaderScene/renderer.d.ts +12 -4
- package/components/ShaderScene/renderer.js +32 -20
- package/components/ShaderScene/scenes.d.ts +78 -0
- package/components/ShaderScene/scenes.js +933 -1
- package/components/ShaderScene/types.d.ts +52 -23
- package/components/ThemePicker/ThemePicker.js +14 -2
- package/components/TimePicker/TimePicker.js +8 -0
- package/components/Toolbar/Toolbar.d.ts +3 -1
- package/components/TreeView/TreeView.js +10 -0
- package/components/WorldMap/WorldMap.d.ts +1 -1
- package/components/WorldMap/WorldMap.js +1 -1
- package/components/keyboard-patterns.json.d.ts +625 -0
- package/components/keyboard-patterns.json.js +8 -0
- package/components/registry.d.ts +52 -0
- package/components/registry.js +13 -1
- package/components/registry.json +358 -179
- package/components/registry.json.d.ts +358 -179
- package/components/registry.json.js +1 -1
- package/package.json +1 -1
- package/tokens/presets/contrast.css +2 -2
- package/tokens/presets/coral.css +2 -2
- package/tokens/presets/forest.css +2 -2
- package/tokens/presets/gold.css +2 -2
- package/tokens/presets/mono.css +92 -98
- package/tokens/presets/pink.css +2 -2
- package/tokens/presets/plum.css +2 -2
- package/tokens/presets/terminal.css +2 -2
- package/tokens/presets/warm.css +2 -2
- package/tokens/presets/zest.css +2 -2
- package/tokens/registry.json +19 -18
- package/tokens/registry.json.d.ts +19 -18
- package/tokens/registry.json.js +1 -1
- package/tokens/tokens-dark.css +4 -1
- package/tokens/tokens-light.css +3 -0
- package/tokens/values.json.js +1 -1
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$comment": "The keyboard contract: one table of keys per WAI-ARIA pattern. A component joins a pattern through `pattern` in registry.json, or one of its parts does through `partPatterns`, and src/stories/KeyboardContract.stories.tsx presses every row here against every component that names the pattern, in both reading directions, so each row is a tested fact. The component pages, the per-component markdown and the published schemas print these rows; scripts/validate-keyboard-patterns.mjs holds the three together. A row's `id` is the check the story runs, `keys` are KeyboardEvent.key names (the space bar written Space), a row no key starts has empty `keys` and a `when` that says what does, and `inline: true` marks a pair that swaps in a right-to-left layout.",
|
|
3
|
+
"patterns": {
|
|
4
|
+
"tabs": {
|
|
5
|
+
"label": "Tabs",
|
|
6
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/tabs/",
|
|
7
|
+
"rows": [
|
|
8
|
+
{
|
|
9
|
+
"id": "tab-stop",
|
|
10
|
+
"keys": [
|
|
11
|
+
"Tab"
|
|
12
|
+
],
|
|
13
|
+
"text": "Moves focus into the list at the selected tab, and out of the list on the next press."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "next",
|
|
17
|
+
"keys": [
|
|
18
|
+
"ArrowRight"
|
|
19
|
+
],
|
|
20
|
+
"inline": true,
|
|
21
|
+
"text": "Moves to the next tab and selects it."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "previous",
|
|
25
|
+
"keys": [
|
|
26
|
+
"ArrowLeft"
|
|
27
|
+
],
|
|
28
|
+
"inline": true,
|
|
29
|
+
"text": "Moves to the previous tab and selects it."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "last",
|
|
33
|
+
"keys": [
|
|
34
|
+
"End"
|
|
35
|
+
],
|
|
36
|
+
"text": "Moves to the last tab and selects it."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "first",
|
|
40
|
+
"keys": [
|
|
41
|
+
"Home"
|
|
42
|
+
],
|
|
43
|
+
"text": "Moves to the first tab and selects it."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"toolbar": {
|
|
48
|
+
"label": "Toolbar",
|
|
49
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/",
|
|
50
|
+
"rows": [
|
|
51
|
+
{
|
|
52
|
+
"id": "next",
|
|
53
|
+
"keys": [
|
|
54
|
+
"ArrowRight"
|
|
55
|
+
],
|
|
56
|
+
"inline": true,
|
|
57
|
+
"text": "Moves to the next control."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "previous",
|
|
61
|
+
"keys": [
|
|
62
|
+
"ArrowLeft"
|
|
63
|
+
],
|
|
64
|
+
"inline": true,
|
|
65
|
+
"text": "Moves to the previous control."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "last",
|
|
69
|
+
"keys": [
|
|
70
|
+
"End"
|
|
71
|
+
],
|
|
72
|
+
"text": "Moves to the last control."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "first",
|
|
76
|
+
"keys": [
|
|
77
|
+
"Home"
|
|
78
|
+
],
|
|
79
|
+
"text": "Moves to the first control."
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"radio-group": {
|
|
84
|
+
"label": "Radio group",
|
|
85
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/radio/",
|
|
86
|
+
"rows": [
|
|
87
|
+
{
|
|
88
|
+
"id": "tab-stop",
|
|
89
|
+
"keys": [
|
|
90
|
+
"Tab"
|
|
91
|
+
],
|
|
92
|
+
"text": "Moves focus into the group at one option, and out of the group on the next press."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "next",
|
|
96
|
+
"keys": [
|
|
97
|
+
"ArrowRight"
|
|
98
|
+
],
|
|
99
|
+
"inline": true,
|
|
100
|
+
"text": "Moves to the next option and chooses it."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "previous",
|
|
104
|
+
"keys": [
|
|
105
|
+
"ArrowLeft"
|
|
106
|
+
],
|
|
107
|
+
"inline": true,
|
|
108
|
+
"text": "Moves to the previous option and chooses it."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "last",
|
|
112
|
+
"keys": [
|
|
113
|
+
"End"
|
|
114
|
+
],
|
|
115
|
+
"text": "Moves to the last option and chooses it."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "first",
|
|
119
|
+
"keys": [
|
|
120
|
+
"Home"
|
|
121
|
+
],
|
|
122
|
+
"text": "Moves to the first option and chooses it."
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"menu": {
|
|
127
|
+
"label": "Menu",
|
|
128
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/menubar/",
|
|
129
|
+
"rows": [
|
|
130
|
+
{
|
|
131
|
+
"id": "open",
|
|
132
|
+
"keys": [],
|
|
133
|
+
"text": "Opening the menu moves focus into it.",
|
|
134
|
+
"when": "On open"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "next",
|
|
138
|
+
"keys": [
|
|
139
|
+
"ArrowDown"
|
|
140
|
+
],
|
|
141
|
+
"text": "Moves to the next item."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "previous",
|
|
145
|
+
"keys": [
|
|
146
|
+
"ArrowUp"
|
|
147
|
+
],
|
|
148
|
+
"text": "Moves to the previous item."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "last",
|
|
152
|
+
"keys": [
|
|
153
|
+
"End"
|
|
154
|
+
],
|
|
155
|
+
"text": "Moves to the last item."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "first",
|
|
159
|
+
"keys": [
|
|
160
|
+
"Home"
|
|
161
|
+
],
|
|
162
|
+
"text": "Moves to the first item."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "typeahead",
|
|
166
|
+
"keys": [],
|
|
167
|
+
"when": "A letter",
|
|
168
|
+
"text": "Moves to the next item whose name starts with it."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "dismiss",
|
|
172
|
+
"keys": [
|
|
173
|
+
"Escape"
|
|
174
|
+
],
|
|
175
|
+
"text": "Closes the menu and returns focus to what opened it."
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"combobox": {
|
|
180
|
+
"label": "Combobox",
|
|
181
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/",
|
|
182
|
+
"rows": [
|
|
183
|
+
{
|
|
184
|
+
"id": "open",
|
|
185
|
+
"keys": [
|
|
186
|
+
"ArrowDown"
|
|
187
|
+
],
|
|
188
|
+
"text": "Opens the list of options."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "next",
|
|
192
|
+
"keys": [
|
|
193
|
+
"ArrowDown"
|
|
194
|
+
],
|
|
195
|
+
"text": "With the list open, moves to the next option."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "previous",
|
|
199
|
+
"keys": [
|
|
200
|
+
"ArrowUp"
|
|
201
|
+
],
|
|
202
|
+
"text": "Moves to the previous option."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "dismiss",
|
|
206
|
+
"keys": [
|
|
207
|
+
"Escape"
|
|
208
|
+
],
|
|
209
|
+
"text": "Closes the list and keeps focus on the field."
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"dialog": {
|
|
214
|
+
"label": "Dialog",
|
|
215
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/",
|
|
216
|
+
"rows": [
|
|
217
|
+
{
|
|
218
|
+
"id": "enter",
|
|
219
|
+
"keys": [],
|
|
220
|
+
"text": "Opening moves focus inside.",
|
|
221
|
+
"when": "On open"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "trap",
|
|
225
|
+
"keys": [
|
|
226
|
+
"Tab"
|
|
227
|
+
],
|
|
228
|
+
"text": "Moves to the next control inside, and from the last back to the first. Focus never reaches the page behind."
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "trap-back",
|
|
232
|
+
"keys": [
|
|
233
|
+
"Shift",
|
|
234
|
+
"Tab"
|
|
235
|
+
],
|
|
236
|
+
"text": "Moves to the previous control inside, and from the first to the last."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"id": "dismiss",
|
|
240
|
+
"keys": [
|
|
241
|
+
"Escape"
|
|
242
|
+
],
|
|
243
|
+
"text": "Closes it and returns focus to what opened it."
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"tree": {
|
|
248
|
+
"label": "Tree view",
|
|
249
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/treeview/",
|
|
250
|
+
"rows": [
|
|
251
|
+
{
|
|
252
|
+
"id": "next",
|
|
253
|
+
"keys": [
|
|
254
|
+
"ArrowDown"
|
|
255
|
+
],
|
|
256
|
+
"text": "Moves to the next visible row."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "previous",
|
|
260
|
+
"keys": [
|
|
261
|
+
"ArrowUp"
|
|
262
|
+
],
|
|
263
|
+
"text": "Moves to the previous visible row."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "last",
|
|
267
|
+
"keys": [
|
|
268
|
+
"End"
|
|
269
|
+
],
|
|
270
|
+
"text": "Moves to the last visible row."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "first",
|
|
274
|
+
"keys": [
|
|
275
|
+
"Home"
|
|
276
|
+
],
|
|
277
|
+
"text": "Moves to the first row."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "expand",
|
|
281
|
+
"keys": [
|
|
282
|
+
"ArrowRight"
|
|
283
|
+
],
|
|
284
|
+
"inline": true,
|
|
285
|
+
"text": "Opens a closed branch."
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "collapse",
|
|
289
|
+
"keys": [
|
|
290
|
+
"ArrowLeft"
|
|
291
|
+
],
|
|
292
|
+
"inline": true,
|
|
293
|
+
"text": "Closes an open branch."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"id": "typeahead",
|
|
297
|
+
"keys": [],
|
|
298
|
+
"when": "A letter",
|
|
299
|
+
"text": "Moves to the next visible row whose name starts with it."
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"slider": {
|
|
304
|
+
"label": "Slider",
|
|
305
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/slider/",
|
|
306
|
+
"rows": [
|
|
307
|
+
{
|
|
308
|
+
"id": "increase",
|
|
309
|
+
"keys": [
|
|
310
|
+
"ArrowRight"
|
|
311
|
+
],
|
|
312
|
+
"text": "Raises the value by one step."
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "decrease",
|
|
316
|
+
"keys": [
|
|
317
|
+
"ArrowLeft"
|
|
318
|
+
],
|
|
319
|
+
"text": "Lowers the value by one step."
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "minimum",
|
|
323
|
+
"keys": [
|
|
324
|
+
"Home"
|
|
325
|
+
],
|
|
326
|
+
"text": "Sets the lowest value."
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": "maximum",
|
|
330
|
+
"keys": [
|
|
331
|
+
"End"
|
|
332
|
+
],
|
|
333
|
+
"text": "Sets the highest value."
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"splitter": {
|
|
338
|
+
"label": "Window splitter",
|
|
339
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/",
|
|
340
|
+
"rows": [
|
|
341
|
+
{
|
|
342
|
+
"id": "increase",
|
|
343
|
+
"keys": [
|
|
344
|
+
"ArrowRight"
|
|
345
|
+
],
|
|
346
|
+
"inline": true,
|
|
347
|
+
"text": "Grows the first pane by one step."
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "decrease",
|
|
351
|
+
"keys": [
|
|
352
|
+
"ArrowLeft"
|
|
353
|
+
],
|
|
354
|
+
"inline": true,
|
|
355
|
+
"text": "Shrinks the first pane by one step."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "minimum",
|
|
359
|
+
"keys": [
|
|
360
|
+
"Home"
|
|
361
|
+
],
|
|
362
|
+
"text": "Shrinks the first pane to its smallest size."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "maximum",
|
|
366
|
+
"keys": [
|
|
367
|
+
"End"
|
|
368
|
+
],
|
|
369
|
+
"text": "Grows the first pane to its largest size."
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"calendar": {
|
|
374
|
+
"label": "Date grid",
|
|
375
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/",
|
|
376
|
+
"rows": [
|
|
377
|
+
{
|
|
378
|
+
"id": "next-day",
|
|
379
|
+
"keys": [
|
|
380
|
+
"ArrowRight"
|
|
381
|
+
],
|
|
382
|
+
"inline": true,
|
|
383
|
+
"text": "Moves to the next day."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"id": "previous-day",
|
|
387
|
+
"keys": [
|
|
388
|
+
"ArrowLeft"
|
|
389
|
+
],
|
|
390
|
+
"inline": true,
|
|
391
|
+
"text": "Moves to the previous day."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"id": "next-week",
|
|
395
|
+
"keys": [
|
|
396
|
+
"ArrowDown"
|
|
397
|
+
],
|
|
398
|
+
"text": "Moves to the same weekday in the next week."
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"id": "previous-week",
|
|
402
|
+
"keys": [
|
|
403
|
+
"ArrowUp"
|
|
404
|
+
],
|
|
405
|
+
"text": "Moves to the same weekday in the previous week."
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"id": "week-start",
|
|
409
|
+
"keys": [
|
|
410
|
+
"Home"
|
|
411
|
+
],
|
|
412
|
+
"text": "Moves to the first day of the week."
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"id": "week-end",
|
|
416
|
+
"keys": [
|
|
417
|
+
"End"
|
|
418
|
+
],
|
|
419
|
+
"text": "Moves to the last day of the week."
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"id": "next-month",
|
|
423
|
+
"keys": [
|
|
424
|
+
"PageDown"
|
|
425
|
+
],
|
|
426
|
+
"text": "Moves to the same day in the next month."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"id": "previous-month",
|
|
430
|
+
"keys": [
|
|
431
|
+
"PageUp"
|
|
432
|
+
],
|
|
433
|
+
"text": "Moves to the same day in the previous month."
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"listbox": {
|
|
438
|
+
"label": "Listbox",
|
|
439
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/listbox/",
|
|
440
|
+
"rows": [
|
|
441
|
+
{
|
|
442
|
+
"id": "first",
|
|
443
|
+
"keys": [
|
|
444
|
+
"Home"
|
|
445
|
+
],
|
|
446
|
+
"text": "Moves to the first option."
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"id": "next",
|
|
450
|
+
"keys": [
|
|
451
|
+
"ArrowDown"
|
|
452
|
+
],
|
|
453
|
+
"text": "Moves to the next option."
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"id": "previous",
|
|
457
|
+
"keys": [
|
|
458
|
+
"ArrowUp"
|
|
459
|
+
],
|
|
460
|
+
"text": "Moves to the previous option."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"id": "last",
|
|
464
|
+
"keys": [
|
|
465
|
+
"End"
|
|
466
|
+
],
|
|
467
|
+
"text": "Moves to the last option."
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
"accordion": {
|
|
472
|
+
"label": "Accordion",
|
|
473
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/accordion/",
|
|
474
|
+
"rows": [
|
|
475
|
+
{
|
|
476
|
+
"id": "toggle",
|
|
477
|
+
"keys": [
|
|
478
|
+
"Enter"
|
|
479
|
+
],
|
|
480
|
+
"text": "Opens a closed section, and closes an open one."
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": "toggle-space",
|
|
484
|
+
"keys": [
|
|
485
|
+
"Space"
|
|
486
|
+
],
|
|
487
|
+
"text": "Does the same as Enter."
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"disclosure": {
|
|
492
|
+
"label": "Disclosure",
|
|
493
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/",
|
|
494
|
+
"rows": [
|
|
495
|
+
{
|
|
496
|
+
"id": "toggle",
|
|
497
|
+
"keys": [
|
|
498
|
+
"Enter"
|
|
499
|
+
],
|
|
500
|
+
"text": "Opens what it controls, and closes it when it is open."
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"id": "toggle-space",
|
|
504
|
+
"keys": [
|
|
505
|
+
"Space"
|
|
506
|
+
],
|
|
507
|
+
"text": "Does the same as Enter."
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
"tooltip": {
|
|
512
|
+
"label": "Tooltip",
|
|
513
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/",
|
|
514
|
+
"rows": [
|
|
515
|
+
{
|
|
516
|
+
"id": "show",
|
|
517
|
+
"keys": [],
|
|
518
|
+
"when": "On focus",
|
|
519
|
+
"text": "Focusing the trigger shows it."
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"id": "dismiss",
|
|
523
|
+
"keys": [
|
|
524
|
+
"Escape"
|
|
525
|
+
],
|
|
526
|
+
"text": "Hides it and leaves focus on the trigger."
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"button": {
|
|
531
|
+
"label": "Button",
|
|
532
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/button/",
|
|
533
|
+
"rows": [
|
|
534
|
+
{
|
|
535
|
+
"id": "activate",
|
|
536
|
+
"keys": [
|
|
537
|
+
"Enter"
|
|
538
|
+
],
|
|
539
|
+
"text": "Activates the button."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"id": "activate-space",
|
|
543
|
+
"keys": [
|
|
544
|
+
"Space"
|
|
545
|
+
],
|
|
546
|
+
"text": "Activates the button."
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"toggle-button": {
|
|
551
|
+
"label": "Toggle button",
|
|
552
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/button/",
|
|
553
|
+
"rows": [
|
|
554
|
+
{
|
|
555
|
+
"id": "toggle",
|
|
556
|
+
"keys": [
|
|
557
|
+
"Enter"
|
|
558
|
+
],
|
|
559
|
+
"text": "Changes whether the button is pressed."
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"id": "toggle-space",
|
|
563
|
+
"keys": [
|
|
564
|
+
"Space"
|
|
565
|
+
],
|
|
566
|
+
"text": "Does the same as Enter."
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"link": {
|
|
571
|
+
"label": "Link",
|
|
572
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/link/",
|
|
573
|
+
"rows": [
|
|
574
|
+
{
|
|
575
|
+
"id": "follow",
|
|
576
|
+
"keys": [
|
|
577
|
+
"Enter"
|
|
578
|
+
],
|
|
579
|
+
"text": "Follows the link."
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
"checkbox": {
|
|
584
|
+
"label": "Checkbox",
|
|
585
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/",
|
|
586
|
+
"rows": [
|
|
587
|
+
{
|
|
588
|
+
"id": "toggle-space",
|
|
589
|
+
"keys": [
|
|
590
|
+
"Space"
|
|
591
|
+
],
|
|
592
|
+
"text": "Ticks the box, or clears it when it is ticked."
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
"switch": {
|
|
597
|
+
"label": "Switch",
|
|
598
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/patterns/switch/",
|
|
599
|
+
"rows": [
|
|
600
|
+
{
|
|
601
|
+
"id": "toggle-space",
|
|
602
|
+
"keys": [
|
|
603
|
+
"Space"
|
|
604
|
+
],
|
|
605
|
+
"text": "Turns the switch on, or off when it is on."
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"textbox": {
|
|
610
|
+
"label": "Text field",
|
|
611
|
+
"apg": "https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/",
|
|
612
|
+
"rows": [
|
|
613
|
+
{
|
|
614
|
+
"id": "type",
|
|
615
|
+
"keys": [],
|
|
616
|
+
"when": "Typing",
|
|
617
|
+
"text": "Enters text in the named field."
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
;
|
|
624
|
+
|
|
625
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const patterns = { "tabs": { "label": "Tabs", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/tabs/", "rows": [{ "id": "tab-stop", "keys": ["Tab"], "text": "Moves focus into the list at the selected tab, and out of the list on the next press." }, { "id": "next", "keys": ["ArrowRight"], "inline": true, "text": "Moves to the next tab and selects it." }, { "id": "previous", "keys": ["ArrowLeft"], "inline": true, "text": "Moves to the previous tab and selects it." }, { "id": "last", "keys": ["End"], "text": "Moves to the last tab and selects it." }, { "id": "first", "keys": ["Home"], "text": "Moves to the first tab and selects it." }] }, "toolbar": { "label": "Toolbar", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/", "rows": [{ "id": "next", "keys": ["ArrowRight"], "inline": true, "text": "Moves to the next control." }, { "id": "previous", "keys": ["ArrowLeft"], "inline": true, "text": "Moves to the previous control." }, { "id": "last", "keys": ["End"], "text": "Moves to the last control." }, { "id": "first", "keys": ["Home"], "text": "Moves to the first control." }] }, "radio-group": { "label": "Radio group", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/radio/", "rows": [{ "id": "tab-stop", "keys": ["Tab"], "text": "Moves focus into the group at one option, and out of the group on the next press." }, { "id": "next", "keys": ["ArrowRight"], "inline": true, "text": "Moves to the next option and chooses it." }, { "id": "previous", "keys": ["ArrowLeft"], "inline": true, "text": "Moves to the previous option and chooses it." }, { "id": "last", "keys": ["End"], "text": "Moves to the last option and chooses it." }, { "id": "first", "keys": ["Home"], "text": "Moves to the first option and chooses it." }] }, "menu": { "label": "Menu", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/menubar/", "rows": [{ "id": "open", "keys": [], "text": "Opening the menu moves focus into it.", "when": "On open" }, { "id": "next", "keys": ["ArrowDown"], "text": "Moves to the next item." }, { "id": "previous", "keys": ["ArrowUp"], "text": "Moves to the previous item." }, { "id": "last", "keys": ["End"], "text": "Moves to the last item." }, { "id": "first", "keys": ["Home"], "text": "Moves to the first item." }, { "id": "typeahead", "keys": [], "when": "A letter", "text": "Moves to the next item whose name starts with it." }, { "id": "dismiss", "keys": ["Escape"], "text": "Closes the menu and returns focus to what opened it." }] }, "combobox": { "label": "Combobox", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/", "rows": [{ "id": "open", "keys": ["ArrowDown"], "text": "Opens the list of options." }, { "id": "next", "keys": ["ArrowDown"], "text": "With the list open, moves to the next option." }, { "id": "previous", "keys": ["ArrowUp"], "text": "Moves to the previous option." }, { "id": "dismiss", "keys": ["Escape"], "text": "Closes the list and keeps focus on the field." }] }, "dialog": { "label": "Dialog", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/", "rows": [{ "id": "enter", "keys": [], "text": "Opening moves focus inside.", "when": "On open" }, { "id": "trap", "keys": ["Tab"], "text": "Moves to the next control inside, and from the last back to the first. Focus never reaches the page behind." }, { "id": "trap-back", "keys": ["Shift", "Tab"], "text": "Moves to the previous control inside, and from the first to the last." }, { "id": "dismiss", "keys": ["Escape"], "text": "Closes it and returns focus to what opened it." }] }, "tree": { "label": "Tree view", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/treeview/", "rows": [{ "id": "next", "keys": ["ArrowDown"], "text": "Moves to the next visible row." }, { "id": "previous", "keys": ["ArrowUp"], "text": "Moves to the previous visible row." }, { "id": "last", "keys": ["End"], "text": "Moves to the last visible row." }, { "id": "first", "keys": ["Home"], "text": "Moves to the first row." }, { "id": "expand", "keys": ["ArrowRight"], "inline": true, "text": "Opens a closed branch." }, { "id": "collapse", "keys": ["ArrowLeft"], "inline": true, "text": "Closes an open branch." }, { "id": "typeahead", "keys": [], "when": "A letter", "text": "Moves to the next visible row whose name starts with it." }] }, "slider": { "label": "Slider", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/slider/", "rows": [{ "id": "increase", "keys": ["ArrowRight"], "text": "Raises the value by one step." }, { "id": "decrease", "keys": ["ArrowLeft"], "text": "Lowers the value by one step." }, { "id": "minimum", "keys": ["Home"], "text": "Sets the lowest value." }, { "id": "maximum", "keys": ["End"], "text": "Sets the highest value." }] }, "splitter": { "label": "Window splitter", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/", "rows": [{ "id": "increase", "keys": ["ArrowRight"], "inline": true, "text": "Grows the first pane by one step." }, { "id": "decrease", "keys": ["ArrowLeft"], "inline": true, "text": "Shrinks the first pane by one step." }, { "id": "minimum", "keys": ["Home"], "text": "Shrinks the first pane to its smallest size." }, { "id": "maximum", "keys": ["End"], "text": "Grows the first pane to its largest size." }] }, "calendar": { "label": "Date grid", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/", "rows": [{ "id": "next-day", "keys": ["ArrowRight"], "inline": true, "text": "Moves to the next day." }, { "id": "previous-day", "keys": ["ArrowLeft"], "inline": true, "text": "Moves to the previous day." }, { "id": "next-week", "keys": ["ArrowDown"], "text": "Moves to the same weekday in the next week." }, { "id": "previous-week", "keys": ["ArrowUp"], "text": "Moves to the same weekday in the previous week." }, { "id": "week-start", "keys": ["Home"], "text": "Moves to the first day of the week." }, { "id": "week-end", "keys": ["End"], "text": "Moves to the last day of the week." }, { "id": "next-month", "keys": ["PageDown"], "text": "Moves to the same day in the next month." }, { "id": "previous-month", "keys": ["PageUp"], "text": "Moves to the same day in the previous month." }] }, "listbox": { "label": "Listbox", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/listbox/", "rows": [{ "id": "first", "keys": ["Home"], "text": "Moves to the first option." }, { "id": "next", "keys": ["ArrowDown"], "text": "Moves to the next option." }, { "id": "previous", "keys": ["ArrowUp"], "text": "Moves to the previous option." }, { "id": "last", "keys": ["End"], "text": "Moves to the last option." }] }, "accordion": { "label": "Accordion", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/accordion/", "rows": [{ "id": "toggle", "keys": ["Enter"], "text": "Opens a closed section, and closes an open one." }, { "id": "toggle-space", "keys": ["Space"], "text": "Does the same as Enter." }] }, "disclosure": { "label": "Disclosure", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/", "rows": [{ "id": "toggle", "keys": ["Enter"], "text": "Opens what it controls, and closes it when it is open." }, { "id": "toggle-space", "keys": ["Space"], "text": "Does the same as Enter." }] }, "tooltip": { "label": "Tooltip", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/", "rows": [{ "id": "show", "keys": [], "when": "On focus", "text": "Focusing the trigger shows it." }, { "id": "dismiss", "keys": ["Escape"], "text": "Hides it and leaves focus on the trigger." }] }, "button": { "label": "Button", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/button/", "rows": [{ "id": "activate", "keys": ["Enter"], "text": "Activates the button." }, { "id": "activate-space", "keys": ["Space"], "text": "Activates the button." }] }, "toggle-button": { "label": "Toggle button", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/button/", "rows": [{ "id": "toggle", "keys": ["Enter"], "text": "Changes whether the button is pressed." }, { "id": "toggle-space", "keys": ["Space"], "text": "Does the same as Enter." }] }, "link": { "label": "Link", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/link/", "rows": [{ "id": "follow", "keys": ["Enter"], "text": "Follows the link." }] }, "checkbox": { "label": "Checkbox", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/", "rows": [{ "id": "toggle-space", "keys": ["Space"], "text": "Ticks the box, or clears it when it is ticked." }] }, "switch": { "label": "Switch", "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/switch/", "rows": [{ "id": "toggle-space", "keys": ["Space"], "text": "Turns the switch on, or off when it is on." }] }, "textbox": { "label": "Text field", "apg": "https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/", "rows": [{ "id": "type", "keys": [], "when": "Typing", "text": "Enters text in the named field." }] } };
|
|
2
|
+
const keyboard = {
|
|
3
|
+
patterns
|
|
4
|
+
};
|
|
5
|
+
export {
|
|
6
|
+
keyboard as default,
|
|
7
|
+
patterns
|
|
8
|
+
};
|