@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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file TruncationTooltip.tsx
|
|
7
|
+
* @input A truncated element's ref, its full text and the tooltip placement
|
|
8
|
+
* @output Exports `useTruncationTooltipInterest`, which loads the Tooltip
|
|
9
|
+
* module once text is truncated and tracks the first hover, tap or focus on
|
|
10
|
+
* it, and `TruncationTooltip`, the Tooltip that mounts on that interaction
|
|
11
|
+
* @position Shared by Text and Heading. Until the first interaction a page of
|
|
12
|
+
* truncated text mounts no tooltip layers, and the tooltip that then mounts
|
|
13
|
+
* answers that interaction as it would once mounted.
|
|
14
|
+
*/
|
|
15
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
16
|
+
import { createModuleLoader } from "../utils/moduleLoader.js";
|
|
17
|
+
import { useTapRecognizer } from "../Layer/useTouchTrigger.js";
|
|
18
|
+
import { TooltipPresentInterestContext } from "../Tooltip/tooltipPresentInterest.js";
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
// The Tooltip module. Once loaded, a tooltip renders from it at once: no
|
|
21
|
+
// boundary suspends, so the first hover's delay starts on the hover.
|
|
22
|
+
const tooltipModule = createModuleLoader(async () => import("../Tooltip/Tooltip.js"));
|
|
23
|
+
/**
|
|
24
|
+
* Tracks the interaction that mounts a truncated element's tooltip, while
|
|
25
|
+
* `isEnabled`, until the mounted tooltip reads it. A finger's arrival does not
|
|
26
|
+
* count: only a press that the touch trigger's recognizer takes for a tap
|
|
27
|
+
* does. Once the tooltip has read the interaction, its own listeners take
|
|
28
|
+
* over.
|
|
29
|
+
*/
|
|
30
|
+
export function useTruncationTooltipInterest(isEnabled) {
|
|
31
|
+
const [isWanted, setIsWanted] = useState(false);
|
|
32
|
+
const [tooltip, setTooltip] = useState(() => tooltipModule.loaded()?.Tooltip ?? null);
|
|
33
|
+
// Syncs with the module loader: truncated text loads the Tooltip module, so
|
|
34
|
+
// the first interaction mounts the tooltip at once.
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!isEnabled || tooltip != null) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
let isCurrent = true;
|
|
40
|
+
tooltipModule.load().then(loaded => {
|
|
41
|
+
if (isCurrent) {
|
|
42
|
+
setTooltip(() => loaded.Tooltip);
|
|
43
|
+
}
|
|
44
|
+
}, () => {});
|
|
45
|
+
return () => {
|
|
46
|
+
isCurrent = false;
|
|
47
|
+
};
|
|
48
|
+
}, [isEnabled, tooltip]);
|
|
49
|
+
const interestRef = useRef({
|
|
50
|
+
interest: null,
|
|
51
|
+
tapEvent: null,
|
|
52
|
+
isRead: false
|
|
53
|
+
});
|
|
54
|
+
const tapRecognizer = useTapRecognizer();
|
|
55
|
+
const want = useCallback((interest, tapEvent = null) => {
|
|
56
|
+
const state = interestRef.current;
|
|
57
|
+
if (!isEnabled || state.isRead) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
state.interest = interest;
|
|
61
|
+
state.tapEvent = tapEvent;
|
|
62
|
+
setIsWanted(true);
|
|
63
|
+
}, [isEnabled]);
|
|
64
|
+
const forget = useCallback(interest => {
|
|
65
|
+
const state = interestRef.current;
|
|
66
|
+
if (!state.isRead && state.interest === interest) {
|
|
67
|
+
state.interest = null;
|
|
68
|
+
}
|
|
69
|
+
}, []);
|
|
70
|
+
const onPointerEnter = useCallback(event => {
|
|
71
|
+
if (event.pointerType !== 'touch') {
|
|
72
|
+
want('hover');
|
|
73
|
+
}
|
|
74
|
+
}, [want]);
|
|
75
|
+
const onPointerLeave = useCallback(() => forget('hover'), [forget]);
|
|
76
|
+
const onPointerDown = useCallback(event => {
|
|
77
|
+
if (!isEnabled || interestRef.current.isRead) {
|
|
78
|
+
tapRecognizer.forget();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const isTouch = tapRecognizer.press(event.nativeEvent, event.currentTarget, tapEvent => want('tap', tapEvent));
|
|
82
|
+
// A mouse press cancels a hover show, as a mounted tooltip does. A pen
|
|
83
|
+
// press waits for its tap.
|
|
84
|
+
if (!isTouch) {
|
|
85
|
+
forget('hover');
|
|
86
|
+
}
|
|
87
|
+
}, [isEnabled, tapRecognizer, want, forget]);
|
|
88
|
+
const onFocus = useCallback(() => want('focus'), [want]);
|
|
89
|
+
const onBlur = useCallback(() => forget('focus'), [forget]);
|
|
90
|
+
return {
|
|
91
|
+
isWanted,
|
|
92
|
+
tooltip,
|
|
93
|
+
interestRef,
|
|
94
|
+
onPointerEnter,
|
|
95
|
+
onPointerLeave,
|
|
96
|
+
onPointerDown,
|
|
97
|
+
onFocus,
|
|
98
|
+
onBlur
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** The truncated element's Tooltip, given the interaction that mounted it. */
|
|
103
|
+
export function TruncationTooltip({
|
|
104
|
+
anchorRef,
|
|
105
|
+
content,
|
|
106
|
+
placement,
|
|
107
|
+
interest
|
|
108
|
+
}) {
|
|
109
|
+
// A first interaction before the module loads mounts the tooltip once it
|
|
110
|
+
// has: the interaction is held until the tooltip reads it.
|
|
111
|
+
const Tooltip = interest.tooltip;
|
|
112
|
+
if (Tooltip == null) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return /*#__PURE__*/_jsx(TooltipPresentInterestContext, {
|
|
116
|
+
value: interest.interestRef,
|
|
117
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
118
|
+
anchorRef: anchorRef,
|
|
119
|
+
content: content,
|
|
120
|
+
placement: placement
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textClampContext.d.ts","sourceRoot":"","sources":["../../src/Text/textClampContext.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"textClampContext.d.ts","sourceRoot":"","sources":["../../src/Text/textClampContext.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gBAAgB,kCAI5B,CAAC"}
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* inside the clamped text box.
|
|
13
13
|
*/
|
|
14
14
|
import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
|
|
15
|
-
export const TextClampContext = createLayerScopedContext(false);
|
|
15
|
+
export const TextClampContext = createLayerScopedContext('TextClampContext', 1, false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../src/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAQ3C,OAAO,EAGL,KAAK,WAAW,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IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA0iBD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAqD9C;yBArDe,SAAS"}
|
|
@@ -362,6 +362,10 @@ function TimeField({
|
|
|
362
362
|
|
|
363
363
|
// Check if within range
|
|
364
364
|
if (isTimeInRange(newTime, min, max)) {
|
|
365
|
+
// The step is the committed value now: drop any typed draft so the
|
|
366
|
+
// box shows the stepped time and blur cannot re-commit stale text
|
|
367
|
+
// over it.
|
|
368
|
+
setPendingInput(null);
|
|
365
369
|
fireChange(newTime);
|
|
366
370
|
// Stepping programmatically rewrites a plain textbox's value, and
|
|
367
371
|
// screen readers do not announce programmatic textbox changes — the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/ToggleButtonGroup.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA4B,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAIhE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAOnD,UAAU,6BAA6B;IACrC,mCAAmC;IACnC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,6BAA6B;IAC7B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"ToggleButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/ToggleButtonGroup.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;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AC;IAErB,qCAAqC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA+B,SAAQ,0BAA0B;IAChF,+BAA+B;IAC/B,IAAI,EAAE,UAAU,CAAC;IAEjB,iCAAiC;IACjC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB,qCAAqC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,8DAA8D;AAC9D,MAAM,MAAM,sBAAsB,GAChC,4BAA4B,GAAG,8BAA8B,CAAC;AAMhE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,CA0E1E;yBA1Ee,iBAAiB"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - /packages/cli/assets/templates/blocks/components/ToggleButton/ (showcase blocks)
|
|
19
19
|
*/
|
|
20
20
|
import { useCallback, use, useMemo } from 'react';
|
|
21
|
-
import { createLayerScopedContext
|
|
21
|
+
import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
|
|
22
22
|
import * as stylex from '@stylexjs/stylex';
|
|
23
23
|
import "../theme/tokens.stylex.js";
|
|
24
24
|
import { spacingVars } from "../theme/tokens.stylex.js";
|
|
@@ -29,7 +29,7 @@ import { themeProps } from "../utils/themeProps.js";
|
|
|
29
29
|
// Context
|
|
30
30
|
// =============================================================================
|
|
31
31
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
const ToggleButtonGroupContext =
|
|
32
|
+
const ToggleButtonGroupContext = createLayerScopedContext('ToggleButtonGroupContext', 1, null);
|
|
33
33
|
ToggleButtonGroupContext.displayName = 'ToggleButtonGroupContext';
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenNamingContext.d.ts","sourceRoot":"","sources":["../../src/Token/TokenNamingContext.ts"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"TokenNamingContext.d.ts","sourceRoot":"","sources":["../../src/Token/TokenNamingContext.ts"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,6CAI9B,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @output Internal context: the names of a token's action and remove button
|
|
9
9
|
* @position Internal to Core; not exported from the Token entry point
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Names for a Token whose visible text runs past its label. PowerSearch
|
|
@@ -19,5 +19,5 @@ import { createContext } from 'react';
|
|
|
19
19
|
* still comes from the catalog, so each locale keeps its word order.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
export const TokenNamingContext =
|
|
22
|
+
export const TokenNamingContext = createSharedContext('TokenNamingContext', 1, null);
|
|
23
23
|
TokenNamingContext.displayName = 'TokenNamingContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenizerClearAllMessageContext.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/TokenizerClearAllMessageContext.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"TokenizerClearAllMessageContext.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/TokenizerClearAllMessageContext.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,+BAA+B,wCAEC,CAAC"}
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
* "All filters removed") provides it; Tokenizer otherwise announces its own
|
|
13
13
|
* words (component:Tokenizer AR7).
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
16
|
-
export const TokenizerClearAllMessageContext =
|
|
15
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
16
|
+
export const TokenizerClearAllMessageContext = createSharedContext('TokenizerClearAllMessageContext', 1, null);
|
|
17
17
|
TokenizerClearAllMessageContext.displayName = 'TokenizerClearAllMessageContext';
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file TokenizerItemRemovableContext.ts
|
|
3
|
+
* @input None
|
|
4
|
+
* @output A context carrying a predicate that tells which tokens the user can
|
|
5
|
+
* remove
|
|
6
|
+
* @position Internal to Core: not exported from the Tokenizer barrel. A
|
|
7
|
+
* component that composes Tokenizer and locks some tokens (PowerSearch: its
|
|
8
|
+
* read-only filters, and every filter of a read-only field) provides it. In
|
|
9
|
+
* the popover presentation, Clear all then keeps a locked token, Backspace
|
|
10
|
+
* removes nothing while the last token is locked, and Clear all shows only
|
|
11
|
+
* while a removable token remains. Without it, every token is removable.
|
|
12
|
+
*/
|
|
1
13
|
import type { SearchableItem } from '../Typeahead/types.js';
|
|
2
14
|
export declare const TokenizerItemRemovableContext: import("react").Context<((item: SearchableItem) => boolean) | null>;
|
|
3
15
|
//# sourceMappingURL=TokenizerItemRemovableContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenizerItemRemovableContext.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/TokenizerItemRemovableContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TokenizerItemRemovableContext.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/TokenizerItemRemovableContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAGvD,eAAO,MAAM,6BAA6B,kCAChC,cAAc,KAAK,OAAO,SACO,CAAC"}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* removes nothing while the last token is locked, and Clear all shows only
|
|
15
15
|
* while a removable token remains. Without it, every token is removable.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
export const TokenizerItemRemovableContext =
|
|
17
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
18
|
+
export const TokenizerItemRemovableContext = createSharedContext('TokenizerItemRemovableContext', 1, null);
|
|
19
19
|
TokenizerItemRemovableContext.displayName = 'TokenizerItemRemovableContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAc,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAwH5D,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC;AAEtC,MAAM,WAAW,YAAa,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC7D,gDAAgD;IAChD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,W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;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC,EAAE,CAAC;CACnD;AAOD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,EACtB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,KAAK,EACL,IAAW,EACX,GAAO,EACP,WAA0B,EAC1B,OAAuB,EACvB,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,KAAK,EACX,YAAY,EAAE,UAAU,EACxB,kBAAkB,EAAE,gBAAgB,EACpC,GAAG,KAAK,EACT,EAAE,YAAY,+BA0Jd;yBA/Ke,OAAO"}
|
package/dist/Toolbar/Toolbar.js
CHANGED
|
@@ -22,7 +22,7 @@ import "../theme/tokens.stylex.js";
|
|
|
22
22
|
import { spacingVars, sizeVars } from "../theme/tokens.stylex.js";
|
|
23
23
|
import { mergeProps } from "../utils/index.js";
|
|
24
24
|
import { Section } from "../Section/Section.js";
|
|
25
|
-
import {
|
|
25
|
+
import { oneTabStopAmong, useInternalListFocus } from "../hooks/useListFocus.js";
|
|
26
26
|
import { useKeyboardHint } from "../hooks/useKeyboardHint.js";
|
|
27
27
|
import { SizeProvider } from "../SizeContext/SizeContext.js";
|
|
28
28
|
import { edgeCompSlot } from "../Layout/edgeCompensation.stylex.js";
|
|
@@ -139,6 +139,11 @@ const edgeCompInsetForSize = {
|
|
|
139
139
|
md: `calc(var(--container-padding-inline-start, ${spacingVars['--spacing-4']}) - ${spacingVars['--spacing-2']})`,
|
|
140
140
|
lg: `calc(var(--container-padding-inline-start, ${spacingVars['--spacing-4']}) - ${spacingVars['--spacing-2']})`
|
|
141
141
|
};
|
|
142
|
+
// `a[href]` catches a Button rendered with `href`.
|
|
143
|
+
const TOOLBAR_ITEMS = 'button, input, a[href], [tabindex]';
|
|
144
|
+
const TOOLBAR_BOUNDARY = '[role="toolbar"], [popover]';
|
|
145
|
+
const toolbarTabStop = oneTabStopAmong(TOOLBAR_ITEMS, TOOLBAR_BOUNDARY);
|
|
146
|
+
|
|
142
147
|
/**
|
|
143
148
|
* General-purpose toolbar with start, center, and end content slots.
|
|
144
149
|
*
|
|
@@ -186,13 +191,14 @@ export function Toolbar({
|
|
|
186
191
|
listRef,
|
|
187
192
|
handleKeyDown,
|
|
188
193
|
handleFocus
|
|
189
|
-
} =
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
boundarySelector: '[role="toolbar"], [popover]',
|
|
194
|
+
} = useInternalListFocus({
|
|
195
|
+
itemSelector: TOOLBAR_ITEMS,
|
|
196
|
+
boundarySelector: TOOLBAR_BOUNDARY,
|
|
193
197
|
orientation,
|
|
194
198
|
hasRovingTabIndex: true,
|
|
195
|
-
hasCaretGuard: true
|
|
199
|
+
hasCaretGuard: true,
|
|
200
|
+
// A read-only toolbar of disabled controls stays one Tab stop.
|
|
201
|
+
tabStopOrder: toolbarTabStop
|
|
196
202
|
});
|
|
197
203
|
const {
|
|
198
204
|
hintElement,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file tooltipPresentInterest.ts
|
|
3
|
+
* @input createSharedContext
|
|
4
|
+
* @output Exports `TooltipPresentInterestContext` and its value types: the
|
|
5
|
+
* interaction on a tooltip's anchor that mounted the tooltip
|
|
6
|
+
* @position Internal to Core, not exported from the Tooltip entry. A
|
|
7
|
+
* truncated Text or Heading mounts its tooltip on the first hover, tap or
|
|
8
|
+
* focus, and provides that interaction here, so the tooltip answers it when
|
|
9
|
+
* its trigger attaches, as its own listeners would have.
|
|
10
|
+
*/
|
|
11
|
+
import type { RefObject } from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The interaction on the anchor that mounted the tooltip: a hover from a
|
|
14
|
+
* mouse or pen still over it, a completed tap, or focus inside it. `null`
|
|
15
|
+
* when there is none.
|
|
16
|
+
*/
|
|
17
|
+
export type TooltipPresentInterest = 'hover' | 'tap' | 'focus' | null;
|
|
18
|
+
/**
|
|
19
|
+
* Holds the interaction until the tooltip's trigger attaches. The tooltip
|
|
20
|
+
* reads it once and marks it read, so a later remount opens nothing by itself.
|
|
21
|
+
*/
|
|
22
|
+
export interface TooltipPresentInterestState {
|
|
23
|
+
interest: TooltipPresentInterest;
|
|
24
|
+
/** The `click` that completed the tap, for the touch trigger's rules. */
|
|
25
|
+
tapEvent: Event | null;
|
|
26
|
+
isRead: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const TooltipPresentInterestContext: import("react").Context<RefObject<TooltipPresentInterestState> | null>;
|
|
29
|
+
//# sourceMappingURL=tooltipPresentInterest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltipPresentInterest.d.ts","sourceRoot":"","sources":["../../src/Tooltip/tooltipPresentInterest.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,yEAAyE;IACzE,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,6BAA6B,wEAKvC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file tooltipPresentInterest.ts
|
|
7
|
+
* @input createSharedContext
|
|
8
|
+
* @output Exports `TooltipPresentInterestContext` and its value types: the
|
|
9
|
+
* interaction on a tooltip's anchor that mounted the tooltip
|
|
10
|
+
* @position Internal to Core, not exported from the Tooltip entry. A
|
|
11
|
+
* truncated Text or Heading mounts its tooltip on the first hover, tap or
|
|
12
|
+
* focus, and provides that interaction here, so the tooltip answers it when
|
|
13
|
+
* its trigger attaches, as its own listeners would have.
|
|
14
|
+
*/
|
|
15
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The interaction on the anchor that mounted the tooltip: a hover from a
|
|
19
|
+
* mouse or pen still over it, a completed tap, or focus inside it. `null`
|
|
20
|
+
* when there is none.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Holds the interaction until the tooltip's trigger attaches. The tooltip
|
|
25
|
+
* reads it once and marks it read, so a later remount opens nothing by itself.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export const TooltipPresentInterestContext = createSharedContext('TooltipPresentInterestContext', 1, null);
|
|
29
|
+
TooltipPresentInterestContext.displayName = 'TooltipPresentInterestContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/useTooltip.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/useTooltip.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AA+ClC;;GAEG;AACH,MAAM,MAAM,mBAAmB,G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C;IAEjB;;;OAGG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAgB,UAAU,CAAC,OAAO,GAAE,cAAmB,GAAG,aAAa,CAouBtE"}
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* SYNC: When modified, update:
|
|
13
13
|
* - /packages/core/src/Tooltip/index.ts
|
|
14
14
|
*/
|
|
15
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { use, useCallback, useEffect, useRef, useState } from 'react';
|
|
16
|
+
import { TooltipPresentInterestContext } from "./tooltipPresentInterest.js";
|
|
16
17
|
import { createTriggerFocusGate, isFocusOnTrigger } from "../utils/triggerFocus.js";
|
|
17
18
|
import * as stylex from '@stylexjs/stylex';
|
|
18
19
|
import { useLayerInternal } from "../Layer/useLayer.js";
|
|
@@ -117,6 +118,8 @@ export function useTooltip(options = {}) {
|
|
|
117
118
|
const showTimeoutRef = useRef(null);
|
|
118
119
|
const hideTimeoutRef = useRef(null);
|
|
119
120
|
const triggerRef = useRef(null);
|
|
121
|
+
// Set only by a Core component that mounts the tooltip on interaction.
|
|
122
|
+
const presentInterest = use(TooltipPresentInterestContext);
|
|
120
123
|
// Whether the tooltip is enabled now, for a show that runs after a render
|
|
121
124
|
// (a pending hover show) and for the trigger ref callback.
|
|
122
125
|
const isEnabledRef = useRef(isEnabled);
|
|
@@ -207,7 +210,8 @@ export function useTooltip(options = {}) {
|
|
|
207
210
|
handlePointerEnter,
|
|
208
211
|
handlePointerDown: handleTouchPointerDown,
|
|
209
212
|
clearTapOpen,
|
|
210
|
-
armOutsideDismiss
|
|
213
|
+
armOutsideDismiss,
|
|
214
|
+
answerTap
|
|
211
215
|
} = useTouchTriggerInternal({
|
|
212
216
|
touchTrigger,
|
|
213
217
|
isEnabled,
|
|
@@ -444,7 +448,9 @@ export function useTooltip(options = {}) {
|
|
|
444
448
|
dropHold,
|
|
445
449
|
hideNow,
|
|
446
450
|
showNow,
|
|
447
|
-
opensOnFocus
|
|
451
|
+
opensOnFocus,
|
|
452
|
+
presentInterest,
|
|
453
|
+
answerTap
|
|
448
454
|
});
|
|
449
455
|
handlersRef.current = {
|
|
450
456
|
handleMouseEnter,
|
|
@@ -459,7 +465,9 @@ export function useTooltip(options = {}) {
|
|
|
459
465
|
dropHold,
|
|
460
466
|
hideNow,
|
|
461
467
|
showNow,
|
|
462
|
-
opensOnFocus
|
|
468
|
+
opensOnFocus,
|
|
469
|
+
presentInterest,
|
|
470
|
+
answerTap
|
|
463
471
|
};
|
|
464
472
|
|
|
465
473
|
// Removes the attached trigger's listeners (the trigger ref callback's
|
|
@@ -528,6 +536,24 @@ export function useTooltip(options = {}) {
|
|
|
528
536
|
if (wasSuppressed && isEnabledRef.current && latest().isOpen === undefined && latest().focusTrigger !== 'never' && focused instanceof HTMLElement && el.contains(focused) && latest().opensOnFocus(focused, el)) {
|
|
529
537
|
latest().showNow();
|
|
530
538
|
}
|
|
539
|
+
|
|
540
|
+
// This tooltip mounted after the interaction that wants it. It answers
|
|
541
|
+
// that interaction once, by the same rules as its listeners.
|
|
542
|
+
const state = latest().presentInterest?.current;
|
|
543
|
+
const interest = state == null || state.isRead ? null : state.interest;
|
|
544
|
+
const tapEvent = state?.tapEvent ?? null;
|
|
545
|
+
if (state != null) {
|
|
546
|
+
state.isRead = true;
|
|
547
|
+
}
|
|
548
|
+
if (isEnabledRef.current && latest().isOpen === undefined) {
|
|
549
|
+
if (interest === 'hover') {
|
|
550
|
+
latest().handleMouseEnter();
|
|
551
|
+
} else if (interest === 'tap') {
|
|
552
|
+
latest().answerTap(tapEvent);
|
|
553
|
+
} else if (interest === 'focus' && latest().focusTrigger !== 'never' && focused instanceof HTMLElement && el.contains(focused) && latest().opensOnFocus(focused, el)) {
|
|
554
|
+
latest().showNow();
|
|
555
|
+
}
|
|
556
|
+
}
|
|
531
557
|
const detach = () => {
|
|
532
558
|
if (detachTriggerRef.current === detach) {
|
|
533
559
|
detachTriggerRef.current = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavContext.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEpD,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TopNavContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavContext.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEpD,eAAO,MAAM,iBAAiB,qCAI7B,CAAC;AAGF,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @position Navigation slot presentation defaults
|
|
10
10
|
*/
|
|
11
11
|
import { use } from 'react';
|
|
12
|
-
import { createLayerScopedContext
|
|
13
|
-
export const TopNavSlotContext =
|
|
12
|
+
import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
|
|
13
|
+
export const TopNavSlotContext = createLayerScopedContext('TopNavSlotContext', 1, 'start');
|
|
14
14
|
TopNavSlotContext.displayName = 'TopNavSlotContext';
|
|
15
15
|
export function useTopNavSlot() {
|
|
16
16
|
return use(TopNavSlotContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file TopNavMobileContentContext.ts
|
|
3
|
-
* @input
|
|
3
|
+
* @input createSharedContext, use
|
|
4
4
|
* @output Exports TopNavMobileContentContext and useTopNavMobileContent
|
|
5
5
|
* @position Internal context for passing additional drawer content to TopNav
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavMobileContentContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavMobileContentContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"TopNavMobileContentContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavMobileContentContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAAM,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG1C,eAAO,MAAM,0BAA0B,oCAItC,CAAC;AAGF;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,CAElD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file TopNavMobileContentContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input createSharedContext, use
|
|
8
8
|
* @output Exports TopNavMobileContentContext and useTopNavMobileContent
|
|
9
9
|
* @position Internal context for passing additional drawer content to TopNav
|
|
10
10
|
*
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
* to TopNav via this context. TopNav renders it below its own items in the
|
|
13
13
|
* mobile drawer, producing a single combined drawer.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
16
|
-
|
|
15
|
+
import { use } from 'react';
|
|
16
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
17
|
+
export const TopNavMobileContentContext = createSharedContext('TopNavMobileContentContext', 1, null);
|
|
17
18
|
TopNavMobileContentContext.displayName = 'TopNavMobileContentContext';
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavRenderContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavRenderContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavRenderContext.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavRenderContext.ts"],"names":[],"mappings":"AAoBA,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEnE,eAAO,MAAM,mBAAmB,2CAI/B,CAAC;AAGF;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file TopNavRenderContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input createSharedContext, use
|
|
8
8
|
* @output Exports TopNavRenderContext and useTopNavRenderMode hook
|
|
9
9
|
* @position Internal context for controlling TopNav rendering mode
|
|
10
10
|
*
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* - 'mobile-bar': heading + endContent + toggle, hide nav items (mobile top bar)
|
|
15
15
|
* - 'drawer': nav items as vertical list elements (mobile drawer)
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
|
|
17
|
+
import { use } from 'react';
|
|
18
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
19
|
+
export const TopNavRenderContext = createSharedContext('TopNavRenderContext', 1, 'default');
|
|
19
20
|
TopNavRenderContext.displayName = 'TopNavRenderContext';
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"busyIndicatorLane.d.ts","sourceRoot":"","sources":["../../src/Typeahead/busyIndicatorLane.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"busyIndicatorLane.d.ts","sourceRoot":"","sources":["../../src/Typeahead/busyIndicatorLane.tsx"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,iBAAiB;IAChC,0DAA0D;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,wDAAwD;IACxD,SAAS,EAAE,CAAC,aAAa,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IACrD,8BAA8B;IAC9B,SAAS,EAAE,MAAM,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAwB3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAE1D;AASD,eAAO,MAAM,yBAAyB,oDAAoC,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D"}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* @output Context the base uses to hand its busy state to that wrapper
|
|
9
9
|
* @position Package-internal; not exported from the package entry point
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import { use, useSyncExternalStore } from 'react';
|
|
12
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* How the base hands its busy state to a wrapper that owns the inline-end lane.
|
|
@@ -82,7 +83,7 @@ export function createBusyIndicatorLane() {
|
|
|
82
83
|
export function useIsBusy(lane) {
|
|
83
84
|
return useSyncExternalStore(lane.subscribe, lane.getIsBusy, lane.getIsBusy);
|
|
84
85
|
}
|
|
85
|
-
const BusyIndicatorLaneContext =
|
|
86
|
+
const BusyIndicatorLaneContext = createSharedContext('BusyIndicatorLaneContext', 1, null);
|
|
86
87
|
BusyIndicatorLaneContext.displayName = 'BusyIndicatorLaneContext';
|
|
87
88
|
export const BusyIndicatorLaneProvider = BusyIndicatorLaneContext.Provider;
|
|
88
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"committedChoicesKey.d.ts","sourceRoot":"","sources":["../../src/Typeahead/committedChoicesKey.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"committedChoicesKey.d.ts","sourceRoot":"","sources":["../../src/Typeahead/committedChoicesKey.tsx"],"names":[],"mappings":"AAoBA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,wDAAwD;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzB,gEAAgE;IAChE,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,0BAA0B,uDAEM,CAAC;AAG9C,gEAAgE;AAChE,wBAAgB,mBAAmB,IAAI,gBAAgB,GAAG,SAAS,CAElE"}
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* limit it closes the list instead (FR15). A source that is only rebuilt in
|
|
15
15
|
* render does not change the key and reloads nothing.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
|
|
17
|
+
import { use } from 'react';
|
|
18
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
19
|
+
export const CommittedChoicesKeyContext = createSharedContext('CommittedChoicesKeyContext', 1, undefined);
|
|
19
20
|
CommittedChoicesKeyContext.displayName = 'CommittedChoicesKeyContext';
|
|
20
21
|
|
|
21
22
|
/** The caller's committed values, if a caller provides them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trailingKeyDown.d.ts","sourceRoot":"","sources":["../../src/Typeahead/trailingKeyDown.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"trailingKeyDown.d.ts","sourceRoot":"","sources":["../../src/Typeahead/trailingKeyDown.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAAM,KAAK,aAAa,EAAC,MAAM,OAAO,CAAC;AAG9C,MAAM,MAAM,eAAe,GACzB,CAAC,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;AAEjE,eAAO,MAAM,sBAAsB,0CAIlC,CAAC;AAGF,yEAAyE;AACzE,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD"}
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
* the consumer observes every key on the input and cannot cancel built-in
|
|
13
13
|
* navigation, selection, or token editing (family:input-fields FR10).
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
16
|
-
|
|
15
|
+
import { use } from 'react';
|
|
16
|
+
import { createSharedContext } from "../utils/sharedContext.js";
|
|
17
|
+
export const TrailingKeyDownContext = createSharedContext('TrailingKeyDownContext', 1, undefined);
|
|
17
18
|
TrailingKeyDownContext.displayName = 'TrailingKeyDownContext';
|
|
18
19
|
|
|
19
20
|
/** The consumer key handler BaseTypeahead runs after its own, if any. */
|