@cssints/apg-specs 0.0.0-stage → 0.5.2
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/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/apg/accordion.bridge.d.mts +35 -0
- package/dist/apg/accordion.bridge.mjs +326 -0
- package/dist/apg/accordion.model.json +8397 -0
- package/dist/apg/alert.bridge.d.mts +22 -0
- package/dist/apg/alert.bridge.mjs +86 -0
- package/dist/apg/alert.model.json +871 -0
- package/dist/apg/alertdialog.bridge.d.mts +21 -0
- package/dist/apg/alertdialog.bridge.mjs +221 -0
- package/dist/apg/alertdialog.model.json +5232 -0
- package/dist/apg/breadcrumb.bridge.d.mts +26 -0
- package/dist/apg/breadcrumb.bridge.mjs +120 -0
- package/dist/apg/breadcrumb.model.json +574 -0
- package/dist/apg/button.bridge.d.mts +35 -0
- package/dist/apg/button.bridge.mjs +208 -0
- package/dist/apg/button.model.json +5814 -0
- package/dist/apg/carousel.bridge.d.mts +44 -0
- package/dist/apg/carousel.bridge.mjs +262 -0
- package/dist/apg/carousel.model.json +8963 -0
- package/dist/apg/checkbox-group.bridge.d.mts +25 -0
- package/dist/apg/checkbox-group.bridge.mjs +276 -0
- package/dist/apg/checkbox-group.model.json +3863 -0
- package/dist/apg/checkbox.bridge.d.mts +34 -0
- package/dist/apg/checkbox.bridge.mjs +253 -0
- package/dist/apg/checkbox.model.json +3158 -0
- package/dist/apg/combobox-autocomplete.bridge.d.mts +14 -0
- package/dist/apg/combobox-autocomplete.bridge.mjs +326 -0
- package/dist/apg/combobox-autocomplete.model.json +11586 -0
- package/dist/apg/combobox-dialog.bridge.d.mts +17 -0
- package/dist/apg/combobox-dialog.bridge.mjs +250 -0
- package/dist/apg/combobox-dialog.model.json +8981 -0
- package/dist/apg/combobox-grid.bridge.d.mts +17 -0
- package/dist/apg/combobox-grid.bridge.mjs +227 -0
- package/dist/apg/combobox-grid.model.json +8554 -0
- package/dist/apg/combobox-select-only.bridge.d.mts +24 -0
- package/dist/apg/combobox-select-only.bridge.mjs +304 -0
- package/dist/apg/combobox-select-only.model.json +7846 -0
- package/dist/apg/combobox-tree.bridge.d.mts +17 -0
- package/dist/apg/combobox-tree.bridge.mjs +211 -0
- package/dist/apg/combobox-tree.model.json +9345 -0
- package/dist/apg/dialog-modal.bridge.d.mts +35 -0
- package/dist/apg/dialog-modal.bridge.mjs +186 -0
- package/dist/apg/dialog-modal.model.json +7580 -0
- package/dist/apg/disclosure.bridge.d.mts +25 -0
- package/dist/apg/disclosure.bridge.mjs +202 -0
- package/dist/apg/disclosure.model.json +4703 -0
- package/dist/apg/feed.bridge.d.mts +31 -0
- package/dist/apg/feed.bridge.mjs +246 -0
- package/dist/apg/feed.model.json +4523 -0
- package/dist/apg/grid-selection.bridge.d.mts +13 -0
- package/dist/apg/grid-selection.bridge.mjs +160 -0
- package/dist/apg/grid-selection.model.json +6974 -0
- package/dist/apg/grid-sort.bridge.d.mts +12 -0
- package/dist/apg/grid-sort.bridge.mjs +138 -0
- package/dist/apg/grid-sort.model.json +3799 -0
- package/dist/apg/grid.bridge.d.mts +54 -0
- package/dist/apg/grid.bridge.mjs +441 -0
- package/dist/apg/grid.model.json +3802 -0
- package/dist/apg/link.bridge.d.mts +24 -0
- package/dist/apg/link.bridge.mjs +126 -0
- package/dist/apg/link.model.json +694 -0
- package/dist/apg/listbox-multi.bridge.d.mts +10 -0
- package/dist/apg/listbox-multi.bridge.mjs +261 -0
- package/dist/apg/listbox-multi.model.json +10893 -0
- package/dist/apg/listbox-rearrangeable.bridge.d.mts +20 -0
- package/dist/apg/listbox-rearrangeable.bridge.mjs +237 -0
- package/dist/apg/listbox-rearrangeable.model.json +17592 -0
- package/dist/apg/listbox-shared.d.mts +58 -0
- package/dist/apg/listbox-shared.mjs +171 -0
- package/dist/apg/listbox-single.bridge.d.mts +10 -0
- package/dist/apg/listbox-single.bridge.mjs +196 -0
- package/dist/apg/listbox-single.model.json +8024 -0
- package/dist/apg/listbox-typeahead.bridge.d.mts +10 -0
- package/dist/apg/listbox-typeahead.bridge.mjs +153 -0
- package/dist/apg/listbox-typeahead.model.json +5615 -0
- package/dist/apg/menu-button.bridge.d.mts +29 -0
- package/dist/apg/menu-button.bridge.mjs +259 -0
- package/dist/apg/menu-button.model.json +5706 -0
- package/dist/apg/menu-checkable.bridge.d.mts +25 -0
- package/dist/apg/menu-checkable.bridge.mjs +226 -0
- package/dist/apg/menu-checkable.model.json +4277 -0
- package/dist/apg/menu-menubar.bridge.d.mts +27 -0
- package/dist/apg/menu-menubar.bridge.mjs +273 -0
- package/dist/apg/menu-menubar.model.json +9540 -0
- package/dist/apg/meter.bridge.d.mts +28 -0
- package/dist/apg/meter.bridge.mjs +159 -0
- package/dist/apg/meter.model.json +1185 -0
- package/dist/apg/player.bridge.d.mts +24 -0
- package/dist/apg/player.bridge.mjs +342 -0
- package/dist/apg/player.model.json +11013 -0
- package/dist/apg/radio.bridge.d.mts +35 -0
- package/dist/apg/radio.bridge.mjs +371 -0
- package/dist/apg/radio.model.json +5011 -0
- package/dist/apg/slider-multithumb.bridge.d.mts +34 -0
- package/dist/apg/slider-multithumb.bridge.mjs +365 -0
- package/dist/apg/slider-multithumb.model.json +5774 -0
- package/dist/apg/slider.bridge.d.mts +54 -0
- package/dist/apg/slider.bridge.mjs +359 -0
- package/dist/apg/slider.model.json +4881 -0
- package/dist/apg/spinbutton.bridge.d.mts +41 -0
- package/dist/apg/spinbutton.bridge.mjs +327 -0
- package/dist/apg/spinbutton.model.json +7571 -0
- package/dist/apg/switch.bridge.d.mts +30 -0
- package/dist/apg/switch.bridge.mjs +243 -0
- package/dist/apg/switch.model.json +3159 -0
- package/dist/apg/tabs.bridge.d.mts +41 -0
- package/dist/apg/tabs.bridge.mjs +294 -0
- package/dist/apg/tabs.model.json +7659 -0
- package/dist/apg/timeline.bridge.d.mts +36 -0
- package/dist/apg/timeline.bridge.mjs +265 -0
- package/dist/apg/timeline.model.json +6189 -0
- package/dist/apg/toolbar.bridge.d.mts +25 -0
- package/dist/apg/toolbar.bridge.mjs +307 -0
- package/dist/apg/toolbar.model.json +6616 -0
- package/dist/apg/tooltip.bridge.d.mts +36 -0
- package/dist/apg/tooltip.bridge.mjs +208 -0
- package/dist/apg/tooltip.model.json +8295 -0
- package/dist/apg/treegrid.bridge.d.mts +28 -0
- package/dist/apg/treegrid.bridge.mjs +311 -0
- package/dist/apg/treegrid.model.json +17358 -0
- package/dist/apg/treeview.bridge.d.mts +26 -0
- package/dist/apg/treeview.bridge.mjs +396 -0
- package/dist/apg/treeview.model.json +13745 -0
- package/dist/apg/windowsplitter.bridge.d.mts +36 -0
- package/dist/apg/windowsplitter.bridge.mjs +242 -0
- package/dist/apg/windowsplitter.model.json +6253 -0
- package/dist/canvas/camera.model.json +6568 -0
- package/dist/canvas/canvas.bridge.d.mts +190 -0
- package/dist/canvas/canvas.bridge.mjs +729 -0
- package/dist/canvas/pointer.model.json +17095 -0
- package/dist/scenario.d.mts +233 -0
- package/dist/scenario.mjs +313 -0
- package/package.json +57 -4
- package/scenarios/apg/README.md +221 -0
- package/scenarios/apg/accordion.base-ui.json +1005 -0
- package/scenarios/apg/accordion.react-aria.json +929 -0
- package/scenarios/apg/alert.base-ui.json +81 -0
- package/scenarios/apg/alert.react-aria.json +98 -0
- package/scenarios/apg/alertdialog.base-ui.json +331 -0
- package/scenarios/apg/alertdialog.react-aria.json +225 -0
- package/scenarios/apg/breadcrumb.react-aria.json +312 -0
- package/scenarios/apg/button.ariakit.json +136 -0
- package/scenarios/apg/button.base-ui.json +747 -0
- package/scenarios/apg/button.react-aria.json +443 -0
- package/scenarios/apg/carousel.apg.json +909 -0
- package/scenarios/apg/checkbox.ariakit.json +299 -0
- package/scenarios/apg/checkbox.base-ui.json +1126 -0
- package/scenarios/apg/checkbox.react-aria.json +518 -0
- package/scenarios/apg/combobox.ariakit.json +945 -0
- package/scenarios/apg/combobox.base-ui.json +2444 -0
- package/scenarios/apg/combobox.react-aria.json +845 -0
- package/scenarios/apg/dialog-modal.ariakit.json +1102 -0
- package/scenarios/apg/dialog-modal.base-ui.json +775 -0
- package/scenarios/apg/dialog-modal.react-aria.json +638 -0
- package/scenarios/apg/disclosure.apg.json +349 -0
- package/scenarios/apg/disclosure.ariakit.json +163 -0
- package/scenarios/apg/disclosure.base-ui.json +451 -0
- package/scenarios/apg/disclosure.react-aria.json +643 -0
- package/scenarios/apg/feed.apg.json +442 -0
- package/scenarios/apg/grid.ariakit.json +197 -0
- package/scenarios/apg/grid.base-ui.json +720 -0
- package/scenarios/apg/grid.react-aria.json +969 -0
- package/scenarios/apg/landmarks.ariakit.json +93 -0
- package/scenarios/apg/landmarks.react-aria.json +330 -0
- package/scenarios/apg/link.ariakit.json +83 -0
- package/scenarios/apg/link.base-ui.json +88 -0
- package/scenarios/apg/link.react-aria.json +186 -0
- package/scenarios/apg/listbox.ariakit.json +78 -0
- package/scenarios/apg/listbox.base-ui.json +163 -0
- package/scenarios/apg/listbox.react-aria.json +1118 -0
- package/scenarios/apg/menu-button.ariakit.json +924 -0
- package/scenarios/apg/menu-button.base-ui.json +1155 -0
- package/scenarios/apg/menu-button.react-aria.json +1080 -0
- package/scenarios/apg/menubar.ariakit.json +758 -0
- package/scenarios/apg/menubar.base-ui.json +673 -0
- package/scenarios/apg/meter.base-ui.json +243 -0
- package/scenarios/apg/meter.react-aria.json +201 -0
- package/scenarios/apg/radio.ariakit.json +459 -0
- package/scenarios/apg/radio.base-ui.json +581 -0
- package/scenarios/apg/radio.react-aria.json +576 -0
- package/scenarios/apg/slider-multithumb.base-ui.json +316 -0
- package/scenarios/apg/slider-multithumb.react-aria.json +363 -0
- package/scenarios/apg/slider.base-ui.json +544 -0
- package/scenarios/apg/slider.react-aria.json +456 -0
- package/scenarios/apg/spinbutton.base-ui.json +1688 -0
- package/scenarios/apg/spinbutton.react-aria.json +426 -0
- package/scenarios/apg/switch.base-ui.json +456 -0
- package/scenarios/apg/switch.react-aria.json +303 -0
- package/scenarios/apg/table.ariakit.json +65 -0
- package/scenarios/apg/table.react-aria.json +221 -0
- package/scenarios/apg/tabs.ariakit.json +329 -0
- package/scenarios/apg/tabs.base-ui.json +875 -0
- package/scenarios/apg/tabs.react-aria.json +644 -0
- package/scenarios/apg/toolbar.ariakit.json +595 -0
- package/scenarios/apg/toolbar.base-ui.json +1189 -0
- package/scenarios/apg/toolbar.react-aria.json +383 -0
- package/scenarios/apg/tooltip.ariakit.json +441 -0
- package/scenarios/apg/tooltip.base-ui.json +411 -0
- package/scenarios/apg/tooltip.react-aria.json +454 -0
- package/scenarios/apg/treegrid.apg.json +2558 -0
- package/scenarios/apg/treegrid.react-aria.json +5094 -0
- package/scenarios/apg/treeview.apg.json +928 -0
- package/scenarios/apg/windowsplitter.apg.json +557 -0
- package/scenarios/canvas/README.md +69 -0
- package/scenarios/canvas/camera.contract.json +237 -0
- package/scenarios/canvas/camera.excalidraw.json +57 -0
- package/scenarios/canvas/marquee.excalidraw.json +122 -0
- package/scenarios/canvas/pan.excalidraw.json +46 -0
- package/scenarios/canvas/pointer.contract.json +528 -0
- package/scenarios/parts.json +291 -0
- package/shared/aria.qnt +186 -0
- package/shared/details-group.qnt +50 -0
- package/shared/focusgroup.qnt +152 -0
- package/shared/invokers.qnt +81 -0
- package/shared/popover.qnt +71 -0
- package/specs/apg/STATIC.md +103 -0
- package/specs/apg/accordion.qnt +578 -0
- package/specs/apg/alert.qnt +131 -0
- package/specs/apg/alertdialog.qnt +455 -0
- package/specs/apg/breadcrumb.qnt +88 -0
- package/specs/apg/button.qnt +445 -0
- package/specs/apg/carousel.qnt +732 -0
- package/specs/apg/checkbox-group.qnt +388 -0
- package/specs/apg/checkbox.qnt +394 -0
- package/specs/apg/combobox-autocomplete.qnt +764 -0
- package/specs/apg/combobox-dialog.qnt +627 -0
- package/specs/apg/combobox-grid.qnt +632 -0
- package/specs/apg/combobox-select-only.qnt +626 -0
- package/specs/apg/combobox-tree.qnt +633 -0
- package/specs/apg/dialog-modal.qnt +499 -0
- package/specs/apg/disclosure.qnt +309 -0
- package/specs/apg/feed.qnt +485 -0
- package/specs/apg/grid-selection.qnt +512 -0
- package/specs/apg/grid-sort.qnt +330 -0
- package/specs/apg/grid.qnt +360 -0
- package/specs/apg/link.qnt +119 -0
- package/specs/apg/listbox-multi.qnt +799 -0
- package/specs/apg/listbox-rearrangeable.qnt +801 -0
- package/specs/apg/listbox-single.qnt +511 -0
- package/specs/apg/listbox-typeahead.qnt +396 -0
- package/specs/apg/menu-button.qnt +363 -0
- package/specs/apg/menu-checkable.qnt +304 -0
- package/specs/apg/menu-menubar.qnt +531 -0
- package/specs/apg/meter.qnt +129 -0
- package/specs/apg/player.qnt +1081 -0
- package/specs/apg/radio.qnt +394 -0
- package/specs/apg/slider-multithumb.qnt +441 -0
- package/specs/apg/slider.qnt +396 -0
- package/specs/apg/spinbutton.qnt +494 -0
- package/specs/apg/switch.qnt +389 -0
- package/specs/apg/tabs.qnt +412 -0
- package/specs/apg/timeline.qnt +612 -0
- package/specs/apg/toolbar.qnt +364 -0
- package/specs/apg/tooltip.qnt +553 -0
- package/specs/apg/treegrid.qnt +983 -0
- package/specs/apg/treeview.qnt +1004 -0
- package/specs/apg/windowsplitter.qnt +487 -0
- package/specs/canvas/camera.qnt +407 -0
- package/specs/canvas/pointer.qnt +841 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pattern": "disclosure",
|
|
3
|
+
"source": "base-ui",
|
|
4
|
+
"commit": "19511bb171f3b360b006c94cf6d07e53cb446505",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"skipped": [
|
|
7
|
+
{
|
|
8
|
+
"reason": "styling and state-callback assertions (className/style callbacks, inline styles, CSS custom properties)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"reason": "CSS transition and keyframe animation timing (data-starting-style, data-ending-style, measured panel heights, getAnimations, animation durations)"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"reason": "server-side rendering tests and React.Activity / React 19 replay tests"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"reason": "describeConformance suites (ref forwarding, render props, prop merging) as React-API-only"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"reason": "console warning assertions (keepMounted with hiddenUntilFound, mixed CSS transition + animation)"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"reason": "BaseUIChangeEventDetails API assertions (details.reason, details.event, details.cancel(), details.isCanceled, details.allowPropagation)"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"reason": "trivial prop pass-through checks (id forwarding) and hiddenUntilFound re-collapse races that depend on the controlled change-event reason API"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"scenarios": [
|
|
30
|
+
{
|
|
31
|
+
"id": "disclosure.base-ui.sets-aria-attributes",
|
|
32
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L19",
|
|
33
|
+
"upstreamTest": "<Collapsible.Root /> > ARIA attributes > sets ARIA attributes",
|
|
34
|
+
"apg": "aria",
|
|
35
|
+
"config": { "defaultOpen": true },
|
|
36
|
+
"steps": [
|
|
37
|
+
{
|
|
38
|
+
"expect": {
|
|
39
|
+
"attrs": {
|
|
40
|
+
"trigger:0": {
|
|
41
|
+
"aria-expanded": "true",
|
|
42
|
+
"aria-controls": "panel:0"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "disclosure.base-ui.manual-panel-id-in-aria-controls",
|
|
51
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L35",
|
|
52
|
+
"upstreamTest": "<Collapsible.Root /> > ARIA attributes > references manual panel id in trigger aria-controls",
|
|
53
|
+
"apg": "aria",
|
|
54
|
+
"config": { "defaultOpen": true, "panelId": "custom-panel-id" },
|
|
55
|
+
"steps": [
|
|
56
|
+
{
|
|
57
|
+
"expect": {
|
|
58
|
+
"attrs": {
|
|
59
|
+
"trigger:0": { "aria-controls": "custom-panel-id" },
|
|
60
|
+
"panel:0": { "id": "custom-panel-id" }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "disclosure.base-ui.aria-controls-removed-when-panel-unmounts",
|
|
68
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L50",
|
|
69
|
+
"upstreamTest": "<Collapsible.Root /> > ARIA attributes > unregisters and restores the generated panel id when the panel remounts",
|
|
70
|
+
"apg": "aria",
|
|
71
|
+
"config": { "defaultOpen": true },
|
|
72
|
+
"steps": [
|
|
73
|
+
{
|
|
74
|
+
"event": "prop",
|
|
75
|
+
"target": "panel:0",
|
|
76
|
+
"prop": "mounted",
|
|
77
|
+
"value": false
|
|
78
|
+
},
|
|
79
|
+
{ "expect": { "attrs": { "trigger:0": { "aria-controls": null } } } },
|
|
80
|
+
{
|
|
81
|
+
"event": "prop",
|
|
82
|
+
"target": "panel:0",
|
|
83
|
+
"prop": "mounted",
|
|
84
|
+
"value": true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"expect": { "attrs": { "trigger:0": { "aria-controls": "panel:0" } } }
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"notes": "The panel is removed from the tree while the trigger stays mounted; the trigger drops and then restores its aria-controls reference."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "disclosure.base-ui.disabled-trigger-has-data-disabled",
|
|
94
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L74",
|
|
95
|
+
"upstreamTest": "<Collapsible.Root /> > collapsible status > disabled status",
|
|
96
|
+
"apg": "extension",
|
|
97
|
+
"config": { "disabled": true },
|
|
98
|
+
"steps": [
|
|
99
|
+
{ "expect": { "attrs": { "trigger:0": { "data-disabled": "true" } } } }
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "disclosure.base-ui.disabled-click-does-not-toggle",
|
|
104
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L87",
|
|
105
|
+
"upstreamTest": "<Collapsible.Root /> > collapsible status > does not toggle or call onOpenChange when clicked while disabled",
|
|
106
|
+
"apg": "extension",
|
|
107
|
+
"config": { "disabled": true },
|
|
108
|
+
"steps": [
|
|
109
|
+
{ "event": "click", "target": "trigger:0" },
|
|
110
|
+
{
|
|
111
|
+
"expect": {
|
|
112
|
+
"visible": [],
|
|
113
|
+
"events": { "onOpenChange": [] },
|
|
114
|
+
"attrs": { "trigger:0": { "aria-expanded": "false" } }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "disclosure.base-ui.on-open-change-called-with-true",
|
|
121
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L108",
|
|
122
|
+
"upstreamTest": "<Collapsible.Root /> > BaseUIChangeEventDetails > calls onOpenChange with eventDetails",
|
|
123
|
+
"apg": "extension",
|
|
124
|
+
"config": { "initialOpen": false },
|
|
125
|
+
"steps": [
|
|
126
|
+
{ "event": "click", "target": "trigger:0" },
|
|
127
|
+
{ "expect": { "events": { "onOpenChange": [true] } } }
|
|
128
|
+
],
|
|
129
|
+
"notes": "Only the callback argument is restated; the richer eventDetails object is a React-only API and is skipped."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "disclosure.base-ui.controlled-external-toggle",
|
|
133
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L226",
|
|
134
|
+
"upstreamTest": "<Collapsible.Root /> > open state > controlled mode",
|
|
135
|
+
"apg": "extension",
|
|
136
|
+
"config": { "controlled": true, "initialOpen": false },
|
|
137
|
+
"steps": [
|
|
138
|
+
{
|
|
139
|
+
"expect": {
|
|
140
|
+
"visible": [],
|
|
141
|
+
"attrs": {
|
|
142
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null }
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{ "event": "click", "target": "trigger:1" },
|
|
147
|
+
{
|
|
148
|
+
"expect": {
|
|
149
|
+
"visible": ["panel:0"],
|
|
150
|
+
"attrs": {
|
|
151
|
+
"trigger:0": {
|
|
152
|
+
"aria-expanded": "true",
|
|
153
|
+
"aria-controls": "panel:0",
|
|
154
|
+
"data-panel-open": "true"
|
|
155
|
+
},
|
|
156
|
+
"panel:0": { "data-open": "true" }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{ "event": "click", "target": "trigger:1" },
|
|
161
|
+
{
|
|
162
|
+
"expect": {
|
|
163
|
+
"visible": [],
|
|
164
|
+
"attrs": {
|
|
165
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"notes": "The open state is owned by the page; trigger:1 is the external button."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "disclosure.base-ui.uncontrolled-pointer-toggle",
|
|
174
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L267",
|
|
175
|
+
"upstreamTest": "<Collapsible.Root /> > open state > uncontrolled mode",
|
|
176
|
+
"apg": "extension",
|
|
177
|
+
"config": { "initialOpen": false },
|
|
178
|
+
"steps": [
|
|
179
|
+
{
|
|
180
|
+
"expect": {
|
|
181
|
+
"visible": [],
|
|
182
|
+
"attrs": {
|
|
183
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{ "event": "click", "target": "trigger:0" },
|
|
188
|
+
{
|
|
189
|
+
"expect": {
|
|
190
|
+
"visible": ["panel:0"],
|
|
191
|
+
"attrs": {
|
|
192
|
+
"trigger:0": {
|
|
193
|
+
"aria-expanded": "true",
|
|
194
|
+
"aria-controls": "panel:0",
|
|
195
|
+
"data-panel-open": "true"
|
|
196
|
+
},
|
|
197
|
+
"panel:0": { "data-open": "true" }
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{ "event": "click", "target": "trigger:0" },
|
|
202
|
+
{
|
|
203
|
+
"expect": {
|
|
204
|
+
"visible": [],
|
|
205
|
+
"attrs": {
|
|
206
|
+
"trigger:0": {
|
|
207
|
+
"aria-expanded": "false",
|
|
208
|
+
"aria-controls": null,
|
|
209
|
+
"data-panel-open": null
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "disclosure.base-ui.keyboard-enter-space-toggle",
|
|
218
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L372",
|
|
219
|
+
"upstreamTest": "<Collapsible.Root /> > keyboard interactions > key: Enter/Space should toggle the Collapsible",
|
|
220
|
+
"apg": "keyboard",
|
|
221
|
+
"config": { "initialOpen": false },
|
|
222
|
+
"steps": [
|
|
223
|
+
{ "event": "focus", "target": "trigger:0" },
|
|
224
|
+
{
|
|
225
|
+
"expect": {
|
|
226
|
+
"focus": "trigger:0",
|
|
227
|
+
"attrs": {
|
|
228
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{ "event": "key", "key": "Enter", "target": "trigger:0" },
|
|
233
|
+
{
|
|
234
|
+
"expect": {
|
|
235
|
+
"visible": ["panel:0"],
|
|
236
|
+
"attrs": {
|
|
237
|
+
"trigger:0": {
|
|
238
|
+
"aria-expanded": "true",
|
|
239
|
+
"aria-controls": "panel:0",
|
|
240
|
+
"data-panel-open": "true"
|
|
241
|
+
},
|
|
242
|
+
"panel:0": { "data-open": "true" }
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{ "event": "key", "key": "Enter", "target": "trigger:0" },
|
|
247
|
+
{
|
|
248
|
+
"expect": {
|
|
249
|
+
"visible": [],
|
|
250
|
+
"attrs": {
|
|
251
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null }
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{ "event": "key", "key": "Space", "target": "trigger:0" },
|
|
256
|
+
{
|
|
257
|
+
"expect": {
|
|
258
|
+
"visible": ["panel:0"],
|
|
259
|
+
"attrs": {
|
|
260
|
+
"trigger:0": {
|
|
261
|
+
"aria-expanded": "true",
|
|
262
|
+
"data-panel-open": "true"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{ "event": "key", "key": "Space", "target": "trigger:0" },
|
|
268
|
+
{
|
|
269
|
+
"expect": {
|
|
270
|
+
"visible": [],
|
|
271
|
+
"attrs": { "trigger:0": { "aria-expanded": "false" } }
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"notes": "Enter and Space are separate upstream cases (a forEach over both keys); restated here as one scenario."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "disclosure.base-ui.keyboard-disabled-does-not-toggle",
|
|
279
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/root/CollapsibleRoot.test.tsx#L348",
|
|
280
|
+
"upstreamTest": "<Collapsible.Root /> > keyboard interactions > key: Enter/Space does not toggle or call onOpenChange when disabled",
|
|
281
|
+
"apg": "extension",
|
|
282
|
+
"config": { "disabled": true },
|
|
283
|
+
"steps": [
|
|
284
|
+
{ "event": "key", "key": "Tab", "target": "trigger:0" },
|
|
285
|
+
{ "expect": { "focus": null } },
|
|
286
|
+
{ "event": "key", "key": "Enter", "target": "trigger:0" },
|
|
287
|
+
{
|
|
288
|
+
"expect": {
|
|
289
|
+
"visible": [],
|
|
290
|
+
"events": { "onOpenChange": [] },
|
|
291
|
+
"attrs": { "trigger:0": { "aria-expanded": "false" } }
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{ "event": "key", "key": "Space", "target": "trigger:0" },
|
|
295
|
+
{
|
|
296
|
+
"expect": {
|
|
297
|
+
"visible": [],
|
|
298
|
+
"events": { "onOpenChange": [] },
|
|
299
|
+
"attrs": { "trigger:0": { "aria-expanded": "false" } }
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "disclosure.base-ui.trigger-disabled-attribute",
|
|
306
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/trigger/CollapsibleTrigger.test.tsx#L32",
|
|
307
|
+
"upstreamTest": "<Collapsible.Trigger /> > renders the disabled attribute when disabled",
|
|
308
|
+
"apg": "extension",
|
|
309
|
+
"config": { "disabled": true, "nativeButton": true },
|
|
310
|
+
"steps": [
|
|
311
|
+
{
|
|
312
|
+
"expect": {
|
|
313
|
+
"attrs": {
|
|
314
|
+
"trigger:0": { "disabled": "true", "aria-disabled": null }
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "disclosure.base-ui.disabled-non-native-trigger-tab-order",
|
|
322
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/trigger/CollapsibleTrigger.test.tsx#L44",
|
|
323
|
+
"upstreamTest": "<Collapsible.Trigger /> > removes a disabled non-native trigger from the tab order",
|
|
324
|
+
"apg": "extension",
|
|
325
|
+
"config": { "disabled": true, "nativeButton": false },
|
|
326
|
+
"steps": [
|
|
327
|
+
{
|
|
328
|
+
"expect": {
|
|
329
|
+
"attrs": {
|
|
330
|
+
"trigger:0": {
|
|
331
|
+
"aria-disabled": "true",
|
|
332
|
+
"tabindex": "-1",
|
|
333
|
+
"disabled": null
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{ "event": "key", "key": "Tab", "target": "trigger:0" },
|
|
339
|
+
{ "expect": { "focus": null } }
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "disclosure.base-ui.panel-keep-mounted-visibility",
|
|
344
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/panel/CollapsiblePanel.test.tsx#L77",
|
|
345
|
+
"upstreamTest": "<Collapsible.Panel /> > prop: keepMounted > does not unmount the panel when true",
|
|
346
|
+
"apg": "extension",
|
|
347
|
+
"config": { "keepMounted": true, "initialOpen": false },
|
|
348
|
+
"steps": [
|
|
349
|
+
{
|
|
350
|
+
"expect": {
|
|
351
|
+
"visible": [],
|
|
352
|
+
"attrs": {
|
|
353
|
+
"trigger:0": { "aria-expanded": "false" },
|
|
354
|
+
"panel:0": { "data-closed": "true" }
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{ "event": "click", "target": "trigger:0" },
|
|
359
|
+
{
|
|
360
|
+
"expect": {
|
|
361
|
+
"visible": ["panel:0"],
|
|
362
|
+
"attrs": {
|
|
363
|
+
"trigger:0": {
|
|
364
|
+
"aria-expanded": "true",
|
|
365
|
+
"aria-controls": "panel:0"
|
|
366
|
+
},
|
|
367
|
+
"panel:0": { "data-open": "true" }
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{ "event": "click", "target": "trigger:0" },
|
|
372
|
+
{
|
|
373
|
+
"expect": {
|
|
374
|
+
"visible": [],
|
|
375
|
+
"attrs": {
|
|
376
|
+
"trigger:0": { "aria-expanded": "false", "aria-controls": null },
|
|
377
|
+
"panel:0": { "data-closed": "true" }
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"notes": "keepMounted keeps the panel in the tree while closed; it is present but not visible."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "disclosure.base-ui.keep-mounted-external-close",
|
|
386
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/panel/CollapsiblePanel.test.tsx#L117",
|
|
387
|
+
"upstreamTest": "<Collapsible.Panel /> > prop: keepMounted > hides the panel after external controlled close when true and no animations are applied",
|
|
388
|
+
"apg": "extension",
|
|
389
|
+
"config": {
|
|
390
|
+
"keepMounted": true,
|
|
391
|
+
"controlled": true,
|
|
392
|
+
"initialOpen": false
|
|
393
|
+
},
|
|
394
|
+
"steps": [
|
|
395
|
+
{
|
|
396
|
+
"expect": {
|
|
397
|
+
"attrs": {
|
|
398
|
+
"trigger:0": { "aria-expanded": "false" },
|
|
399
|
+
"panel:0": { "hidden": "true", "data-closed": "true" }
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{ "event": "click", "target": "trigger:1" },
|
|
404
|
+
{
|
|
405
|
+
"expect": {
|
|
406
|
+
"visible": ["panel:0"],
|
|
407
|
+
"attrs": {
|
|
408
|
+
"trigger:0": { "aria-expanded": "true" },
|
|
409
|
+
"panel:0": { "hidden": null, "data-open": "true" }
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{ "event": "click", "target": "trigger:1" },
|
|
414
|
+
{
|
|
415
|
+
"expect": {
|
|
416
|
+
"attrs": {
|
|
417
|
+
"trigger:0": { "aria-expanded": "false" },
|
|
418
|
+
"panel:0": { "hidden": "true", "data-closed": "true" }
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"id": "disclosure.base-ui.hidden-until-found-reveals",
|
|
426
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/collapsible/panel/CollapsiblePanel.test.tsx#L1840",
|
|
427
|
+
"upstreamTest": "<Collapsible.Panel /> > prop: hiddenUntilFound > uses `hidden=\"until-found\" to hide panel when true",
|
|
428
|
+
"apg": "extension",
|
|
429
|
+
"config": {
|
|
430
|
+
"hiddenUntilFound": true,
|
|
431
|
+
"keepMounted": true,
|
|
432
|
+
"initialOpen": false
|
|
433
|
+
},
|
|
434
|
+
"steps": [
|
|
435
|
+
{
|
|
436
|
+
"expect": {
|
|
437
|
+
"attrs": { "panel:0": { "hidden": "until-found" } }
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{ "event": "prop", "prop": "beforematch", "target": "panel:0" },
|
|
441
|
+
{
|
|
442
|
+
"expect": {
|
|
443
|
+
"events": { "onOpenChange": [true] },
|
|
444
|
+
"attrs": { "panel:0": { "data-open": "true" } }
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"notes": "beforematch is a browser find-in-page reveal, expressed here as a prop event because the documented event set has no dedicated beforematch event; the panel is expanded when it fires."
|
|
449
|
+
}
|
|
450
|
+
]
|
|
451
|
+
}
|