@astryxdesign/core 0.7.11 → 0.7.12-canary.ccb4a6d
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/dist/AppShell/AppShellMobileContext.d.ts.map +1 -1
- package/dist/AppShell/AppShellMobileContext.js +4 -3
- package/dist/AppShell/useAppShellMainId.d.ts.map +1 -1
- package/dist/AppShell/useAppShellMainId.js +3 -2
- package/dist/Avatar/AvatarSizeContext.d.ts.map +1 -1
- package/dist/Avatar/AvatarSizeContext.js +2 -2
- package/dist/Avatar/AvatarStatusLabelContext.d.ts +2 -2
- package/dist/Avatar/AvatarStatusLabelContext.d.ts.map +1 -1
- package/dist/Avatar/AvatarStatusLabelContext.js +3 -3
- package/dist/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroupContext.js +2 -2
- package/dist/BottomSheet/BottomSheetHostContext.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetHostContext.js +3 -2
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +48 -4
- package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetSwitcherContext.js +2 -2
- package/dist/BottomSheet/bottomSheetEscape.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetEscape.js +2 -2
- package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetStack.js +2 -13
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +25 -42
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +12 -21
- package/dist/Button/buttonHitArea.d.ts.map +1 -1
- package/dist/Button/buttonHitArea.js +3 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +13 -7
- package/dist/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroupContext.js +2 -2
- package/dist/Carousel/Carousel.d.ts.map +1 -1
- package/dist/Carousel/Carousel.js +24 -15
- package/dist/Chat/ChatContext.d.ts.map +1 -1
- package/dist/Chat/ChatContext.js +6 -5
- package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
- package/dist/Chat/useChatStreamScroll.js +7 -22
- package/dist/CheckboxInput/CheckboxRowPressContext.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxRowPressContext.js +1 -1
- package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListContext.js +1 -1
- package/dist/Collapsible/CollapsibleGroupContext.d.ts.map +1 -1
- package/dist/Collapsible/CollapsibleGroupContext.js +3 -3
- package/dist/CommandPalette/CommandPaletteContext.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteContext.js +4 -3
- package/dist/CommandPalette/busyStartSettle.d.ts.map +1 -1
- package/dist/CommandPalette/busyStartSettle.js +2 -2
- package/dist/DateInput/TouchDateField.d.ts.map +1 -1
- package/dist/DateInput/TouchDateField.js +41 -4
- package/dist/Dialog/DialogContext.d.ts.map +1 -1
- package/dist/Dialog/DialogContext.js +3 -2
- package/dist/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuContext.js +6 -5
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
- package/dist/DropdownMenu/lazyMenuBottomSheet.js +4 -15
- package/dist/DropdownMenu/menuRegionStops.d.ts.map +1 -1
- package/dist/DropdownMenu/menuRegionStops.js +2 -37
- package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
- package/dist/FormLayout/FormLayoutContext.js +2 -2
- package/dist/Heading/Heading.d.ts.map +1 -1
- package/dist/Heading/Heading.js +19 -16
- package/dist/HoverCard/HoverCard.d.ts +1 -2
- package/dist/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/HoverCard/useHoverCard.d.ts +1 -2
- package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/HoverCard/useHoverCard.js +5 -1
- package/dist/Icon/IconDefaultSizeContext.d.ts.map +1 -1
- package/dist/Icon/IconDefaultSizeContext.js +2 -2
- package/dist/InputGroup/InputGroupContext.d.ts.map +1 -1
- package/dist/InputGroup/InputGroupContext.js +2 -2
- package/dist/InputGroup/InputGroupInternalContext.d.ts.map +1 -1
- package/dist/InputGroup/InputGroupInternalContext.js +2 -2
- package/dist/InteractiveRoleContext/InteractiveRoleContext.d.ts.map +1 -1
- package/dist/InteractiveRoleContext/InteractiveRoleContext.js +5 -3
- package/dist/Item/ItemDescriptionContext.d.ts.map +1 -1
- package/dist/Item/ItemDescriptionContext.js +3 -3
- package/dist/Item/ItemListRowContext.d.ts.map +1 -1
- package/dist/Item/ItemListRowContext.js +3 -3
- package/dist/Item/ItemMarkerColumnsContext.d.ts +1 -1
- package/dist/Item/ItemMarkerColumnsContext.d.ts.map +1 -1
- package/dist/Item/ItemMarkerColumnsContext.js +2 -2
- package/dist/Layer/LayerContext.d.ts.map +1 -1
- package/dist/Layer/LayerContext.js +3 -2
- package/dist/Layer/LayerDepthContext.d.ts.map +1 -1
- package/dist/Layer/LayerDepthContext.js +3 -2
- package/dist/Layer/LayerTouch.d.ts +3 -2
- package/dist/Layer/LayerTouch.d.ts.map +1 -1
- package/dist/Layer/LayerTouch.js +3 -2
- package/dist/Layer/anchorName.d.ts.map +1 -1
- package/dist/Layer/anchorName.js +5 -1
- package/dist/Layer/inputHold.d.ts.map +1 -1
- package/dist/Layer/inputHold.js +115 -13
- package/dist/Layer/layerScopedContext.d.ts +5 -2
- package/dist/Layer/layerScopedContext.d.ts.map +1 -1
- package/dist/Layer/layerScopedContext.js +27 -10
- package/dist/Layer/layerSlideRules.d.ts +28 -26
- package/dist/Layer/layerSlideRules.d.ts.map +1 -1
- package/dist/Layer/layerSlideRules.js +41 -40
- package/dist/Layer/outsidePress.d.ts +21 -3
- package/dist/Layer/outsidePress.d.ts.map +1 -1
- package/dist/Layer/outsidePress.js +119 -29
- package/dist/Layer/settledBox.d.ts +9 -8
- package/dist/Layer/settledBox.d.ts.map +1 -1
- package/dist/Layer/settledBox.js +169 -49
- package/dist/Layer/toastHost.d.ts.map +1 -1
- package/dist/Layer/toastHost.js +3 -2
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +172 -60
- package/dist/Layer/useLayerKeyboardClearance.d.ts +14 -2
- package/dist/Layer/useLayerKeyboardClearance.d.ts.map +1 -1
- package/dist/Layer/useLayerKeyboardClearance.js +83 -12
- package/dist/Layer/useTouchTrigger.d.ts +21 -1
- package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
- package/dist/Layer/useTouchTrigger.js +61 -37
- package/dist/Layout/Layout.d.ts +1 -1
- package/dist/Layout/Layout.d.ts.map +1 -1
- package/dist/Layout/Layout.js +10 -6
- package/dist/Layout/LayoutAreaContext.d.ts.map +1 -1
- package/dist/Layout/LayoutAreaContext.js +3 -3
- package/dist/Layout/LayoutContent.d.ts +6 -6
- package/dist/Layout/LayoutContent.js +9 -9
- package/dist/Layout/LayoutDividerContext.d.ts.map +1 -1
- package/dist/Layout/LayoutDividerContext.js +2 -2
- package/dist/Layout/LayoutSlotsContext.d.ts.map +1 -1
- package/dist/Layout/LayoutSlotsContext.js +2 -2
- package/dist/Link/LinkContext.d.ts +16 -0
- package/dist/Link/LinkContext.d.ts.map +1 -1
- package/dist/Link/LinkContext.js +3 -3
- package/dist/List/List.d.ts +12 -1
- package/dist/List/List.d.ts.map +1 -1
- package/dist/List/List.js +29 -10
- package/dist/List/ListContext.d.ts +18 -3
- package/dist/List/ListContext.d.ts.map +1 -1
- package/dist/List/ListContext.js +9 -6
- package/dist/List/ListItem.d.ts +13 -4
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListItem.js +37 -10
- package/dist/List/listLayoutUpdates.d.ts +34 -0
- package/dist/List/listLayoutUpdates.d.ts.map +1 -0
- package/dist/List/listLayoutUpdates.js +539 -0
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +57 -10
- package/dist/Markdown/blockDirection.d.ts +26 -0
- package/dist/Markdown/blockDirection.d.ts.map +1 -0
- package/dist/Markdown/blockDirection.js +68 -0
- package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts +3 -1
- package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts.map +1 -1
- package/dist/Markdown/plugins/HeadingLinksRenderer.js +3 -1
- package/dist/MetadataList/MetadataListContext.d.ts.map +1 -1
- package/dist/MetadataList/MetadataListContext.js +2 -2
- package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
- package/dist/NavMenu/NavMenuContext.js +5 -4
- package/dist/Popover/Popover.d.ts.map +1 -1
- package/dist/Popover/Popover.js +9 -9
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +11 -8
- package/dist/RadioList/RadioList.d.ts.map +1 -1
- package/dist/RadioList/RadioList.js +2 -2
- package/dist/RadioList/RadioListReasonContext.d.ts.map +1 -1
- package/dist/RadioList/RadioListReasonContext.js +1 -1
- package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlContext.js +2 -2
- package/dist/SelectableCard/selectableCardInput.d.ts.map +1 -1
- package/dist/SelectableCard/selectableCardInput.js +2 -2
- package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -1
- package/dist/Selector/SelectorRowLayoutContext.js +2 -2
- package/dist/SideNav/SideNavCollapseButton.d.ts +4 -3
- package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
- package/dist/SideNav/SideNavCollapseContext.d.ts.map +1 -1
- package/dist/SideNav/SideNavCollapseContext.js +4 -3
- package/dist/SideNav/SideNavFocusTargetsContext.d.ts.map +1 -1
- package/dist/SideNav/SideNavFocusTargetsContext.js +2 -2
- package/dist/SideNav/SideNavItem.d.ts.map +1 -1
- package/dist/SideNav/SideNavItem.js +3 -2
- package/dist/SideNav/SideNavRenderContext.d.ts.map +1 -1
- package/dist/SideNav/SideNavRenderContext.js +4 -3
- package/dist/SideNav/railMotion.d.ts +40 -0
- package/dist/SideNav/railMotion.d.ts.map +1 -1
- package/dist/SideNav/railMotion.js +2 -2
- package/dist/SizeContext/SizeContext.d.ts.map +1 -1
- package/dist/SizeContext/SizeContext.js +2 -2
- package/dist/SnapPaging/SnapPaging.d.ts.map +1 -1
- package/dist/SnapPaging/SnapPaging.js +162 -36
- package/dist/SnapPaging/snapPagingValue.d.ts +29 -3
- package/dist/SnapPaging/snapPagingValue.d.ts.map +1 -1
- package/dist/SnapPaging/snapPagingValue.js +38 -6
- package/dist/Spinner/SpinnerOwnerContext.d.ts.map +1 -1
- package/dist/Spinner/SpinnerOwnerContext.js +2 -2
- package/dist/Stepper/StepperContext.d.ts.map +1 -1
- package/dist/Stepper/StepperContext.js +3 -3
- package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
- package/dist/Switch/useSwitchTouch.js +8 -3
- package/dist/TabList/TabListContext.d.ts.map +1 -1
- package/dist/TabList/TabListContext.js +2 -2
- package/dist/Table/BaseTable.d.ts +3 -2
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +73 -16
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +3 -2
- package/dist/Table/TableContext.d.ts.map +1 -1
- package/dist/Table/TableContext.js +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.js +4 -3
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +5 -3
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +16 -18
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
- package/dist/Table/plugins/rowIndex/useTableRowIndex.js +48 -39
- package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
- package/dist/Table/plugins/selection/useTableSelection.js +4 -2
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +1 -0
- package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
- package/dist/Table/plugins/tree/useTableTreeData.js +3 -2
- package/dist/Table/tableRowContextUsage.d.ts +21 -0
- package/dist/Table/tableRowContextUsage.d.ts.map +1 -0
- package/dist/Table/tableRowContextUsage.js +88 -0
- package/dist/Table/types.d.ts +58 -5
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/Table/useBaseTablePlugins.d.ts.map +1 -1
- package/dist/Table/useBaseTablePlugins.js +5 -2
- package/dist/Text/Text.d.ts.map +1 -1
- package/dist/Text/Text.js +18 -14
- package/dist/Text/TruncationTooltip.d.ts +45 -0
- package/dist/Text/TruncationTooltip.d.ts.map +1 -0
- package/dist/Text/TruncationTooltip.js +123 -0
- package/dist/Text/textClampContext.d.ts.map +1 -1
- package/dist/Text/textClampContext.js +1 -1
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +4 -0
- package/dist/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
- package/dist/Token/TokenNamingContext.d.ts.map +1 -1
- package/dist/Token/TokenNamingContext.js +2 -2
- package/dist/Tokenizer/TokenizerClearAllMessageContext.d.ts.map +1 -1
- package/dist/Tokenizer/TokenizerClearAllMessageContext.js +2 -2
- package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts +12 -0
- package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts.map +1 -1
- package/dist/Tokenizer/TokenizerItemRemovableContext.js +2 -2
- package/dist/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/Toolbar/Toolbar.js +12 -6
- package/dist/Tooltip/tooltipPresentInterest.d.ts +29 -0
- package/dist/Tooltip/tooltipPresentInterest.d.ts.map +1 -0
- package/dist/Tooltip/tooltipPresentInterest.js +29 -0
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +30 -4
- package/dist/TopNav/TopNavContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavContext.js +2 -2
- package/dist/TopNav/TopNavMobileContentContext.d.ts +1 -1
- package/dist/TopNav/TopNavMobileContentContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavMobileContentContext.js +4 -3
- package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavRenderContext.js +4 -3
- package/dist/Typeahead/busyIndicatorLane.d.ts.map +1 -1
- package/dist/Typeahead/busyIndicatorLane.js +3 -2
- package/dist/Typeahead/committedChoicesKey.d.ts.map +1 -1
- package/dist/Typeahead/committedChoicesKey.js +3 -2
- package/dist/Typeahead/trailingKeyDown.d.ts.map +1 -1
- package/dist/Typeahead/trailingKeyDown.js +3 -2
- package/dist/astryx.css +18 -8
- package/dist/gestures/GestureArena.d.ts +2 -0
- package/dist/gestures/GestureArena.d.ts.map +1 -1
- package/dist/gestures/GestureArena.js +8 -1
- package/dist/gestures/GestureRecognizer.d.ts +6 -0
- package/dist/gestures/GestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/GestureRecognizer.js +9 -0
- package/dist/gestures/PressTracker.d.ts.map +1 -1
- package/dist/gestures/PressTracker.js +9 -4
- package/dist/hooks/focusableSelector.d.ts +13 -1
- package/dist/hooks/focusableSelector.d.ts.map +1 -1
- package/dist/hooks/focusableSelector.js +22 -2
- package/dist/hooks/longPressDetector.d.ts.map +1 -1
- package/dist/hooks/longPressDetector.js +1 -25
- package/dist/hooks/pressGroupContext.d.ts.map +1 -1
- package/dist/hooks/pressGroupContext.js +1 -1
- package/dist/hooks/useActionGroupTracking.d.ts +18 -1
- package/dist/hooks/useActionGroupTracking.d.ts.map +1 -1
- package/dist/hooks/useActionGroupTracking.js +13 -2
- package/dist/hooks/useAnnounce.d.ts.map +1 -1
- package/dist/hooks/useAnnounce.js +3 -2
- package/dist/hooks/useFocusTrap.d.ts +11 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +47 -2
- package/dist/hooks/useListFocus.d.ts +7 -0
- package/dist/hooks/useListFocus.d.ts.map +1 -1
- package/dist/hooks/useListFocus.js +20 -3
- package/dist/hooks/usePager.d.ts.map +1 -1
- package/dist/hooks/usePager.js +26 -3
- package/dist/hooks/useScrollOverflow.d.ts +22 -0
- package/dist/hooks/useScrollOverflow.d.ts.map +1 -1
- package/dist/hooks/useScrollOverflow.js +67 -11
- package/dist/i18n/InternationalizationContext.d.ts +19 -0
- package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
- package/dist/i18n/InternationalizationContext.js +3 -3
- package/dist/i18n/englishFallback.d.ts.map +1 -1
- package/dist/i18n/englishFallback.js +5 -1
- package/dist/i18n/firstStrongDirection.d.ts +7 -0
- package/dist/i18n/firstStrongDirection.d.ts.map +1 -0
- package/dist/i18n/firstStrongDirection.js +65 -0
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +1 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +1 -0
- package/dist/internal/scroll-anchoring.d.ts +16 -0
- package/dist/internal/scroll-anchoring.d.ts.map +1 -0
- package/dist/internal/scroll-anchoring.js +16 -0
- package/dist/internal/touch.d.ts +2 -0
- package/dist/internal/touch.d.ts.map +1 -1
- package/dist/internal/touch.js +4 -1
- package/dist/motion/animatedLayout.d.ts +8 -0
- package/dist/motion/animatedLayout.d.ts.map +1 -1
- package/dist/motion/animatedLayout.js +51 -3
- package/dist/motion/animator.d.ts +19 -2
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +72 -7
- package/dist/privateAttributes/itemKey.stylex.d.ts +5 -0
- package/dist/privateAttributes/itemKey.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/itemKey.stylex.js +25 -0
- package/dist/privateAttributes/leaving.stylex.d.ts +5 -0
- package/dist/privateAttributes/leaving.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/leaving.stylex.js +23 -0
- package/dist/privateAttributes/press.stylex.d.ts.map +1 -1
- package/dist/privateAttributes/press.stylex.js +13 -3
- package/dist/privateAttributes/scrollAnchoring.stylex.d.ts +7 -0
- package/dist/privateAttributes/scrollAnchoring.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/scrollAnchoring.stylex.js +50 -0
- package/dist/privateAttributes/travelling.stylex.d.ts +27 -0
- package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/travelling.stylex.js +51 -0
- package/dist/theme/Theme.d.ts.map +1 -1
- package/dist/theme/Theme.js +95 -49
- package/dist/theme/syntax/SyntaxTheme.d.ts.map +1 -1
- package/dist/theme/syntax/SyntaxTheme.js +3 -2
- package/dist/theme/useTheme.d.ts.map +1 -1
- package/dist/theme/useTheme.js +3 -2
- package/dist/utils/calendarSystem.d.ts.map +1 -1
- package/dist/utils/calendarSystem.js +4 -1
- package/dist/utils/flatTree.d.ts +13 -0
- package/dist/utils/flatTree.d.ts.map +1 -1
- package/dist/utils/flatTree.js +28 -4
- package/dist/utils/inputAge.d.ts +22 -0
- package/dist/utils/inputAge.d.ts.map +1 -0
- package/dist/utils/inputAge.js +54 -0
- package/dist/utils/inputStream.d.ts +8 -0
- package/dist/utils/inputStream.d.ts.map +1 -1
- package/dist/utils/inputStream.js +53 -3
- package/dist/utils/moduleLoader.d.ts +23 -0
- package/dist/utils/moduleLoader.d.ts.map +1 -0
- package/dist/utils/moduleLoader.js +31 -0
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +13 -8
- package/dist/utils/selectionLock.d.ts.map +1 -1
- package/dist/utils/selectionLock.js +7 -14
- package/dist/utils/sharedContext.d.ts +18 -0
- package/dist/utils/sharedContext.d.ts.map +1 -0
- package/dist/utils/sharedContext.js +33 -0
- package/dist/utils/sharedRealm.d.ts +24 -0
- package/dist/utils/sharedRealm.d.ts.map +1 -0
- package/dist/utils/sharedRealm.js +38 -0
- package/locales/en.json +4 -0
- package/locales/pseudo.json +3 -0
- package/package.json +10 -5
- package/src/AppShell/AppShellMobileContext.tsx +8 -3
- package/src/AppShell/useAppShellMainId.ts +7 -2
- package/src/Avatar/AvatarSizeContext.ts +6 -2
- package/src/Avatar/AvatarStatusLabelContext.ts +8 -3
- package/src/AvatarGroup/AvatarGroupContext.ts +7 -4
- package/src/BottomSheet/BottomSheetHostContext.ts +7 -3
- package/src/BottomSheet/BottomSheetPanel.tsx +56 -7
- package/src/BottomSheet/BottomSheetSwitcherContext.ts +7 -2
- package/src/BottomSheet/bottomSheetEscape.ts +6 -2
- package/src/BottomSheet/bottomSheetStack.ts +6 -14
- package/src/BottomSheet/useSheetGestures.ts +28 -48
- package/src/Breadcrumbs/Breadcrumbs.tsx +6 -5
- package/src/Button/Button.doc.mjs +3 -3
- package/src/Button/Button.tsx +10 -22
- package/src/Button/buttonHitArea.ts +7 -4
- package/src/ButtonGroup/ButtonGroup.doc.mjs +3 -3
- package/src/ButtonGroup/ButtonGroup.tsx +27 -16
- package/src/ButtonGroup/ButtonGroupContext.ts +7 -4
- package/src/Carousel/Carousel.tsx +33 -15
- package/src/Chat/ChatContext.tsx +23 -7
- package/src/Chat/useChatStreamScroll.ts +7 -26
- package/src/CheckboxInput/CheckboxRowPressContext.ts +5 -1
- package/src/CheckboxList/CheckboxListContext.tsx +5 -1
- package/src/Collapsible/CollapsibleGroupContext.tsx +11 -3
- package/src/CommandPalette/CommandPaletteContext.ts +8 -3
- package/src/CommandPalette/busyStartSettle.ts +6 -2
- package/src/DateInput/TouchDateField.tsx +62 -4
- package/src/Dialog/DialogContext.ts +7 -2
- package/src/DropdownMenu/DropdownMenuContext.tsx +18 -5
- package/src/DropdownMenu/lazyMenuBottomSheet.ts +6 -18
- package/src/DropdownMenu/menuRegionStops.ts +1 -49
- package/src/FormLayout/FormLayoutContext.ts +3 -3
- package/src/Heading/Heading.tsx +34 -18
- package/src/HoverCard/HoverCard.doc.mjs +3 -3
- package/src/HoverCard/HoverCard.tsx +1 -2
- package/src/HoverCard/useHoverCard.tsx +6 -2
- package/src/Icon/IconDefaultSizeContext.ts +6 -2
- package/src/IconButton/IconButton.doc.mjs +2 -2
- package/src/InputGroup/InputGroupContext.ts +7 -4
- package/src/InputGroup/InputGroupInternalContext.ts +6 -2
- package/src/InteractiveRoleContext/InteractiveRoleContext.ts +8 -3
- package/src/Item/ItemDescriptionContext.tsx +7 -3
- package/src/Item/ItemListRowContext.tsx +7 -3
- package/src/Item/ItemMarkerColumnsContext.tsx +7 -2
- package/src/Layer/LayerContext.ts +7 -2
- package/src/Layer/LayerDepthContext.tsx +3 -2
- package/src/Layer/LayerTouch.ts +6 -2
- package/src/Layer/anchorName.ts +8 -4
- package/src/Layer/inputHold.ts +138 -21
- package/src/Layer/layerScopedContext.tsx +34 -7
- package/src/Layer/layerSlideRules.ts +43 -40
- package/src/Layer/outsidePress.ts +144 -28
- package/src/Layer/settledBox.ts +216 -54
- package/src/Layer/toastHost.tsx +6 -2
- package/src/Layer/useLayer.tsx +200 -69
- package/src/Layer/useLayerKeyboardClearance.ts +90 -12
- package/src/Layer/useTouchTrigger.ts +89 -40
- package/src/Layout/Layout.doc.mjs +17 -0
- package/src/Layout/Layout.tsx +13 -9
- package/src/Layout/LayoutAreaContext.ts +8 -9
- package/src/Layout/LayoutContent.doc.mjs +11 -0
- package/src/Layout/LayoutContent.tsx +9 -9
- package/src/Layout/LayoutDividerContext.ts +6 -2
- package/src/Layout/LayoutSlotsContext.ts +6 -3
- package/src/Link/LinkContext.ts +7 -3
- package/src/List/List.doc.mjs +5 -0
- package/src/List/List.tsx +53 -5
- package/src/List/ListContext.tsx +28 -6
- package/src/List/ListItem.doc.mjs +11 -0
- package/src/List/ListItem.tsx +51 -14
- package/src/List/listLayoutUpdates.ts +603 -0
- package/src/Markdown/Markdown.tsx +93 -5
- package/src/Markdown/blockDirection.ts +100 -0
- package/src/Markdown/plugins/HeadingLinksRenderer.tsx +4 -0
- package/src/MetadataList/MetadataListContext.tsx +6 -2
- package/src/NavMenu/NavMenuContext.tsx +14 -5
- package/src/Popover/Popover.tsx +23 -16
- package/src/Popover/usePopover.tsx +21 -7
- package/src/RadioList/RadioList.tsx +7 -4
- package/src/RadioList/RadioListReasonContext.ts +1 -1
- package/src/Section/Section.doc.mjs +22 -0
- package/src/SegmentedControl/SegmentedControlContext.ts +6 -2
- package/src/SelectableCard/selectableCardInput.ts +6 -2
- package/src/Selector/SelectorRowLayoutContext.ts +6 -2
- package/src/SideNav/SideNavCollapseButton.doc.mjs +5 -5
- package/src/SideNav/SideNavCollapseButton.tsx +4 -3
- package/src/SideNav/SideNavCollapseContext.ts +12 -7
- package/src/SideNav/SideNavFocusTargetsContext.ts +6 -2
- package/src/SideNav/SideNavItem.tsx +6 -2
- package/src/SideNav/SideNavRenderContext.ts +9 -8
- package/src/SideNav/railMotion.ts +6 -2
- package/src/SizeContext/SizeContext.ts +6 -2
- package/src/SnapPaging/SnapPaging.ts +164 -39
- package/src/SnapPaging/snapPagingValue.ts +59 -12
- package/src/Spinner/SpinnerOwnerContext.ts +6 -2
- package/src/Stepper/StepperContext.ts +12 -3
- package/src/Switch/useSwitchTouch.ts +7 -5
- package/src/TabList/TabListContext.ts +7 -2
- package/src/Table/BaseTable.tsx +143 -19
- package/src/Table/Table.tsx +4 -3
- package/src/Table/TableContext.ts +6 -2
- package/src/Table/index.ts +2 -0
- package/src/Table/plugins/filtering/useTableFiltering.tsx +11 -3
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +10 -3
- package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +38 -29
- package/src/Table/plugins/selection/useTableSelection.tsx +7 -2
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +1 -0
- package/src/Table/plugins/tree/useTableTreeData.tsx +6 -2
- package/src/Table/tableRowContextUsage.ts +105 -0
- package/src/Table/types.ts +60 -2
- package/src/Table/useBaseTablePlugins.ts +5 -2
- package/src/Table/useTableRowIndex.doc.mjs +6 -7
- package/src/Text/Text.tsx +34 -18
- package/src/Text/TruncationTooltip.tsx +179 -0
- package/src/Text/textClampContext.ts +5 -1
- package/src/TimeInput/TimeInput.tsx +4 -0
- package/src/ToggleButton/ToggleButtonGroup.tsx +6 -2
- package/src/Token/TokenNamingContext.ts +6 -2
- package/src/Tokenizer/TokenizerClearAllMessageContext.ts +4 -4
- package/src/Tokenizer/TokenizerItemRemovableContext.ts +3 -3
- package/src/Toolbar/Toolbar.tsx +16 -9
- package/src/Tooltip/tooltipPresentInterest.ts +43 -0
- package/src/Tooltip/useTooltip.tsx +33 -0
- package/src/TopNav/TopNavContext.ts +6 -2
- package/src/TopNav/TopNavMobileContentContext.ts +8 -3
- package/src/TopNav/TopNavRenderContext.ts +8 -4
- package/src/Typeahead/busyIndicatorLane.tsx +7 -2
- package/src/Typeahead/committedChoicesKey.tsx +4 -3
- package/src/Typeahead/trailingKeyDown.tsx +7 -2
- package/src/gestures/GestureArena.ts +8 -1
- package/src/gestures/GestureRecognizer.ts +9 -0
- package/src/gestures/PressTracker.ts +13 -4
- package/src/hooks/focusableSelector.ts +29 -1
- package/src/hooks/longPressDetector.ts +1 -35
- package/src/hooks/pressGroupContext.ts +5 -1
- package/src/hooks/useActionGroupTracking.ts +29 -2
- package/src/hooks/useAnnounce.ts +8 -4
- package/src/hooks/useFocusTrap.ts +62 -2
- package/src/hooks/useListFocus.ts +34 -7
- package/src/hooks/usePager.ts +30 -3
- package/src/hooks/useScrollOverflow.ts +65 -7
- package/src/i18n/InternationalizationContext.ts +12 -8
- package/src/i18n/englishFallback.ts +7 -1
- package/src/i18n/firstStrongDirection.ts +69 -0
- package/src/i18n/generated-locales/en.generated.ts +1 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +1 -0
- package/src/internal/scroll-anchoring.ts +16 -0
- package/src/internal/touch.ts +4 -0
- package/src/motion/animatedLayout.ts +44 -3
- package/src/motion/animator.ts +97 -9
- package/src/privateAttributes/itemKey.stylex.ts +25 -0
- package/src/privateAttributes/leaving.stylex.ts +23 -0
- package/src/privateAttributes/press.stylex.ts +19 -7
- package/src/privateAttributes/scrollAnchoring.stylex.ts +50 -0
- package/src/privateAttributes/travelling.stylex.ts +88 -0
- package/src/theme/Theme.tsx +124 -60
- package/src/theme/syntax/SyntaxTheme.tsx +7 -2
- package/src/theme/useTheme.ts +7 -8
- package/src/utils/calendarSystem.ts +7 -1
- package/src/utils/flatTree.ts +31 -4
- package/src/utils/inputAge.ts +66 -0
- package/src/utils/inputStream.ts +52 -3
- package/src/utils/moduleLoader.ts +47 -0
- package/src/utils/pressFeedback.ts +16 -7
- package/src/utils/selectionLock.ts +8 -18
- package/src/utils/sharedContext.ts +42 -0
- package/src/utils/sharedRealm.ts +42 -0
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
import {useCallback, useEffect, useRef, useState} from 'react';
|
|
35
35
|
import {useMediaQuery} from '../hooks/useMediaQuery';
|
|
36
|
+
import {setScrollAnchoringOff} from '../privateAttributes/scrollAnchoring.stylex';
|
|
36
37
|
|
|
37
38
|
// =============================================================================
|
|
38
39
|
// Types
|
|
@@ -128,28 +129,6 @@ export interface UseChatStreamScrollReturn {
|
|
|
128
129
|
|
|
129
130
|
const SIXTY_FPS_MS = 1000 / 60;
|
|
130
131
|
|
|
131
|
-
// While following, the hook owns the container's position, so the browser's
|
|
132
|
-
// scroll anchoring must not move it. The rule rides on an attribute rather
|
|
133
|
-
// than the element's inline style: a consumer's own `overflow-anchor` is never
|
|
134
|
-
// read, written or restored — it simply applies again once the attribute is
|
|
135
|
-
// gone. `!important` so an inline `auto` cannot switch anchoring back on under
|
|
136
|
-
// a following container; an inline `!important` still wins, deliberately.
|
|
137
|
-
const FOLLOWING_ATTR = 'data-astryx-chat-following';
|
|
138
|
-
const FOLLOWING_STYLE_ATTR = 'data-astryx-chat-following-style';
|
|
139
|
-
|
|
140
|
-
function ensureFollowingStyle(): void {
|
|
141
|
-
if (
|
|
142
|
-
typeof document === 'undefined' ||
|
|
143
|
-
document.head.querySelector(`[${FOLLOWING_STYLE_ATTR}]`)
|
|
144
|
-
) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
const style = document.createElement('style');
|
|
148
|
-
style.setAttribute(FOLLOWING_STYLE_ATTR, '');
|
|
149
|
-
style.textContent = `[${FOLLOWING_ATTR}]{overflow-anchor:none !important}`;
|
|
150
|
-
document.head.appendChild(style);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
132
|
export function useChatStreamScroll({
|
|
154
133
|
scrollRef,
|
|
155
134
|
enabled = true,
|
|
@@ -187,7 +166,10 @@ export function useChatStreamScroll({
|
|
|
187
166
|
(locked: boolean) => {
|
|
188
167
|
lockedRef.current = locked;
|
|
189
168
|
setIsLocked(locked);
|
|
190
|
-
scrollRef.current
|
|
169
|
+
const el = scrollRef.current;
|
|
170
|
+
if (el != null) {
|
|
171
|
+
setScrollAnchoringOff(el, locked);
|
|
172
|
+
}
|
|
191
173
|
},
|
|
192
174
|
[scrollRef],
|
|
193
175
|
);
|
|
@@ -367,8 +349,7 @@ export function useChatStreamScroll({
|
|
|
367
349
|
}
|
|
368
350
|
|
|
369
351
|
lastScrollTopRef.current = el.scrollTop;
|
|
370
|
-
|
|
371
|
-
el.toggleAttribute(FOLLOWING_ATTR, lockedRef.current);
|
|
352
|
+
setScrollAnchoringOff(el, lockedRef.current);
|
|
372
353
|
|
|
373
354
|
const onScroll = () => {
|
|
374
355
|
const {scrollTop, scrollHeight, offsetHeight} = el;
|
|
@@ -414,7 +395,7 @@ export function useChatStreamScroll({
|
|
|
414
395
|
return () => {
|
|
415
396
|
el.removeEventListener('scroll', onScroll);
|
|
416
397
|
el.removeEventListener('scrollend', onScrollEnd);
|
|
417
|
-
el
|
|
398
|
+
setScrollAnchoringOff(el, false);
|
|
418
399
|
};
|
|
419
400
|
}, [scrollRef, enabled, lockThreshold, buttonThreshold, setLocked]);
|
|
420
401
|
|
|
@@ -18,5 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
import {createLayerScopedContext} from '../Layer/layerScopedContext';
|
|
20
20
|
|
|
21
|
-
export const CheckboxRowPressContext = createLayerScopedContext(
|
|
21
|
+
export const CheckboxRowPressContext = createLayerScopedContext(
|
|
22
|
+
'CheckboxRowPressContext',
|
|
23
|
+
1,
|
|
24
|
+
false,
|
|
25
|
+
);
|
|
22
26
|
CheckboxRowPressContext.displayName = 'CheckboxRowPressContext';
|
|
@@ -60,5 +60,9 @@ export interface CheckboxListContextValue {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export const CheckboxListContext =
|
|
63
|
-
createLayerScopedContext<CheckboxListContextValue | null>(
|
|
63
|
+
createLayerScopedContext<CheckboxListContextValue | null>(
|
|
64
|
+
'CheckboxListContext',
|
|
65
|
+
1,
|
|
66
|
+
null,
|
|
67
|
+
);
|
|
64
68
|
CheckboxListContext.displayName = 'CheckboxListContext';
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - /packages/cli/assets/templates/blocks/components/Collapsible/ (showcase blocks)
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import {createContext} from 'react';
|
|
20
19
|
import {createLayerScopedContext} from '../Layer/layerScopedContext';
|
|
20
|
+
import {createSharedContext} from '../utils/sharedContext';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Context value provided by CollapsibleGroup to coordinate collapsible children.
|
|
@@ -34,7 +34,11 @@ export interface CollapsibleGroupContextValue {
|
|
|
34
34
|
* When present, collapsible components defer their open/close state to the group.
|
|
35
35
|
*/
|
|
36
36
|
export const CollapsibleGroupContext =
|
|
37
|
-
|
|
37
|
+
createSharedContext<CollapsibleGroupContextValue | null>(
|
|
38
|
+
'CollapsibleGroupContext',
|
|
39
|
+
1,
|
|
40
|
+
null,
|
|
41
|
+
);
|
|
38
42
|
CollapsibleGroupContext.displayName = 'CollapsibleGroupContext';
|
|
39
43
|
|
|
40
44
|
/**
|
|
@@ -79,6 +83,10 @@ export interface CollapsibleGroupPresentationValue {
|
|
|
79
83
|
* children so nested collapsibles never inherit row chrome.
|
|
80
84
|
*/
|
|
81
85
|
export const CollapsibleGroupPresentationContext =
|
|
82
|
-
createLayerScopedContext<CollapsibleGroupPresentationValue | null>(
|
|
86
|
+
createLayerScopedContext<CollapsibleGroupPresentationValue | null>(
|
|
87
|
+
'CollapsibleGroupPresentationContext',
|
|
88
|
+
1,
|
|
89
|
+
null,
|
|
90
|
+
);
|
|
83
91
|
CollapsibleGroupPresentationContext.displayName =
|
|
84
92
|
'CollapsibleGroupPresentationContext';
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
'use client';
|
|
4
4
|
/**
|
|
5
5
|
* @file CommandPaletteContext.ts
|
|
6
|
-
* @input Uses
|
|
6
|
+
* @input Uses createSharedContext
|
|
7
7
|
* @output Exports CommandPaletteContext and useCommandPaletteContext hook
|
|
8
8
|
* @position Internal context; consumed by composable sub-components
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import {use} from 'react';
|
|
12
12
|
import type {SearchableItem} from '../Typeahead';
|
|
13
|
+
import {createSharedContext} from '../utils/sharedContext';
|
|
13
14
|
|
|
14
15
|
export interface CommandPaletteContextValue {
|
|
15
16
|
/** Current search query. */
|
|
@@ -45,7 +46,11 @@ export interface CommandPaletteContextValue {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export const CommandPaletteContext =
|
|
48
|
-
|
|
49
|
+
createSharedContext<CommandPaletteContextValue | null>(
|
|
50
|
+
'CommandPaletteContext',
|
|
51
|
+
1,
|
|
52
|
+
null,
|
|
53
|
+
);
|
|
49
54
|
CommandPaletteContext.displayName = 'CommandPaletteContext';
|
|
50
55
|
|
|
51
56
|
/**
|
|
@@ -16,11 +16,15 @@
|
|
|
16
16
|
* module boundary.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import {createSharedContext} from '../utils/sharedContext';
|
|
20
20
|
|
|
21
21
|
/** Registers the input's settle function, or `null` when the input goes away. */
|
|
22
22
|
export type RegisterBusyStartSettle = (settle: (() => void) | null) => void;
|
|
23
23
|
|
|
24
24
|
export const BusyStartSettleContext =
|
|
25
|
-
|
|
25
|
+
createSharedContext<RegisterBusyStartSettle | null>(
|
|
26
|
+
'BusyStartSettleContext',
|
|
27
|
+
1,
|
|
28
|
+
null,
|
|
29
|
+
);
|
|
26
30
|
BusyStartSettleContext.displayName = 'BusyStartSettleContext';
|
|
@@ -58,6 +58,8 @@ import {
|
|
|
58
58
|
useState,
|
|
59
59
|
useTransition,
|
|
60
60
|
} from 'react';
|
|
61
|
+
import {flushSync} from 'react-dom';
|
|
62
|
+
import {moveFocusLeftBehind, noteFocusWithin} from '../utils/focusReturn';
|
|
61
63
|
import * as stylex from '@stylexjs/stylex';
|
|
62
64
|
import {inputDisabledFocusStyles} from '../Field/inputDisabledFocus';
|
|
63
65
|
import {BottomSheet} from '../BottomSheet';
|
|
@@ -679,6 +681,9 @@ export function TouchDateField({
|
|
|
679
681
|
);
|
|
680
682
|
const [isWheelOpen, setIsWheelOpen] = useState(false);
|
|
681
683
|
const scrollerHandleRef = useRef<MonthScrollerHandle | null>(null);
|
|
684
|
+
const previousArrowRef = useRef<HTMLButtonElement | null>(null);
|
|
685
|
+
const nextArrowRef = useRef<HTMLButtonElement | null>(null);
|
|
686
|
+
const monthYearButtonRef = useRef<HTMLButtonElement | null>(null);
|
|
682
687
|
// Pending focus handoff from the clear button; see handleClear.
|
|
683
688
|
const clearFocusTimerRef = useRef<number | null>(null);
|
|
684
689
|
// Releases the focus timer on unmount.
|
|
@@ -896,6 +901,55 @@ export function TouchDateField({
|
|
|
896
901
|
[monthIndex, minMonthIndex, maxMonthIndex],
|
|
897
902
|
);
|
|
898
903
|
|
|
904
|
+
// An arrow at the range end hides, and a hidden element loses focus. So
|
|
905
|
+
// when a move to `target` hides the focused arrow, focus moves to the other
|
|
906
|
+
// arrow, or to the month-and-year button when both hide. The move renders
|
|
907
|
+
// first, because in a two-month range the other arrow is hidden until then.
|
|
908
|
+
const moveMonth = useCallback(
|
|
909
|
+
(target: number, move: () => void) => {
|
|
910
|
+
const previousHides = target <= minMonthIndex;
|
|
911
|
+
const nextHides = target >= maxMonthIndex;
|
|
912
|
+
const previousArrow = previousArrowRef.current;
|
|
913
|
+
const nextArrow = nextArrowRef.current;
|
|
914
|
+
const focusOnPrevious = previousHides
|
|
915
|
+
? noteFocusWithin(previousArrow)
|
|
916
|
+
: null;
|
|
917
|
+
const focusOnNext = nextHides ? noteFocusWithin(nextArrow) : null;
|
|
918
|
+
const focusOnArrow = focusOnPrevious ?? focusOnNext;
|
|
919
|
+
if (focusOnArrow == null) {
|
|
920
|
+
move();
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
// eslint-disable-next-line @eslint-react/dom-no-flush-sync -- the other arrow must be shown before it can take focus
|
|
924
|
+
flushSync(move);
|
|
925
|
+
const isOnPrevious = focusOnPrevious != null;
|
|
926
|
+
const otherArrowHides = isOnPrevious ? nextHides : previousHides;
|
|
927
|
+
const destination = otherArrowHides
|
|
928
|
+
? monthYearButtonRef.current
|
|
929
|
+
: isOnPrevious
|
|
930
|
+
? nextArrowRef.current
|
|
931
|
+
: previousArrowRef.current;
|
|
932
|
+
moveFocusLeftBehind(
|
|
933
|
+
focusOnArrow,
|
|
934
|
+
destination,
|
|
935
|
+
isOnPrevious ? previousArrow : nextArrow,
|
|
936
|
+
);
|
|
937
|
+
},
|
|
938
|
+
[minMonthIndex, maxMonthIndex],
|
|
939
|
+
);
|
|
940
|
+
|
|
941
|
+
const stepMonthFromArrow = useCallback(
|
|
942
|
+
(delta: -1 | 1) => {
|
|
943
|
+
const target = clampIndex(
|
|
944
|
+
monthIndex + delta,
|
|
945
|
+
minMonthIndex,
|
|
946
|
+
maxMonthIndex,
|
|
947
|
+
);
|
|
948
|
+
moveMonth(target, () => stepMonth(delta));
|
|
949
|
+
},
|
|
950
|
+
[monthIndex, minMonthIndex, maxMonthIndex, moveMonth, stepMonth],
|
|
951
|
+
);
|
|
952
|
+
|
|
899
953
|
// A wheel commit steers the scroller immediately, even though it is behind
|
|
900
954
|
// the wheels: it keeps its layout box while hidden, so by the time the
|
|
901
955
|
// wheels close it is already resting on the new month.
|
|
@@ -927,9 +981,10 @@ export function TouchDateField({
|
|
|
927
981
|
if (isWheelOpen) {
|
|
928
982
|
return;
|
|
929
983
|
}
|
|
930
|
-
|
|
984
|
+
// A swipe to the range end hides an arrow, as a press does.
|
|
985
|
+
moveMonth(next, () => setMonthIndex(next));
|
|
931
986
|
},
|
|
932
|
-
[isWheelOpen],
|
|
987
|
+
[isWheelOpen, moveMonth],
|
|
933
988
|
);
|
|
934
989
|
|
|
935
990
|
/**
|
|
@@ -989,6 +1044,7 @@ export function TouchDateField({
|
|
|
989
1044
|
<div {...stylex.props(styles.surface)}>
|
|
990
1045
|
<div {...stylex.props(styles.header)}>
|
|
991
1046
|
<button
|
|
1047
|
+
ref={monthYearButtonRef}
|
|
992
1048
|
type="button"
|
|
993
1049
|
onClick={() => setIsWheelOpen(open => !open)}
|
|
994
1050
|
aria-expanded={isWheelOpen}
|
|
@@ -1048,8 +1104,9 @@ export function TouchDateField({
|
|
|
1048
1104
|
styles.monthArrow,
|
|
1049
1105
|
!canStepBack && styles.monthArrowUnavailable,
|
|
1050
1106
|
]}
|
|
1107
|
+
ref={previousArrowRef}
|
|
1051
1108
|
isDisabled={!canStepBack}
|
|
1052
|
-
onClick={() =>
|
|
1109
|
+
onClick={() => stepMonthFromArrow(-1)}
|
|
1053
1110
|
label={t('@astryx.calendar.previousMonth')}
|
|
1054
1111
|
icon={
|
|
1055
1112
|
<span {...stylex.props(styles.monthArrowIcon, rtlStyles.mirror)}>
|
|
@@ -1064,8 +1121,9 @@ export function TouchDateField({
|
|
|
1064
1121
|
styles.monthArrow,
|
|
1065
1122
|
!canStepForward && styles.monthArrowUnavailable,
|
|
1066
1123
|
]}
|
|
1124
|
+
ref={nextArrowRef}
|
|
1067
1125
|
isDisabled={!canStepForward}
|
|
1068
|
-
onClick={() =>
|
|
1126
|
+
onClick={() => stepMonthFromArrow(1)}
|
|
1069
1127
|
label={t('@astryx.calendar.nextMonth')}
|
|
1070
1128
|
icon={
|
|
1071
1129
|
<span {...stylex.props(styles.monthArrowIcon, rtlStyles.mirror)}>
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* and by Lab's DialogHeroHeader through the internal/dialog-context entry
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {use} from 'react';
|
|
14
|
+
import {createSharedContext} from '../utils/sharedContext';
|
|
14
15
|
|
|
15
16
|
export interface DialogContextValue {
|
|
16
17
|
/** Whether the dialog is rendered inline for docs/showcases. */
|
|
@@ -30,7 +31,11 @@ export interface DialogContextValue {
|
|
|
30
31
|
syncDefaultName?: () => void;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
export const DialogContext =
|
|
34
|
+
export const DialogContext = createSharedContext<DialogContextValue | null>(
|
|
35
|
+
'DialogContext',
|
|
36
|
+
1,
|
|
37
|
+
null,
|
|
38
|
+
);
|
|
34
39
|
DialogContext.displayName = 'DialogContext';
|
|
35
40
|
|
|
36
41
|
export function useDialogContext(): DialogContextValue | null {
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* items don't need to register themselves.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import {use} from 'react';
|
|
18
18
|
import {createLayerScopedContext} from '../Layer/layerScopedContext';
|
|
19
|
+
import {createSharedContext} from '../utils/sharedContext';
|
|
19
20
|
|
|
20
21
|
/** Menu size, derived from the trigger button size. */
|
|
21
22
|
export type DropdownMenuSize = 'sm' | 'md' | 'lg';
|
|
@@ -100,7 +101,11 @@ export interface DropdownMenuSurfaceValue {
|
|
|
100
101
|
* off the public menu context, and layer-scoped, so each flyout re-provides it.
|
|
101
102
|
*/
|
|
102
103
|
export const DropdownMenuSurfaceContext =
|
|
103
|
-
createLayerScopedContext<DropdownMenuSurfaceValue | null>(
|
|
104
|
+
createLayerScopedContext<DropdownMenuSurfaceValue | null>(
|
|
105
|
+
'DropdownMenuSurfaceContext',
|
|
106
|
+
1,
|
|
107
|
+
null,
|
|
108
|
+
);
|
|
104
109
|
DropdownMenuSurfaceContext.displayName = 'DropdownMenuSurfaceContext';
|
|
105
110
|
|
|
106
111
|
/**
|
|
@@ -115,7 +120,7 @@ DropdownMenuSurfaceContext.displayName = 'DropdownMenuSurfaceContext';
|
|
|
115
120
|
*/
|
|
116
121
|
export const DropdownMenuRootOpenContext = createLayerScopedContext<
|
|
117
122
|
boolean | null
|
|
118
|
-
>(null);
|
|
123
|
+
>('DropdownMenuRootOpenContext', 1, null);
|
|
119
124
|
DropdownMenuRootOpenContext.displayName = 'DropdownMenuRootOpenContext';
|
|
120
125
|
|
|
121
126
|
/**
|
|
@@ -128,7 +133,11 @@ export function useDropdownMenuRootOpen(): boolean {
|
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
export const DropdownMenuContext =
|
|
131
|
-
createLayerScopedContext<DropdownMenuContextValue | null>(
|
|
136
|
+
createLayerScopedContext<DropdownMenuContextValue | null>(
|
|
137
|
+
'DropdownMenuContext',
|
|
138
|
+
1,
|
|
139
|
+
null,
|
|
140
|
+
);
|
|
132
141
|
DropdownMenuContext.displayName = 'DropdownMenuContext';
|
|
133
142
|
|
|
134
143
|
/**
|
|
@@ -153,7 +162,11 @@ export interface DropdownMenuRadioGroupContextValue {
|
|
|
153
162
|
}
|
|
154
163
|
|
|
155
164
|
export const DropdownMenuRadioGroupContext =
|
|
156
|
-
|
|
165
|
+
createSharedContext<DropdownMenuRadioGroupContextValue | null>(
|
|
166
|
+
'DropdownMenuRadioGroupContext',
|
|
167
|
+
1,
|
|
168
|
+
null,
|
|
169
|
+
);
|
|
157
170
|
DropdownMenuRadioGroupContext.displayName = 'DropdownMenuRadioGroupContext';
|
|
158
171
|
|
|
159
172
|
/**
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
type ReactElement,
|
|
36
36
|
} from 'react';
|
|
37
37
|
import {useIsHydrating} from '../hooks/useIsHydrating';
|
|
38
|
+
import {createModuleLoader} from '../utils/moduleLoader';
|
|
38
39
|
import type {MenuBottomSheet as EagerMenuBottomSheet} from './MenuBottomSheet';
|
|
39
40
|
import type {MenuBottomSheetActionList as EagerMenuBottomSheetActionList} from './MenuBottomSheetActionList';
|
|
40
41
|
import type * as ActionListModule from './MenuBottomSheetActionList';
|
|
@@ -49,23 +50,10 @@ const LazyMenuBottomSheet = lazy(async () =>
|
|
|
49
50
|
// closed, so its first render is the first open. Once preloaded, it renders
|
|
50
51
|
// directly instead of through lazy(): a suspended render on open would hold
|
|
51
52
|
// the rows back (React delays revealing them for up to 300ms).
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
module => {
|
|
57
|
-
actionListModule = module;
|
|
58
|
-
return module;
|
|
59
|
-
},
|
|
60
|
-
(error: unknown) => {
|
|
61
|
-
// A failed load (a dropped connection) is not kept: the next caller
|
|
62
|
-
// asks the module loader again.
|
|
63
|
-
actionListLoad = null;
|
|
64
|
-
throw error;
|
|
65
|
-
},
|
|
66
|
-
);
|
|
67
|
-
return actionListLoad;
|
|
68
|
-
}
|
|
53
|
+
const actionList = createModuleLoader<typeof ActionListModule>(
|
|
54
|
+
async () => import('./MenuBottomSheetActionList'),
|
|
55
|
+
);
|
|
56
|
+
const loadActionList = actionList.load;
|
|
69
57
|
|
|
70
58
|
/** What a preload of the action list came to: loaded, or failed with the loader's error. */
|
|
71
59
|
export type ActionListPreload =
|
|
@@ -113,7 +101,7 @@ export function MenuBottomSheetActionList(
|
|
|
113
101
|
// Chosen once per mount, so a module that arrives later never swaps the
|
|
114
102
|
// rendered list (which would remount it and drop focus).
|
|
115
103
|
const [LoadedActionList] = useState(
|
|
116
|
-
() =>
|
|
104
|
+
() => actionList.loaded()?.MenuBottomSheetActionList ?? null,
|
|
117
105
|
);
|
|
118
106
|
if (useIsHydrating()) {
|
|
119
107
|
return null;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* wrap at either end.
|
|
17
17
|
*/
|
|
18
18
|
import type React from 'react';
|
|
19
|
-
import {getFocusableElements} from '../hooks/useFocusTrap';
|
|
19
|
+
import {collapseRadioGroups, getFocusableElements} from '../hooks/useFocusTrap';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The elements Tab reaches inside a header or footer region, in order. Hidden
|
|
@@ -57,53 +57,6 @@ function isInsideHiddenWrapper(
|
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
* Collapse each named radio group to the one Tab stop a browser gives it: the
|
|
62
|
-
* focused radio, else the checked one, else the first radio moving forward or
|
|
63
|
-
* the last moving backward. The stop takes the group's first position.
|
|
64
|
-
*/
|
|
65
|
-
function collapseRadioGroups(
|
|
66
|
-
elements: HTMLElement[],
|
|
67
|
-
active: Element | null,
|
|
68
|
-
isBackward: boolean,
|
|
69
|
-
): HTMLElement[] {
|
|
70
|
-
const groups = new Map<string, HTMLInputElement[]>();
|
|
71
|
-
const groupKey = (el: HTMLElement): string | null =>
|
|
72
|
-
el instanceof HTMLInputElement &&
|
|
73
|
-
el.getAttribute('type') === 'radio' &&
|
|
74
|
-
el.name !== ''
|
|
75
|
-
? `${el.form?.id ?? ''}\u0000${el.name}`
|
|
76
|
-
: null;
|
|
77
|
-
for (const el of elements) {
|
|
78
|
-
const key = groupKey(el);
|
|
79
|
-
if (key != null) {
|
|
80
|
-
const members = groups.get(key) ?? [];
|
|
81
|
-
members.push(el as HTMLInputElement);
|
|
82
|
-
groups.set(key, members);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
const placed = new Set<string>();
|
|
86
|
-
const result: HTMLElement[] = [];
|
|
87
|
-
for (const el of elements) {
|
|
88
|
-
const key = groupKey(el);
|
|
89
|
-
if (key == null) {
|
|
90
|
-
result.push(el);
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
if (placed.has(key)) {
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
placed.add(key);
|
|
97
|
-
const members = groups.get(key) ?? [];
|
|
98
|
-
const stop =
|
|
99
|
-
members.find(radio => radio === active) ??
|
|
100
|
-
members.find(radio => radio.checked) ??
|
|
101
|
-
(isBackward ? members[members.length - 1] : members[0]);
|
|
102
|
-
result.push(stop);
|
|
103
|
-
}
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
60
|
/**
|
|
108
61
|
* Move focus to a Tab stop in the dialog. Reports whether focus actually
|
|
109
62
|
* arrived, so a caller can fall back to the menu instead of stranding focus on
|
|
@@ -140,7 +93,6 @@ export function moveRegionsTab(
|
|
|
140
93
|
const cycle = collapseRadioGroups(
|
|
141
94
|
[...tabbablesIn(header), menu, ...tabbablesIn(footer)],
|
|
142
95
|
active,
|
|
143
|
-
event.shiftKey,
|
|
144
96
|
);
|
|
145
97
|
if (cycle.length === 1) {
|
|
146
98
|
// Nothing else to reach: focus stays in the menu. From a flyout that has
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - /packages/core/src/FormLayout/index.ts (exports if types change)
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {createLayerScopedContext
|
|
17
|
+
import {createLayerScopedContext} from '../Layer/layerScopedContext';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Direction of form field arrangement.
|
|
@@ -44,8 +44,8 @@ export type FormOptionality = 'optional' | 'required';
|
|
|
44
44
|
* for spatial arrangement, and `defaultOptionality` so a field can suppress the
|
|
45
45
|
* indicator that merely restates the form-wide default.
|
|
46
46
|
*/
|
|
47
|
-
export const FormLayoutContext =
|
|
47
|
+
export const FormLayoutContext = createLayerScopedContext<{
|
|
48
48
|
direction: FormLayoutDirection;
|
|
49
49
|
defaultOptionality?: FormOptionality;
|
|
50
|
-
}>({direction: 'vertical'});
|
|
50
|
+
}>('FormLayoutContext', 1, {direction: 'vertical'});
|
|
51
51
|
FormLayoutContext.displayName = 'FormLayoutContext';
|
package/src/Heading/Heading.tsx
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* - /packages/cli/assets/templates/blocks/components/Text/ (showcase blocks)
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import {useRef, type ReactNode} from 'react';
|
|
23
23
|
import * as stylex from '@stylexjs/stylex';
|
|
24
24
|
import type {
|
|
25
25
|
TextColor,
|
|
@@ -45,6 +45,11 @@ import {
|
|
|
45
45
|
truncationTooltipStyles,
|
|
46
46
|
} from '../Text/text.stylex';
|
|
47
47
|
import {useTruncation} from '../Text/useTruncation';
|
|
48
|
+
import {
|
|
49
|
+
TruncationTooltip,
|
|
50
|
+
useTruncationTooltipInterest,
|
|
51
|
+
} from '../Text/TruncationTooltip';
|
|
52
|
+
import {composeEventHandlers} from '../utils/composeEventHandlers';
|
|
48
53
|
import {resolveStyleColor} from '../Text/Text';
|
|
49
54
|
import type {LayerPlacement} from '../Layer';
|
|
50
55
|
import {mergeProps} from '../utils/mergeProps';
|
|
@@ -53,10 +58,6 @@ import type {BaseProps} from '../BaseProps';
|
|
|
53
58
|
import {themeProps} from '../utils/themeProps';
|
|
54
59
|
import type {HeadingTypeMap} from './index';
|
|
55
60
|
|
|
56
|
-
const LazyXDSTooltip = lazy(async () =>
|
|
57
|
-
import('../Tooltip/Tooltip').then(mod => ({default: mod.Tooltip})),
|
|
58
|
-
);
|
|
59
|
-
|
|
60
61
|
/**
|
|
61
62
|
* Heading level (1-6). Determines both visual styling and semantic HTML element.
|
|
62
63
|
*/
|
|
@@ -267,6 +268,8 @@ export function Heading({
|
|
|
267
268
|
typeof hasTruncateTooltip === 'string' ? hasTruncateTooltip : 'above';
|
|
268
269
|
const tooltipEnabled =
|
|
269
270
|
maxLines > 0 && hasTruncateTooltip !== false && truncation.isTruncated;
|
|
271
|
+
// The tooltip mounts on the first hover, tap or focus, not with the text.
|
|
272
|
+
const tooltipInterest = useTruncationTooltipInterest(tooltipEnabled);
|
|
270
273
|
|
|
271
274
|
// Ref for the heading element (used as tooltip anchor)
|
|
272
275
|
const headingRef = useRef<HTMLHeadingElement>(null);
|
|
@@ -318,21 +321,34 @@ export function Heading({
|
|
|
318
321
|
{...style, ...inlineStyle},
|
|
319
322
|
)}
|
|
320
323
|
{...ariaProps}
|
|
321
|
-
{...props}
|
|
324
|
+
{...props}
|
|
325
|
+
onPointerEnter={composeEventHandlers(
|
|
326
|
+
tooltipInterest.onPointerEnter,
|
|
327
|
+
props.onPointerEnter,
|
|
328
|
+
)}
|
|
329
|
+
onPointerLeave={composeEventHandlers(
|
|
330
|
+
tooltipInterest.onPointerLeave,
|
|
331
|
+
props.onPointerLeave,
|
|
332
|
+
)}
|
|
333
|
+
onPointerDown={composeEventHandlers(
|
|
334
|
+
tooltipInterest.onPointerDown,
|
|
335
|
+
props.onPointerDown,
|
|
336
|
+
)}
|
|
337
|
+
onFocus={composeEventHandlers(tooltipInterest.onFocus, props.onFocus)}
|
|
338
|
+
onBlur={composeEventHandlers(tooltipInterest.onBlur, props.onBlur)}>
|
|
322
339
|
{children}
|
|
323
340
|
</Component>
|
|
324
|
-
{tooltipEnabled && (
|
|
325
|
-
<
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
content
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
</Suspense>
|
|
341
|
+
{tooltipEnabled && tooltipInterest.isWanted && (
|
|
342
|
+
<TruncationTooltip
|
|
343
|
+
anchorRef={headingRef}
|
|
344
|
+
content={
|
|
345
|
+
<span {...stylex.props(truncationTooltipStyles.content)}>
|
|
346
|
+
{truncation.fullText}
|
|
347
|
+
</span>
|
|
348
|
+
}
|
|
349
|
+
placement={tooltipPlacement}
|
|
350
|
+
interest={tooltipInterest}
|
|
351
|
+
/>
|
|
336
352
|
)}
|
|
337
353
|
</>
|
|
338
354
|
);
|
|
@@ -144,7 +144,7 @@ export const docs = {
|
|
|
144
144
|
name: 'isOpen',
|
|
145
145
|
type: 'boolean',
|
|
146
146
|
description:
|
|
147
|
-
'Controlled open state. true holds the card open. false holds it closed against hover
|
|
147
|
+
'Controlled open state. true holds the card open. false holds it closed against hover and focus. A controlled card answers Escape by calling onOpenChange(false) without closing; it closes when you set isOpen to false, and focus inside the card then returns to the trigger.',
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
name: 'xstyle',
|
|
@@ -349,7 +349,7 @@ export const docsZh = {
|
|
|
349
349
|
name: 'isOpen',
|
|
350
350
|
type: 'boolean',
|
|
351
351
|
description:
|
|
352
|
-
'受控的打开状态。true 保持卡片打开。false
|
|
352
|
+
'受控的打开状态。true 保持卡片打开。false 使悬停和焦点都无法打开卡片。受控卡片响应 Escape 时调用 onOpenChange(false) 而不关闭;将 isOpen 设为 false 时关闭,此时卡片内的焦点返回触发元素。',
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
name: 'xstyle',
|
|
@@ -496,7 +496,7 @@ export const docsDense = {
|
|
|
496
496
|
'Dashed underline on a text trigger. auto = text children (strings/numbers, holes ignored); no effect on element triggers.',
|
|
497
497
|
isDefaultOpen: 'Show hover card on mount. Still dismissible.',
|
|
498
498
|
isOpen:
|
|
499
|
-
'Controlled open state. true holds open; false holds closed against hover
|
|
499
|
+
'Controlled open state. true holds open; false holds closed against hover and focus. Escape calls onOpenChange(false) without closing; setting false returns focus inside the card to the trigger.',
|
|
500
500
|
xstyle: 'StyleX styles for the card surface (hover-card target).',
|
|
501
501
|
className: 'Class added to the card surface.',
|
|
502
502
|
style: 'Inline styles for the card surface.',
|
|
@@ -215,8 +215,7 @@ export interface HoverCardProps extends Pick<
|
|
|
215
215
|
/**
|
|
216
216
|
* Controlled open state. When provided, overrides the hover trigger:
|
|
217
217
|
* - `true`: force-show the hover card (hover/focus hide is suppressed)
|
|
218
|
-
* - `false`: hide the hover card and keep hover from opening it
|
|
219
|
-
* the trigger still opens it
|
|
218
|
+
* - `false`: hide the hover card and keep hover and focus from opening it
|
|
220
219
|
* - `undefined`: uncontrolled — hover/focus triggers manage visibility
|
|
221
220
|
*
|
|
222
221
|
* A controlled hover card still takes Escape when it is the top-most layer,
|
|
@@ -138,8 +138,7 @@ export interface HoverCardOptions {
|
|
|
138
138
|
/**
|
|
139
139
|
* Controlled open state. When provided, overrides the hover trigger:
|
|
140
140
|
* - `true`: force-show the hover card (hover/focus hide is suppressed)
|
|
141
|
-
* - `false`: hide the hover card and keep hover from opening it
|
|
142
|
-
* the trigger still opens it
|
|
141
|
+
* - `false`: hide the hover card and keep hover and focus from opening it
|
|
143
142
|
* - `undefined`: uncontrolled — hover/focus triggers manage visibility
|
|
144
143
|
*
|
|
145
144
|
* A controlled hover card still takes Escape when it is the top-most layer,
|
|
@@ -433,6 +432,10 @@ export function useHoverCard(options: HoverCardOptions = {}): HoverCardReturn {
|
|
|
433
432
|
isEscapeDismissingRef.current = false;
|
|
434
433
|
return;
|
|
435
434
|
}
|
|
435
|
+
// The caller owns a controlled `false`, so no focus opens the card.
|
|
436
|
+
if (isOpen === false) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
436
439
|
clearTimeouts();
|
|
437
440
|
showLayer();
|
|
438
441
|
},
|
|
@@ -440,6 +443,7 @@ export function useHoverCard(options: HoverCardOptions = {}): HoverCardReturn {
|
|
|
440
443
|
focusGate,
|
|
441
444
|
focusTrigger,
|
|
442
445
|
isEnabled,
|
|
446
|
+
isOpen,
|
|
443
447
|
isTouchInteraction,
|
|
444
448
|
clearTimeouts,
|
|
445
449
|
showLayer,
|