@astryxdesign/core 0.7.5-canary.a264f63 → 0.7.5-canary.a2e2bcc
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/CHANGELOG.md +10 -10
- package/README.md +3 -3
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +1 -1
- package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetStack.js +27 -4
- package/dist/BottomSheet/useSheetGestures.d.ts +12 -0
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +30 -3
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
- package/dist/Breadcrumbs/BreadcrumbItem.js +31 -3
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +33 -8
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +2 -10
- package/dist/DropdownMenu/DropdownMenuGroup.d.ts +7 -4
- package/dist/DropdownMenu/DropdownMenuGroup.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuGroup.js +10 -4
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +10 -1
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
- package/dist/DropdownMenu/lazyMenuBottomSheet.js +16 -2
- package/dist/DropdownMenu/menuTouchAction.stylex.d.ts +25 -0
- package/dist/DropdownMenu/menuTouchAction.stylex.d.ts.map +1 -0
- package/dist/DropdownMenu/menuTouchAction.stylex.js +29 -0
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +7 -3
- package/dist/Item/Item.d.ts +5 -1
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +22 -6
- package/dist/Item/ItemMarkerColumns.a11y.chromium.spec.d.ts +2 -0
- package/dist/Item/ItemMarkerColumns.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/Item/ItemMarkerColumns.a11y.chromium.spec.js +132 -0
- package/dist/Item/ItemMarkerColumnsContext.d.ts +14 -0
- package/dist/Item/ItemMarkerColumnsContext.d.ts.map +1 -0
- package/dist/Item/ItemMarkerColumnsContext.js +18 -0
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +32 -2
- package/dist/List/List.d.ts +2 -1
- package/dist/List/List.d.ts.map +1 -1
- package/dist/List/List.js +9 -2
- package/dist/List/ListContext.d.ts +16 -4
- package/dist/List/ListContext.d.ts.map +1 -1
- package/dist/List/ListContext.js +10 -5
- package/dist/List/ListItem.d.ts +7 -1
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListItem.js +52 -8
- package/dist/List/ListMarkers.a11y.chromium.spec.d.ts +2 -0
- package/dist/List/ListMarkers.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/List/ListMarkers.a11y.chromium.spec.js +677 -0
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +18 -5
- package/dist/MobileNav/MobileNavToggle.d.ts +7 -3
- package/dist/MobileNav/MobileNavToggle.d.ts.map +1 -1
- package/dist/MobileNav/MobileNavToggle.js +11 -3
- package/dist/MultiSelector/CreateRow.a11y.chromium.spec.js +52 -6
- package/dist/NavMenu/NavHeadingMenu.d.ts +1 -1
- package/dist/NavMenu/NavHeadingMenu.d.ts.map +1 -1
- package/dist/NavMenu/NavHeadingMenu.js +29 -5
- package/dist/NavMenu/NavHeadingMenuItem.d.ts.map +1 -1
- package/dist/NavMenu/NavHeadingMenuItem.js +6 -1
- package/dist/NavMenu/NavMenuContext.d.ts +9 -0
- package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
- package/dist/NavMenu/NavMenuContext.js +9 -0
- package/dist/NumberInput/NumberInput.d.ts +3 -1
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +3 -3
- package/dist/Overlay/Overlay.d.ts +3 -3
- package/dist/Overlay/Overlay.d.ts.map +1 -1
- package/dist/Overlay/Overlay.js +12 -5
- package/dist/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +6 -2
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +11 -3
- package/dist/Selector/hooks.d.ts +52 -6
- package/dist/Selector/hooks.d.ts.map +1 -1
- package/dist/Selector/hooks.js +145 -2
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +45 -3
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +7 -3
- package/dist/TabList/TabMenu.d.ts.map +1 -1
- package/dist/TabList/TabMenu.js +24 -3
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +4 -1
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Table/TableRow.js +3 -0
- package/dist/Table/glidingDivider.d.ts +96 -0
- package/dist/Table/glidingDivider.d.ts.map +1 -0
- package/dist/Table/glidingDivider.js +275 -0
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts +8 -0
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +274 -12
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +16 -5
- package/dist/Text/useTruncation.d.ts.map +1 -1
- package/dist/Text/useTruncation.js +23 -5
- package/dist/TextInput/TextInput.d.ts +1 -1
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +8 -1
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +34 -4
- package/dist/Tokenizer/Tokenizer.js +4 -2
- package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +26 -0
- package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMenu.js +32 -4
- package/dist/TreeList/TreeListBranches.d.ts.map +1 -1
- package/dist/TreeList/TreeListBranches.js +7 -5
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +2 -2
- package/dist/Typeahead/BaseTypeahead.d.ts +1 -1
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.d.ts +2 -0
- package/dist/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.js +118 -0
- package/dist/Typeahead/BaseTypeahead.js +11 -7
- package/dist/astryx.css +42 -11
- package/dist/hooks/menuPressOnItems.d.ts +19 -0
- package/dist/hooks/menuPressOnItems.d.ts.map +1 -0
- package/dist/hooks/menuPressOnItems.js +32 -0
- package/dist/hooks/scrollGeometry.d.ts +28 -0
- package/dist/hooks/scrollGeometry.d.ts.map +1 -1
- package/dist/hooks/scrollGeometry.js +36 -2
- package/dist/hooks/useMenuHover.d.ts.map +1 -1
- package/dist/hooks/useMenuHover.js +6 -2
- package/dist/hooks/usePressFeedback.d.ts +5 -2
- package/dist/hooks/usePressFeedback.d.ts.map +1 -1
- package/dist/hooks/usePressFeedback.js +5 -2
- package/dist/hooks/useScrollableArea.d.ts +5 -0
- package/dist/hooks/useScrollableArea.d.ts.map +1 -1
- package/dist/hooks/useScrollableArea.js +67 -6
- package/dist/motion/animatedLayout.d.ts +14 -2
- package/dist/motion/animatedLayout.d.ts.map +1 -1
- package/dist/motion/animatedLayout.js +31 -9
- package/dist/theme/syntax/SyntaxTheme.d.ts +1 -1
- package/dist/theme/syntax/SyntaxTheme.js +1 -1
- package/dist/theme/syntax/defineSyntaxTheme.js +1 -1
- package/dist/theme/syntax/presets.d.ts +1 -1
- package/dist/theme/syntax/presets.js +1 -1
- package/dist/theme/syntax/tokens.d.ts +1 -1
- package/dist/theme/syntax/tokens.js +1 -1
- package/dist/theme/tokens.stylex.d.ts +2 -0
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +7 -1
- package/dist/utils/focusReturn.d.ts +17 -1
- package/dist/utils/focusReturn.d.ts.map +1 -1
- package/dist/utils/focusReturn.js +11 -4
- package/dist/utils/interactionModality.d.ts +11 -2
- package/dist/utils/interactionModality.d.ts.map +1 -1
- package/dist/utils/interactionModality.js +58 -5
- package/dist/utils/interactionOverlay.stylex.d.ts +4 -1
- package/dist/utils/interactionOverlay.stylex.d.ts.map +1 -1
- package/dist/utils/interactionOverlay.stylex.js +4 -1
- package/dist/utils/pressFeedback.d.ts +5 -1
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +285 -54
- package/dist/utils/pressGesture.d.ts +13 -1
- package/dist/utils/pressGesture.d.ts.map +1 -1
- package/dist/utils/pressGesture.js +40 -1
- package/locales/en.json +1 -1
- package/package.json +6 -6
- package/src/AlertDialog/AlertDialog.spec.md +2 -2
- package/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts +18 -6
- package/src/AppShell/AppShell.spec.md +12 -12
- package/src/BottomSheet/BottomSheet.spec.md +2 -0
- package/src/BottomSheet/BottomSheet.test.tsx +46 -0
- package/src/BottomSheet/BottomSheetPanel.test.tsx +52 -9
- package/src/BottomSheet/BottomSheetPanel.tsx +12 -6
- package/src/BottomSheet/BottomSheetReplace.test.tsx +118 -6
- package/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts +3 -1
- package/src/BottomSheet/bottomSheetStack.ts +29 -6
- package/src/BottomSheet/useSheetGestures.test.ts +52 -0
- package/src/BottomSheet/useSheetGestures.ts +37 -6
- package/src/Breadcrumbs/BreadcrumbItem.spec.md +19 -12
- package/src/Breadcrumbs/BreadcrumbItem.tsx +25 -1
- package/src/Breadcrumbs/Breadcrumbs.test.tsx +70 -2
- package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts +18 -6
- package/src/Calendar/Calendar.spec.md +87 -48
- package/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts +21 -7
- package/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts +21 -7
- package/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts +21 -4
- package/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts +18 -7
- package/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts +18 -6
- package/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts +2 -2
- package/src/DateTimeInput/DateTimeInput.spec.md +71 -48
- package/src/Dialog/Dialog.spec.md +20 -4
- package/src/Dialog/Dialog.test.tsx +216 -2
- package/src/Dialog/Dialog.tsx +41 -8
- package/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts +63 -2
- package/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts +202 -0
- package/src/Drawer/Drawer.spec.md +111 -80
- package/src/Drawer/DrawerHeader.spec.md +181 -0
- package/src/DropdownMenu/DropdownMenu.test.tsx +43 -0
- package/src/DropdownMenu/DropdownMenu.tsx +4 -13
- package/src/DropdownMenu/DropdownMenuGroup.doc.mjs +2 -2
- package/src/DropdownMenu/DropdownMenuGroup.tsx +12 -6
- package/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts +19 -7
- package/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts +21 -9
- package/src/DropdownMenu/lazyMenuBottomSheet.test.ts +53 -0
- package/src/DropdownMenu/lazyMenuBottomSheet.ts +23 -6
- package/src/DropdownMenu/menuTouchAction.stylex.ts +28 -0
- package/src/Field/Field.spec.md +57 -48
- package/src/Field/FieldLabel.spec.md +70 -59
- package/src/FileInput/FileInput.doc.mjs +1 -1
- package/src/FileInput/FileInput.test.tsx +24 -0
- package/src/FileInput/FileInput.tsx +7 -3
- package/src/FormLayout/FormLayout.spec.md +69 -51
- package/src/Grid/Grid.spec.md +72 -69
- package/src/Grid/GridSpan.spec.md +158 -0
- package/src/Item/Item.test.tsx +40 -1
- package/src/Item/Item.tsx +37 -4
- package/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts +211 -0
- package/src/Item/ItemMarkerColumnsContext.tsx +20 -0
- package/src/Layer/LayerProvider.spec.md +149 -0
- package/src/Layer/useLayer.test.tsx +107 -0
- package/src/Layer/useLayer.tsx +52 -5
- package/src/Layout/__tests__/Layout.a11y.chromium.spec.ts +18 -6
- package/src/Lightbox/Lightbox.spec.md +9 -8
- package/src/Link/__tests__/Link.a11y.chromium.spec.ts +18 -8
- package/src/List/List.spec.md +35 -13
- package/src/List/List.tsx +13 -1
- package/src/List/ListContext.tsx +19 -5
- package/src/List/ListItem.tsx +97 -28
- package/src/List/ListMarkers.a11y.chromium.spec.ts +904 -0
- package/src/Markdown/Markdown.test.tsx +50 -0
- package/src/Markdown/Markdown.tsx +29 -6
- package/src/MobileNav/MobileNav.doc.mjs +2 -2
- package/src/MobileNav/MobileNavToggle.test.tsx +63 -0
- package/src/MobileNav/MobileNavToggle.tsx +13 -5
- package/src/MultiSelector/CreateRow.a11y.chromium.spec.ts +66 -9
- package/src/NavMenu/NavHeadingMenu.spec.md +19 -17
- package/src/NavMenu/NavHeadingMenu.test.tsx +77 -1
- package/src/NavMenu/NavHeadingMenu.tsx +42 -4
- package/src/NavMenu/NavHeadingMenuItem.tsx +6 -0
- package/src/NavMenu/NavMenuContext.tsx +11 -0
- package/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts +137 -0
- package/src/NumberInput/NumberInput.doc.mjs +13 -7
- package/src/NumberInput/NumberInput.spec.md +59 -37
- package/src/NumberInput/NumberInput.tsx +13 -3
- package/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts +102 -0
- package/src/Overlay/Overlay.doc.mjs +2 -2
- package/src/Overlay/Overlay.test.tsx +72 -4
- package/src/Overlay/Overlay.tsx +18 -8
- package/src/Popover/Popover.spec.md +1 -1
- package/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts +21 -9
- package/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts +21 -14
- package/src/Section/Section.spec.md +102 -44
- package/src/SegmentedControl/SegmentedControl.spec.md +162 -53
- package/src/SegmentedControl/SegmentedControl.test.tsx +46 -0
- package/src/SegmentedControl/SegmentedControl.tsx +7 -3
- package/src/SegmentedControl/SegmentedControlItem.spec.md +206 -0
- package/src/Selector/Selector.sheetActiveDescendant.test.tsx +95 -0
- package/src/Selector/Selector.tsx +11 -2
- package/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts +458 -0
- package/src/Selector/hooks.ts +234 -10
- package/src/Selector/useCombobox.doc.mjs +156 -9
- package/src/Selector/useCombobox.public.test.tsx +89 -0
- package/src/Selector/useCombobox.test.tsx +444 -0
- package/src/SideNav/SideNav.spec.md +18 -18
- package/src/SideNav/SideNav.test.tsx +135 -0
- package/src/SideNav/SideNavHeading.spec.md +26 -19
- package/src/SideNav/SideNavHeading.tsx +61 -6
- package/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts +417 -0
- package/src/Slider/Slider.fr10.test.tsx +34 -0
- package/src/Slider/Slider.tsx +10 -2
- package/src/Slider/__tests__/Slider.a11y.chromium.spec.ts +19 -7
- package/src/Stack/Stack.spec.md +104 -56
- package/src/TabList/TabList.test.tsx +27 -0
- package/src/TabList/TabMenu.spec.md +3 -1
- package/src/TabList/TabMenu.tsx +22 -1
- package/src/Table/TableCell.tsx +3 -0
- package/src/Table/TableRow.tsx +3 -0
- package/src/Table/__tests__/Table.a11y.chromium.spec.ts +18 -6
- package/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts +382 -0
- package/src/Table/glidingDivider.ts +336 -0
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.glide.test.tsx +280 -0
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +353 -7
- package/src/Table/plugins/rowStatus/useTableRowStatus.spec.md +4 -4
- package/src/Table/plugins/sortable/__tests__/useTableSortable.a11y.ts +1 -1
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +24 -3
- package/src/Table/useTableRowExpansion.doc.mjs +8 -0
- package/src/Text/useTruncation.test.tsx +128 -1
- package/src/Text/useTruncation.ts +23 -5
- package/src/TextInput/TextInput.spec.md +6 -4
- package/src/TextInput/TextInput.test.tsx +43 -0
- package/src/TextInput/TextInput.tsx +11 -1
- package/src/Toast/Toast.spec.md +300 -0
- package/src/Toast/ToastViewport.test.tsx +137 -0
- package/src/Toast/ToastViewport.tsx +36 -4
- package/src/Tokenizer/Tokenizer.spec.md +2 -2
- package/src/Tokenizer/Tokenizer.test.tsx +48 -0
- package/src/Tokenizer/Tokenizer.tsx +2 -2
- package/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts +18 -6
- package/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts +18 -7
- package/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts +34 -7
- package/src/TopNav/TopNav.test.tsx +89 -0
- package/src/TopNav/TopNavHeading.spec.md +24 -17
- package/src/TopNav/TopNavHeading.tsx +35 -2
- package/src/TopNav/TopNavMenu.spec.md +27 -20
- package/src/TopNav/TopNavMenu.test.tsx +65 -1
- package/src/TopNav/TopNavMenu.tsx +30 -1
- package/src/TreeList/TreeList.spec.md +3 -0
- package/src/TreeList/TreeListBranches.tsx +8 -6
- package/src/TreeList/TreeListItem.tsx +0 -4
- package/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts +18 -6
- package/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts +127 -0
- package/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts +138 -0
- package/src/Typeahead/BaseTypeahead.test.tsx +201 -4
- package/src/Typeahead/BaseTypeahead.tsx +12 -8
- package/src/__tests__/PressModality.a11y.chromium.spec.ts +392 -0
- package/src/gestures/__tests__/VelocityTracker.streams.test.ts +243 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/README.md +82 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-fling.json +130 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-slow.json +860 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-stop-release.json +357 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-fling.json +66 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-slow.json +268 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-stop-release.json +128 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/capture.html +123 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-fling.json +64 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-slow.json +268 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-stop-release.json +124 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-fling.json +64 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-slow.json +268 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-stop-release.json +124 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-fling.json +84 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-slow.json +381 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-stop-release.json +171 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-fling.json +45 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-slow.json +101 -0
- package/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-stop-release.json +130 -0
- package/src/hooks/__tests__/menuLinkClicks.ts +71 -0
- package/src/hooks/menuPressOnItems.ts +40 -0
- package/src/hooks/scrollGeometry.ts +71 -4
- package/src/hooks/useMenuHover.ts +6 -2
- package/src/hooks/usePressFeedback.doc.mjs +4 -4
- package/src/hooks/usePressFeedback.ts +5 -2
- package/src/hooks/useScrollableArea.test.tsx +185 -3
- package/src/hooks/useScrollableArea.ts +81 -7
- package/src/motion/animatedLayout.boundary.test.ts +1 -0
- package/src/motion/animatedLayout.ts +39 -10
- package/src/theme/derivedVarRegistry.test.ts +6 -0
- package/src/theme/syntax/SyntaxTheme.tsx +1 -1
- package/src/theme/syntax/defineSyntaxTheme.ts +1 -1
- package/src/theme/syntax/presets.ts +1 -1
- package/src/theme/syntax/tokens.ts +1 -1
- package/src/theme/tokens.stylex.ts +5 -0
- package/src/theme/tokens.test.ts +15 -0
- package/src/utils/focusReturn.ts +17 -6
- package/src/utils/interactionModality.test.ts +45 -1
- package/src/utils/interactionModality.ts +64 -5
- package/src/utils/interactionOverlay.stylex.ts +4 -1
- package/src/utils/pressFeedback.test.ts +310 -2
- package/src/utils/pressFeedback.ts +306 -54
- package/src/utils/pressGesture.test.ts +50 -0
- package/src/utils/pressGesture.ts +40 -2
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
* of pages whose dropdowns only open as anchored popovers. Each wrapper keeps
|
|
12
12
|
* the wrapped component's props and renders nothing until its module loads.
|
|
13
13
|
*
|
|
14
|
+
* The action list preloads at rest; a failed load is not kept, so the next
|
|
15
|
+
* preload or open asks the module loader again (a loader that retries then
|
|
16
|
+
* loads it; a browser does not fetch a native module again once its import
|
|
17
|
+
* failed).
|
|
18
|
+
*
|
|
14
19
|
* Neither wrapper renders on the server or in the render that hydrates server
|
|
15
20
|
* HTML (spec:AST-013 FR9): a lazy component that has not loaded yet would
|
|
16
21
|
* leave server markup incomplete and abort hydration. The closed sheet has no
|
|
@@ -19,7 +24,11 @@
|
|
|
19
24
|
import { type ComponentProps, type ReactElement } from 'react';
|
|
20
25
|
import type { MenuBottomSheet as EagerMenuBottomSheet } from './MenuBottomSheet.js';
|
|
21
26
|
import type { MenuBottomSheetActionList as EagerMenuBottomSheetActionList } from './MenuBottomSheetActionList.js';
|
|
22
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Starts loading the action list; a sheet menu calls it at rest. A preload
|
|
29
|
+
* that fails is dropped, never an unhandled rejection: the first open asks the
|
|
30
|
+
* module loader again.
|
|
31
|
+
*/
|
|
23
32
|
export declare function preloadMenuBottomSheetActionList(): void;
|
|
24
33
|
export declare function MenuBottomSheet(props: ComponentProps<typeof EagerMenuBottomSheet>): ReactElement | null;
|
|
25
34
|
export declare function MenuBottomSheetActionList(props: ComponentProps<typeof EagerMenuBottomSheetActionList>): ReactElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyMenuBottomSheet.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/lazyMenuBottomSheet.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"lazyMenuBottomSheet.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/lazyMenuBottomSheet.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,eAAe,IAAI,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAC,yBAAyB,IAAI,8BAA8B,EAAC,MAAM,6BAA6B,CAAC;AA+B7G;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AAQD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,GACjD,YAAY,GAAG,IAAI,CASrB;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,cAAc,CAAC,OAAO,8BAA8B,CAAC,GAC3D,YAAY,GAAG,IAAI,CAcrB"}
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
* of pages whose dropdowns only open as anchored popovers. Each wrapper keeps
|
|
16
16
|
* the wrapped component's props and renders nothing until its module loads.
|
|
17
17
|
*
|
|
18
|
+
* The action list preloads at rest; a failed load is not kept, so the next
|
|
19
|
+
* preload or open asks the module loader again (a loader that retries then
|
|
20
|
+
* loads it; a browser does not fetch a native module again once its import
|
|
21
|
+
* failed).
|
|
22
|
+
*
|
|
18
23
|
* Neither wrapper renders on the server or in the render that hydrates server
|
|
19
24
|
* HTML (spec:AST-013 FR9): a lazy component that has not loaded yet would
|
|
20
25
|
* leave server markup incomplete and abort hydration. The closed sheet has no
|
|
@@ -36,13 +41,22 @@ async function loadActionList() {
|
|
|
36
41
|
actionListLoad ??= import("./MenuBottomSheetActionList.js").then(module => {
|
|
37
42
|
actionListModule = module;
|
|
38
43
|
return module;
|
|
44
|
+
}, error => {
|
|
45
|
+
// A failed load (a dropped connection) is not kept: the next caller
|
|
46
|
+
// asks the module loader again.
|
|
47
|
+
actionListLoad = null;
|
|
48
|
+
throw error;
|
|
39
49
|
});
|
|
40
50
|
return actionListLoad;
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Starts loading the action list; a sheet menu calls it at rest. A preload
|
|
55
|
+
* that fails is dropped, never an unhandled rejection: the first open asks the
|
|
56
|
+
* module loader again.
|
|
57
|
+
*/
|
|
44
58
|
export function preloadMenuBottomSheetActionList() {
|
|
45
|
-
|
|
59
|
+
loadActionList().catch(() => {});
|
|
46
60
|
}
|
|
47
61
|
const LazyMenuBottomSheetActionList = /*#__PURE__*/lazy(async () => loadActionList().then(module => ({
|
|
48
62
|
default: module.MenuBottomSheetActionList
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file menuTouchAction.stylex.ts
|
|
3
|
+
* @input Nothing; styles only
|
|
4
|
+
* @output Exports menuTouchActionStyles: a menu's touch-action, by whether it
|
|
5
|
+
* scrolls
|
|
6
|
+
* @position Shared by every menu that tracks a held pointer through
|
|
7
|
+
* useMenuPress (DropdownMenu and the nav, breadcrumb and tab menus)
|
|
8
|
+
*
|
|
9
|
+
* Scroll ownership by the browser's own signal. A menu whose rows fit keeps
|
|
10
|
+
* every one-finger move, so a slide over its rows stays a slide. One that
|
|
11
|
+
* scrolls lets the browser pan it vertically and cancel the press when it
|
|
12
|
+
* does. Both leave a two-finger pinch to the browser, so the page stays
|
|
13
|
+
* zoomable over an open menu; `pinch-zoom` admits no one-finger pan.
|
|
14
|
+
*/
|
|
15
|
+
import * as stylex from '@stylexjs/stylex';
|
|
16
|
+
export declare const menuTouchActionStyles: Readonly<{
|
|
17
|
+
readonly fits: Readonly<{
|
|
18
|
+
readonly touchAction: stylex.StyleXClassNameFor<"touchAction", "pinch-zoom">;
|
|
19
|
+
}>;
|
|
20
|
+
readonly scrolls: Readonly<{
|
|
21
|
+
readonly touchAction: stylex.StyleXClassNameFor<"touchAction", "pan-y pinch-zoom">;
|
|
22
|
+
readonly overscrollBehavior: stylex.StyleXClassNameFor<"overscrollBehavior", "contain">;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=menuTouchAction.stylex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menuTouchAction.stylex.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/menuTouchAction.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,eAAO,MAAM,qBAAqB;;;;;;;;EAQhC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file menuTouchAction.stylex.ts
|
|
5
|
+
* @input Nothing; styles only
|
|
6
|
+
* @output Exports menuTouchActionStyles: a menu's touch-action, by whether it
|
|
7
|
+
* scrolls
|
|
8
|
+
* @position Shared by every menu that tracks a held pointer through
|
|
9
|
+
* useMenuPress (DropdownMenu and the nav, breadcrumb and tab menus)
|
|
10
|
+
*
|
|
11
|
+
* Scroll ownership by the browser's own signal. A menu whose rows fit keeps
|
|
12
|
+
* every one-finger move, so a slide over its rows stays a slide. One that
|
|
13
|
+
* scrolls lets the browser pan it vertically and cancel the press when it
|
|
14
|
+
* does. Both leave a two-finger pinch to the browser, so the page stays
|
|
15
|
+
* zoomable over an open menu; `pinch-zoom` admits no one-finger pan.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import * as stylex from '@stylexjs/stylex';
|
|
19
|
+
export const menuTouchActionStyles = {
|
|
20
|
+
fits: {
|
|
21
|
+
kFalU9: "x1j4r261",
|
|
22
|
+
$$css: true
|
|
23
|
+
},
|
|
24
|
+
scrolls: {
|
|
25
|
+
kFalU9: "xge0x1e",
|
|
26
|
+
kZeWKH: "xish69e",
|
|
27
|
+
$$css: true
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../src/FileInput/FileInput.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAUlB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,eAAe,IAAI,mBAAmB,GACvC,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAqP9C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,EACnB,UAAU,GAAG,cAAc,GAAG,OAAO,CACtC;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC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AAW,EACX,WAAW,EACX,IAAc,EACd,UAAkB,EAClB,YAAY,EACZ,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,EAAE,EAAE,MAAM,EACV,GAAG,SAAS,EACb,EAAE,cAAc,+BAudhB;yBAtfe,SAAS"}
|
|
@@ -233,6 +233,7 @@ export function FileInput({
|
|
|
233
233
|
const statusMessageID = useId();
|
|
234
234
|
const requiredID = useId();
|
|
235
235
|
const inputRef = useRef(null);
|
|
236
|
+
const triggerRef = useRef(null);
|
|
236
237
|
const containerRef = useRef(null);
|
|
237
238
|
const [isDragOver, setIsDragOver] = useState(false);
|
|
238
239
|
const [validationError, setValidationError] = useState(null);
|
|
@@ -349,14 +350,16 @@ export function FileInput({
|
|
|
349
350
|
}
|
|
350
351
|
if (inputRef.current) {
|
|
351
352
|
inputRef.current.value = '';
|
|
352
|
-
|
|
353
|
+
// Focus returns to the trigger button, the control a person operates;
|
|
354
|
+
// the native input is aria-hidden and outside the tab order.
|
|
355
|
+
const trigger = triggerRef.current;
|
|
353
356
|
if (e.detail === 0) {
|
|
354
|
-
|
|
357
|
+
trigger?.focus();
|
|
355
358
|
} else {
|
|
356
359
|
// Defer focus restoration past the button's unmount task so iOS Safari
|
|
357
360
|
// and touch browsers don't jump the page scroll to 0 on tap.
|
|
358
361
|
requestAnimationFrame(() => {
|
|
359
|
-
|
|
362
|
+
trigger?.focus({
|
|
360
363
|
preventScroll: true
|
|
361
364
|
});
|
|
362
365
|
});
|
|
@@ -545,6 +548,7 @@ export function FileInput({
|
|
|
545
548
|
}), stylex.props(isDropzone ? styles.dropzone : styles.compact, isDropzone && !isDisabled && styles.dropzoneHover, isDropzone && isDragOver && styles.dropzoneActive, isDropzone && isDisabled && styles.dropzoneDisabled, !isDropzone && isDisabled && styles.compactDisabled, status && statusBorderStyles[status.type], controlXstyle), controlClassName, controlStyle),
|
|
546
549
|
children: [/*#__PURE__*/_jsx(VisuallyHidden, {
|
|
547
550
|
children: /*#__PURE__*/_jsx("button", {
|
|
551
|
+
ref: triggerRef,
|
|
548
552
|
type: "button"
|
|
549
553
|
// A disabled trigger keeps its Tab stop (spec:AST-085 FR1).
|
|
550
554
|
,
|
package/dist/Item/Item.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Item.tsx
|
|
3
3
|
* @input Uses React, ReactNode, StyleXStyles, theme tokens, useClickableContainer
|
|
4
|
-
* @output Exports Item component, ItemProps type; publishes the shared inline inset
|
|
4
|
+
* @output Exports Item component, ItemProps type; publishes the shared inline inset.
|
|
5
|
+
* Only numbered composing rows keep their start/label/end slots in one flex
|
|
6
|
+
* group, through Item's private exact-marker scope; other marked rows keep
|
|
7
|
+
* their flat children. This lets List share a counter track without changing
|
|
8
|
+
* those slots' own layout.
|
|
5
9
|
* @position Core layout primitive; consumed by index.ts, tested by Item.test.tsx
|
|
6
10
|
*
|
|
7
11
|
* The swipe actions live in ItemSwipeLayer, reached only through a dynamic
|
package/dist/Item/Item.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/Item/Item.tsx"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/Item/Item.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA0B5C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,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AAS,EACT,KAAK,EACL,GAAG,EACH,IAAI,EACJ,GAAG,SAAS,EACb,EAAE,SAAS,+BAyVX;yBArXe,IAAI"}
|
package/dist/Item/Item.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @file Item.tsx
|
|
7
7
|
* @input Uses React, ReactNode, StyleXStyles, theme tokens, useClickableContainer
|
|
8
|
-
* @output Exports Item component, ItemProps type; publishes the shared inline inset
|
|
8
|
+
* @output Exports Item component, ItemProps type; publishes the shared inline inset.
|
|
9
|
+
* Only numbered composing rows keep their start/label/end slots in one flex
|
|
10
|
+
* group, through Item's private exact-marker scope; other marked rows keep
|
|
11
|
+
* their flat children. This lets List share a counter track without changing
|
|
12
|
+
* those slots' own layout.
|
|
9
13
|
* @position Core layout primitive; consumed by index.ts, tested by Item.test.tsx
|
|
10
14
|
*
|
|
11
15
|
* The swipe actions live in ItemSwipeLayer, reached only through a dynamic
|
|
@@ -24,12 +28,13 @@
|
|
|
24
28
|
* - /apps/storybook/stories/Item.stories.tsx
|
|
25
29
|
* - /packages/cli/assets/templates/blocks/components/Item/ (showcase blocks)
|
|
26
30
|
*/
|
|
27
|
-
import { lazy, Suspense, useCallback, useId, useRef } from 'react';
|
|
31
|
+
import { lazy, Suspense, use, useCallback, useId, useRef } from 'react';
|
|
28
32
|
import * as stylex from '@stylexjs/stylex';
|
|
29
33
|
import "../theme/tokens.stylex.js";
|
|
30
34
|
import { colorVars, radiusVars, spacingVars, durationVars, easeVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
31
35
|
import { isRenderable, mergeProps } from "../utils/index.js";
|
|
32
36
|
import { ItemDescriptionContext } from "./ItemDescriptionContext.js";
|
|
37
|
+
import { ItemMarkerColumnsContext } from "./ItemMarkerColumnsContext.js";
|
|
33
38
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
34
39
|
import { computeTargetAndRel } from "../Link/computeTargetAndRel.js";
|
|
35
40
|
import { useLinkComponent } from "../Link/useLinkComponent.js";
|
|
@@ -266,6 +271,7 @@ export function Item({
|
|
|
266
271
|
...restProps
|
|
267
272
|
}) {
|
|
268
273
|
const pressable = usePressFeedback();
|
|
274
|
+
const columnMarker = use(ItemMarkerColumnsContext);
|
|
269
275
|
const LinkComponent = useLinkComponent();
|
|
270
276
|
|
|
271
277
|
// Delegation mode: the row is an enlarged click/tap target for a nested
|
|
@@ -360,8 +366,8 @@ export function Item({
|
|
|
360
366
|
}
|
|
361
367
|
onClick?.(e);
|
|
362
368
|
};
|
|
363
|
-
const
|
|
364
|
-
children: [
|
|
369
|
+
const content = /*#__PURE__*/_jsxs(_Fragment, {
|
|
370
|
+
children: [startContent != null && /*#__PURE__*/_jsx("span", {
|
|
365
371
|
...{
|
|
366
372
|
0: {
|
|
367
373
|
className: "x3psx0u x78zum5"
|
|
@@ -512,9 +518,19 @@ export function Item({
|
|
|
512
518
|
}), focusOutlineProps.focusWithin(styles.root, densityStyles[density], align === 'start' && styles.alignStart, align === 'first-line' && styles.alignFirstLine, isInteractive && styles.interactive, isInteractive && interactionOverlayStyles.backgroundColor, isLinkRoot && styles.linkRoot, isHighlighted && styles.highlighted, isSelected && styles.selected, isDisabled && !hasParentRole && styles.disabled, hasSwipe && styles.swipeRoot, xstyle), className, style),
|
|
513
519
|
role: role,
|
|
514
520
|
onClick: rootOnClick,
|
|
515
|
-
children: [/*#__PURE__*/
|
|
521
|
+
children: [/*#__PURE__*/_jsxs(ItemDescriptionContext, {
|
|
516
522
|
value: hasRenderableDescription ? descriptionID : null,
|
|
517
|
-
children:
|
|
523
|
+
children: [isRenderable(marker) && marker, isRenderable(marker) && columnMarker === marker ? /*#__PURE__*/_jsx("span", {
|
|
524
|
+
...{
|
|
525
|
+
0: {
|
|
526
|
+
className: "x78zum5 x98rzlu xeuugli x1h91t0o xkh2ocl x14kbac9"
|
|
527
|
+
},
|
|
528
|
+
1: {
|
|
529
|
+
className: "x78zum5 x98rzlu xeuugli x1h91t0o x14kbac9 xoi2r2e"
|
|
530
|
+
}
|
|
531
|
+
}[!!(align === 'first-line') << 0],
|
|
532
|
+
children: content
|
|
533
|
+
}) : content]
|
|
518
534
|
}), hasSwipe &&
|
|
519
535
|
/*#__PURE__*/
|
|
520
536
|
// The panels: out-of-flow children of this root, so the DOM is the one
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemMarkerColumns.a11y.chromium.spec.d.ts","sourceRoot":"","sources":["../../src/Item/ItemMarkerColumns.a11y.chromium.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
// @pr-a11y scope core/Item core/List core/Markdown core/DropdownMenu ^apps/storybook/stories/Item
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @file ItemMarkerColumns.a11y.chromium.spec.ts
|
|
6
|
+
* @input Built Item marker anatomy, mixed task, and selectable menu stories
|
|
7
|
+
* @output Minimal DOM counts and unchanged row pixels at rest/open, fine/coarse
|
|
8
|
+
* @position Item/List browser regression; receipts and captures stay in test outputs
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { createHash } from 'node:crypto';
|
|
12
|
+
import { readFile, writeFile } from 'node:fs/promises';
|
|
13
|
+
import { basename, join } from 'node:path';
|
|
14
|
+
import { expect, test } from '@playwright/test';
|
|
15
|
+
import { holdMotionStill } from '@astryxdesign/a11y-spec/chromium';
|
|
16
|
+
import { DEFAULT_STORYBOOK_DIR, serveStorybook } from '@astryxdesign/a11y-spec/storybook';
|
|
17
|
+
let storybook;
|
|
18
|
+
test.beforeAll(async () => {
|
|
19
|
+
storybook = await serveStorybook(process.env.ASTRYX_STORYBOOK_DIR ?? DEFAULT_STORYBOOK_DIR);
|
|
20
|
+
});
|
|
21
|
+
test.afterAll(async () => storybook?.close());
|
|
22
|
+
async function open(page, story, dir) {
|
|
23
|
+
await page.goto(`${storybook.origin}/iframe.html?id=${story}&viewMode=story&globals=direction:${dir};colorMode:light;astryxTheme:neutral`);
|
|
24
|
+
await holdMotionStill(page);
|
|
25
|
+
await page.evaluate(async () => document.fonts.ready);
|
|
26
|
+
}
|
|
27
|
+
async function capture(page, selector, name, file) {
|
|
28
|
+
const target = page.locator(selector);
|
|
29
|
+
await expect(target).toBeVisible();
|
|
30
|
+
const geometry = await target.evaluate(root => {
|
|
31
|
+
const origin = root.getBoundingClientRect();
|
|
32
|
+
const rect = element => {
|
|
33
|
+
const box = element.getBoundingClientRect();
|
|
34
|
+
return {
|
|
35
|
+
x: box.x - origin.x,
|
|
36
|
+
y: box.y - origin.y,
|
|
37
|
+
width: box.width,
|
|
38
|
+
height: box.height
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
bodyElements: document.body.querySelectorAll('*').length,
|
|
43
|
+
componentElements: root.querySelectorAll('*').length,
|
|
44
|
+
rows: Array.from(root.querySelectorAll('.astryx-item')).map(row => ({
|
|
45
|
+
case: row.closest('[data-marker-case]')?.getAttribute('data-marker-case') ?? row.getAttribute('role') ?? 'task',
|
|
46
|
+
children: row.children.length,
|
|
47
|
+
elements: row.querySelectorAll('*').length,
|
|
48
|
+
rect: rect(row),
|
|
49
|
+
slots: Array.from(row.querySelectorAll('[data-anatomy-slot], input, [role="checkbox"], [role="radio"]')).map(slot => ({
|
|
50
|
+
name: slot.getAttribute('data-anatomy-slot') ?? slot.getAttribute('role') ?? slot.tagName,
|
|
51
|
+
rect: rect(slot)
|
|
52
|
+
})),
|
|
53
|
+
startIsDirect: row.querySelector('[data-anatomy-slot="start"]')?.parentElement?.parentElement === row
|
|
54
|
+
}))
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
const image = await target.screenshot({
|
|
58
|
+
path: file
|
|
59
|
+
});
|
|
60
|
+
return {
|
|
61
|
+
name,
|
|
62
|
+
...geometry,
|
|
63
|
+
pixelSha256: createHash('sha256').update(image).digest('hex')
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
for (const pointer of ['fine', 'coarse']) {
|
|
67
|
+
for (const dir of ['ltr', 'rtl']) {
|
|
68
|
+
test(`numbered marker scope preserves row pixels (${pointer}, ${dir})`, async ({
|
|
69
|
+
browser
|
|
70
|
+
}, testInfo) => {
|
|
71
|
+
const context = await browser.newContext({
|
|
72
|
+
viewport: {
|
|
73
|
+
width: 1280,
|
|
74
|
+
height: 900
|
|
75
|
+
},
|
|
76
|
+
hasTouch: pointer === 'coarse'
|
|
77
|
+
});
|
|
78
|
+
const page = await context.newPage();
|
|
79
|
+
try {
|
|
80
|
+
const states = [];
|
|
81
|
+
await open(page, 'core-item--marker-anatomy', dir);
|
|
82
|
+
expect(await page.evaluate(() => matchMedia('(pointer: coarse)').matches)).toBe(pointer === 'coarse');
|
|
83
|
+
const fixture = '[data-marker-anatomy]';
|
|
84
|
+
states.push(await capture(page, fixture, 'anatomy-rest', testInfo.outputPath('anatomy-rest.png')));
|
|
85
|
+
await page.getByRole('button', {
|
|
86
|
+
name: 'Toggle marker menu'
|
|
87
|
+
}).click();
|
|
88
|
+
await expect(page.getByRole('menuitem')).toBeVisible();
|
|
89
|
+
await page.mouse.move(1200, 850);
|
|
90
|
+
states.push(await capture(page, fixture, 'anatomy-open', testInfo.outputPath('anatomy-open.png')));
|
|
91
|
+
await open(page, 'a11y-menu--dropdown-selectable', dir);
|
|
92
|
+
states.push(await capture(page, '[data-a11y-activations]', 'menu-rest', testInfo.outputPath('menu-rest.png')));
|
|
93
|
+
await page.getByRole('button', {
|
|
94
|
+
name: 'View',
|
|
95
|
+
exact: true
|
|
96
|
+
}).click();
|
|
97
|
+
await expect(page.getByRole('menuitemcheckbox')).toBeVisible();
|
|
98
|
+
await expect(page.getByRole('menuitemradio')).toHaveCount(2);
|
|
99
|
+
await page.mouse.move(1200, 850);
|
|
100
|
+
states.push(await capture(page, '[role="menu"]', 'menu-open', testInfo.outputPath('menu-open.png')));
|
|
101
|
+
await open(page, 'richtext-richtexteditor--markdown-parity', dir);
|
|
102
|
+
const task = '[data-parity-surface="markdown"] [data-parity-block="list-task-mixed"]';
|
|
103
|
+
states.push(await capture(page, task, 'mixed-task', testInfo.outputPath('mixed-task.png')));
|
|
104
|
+
await writeFile(testInfo.outputPath('receipt.json'), JSON.stringify({
|
|
105
|
+
pointer,
|
|
106
|
+
dir,
|
|
107
|
+
states
|
|
108
|
+
}, null, 2));
|
|
109
|
+
for (const state of states.filter(state => state.name.startsWith('anatomy'))) {
|
|
110
|
+
for (const row of state.rows) {
|
|
111
|
+
expect(row.children, row.case).toBe(row.case === 'numbered' ? 2 : row.case === 'unmarked-item' ? 3 : 4);
|
|
112
|
+
expect(row.startIsDirect, row.case).toBe(row.case !== 'numbered');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// Before/after pixels are compared only when the retained local receipt
|
|
116
|
+
// is supplied. CI keeps the structural proof and emits its own receipt.
|
|
117
|
+
const before = process.env.ASTRYX_MARKER_ANATOMY_BEFORE;
|
|
118
|
+
if (before != null) {
|
|
119
|
+
const prior = JSON.parse(await readFile(join(before, basename(testInfo.outputDir), 'receipt.json'), 'utf8'));
|
|
120
|
+
for (const state of states) {
|
|
121
|
+
const previous = prior.states.find(value => value.name === state.name);
|
|
122
|
+
expect(previous, state.name).toBeDefined();
|
|
123
|
+
expect(state.pixelSha256, `${state.name}: unchanged pixels`).toBe(previous?.pixelSha256);
|
|
124
|
+
expect(state.rows.map(row => row.rect), `${state.name}: unchanged geometry`).toEqual(previous?.rows.map(row => row.rect));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
} finally {
|
|
128
|
+
await context.close();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file ItemMarkerColumnsContext.tsx
|
|
3
|
+
* @input The exact marker element supplied by a numbered composing row
|
|
4
|
+
* @output Private ItemMarkerColumnsContext; not part of the public Item exports
|
|
5
|
+
* @position Item-owned seam for the marker/content formatting group
|
|
6
|
+
*
|
|
7
|
+
* Numbered ListItem rows need two subgrid cells. Other marked Items keep their
|
|
8
|
+
* flat flex children. Marker identity, rather than an inherited boolean,
|
|
9
|
+
* confines the group to that one row: an Item nested in a slot has a different
|
|
10
|
+
* marker and does not inherit the formatting request.
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactNode } from 'react';
|
|
13
|
+
export declare const ItemMarkerColumnsContext: import("react").Context<ReactNode>;
|
|
14
|
+
//# sourceMappingURL=ItemMarkerColumnsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemMarkerColumnsContext.d.ts","sourceRoot":"","sources":["../../src/Item/ItemMarkerColumnsContext.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,EAAgB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEpD,eAAO,MAAM,wBAAwB,oCAAiC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file ItemMarkerColumnsContext.tsx
|
|
7
|
+
* @input The exact marker element supplied by a numbered composing row
|
|
8
|
+
* @output Private ItemMarkerColumnsContext; not part of the public Item exports
|
|
9
|
+
* @position Item-owned seam for the marker/content formatting group
|
|
10
|
+
*
|
|
11
|
+
* Numbered ListItem rows need two subgrid cells. Other marked Items keep their
|
|
12
|
+
* flat flex children. Marker identity, rather than an inherited boolean,
|
|
13
|
+
* confines the group to that one row: an Item nested in a slot has a different
|
|
14
|
+
* marker and does not inherit the formatting request.
|
|
15
|
+
*/
|
|
16
|
+
import { createContext } from 'react';
|
|
17
|
+
export const ItemMarkerColumnsContext = /*#__PURE__*/createContext(null);
|
|
18
|
+
ItemMarkerColumnsContext.displayName = 'ItemMarkerColumnsContext';
|
|
@@ -1 +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jC;AAED;;;GAGG;AACH,UAAU,2BAA4B,SAAQ,mBAAmB;IAC/D;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,KAAK,0BAA0B,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAC3E,KAAK,wBAAwB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAmjBvE;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,GAAE,cAAwB,EACnC,SAAS,GAAE,cAAyB,GACnC,MAAM,CAiBR;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,cAAc,EACzB,SAAS,EAAE,cAAc,EACzB,cAAc,EAAE,OAAO,GACtB,KAAK,CAAC,aAAa,CAQrB;AA4BD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,OAAO,GACd,kBAAkB,CAoCpB;AAsxBD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;AAC3E,wBAAgB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;AAWvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,2BAA2B,GACnC,0BAA0B,CAAC;AAC9B,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,iBAAiB,GACzB,wBAAwB,CAAC"}
|
package/dist/Layer/useLayer.js
CHANGED
|
@@ -907,9 +907,12 @@ function useLayerImplementation(options) {
|
|
|
907
907
|
// render call mounts with its host or later. One sheet serves every layer.
|
|
908
908
|
ensureSlideRules(sentinel.ownerDocument);
|
|
909
909
|
const portalTarget = resolveLayerPortalTarget(inlineParent);
|
|
910
|
+
// A mount for a layer that is opening or open reads its writing context
|
|
911
|
+
// now; a closed layer's waits for its first show.
|
|
912
|
+
const opening = pendingShowRef.current || isOpenRef.current;
|
|
910
913
|
const mount = {
|
|
911
914
|
portalTarget,
|
|
912
|
-
portalStyle: portalTarget ? readPortalWritingContext(sentinel, portalTarget) :
|
|
915
|
+
portalStyle: portalTarget == null ? {} : opening ? readPortalWritingContext(sentinel, portalTarget) : null
|
|
913
916
|
};
|
|
914
917
|
const replaced = contextMountRef.current !== null;
|
|
915
918
|
contextMountRef.current = mount;
|
|
@@ -918,6 +921,32 @@ function useLayerImplementation(options) {
|
|
|
918
921
|
setMountGeneration(generation => generation + 1);
|
|
919
922
|
}
|
|
920
923
|
}, [mode, mountStore]);
|
|
924
|
+
|
|
925
|
+
// Reads the writing context a closed layer's mount deferred, before the
|
|
926
|
+
// layer opens. It is written on the popover at once, so the first open frame
|
|
927
|
+
// already has it (layer-runtime INV12), and published to the slot, whose
|
|
928
|
+
// render writes the same values. A value the caller's own `style` sets is
|
|
929
|
+
// already inline and wins, as it does in render.
|
|
930
|
+
const applyDeferredWritingContext = useCallback(popover => {
|
|
931
|
+
const mount = contextMountRef.current;
|
|
932
|
+
const sentinel = sentinelRef.current;
|
|
933
|
+
if (mount === null || mount.portalTarget === null || mount.portalStyle !== null || sentinel === null) {
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
const portalStyle = readPortalWritingContext(sentinel, mount.portalTarget);
|
|
937
|
+
if (portalStyle.direction != null && popover.style.direction === '') {
|
|
938
|
+
popover.style.direction = portalStyle.direction;
|
|
939
|
+
}
|
|
940
|
+
if (portalStyle.writingMode != null && popover.style.writingMode === '') {
|
|
941
|
+
popover.style.writingMode = portalStyle.writingMode;
|
|
942
|
+
}
|
|
943
|
+
const next = {
|
|
944
|
+
...mount,
|
|
945
|
+
portalStyle
|
|
946
|
+
};
|
|
947
|
+
contextMountRef.current = next;
|
|
948
|
+
mountStore.set(next);
|
|
949
|
+
}, [mountStore]);
|
|
921
950
|
const clearContextMount = useCallback(() => {
|
|
922
951
|
if (mode !== 'context' || !lazyMount) {
|
|
923
952
|
return;
|
|
@@ -956,6 +985,7 @@ function useLayerImplementation(options) {
|
|
|
956
985
|
}
|
|
957
986
|
popover.removeAttribute(LAYER_CLEARS_ANCHOR_ATTRIBUTE);
|
|
958
987
|
popover.removeAttribute(LAYER_SCROLLS_ATTRIBUTE);
|
|
988
|
+
applyDeferredWritingContext(popover);
|
|
959
989
|
showPopoverElement(popover);
|
|
960
990
|
if (keepsAnchorClear) {
|
|
961
991
|
keepAnchorClear(popover, triggerRef.current);
|
|
@@ -964,7 +994,7 @@ function useLayerImplementation(options) {
|
|
|
964
994
|
setIsOpen(true);
|
|
965
995
|
onShow?.();
|
|
966
996
|
}
|
|
967
|
-
}, [onShow, keepsAnchorClear, requestContextMount, showPopoverElement, isCurrentContextPopover, wasJustDismissed]);
|
|
997
|
+
}, [onShow, keepsAnchorClear, requestContextMount, applyDeferredWritingContext, showPopoverElement, isCurrentContextPopover, wasJustDismissed]);
|
|
968
998
|
const hide = useCallback(() => {
|
|
969
999
|
pendingShowRef.current = false;
|
|
970
1000
|
if (isOpenRef.current) {
|
package/dist/List/List.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file List.tsx
|
|
3
3
|
* @input Uses React, ReactNode, StyleXStyles, theme tokens, useDevWarning,
|
|
4
|
-
* and ListContext with the row edge treatment
|
|
4
|
+
* and ListContext with the row edge treatment. Numbered rows share one
|
|
5
|
+
* intrinsic marker column, including when a counter changes digit count.
|
|
5
6
|
* @output Exports List component, ListProps, ListDensity, ListEdge, ListStyle
|
|
6
7
|
* types
|
|
7
8
|
* @position Core implementation; consumed by index.ts, tested by List.test.tsx
|
package/dist/List/List.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/List/List.tsx"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/List/List.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,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SAAS,+BAyEX;yBAxFe,IAAI"}
|
package/dist/List/List.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @file List.tsx
|
|
7
7
|
* @input Uses React, ReactNode, StyleXStyles, theme tokens, useDevWarning,
|
|
8
|
-
* and ListContext with the row edge treatment
|
|
8
|
+
* and ListContext with the row edge treatment. Numbered rows share one
|
|
9
|
+
* intrinsic marker column, including when a counter changes digit count.
|
|
9
10
|
* @output Exports List component, ListProps, ListDensity, ListEdge, ListStyle
|
|
10
11
|
* types
|
|
11
12
|
* @position Core implementation; consumed by index.ts, tested by List.test.tsx
|
|
@@ -41,6 +42,12 @@ const styles = {
|
|
|
41
42
|
kXHlph: "x101abm8",
|
|
42
43
|
$$css: true
|
|
43
44
|
},
|
|
45
|
+
numberColumns: {
|
|
46
|
+
k1xSpc: "x78zum5 x1tx5i3l",
|
|
47
|
+
kumcoG: "x16lqc3j",
|
|
48
|
+
k1C7PZ: "xak3so",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
44
51
|
reachesContainerPadding: {
|
|
45
52
|
keTefX: "xojxgvx",
|
|
46
53
|
k71WvV: "x1fcf3bl",
|
|
@@ -152,7 +159,7 @@ export function List({
|
|
|
152
159
|
...mergeProps(themeProps('list', {
|
|
153
160
|
density,
|
|
154
161
|
listStyle
|
|
155
|
-
}), stylex.props(styles.list, hasDividers && styles.withDividers, reachesContainerPadding && styles.reachesContainerPadding, listStyle !== 'none' && (start != null && start !== 1 ? dynamicStyles.counterStart(start - 1) : styles.withCounter), xstyle), className, style),
|
|
162
|
+
}), stylex.props(styles.list, isOrdered && styles.numberColumns, hasDividers && styles.withDividers, reachesContainerPadding && styles.reachesContainerPadding, listStyle !== 'none' && (start != null && start !== 1 ? dynamicStyles.counterStart(start - 1) : styles.withCounter), xstyle), className, style),
|
|
156
163
|
children: children
|
|
157
164
|
});
|
|
158
165
|
if (header == null) {
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* @output Exports ListContext for sharing density, dividers, the row edge
|
|
5
5
|
* treatment, and marker style between List and ListItem, and
|
|
6
6
|
* ListMarkerScope, which sets the marker for the items inside it, or a
|
|
7
|
-
* task item's checkbox in its place
|
|
7
|
+
* task item's checkbox in its place, and whether their List has a marker
|
|
8
|
+
* gutter whose outside counters keep the ordinary themed text inset
|
|
8
9
|
* @position Internal context; consumed by List.tsx and ListItem.tsx
|
|
9
10
|
*/
|
|
10
11
|
import { type ReactNode } from 'react';
|
|
@@ -42,17 +43,28 @@ export interface ListContextValue {
|
|
|
42
43
|
* `'none'`.
|
|
43
44
|
*/
|
|
44
45
|
task?: ListTaskMarker;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the List has Markdown's outside-marker gutter, set by
|
|
48
|
+
* ListMarkerScope; internal. Its number column keeps the ordinary themed
|
|
49
|
+
* width, while whole counters may paint toward inline-start beyond it.
|
|
50
|
+
* Markdown sets this on its non-swipe numbered rows and allows outside ink
|
|
51
|
+
* on their List, so its text starts match RichText without a width threshold.
|
|
52
|
+
*/
|
|
53
|
+
hasMarkerGutter?: boolean;
|
|
45
54
|
}
|
|
46
55
|
export declare const ListContext: import("react").Context<ListContextValue | null>;
|
|
47
56
|
/**
|
|
48
57
|
* Draws `marker` on the List items inside it, in place of the marker their
|
|
49
58
|
* List's `listStyle` names, or `task`'s read-only checkbox in place of either;
|
|
50
|
-
* internal, for Markdown's nested lists and task items in mixed lists.
|
|
51
|
-
*
|
|
59
|
+
* internal, for Markdown's nested lists and task items in mixed lists. With
|
|
60
|
+
* `hasMarkerGutter`, counters keep the ordinary marker column and may paint
|
|
61
|
+
* outside it toward inline-start. Outside a List, or in a List without markers, it
|
|
62
|
+
* changes nothing.
|
|
52
63
|
*/
|
|
53
|
-
export declare function ListMarkerScope({ marker, task, children, }: {
|
|
64
|
+
export declare function ListMarkerScope({ marker, task, hasMarkerGutter, children, }: {
|
|
54
65
|
readonly marker: ListMarker;
|
|
55
66
|
readonly task?: ListTaskMarker;
|
|
67
|
+
readonly hasMarkerGutter?: boolean;
|
|
56
68
|
readonly children: ReactNode;
|
|
57
69
|
}): ReactNode;
|
|
58
70
|
//# sourceMappingURL=ListContext.d.ts.map
|