@astryxdesign/core 0.7.6-canary.f73623d → 0.7.6-canary.f899313

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 (921) hide show
  1. package/dist/Badge/Badge.d.ts.map +1 -1
  2. package/dist/Badge/Badge.js +2 -1
  3. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
  4. package/dist/ComplexSelector/ComplexSelector.js +8 -2
  5. package/dist/DateInput/MonthScroller.d.ts.map +1 -1
  6. package/dist/DateInput/MonthScroller.js +17 -18
  7. package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  8. package/dist/DateRangeInput/DateRangeInput.js +8 -4
  9. package/dist/DropdownMenu/DropdownMenuGroup.d.ts.map +1 -1
  10. package/dist/DropdownMenu/DropdownMenuGroup.js +2 -1
  11. package/dist/Field/FieldLabel.d.ts.map +1 -1
  12. package/dist/Field/FieldLabel.js +27 -2
  13. package/dist/FieldStatus/FieldStatus.d.ts +3 -0
  14. package/dist/FieldStatus/FieldStatus.d.ts.map +1 -1
  15. package/dist/FieldStatus/FieldStatus.js +1 -0
  16. package/dist/FileInput/FileInput.d.ts +3 -0
  17. package/dist/FileInput/FileInput.d.ts.map +1 -1
  18. package/dist/FileInput/FileInput.js +59 -33
  19. package/dist/Layer/useTouchTrigger.d.ts +9 -0
  20. package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
  21. package/dist/Layer/useTouchTrigger.js +1 -1
  22. package/dist/Link/Link.d.ts.map +1 -1
  23. package/dist/Link/Link.js +10 -1
  24. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  25. package/dist/MultiSelector/MultiSelector.js +19 -9
  26. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  27. package/dist/NumberInput/NumberInput.js +11 -15
  28. package/dist/Selector/Selector.d.ts.map +1 -1
  29. package/dist/Selector/Selector.js +9 -6
  30. package/dist/Selector/hooks.js +2 -2
  31. package/dist/Slider/Slider.d.ts.map +1 -1
  32. package/dist/Slider/Slider.js +82 -10
  33. package/dist/Token/Token.d.ts +1 -1
  34. package/dist/Token/Token.d.ts.map +1 -1
  35. package/dist/Token/Token.js +15 -0
  36. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  37. package/dist/Tokenizer/Tokenizer.js +16 -1
  38. package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
  39. package/dist/Typeahead/BaseTypeahead.js +10 -3
  40. package/dist/Typeahead/Typeahead.d.ts.map +1 -1
  41. package/dist/Typeahead/Typeahead.js +36 -10
  42. package/dist/astryx.css +1 -1
  43. package/dist/i18n/useListFormatter.d.ts +9 -0
  44. package/dist/i18n/useListFormatter.d.ts.map +1 -0
  45. package/dist/i18n/useListFormatter.js +41 -0
  46. package/package.json +18 -5
  47. package/src/Badge/Badge.tsx +2 -1
  48. package/src/Chat/ChatMessage.spec.md +64 -65
  49. package/src/Citation/Citation.spec.md +60 -47
  50. package/src/ComplexSelector/ComplexSelector.tsx +19 -2
  51. package/src/DateInput/DateInput.spec.md +74 -57
  52. package/src/DateInput/MonthScroller.tsx +15 -17
  53. package/src/DateRangeInput/DateRangeInput.tsx +18 -3
  54. package/src/DropdownMenu/DropdownMenuGroup.tsx +2 -1
  55. package/src/Field/Field.doc.mjs +2 -1
  56. package/src/Field/FieldLabel.doc.mjs +4 -2
  57. package/src/Field/FieldLabel.spec.md +30 -21
  58. package/src/Field/FieldLabel.tsx +37 -3
  59. package/src/FieldStatus/FieldStatus.tsx +7 -0
  60. package/src/FileInput/FileInput.tsx +69 -28
  61. package/src/FormLayout/FormLayout.spec.md +11 -19
  62. package/src/Layer/useTouchTrigger.ts +1 -1
  63. package/src/Lightbox/Lightbox.spec.md +249 -61
  64. package/src/Link/Link.tsx +9 -2
  65. package/src/MultiSelector/MultiSelector.spec.md +121 -114
  66. package/src/MultiSelector/MultiSelector.tsx +19 -5
  67. package/src/NumberInput/NumberInput.tsx +11 -18
  68. package/src/ProgressBar/ProgressBar.spec.md +143 -119
  69. package/src/Selector/Selector.tsx +16 -6
  70. package/src/Selector/hooks.ts +2 -2
  71. package/src/Slider/Slider.spec.md +18 -16
  72. package/src/Slider/Slider.tsx +101 -9
  73. package/src/Token/Token.spec.md +24 -23
  74. package/src/Token/Token.tsx +15 -0
  75. package/src/Tokenizer/Tokenizer.tsx +10 -0
  76. package/src/Typeahead/BaseTypeahead.tsx +18 -2
  77. package/src/Typeahead/Typeahead.tsx +40 -9
  78. package/src/i18n/useListFormatter.ts +42 -0
  79. package/dist/Item/ItemMarkerColumns.a11y.chromium.spec.d.ts +0 -2
  80. package/dist/Item/ItemMarkerColumns.a11y.chromium.spec.js +0 -132
  81. package/dist/Lightbox/LightboxKeyboard.a11y.browser.spec.d.ts +0 -2
  82. package/dist/Lightbox/LightboxKeyboard.a11y.browser.spec.js +0 -78
  83. package/dist/Lightbox/LightboxViewport.a11y.browser.spec.d.ts +0 -2
  84. package/dist/Lightbox/LightboxViewport.a11y.browser.spec.js +0 -66
  85. package/dist/List/ListMarkers.a11y.chromium.spec.d.ts +0 -2
  86. package/dist/List/ListMarkers.a11y.chromium.spec.js +0 -677
  87. package/dist/Markdown/Markdown.fr23.bench.d.ts +0 -2
  88. package/dist/Markdown/Markdown.fr23.bench.d.ts.map +0 -1
  89. package/dist/Markdown/Markdown.fr23.bench.js +0 -152
  90. package/dist/Markdown/MarkdownTable.a11y.chromium.spec.d.ts +0 -2
  91. package/dist/Markdown/MarkdownTable.a11y.chromium.spec.js +0 -590
  92. package/dist/Markdown/plugins/headingLinks.a11y.chromium.spec.d.ts +0 -2
  93. package/dist/Markdown/plugins/headingLinks.a11y.chromium.spec.js +0 -657
  94. package/dist/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.d.ts +0 -2
  95. package/dist/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.js +0 -153
  96. package/dist/MultiSelector/CreateRow.a11y.chromium.spec.d.ts +0 -2
  97. package/dist/MultiSelector/CreateRow.a11y.chromium.spec.js +0 -117
  98. package/dist/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.d.ts +0 -2
  99. package/dist/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.js +0 -49
  100. package/dist/MultiSelector/OptionActions.a11y.chromium.spec.d.ts +0 -2
  101. package/dist/MultiSelector/OptionActions.a11y.chromium.spec.js +0 -273
  102. package/dist/Outline/OutlineFocus.a11y.chromium.spec.d.ts +0 -2
  103. package/dist/Outline/OutlineFocus.a11y.chromium.spec.js +0 -421
  104. package/dist/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.d.ts +0 -2
  105. package/dist/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.js +0 -118
  106. package/dist/reset.a11y.chromium.spec.d.ts +0 -2
  107. package/dist/reset.a11y.chromium.spec.js +0 -231
  108. package/dist/reset.until-found.a11y.browser.spec.d.ts +0 -2
  109. package/dist/reset.until-found.a11y.browser.spec.js +0 -72
  110. package/src/AlertDialog/AlertDialog.test.tsx +0 -519
  111. package/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts +0 -128
  112. package/src/AlertDialog/__tests__/AlertDialog.a11y.renders.tsx +0 -52
  113. package/src/AlertDialog/__tests__/AlertDialog.a11y.states.ts +0 -68
  114. package/src/AlertDialog/__tests__/AlertDialog.a11y.test.tsx +0 -144
  115. package/src/AlertDialog/useImperativeAlertDialog.test.tsx +0 -163
  116. package/src/AppShell/AppShell.test.tsx +0 -1310
  117. package/src/AppShell/__tests__/AppShellMainKeyboard.a11y.browser.spec.ts +0 -534
  118. package/src/AppShell/observeMainOverflow.test.ts +0 -173
  119. package/src/AspectRatio/AspectRatio.test.tsx +0 -398
  120. package/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts +0 -158
  121. package/src/Avatar/Avatar.test.tsx +0 -867
  122. package/src/Avatar/AvatarStatusDot.test.tsx +0 -306
  123. package/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts +0 -126
  124. package/src/AvatarGroup/AvatarGroup.test.tsx +0 -313
  125. package/src/AvatarGroup/AvatarGroupOverflow.test.tsx +0 -263
  126. package/src/Badge/Badge.test.tsx +0 -125
  127. package/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts +0 -260
  128. package/src/Banner/Banner.test.tsx +0 -879
  129. package/src/Blockquote/Blockquote.test.tsx +0 -121
  130. package/src/BottomSheet/BottomSheet.test.tsx +0 -3154
  131. package/src/BottomSheet/BottomSheetEdgeTint.test.tsx +0 -248
  132. package/src/BottomSheet/BottomSheetKeyboard.test.tsx +0 -195
  133. package/src/BottomSheet/BottomSheetPanel.test.tsx +0 -549
  134. package/src/BottomSheet/BottomSheetReplace.test.tsx +0 -1638
  135. package/src/BottomSheet/BottomSheetStacking.announce.test.tsx +0 -246
  136. package/src/BottomSheet/BottomSheetStacking.test.tsx +0 -3184
  137. package/src/BottomSheet/BottomSheetSwitcher.test.tsx +0 -2010
  138. package/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts +0 -129
  139. package/src/BottomSheet/__tests__/BottomSheetFocusReturn.a11y.browser.spec.ts +0 -97
  140. package/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts +0 -415
  141. package/src/BottomSheet/__tests__/BottomSheetNativeModal.a11y.browser.spec.ts +0 -462
  142. package/src/BottomSheet/__tests__/BottomSheetPinchZoom.a11y.chromium.spec.ts +0 -247
  143. package/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts +0 -83
  144. package/src/BottomSheet/snapOffsets.test.ts +0 -254
  145. package/src/BottomSheet/useSheetGestures.test.ts +0 -1690
  146. package/src/Breadcrumbs/Breadcrumbs.test.tsx +0 -921
  147. package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts +0 -132
  148. package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.renders.tsx +0 -45
  149. package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.states.ts +0 -81
  150. package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.test.tsx +0 -125
  151. package/src/Button/Button.test.tsx +0 -864
  152. package/src/Button/__tests__/Button.a11y.chromium.spec.ts +0 -355
  153. package/src/Button/__tests__/Button.a11y.harnesses.tsx +0 -47
  154. package/src/Button/__tests__/Button.a11y.known-failures.ts +0 -25
  155. package/src/Button/__tests__/Button.a11y.renders.tsx +0 -139
  156. package/src/Button/__tests__/Button.a11y.states.ts +0 -317
  157. package/src/Button/__tests__/Button.a11y.test.tsx +0 -187
  158. package/src/ButtonGroup/ButtonGroup.test.tsx +0 -1025
  159. package/src/Calendar/Calendar.test.tsx +0 -2186
  160. package/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts +0 -141
  161. package/src/Calendar/__tests__/Calendar.a11y.known-failures.ts +0 -12
  162. package/src/Calendar/__tests__/Calendar.a11y.renders.tsx +0 -57
  163. package/src/Calendar/__tests__/Calendar.a11y.states.ts +0 -139
  164. package/src/Calendar/__tests__/Calendar.a11y.test.tsx +0 -137
  165. package/src/Calendar/dayCellUtils.test.ts +0 -520
  166. package/src/Calendar/getInitialFocusDate.test.ts +0 -94
  167. package/src/Calendar/getStandaloneShortWeekdayNames.test.ts +0 -54
  168. package/src/Calendar/hooks/useCalendarConstraints.test.ts +0 -153
  169. package/src/Calendar/hooks/useCalendarDays.test.ts +0 -265
  170. package/src/Calendar/hooks/useCalendarNavigation.test.ts +0 -252
  171. package/src/Card/Card.test.tsx +0 -202
  172. package/src/Carousel/Carousel.test.tsx +0 -1036
  173. package/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts +0 -207
  174. package/src/Carousel/__tests__/Carousel.a11y.known-failures.ts +0 -12
  175. package/src/Carousel/__tests__/Carousel.a11y.renders.tsx +0 -39
  176. package/src/Carousel/__tests__/Carousel.a11y.states.ts +0 -139
  177. package/src/Carousel/__tests__/Carousel.a11y.test.tsx +0 -127
  178. package/src/Center/Center.test.tsx +0 -406
  179. package/src/Chat/ChatComposer.test.tsx +0 -364
  180. package/src/Chat/ChatComposerDrawer.test.tsx +0 -130
  181. package/src/Chat/ChatComposerInput.test.tsx +0 -2136
  182. package/src/Chat/ChatComposerTokenElement.test.tsx +0 -85
  183. package/src/Chat/ChatDictationButton.test.tsx +0 -108
  184. package/src/Chat/ChatLayout.test.tsx +0 -311
  185. package/src/Chat/ChatLayoutScrollButton.test.tsx +0 -99
  186. package/src/Chat/ChatMessage.test.tsx +0 -344
  187. package/src/Chat/ChatMessageBubble.test.tsx +0 -294
  188. package/src/Chat/ChatMessageList.test.tsx +0 -198
  189. package/src/Chat/ChatMessageMetadata.test.tsx +0 -66
  190. package/src/Chat/ChatPastedTextToken.test.tsx +0 -71
  191. package/src/Chat/ChatSendButton.test.tsx +0 -309
  192. package/src/Chat/ChatSystemMessage.test.tsx +0 -189
  193. package/src/Chat/ChatTokenizedText.test.tsx +0 -163
  194. package/src/Chat/ChatToolCalls.test.tsx +0 -413
  195. package/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts +0 -577
  196. package/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts +0 -740
  197. package/src/Chat/__tests__/ChatMessageBubble.a11y.chromium.spec.ts +0 -457
  198. package/src/Chat/__tests__/ChatMessageBubble.auditProvenance.test.ts +0 -91
  199. package/src/Chat/__tests__/ChatMessageBubble.auditProvenance.ts +0 -91
  200. package/src/Chat/__tests__/ChatMessageList.a11y.chromium.spec.ts +0 -465
  201. package/src/Chat/__tests__/ChatMessageMetadata.a11y.chromium.spec.ts +0 -416
  202. package/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts +0 -1523
  203. package/src/Chat/__tests__/ChatSystemMessage.a11y.chromium.spec.ts +0 -1004
  204. package/src/Chat/__tests__/ChatTokenizedText.a11y.chromium.spec.ts +0 -574
  205. package/src/Chat/__tests__/useChatStreamScroll.a11y.chromium.spec.ts +0 -263
  206. package/src/Chat/__tests__/useChatStreamScroll.fixture.tsx +0 -61
  207. package/src/Chat/useChatDictation.test.tsx +0 -369
  208. package/src/Chat/useChatNewMessages.test.tsx +0 -209
  209. package/src/Chat/useChatPasteAsToken.test.ts +0 -191
  210. package/src/Chat/useChatStreamScroll.test.tsx +0 -381
  211. package/src/Chat/useTriggerMenu.test.tsx +0 -994
  212. package/src/CheckboxInput/CheckboxInput.test.tsx +0 -926
  213. package/src/CheckboxInput/__tests__/Checkbox.a11y.chromium.spec.ts +0 -354
  214. package/src/CheckboxInput/__tests__/Checkbox.a11y.known-failures.ts +0 -54
  215. package/src/CheckboxInput/__tests__/Checkbox.a11y.renders.tsx +0 -310
  216. package/src/CheckboxInput/__tests__/Checkbox.a11y.states.ts +0 -404
  217. package/src/CheckboxInput/__tests__/Checkbox.a11y.test.tsx +0 -128
  218. package/src/CheckboxList/CheckboxList.fr10.test.tsx +0 -51
  219. package/src/CheckboxList/CheckboxList.test.tsx +0 -1159
  220. package/src/CheckboxList/__tests__/CheckboxList.a11y.chromium.spec.ts +0 -1998
  221. package/src/Citation/Citation.test.tsx +0 -361
  222. package/src/ClickableCard/ClickableCard.test.tsx +0 -382
  223. package/src/Code/Code.test.tsx +0 -75
  224. package/src/CodeBlock/CodeBlock.highlightStyles.test.tsx +0 -87
  225. package/src/CodeBlock/CodeBlock.test.tsx +0 -752
  226. package/src/CodeBlock/CodeLanguage.test.tsx +0 -173
  227. package/src/CodeBlock/__tests__/CodeBlockCopyClearance.a11y.chromium.spec.ts +0 -325
  228. package/src/CodeBlock/__tests__/CodeBlockLanguages.a11y.chromium.spec.ts +0 -64
  229. package/src/CodeBlock/__tests__/CodeBlockOverflowStop.a11y.chromium.spec.ts +0 -126
  230. package/src/CodeBlock/__tests__/DiffRowPaint.a11y.chromium.spec.ts +0 -94
  231. package/src/CodeBlock/highlightRanges.test.ts +0 -253
  232. package/src/CodeBlock/languages.test.ts +0 -402
  233. package/src/CodeBlock/tokenizer.test.ts +0 -280
  234. package/src/CodeBlock/tokenizerBudget.test.ts +0 -112
  235. package/src/Collapsible/Collapsible.test.tsx +0 -620
  236. package/src/Collapsible/CollapsibleGroup.test.tsx +0 -656
  237. package/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts +0 -194
  238. package/src/Collapsible/__tests__/Collapsible.a11y.states.ts +0 -117
  239. package/src/Collapsible/__tests__/Collapsible.a11y.test.tsx +0 -140
  240. package/src/Collapsible/__tests__/CollapsibleGroup.a11y.chromium.spec.ts +0 -559
  241. package/src/Collapsible/__tests__/CollapsibleGroup.a11y.renders.tsx +0 -45
  242. package/src/Collapsible/__tests__/CollapsibleGroup.a11y.states.ts +0 -139
  243. package/src/Collapsible/__tests__/CollapsibleGroup.a11y.test.tsx +0 -135
  244. package/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts +0 -141
  245. package/src/Collapsible/useCollapsible.test.tsx +0 -236
  246. package/src/CommandPalette/CommandPalette.perf.test.ts +0 -100
  247. package/src/CommandPalette/CommandPalette.test.tsx +0 -750
  248. package/src/CommandPalette/CommandPaletteEmpty.test.tsx +0 -101
  249. package/src/CommandPalette/CommandPaletteFooter.test.tsx +0 -122
  250. package/src/CommandPalette/CommandPaletteGroup.test.tsx +0 -129
  251. package/src/CommandPalette/CommandPaletteInput.test.tsx +0 -539
  252. package/src/CommandPalette/CommandPaletteItem.test.tsx +0 -417
  253. package/src/CommandPalette/CommandPaletteList.test.tsx +0 -184
  254. package/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts +0 -600
  255. package/src/CommandPalette/__tests__/CommandPaletteEmptyAudit.a11y.chromium.spec.ts +0 -715
  256. package/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts +0 -582
  257. package/src/CommandPalette/__tests__/CommandPaletteInputAudit.a11y.chromium.spec.ts +0 -336
  258. package/src/CommandPalette/__tests__/CommandPaletteItemAudit.a11y.chromium.spec.ts +0 -523
  259. package/src/ComplexSelector/ComplexSelector.focusableDisabled.test.tsx +0 -76
  260. package/src/ComplexSelector/ComplexSelector.fr10.test.tsx +0 -262
  261. package/src/ComplexSelector/ComplexSelector.test.tsx +0 -1171
  262. package/src/ComplexSelector/__tests__/ComplexSelector.a11y.chromium.spec.ts +0 -965
  263. package/src/ContextMenu/ContextMenu.test.tsx +0 -1617
  264. package/src/ContextMenu/ContextMenu.triggerProps.test.tsx +0 -54
  265. package/src/ContextMenu/__tests__/ContextMenuAudit.a11y.chromium.spec.ts +0 -439
  266. package/src/ContextMenu/__tests__/ContextMenuCursorAnchor.a11y.browser.spec.ts +0 -154
  267. package/src/ContextMenu/__tests__/ContextMenuLongPress.a11y.chromium.spec.ts +0 -117
  268. package/src/DateInput/DateInput.fr10.test.tsx +0 -283
  269. package/src/DateInput/DateInput.test.tsx +0 -1571
  270. package/src/DateInput/DateInputTouch.test.tsx +0 -2948
  271. package/src/DateInput/MonthScrollerSettle.test.tsx +0 -165
  272. package/src/DateInput/NativeDateField.test.tsx +0 -741
  273. package/src/DateInput/Presentation.test.tsx +0 -121
  274. package/src/DateInput/__tests__/DateInputAudit.a11y.chromium.spec.ts +0 -577
  275. package/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts +0 -312
  276. package/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts +0 -171
  277. package/src/DateRangeInput/DateRangeInput.fr10.test.tsx +0 -165
  278. package/src/DateRangeInput/DateRangeInput.test.tsx +0 -1151
  279. package/src/DateTimeInput/DateTimeInput.fr10.test.tsx +0 -319
  280. package/src/DateTimeInput/DateTimeInput.test.tsx +0 -2656
  281. package/src/DateTimeInput/DateTimeInputTouch.test.tsx +0 -1071
  282. package/src/DateTimeInput/NativePickerSegments.test.tsx +0 -657
  283. package/src/DateTimeInput/Presentation.test.tsx +0 -89
  284. package/src/Dialog/Dialog.source-build.test.mjs +0 -43
  285. package/src/Dialog/Dialog.test.tsx +0 -1599
  286. package/src/Dialog/DialogHeader.test.tsx +0 -477
  287. package/src/Dialog/__tests__/Dialog.a11y.browser.spec.ts +0 -111
  288. package/src/Dialog/__tests__/Dialog.a11y.chromium.spec.ts +0 -218
  289. package/src/Dialog/__tests__/Dialog.a11y.known-failures.ts +0 -28
  290. package/src/Dialog/__tests__/Dialog.a11y.renders.tsx +0 -107
  291. package/src/Dialog/__tests__/Dialog.a11y.states.ts +0 -104
  292. package/src/Dialog/__tests__/Dialog.a11y.test.tsx +0 -102
  293. package/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts +0 -252
  294. package/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts +0 -202
  295. package/src/Dialog/useImperativeDialog.test.tsx +0 -78
  296. package/src/Divider/Divider.test.tsx +0 -155
  297. package/src/Drawer/Drawer.test.tsx +0 -1335
  298. package/src/Drawer/DrawerDirection.test.tsx +0 -127
  299. package/src/Drawer/DrawerHeader.test.tsx +0 -102
  300. package/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts +0 -402
  301. package/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts +0 -298
  302. package/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts +0 -267
  303. package/src/DropdownMenu/DropdownMenu.ssr.test.tsx +0 -93
  304. package/src/DropdownMenu/DropdownMenu.test.tsx +0 -4498
  305. package/src/DropdownMenu/DropdownMenuContext.public.test.ts +0 -22
  306. package/src/DropdownMenu/DropdownMenuLazySheet.test.tsx +0 -126
  307. package/src/DropdownMenu/DropdownMenuSelectable.test.tsx +0 -635
  308. package/src/DropdownMenu/DropdownMenuSheetFirstOpen.test.tsx +0 -72
  309. package/src/DropdownMenu/DropdownMenuSubMenu.test.tsx +0 -2442
  310. package/src/DropdownMenu/__tests__/DropdownMenuDividerAudit.a11y.chromium.spec.ts +0 -281
  311. package/src/DropdownMenu/__tests__/DropdownMenuDrillIn.a11y.chromium.spec.ts +0 -175
  312. package/src/DropdownMenu/__tests__/DropdownMenuFocusReturn.a11y.browser.spec.ts +0 -74
  313. package/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts +0 -335
  314. package/src/DropdownMenu/__tests__/DropdownMenuItemAudit.a11y.chromium.spec.ts +0 -367
  315. package/src/DropdownMenu/__tests__/DropdownMenuRadioGroupAudit.a11y.chromium.spec.ts +0 -328
  316. package/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts +0 -540
  317. package/src/DropdownMenu/__tests__/DropdownMenuSubMenuAudit.a11y.chromium.spec.ts +0 -671
  318. package/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts +0 -158
  319. package/src/DropdownMenu/__tests__/Menu.a11y.known-failures.ts +0 -26
  320. package/src/DropdownMenu/__tests__/Menu.a11y.renders.tsx +0 -65
  321. package/src/DropdownMenu/__tests__/Menu.a11y.states.ts +0 -138
  322. package/src/DropdownMenu/__tests__/Menu.a11y.test.tsx +0 -136
  323. package/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts +0 -149
  324. package/src/DropdownMenu/__tests__/MenuButton.a11y.known-failures.ts +0 -12
  325. package/src/DropdownMenu/__tests__/MenuButton.a11y.renders.tsx +0 -67
  326. package/src/DropdownMenu/__tests__/MenuButton.a11y.states.ts +0 -141
  327. package/src/DropdownMenu/__tests__/MenuButton.a11y.test.tsx +0 -138
  328. package/src/DropdownMenu/__tests__/MenuHeaderFooter.a11y.chromium.spec.ts +0 -231
  329. package/src/DropdownMenu/__tests__/MenuHoverFocus.a11y.chromium.spec.ts +0 -238
  330. package/src/DropdownMenu/__tests__/MenuPinchZoom.a11y.chromium.spec.ts +0 -173
  331. package/src/DropdownMenu/__tests__/MenuPress.a11y.chromium.spec.ts +0 -503
  332. package/src/DropdownMenu/__tests__/SubMenuHeaderFooter.a11y.chromium.spec.ts +0 -268
  333. package/src/DropdownMenu/__tests__/warmMenuBottomSheet.tsx +0 -43
  334. package/src/DropdownMenu/lazyMenuBottomSheet.test.ts +0 -60
  335. package/src/EmptyState/EmptyState.announce.test.tsx +0 -227
  336. package/src/EmptyState/EmptyState.test.tsx +0 -284
  337. package/src/Field/Field.test.tsx +0 -800
  338. package/src/Field/FieldLabel.test.tsx +0 -244
  339. package/src/Field/InputClearButton.test.tsx +0 -395
  340. package/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts +0 -297
  341. package/src/Field/fieldInputFamily.test.tsx +0 -160
  342. package/src/FieldStatus/FieldStatus.test.tsx +0 -482
  343. package/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts +0 -206
  344. package/src/FieldStatus/__tests__/StatusMessage.a11y.known-failures.ts +0 -13
  345. package/src/FieldStatus/__tests__/StatusMessage.a11y.renders.tsx +0 -287
  346. package/src/FieldStatus/__tests__/StatusMessage.a11y.states.ts +0 -302
  347. package/src/FieldStatus/__tests__/StatusMessage.a11y.test.tsx +0 -154
  348. package/src/FileInput/FileInput.fr10.test.tsx +0 -21
  349. package/src/FileInput/FileInput.test.tsx +0 -1291
  350. package/src/FormLayout/FormLayout.test.tsx +0 -444
  351. package/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap +0 -46
  352. package/src/Grid/Grid.test.tsx +0 -509
  353. package/src/HStack/HStack.test.tsx +0 -129
  354. package/src/Heading/Heading.test.tsx +0 -328
  355. package/src/HoverCard/HoverCard.test.tsx +0 -1339
  356. package/src/Icon/Icon.test.tsx +0 -990
  357. package/src/Icon/globalIconRegistry.test.tsx +0 -613
  358. package/src/IconButton/IconButton.test.tsx +0 -156
  359. package/src/Indicator/Indicator.test.tsx +0 -389
  360. package/src/Indicator/indicatorRegistry.test.tsx +0 -106
  361. package/src/InputGroup/InputGroup.test.tsx +0 -502
  362. package/src/InteractiveRoleContext/InteractiveRoleContext.test.tsx +0 -185
  363. package/src/Item/Item.source-build.test.mjs +0 -88
  364. package/src/Item/Item.swipeLayer.test.tsx +0 -74
  365. package/src/Item/Item.test.tsx +0 -1515
  366. package/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts +0 -211
  367. package/src/Item/__tests__/ItemSwipeActions.a11y.chromium.spec.ts +0 -337
  368. package/src/Item/__tests__/ItemSwipePinchZoom.a11y.chromium.spec.ts +0 -186
  369. package/src/Kbd/Kbd.test.tsx +0 -299
  370. package/src/Layer/LayerProvider.test.tsx +0 -143
  371. package/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts +0 -126
  372. package/src/Layer/__tests__/LayerReducedMotion.a11y.chromium.spec.ts +0 -176
  373. package/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts +0 -200
  374. package/src/Layer/anchorName.test.ts +0 -146
  375. package/src/Layer/layerDismissalFamilies.test.tsx +0 -487
  376. package/src/Layer/layerDismissalInvariants.test.tsx +0 -501
  377. package/src/Layer/layerHost.test.ts +0 -117
  378. package/src/Layer/layerScopedContext.test.tsx +0 -499
  379. package/src/Layer/layerViewportInset.source-build.test.mjs +0 -90
  380. package/src/Layer/layerViewportInset.test.ts +0 -120
  381. package/src/Layer/popoverOperations.test.ts +0 -205
  382. package/src/Layer/useLayer.test.tsx +0 -2845
  383. package/src/Layer/useLayerDismissal.test.tsx +0 -580
  384. package/src/Layer/useTouchTrigger.test.ts +0 -70
  385. package/src/Layout/Layout.test.tsx +0 -375
  386. package/src/Layout/LayoutSlots.test.tsx +0 -376
  387. package/src/Layout/__tests__/Layout.a11y.chromium.spec.ts +0 -134
  388. package/src/Layout/__tests__/Layout.a11y.renders.tsx +0 -110
  389. package/src/Layout/__tests__/Layout.a11y.states.ts +0 -93
  390. package/src/Layout/__tests__/Layout.a11y.test.tsx +0 -142
  391. package/src/Layout/__tests__/childrenAsContent.test.tsx +0 -59
  392. package/src/Layout/__tests__/contentWidth.test.tsx +0 -303
  393. package/src/Layout/__tests__/edgeCompensation.test.tsx +0 -191
  394. package/src/Layout/__tests__/nestedPadding.test.tsx +0 -264
  395. package/src/Layout/overlayPaddingReset.test.tsx +0 -224
  396. package/src/Lightbox/Lightbox.test.tsx +0 -837
  397. package/src/Lightbox/LightboxKeyboard.a11y.browser.spec.ts +0 -78
  398. package/src/Lightbox/LightboxViewport.a11y.browser.spec.ts +0 -74
  399. package/src/Lightbox/useLightbox.test.tsx +0 -263
  400. package/src/Link/Link.test.tsx +0 -457
  401. package/src/Link/__tests__/Link.a11y.chromium.spec.ts +0 -153
  402. package/src/Link/__tests__/Link.a11y.renders.tsx +0 -97
  403. package/src/Link/__tests__/Link.a11y.states.ts +0 -104
  404. package/src/Link/__tests__/Link.a11y.test.tsx +0 -127
  405. package/src/Link/__tests__/Link.navigation.a11y.chromium.spec.ts +0 -262
  406. package/src/Link/__tests__/Link.truncation.a11y.chromium.spec.ts +0 -58
  407. package/src/Link/useLinkComponent.test.tsx +0 -572
  408. package/src/Link/useLinkify.test.tsx +0 -146
  409. package/src/List/List.test.tsx +0 -1052
  410. package/src/List/ListItem.source-build.test.mjs +0 -41
  411. package/src/List/ListMarkers.a11y.chromium.spec.ts +0 -904
  412. package/src/Markdown/Markdown.codeLanguages.test.tsx +0 -137
  413. package/src/Markdown/Markdown.fr23.bench.ts +0 -176
  414. package/src/Markdown/Markdown.fr23.perf.test.ts +0 -484
  415. package/src/Markdown/Markdown.helpers.perf.test.ts +0 -495
  416. package/src/Markdown/Markdown.public.test.ts +0 -309
  417. package/src/Markdown/Markdown.renderBoundary.test.tsx +0 -72
  418. package/src/Markdown/Markdown.rerender.test.tsx +0 -143
  419. package/src/Markdown/Markdown.test.tsx +0 -1383
  420. package/src/Markdown/MarkdownTable.a11y.chromium.spec.ts +0 -727
  421. package/src/Markdown/__tests__/MarkdownNesting.a11y.chromium.spec.ts +0 -102
  422. package/src/Markdown/angleDestinations.test.tsx +0 -104
  423. package/src/Markdown/ast.test.ts +0 -374
  424. package/src/Markdown/atxHeadingIndentation.test.tsx +0 -53
  425. package/src/Markdown/blockNesting.test.tsx +0 -124
  426. package/src/Markdown/blockquoteMarkers.test.tsx +0 -69
  427. package/src/Markdown/characterReferences.test.ts +0 -47
  428. package/src/Markdown/codeSpans.test.tsx +0 -65
  429. package/src/Markdown/emphasis.test.tsx +0 -214
  430. package/src/Markdown/fenceInfo.test.tsx +0 -47
  431. package/src/Markdown/imageAlt.test.tsx +0 -84
  432. package/src/Markdown/incremental.test.ts +0 -1198
  433. package/src/Markdown/incrementalIndentation.test.tsx +0 -36
  434. package/src/Markdown/indentedFences.test.tsx +0 -374
  435. package/src/Markdown/indentedTables.test.tsx +0 -53
  436. package/src/Markdown/linkBrackets.test.tsx +0 -116
  437. package/src/Markdown/linkDestinationLinear.test.tsx +0 -54
  438. package/src/Markdown/linkDestinations.test.tsx +0 -127
  439. package/src/Markdown/linkTextCode.test.tsx +0 -65
  440. package/src/Markdown/listBullets.test.tsx +0 -55
  441. package/src/Markdown/listContinuation.test.tsx +0 -94
  442. package/src/Markdown/listThematicBreak.test.tsx +0 -49
  443. package/src/Markdown/longLinkLabels.test.tsx +0 -49
  444. package/src/Markdown/openFenceFinalNewline.test.tsx +0 -85
  445. package/src/Markdown/parser.perf.test.ts +0 -398
  446. package/src/Markdown/parser.public.test.ts +0 -144
  447. package/src/Markdown/parser.test.ts +0 -1925
  448. package/src/Markdown/plugin-renderer/MarkdownPluginNodeRenderer.test.tsx +0 -300
  449. package/src/Markdown/plugins/frontmatter.test.tsx +0 -150
  450. package/src/Markdown/plugins/headingLinks.a11y.chromium.spec.ts +0 -856
  451. package/src/Markdown/plugins/headingLinks.ssr.test.tsx +0 -143
  452. package/src/Markdown/plugins/headingLinks.test.tsx +0 -637
  453. package/src/Markdown/plugins/protocol.test.tsx +0 -1083
  454. package/src/Markdown/plugins/semanticFence.test.tsx +0 -655
  455. package/src/Markdown/plugins/softBreaks.test.tsx +0 -172
  456. package/src/Markdown/plugins/sourceDecoration.test.tsx +0 -799
  457. package/src/Markdown/plugins/sourceLines.test.tsx +0 -715
  458. package/src/Markdown/plugins/textTransform.test.ts +0 -467
  459. package/src/Markdown/remark.test.tsx +0 -1877
  460. package/src/Markdown/streaming.test.ts +0 -148
  461. package/src/Markdown/streamingListShapes.test.tsx +0 -93
  462. package/src/Markdown/trailingSpaces.test.tsx +0 -45
  463. package/src/MetadataList/MetadataList.test.tsx +0 -383
  464. package/src/MobileNav/MobileNav.test.tsx +0 -296
  465. package/src/MobileNav/MobileNavCloseEdgeCases.test.tsx +0 -584
  466. package/src/MobileNav/MobileNavCloseTiming.test.ts +0 -58
  467. package/src/MobileNav/MobileNavCloseVisibility.test.tsx +0 -172
  468. package/src/MobileNav/MobileNavEntryAnimation.test.tsx +0 -212
  469. package/src/MobileNav/MobileNavFocus.test.tsx +0 -553
  470. package/src/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.ts +0 -147
  471. package/src/MobileNav/MobileNavReopen.test.tsx +0 -118
  472. package/src/MobileNav/MobileNavScrollbarGutter.test.tsx +0 -109
  473. package/src/MobileNav/MobileNavToggle.test.tsx +0 -179
  474. package/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts +0 -89
  475. package/src/MobileNav/__tests__/MobileNavWidth.a11y.chromium.spec.ts +0 -103
  476. package/src/MoreMenu/MoreMenu.test.tsx +0 -367
  477. package/src/MultiSelector/CreateRow.a11y.chromium.spec.ts +0 -148
  478. package/src/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.ts +0 -72
  479. package/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx +0 -121
  480. package/src/MultiSelector/MultiSelector.fr10.test.tsx +0 -221
  481. package/src/MultiSelector/MultiSelector.test.tsx +0 -4971
  482. package/src/MultiSelector/OptionActions.a11y.chromium.spec.ts +0 -310
  483. package/src/MultiSelector/__tests__/MultiSelector.a11y.chromium.spec.ts +0 -46
  484. package/src/MultiSelector/__tests__/MultiSelector.listbox.a11y.test.tsx +0 -135
  485. package/src/NavIcon/NavIcon.test.tsx +0 -41
  486. package/src/NavMenu/NavHeadingMenu.test.tsx +0 -714
  487. package/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts +0 -137
  488. package/src/NumberInput/NumberInput.fr10.test.tsx +0 -21
  489. package/src/NumberInput/NumberInput.test.tsx +0 -2697
  490. package/src/NumberInput/__tests__/NumberInput.a11y.chromium.spec.ts +0 -124
  491. package/src/NumberInput/__tests__/NumberInput.a11y.known-failures.ts +0 -26
  492. package/src/NumberInput/__tests__/NumberInput.a11y.renders.tsx +0 -77
  493. package/src/NumberInput/__tests__/NumberInput.a11y.states.ts +0 -116
  494. package/src/NumberInput/__tests__/NumberInput.a11y.test.tsx +0 -154
  495. package/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts +0 -102
  496. package/src/NumberInput/numberInputCommit.test.ts +0 -72
  497. package/src/NumberInput/numberParser.docblock.test.ts +0 -234
  498. package/src/NumberInput/numberParser.test.ts +0 -222
  499. package/src/Outline/Outline.test.tsx +0 -1134
  500. package/src/Outline/OutlineFocus.a11y.chromium.spec.ts +0 -551
  501. package/src/Outline/parseOutlineFromMarkdown.test.ts +0 -104
  502. package/src/OverflowList/OverflowList.test.tsx +0 -1073
  503. package/src/Overlay/Overlay.test.tsx +0 -424
  504. package/src/Pagination/Pagination.test.tsx +0 -1754
  505. package/src/Popover/Popover.test.tsx +0 -1508
  506. package/src/Popover/PopoverPresentation.test.tsx +0 -952
  507. package/src/Popover/__tests__/PopoverSecondDocument.a11y.chromium.spec.ts +0 -267
  508. package/src/PowerSearch/PowerSearch.test.tsx +0 -1027
  509. package/src/PowerSearch/PowerSearchEditPopover.test.tsx +0 -1190
  510. package/src/PowerSearch/PowerSearchFilterEditor.test.tsx +0 -377
  511. package/src/PowerSearch/PowerSearchToken.test.tsx +0 -230
  512. package/src/PowerSearch/PowerSearchValueEditor.test.tsx +0 -754
  513. package/src/PowerSearch/formatFilterValue.test.ts +0 -339
  514. package/src/PowerSearch/resolveDateTimeRangePart.test.ts +0 -40
  515. package/src/PowerSearch/usePowerSearchConfig.test.ts +0 -832
  516. package/src/PowerSearch/usePowerSearchSource.test.ts +0 -621
  517. package/src/ProgressBar/ProgressBar.test.tsx +0 -928
  518. package/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts +0 -127
  519. package/src/ProgressBar/__tests__/ProgressBar.a11y.known-failures.ts +0 -12
  520. package/src/ProgressBar/__tests__/ProgressBar.a11y.renders.tsx +0 -38
  521. package/src/ProgressBar/__tests__/ProgressBar.a11y.states.ts +0 -123
  522. package/src/ProgressBar/__tests__/ProgressBar.a11y.test.tsx +0 -107
  523. package/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts +0 -831
  524. package/src/RadioList/RadioList.fr10.test.tsx +0 -67
  525. package/src/RadioList/RadioList.test.tsx +0 -1051
  526. package/src/RadioList/RadioListItem.press.source-build.test.mjs +0 -80
  527. package/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts +0 -274
  528. package/src/RadioList/__tests__/RadioGroup.a11y.known-failures.ts +0 -12
  529. package/src/RadioList/__tests__/RadioGroup.a11y.renders.tsx +0 -232
  530. package/src/RadioList/__tests__/RadioGroup.a11y.states.ts +0 -503
  531. package/src/RadioList/__tests__/RadioGroup.a11y.test.tsx +0 -217
  532. package/src/Resizable/ResizeHandle.test.tsx +0 -1067
  533. package/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts +0 -127
  534. package/src/Resizable/__tests__/ResizeHandle.a11y.known-failures.ts +0 -39
  535. package/src/Resizable/__tests__/ResizeHandle.a11y.renders.tsx +0 -80
  536. package/src/Resizable/__tests__/ResizeHandle.a11y.states.ts +0 -197
  537. package/src/Resizable/__tests__/ResizeHandle.a11y.test.tsx +0 -123
  538. package/src/Resizable/shippedDirections.test.ts +0 -462
  539. package/src/Resizable/useResizable.test.ts +0 -1725
  540. package/src/Resizable/utils.test.ts +0 -74
  541. package/src/ScrollableArea/ScrollableArea.test.tsx +0 -304
  542. package/src/Section/Section.test.tsx +0 -376
  543. package/src/SegmentedControl/SegmentedControl.test.tsx +0 -981
  544. package/src/SelectableCard/SelectableCard.test.tsx +0 -216
  545. package/src/Selector/Selector.focusableDisabled.test.tsx +0 -127
  546. package/src/Selector/Selector.fr10.test.tsx +0 -149
  547. package/src/Selector/Selector.sheetActiveDescendant.test.tsx +0 -95
  548. package/src/Selector/Selector.source-build.test.mjs +0 -79
  549. package/src/Selector/Selector.test.tsx +0 -5117
  550. package/src/Selector/__tests__/Combobox.a11y.known-failures.ts +0 -27
  551. package/src/Selector/__tests__/Combobox.a11y.states.ts +0 -145
  552. package/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts +0 -458
  553. package/src/Selector/__tests__/EmptyStateAnnouncement.a11y.chromium.spec.ts +0 -91
  554. package/src/Selector/__tests__/Listbox.a11y.chromium.spec.ts +0 -131
  555. package/src/Selector/__tests__/Listbox.a11y.dom.ts +0 -38
  556. package/src/Selector/__tests__/Listbox.a11y.inventory.test.ts +0 -63
  557. package/src/Selector/__tests__/Listbox.a11y.known-failures.ts +0 -12
  558. package/src/Selector/__tests__/Listbox.a11y.states.ts +0 -232
  559. package/src/Selector/__tests__/Selector.a11y.chromium.spec.ts +0 -46
  560. package/src/Selector/__tests__/Selector.combobox.a11y.chromium.spec.ts +0 -109
  561. package/src/Selector/__tests__/Selector.combobox.a11y.test.tsx +0 -133
  562. package/src/Selector/__tests__/Selector.listbox.a11y.test.tsx +0 -128
  563. package/src/Selector/useCombobox.public.test.tsx +0 -89
  564. package/src/Selector/useCombobox.test.tsx +0 -444
  565. package/src/SideNav/SideNav.test.tsx +0 -4275
  566. package/src/SideNav/SideNavRailMotion.test.tsx +0 -620
  567. package/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts +0 -542
  568. package/src/SizeContext/SizeContext.test.tsx +0 -226
  569. package/src/Skeleton/Skeleton.test.tsx +0 -148
  570. package/src/Slider/Slider.fr10.test.tsx +0 -93
  571. package/src/Slider/Slider.test.tsx +0 -1661
  572. package/src/Slider/__tests__/Slider.a11y.chromium.spec.ts +0 -125
  573. package/src/Slider/__tests__/Slider.a11y.known-failures.ts +0 -12
  574. package/src/Slider/__tests__/Slider.a11y.renders.tsx +0 -42
  575. package/src/Slider/__tests__/Slider.a11y.states.ts +0 -106
  576. package/src/Slider/__tests__/Slider.a11y.test.tsx +0 -105
  577. package/src/Spinner/Spinner.test.tsx +0 -484
  578. package/src/Stack/Stack.test.tsx +0 -473
  579. package/src/Stack/StackItem.test.tsx +0 -105
  580. package/src/StatusDot/StatusDot.test.tsx +0 -213
  581. package/src/Stepper/Stepper.public.test.ts +0 -91
  582. package/src/Stepper/Stepper.test.tsx +0 -2130
  583. package/src/Switch/Switch.focusRing.source-build.test.mjs +0 -81
  584. package/src/Switch/Switch.test.tsx +0 -1136
  585. package/src/Switch/__tests__/Switch.a11y.chromium.spec.ts +0 -211
  586. package/src/Switch/__tests__/Switch.a11y.known-failures.ts +0 -28
  587. package/src/Switch/__tests__/Switch.a11y.states.ts +0 -275
  588. package/src/Switch/__tests__/Switch.a11y.test.tsx +0 -144
  589. package/src/TabList/TabList.test.tsx +0 -1755
  590. package/src/TabList/__tests__/TabListOverflow.interaction.browser.spec.ts +0 -99
  591. package/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts +0 -163
  592. package/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts +0 -199
  593. package/src/TabList/__tests__/Tabs.a11y.known-failures.ts +0 -12
  594. package/src/TabList/__tests__/Tabs.a11y.renders.tsx +0 -92
  595. package/src/TabList/__tests__/Tabs.a11y.states.ts +0 -247
  596. package/src/TabList/__tests__/Tabs.a11y.test.tsx +0 -153
  597. package/src/Table/Table.perf.test.tsx +0 -569
  598. package/src/Table/Table.test.tsx +0 -1883
  599. package/src/Table/TableHeaderCell.test.tsx +0 -291
  600. package/src/Table/TableSelectionToolbar.test.tsx +0 -109
  601. package/src/Table/__tests__/Table.a11y.chromium.spec.ts +0 -141
  602. package/src/Table/__tests__/Table.a11y.contracts.ts +0 -35
  603. package/src/Table/__tests__/Table.a11y.renders.tsx +0 -112
  604. package/src/Table/__tests__/Table.a11y.states.ts +0 -136
  605. package/src/Table/__tests__/Table.a11y.test.tsx +0 -198
  606. package/src/Table/__tests__/TableMinWidth.a11y.chromium.spec.ts +0 -75
  607. package/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts +0 -382
  608. package/src/Table/__tests__/TableScroll.a11y.chromium.spec.ts +0 -138
  609. package/src/Table/__tests__/TableStickyDividers.a11y.browser.spec.ts +0 -560
  610. package/src/Table/plugins/columnResize/useTableColumnResize.test.tsx +0 -941
  611. package/src/Table/plugins/columnSettings/useTableColumnSettings.test.tsx +0 -175
  612. package/src/Table/plugins/columnSettings/useTableColumnSettingsState.test.tsx +0 -296
  613. package/src/Table/plugins/filtering/useTableFilterState.test.tsx +0 -143
  614. package/src/Table/plugins/filtering/useTableFiltering.test.tsx +0 -357
  615. package/src/Table/plugins/groupedRows/useTableGroupedRows-perf.test.tsx +0 -112
  616. package/src/Table/plugins/groupedRows/useTableGroupedRows.test.tsx +0 -409
  617. package/src/Table/plugins/pagination/useTablePagination-perf.test.tsx +0 -232
  618. package/src/Table/plugins/pagination/useTablePagination.test.tsx +0 -666
  619. package/src/Table/plugins/rowExpansion/useTableRowExpansion.glide.test.tsx +0 -280
  620. package/src/Table/plugins/rowExpansion/useTableRowExpansion.test.tsx +0 -681
  621. package/src/Table/plugins/rowIndex/useTableRowIndex.test.tsx +0 -132
  622. package/src/Table/plugins/rowStatus/useTableRowStatus.public.test.ts +0 -92
  623. package/src/Table/plugins/rowStatus/useTableRowStatus.test.tsx +0 -519
  624. package/src/Table/plugins/selection/useTableSelection-perf.test.tsx +0 -258
  625. package/src/Table/plugins/selection/useTableSelection.test.tsx +0 -424
  626. package/src/Table/plugins/selection/useTableSelectionState.test.tsx +0 -451
  627. package/src/Table/plugins/sortable/__tests__/useTableSortable.a11y.test.tsx +0 -174
  628. package/src/Table/plugins/sortable/__tests__/useTableSortable.a11y.ts +0 -86
  629. package/src/Table/plugins/sortable/useTableSortable.test.tsx +0 -786
  630. package/src/Table/plugins/sortable/useTableSortableState.test.tsx +0 -580
  631. package/src/Table/plugins/stickyColumns/useTableStickyColumns.test.tsx +0 -334
  632. package/src/Table/plugins/tree/useTableTreeData-perf.test.tsx +0 -163
  633. package/src/Table/plugins/tree/useTableTreeData.test.tsx +0 -992
  634. package/src/Table/plugins/tree/useTableTreeState.test.tsx +0 -740
  635. package/src/Table/tableContextMenu.test.tsx +0 -208
  636. package/src/Text/Text.test.tsx +0 -405
  637. package/src/Text/useTruncation.test.tsx +0 -196
  638. package/src/TextArea/TextArea.fr10.test.tsx +0 -21
  639. package/src/TextArea/TextArea.test.tsx +0 -1317
  640. package/src/TextInput/TextInput.fr10.test.tsx +0 -21
  641. package/src/TextInput/TextInput.test.tsx +0 -1280
  642. package/src/TextInput/__tests__/TextInput.a11y.chromium.spec.ts +0 -214
  643. package/src/TextInput/__tests__/TextInput.a11y.known-failures.ts +0 -40
  644. package/src/TextInput/__tests__/TextInput.a11y.renders.tsx +0 -202
  645. package/src/TextInput/__tests__/TextInput.a11y.states.ts +0 -384
  646. package/src/TextInput/__tests__/TextInput.a11y.test.tsx +0 -130
  647. package/src/Thumbnail/Thumbnail.test.tsx +0 -384
  648. package/src/TimeInput/NativeTimeInput.test.tsx +0 -343
  649. package/src/TimeInput/Presentation.test.tsx +0 -192
  650. package/src/TimeInput/TimeInput.fr10.test.tsx +0 -312
  651. package/src/TimeInput/TimeInput.test.tsx +0 -907
  652. package/src/Timer/Timer.test.tsx +0 -302
  653. package/src/Timestamp/Timestamp.test.tsx +0 -1661
  654. package/src/Timestamp/tooltipEntries.test.ts +0 -566
  655. package/src/Toast/ToastViewport.modalHost.test.tsx +0 -891
  656. package/src/Toast/ToastViewport.test.tsx +0 -3130
  657. package/src/Toast/useToast.test.tsx +0 -258
  658. package/src/ToggleButton/ToggleButton.test.tsx +0 -1000
  659. package/src/ToggleButton/__tests__/ToggleButton.a11y.chromium.spec.ts +0 -177
  660. package/src/ToggleButton/__tests__/ToggleButton.a11y.renders.tsx +0 -133
  661. package/src/ToggleButton/__tests__/ToggleButton.a11y.states.ts +0 -167
  662. package/src/ToggleButton/__tests__/ToggleButton.a11y.test.tsx +0 -103
  663. package/src/Token/Token.test.tsx +0 -707
  664. package/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts +0 -87
  665. package/src/Tokenizer/Tokenizer.fr10.test.tsx +0 -28
  666. package/src/Tokenizer/Tokenizer.props-type.test.tsx +0 -126
  667. package/src/Tokenizer/Tokenizer.ssr.test.tsx +0 -196
  668. package/src/Tokenizer/Tokenizer.test.tsx +0 -2216
  669. package/src/Tokenizer/TokenizerBottomSheet.test.tsx +0 -2738
  670. package/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts +0 -505
  671. package/src/Toolbar/Toolbar.test.tsx +0 -600
  672. package/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts +0 -176
  673. package/src/Toolbar/__tests__/Toolbar.a11y.renders.tsx +0 -63
  674. package/src/Toolbar/__tests__/Toolbar.a11y.states.ts +0 -142
  675. package/src/Toolbar/__tests__/Toolbar.a11y.test.tsx +0 -126
  676. package/src/Tooltip/Tooltip.test.tsx +0 -819
  677. package/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts +0 -141
  678. package/src/Tooltip/__tests__/Tooltip.a11y.renders.tsx +0 -86
  679. package/src/Tooltip/__tests__/Tooltip.a11y.states.ts +0 -132
  680. package/src/Tooltip/__tests__/Tooltip.a11y.test.tsx +0 -126
  681. package/src/Tooltip/__tests__/TooltipFocusReturn.a11y.chromium.spec.ts +0 -130
  682. package/src/Tooltip/__tests__/TooltipHoverBridge.a11y.chromium.spec.ts +0 -75
  683. package/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts +0 -673
  684. package/src/Tooltip/__tests__/TooltipTallContentTracking.a11y.browser.spec.ts +0 -1162
  685. package/src/Tooltip/useTooltip.test.tsx +0 -483
  686. package/src/TopNav/TopNav.test.tsx +0 -863
  687. package/src/TopNav/TopNavMegaMenu.reduced-motion.source-build.test.mjs +0 -83
  688. package/src/TopNav/TopNavMegaMenu.test.tsx +0 -1153
  689. package/src/TopNav/TopNavMenu.test.tsx +0 -502
  690. package/src/TopNav/__tests__/TopNavMobileLongHeading.a11y.chromium.spec.ts +0 -75
  691. package/src/TreeList/TreeList.test.tsx +0 -1737
  692. package/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts +0 -138
  693. package/src/TreeList/__tests__/TreeList.a11y.renders.tsx +0 -44
  694. package/src/TreeList/__tests__/TreeList.a11y.states.ts +0 -164
  695. package/src/TreeList/__tests__/TreeList.a11y.test.tsx +0 -138
  696. package/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts +0 -127
  697. package/src/TreeList/__tests__/TreeListRowNames.a11y.chromium.spec.ts +0 -83
  698. package/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts +0 -138
  699. package/src/Typeahead/BaseTypeahead.test.tsx +0 -553
  700. package/src/Typeahead/Typeahead.fr10.test.tsx +0 -28
  701. package/src/Typeahead/Typeahead.test.tsx +0 -2984
  702. package/src/Typeahead/TypeaheadItem.test.tsx +0 -134
  703. package/src/VStack/VStack.test.tsx +0 -128
  704. package/src/VisuallyHidden/VisuallyHidden.test.tsx +0 -115
  705. package/src/__tests__/BusyOwnerAnnouncement.test.tsx +0 -853
  706. package/src/__tests__/CardPress.a11y.chromium.spec.ts +0 -353
  707. package/src/__tests__/DisabledTriggerFocus.a11y.chromium.spec.ts +0 -87
  708. package/src/__tests__/PressModality.a11y.chromium.spec.ts +0 -392
  709. package/src/__tests__/PressedState.a11y.chromium.spec.ts +0 -814
  710. package/src/__tests__/TestIcon.tsx +0 -26
  711. package/src/__tests__/babelPluginAddExtensions.test.ts +0 -190
  712. package/src/__tests__/fastRoleQueries.ts +0 -66
  713. package/src/__tests__/forcedColors.ts +0 -60
  714. package/src/__tests__/internalModulesNotExperimental.test.ts +0 -88
  715. package/src/__tests__/pressState.ts +0 -216
  716. package/src/__tests__/stubMatchMedia.test.ts +0 -79
  717. package/src/__tests__/stubMatchMedia.ts +0 -95
  718. package/src/__tests__/stylexDeclarations.ts +0 -51
  719. package/src/__tests__/unthemedLength.ts +0 -34
  720. package/src/docPropLiterals.test.ts +0 -964
  721. package/src/docPropReferences.test.ts +0 -178
  722. package/src/docs-script.test.mjs +0 -55
  723. package/src/gestures/__tests__/GestureHost.test.ts +0 -2136
  724. package/src/gestures/__tests__/LongPressGestureRecognizer.test.ts +0 -141
  725. package/src/gestures/__tests__/PanGestureRecognizer.test.ts +0 -327
  726. package/src/gestures/__tests__/PinchGestureRecognizer.test.ts +0 -74
  727. package/src/gestures/__tests__/PressTracker.test.ts +0 -275
  728. package/src/gestures/__tests__/ScreenEdgePanGestureRecognizer.test.ts +0 -498
  729. package/src/gestures/__tests__/SwipeGestureRecognizer.test.ts +0 -108
  730. package/src/gestures/__tests__/TapGestureRecognizer.test.ts +0 -154
  731. package/src/gestures/__tests__/VelocityTracker.streams.test.ts +0 -243
  732. package/src/gestures/__tests__/VelocityTracker.test.ts +0 -261
  733. package/src/gestures/__tests__/arena.test.ts +0 -864
  734. package/src/gestures/__tests__/arenaContinuous.test.ts +0 -207
  735. package/src/gestures/__tests__/arenaPinchSwipeEdge.test.ts +0 -193
  736. package/src/gestures/__tests__/arenaTapLongPress.test.ts +0 -211
  737. package/src/gestures/__tests__/browser/build-fixture.mjs +0 -46
  738. package/src/gestures/__tests__/browser/fixture.ts +0 -307
  739. package/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts +0 -1137
  740. package/src/gestures/__tests__/browserNegotiation.test.ts +0 -293
  741. package/src/gestures/__tests__/fixtures/pointer-streams/README.md +0 -82
  742. package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-fling.json +0 -130
  743. package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-slow.json +0 -860
  744. package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-stop-release.json +0 -357
  745. package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-fling.json +0 -66
  746. package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-slow.json +0 -268
  747. package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-stop-release.json +0 -128
  748. package/src/gestures/__tests__/fixtures/pointer-streams/capture.html +0 -123
  749. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-fling.json +0 -64
  750. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-slow.json +0 -268
  751. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-stop-release.json +0 -124
  752. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-fling.json +0 -64
  753. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-slow.json +0 -268
  754. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-stop-release.json +0 -124
  755. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-fling.json +0 -84
  756. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-slow.json +0 -381
  757. package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-stop-release.json +0 -171
  758. package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-fling.json +0 -45
  759. package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-slow.json +0 -101
  760. package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-stop-release.json +0 -130
  761. package/src/gestures/__tests__/haptics.test.ts +0 -187
  762. package/src/gestures/__tests__/harness.ts +0 -252
  763. package/src/gestures/__tests__/pressTrackerFactory.test.ts +0 -59
  764. package/src/gestures/__tests__/recognizerKind.test.ts +0 -78
  765. package/src/gestures/__tests__/touchActionRule.test.ts +0 -54
  766. package/src/gestures/__tests__/useGestureRecognizer.test.tsx +0 -570
  767. package/src/hooks/__tests__/MenuPressShadowRoot.a11y.chromium.spec.ts +0 -144
  768. package/src/hooks/__tests__/menuLinkClicks.ts +0 -71
  769. package/src/hooks/actionGroupTracker.exports.test.ts +0 -28
  770. package/src/hooks/actionGroupTracker.test.ts +0 -510
  771. package/src/hooks/computeOverflow.test.ts +0 -422
  772. package/src/hooks/deprecatedApis.public.test.ts +0 -33
  773. package/src/hooks/menuPressGesture.test.ts +0 -253
  774. package/src/hooks/scrollKeyboardDelegation.test.ts +0 -188
  775. package/src/hooks/scrollbarGutter.test.ts +0 -167
  776. package/src/hooks/useAnnounce.modal.test.tsx +0 -1291
  777. package/src/hooks/useAnnounce.replace.test.tsx +0 -516
  778. package/src/hooks/useAnnounce.test.tsx +0 -293
  779. package/src/hooks/useAnnounceRenderedText.adopters.test.tsx +0 -235
  780. package/src/hooks/useAutoMediaMode.test.ts +0 -109
  781. package/src/hooks/useBusyAnnouncement.adopters.test.tsx +0 -69
  782. package/src/hooks/useBusyAnnouncement.test.tsx +0 -112
  783. package/src/hooks/useClickableContainer.test.tsx +0 -236
  784. package/src/hooks/useClipboard.test.tsx +0 -151
  785. package/src/hooks/useContainerReveal.test.tsx +0 -163
  786. package/src/hooks/useDevWarning.test.tsx +0 -45
  787. package/src/hooks/useEntryAnimation.ssr.test.tsx +0 -143
  788. package/src/hooks/useFocusTrap.test.tsx +0 -635
  789. package/src/hooks/useFocusTrapEscapeShim.test.tsx +0 -166
  790. package/src/hooks/useGridFocus.test.tsx +0 -165
  791. package/src/hooks/useHotkeys.test.ts +0 -265
  792. package/src/hooks/useImageMode.test.ts +0 -133
  793. package/src/hooks/useInputContainer.test.tsx +0 -180
  794. package/src/hooks/useInputStatusIcon.test.tsx +0 -240
  795. package/src/hooks/useIsHydrating.test.tsx +0 -70
  796. package/src/hooks/useKeyboardHint.test.tsx +0 -92
  797. package/src/hooks/useListFocus.test.tsx +0 -664
  798. package/src/hooks/useLongPress.test.tsx +0 -152
  799. package/src/hooks/useMediaQuery.test.ts +0 -165
  800. package/src/hooks/useMenuHover.test.tsx +0 -536
  801. package/src/hooks/useMenuPress.test.tsx +0 -565
  802. package/src/hooks/useMergedRefs.test.tsx +0 -62
  803. package/src/hooks/useOverflow.test.ts +0 -504
  804. package/src/hooks/useRenamedProp.test.tsx +0 -95
  805. package/src/hooks/useScrollLock.test.ts +0 -248
  806. package/src/hooks/useScrollOverflow.test.tsx +0 -323
  807. package/src/hooks/useScrollableArea.test.tsx +0 -836
  808. package/src/hooks/useStreamingText.test.ts +0 -237
  809. package/src/hooks/useTreeFocus.test.tsx +0 -351
  810. package/src/hooks/useTypeahead.test.tsx +0 -351
  811. package/src/i18n/__tests__/InternationalizationProvider.test.tsx +0 -128
  812. package/src/i18n/__tests__/e2e-pagination.test.tsx +0 -172
  813. package/src/i18n/__tests__/e2e-powersearch.test.tsx +0 -166
  814. package/src/i18n/__tests__/getLocaleDirection.test.ts +0 -40
  815. package/src/i18n/__tests__/resolve.test.ts +0 -325
  816. package/src/i18n/__tests__/useCollator.test.tsx +0 -115
  817. package/src/i18n/__tests__/useDirection.test.tsx +0 -66
  818. package/src/i18n/__tests__/useLocale.test.tsx +0 -52
  819. package/src/i18n/useTranslator.test.tsx +0 -267
  820. package/src/inputFontFloor.test.ts +0 -106
  821. package/src/internal/tokenizer-presentation.test.ts +0 -29
  822. package/src/internal/touch.test.ts +0 -44
  823. package/src/motion/__tests__/animatedLayout.interaction.browser.spec.ts +0 -1613
  824. package/src/motion/__tests__/animatedLayoutAdopters.interaction.browser.spec.ts +0 -217
  825. package/src/motion/__tests__/animatedLayoutBundle.ts +0 -17
  826. package/src/motion/__tests__/animator.interaction.browser.spec.ts +0 -843
  827. package/src/motion/__tests__/motionBundle.ts +0 -14
  828. package/src/motion/animatedLayout.boundary.test.ts +0 -155
  829. package/src/motion/animatedLayout.swap.test.ts +0 -827
  830. package/src/motion/animatedLayout.test.ts +0 -1154
  831. package/src/motion/animatedLayoutAdopters.test.tsx +0 -500
  832. package/src/motion/animator.test.ts +0 -3746
  833. package/src/motion/bezier.test.ts +0 -52
  834. package/src/motion/coast.test.ts +0 -99
  835. package/src/motion/decay.test.ts +0 -120
  836. package/src/motion/projection.test.ts +0 -107
  837. package/src/motion/reducedMotion.test.ts +0 -129
  838. package/src/motion/reducedMotionPlan.test.ts +0 -208
  839. package/src/motion/resolveMotion.test.ts +0 -123
  840. package/src/motion/resolveSnapPoint.test.ts +0 -189
  841. package/src/motion/roles.test.ts +0 -273
  842. package/src/motion/rubberBand.test.ts +0 -88
  843. package/src/motion/selectPage.test.ts +0 -31
  844. package/src/motion/spring.test.ts +0 -650
  845. package/src/motion/uikit/gestures.test.ts +0 -89
  846. package/src/motion/uikit/springRows.test.ts +0 -71
  847. package/src/motion/uikit/tableImports.test.ts +0 -293
  848. package/src/motion/uikit/uikit.test.ts +0 -364
  849. package/src/motion/uikit/values.test.ts +0 -121
  850. package/src/naming.test.ts +0 -44
  851. package/src/postinstall.test.mjs +0 -216
  852. package/src/reset.a11y.chromium.spec.ts +0 -238
  853. package/src/reset.test.ts +0 -205
  854. package/src/reset.until-found.a11y.browser.spec.ts +0 -76
  855. package/src/reset.until-found.test.ts +0 -32
  856. package/src/serverSafeComponents.test.ts +0 -675
  857. package/src/stylexValidation.source-build.test.mjs +0 -42
  858. package/src/tailwind-theme.test.ts +0 -153
  859. package/src/theme/MediaTheme.dom.test.tsx +0 -97
  860. package/src/theme/Theme.test.tsx +0 -337
  861. package/src/theme/__tests__/SpacingRootFontSize.a11y.chromium.spec.ts +0 -199
  862. package/src/theme/contrast.test.ts +0 -94
  863. package/src/theme/declarationBoundary.test.ts +0 -126
  864. package/src/theme/defineTheme.test.ts +0 -2028
  865. package/src/theme/derivedVarRegistry.test.ts +0 -592
  866. package/src/theme/expandColorScale.test.ts +0 -651
  867. package/src/theme/expandMotionScale.test.ts +0 -145
  868. package/src/theme/expandRadiusScale.test.ts +0 -59
  869. package/src/theme/expandTypeScale.test.ts +0 -351
  870. package/src/theme/extensibleAxes.test.ts +0 -432
  871. package/src/theme/generateThemeRules.test.ts +0 -1870
  872. package/src/theme/hct.test.ts +0 -93
  873. package/src/theme/onMediaTokens.test.ts +0 -431
  874. package/src/theme/publicThemeHelperContract.test.ts +0 -67
  875. package/src/theme/syntax/defineSyntaxTheme.diff.test.ts +0 -91
  876. package/src/theme/syntax/serverSafeSyntax.test.ts +0 -68
  877. package/src/theme/syntax/useSyntaxTheme.diff.test.tsx +0 -40
  878. package/src/theme/themeAdaptations.test.ts +0 -1795
  879. package/src/theme/themeMotion.test.ts +0 -620
  880. package/src/theme/themeRegistry.test.ts +0 -59
  881. package/src/theme/themingTargets.test.ts +0 -589
  882. package/src/theme/tokenValueCompat.test.ts +0 -204
  883. package/src/theme/tokens.test.ts +0 -441
  884. package/src/theme/useTheme.test.tsx +0 -322
  885. package/src/unicodePropertyEscapes.source-build.test.mjs +0 -69
  886. package/src/utils/chainEventHandlers.test.ts +0 -39
  887. package/src/utils/characters.test.ts +0 -141
  888. package/src/utils/color.test.ts +0 -233
  889. package/src/utils/composeEventHandlers.test.ts +0 -71
  890. package/src/utils/customPropertyArmLayering.test.ts +0 -131
  891. package/src/utils/dateParser.test.ts +0 -402
  892. package/src/utils/dateTypes.test.ts +0 -40
  893. package/src/utils/devWarning.test.ts +0 -56
  894. package/src/utils/edgeAutoscroll.test.ts +0 -192
  895. package/src/utils/focusReturn.test.ts +0 -119
  896. package/src/utils/getKey.test.ts +0 -25
  897. package/src/utils/getNodeText.test.ts +0 -24
  898. package/src/utils/hitArea.test.ts +0 -628
  899. package/src/utils/ime.test.ts +0 -32
  900. package/src/utils/inputAria.test.ts +0 -39
  901. package/src/utils/interactionModality.test.ts +0 -144
  902. package/src/utils/isApplePlatform.test.ts +0 -61
  903. package/src/utils/mergeProps.test.ts +0 -166
  904. package/src/utils/mergeRefs.test.ts +0 -48
  905. package/src/utils/parseStyleKey.test.ts +0 -56
  906. package/src/utils/plainDate.test.ts +0 -938
  907. package/src/utils/presentation.test.ts +0 -380
  908. package/src/utils/pressFeedback.test.ts +0 -1012
  909. package/src/utils/pressGesture.test.ts +0 -332
  910. package/src/utils/pressPaintPriority.test.ts +0 -80
  911. package/src/utils/pressPaintSource.test.ts +0 -65
  912. package/src/utils/pressableCoverage.test.ts +0 -192
  913. package/src/utils/primaryClick.test.ts +0 -38
  914. package/src/utils/safeUrl.test.ts +0 -101
  915. package/src/utils/sharedMutationObserver.test.ts +0 -106
  916. package/src/utils/sharedResizeObserver.test.ts +0 -283
  917. package/src/utils/themeProps.test.ts +0 -62
  918. package/src/utils/timeFormat.test.ts +0 -204
  919. package/src/utils/timeParser.test.ts +0 -295
  920. package/src/utils/touchPresentation.test.ts +0 -462
  921. package/src/utils/unicodeDigits.test.ts +0 -44
@@ -1,740 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
- // @pr-a11y release-only
3
-
4
- /**
5
- * @file ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts
6
- * @input Uses the ChatLayout scroll-button states story and a built Storybook
7
- * @output Rendered evidence that the documented theming target reaches the
8
- * element painting the pill, plus the audited state frames and their receipts
9
- * @position Real-Chromium evidence for the 2026-09-23 ChatLayoutScrollButton
10
- * audit. Frames land under the component-audit evidence directory that CI
11
- * already uploads, in a `scroll-button/` subdirectory so this manifest never
12
- * merges with the sibling ChatLayout manifest.
13
- *
14
- * The claim under test is `architecture:component-theming-surface` INV4:
15
- * "A target belongs on a stable visible element that paints theme-controlled
16
- * output—not an event wrapper, speculative internal structure, or a node
17
- * created only for layout plumbing."
18
- *
19
- * This is not observable in the unit lane: jsdom resolves no cascade, so it
20
- * cannot say which element paints. An override can land on the element carrying
21
- * the class while that element is not the one a reader sees. Only a real engine
22
- * can be asked the question that matters: does styling the documented target
23
- * change the pill?
24
- *
25
- * The pill is identified structurally, as the button's parent element, so every
26
- * measurement below is independent of where the class currently sits.
27
- */
28
-
29
- import {createHash} from 'node:crypto';
30
- import * as fs from 'node:fs';
31
- import * as path from 'node:path';
32
- import {expect, test, type Locator, type Page} from '@playwright/test';
33
- import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
34
- import {
35
- DEFAULT_STORYBOOK_DIR,
36
- serveStorybook,
37
- type StaticServer,
38
- } from '@astryxdesign/a11y-spec/storybook';
39
-
40
- const OUTPUT = path.resolve(
41
- 'test-results/chat-layout-audit-evidence/scroll-button',
42
- );
43
- const STORY_ID = 'core-chatlayout--scroll-button-states';
44
-
45
- /** The rendered configurations the story stages, in capture order. */
46
- const STATES = [
47
- 'hidden',
48
- 'visible-collapsed',
49
- 'visible-labelled',
50
- 'visible-long-label',
51
- ] as const;
52
-
53
- type State = (typeof STATES)[number];
54
-
55
- /** How an interaction frame was driven. `rest` is the undriven baseline. */
56
- type Interaction = 'rest' | 'hover' | 'focus-visible' | 'pressed';
57
-
58
- /** The two configurations whose interaction states the audit grades. */
59
- const INTERACTION_STATES = ['visible-collapsed', 'visible-labelled'] as const;
60
-
61
- type Shot = {
62
- file: string;
63
- sha256: string;
64
- /** Decoded from the PNG's own IHDR — the image's pixels, not the viewport. */
65
- width: number;
66
- height: number;
67
- };
68
-
69
- type Receipt = {
70
- state: string;
71
- storyId: string;
72
- theme: string;
73
- colorMode: string;
74
- direction: string;
75
- /** The window, recorded in its own row so it can never be read as the image. */
76
- viewport: {width: number; height: number};
77
- devicePixelRatio: number;
78
- rendered: Record<string, unknown>;
79
- geometry: {selectorCount: number; width: number; height: number};
80
- settled: {fontsReady: boolean; pageErrors: number};
81
- image: Shot;
82
- };
83
-
84
- const receipts: Receipt[] = [];
85
- const pageErrors: string[] = [];
86
- let storybook: StaticServer;
87
- let browserVersion = 'unknown';
88
-
89
- test.beforeAll(async () => {
90
- // Do NOT wipe: Playwright restarts the worker after a failing test and
91
- // re-runs this hook, which would delete the frames already banked — exactly
92
- // when a failing audit needs them most.
93
- fs.mkdirSync(OUTPUT, {recursive: true});
94
- storybook = await serveStorybook(
95
- process.env.ASTRYX_STORYBOOK_DIR ?? DEFAULT_STORYBOOK_DIR,
96
- );
97
- });
98
-
99
- test.afterAll(async () => {
100
- const manifestPath = path.join(OUTPUT, 'manifest.json');
101
- const previous = fs.existsSync(manifestPath)
102
- ? (JSON.parse(fs.readFileSync(manifestPath, 'utf8')).frames ?? [])
103
- : [];
104
- const merged = [...previous, ...receipts].filter(
105
- (frame, index, all) =>
106
- all.findIndex(other => other.state === frame.state) === index,
107
- );
108
- fs.writeFileSync(
109
- manifestPath,
110
- `${JSON.stringify(
111
- {
112
- version: 1,
113
- component: 'core/ChatLayoutScrollButton',
114
- headSha:
115
- process.env.ASTRYX_HEAD_SHA ??
116
- process.env.GITHUB_SHA ??
117
- 'local-working-copy',
118
- checkoutSha: process.env.GITHUB_SHA ?? 'local-working-copy',
119
- browser: browserVersion,
120
- frames: merged,
121
- },
122
- null,
123
- 2,
124
- )}\n`,
125
- );
126
- await storybook?.close();
127
- });
128
-
129
- async function openStory(
130
- page: Page,
131
- {theme = 'neutral', colorMode = 'light'} = {},
132
- ): Promise<void> {
133
- page.on('pageerror', error => pageErrors.push(String(error)));
134
- browserVersion = page.context().browser()?.version() ?? 'unknown';
135
- await page.goto(
136
- `${storybook.origin}/iframe.html?id=${STORY_ID}&viewMode=story` +
137
- `&globals=colorMode:${colorMode};astryxTheme:${theme}`,
138
- );
139
- await page.locator(`[data-scroll-button-state="hidden"]`).waitFor();
140
- await holdMotionStill(page);
141
- await page.evaluate(async () => document.fonts.ready);
142
- }
143
-
144
- function instance(page: Page, state: State): Locator {
145
- return page.locator(`[data-scroll-button-state="${state}"]`);
146
- }
147
-
148
- /**
149
- * Read one staged instance: which element carries the public target, whether
150
- * that element is the one painting the pill, and what each of them paints.
151
- *
152
- * The pill is `button.parentElement` — the element that clips the Button and
153
- * carries the surface a reader sees. Naming it structurally rather than by
154
- * class is the whole point: the question is *where the class is*, so the
155
- * measurement cannot be allowed to depend on the answer.
156
- */
157
- async function readInstance(page: Page, state: State) {
158
- return instance(page, state).evaluate(host => {
159
- const button = host.querySelector('button');
160
- const pill = button?.parentElement ?? null;
161
- const themed = host.querySelector('.astryx-chat-layout-scroll-button');
162
- const root = host.firstElementChild;
163
-
164
- const describe = (element: Element | null) => {
165
- if (element == null) {
166
- return null;
167
- }
168
- const styles = getComputedStyle(element);
169
- const box = element.getBoundingClientRect();
170
- return {
171
- backgroundColor: styles.backgroundColor,
172
- boxShadow: styles.boxShadow,
173
- borderRadius: styles.borderTopLeftRadius,
174
- visibility: styles.visibility,
175
- width: Math.round(box.width),
176
- height: Math.round(box.height),
177
- };
178
- };
179
-
180
- return {
181
- targetCount: host.querySelectorAll('.astryx-chat-layout-scroll-button')
182
- .length,
183
- /** Is the public target on the element that paints the pill? */
184
- targetIsPill: themed != null && themed === pill,
185
- /** Or is it on the component's outermost layout node? */
186
- targetIsRoot: themed != null && themed === root,
187
- themed: describe(themed),
188
- pill: describe(pill),
189
- root: describe(root),
190
- button: (() => {
191
- if (button == null) {
192
- return null;
193
- }
194
- const box = button.getBoundingClientRect();
195
- const label = button.querySelector('span, p, div');
196
- return {
197
- width: Math.round(box.width),
198
- height: Math.round(box.height),
199
- accessibleName: button.getAttribute('aria-label'),
200
- textOverflowing:
201
- label != null ? label.scrollWidth > label.clientWidth + 1 : false,
202
- };
203
- })(),
204
- };
205
- });
206
- }
207
-
208
- /**
209
- * Where the focus ring would be drawn, and whether anything clips it away.
210
- *
211
- * `outline` is painted OUTSIDE the element's border box, starting at
212
- * `outline-offset` and extending `outline-width` further. If an ancestor with
213
- * `overflow: hidden` has no room between the button's border box and its own
214
- * padding box, every pixel of that ring is clipped and the computed style is a
215
- * promise the page never keeps.
216
- */
217
- async function readFocusRingRoom(page: Page, state: State) {
218
- return instance(page, state)
219
- .locator('button')
220
- .evaluate(element => {
221
- const styles = getComputedStyle(element);
222
- const offset = Number.parseFloat(styles.outlineOffset) || 0;
223
- const width = Number.parseFloat(styles.outlineWidth) || 0;
224
-
225
- let clipper: Element | null = element.parentElement;
226
- while (clipper != null) {
227
- const overflow = getComputedStyle(clipper).overflow;
228
- if (overflow !== 'visible') {
229
- break;
230
- }
231
- clipper = clipper.parentElement;
232
- }
233
- if (clipper == null) {
234
- return {outreach: offset + width, clipped: false, roomPx: null};
235
- }
236
-
237
- const button = element.getBoundingClientRect();
238
- const clip = clipper.getBoundingClientRect();
239
- // Smallest gap on any side between the button's box and the clip box.
240
- const room = Math.min(
241
- button.top - clip.top,
242
- button.left - clip.left,
243
- clip.right - button.right,
244
- clip.bottom - button.bottom,
245
- );
246
- return {
247
- outreach: offset + width,
248
- roomPx: Math.round(room),
249
- clipperOverflow: getComputedStyle(clipper).overflow,
250
- clipperClass:
251
- [...clipper.classList].find(name => name.startsWith('astryx-')) ??
252
- null,
253
- clipped: room < offset + width,
254
- };
255
- });
256
- }
257
-
258
- /** `rgba(r, g, b, 0)` and `transparent` both mean "this element paints no fill". */
259
- function isTransparent(color: string): boolean {
260
- return color === 'transparent' || /,\s*0\)$/.test(color);
261
- }
262
-
263
- /**
264
- * What the Button is painting right now: the four properties its interaction
265
- * states actually move. Recorded per frame so a reader can confirm from the
266
- * receipt that the state engaged, rather than trusting the file name.
267
- *
268
- * Read from the `<button>` rather than the pill: the pill owns the surface and
269
- * the theming target, while hover, focus, and press are Button's own treatment.
270
- */
271
- async function readButtonPaint(page: Page, state: State) {
272
- return instance(page, state)
273
- .locator('button')
274
- .evaluate(element => {
275
- const styles = getComputedStyle(element);
276
- return {
277
- backgroundColor: styles.backgroundColor,
278
- backgroundImage: styles.backgroundImage,
279
- transform: styles.transform,
280
- outlineWidth: styles.outlineWidth,
281
- outlineStyle: styles.outlineStyle,
282
- isFocused: document.activeElement === element,
283
- matchesFocusVisible: element.matches(':focus-visible'),
284
- matchesHover: element.matches(':hover'),
285
- matchesActive: element.matches(':active'),
286
- };
287
- });
288
- }
289
-
290
- /**
291
- * Tab from the top of the document until focus lands inside `state`.
292
- *
293
- * Keyboard is the only modality that yields `:focus-visible` — a synthetic
294
- * `focus()` call does not, and a click sets pointer modality and suppresses
295
- * it. The page must therefore be freshly loaded with no pointer press behind
296
- * it, which is why the caller reloads before asking for a focus frame.
297
- */
298
- async function tabTo(
299
- page: Page,
300
- state: State,
301
- maxPresses = 8,
302
- ): Promise<boolean> {
303
- for (let index = 0; index < maxPresses; index += 1) {
304
- await page.keyboard.press('Tab');
305
- const landed = await page.evaluate(selector => {
306
- const active = document.activeElement;
307
- return active != null && active.closest(selector) != null;
308
- }, `[data-scroll-button-state="${state}"]`);
309
- if (landed) {
310
- return true;
311
- }
312
- }
313
- return false;
314
- }
315
-
316
- /**
317
- * Read a PNG's real pixel dimensions out of its IHDR header.
318
- *
319
- * These are ELEMENT screenshots, so their size is the subject's box, not the
320
- * window's. The viewport keeps its own receipt row; publishing it as the image
321
- * size would be a false claim about the bytes on disk.
322
- */
323
- function pngShot(file: string, bytes: Buffer): Shot {
324
- return {
325
- file,
326
- sha256: createHash('sha256').update(bytes).digest('hex'),
327
- width: bytes.readUInt32BE(16),
328
- height: bytes.readUInt32BE(20),
329
- };
330
- }
331
-
332
- async function capture(
333
- page: Page,
334
- state: State,
335
- frameName: string,
336
- rendered: Record<string, unknown>,
337
- {theme = 'neutral', colorMode = 'light'} = {},
338
- ): Promise<Receipt> {
339
- const host = instance(page, state);
340
- const box = await host.boundingBox();
341
- if (box == null) {
342
- throw new Error(`${frameName}: the staged instance has no layout box`);
343
- }
344
- const bytes = await host.screenshot({animations: 'disabled'});
345
- const file = `chat-layout-scroll-button__${frameName}.png`;
346
- fs.writeFileSync(path.join(OUTPUT, file), bytes);
347
-
348
- const window = await page.evaluate(() => ({
349
- width: globalThis.innerWidth,
350
- height: globalThis.innerHeight,
351
- dpr: globalThis.devicePixelRatio,
352
- }));
353
-
354
- const receipt: Receipt = {
355
- state: frameName,
356
- storyId: STORY_ID,
357
- theme: await page.evaluate(
358
- () =>
359
- document
360
- .querySelector('[data-astryx-theme]')
361
- ?.getAttribute('data-astryx-theme') ?? 'neutral',
362
- ),
363
- colorMode: await page.evaluate(
364
- () => getComputedStyle(document.documentElement).colorScheme,
365
- ),
366
- direction: await host.evaluate(
367
- element => getComputedStyle(element).direction,
368
- ),
369
- viewport: {width: window.width, height: window.height},
370
- devicePixelRatio: window.dpr,
371
- rendered: {
372
- requestedTheme: theme,
373
- requestedColorMode: colorMode,
374
- ...rendered,
375
- },
376
- geometry: {
377
- selectorCount: await host.count(),
378
- width: Math.round(box.width),
379
- height: Math.round(box.height),
380
- },
381
- settled: {fontsReady: true, pageErrors: pageErrors.length},
382
- image: pngShot(file, bytes),
383
- };
384
- receipts.push(receipt);
385
- return receipt;
386
- }
387
-
388
- test('the documented theming target sits on the element that paints the pill', async ({
389
- page,
390
- }) => {
391
- await openStory(page);
392
- const state: State = 'visible-collapsed';
393
- const reading = await readInstance(page, state);
394
-
395
- // The frame is banked BEFORE the assertions, so a failing run still publishes
396
- // the picture of what it found.
397
- await capture(page, state, 'target-placement-neutral', {
398
- targetIsPill: reading.targetIsPill,
399
- targetIsRoot: reading.targetIsRoot,
400
- themed: reading.themed,
401
- pill: reading.pill,
402
- });
403
-
404
- expect(reading.targetCount, 'exactly one element carries the target').toBe(1);
405
-
406
- // INV4, read directly: the target is on the painting element, and that
407
- // element is the pill rather than the full-width row that centres it.
408
- expect(
409
- reading.targetIsPill,
410
- 'architecture:component-theming-surface INV4 — the public target must sit ' +
411
- 'on the element that paints the pill, not on the layout node that centres it',
412
- ).toBe(true);
413
-
414
- expect(
415
- isTransparent(reading.themed?.backgroundColor ?? 'transparent'),
416
- 'the themed element must paint a fill a theme can replace',
417
- ).toBe(false);
418
- expect(
419
- reading.themed?.boxShadow,
420
- 'the themed element must own the pill elevation',
421
- ).not.toBe('none');
422
-
423
- // A target on the centring row is as wide as the dock; a target on the pill
424
- // is as wide as the pill. The numbers separate the two without naming either.
425
- expect(reading.themed?.width).toBe(reading.pill?.width);
426
- expect(reading.themed?.height).toBe(reading.pill?.height);
427
-
428
- expect(pageErrors).toEqual([]);
429
- });
430
-
431
- test('a theme that styles the documented target repaints the pill', async ({
432
- page,
433
- }) => {
434
- const state: State = 'visible-collapsed';
435
-
436
- // The probe theme exists precisely to answer this: it styles every declared
437
- // target with a loud generated colour, so "did the override reach the pixels
438
- // a reader sees" is an equality test rather than a judgement.
439
- await openStory(page, {theme: 'neutral'});
440
- const neutral = await readInstance(page, state);
441
- await capture(page, state, 'theme-reach-neutral', {
442
- pillBackground: neutral.pill?.backgroundColor,
443
- rootBackground: neutral.root?.backgroundColor,
444
- });
445
-
446
- await openStory(page, {theme: 'probe'});
447
- const probe = await readInstance(page, state);
448
- await capture(
449
- page,
450
- state,
451
- 'theme-reach-probe',
452
- {
453
- pillBackground: probe.pill?.backgroundColor,
454
- rootBackground: probe.root?.backgroundColor,
455
- targetIsPill: probe.targetIsPill,
456
- },
457
- {theme: 'probe'},
458
- );
459
-
460
- expect(
461
- probe.pill?.backgroundColor,
462
- 'the probe theme must actually change the surface the reader sees; an ' +
463
- 'unchanged pill means the override landed somewhere else',
464
- ).not.toBe(neutral.pill?.backgroundColor);
465
-
466
- // ---- regression arm -----------------------------------------------------
467
- // ARM: pre-fix target placement
468
- // BASE: this head, probe theme, same page
469
- // DELTA: the target class is moved from the pill back up to the component's
470
- // outer layout node — one `classList` move, and nothing else.
471
- // UNRELATED DELTA: none
472
- const armMoved = await instance(page, state).evaluate(host => {
473
- const root = host.firstElementChild;
474
- const themed = host.querySelector('.astryx-chat-layout-scroll-button');
475
- if (root == null || themed == null || themed === root) {
476
- return false;
477
- }
478
- themed.classList.remove('astryx-chat-layout-scroll-button');
479
- root.classList.add('astryx-chat-layout-scroll-button');
480
- return true;
481
- });
482
- expect(
483
- armMoved,
484
- 'the arm must actually relocate the target, or it proves nothing',
485
- ).toBe(true);
486
-
487
- const arm = await readInstance(page, state);
488
- await capture(
489
- page,
490
- state,
491
- 'theme-reach-probe-prefix-placement',
492
- {
493
- arm: 'pre-fix placement (target on the outer layout node)',
494
- pillBackground: arm.pill?.backgroundColor,
495
- rootBackground: arm.root?.backgroundColor,
496
- rootWidth: arm.root?.width,
497
- pillWidth: arm.pill?.width,
498
- },
499
- {theme: 'probe'},
500
- );
501
-
502
- // What the fix prevents: the theme colour lands on the invisible centring
503
- // row — painting a band the width of the dock — while the pill a reader
504
- // actually sees keeps the colour the theme asked to replace.
505
- expect(arm.pill?.backgroundColor).toBe(neutral.pill?.backgroundColor);
506
- expect(arm.root?.backgroundColor).not.toBe(neutral.root?.backgroundColor);
507
- expect(arm.root?.width).toBeGreaterThan(arm.pill?.width ?? 0);
508
-
509
- expect(pageErrors).toEqual([]);
510
- });
511
-
512
- test('every audited state renders in light and dark, and the target meets WCAG 2.5.8', async ({
513
- page,
514
- }) => {
515
- for (const colorMode of ['light', 'dark'] as const) {
516
- await openStory(page, {colorMode});
517
- for (const state of STATES) {
518
- const reading = await readInstance(page, state);
519
- await capture(
520
- page,
521
- state,
522
- `${state}__${colorMode}`,
523
- {
524
- pillVisibility: reading.pill?.visibility,
525
- pillWidth: reading.pill?.width,
526
- pillHeight: reading.pill?.height,
527
- buttonWidth: reading.button?.width,
528
- buttonHeight: reading.button?.height,
529
- accessibleName: reading.button?.accessibleName,
530
- labelTextOverflowing: reading.button?.textOverflowing,
531
- },
532
- {colorMode},
533
- );
534
-
535
- if (state === 'visible-collapsed') {
536
- // WCAG 2.2 SC 2.5.8 (AA): a 24x24 CSS-px square fits inside the
537
- // target. Measured rather than derived from the size token, because
538
- // the token is a theme dial and the criterion is not.
539
- expect(
540
- reading.button?.width ?? 0,
541
- `${colorMode}: the collapsed target must fit a 24px square`,
542
- ).toBeGreaterThanOrEqual(24);
543
- expect(
544
- reading.button?.height ?? 0,
545
- `${colorMode}: the collapsed target must fit a 24px square`,
546
- ).toBeGreaterThanOrEqual(24);
547
- }
548
- }
549
- }
550
-
551
- expect(pageErrors).toEqual([]);
552
- });
553
-
554
- /**
555
- * The interaction states, driven for real and photographed while they are
556
- * engaged.
557
- *
558
- * Twelve frames: the two visible configurations x hover, keyboard
559
- * focus-visible, and a held press x light and dark. Every frame asserts that
560
- * the state actually engaged — `:hover`, `:focus-visible`, or `:active`
561
- * matched — and compares the captured bytes against a rest frame taken from
562
- * the same page moments earlier.
563
- *
564
- * The byte comparison is the point. An earlier revision proved hover and press
565
- * from computed style and accepted a non-zero `outline-width` as proof of a
566
- * visible focus ring. That was a false positive: this component's focus ring
567
- * is painted entirely outside the button's border box, and the pill that wraps
568
- * it clips with `overflow: hidden`, so all four focused frames came back
569
- * byte-identical to rest while every computed reading said the ring was there.
570
- * Computed style says what was declared; only the frame says what was painted.
571
- *
572
- * Order within a color mode is deliberate. Hover comes first; the pointer then
573
- * moves away before the focus pass, or the hovered element would still paint
574
- * hover underneath the focus ring. Press comes last, because a pointer press
575
- * sets pointer modality and suppresses `:focus-visible` for the rest of the
576
- * page's life — so the page is reloaded before the focus pass to guarantee the
577
- * keyboard modality the ring depends on.
578
- */
579
- test('the interaction states are driven and photographed while engaged', async ({
580
- page,
581
- }) => {
582
- for (const colorMode of ['light', 'dark'] as const) {
583
- /** Rest, for the same page and color mode, as the comparison baseline. */
584
- await openStory(page, {colorMode});
585
- // Park the pointer FIRST. A reload does not move the physical mouse, so
586
- // without this the second color mode reads its "rest" through whichever
587
- // button the previous pass left the cursor over — and that reading is a
588
- // hover reading, which then makes hover look like it paints nothing. The
589
- // engagement assertion below caught exactly that, so it is load-bearing.
590
- await page.mouse.move(0, 0);
591
- const rest: Record<
592
- string,
593
- Awaited<ReturnType<typeof readButtonPaint>>
594
- > = {};
595
- for (const state of INTERACTION_STATES) {
596
- rest[state] = await readButtonPaint(page, state);
597
- expect(
598
- rest[state].matchesHover,
599
- `${state}/${colorMode}: the rest baseline must not itself be hovered`,
600
- ).toBe(false);
601
- }
602
-
603
- // ---- hover ------------------------------------------------------------
604
- for (const state of INTERACTION_STATES) {
605
- const restBytes = await instance(page, state).screenshot({
606
- animations: 'disabled',
607
- });
608
- const restSha = createHash('sha256').update(restBytes).digest('hex');
609
-
610
- await instance(page, state).locator('button').hover();
611
- const paint = await readButtonPaint(page, state);
612
- const interaction: Interaction = 'hover';
613
- const receipt = await capture(
614
- page,
615
- state,
616
- `${state}__${interaction}__${colorMode}`,
617
- {interaction, paint, restPaint: rest[state]},
618
- {colorMode},
619
- );
620
- receipt.rendered.restSha256 = restSha;
621
- receipt.rendered.changedPixels = receipt.image.sha256 !== restSha;
622
-
623
- expect(
624
- paint.matchesHover,
625
- `${state}/${colorMode}: the pointer must actually be over the button`,
626
- ).toBe(true);
627
- // Pixels, not computed style. That distinction is the whole lesson of
628
- // the focus finding below.
629
- expect(
630
- receipt.image.sha256 !== restSha,
631
- `${state}/${colorMode}: the hovered frame must differ from rest`,
632
- ).toBe(true);
633
- }
634
-
635
- // ---- keyboard focus-visible -------------------------------------------
636
- // Reload rather than move the mouse: this pass must run with no pointer
637
- // interaction behind it at all.
638
- await openStory(page, {colorMode});
639
- await page.mouse.move(0, 0);
640
- for (const state of INTERACTION_STATES) {
641
- // The rest bytes for THIS page, taken before focus is driven. Held in
642
- // memory: it is the comparison subject, not a frame worth publishing.
643
- const restBytes = await instance(page, state).screenshot({
644
- animations: 'disabled',
645
- });
646
- const restSha = createHash('sha256').update(restBytes).digest('hex');
647
-
648
- const reached = await tabTo(page, state);
649
- expect(reached, `${state}/${colorMode}: Tab must reach the button`).toBe(
650
- true,
651
- );
652
- const paint = await readButtonPaint(page, state);
653
- const room = await readFocusRingRoom(page, state);
654
- const interaction: Interaction = 'focus-visible';
655
- const receipt = await capture(
656
- page,
657
- state,
658
- `${state}__${interaction}__${colorMode}`,
659
- {interaction, paint, restPaint: rest[state], focusRing: room},
660
- {colorMode},
661
- );
662
-
663
- // Keyboard reachability is real and must not regress.
664
- expect(
665
- paint.isFocused && paint.matchesFocusVisible,
666
- `${state}/${colorMode}: the button must hold keyboard-visible focus`,
667
- ).toBe(true);
668
-
669
- // What the ring actually does to the pixels. An earlier revision of this
670
- // spec asserted `outlineStyle !== 'none' && outlineWidth !== '0px'` and
671
- // called that proof of a visible ring. It is not: a computed outline is
672
- // a declaration, and this one is painted entirely outside the button's
673
- // border box, where an ancestor clips it away. The frame is the only
674
- // thing that can answer the question, so the frame is what is compared.
675
- const ringChangedPixels = receipt.image.sha256 !== restSha;
676
- receipt.rendered.restSha256 = restSha;
677
- receipt.rendered.ringChangedPixels = ringChangedPixels;
678
-
679
- if (!ringChangedPixels) {
680
- // Deliberately NOT an assertion, in either direction. Asserting a pass
681
- // would be the false positive again; asserting the failure would turn
682
- // the repair into a red check and enshrine the defect as the baseline.
683
- // It is recorded in the receipt, annotated on the run, and reported as
684
- // an open BLOCK in the audit.
685
- const note =
686
- `KNOWN FAILURE — ${state}/${colorMode}: the focused frame is ` +
687
- `byte-identical to rest, so the keyboard focus indicator paints ` +
688
- `nothing (WCAG 2.2 SC 2.4.7; spec:AST-020/FR1). The ring reaches ` +
689
- `${room.outreach}px beyond the button's border box and the ` +
690
- `clipping ancestor leaves ${room.roomPx}px of room ` +
691
- `(overflow: ${room.clipperOverflow}). Open BLOCK, not accepted.`;
692
- console.warn(note);
693
- test
694
- .info()
695
- .annotations.push({type: 'known-failure', description: note});
696
- }
697
- }
698
-
699
- // ---- held press -------------------------------------------------------
700
- // Captured with the button still down. Releasing first would photograph
701
- // the state the press returns to, not the press.
702
- for (const state of INTERACTION_STATES) {
703
- await openStory(page, {colorMode});
704
- const button = instance(page, state).locator('button');
705
- const box = await button.boundingBox();
706
- if (box == null) {
707
- throw new Error(`${state}: the button has no layout box`);
708
- }
709
- const restBytes = await instance(page, state).screenshot({
710
- animations: 'disabled',
711
- });
712
- const restSha = createHash('sha256').update(restBytes).digest('hex');
713
- await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
714
- await page.mouse.down();
715
- const paint = await readButtonPaint(page, state);
716
- const interaction: Interaction = 'pressed';
717
- const receipt = await capture(
718
- page,
719
- state,
720
- `${state}__${interaction}__${colorMode}`,
721
- {interaction, paint, restPaint: rest[state]},
722
- {colorMode},
723
- );
724
- await page.mouse.up();
725
- receipt.rendered.restSha256 = restSha;
726
- receipt.rendered.changedPixels = receipt.image.sha256 !== restSha;
727
-
728
- expect(
729
- paint.matchesActive,
730
- `${state}/${colorMode}: the button must still be held down`,
731
- ).toBe(true);
732
- expect(
733
- receipt.image.sha256 !== restSha,
734
- `${state}/${colorMode}: the pressed frame must differ from rest`,
735
- ).toBe(true);
736
- }
737
- }
738
-
739
- expect(pageErrors).toEqual([]);
740
- });