@astryxdesign/core 0.7.17-canary.gffd1fc0 → 0.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +334 -0
- package/README.md +26 -9
- package/dist/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +6 -8
- package/dist/AppShell/AppShell.d.ts +7 -3
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +74 -36
- package/dist/AppShell/unreadWidthPoint.d.ts +29 -0
- package/dist/AppShell/unreadWidthPoint.d.ts.map +1 -0
- package/dist/AppShell/unreadWidthPoint.js +134 -0
- package/dist/AvatarGroup/AvatarGroupOverflow.d.ts +1 -1
- package/dist/AvatarGroup/AvatarGroupOverflow.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroupOverflow.js +5 -1
- package/dist/Badge/Badge.d.ts.map +1 -1
- package/dist/Badge/Badge.js +2 -2
- package/dist/Banner/Banner.d.ts +6 -4
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +32 -29
- package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheet.js +3 -1
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +11 -7
- package/dist/BottomSheet/BottomSheetSwitcher.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetSwitcher.js +57 -2
- package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts +5 -0
- package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetStack.js +6 -14
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
- package/dist/Breadcrumbs/BreadcrumbItem.js +12 -1
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +45 -7
- package/dist/Calendar/Calendar.js +8 -2
- package/dist/Calendar/styles.d.ts +10 -6
- package/dist/Calendar/styles.d.ts.map +1 -1
- package/dist/Calendar/styles.js +7 -3
- package/dist/Card/Card.d.ts.map +1 -1
- package/dist/Card/Card.js +23 -4
- package/dist/Chat/ChatComposer.d.ts +1 -1
- package/dist/Chat/ChatComposer.d.ts.map +1 -1
- package/dist/Chat/ChatComposer.js +4 -4
- package/dist/Chat/ChatComposerDrawer.d.ts.map +1 -1
- package/dist/Chat/ChatComposerDrawer.js +8 -4
- package/dist/Chat/ChatDictationButton.d.ts.map +1 -1
- package/dist/Chat/ChatDictationButton.js +7 -0
- package/dist/Chat/ChatPastedTextToken.d.ts.map +1 -1
- package/dist/Chat/ChatPastedTextToken.js +3 -9
- package/dist/Chat/ChatSendButton.d.ts.map +1 -1
- package/dist/Chat/ChatSendButton.js +3 -0
- package/dist/Chat/ChatSystemMessage.d.ts.map +1 -1
- package/dist/Chat/ChatSystemMessage.js +1 -0
- package/dist/Chat/ChatToolCalls.d.ts.map +1 -1
- package/dist/Chat/ChatToolCalls.js +8 -0
- package/dist/Chat/pastedTextLabel.d.ts +4 -0
- package/dist/Chat/pastedTextLabel.d.ts.map +1 -0
- package/dist/Chat/pastedTextLabel.js +21 -0
- package/dist/Chat/useChatPasteAsToken.d.ts.map +1 -1
- package/dist/Chat/useChatPasteAsToken.js +8 -8
- package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
- package/dist/Chat/useTriggerMenu.js +3 -3
- package/dist/CheckboxInput/CheckboxInput.d.ts +2 -1
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +69 -18
- package/dist/Citation/Citation.d.ts.map +1 -1
- package/dist/Citation/Citation.js +8 -1
- package/dist/Code/Code.d.ts.map +1 -1
- package/dist/Code/Code.js +5 -1
- package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/CodeBlock/CodeBlock.js +39 -12
- package/dist/CodeBlock/highlightRanges.d.ts.map +1 -1
- package/dist/CodeBlock/highlightRanges.js +6 -5
- package/dist/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/Collapsible/Collapsible.js +2 -0
- package/dist/CommandPalette/CommandPaletteItem.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteItem.js +1 -0
- package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
- package/dist/ComplexSelector/ComplexSelector.js +8 -1
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +32 -5
- package/dist/DateInput/MonthScroller.d.ts.map +1 -1
- package/dist/DateInput/MonthScroller.js +1 -0
- package/dist/DateInput/PickerWheel.d.ts.map +1 -1
- package/dist/DateInput/PickerWheel.js +3 -2
- package/dist/DateInput/TouchDateField.d.ts.map +1 -1
- package/dist/DateInput/TouchDateField.js +2 -1
- package/dist/DateInput/Wheel.d.ts.map +1 -1
- package/dist/DateInput/Wheel.js +8 -8
- package/dist/DateInput/usePointerDragScroll.d.ts.map +1 -1
- package/dist/DateInput/usePointerDragScroll.js +5 -2
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +7 -0
- package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
- package/dist/DateTimeInput/TouchDateTimeField.js +2 -1
- package/dist/DateTimeInput/nativePickerSegmentStyles.d.ts +2 -2
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +104 -18
- package/dist/Dialog/DialogContext.d.ts +5 -4
- package/dist/Dialog/DialogContext.d.ts.map +1 -1
- package/dist/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/Dialog/DialogHeader.js +38 -12
- package/dist/Drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/Drawer/DrawerHeader.js +23 -8
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +23 -17
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.js +3 -3
- package/dist/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuItem.js +3 -2
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioItem.js +3 -3
- package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuSubMenu.js +19 -2
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +6 -3
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
- package/dist/DropdownMenu/lazyMenuBottomSheet.js +31 -7
- package/dist/DropdownMenu/menuRowCorners.stylex.d.ts +24 -0
- package/dist/DropdownMenu/menuRowCorners.stylex.d.ts.map +1 -0
- package/dist/DropdownMenu/menuRowCorners.stylex.js +29 -0
- package/dist/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/EmptyState/EmptyState.js +2 -2
- package/dist/Field/FieldLabel.d.ts.map +1 -1
- package/dist/Field/FieldLabel.js +2 -2
- package/dist/Field/inputDisabledFocus.d.ts +4 -0
- package/dist/Field/inputDisabledFocus.d.ts.map +1 -1
- package/dist/Field/inputDisabledFocus.js +5 -0
- package/dist/Field/inputStyles.stylex.d.ts +31 -4
- package/dist/Field/inputStyles.stylex.d.ts.map +1 -1
- package/dist/Field/inputStyles.stylex.js +30 -5
- package/dist/Grid/Grid.d.ts +2 -1
- package/dist/Grid/Grid.d.ts.map +1 -1
- package/dist/Grid/Grid.js +5 -2
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Heading/Heading.d.ts.map +1 -1
- package/dist/Heading/Heading.js +15 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/Icon.d.ts.map +1 -1
- package/dist/Icon/Icon.js +32 -2
- package/dist/Indicator/CheckboxIndicator.d.ts.map +1 -1
- package/dist/Indicator/CheckboxIndicator.js +12 -6
- package/dist/Indicator/RadioIndicator.d.ts.map +1 -1
- package/dist/Indicator/RadioIndicator.js +18 -4
- package/dist/Indicator/indicatorRegistry.d.ts +3 -26
- package/dist/Indicator/indicatorRegistry.d.ts.map +1 -1
- package/dist/Indicator/indicatorRegistry.js +2 -11
- package/dist/Indicator/themeIndicators.d.ts +15 -0
- package/dist/Indicator/themeIndicators.d.ts.map +1 -0
- package/dist/Indicator/themeIndicators.js +21 -0
- package/dist/Indicator/types.d.ts +14 -0
- package/dist/Indicator/types.d.ts.map +1 -1
- package/dist/Indicator/useThemeIndicator.d.ts +3 -0
- package/dist/Indicator/useThemeIndicator.d.ts.map +1 -0
- package/dist/Indicator/useThemeIndicator.js +19 -0
- package/dist/Item/Item.d.ts +6 -2
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +30 -2
- package/dist/Kbd/Kbd.d.ts.map +1 -1
- package/dist/Kbd/Kbd.js +9 -2
- package/dist/Layer/layerExitCopy.d.ts.map +1 -1
- package/dist/Layer/layerExitCopy.js +1 -1
- package/dist/Layer/layerSlideRules.d.ts +23 -15
- package/dist/Layer/layerSlideRules.d.ts.map +1 -1
- package/dist/Layer/layerSlideRules.js +54 -54
- package/dist/Layer/useLayer.d.ts +41 -29
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +199 -126
- package/dist/Layer/useLayerKeyboardClearance.d.ts +5 -5
- package/dist/Layer/useLayerKeyboardClearance.d.ts.map +1 -1
- package/dist/Layer/useLayerKeyboardClearance.js +5 -5
- package/dist/Layout/LayoutContainerContext.d.ts +4 -0
- package/dist/Layout/LayoutContainerContext.d.ts.map +1 -0
- package/dist/Layout/LayoutContainerContext.js +20 -0
- package/dist/Layout/LayoutContainerScope.d.ts +15 -0
- package/dist/Layout/LayoutContainerScope.d.ts.map +1 -0
- package/dist/Layout/LayoutContainerScope.js +23 -0
- package/dist/Layout/LayoutContent.d.ts +2 -1
- package/dist/Layout/LayoutContent.d.ts.map +1 -1
- package/dist/Layout/LayoutContent.js +7 -2
- package/dist/Layout/LayoutFooter.d.ts.map +1 -1
- package/dist/Layout/LayoutFooter.js +5 -1
- package/dist/Layout/LayoutHeader.d.ts.map +1 -1
- package/dist/Layout/LayoutHeader.js +5 -1
- package/dist/Layout/containerCorners.stylex.d.ts +15 -7
- package/dist/Layout/containerCorners.stylex.d.ts.map +1 -1
- package/dist/Layout/containerCorners.stylex.js +16 -7
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +324 -6
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +1 -1
- package/dist/List/List.d.ts.map +1 -1
- package/dist/List/List.js +14 -6
- package/dist/List/ListContext.d.ts +38 -1
- package/dist/List/ListContext.d.ts.map +1 -1
- package/dist/List/ListContext.js +50 -2
- package/dist/List/ListItem.js +2 -2
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +85 -96
- package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts.map +1 -1
- package/dist/Markdown/plugins/HeadingLinksRenderer.js +12 -5
- package/dist/Markdown/plugins/protocol.js +3 -3
- package/dist/MetadataList/MetadataListItem.d.ts.map +1 -1
- package/dist/MetadataList/MetadataListItem.js +11 -3
- package/dist/MobileNav/MobileNav.d.ts +1 -1
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +6 -3
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +33 -9
- package/dist/NavMenu/NavHeadingMenu.d.ts.map +1 -1
- package/dist/NavMenu/NavHeadingMenu.js +5 -2
- package/dist/NavMenu/NavHeadingMenuItem.d.ts.map +1 -1
- package/dist/NavMenu/NavHeadingMenuItem.js +1 -0
- package/dist/NavMenu/NavMenuContext.d.ts +7 -0
- package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
- package/dist/NavMenu/NavMenuContext.js +9 -0
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +8 -2
- package/dist/Outline/Outline.d.ts +7 -3
- package/dist/Outline/Outline.d.ts.map +1 -1
- package/dist/Outline/Outline.js +11 -3
- package/dist/Outline/useScrollSpy.d.ts +1 -1
- package/dist/Outline/useScrollSpy.d.ts.map +1 -1
- package/dist/Outline/useScrollSpy.js +6 -2
- package/dist/OverflowList/OverflowList.d.ts.map +1 -1
- package/dist/OverflowList/OverflowList.js +51 -25
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +33 -13
- package/dist/Popover/Popover.d.ts.map +1 -1
- package/dist/Popover/Popover.js +5 -1
- package/dist/Popover/popoverAnchor.d.ts +11 -0
- package/dist/Popover/popoverAnchor.d.ts.map +1 -0
- package/dist/Popover/popoverAnchor.js +33 -0
- package/dist/Popover/usePopover.d.ts +20 -3
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +110 -10
- package/dist/PowerSearch/PowerSearch.d.ts +1 -0
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +46 -9
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.js +7 -1
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +7 -0
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts +2 -4
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.js +6 -13
- package/dist/ProgressBar/ProgressBar.d.ts +5 -4
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +26 -26
- package/dist/RadioList/RadioList.d.ts.map +1 -1
- package/dist/RadioList/RadioList.js +51 -0
- package/dist/RadioList/RadioListItem.d.ts.map +1 -1
- package/dist/RadioList/RadioListItem.js +1 -1
- package/dist/Resizable/ResizeHandle.d.ts +1 -1
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +1 -1
- package/dist/Resizable/resizableModel.d.ts +45 -3
- package/dist/Resizable/resizableModel.d.ts.map +1 -1
- package/dist/Resizable/resizableModel.js +91 -3
- package/dist/Resizable/resizeGesture.d.ts +3 -0
- package/dist/Resizable/resizeGesture.d.ts.map +1 -1
- package/dist/Resizable/resizeGesture.js +6 -0
- package/dist/Resizable/useResizable.d.ts +1 -33
- package/dist/Resizable/useResizable.d.ts.map +1 -1
- package/dist/Resizable/useResizable.js +8 -72
- package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlItem.js +1 -0
- package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts +27 -5
- package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts.map +1 -1
- package/dist/SegmentedControl/useSegmentedTouchTracking.js +70 -8
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +34 -14
- package/dist/Selector/hooks.d.ts +5 -0
- package/dist/Selector/hooks.d.ts.map +1 -1
- package/dist/Selector/hooks.js +72 -16
- package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
- package/dist/Selector/useSelectorPresentation.js +9 -3
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +18 -5
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +2 -2
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +47 -33
- package/dist/Stepper/Step.d.ts.map +1 -1
- package/dist/Stepper/Step.js +21 -12
- package/dist/Swipe/useSwipeAction.js +3 -3
- package/dist/Switch/Switch.d.ts.map +1 -1
- package/dist/Switch/Switch.js +64 -46
- package/dist/Switch/useSwitchTouch.d.ts +22 -1
- package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
- package/dist/Switch/useSwitchTouch.js +54 -3
- package/dist/TabList/Tab.d.ts.map +1 -1
- package/dist/TabList/Tab.js +3 -3
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +37 -18
- package/dist/Table/Table.d.ts +4 -3
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +32 -14
- package/dist/Table/TableBody.d.ts.map +1 -1
- package/dist/Table/TableBody.js +5 -1
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +6 -0
- package/dist/Table/TableHeaderCell.d.ts +1 -1
- package/dist/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/Table/TableHeaderCell.js +42 -9
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Table/TableRow.js +9 -1
- package/dist/Table/TableRowPlacementContext.d.ts +18 -0
- package/dist/Table/TableRowPlacementContext.d.ts.map +1 -0
- package/dist/Table/TableRowPlacementContext.js +41 -0
- package/dist/Table/TableSelectionToolbar.d.ts.map +1 -1
- package/dist/Table/TableSelectionToolbar.js +7 -0
- package/dist/Table/columnUtils.d.ts +5 -0
- package/dist/Table/columnUtils.d.ts.map +1 -1
- package/dist/Table/columnUtils.js +9 -1
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
- package/dist/Table/plugins/rowIndex/useTableRowIndex.js +2 -2
- package/dist/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortable.js +8 -3
- package/dist/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortableState.js +10 -6
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +5 -1
- package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
- package/dist/Table/plugins/tree/useTableTreeData.js +76 -15
- package/dist/Table/table.stylex.d.ts +31 -5
- package/dist/Table/table.stylex.d.ts.map +1 -1
- package/dist/Table/table.stylex.js +33 -5
- package/dist/Table/types.d.ts +3 -1
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/Text/TruncationTooltip.d.ts +35 -1
- package/dist/Text/TruncationTooltip.d.ts.map +1 -1
- package/dist/Text/TruncationTooltip.js +115 -0
- package/dist/Text/text.stylex.d.ts +2 -2
- package/dist/Text/useTruncation.d.ts.map +1 -1
- package/dist/Text/useTruncation.js +23 -4
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +15 -1
- package/dist/TextInput/TextInput.d.ts +9 -3
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +19 -18
- package/dist/Thumbnail/Thumbnail.d.ts.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +13 -4
- package/dist/Timer/Timer.d.ts.map +1 -1
- package/dist/Timer/Timer.js +10 -7
- package/dist/Timestamp/Timestamp.d.ts.map +1 -1
- package/dist/Timestamp/Timestamp.js +55 -4
- package/dist/Toast/Toast.d.ts +1 -6
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +77 -44
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +48 -21
- package/dist/Toast/types.d.ts +8 -0
- package/dist/Toast/types.d.ts.map +1 -1
- package/dist/Toast/useToast.d.ts.map +1 -1
- package/dist/Toast/useToast.js +14 -7
- package/dist/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/ToggleButton/ToggleButton.js +14 -9
- package/dist/Token/Token.d.ts +1 -1
- package/dist/Token/Token.d.ts.map +1 -1
- package/dist/Token/Token.js +6 -2
- package/dist/Tokenizer/Tokenizer.d.ts +2 -2
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +102 -62
- package/dist/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/Toolbar/Toolbar.js +33 -5
- package/dist/Tooltip/Tooltip.d.ts +12 -1
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +31 -1
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +20 -1
- package/dist/TopNav/TopNav.d.ts.map +1 -1
- package/dist/TopNav/TopNav.js +24 -8
- package/dist/TopNav/TopNavContext.d.ts +13 -0
- package/dist/TopNav/TopNavContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavContext.js +27 -1
- package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +21 -9
- package/dist/TopNav/TopNavMegaMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenu.js +25 -17
- package/dist/TopNav/TopNavMegaMenuFeaturedCard.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenuFeaturedCard.js +13 -2
- package/dist/TopNav/TopNavMegaMenuItem.d.ts +9 -1
- package/dist/TopNav/TopNavMegaMenuItem.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenuItem.js +14 -2
- package/dist/TopNav/TopNavMenu.d.ts +8 -0
- package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMenu.js +20 -5
- package/dist/TopNav/TopNavRenderContext.d.ts +13 -0
- package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavRenderContext.js +24 -9
- package/dist/TreeList/TreeList.d.ts.map +1 -1
- package/dist/TreeList/TreeList.js +7 -1
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +20 -2
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +2 -1
- package/dist/Typeahead/Typeahead.d.ts.map +1 -1
- package/dist/Typeahead/Typeahead.js +24 -9
- package/dist/Typeahead/TypeaheadItem.d.ts.map +1 -1
- package/dist/Typeahead/TypeaheadItem.js +7 -0
- package/dist/astryx.css +215 -56
- package/dist/gestures/GestureHost.d.ts +7 -0
- package/dist/gestures/GestureHost.d.ts.map +1 -1
- package/dist/gestures/GestureHost.js +37 -0
- package/dist/hooks/anchoredHint.d.ts.map +1 -1
- package/dist/hooks/anchoredHint.js +0 -1
- package/dist/hooks/computeOverflow.d.ts.map +1 -1
- package/dist/hooks/computeOverflow.js +7 -0
- package/dist/hooks/focusableSelector.d.ts +16 -9
- package/dist/hooks/focusableSelector.d.ts.map +1 -1
- package/dist/hooks/focusableSelector.js +53 -2
- package/dist/hooks/scrollEdgeFade.d.ts +34 -0
- package/dist/hooks/scrollEdgeFade.d.ts.map +1 -0
- package/dist/hooks/scrollEdgeFade.js +173 -0
- package/dist/hooks/statusButtonPress.d.ts +15 -0
- package/dist/hooks/statusButtonPress.d.ts.map +1 -0
- package/dist/hooks/statusButtonPress.js +19 -0
- package/dist/hooks/useAnnounce.d.ts.map +1 -1
- package/dist/hooks/useAnnounce.js +2 -1
- package/dist/hooks/useFocusTrap.d.ts +26 -16
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +75 -112
- package/dist/hooks/useGroupPressTracking.d.ts +1 -1
- package/dist/hooks/useGroupPressTracking.js +1 -1
- package/dist/hooks/useOverflow.d.ts +25 -2
- package/dist/hooks/useOverflow.d.ts.map +1 -1
- package/dist/hooks/useOverflow.js +137 -8
- package/dist/hooks/useResolvedRequired.d.ts +27 -0
- package/dist/hooks/useResolvedRequired.d.ts.map +1 -1
- package/dist/hooks/useResolvedRequired.js +30 -1
- package/dist/hooks/useTreeFocus.d.ts.map +1 -1
- package/dist/hooks/useTreeFocus.js +4 -2
- package/dist/hooks/useTypeahead.d.ts.map +1 -1
- package/dist/hooks/useTypeahead.js +8 -8
- package/dist/i18n/InternationalizationContext.d.ts +13 -6
- package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
- package/dist/i18n/InternationalizationContext.js +11 -6
- package/dist/i18n/InternationalizationProvider.d.ts.map +1 -1
- package/dist/i18n/InternationalizationProvider.js +7 -0
- package/dist/i18n/defaultTranslator.d.ts +17 -0
- package/dist/i18n/defaultTranslator.d.ts.map +1 -0
- package/dist/i18n/defaultTranslator.js +18 -0
- package/dist/i18n/firstStrongDirection.d.ts +3 -2
- package/dist/i18n/firstStrongDirection.d.ts.map +1 -1
- package/dist/i18n/firstStrongDirection.js +50 -12
- package/dist/i18n/generated-english/Chat/ChatPastedTextToken.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Chat/ChatPastedTextToken.generated.js +1 -2
- package/dist/i18n/generated-english/Chat/pastedTextLabel.generated.d.ts +8 -0
- package/dist/i18n/generated-english/Chat/pastedTextLabel.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/Chat/pastedTextLabel.generated.js +12 -0
- package/dist/i18n/generated-english/Chat/useTriggerMenu.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Chat/useTriggerMenu.generated.js +1 -0
- package/dist/i18n/generated-english/CodeBlock/CodeBlock.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/CodeBlock/CodeBlock.generated.js +2 -1
- package/dist/i18n/generated-english/Markdown/plugins/HeadingLinksRenderer.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Markdown/plugins/HeadingLinksRenderer.generated.js +2 -1
- package/dist/i18n/generated-english/MultiSelector/MultiSelector.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/MultiSelector/MultiSelector.generated.js +1 -0
- package/dist/i18n/generated-english/Slider/Slider.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Slider/Slider.generated.js +2 -1
- package/dist/i18n/generated-english/TextArea/TextArea.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/TextArea/TextArea.generated.js +1 -0
- package/dist/i18n/generated-english/TextInput/TextInput.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/TextInput/TextInput.generated.js +1 -0
- package/dist/i18n/generated-english/Timestamp/Timestamp.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Timestamp/Timestamp.generated.js +2 -1
- package/dist/i18n/generated-english/Tokenizer/Tokenizer.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Tokenizer/Tokenizer.generated.js +1 -0
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +9 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +9 -0
- package/dist/i18n/publicContext.d.ts.map +1 -1
- package/dist/i18n/publicContext.js +4 -2
- package/dist/i18n/translatingContext.d.ts +2 -0
- package/dist/i18n/translatingContext.d.ts.map +1 -0
- package/dist/i18n/translatingContext.js +25 -0
- package/dist/i18n/useComponentTranslator.d.ts.map +1 -1
- package/dist/i18n/useComponentTranslator.js +3 -2
- package/dist/i18n/useListFormatter.d.ts.map +1 -1
- package/dist/i18n/useListFormatter.js +3 -2
- package/dist/i18n/useTranslator.d.ts.map +1 -1
- package/dist/i18n/useTranslator.js +3 -2
- package/dist/internal/touch.d.ts +2 -0
- package/dist/internal/touch.d.ts.map +1 -1
- package/dist/internal/touch.js +5 -1
- package/dist/keyboard/keyboardHeight.d.ts +34 -3
- package/dist/keyboard/keyboardHeight.d.ts.map +1 -1
- package/dist/keyboard/keyboardHeight.js +101 -24
- package/dist/keyboard/keyboardTarget.d.ts +19 -16
- package/dist/keyboard/keyboardTarget.d.ts.map +1 -1
- package/dist/keyboard/keyboardTarget.js +529 -72
- package/dist/keyboard/useMobileKeyboard.d.ts.map +1 -1
- package/dist/keyboard/useMobileKeyboard.js +1 -8
- package/dist/palette/color.d.ts +23 -0
- package/dist/palette/color.d.ts.map +1 -0
- package/dist/palette/color.js +126 -0
- package/dist/palette/generator.d.ts +69 -0
- package/dist/palette/generator.d.ts.map +1 -0
- package/dist/palette/generator.js +778 -0
- package/dist/palette/index.d.ts +12 -0
- package/dist/palette/index.d.ts.map +1 -0
- package/dist/palette/index.js +13 -0
- package/dist/palette/mapping.d.ts +319 -0
- package/dist/palette/mapping.d.ts.map +1 -0
- package/dist/palette/mapping.js +1312 -0
- package/dist/palette/themePalette.d.ts +20 -0
- package/dist/palette/themePalette.d.ts.map +1 -0
- package/dist/palette/themePalette.js +145 -0
- package/dist/palette/types.d.ts +178 -0
- package/dist/palette/types.d.ts.map +1 -0
- package/dist/palette/types.js +1 -0
- package/dist/privateAttributes/mediaDarkPage.d.ts +5 -0
- package/dist/privateAttributes/mediaDarkPage.d.ts.map +1 -0
- package/dist/privateAttributes/mediaDarkPage.js +27 -0
- package/dist/privateAttributes/pressGroupItem.stylex.d.ts +2 -1
- package/dist/privateAttributes/pressGroupItem.stylex.d.ts.map +1 -1
- package/dist/privateAttributes/pressGroupItem.stylex.js +2 -1
- package/dist/privateAttributes/scheme.d.ts +10 -0
- package/dist/privateAttributes/scheme.d.ts.map +1 -0
- package/dist/privateAttributes/scheme.js +34 -0
- package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -1
- package/dist/privateAttributes/travelling.stylex.js +2 -2
- package/dist/theme/MediaDarkPage.d.ts +18 -0
- package/dist/theme/MediaDarkPage.d.ts.map +1 -0
- package/dist/theme/MediaDarkPage.js +35 -0
- package/dist/theme/MediaTheme.d.ts.map +1 -1
- package/dist/theme/MediaTheme.js +9 -1
- package/dist/theme/Theme.d.ts.map +1 -1
- package/dist/theme/Theme.js +99 -31
- package/dist/theme/defineTheme.d.ts +31 -6
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +65 -29
- package/dist/theme/derivedVarRegistry.d.ts +19 -0
- package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
- package/dist/theme/derivedVarRegistry.js +49 -4
- package/dist/theme/expandRadiusScale.d.ts +1 -2
- package/dist/theme/expandRadiusScale.d.ts.map +1 -1
- package/dist/theme/expandRadiusScale.js +1 -5
- package/dist/theme/generateThemeRules.d.ts +10 -3
- package/dist/theme/generateThemeRules.d.ts.map +1 -1
- package/dist/theme/generateThemeRules.js +310 -207
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -1
- package/dist/theme/invertedSurfaceSide.d.ts +17 -0
- package/dist/theme/invertedSurfaceSide.d.ts.map +1 -0
- package/dist/theme/invertedSurfaceSide.js +47 -0
- package/dist/theme/resolveThemeValues.d.ts +5 -2
- package/dist/theme/resolveThemeValues.d.ts.map +1 -1
- package/dist/theme/resolveThemeValues.js +7 -1
- package/dist/theme/statusRoleDefaults.d.ts +43 -0
- package/dist/theme/statusRoleDefaults.d.ts.map +1 -0
- package/dist/theme/statusRoleDefaults.js +196 -0
- package/dist/theme/statusRoleDerivation.d.ts +4 -0
- package/dist/theme/statusRoleDerivation.d.ts.map +1 -1
- package/dist/theme/statusRoleDerivation.js +3 -1
- package/dist/theme/syntax/SyntaxTheme.d.ts.map +1 -1
- package/dist/theme/syntax/SyntaxTheme.js +7 -0
- package/dist/theme/themeAdaptations.d.ts +24 -1
- package/dist/theme/themeAdaptations.d.ts.map +1 -1
- package/dist/theme/themeAdaptations.js +48 -5
- package/dist/theme/tokenDefaults.d.ts +3 -0
- package/dist/theme/tokenDefaults.d.ts.map +1 -0
- package/dist/theme/tokenDefaults.js +30 -0
- package/dist/theme/tokenValues.d.ts +26 -0
- package/dist/theme/tokenValues.d.ts.map +1 -0
- package/dist/theme/tokenValues.js +180 -0
- package/dist/theme/tokens.d.ts +3 -2
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/tokens.js +7 -161
- package/dist/theme/tokens.stylex.d.ts +4 -4
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +7 -5
- package/dist/theme/useTheme.d.ts +40 -3
- package/dist/theme/useTheme.d.ts.map +1 -1
- package/dist/theme/useTheme.js +137 -32
- package/dist/utils/devWarning.d.ts +17 -0
- package/dist/utils/devWarning.d.ts.map +1 -1
- package/dist/utils/devWarning.js +20 -0
- package/dist/utils/focusOutline.stylex.d.ts.map +1 -1
- package/dist/utils/focusOutline.stylex.js +7 -4
- package/dist/utils/focusReturn.d.ts +110 -0
- package/dist/utils/focusReturn.d.ts.map +1 -1
- package/dist/utils/focusReturn.js +418 -12
- package/dist/utils/hitArea.d.ts +28 -0
- package/dist/utils/hitArea.d.ts.map +1 -1
- package/dist/utils/hitArea.js +52 -18
- package/dist/utils/inputStream.d.ts +27 -0
- package/dist/utils/inputStream.d.ts.map +1 -1
- package/dist/utils/inputStream.js +72 -5
- package/dist/utils/nodeType.d.ts +2 -0
- package/dist/utils/nodeType.d.ts.map +1 -1
- package/dist/utils/nodeType.js +10 -0
- package/dist/utils/timeFormat.d.ts +14 -4
- package/dist/utils/timeFormat.d.ts.map +1 -1
- package/dist/utils/timeFormat.js +42 -4
- package/dist/utils/touchPresentation.d.ts +2 -2
- package/dist/utils/touchPresentation.d.ts.map +1 -1
- package/dist/utils/touchPresentation.js +10 -7
- package/dist/utils/touchPresentation.stylex.d.ts +4 -3
- package/dist/utils/touchPresentation.stylex.d.ts.map +1 -1
- package/dist/utils/touchPresentation.stylex.js +3 -3
- package/dist/utils/touchQueries.d.ts +3 -2
- package/dist/utils/touchQueries.d.ts.map +1 -1
- package/dist/utils/touchQueries.js +3 -2
- package/dist/utils/typeaheadMatch.d.ts +13 -0
- package/dist/utils/typeaheadMatch.d.ts.map +1 -1
- package/dist/utils/typeaheadMatch.js +15 -1
- package/dist/virtualization/useInlineListWindow.d.ts.map +1 -1
- package/dist/virtualization/useInlineListWindow.js +38 -22
- package/locales/en.json +36 -0
- package/locales/pseudo.json +27 -0
- package/package.json +10 -5
- package/scripts/agent-doc-state.mjs +71 -4
- package/src/AlertDialog/AlertDialog.doc.mjs +5 -1
- package/src/AlertDialog/AlertDialog.tsx +34 -7
- package/src/AppShell/AppShell.doc.mjs +22 -0
- package/src/AppShell/AppShell.tsx +112 -65
- package/src/AppShell/unreadWidthPoint.ts +162 -0
- package/src/AvatarGroup/AvatarGroupOverflow.tsx +6 -1
- package/src/Badge/Badge.tsx +5 -2
- package/src/Banner/Banner.doc.mjs +15 -0
- package/src/Banner/Banner.tsx +56 -45
- package/src/BottomSheet/BottomSheet.doc.mjs +6 -3
- package/src/BottomSheet/BottomSheet.tsx +3 -0
- package/src/BottomSheet/BottomSheetPanel.tsx +15 -7
- package/src/BottomSheet/BottomSheetSwitcher.tsx +73 -1
- package/src/BottomSheet/BottomSheetSwitcherContext.ts +5 -0
- package/src/BottomSheet/bottomSheetStack.ts +6 -14
- package/src/Breadcrumbs/BreadcrumbItem.tsx +14 -1
- package/src/Button/Button.doc.mjs +9 -3
- package/src/Button/Button.tsx +65 -11
- package/src/Calendar/Calendar.doc.mjs +16 -0
- package/src/Calendar/Calendar.tsx +32 -20
- package/src/Calendar/styles.ts +12 -3
- package/src/Card/Card.doc.mjs +2 -2
- package/src/Card/Card.tsx +22 -3
- package/src/Chat/Chat.doc.mjs +1 -1
- package/src/Chat/ChatComposer.doc.mjs +3 -3
- package/src/Chat/ChatComposer.tsx +11 -5
- package/src/Chat/ChatComposerDrawer.tsx +11 -7
- package/src/Chat/ChatDictationButton.tsx +12 -0
- package/src/Chat/ChatMessageBubble.tsx +2 -2
- package/src/Chat/ChatPastedTextToken.tsx +3 -9
- package/src/Chat/ChatSendButton.tsx +5 -0
- package/src/Chat/ChatSystemMessage.tsx +1 -0
- package/src/Chat/ChatToolCalls.tsx +16 -0
- package/src/Chat/pastedTextLabel.ts +23 -0
- package/src/Chat/useChatPasteAsToken.ts +9 -8
- package/src/Chat/useTriggerMenu.tsx +4 -1
- package/src/CheckboxInput/CheckboxInput.doc.mjs +20 -0
- package/src/CheckboxInput/CheckboxInput.tsx +83 -26
- package/src/CheckboxList/CheckboxList.doc.mjs +15 -0
- package/src/CheckboxList/CheckboxListItem.doc.mjs +3 -3
- package/src/Citation/Citation.tsx +16 -1
- package/src/Code/Code.tsx +3 -0
- package/src/CodeBlock/CodeBlock.doc.mjs +7 -0
- package/src/CodeBlock/CodeBlock.tsx +60 -13
- package/src/CodeBlock/highlightRanges.ts +7 -5
- package/src/Collapsible/Collapsible.tsx +2 -0
- package/src/CommandPalette/CommandPaletteItem.tsx +1 -0
- package/src/ComplexSelector/ComplexSelector.doc.mjs +30 -2
- package/src/ComplexSelector/ComplexSelector.tsx +19 -1
- package/src/ContextMenu/ContextMenu.doc.mjs +5 -1
- package/src/ContextMenu/ContextMenu.tsx +44 -5
- package/src/ContextMenu/ContextMenuItem.doc.mjs +55 -5
- package/src/DateInput/MonthScroller.tsx +1 -0
- package/src/DateInput/PickerWheel.tsx +1 -0
- package/src/DateInput/TouchDateField.tsx +2 -0
- package/src/DateInput/Wheel.tsx +1 -0
- package/src/DateInput/usePointerDragScroll.ts +6 -2
- package/src/DateRangeInput/DateRangeInput.tsx +16 -0
- package/src/DateTimeInput/TouchDateTimeField.tsx +2 -0
- package/src/Dialog/Dialog.doc.mjs +11 -1
- package/src/Dialog/Dialog.tsx +116 -19
- package/src/Dialog/DialogContext.ts +5 -4
- package/src/Dialog/DialogHeader.tsx +50 -12
- package/src/Drawer/DrawerHeader.tsx +31 -6
- package/src/DropdownMenu/DropdownMenu.doc.mjs +20 -1
- package/src/DropdownMenu/DropdownMenu.tsx +29 -22
- package/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs +4 -4
- package/src/DropdownMenu/DropdownMenuCheckboxItem.tsx +3 -2
- package/src/DropdownMenu/DropdownMenuItem.doc.mjs +5 -5
- package/src/DropdownMenu/DropdownMenuItem.tsx +3 -1
- package/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs +4 -4
- package/src/DropdownMenu/DropdownMenuRadioItem.tsx +3 -2
- package/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs +3 -3
- package/src/DropdownMenu/DropdownMenuSubMenu.tsx +23 -1
- package/src/DropdownMenu/lazyMenuBottomSheet.ts +37 -9
- package/src/DropdownMenu/menuRowCorners.stylex.ts +40 -0
- package/src/EmptyState/EmptyState.tsx +2 -0
- package/src/Field/Field.doc.mjs +1 -1
- package/src/Field/FieldLabel.doc.mjs +3 -3
- package/src/Field/FieldLabel.tsx +9 -2
- package/src/Field/inputDisabledFocus.ts +18 -0
- package/src/Field/inputStyles.stylex.ts +52 -1
- package/src/Grid/Grid.doc.mjs +6 -3
- package/src/Grid/Grid.tsx +5 -2
- package/src/Heading/Heading.tsx +24 -1
- package/src/Icon/Icon.doc.mjs +1 -1
- package/src/Icon/Icon.tsx +40 -2
- package/src/Indicator/CheckboxIndicator.tsx +11 -6
- package/src/Indicator/Indicator.doc.mjs +1 -1
- package/src/Indicator/RadioIndicator.tsx +31 -4
- package/src/Indicator/indicatorRegistry.ts +7 -23
- package/src/Indicator/themeIndicators.ts +29 -0
- package/src/Indicator/types.ts +14 -0
- package/src/Indicator/useThemeIndicator.ts +24 -0
- package/src/Item/Item.doc.mjs +3 -3
- package/src/Item/Item.tsx +48 -7
- package/src/Kbd/Kbd.doc.mjs +6 -2
- package/src/Kbd/Kbd.tsx +16 -1
- package/src/Layer/layerExitCopy.ts +0 -1
- package/src/Layer/layerSlideRules.ts +62 -74
- package/src/Layer/useLayer.doc.mjs +2 -2
- package/src/Layer/useLayer.tsx +293 -137
- package/src/Layer/useLayerKeyboardClearance.ts +9 -12
- package/src/Layout/Layout.doc.mjs +3 -3
- package/src/Layout/LayoutContainerContext.ts +27 -0
- package/src/Layout/LayoutContainerScope.tsx +32 -0
- package/src/Layout/LayoutContent.tsx +5 -2
- package/src/Layout/LayoutFooter.tsx +3 -1
- package/src/Layout/LayoutHeader.tsx +3 -1
- package/src/Layout/containerCorners.stylex.ts +44 -7
- package/src/Lightbox/Lightbox.tsx +460 -8
- package/src/Link/Link.doc.mjs +18 -0
- package/src/Link/Link.tsx +3 -1
- package/src/List/List.tsx +14 -2
- package/src/List/ListContext.tsx +60 -1
- package/src/List/ListItem.doc.mjs +11 -9
- package/src/List/ListItem.tsx +4 -4
- package/src/Markdown/Markdown.doc.mjs +1 -1
- package/src/Markdown/Markdown.tsx +189 -190
- package/src/Markdown/plugins/HeadingLinksRenderer.tsx +14 -4
- package/src/Markdown/plugins/protocol.ts +3 -3
- package/src/MetadataList/MetadataListItem.tsx +18 -3
- package/src/MobileNav/MobileNav.doc.mjs +134 -52
- package/src/MobileNav/MobileNav.tsx +13 -9
- package/src/MultiSelector/MultiSelector.doc.mjs +2 -2
- package/src/MultiSelector/MultiSelector.tsx +51 -8
- package/src/NavMenu/NavHeadingMenu.tsx +5 -1
- package/src/NavMenu/NavHeadingMenuItem.tsx +1 -0
- package/src/NavMenu/NavMenu.doc.mjs +105 -2
- package/src/NavMenu/NavMenuContext.tsx +13 -0
- package/src/NumberInput/NumberInput.doc.mjs +12 -10
- package/src/NumberInput/NumberInput.tsx +19 -11
- package/src/Outline/Outline.doc.mjs +26 -8
- package/src/Outline/Outline.tsx +35 -5
- package/src/Outline/useScrollSpy.ts +8 -3
- package/src/OverflowList/OverflowList.doc.mjs +15 -0
- package/src/OverflowList/OverflowList.tsx +62 -26
- package/src/Pagination/Pagination.doc.mjs +12 -0
- package/src/Pagination/Pagination.tsx +40 -6
- package/src/Popover/Popover.doc.mjs +10 -0
- package/src/Popover/Popover.tsx +8 -4
- package/src/Popover/popoverAnchor.ts +47 -0
- package/src/Popover/usePopover.doc.mjs +16 -2
- package/src/Popover/usePopover.tsx +152 -16
- package/src/PowerSearch/PowerSearch.doc.mjs +8 -8
- package/src/PowerSearch/PowerSearch.tsx +65 -12
- package/src/PowerSearch/PowerSearchEditPopover.tsx +1 -0
- package/src/PowerSearch/PowerSearchFilterEditor.tsx +12 -0
- package/src/PowerSearch/PowerSearchToken.tsx +12 -0
- package/src/PowerSearch/PowerSearchValueEditor.tsx +14 -19
- package/src/ProgressBar/ProgressBar.doc.mjs +2 -2
- package/src/ProgressBar/ProgressBar.tsx +44 -30
- package/src/RadioList/RadioList.tsx +63 -0
- package/src/RadioList/RadioListItem.tsx +4 -1
- package/src/Resizable/ResizeHandle.tsx +2 -3
- package/src/Resizable/resizableModel.ts +105 -3
- package/src/Resizable/resizeGesture.ts +14 -0
- package/src/Resizable/useResizable.ts +14 -75
- package/src/SegmentedControl/SegmentedControlItem.tsx +1 -0
- package/src/SegmentedControl/useSegmentedTouchTracking.ts +76 -12
- package/src/Selector/Selector.doc.mjs +34 -7
- package/src/Selector/Selector.tsx +55 -25
- package/src/Selector/SelectorOption.doc.mjs +5 -5
- package/src/Selector/hooks.ts +92 -17
- package/src/Selector/useSelectorPresentation.ts +18 -3
- package/src/SideNav/SideNavHeading.tsx +15 -4
- package/src/SideNav/SideNavItem.doc.mjs +10 -10
- package/src/Slider/Slider.tsx +4 -1
- package/src/Spinner/Spinner.tsx +56 -41
- package/src/Stepper/Step.tsx +18 -3
- package/src/Stepper/Stepper.doc.mjs +14 -2
- package/src/Swipe/useSwipeAction.ts +3 -3
- package/src/Switch/Switch.doc.mjs +61 -5
- package/src/Switch/Switch.tsx +72 -35
- package/src/Switch/useSwitchTouch.ts +68 -3
- package/src/TabList/Tab.tsx +6 -0
- package/src/Table/BaseTable.tsx +73 -35
- package/src/Table/Table.doc.mjs +109 -5
- package/src/Table/Table.tsx +42 -17
- package/src/Table/TableBody.tsx +10 -1
- package/src/Table/TableCell.tsx +6 -0
- package/src/Table/TableHeaderCell.tsx +52 -7
- package/src/Table/TableRow.tsx +8 -1
- package/src/Table/TableRowPlacementContext.ts +58 -0
- package/src/Table/TableSelectionToolbar.tsx +12 -0
- package/src/Table/columnUtils.ts +9 -1
- package/src/Table/plugins/columnSettings/useTableColumnSettingsState.doc.mjs +1 -1
- package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +1 -0
- package/src/Table/plugins/sortable/useTableSortable.tsx +15 -2
- package/src/Table/plugins/sortable/useTableSortableState.doc.mjs +5 -5
- package/src/Table/plugins/sortable/useTableSortableState.tsx +15 -8
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +8 -0
- package/src/Table/plugins/tree/useTableTreeData.tsx +90 -14
- package/src/Table/table.stylex.ts +44 -5
- package/src/Table/types.ts +3 -1
- package/src/Table/useTableColumnResize.doc.mjs +3 -3
- package/src/Table/useTableColumnSettings.doc.mjs +3 -3
- package/src/Table/useTableFilterState.doc.mjs +6 -3
- package/src/Table/useTableFiltering.doc.mjs +71 -4
- package/src/Table/useTableInfiniteScroll.doc.mjs +2 -2
- package/src/Table/useTablePagination.doc.mjs +24 -3
- package/src/Table/useTableSelection.doc.mjs +30 -6
- package/src/Table/useTableSelectionState.doc.mjs +30 -2
- package/src/Table/useTableSortable.doc.mjs +104 -17
- package/src/Table/useTableStickyColumns.doc.mjs +3 -3
- package/src/Table/useTableTreeData.doc.mjs +2 -2
- package/src/Text/Heading.doc.mjs +2 -2
- package/src/Text/Text.doc.mjs +1 -1
- package/src/Text/TruncationTooltip.tsx +168 -1
- package/src/Text/useTruncation.ts +20 -4
- package/src/TextArea/TextArea.doc.mjs +5 -5
- package/src/TextArea/TextArea.tsx +20 -1
- package/src/TextInput/TextInput.doc.mjs +5 -5
- package/src/TextInput/TextInput.tsx +23 -18
- package/src/Thumbnail/Thumbnail.tsx +2 -1
- package/src/Timer/Timer.tsx +21 -6
- package/src/Timestamp/Timestamp.tsx +67 -4
- package/src/Toast/Toast.doc.mjs +15 -5
- package/src/Toast/Toast.tsx +83 -62
- package/src/Toast/ToastViewport.tsx +62 -23
- package/src/Toast/types.ts +8 -0
- package/src/Toast/useToast.doc.mjs +80 -15
- package/src/Toast/useToast.tsx +18 -7
- package/src/ToggleButton/ToggleButton.doc.mjs +1 -1
- package/src/ToggleButton/ToggleButton.tsx +25 -2
- package/src/Token/Token.tsx +5 -1
- package/src/Tokenizer/Tokenizer.doc.mjs +15 -3
- package/src/Tokenizer/Tokenizer.tsx +130 -75
- package/src/Toolbar/Toolbar.tsx +55 -4
- package/src/Tooltip/Tooltip.tsx +34 -0
- package/src/Tooltip/useTooltip.tsx +26 -0
- package/src/TopNav/TopNav.doc.mjs +1 -1
- package/src/TopNav/TopNav.tsx +13 -3
- package/src/TopNav/TopNavContext.ts +31 -1
- package/src/TopNav/TopNavHeading.tsx +22 -9
- package/src/TopNav/TopNavMegaMenu.tsx +27 -18
- package/src/TopNav/TopNavMegaMenuFeaturedCard.tsx +14 -2
- package/src/TopNav/TopNavMegaMenuItem.doc.mjs +26 -5
- package/src/TopNav/TopNavMegaMenuItem.tsx +26 -2
- package/src/TopNav/TopNavMenu.doc.mjs +19 -8
- package/src/TopNav/TopNavMenu.tsx +34 -2
- package/src/TopNav/TopNavRenderContext.ts +30 -9
- package/src/TreeList/TreeList.tsx +12 -0
- package/src/TreeList/TreeListItem.tsx +26 -5
- package/src/Typeahead/BaseTypeahead.doc.mjs +6 -0
- package/src/Typeahead/BaseTypeahead.tsx +2 -0
- package/src/Typeahead/Typeahead.doc.mjs +15 -2
- package/src/Typeahead/Typeahead.tsx +37 -13
- package/src/Typeahead/TypeaheadItem.tsx +12 -0
- package/src/gestures/GestureHost.ts +34 -0
- package/src/gestures/README.md +9 -6
- package/src/hooks/anchoredHint.tsx +1 -2
- package/src/hooks/computeOverflow.ts +10 -0
- package/src/hooks/focusableSelector.ts +59 -2
- package/src/hooks/scrollEdgeFade.ts +129 -0
- package/src/hooks/statusButtonPress.ts +26 -0
- package/src/hooks/useAnnounce.ts +2 -1
- package/src/hooks/useFocusTrap.ts +110 -141
- package/src/hooks/useGroupPressTracking.ts +1 -1
- package/src/hooks/useOverflow.ts +227 -13
- package/src/hooks/useResolvedRequired.ts +50 -1
- package/src/hooks/useTreeFocus.ts +8 -4
- package/src/hooks/useTypeahead.ts +12 -10
- package/src/i18n/InternationalizationContext.ts +16 -7
- package/src/i18n/InternationalizationProvider.doc.mjs +1 -1
- package/src/i18n/InternationalizationProvider.tsx +12 -0
- package/src/i18n/defaultTranslator.ts +25 -0
- package/src/i18n/firstStrongDirection.ts +54 -13
- package/src/i18n/generated-english/Chat/ChatPastedTextToken.generated.ts +1 -2
- package/src/i18n/generated-english/Chat/pastedTextLabel.generated.ts +13 -0
- package/src/i18n/generated-english/Chat/useTriggerMenu.generated.ts +1 -0
- package/src/i18n/generated-english/CodeBlock/CodeBlock.generated.ts +2 -1
- package/src/i18n/generated-english/Markdown/plugins/HeadingLinksRenderer.generated.ts +2 -1
- package/src/i18n/generated-english/MultiSelector/MultiSelector.generated.ts +1 -0
- package/src/i18n/generated-english/Slider/Slider.generated.ts +2 -1
- package/src/i18n/generated-english/TextArea/TextArea.generated.ts +1 -0
- package/src/i18n/generated-english/TextInput/TextInput.generated.ts +1 -0
- package/src/i18n/generated-english/Timestamp/Timestamp.generated.ts +2 -1
- package/src/i18n/generated-english/Tokenizer/Tokenizer.generated.ts +1 -0
- package/src/i18n/generated-locales/en.generated.ts +11 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +11 -0
- package/src/i18n/publicContext.ts +4 -2
- package/src/i18n/translatingContext.ts +28 -0
- package/src/i18n/useComponentTranslator.ts +3 -2
- package/src/i18n/useListFormatter.ts +3 -2
- package/src/i18n/useTranslator.ts +3 -2
- package/src/internal/touch.ts +7 -0
- package/src/keyboard/README.md +58 -16
- package/src/keyboard/keyboardHeight.ts +138 -26
- package/src/keyboard/keyboardTarget.ts +667 -71
- package/src/keyboard/useMobileKeyboard.ts +1 -7
- package/src/palette/color.ts +205 -0
- package/src/palette/generator.ts +1134 -0
- package/src/palette/index.ts +35 -0
- package/src/palette/mapping.ts +1630 -0
- package/src/palette/themePalette.ts +175 -0
- package/src/palette/types.ts +194 -0
- package/src/privateAttributes/mediaDarkPage.ts +27 -0
- package/src/privateAttributes/pressGroupItem.stylex.ts +2 -1
- package/src/privateAttributes/scheme.ts +37 -0
- package/src/privateAttributes/travelling.stylex.ts +6 -4
- package/src/reset.css +1 -1
- package/src/theme/MediaDarkPage.tsx +41 -0
- package/src/theme/MediaTheme.tsx +8 -1
- package/src/theme/Theme.doc.mjs +4 -4
- package/src/theme/Theme.tsx +140 -35
- package/src/theme/defineTheme.ts +103 -40
- package/src/theme/derivedVarRegistry.ts +61 -4
- package/src/theme/expandRadiusScale.ts +1 -5
- package/src/theme/generateThemeRules.ts +398 -342
- package/src/theme/index.ts +2 -4
- package/src/theme/invertedSurfaceSide.ts +65 -0
- package/src/theme/resolveThemeValues.ts +8 -2
- package/src/theme/statusRoleDefaults.ts +330 -0
- package/src/theme/statusRoleDerivation.ts +2 -1
- package/src/theme/syntax/SyntaxTheme.tsx +12 -0
- package/src/theme/themeAdaptations.ts +53 -5
- package/src/theme/tokenDefaults.ts +44 -0
- package/src/theme/tokenValues.ts +193 -0
- package/src/theme/tokens.stylex.ts +7 -5
- package/src/theme/tokens.ts +14 -176
- package/src/theme/useTheme.ts +164 -35
- package/src/utils/devWarning.ts +24 -0
- package/src/utils/focusOutline.stylex.ts +7 -4
- package/src/utils/focusReturn.ts +578 -16
- package/src/utils/hitArea.ts +70 -33
- package/src/utils/inputStream.ts +81 -5
- package/src/utils/nodeType.ts +10 -0
- package/src/utils/timeFormat.ts +54 -4
- package/src/utils/touchPresentation.stylex.ts +7 -6
- package/src/utils/touchPresentation.ts +10 -7
- package/src/utils/touchQueries.ts +3 -2
- package/src/utils/typeaheadMatch.ts +20 -1
- package/src/virtualization/useInlineListWindow.ts +57 -33
|
@@ -215,6 +215,7 @@ const runtimeCatalog = {
|
|
|
215
215
|
'@astryx.diffViewer.showFullDiff': '⟦Šĥóŵ ƒúłł ð탃⟧',
|
|
216
216
|
'@astryx.diffViewer.hideFullDiff': '⟦Ĥíðé ƒúłł ð탃⟧',
|
|
217
217
|
'@astryx.markdownHeadingLinks.copied': '⟦Łíñķ çóþíéð⟧',
|
|
218
|
+
'@astryx.markdownHeadingLinks.copyFailed': '⟦Ƒàíłéð ţó çóþý ṽàłúé ţó çłíþƀóàřð.⟧',
|
|
218
219
|
'@astryx.markdownHeadingLinks.copy': '⟦Çóþý łíñķ ţó {heading}⟧',
|
|
219
220
|
'@astryx.richTextEditor.tabEscapeHint': '⟦Þřéšš Éšçàþé ţĥéñ Ţàƀ ţó ɱóṽé ƒóçúš óúţ óƒ ţĥé éðíţóř.⟧',
|
|
220
221
|
'@astryx.richTextEditor.toolbar.label': '⟦Ţéẋţ ƒóřɱàţţíñĝ⟧',
|
|
@@ -263,6 +264,7 @@ const runtimeCatalog = {
|
|
|
263
264
|
'@astryx.sideNav.heading.openMenu': '⟦{heading}, Óþéñ ɱéñú⟧',
|
|
264
265
|
'@astryx.slider.minimumThumb': '⟦Ṁíñíɱúɱ ṽàłúé⟧',
|
|
265
266
|
'@astryx.slider.maximumThumb': '⟦Ṁàẋíɱúɱ ṽàłúé⟧',
|
|
267
|
+
'@astryx.slider.required': '⟦Řéɋúířéð⟧',
|
|
266
268
|
'@astryx.tabBar.badgedItem': '⟦{label}, {badge}⟧',
|
|
267
269
|
'@astryx.tabBar.more': '⟦Ṁóřé⟧',
|
|
268
270
|
'@astryx.tabList.label': '⟦Ţàƀš⟧',
|
|
@@ -384,6 +386,7 @@ const runtimeCatalog = {
|
|
|
384
386
|
'@astryx.chatToolCalls.status.complete': '⟦Çóɱþłéţé⟧',
|
|
385
387
|
'@astryx.chatToolCalls.status.error': '⟦Ƒàíłéð⟧',
|
|
386
388
|
'@astryx.chatToolCalls.groupLabel': '⟦{count} ţóół çàłłš⟧',
|
|
389
|
+
'@astryx.chatTriggerMenu.noResults': '⟦Ñó řéšúłţš⟧',
|
|
387
390
|
'@astryx.chatTriggerMenu.searching': '⟦Šéàřçĥíñĝ…⟧',
|
|
388
391
|
'@astryx.chatTriggerMenu.suggestions': '⟦Šúĝĝéšţíóñš⟧',
|
|
389
392
|
'@astryx.citation.label': '⟦Çíţàţíóñ {number}: {title}⟧',
|
|
@@ -391,8 +394,10 @@ const runtimeCatalog = {
|
|
|
391
394
|
'@astryx.codeBlock.copyCode': '⟦Çóþý çóðé⟧',
|
|
392
395
|
'@astryx.codeBlock.copyFailed': '⟦Ƒàíłéð ţó çóþý ṽàłúé ţó çłíþƀóàřð.⟧',
|
|
393
396
|
'@astryx.codeBlock.code': '⟦Çóðé⟧',
|
|
397
|
+
'@astryx.codeBlock.diffLabel': '⟦{language} ð탃⟧',
|
|
394
398
|
'@astryx.field.optional': '⟦Óþţíóñàł⟧',
|
|
395
399
|
'@astryx.field.labelTooltip': '⟦Àƀóúţ {label}⟧',
|
|
400
|
+
'@astryx.field.errorFallback': '⟦Íñṽàłíð ṽàłúé⟧',
|
|
396
401
|
'@astryx.field.required': '⟦Řéɋúířéð⟧',
|
|
397
402
|
'@astryx.fileInput.clearLabel': '⟦Çłéàř {label}⟧',
|
|
398
403
|
'@astryx.fileInput.dropHint': '⟦Ðřóþ ƒíłéš ĥéřé⟧',
|
|
@@ -492,6 +497,7 @@ const runtimeCatalog = {
|
|
|
492
497
|
'@astryx.timestamp.copy': '⟦Çóþý⟧',
|
|
493
498
|
'@astryx.timestamp.copyFailed': '⟦Ƒàíłéð ţó çóþý ṽàłúé ţó çłíþƀóàřð.⟧',
|
|
494
499
|
'@astryx.timestamp.copied': '⟦Çóþíéð⟧',
|
|
500
|
+
'@astryx.timestamp.relativeLabel': '⟦{relative}, {date}⟧',
|
|
495
501
|
'@astryx.timestamp.detailsLabel': '⟦Ţíɱéšţàɱþ ðéţàíłš⟧',
|
|
496
502
|
'@astryx.token.remove': '⟦Řéɱóṽé {label}⟧',
|
|
497
503
|
'@astryx.commandPalette.footer.navigate': '⟦Ñàṽíĝàţé⟧',
|
|
@@ -508,6 +514,7 @@ const runtimeCatalog = {
|
|
|
508
514
|
'@astryx.selector.emptySearchResults': '⟦Ñó řéšúłţš ƒóúñð⟧',
|
|
509
515
|
'@astryx.selector.resultCount': '⟦{count, number} {count, plural, one {result} other {results}}⟧',
|
|
510
516
|
'@astryx.typeahead.resultCount': '⟦{count, number} {count, plural, one {result} other {results}}⟧',
|
|
517
|
+
'@astryx.tokenizer.overflowCount': '⟦+{count, number} ɱóřé⟧',
|
|
511
518
|
'@astryx.tokenizer.tokenAdded': '⟦Àððéð {label}⟧',
|
|
512
519
|
'@astryx.tokenizer.tokenRemoved': '⟦Řéɱóṽéð {label}⟧',
|
|
513
520
|
'@astryx.tokenizer.search': '⟦Šéàřçĥ {label}⟧',
|
|
@@ -686,6 +693,8 @@ const runtimeCatalog = {
|
|
|
686
693
|
'@astryx.mediaPlayer.announceVolume': '⟦Ṽółúɱé {percent}⟧',
|
|
687
694
|
'@astryx.mediaPlayer.announceSpeed': '⟦Šþééð {rate}×⟧',
|
|
688
695
|
'@astryx.navigationStack.back': '⟦Ɓàçķ⟧',
|
|
696
|
+
'@astryx.rating.starLabel': '⟦{value, number} óƒ {max, plural, one {# star} other {# stars}}⟧',
|
|
697
|
+
'@astryx.rating.readOnlyLabel': '⟦{label}: {rating}⟧',
|
|
689
698
|
'@astryx.searchField.cancel': '⟦Çàñçéł⟧'
|
|
690
699
|
};
|
|
691
700
|
export default runtimeCatalog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicContext.d.ts","sourceRoot":"","sources":["../../src/i18n/publicContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"publicContext.d.ts","sourceRoot":"","sources":["../../src/i18n/publicContext.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,2BAA2B,mGAAkB,CAAC"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file publicContext.ts
|
|
7
|
-
* @input InternationalizationContext,
|
|
7
|
+
* @input InternationalizationContext from translatingContext,
|
|
8
|
+
* fullEnglishFallback
|
|
8
9
|
* @output The public InternationalizationContext export
|
|
9
10
|
* @position The package's InternationalizationContext, re-exported by the i18n
|
|
10
11
|
* barrel. The same context object Core components read.
|
|
@@ -19,8 +20,9 @@
|
|
|
19
20
|
* SYNC: When modified, update these files to stay in sync:
|
|
20
21
|
* - /packages/core/src/i18n/InternationalizationContext.ts
|
|
21
22
|
* - /packages/core/src/i18n/index.ts
|
|
23
|
+
* - /packages/core/src/i18n/translatingContext.ts
|
|
22
24
|
*/
|
|
23
|
-
import { InternationalizationContext as ProviderContext } from "./
|
|
25
|
+
import { InternationalizationContext as ProviderContext } from "./translatingContext.js";
|
|
24
26
|
import { registerFullEnglishFallback } from "./fullEnglishFallback.js";
|
|
25
27
|
registerFullEnglishFallback();
|
|
26
28
|
export const InternationalizationContext = ProviderContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translatingContext.d.ts","sourceRoot":"","sources":["../../src/i18n/translatingContext.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,2BAA2B,mGAAgB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file translatingContext.ts
|
|
7
|
+
* @input InternationalizationContext, getResolve, defaultTranslator
|
|
8
|
+
* @output InternationalizationContext, the same context object, for a module
|
|
9
|
+
* that translates
|
|
10
|
+
* @position Internal. Translators take the context from here. Loading it
|
|
11
|
+
* fills the English translator of a context without a provider. The export
|
|
12
|
+
* is its own binding, so bundlers keep this module with its translator.
|
|
13
|
+
*
|
|
14
|
+
* SYNC: When modified, update these files to stay in sync:
|
|
15
|
+
* - /packages/core/src/i18n/InternationalizationContext.ts
|
|
16
|
+
* - /packages/core/src/i18n/defaultTranslator.ts
|
|
17
|
+
* - /packages/core/src/i18n/useComponentTranslator.ts
|
|
18
|
+
* - /packages/core/src/i18n/useTranslator.ts
|
|
19
|
+
* - /packages/core/src/i18n/publicContext.ts
|
|
20
|
+
*/
|
|
21
|
+
import { InternationalizationContext as LocaleContext } from "./InternationalizationContext.js";
|
|
22
|
+
import { defaultTranslator } from "./defaultTranslator.js";
|
|
23
|
+
import { getResolve } from "./resolve.js";
|
|
24
|
+
defaultTranslator.translate ??= getResolve('en', {});
|
|
25
|
+
export const InternationalizationContext = LocaleContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComponentTranslator.d.ts","sourceRoot":"","sources":["../../src/i18n/useComponentTranslator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useComponentTranslator.d.ts","sourceRoot":"","sources":["../../src/i18n/useComponentTranslator.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,YAAY,CAGrD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file useComponentTranslator.ts
|
|
7
|
-
* @input InternationalizationContext (via use())
|
|
7
|
+
* @input InternationalizationContext from translatingContext (via use())
|
|
8
8
|
* @output useComponentTranslator, and registerEnglishFallback re-exported for
|
|
9
9
|
* the same importers
|
|
10
10
|
* @position Internal translator for Core components. Not exported from the
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
*
|
|
26
26
|
* SYNC: When modified, update these files to stay in sync:
|
|
27
27
|
* - /packages/core/src/i18n/useTranslator.ts
|
|
28
|
+
* - /packages/core/src/i18n/translatingContext.ts
|
|
28
29
|
* - /packages/core/src/i18n/englishFallback.ts
|
|
29
30
|
* - /scripts/i18n-english-fallback.mjs
|
|
30
31
|
*/
|
|
31
32
|
import { use } from 'react';
|
|
32
|
-
import { InternationalizationContext } from "./
|
|
33
|
+
import { InternationalizationContext } from "./translatingContext.js";
|
|
33
34
|
export { registerEnglishFallback } from "./englishFallback.js";
|
|
34
35
|
|
|
35
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useListFormatter.d.ts","sourceRoot":"","sources":["../../src/i18n/useListFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useListFormatter.d.ts","sourceRoot":"","sources":["../../src/i18n/useListFormatter.ts"],"names":[],"mappings":"AA0BA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,MAAM,CAS3E"}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* @position Internal provider-aware list-formatting hook
|
|
10
10
|
* (architecture:internationalization INV8). Components that show several
|
|
11
11
|
* catalog messages as one string join them here rather than at the call
|
|
12
|
-
* site (INV1a). Not exported from the i18n barrel.
|
|
13
|
-
*
|
|
12
|
+
* site (INV1a). Not exported from the i18n barrel. The shared time helper
|
|
13
|
+
* (utils/timeFormat.ts) builds its own unit list for compact elapsed
|
|
14
|
+
* durations.
|
|
14
15
|
*
|
|
15
16
|
* Falls back to `'en'` when called outside a provider, matching the
|
|
16
17
|
* useTranslator/useCollator fallback.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslator.d.ts","sourceRoot":"","sources":["../../src/i18n/useTranslator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslator.d.ts","sourceRoot":"","sources":["../../src/i18n/useTranslator.ts"],"names":[],"mappings":"AAgCA,MAAM,MAAM,YAAY,GAAG,CACzB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,MAAM,CAAC;AAEZ;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,IAAI,YAAY,CAG5C"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file useTranslator.ts
|
|
7
|
-
* @input InternationalizationContext (via use())
|
|
7
|
+
* @input InternationalizationContext from translatingContext (via use())
|
|
8
8
|
* @output Exports useTranslator hook returning a stable translator function
|
|
9
9
|
* @position Client-side hook for translating outside of render (event handlers,
|
|
10
10
|
* effects, non-component code) while still resolving against the current
|
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
* SYNC: When modified, update these files to stay in sync:
|
|
22
22
|
* - /packages/core/src/i18n/index.ts
|
|
23
23
|
* - /packages/core/src/i18n/useComponentTranslator.ts
|
|
24
|
+
* - /packages/core/src/i18n/translatingContext.ts
|
|
24
25
|
*/
|
|
25
26
|
import { use } from 'react';
|
|
26
|
-
import { InternationalizationContext } from "./
|
|
27
|
+
import { InternationalizationContext } from "./translatingContext.js";
|
|
27
28
|
import { registerFullEnglishFallback } from "./fullEnglishFallback.js";
|
|
28
29
|
registerFullEnglishFallback();
|
|
29
30
|
/**
|
package/dist/internal/touch.d.ts
CHANGED
|
@@ -61,4 +61,6 @@ export { touchHitAreaStyles } from './touchHitArea.stylex.js';
|
|
|
61
61
|
export { useActionGroupTracking } from '../hooks/useActionGroupTracking.js';
|
|
62
62
|
export type { ActionGroupTrackingOptions } from '../hooks/useActionGroupTracking.js';
|
|
63
63
|
export { measureLogicalScrollAxis } from '../hooks/scrollGeometry.js';
|
|
64
|
+
export { useGroupPressTracking, GROUP_PRESS_POINTERS, } from '../hooks/useGroupPressTracking.js';
|
|
65
|
+
export { pressGroupItemProps } from '../privateAttributes/pressGroupItem.stylex.js';
|
|
64
66
|
//# sourceMappingURL=touch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../src/internal/touch.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,YAAY,GACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,0BAA0B,EA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@@ -82,4 +82,8 @@ export { touchHitAreaStyles } from "./touchHitArea.stylex.js";
|
|
|
82
82
|
// Lab's TabBar tracks its press with the shared action-group tracker.
|
|
83
83
|
export { useActionGroupTracking } from "../hooks/useActionGroupTracking.js";
|
|
84
84
|
// Lab's TabBar finds a panel's scroll area with Core's scroll test.
|
|
85
|
-
export { measureLogicalScrollAxis } from "../hooks/scrollGeometry.js";
|
|
85
|
+
export { measureLogicalScrollAxis } from "../hooks/scrollGeometry.js";
|
|
86
|
+
|
|
87
|
+
// A Lab group shares Core's group press tracking and the group-item mark.
|
|
88
|
+
export { useGroupPressTracking, GROUP_PRESS_POINTERS } from "../hooks/useGroupPressTracking.js";
|
|
89
|
+
export { pressGroupItemProps } from "../privateAttributes/pressGroupItem.stylex.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const KEYBOARD_EPSILON = 1;
|
|
2
|
+
export declare const NON_TEXT_INPUT_TYPES: ReadonlySet<string>;
|
|
2
3
|
/**
|
|
3
4
|
* Whether this window measures the keyboard: a top-level document with a
|
|
4
5
|
* visual viewport. Capabilities decide it, never the user agent or the
|
|
@@ -56,6 +57,13 @@ export declare function hasVirtualKeyboard(win: Window): boolean;
|
|
|
56
57
|
export declare function subscribeKeyboardHeight(win: Window, listener: (event: KeyboardHeightEvent) => void, { focus }?: {
|
|
57
58
|
focus?: boolean;
|
|
58
59
|
}): () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Whether a finger is on `win`'s screen, from the input stream's count. A
|
|
62
|
+
* finger that was down at the keyboard's last hide counts no more until a
|
|
63
|
+
* touch starts. A touch whose target leaves the page ends at a node the
|
|
64
|
+
* window never hears.
|
|
65
|
+
*/
|
|
66
|
+
export declare function isFingerOnScreen(win: Window): boolean;
|
|
59
67
|
/**
|
|
60
68
|
* `win`'s keyboard height. While the module listens, it is the height
|
|
61
69
|
* measured at the last report. Every reader of a keyboard change, such as
|
|
@@ -114,6 +122,14 @@ export interface WatchRevealPanOptions {
|
|
|
114
122
|
owns: (focused: HTMLElement) => boolean;
|
|
115
123
|
/** Called on every touch start, which ends the watch for the report. */
|
|
116
124
|
onTouch?: () => void;
|
|
125
|
+
/**
|
|
126
|
+
* Whether a document scroll can be part of the browser's reveal, which
|
|
127
|
+
* `putBack` then scrolls back too. Set it for a fixed field in Chrome on
|
|
128
|
+
* Android. Its reveal centres the field's document position, then pans as far
|
|
129
|
+
* as the keyboard's room allows. Only a match counts. Keep it false where
|
|
130
|
+
* Safari runs: it carries out an app's document scroll as an offset.
|
|
131
|
+
*/
|
|
132
|
+
documentScrollIsReveal?: boolean;
|
|
117
133
|
}
|
|
118
134
|
/** A watch for the browser's own reveal pan (see watchRevealPan). */
|
|
119
135
|
export interface RevealPanWatch {
|
|
@@ -125,6 +141,7 @@ export interface RevealPanWatch {
|
|
|
125
141
|
* Pans the visual viewport back to where it sat at the report, without
|
|
126
142
|
* scrolling the document. It scrolls `anchor` into view, an element fixed at
|
|
127
143
|
* the layout viewport's top, or else a probe fixed where the viewport sat.
|
|
144
|
+
* With `documentScrollIsReveal`, it first scrolls the document back too.
|
|
128
145
|
*/
|
|
129
146
|
putBack: (anchor?: Element | null) => void;
|
|
130
147
|
/** Ends the watch; the shared touch subscription goes with the last watch. */
|
|
@@ -138,8 +155,9 @@ export interface RevealPanWatch {
|
|
|
138
155
|
* 170 ms after it. The page gets no frame until that pan ends. Such a pan
|
|
139
156
|
* moves the visual viewport down within the
|
|
140
157
|
* layout viewport. Since the report there is no touch, document scroll or
|
|
141
|
-
* zoom, and a text field the caller owns has focus.
|
|
142
|
-
*
|
|
158
|
+
* zoom, and a text field the caller owns has focus. In Chrome, a reveal of a
|
|
159
|
+
* field in a fixed container also scrolls the document first. The watch reads
|
|
160
|
+
* the behavior, never the user agent. The caller lands its field itself and
|
|
143
161
|
* puts the pan back. Every keyboard-aware surface can use it.
|
|
144
162
|
*
|
|
145
163
|
* @example
|
|
@@ -149,7 +167,20 @@ export interface RevealPanWatch {
|
|
|
149
167
|
* // On any later report: if (watch.isRevealPan(height)) watch.putBack();
|
|
150
168
|
* ```
|
|
151
169
|
*/
|
|
152
|
-
export declare function watchRevealPan(win: Window, { owns, onTouch }: WatchRevealPanOptions): RevealPanWatch;
|
|
170
|
+
export declare function watchRevealPan(win: Window, { owns, onTouch, documentScrollIsReveal }: WatchRevealPanOptions): RevealPanWatch;
|
|
171
|
+
/**
|
|
172
|
+
* Pans the visual viewport so its top sits `top` CSS px down the layout
|
|
173
|
+
* viewport, without scrolling the document. A probe fixed there is scrolled
|
|
174
|
+
* into view. In Chrome for Android this pans the visual viewport. In Firefox
|
|
175
|
+
* for Android it pans nothing where the page has no scroll range. The pan
|
|
176
|
+
* reaches the room the keyboard takes, which a document scroll cannot.
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```
|
|
180
|
+
* panVisualViewportTo(window, window.visualViewport.offsetTop + 120);
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
export declare function panVisualViewportTo(win: Window, top: number): void;
|
|
153
184
|
/** The caller's rules for claimTapFocus. */
|
|
154
185
|
export interface ClaimTapFocusOptions {
|
|
155
186
|
/** The control a touch on `target` would focus, when this caller claims it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardHeight.d.ts","sourceRoot":"","sources":["../../src/keyboard/keyboardHeight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboardHeight.d.ts","sourceRoot":"","sources":["../../src/keyboard/keyboardHeight.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAUlC,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAWnD,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzD;AAED,8EAA8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,GAAG,IAAI,CAiBlE;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IAC1D;;;OAGG;IACH,OAAO,EAAE,CACP,OAAO,EAAE,WAAW,EACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAC,KAC1D,IAAI,CAAC;CACX;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EACnB,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,oBAAoB,GACrC,MAAM,IAAI,CAsEZ;AAiCD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,QAoBvE"}
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* @output The on-screen keyboard module: measureKeyboardHeight,
|
|
10
10
|
* isKeyboardMeasurable, hasVirtualKeyboard, subscribeKeyboardHeight,
|
|
11
11
|
* getKeyboardHeight, isTextEntryControl, findTextEntryControl,
|
|
12
|
-
* refuseFocusReveal and
|
|
12
|
+
* refuseFocusReveal, watchRevealPan, panVisualViewportTo and
|
|
13
|
+
* NON_TEXT_INPUT_TYPES
|
|
13
14
|
* @position Core's one source for the on-screen keyboard. It is internal to
|
|
14
15
|
* core and never exported from the package.
|
|
15
16
|
*
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
*/
|
|
18
19
|
import { armClickGuard } from "../utils/clickGuard.js";
|
|
19
20
|
import { matchesMediaQuery } from "../utils/coarsePointer.js";
|
|
20
|
-
import { subscribeInput } from "../utils/inputStream.js";
|
|
21
|
+
import { getTouches, subscribeInput } from "../utils/inputStream.js";
|
|
21
22
|
import { isElement, isHTMLElement, isNode } from "../utils/nodeType.js";
|
|
22
23
|
import { layoutViewportHeight } from "../utils/layoutViewport.js";
|
|
23
24
|
import { PRESS_SLOP_PX } from "../utils/pressGesture.js";
|
|
@@ -35,7 +36,7 @@ const HIDE_STEP_WAIT_MS = 300;
|
|
|
35
36
|
// How long a hide's steps wait in all, from the first. A toolbar's moves
|
|
36
37
|
// while a lower keyboard stays up cannot hold the layout longer.
|
|
37
38
|
const HIDE_STEP_LIMIT_MS = 1000;
|
|
38
|
-
const NON_TEXT_INPUT_TYPES = new Set(['button', 'checkbox', 'color', 'file', 'hidden', 'image', 'radio', 'range', 'reset', 'submit']);
|
|
39
|
+
export const NON_TEXT_INPUT_TYPES = new Set(['button', 'checkbox', 'color', 'file', 'hidden', 'image', 'radio', 'range', 'reset', 'submit']);
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* Whether this window measures the keyboard: a top-level document with a
|
|
@@ -69,12 +70,15 @@ export function measureKeyboardHeight(win) {
|
|
|
69
70
|
|
|
70
71
|
/** A report from the keyboard module, in the order the window raised them. */
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
// The store holds the hide's touch count. A copy of Core with another store
|
|
74
|
+
// shape keeps its own store under another version.
|
|
75
|
+
const stores = sharedWeakMap('keyboard/keyboard-height/stores', 2);
|
|
73
76
|
function storeOf(win) {
|
|
74
77
|
let store = stores.get(win);
|
|
75
78
|
if (store == null) {
|
|
76
79
|
store = {
|
|
77
80
|
height: 0,
|
|
81
|
+
startsAtHide: null,
|
|
78
82
|
listeners: new Set(),
|
|
79
83
|
focusListeners: new Set(),
|
|
80
84
|
detach: null,
|
|
@@ -108,6 +112,9 @@ function attach(win, store) {
|
|
|
108
112
|
let stepHeight = 0;
|
|
109
113
|
let stepLimit = 0;
|
|
110
114
|
const deliver = (height, timeStamp) => {
|
|
115
|
+
if (height <= KEYBOARD_EPSILON && store.height > KEYBOARD_EPSILON) {
|
|
116
|
+
store.startsAtHide = getTouches(win).starts;
|
|
117
|
+
}
|
|
111
118
|
store.height = height;
|
|
112
119
|
const report = {
|
|
113
120
|
type: 'viewport',
|
|
@@ -233,6 +240,18 @@ export function subscribeKeyboardHeight(win, listener, {
|
|
|
233
240
|
};
|
|
234
241
|
}
|
|
235
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Whether a finger is on `win`'s screen, from the input stream's count. A
|
|
245
|
+
* finger that was down at the keyboard's last hide counts no more until a
|
|
246
|
+
* touch starts. A touch whose target leaves the page ends at a node the
|
|
247
|
+
* window never hears.
|
|
248
|
+
*/
|
|
249
|
+
export function isFingerOnScreen(win) {
|
|
250
|
+
const startsAtHide = stores.get(win)?.startsAtHide;
|
|
251
|
+
const touches = getTouches(win);
|
|
252
|
+
return touches.fingers > 0 && (startsAtHide == null || touches.starts !== startsAtHide);
|
|
253
|
+
}
|
|
254
|
+
|
|
236
255
|
/**
|
|
237
256
|
* `win`'s keyboard height. While the module listens, it is the height
|
|
238
257
|
* measured at the last report. Every reader of a keyboard change, such as
|
|
@@ -398,13 +417,20 @@ function watchTouchStarts(doc, onTouchStart) {
|
|
|
398
417
|
return () => {};
|
|
399
418
|
}
|
|
400
419
|
const watches = new Set();
|
|
401
|
-
const
|
|
420
|
+
const stopStarts = subscribeInput(view, 'touchstart', () => {
|
|
402
421
|
for (const watch of [...watches]) {
|
|
403
422
|
watch();
|
|
404
423
|
}
|
|
405
424
|
});
|
|
425
|
+
// Heard so the stream counts the fingers on the screen (isFingerOnScreen).
|
|
426
|
+
const stopEnds = subscribeInput(view, 'touchend', () => {});
|
|
427
|
+
const stopCancels = subscribeInput(view, 'touchcancel', () => {});
|
|
406
428
|
shared = {
|
|
407
|
-
stop
|
|
429
|
+
stop: () => {
|
|
430
|
+
stopStarts();
|
|
431
|
+
stopEnds();
|
|
432
|
+
stopCancels();
|
|
433
|
+
},
|
|
408
434
|
watches
|
|
409
435
|
};
|
|
410
436
|
touchStartWatches.set(doc, shared);
|
|
@@ -430,8 +456,9 @@ function watchTouchStarts(doc, onTouchStart) {
|
|
|
430
456
|
* 170 ms after it. The page gets no frame until that pan ends. Such a pan
|
|
431
457
|
* moves the visual viewport down within the
|
|
432
458
|
* layout viewport. Since the report there is no touch, document scroll or
|
|
433
|
-
* zoom, and a text field the caller owns has focus.
|
|
434
|
-
*
|
|
459
|
+
* zoom, and a text field the caller owns has focus. In Chrome, a reveal of a
|
|
460
|
+
* field in a fixed container also scrolls the document first. The watch reads
|
|
461
|
+
* the behavior, never the user agent. The caller lands its field itself and
|
|
435
462
|
* puts the pan back. Every keyboard-aware surface can use it.
|
|
436
463
|
*
|
|
437
464
|
* @example
|
|
@@ -443,11 +470,15 @@ function watchTouchStarts(doc, onTouchStart) {
|
|
|
443
470
|
*/
|
|
444
471
|
export function watchRevealPan(win, {
|
|
445
472
|
owns,
|
|
446
|
-
onTouch
|
|
473
|
+
onTouch,
|
|
474
|
+
documentScrollIsReveal = false
|
|
447
475
|
}) {
|
|
448
476
|
const doc = win.document;
|
|
449
477
|
let atReport = null;
|
|
450
478
|
let touchedSinceReport = false;
|
|
479
|
+
// Whether a scroll is Chrome's reveal. It is decided once per report and
|
|
480
|
+
// after each put-back, so later scrolls read no layout.
|
|
481
|
+
let isChromeReveal = null;
|
|
451
482
|
const stopTouchStarts = watchTouchStarts(doc, () => {
|
|
452
483
|
touchedSinceReport = true;
|
|
453
484
|
onTouch?.();
|
|
@@ -461,41 +492,87 @@ export function watchRevealPan(win, {
|
|
|
461
492
|
top: viewport.offsetTop,
|
|
462
493
|
scale: viewport.scale
|
|
463
494
|
};
|
|
464
|
-
|
|
495
|
+
// A report while a finger is down, as when Firefox's toolbar hides in
|
|
496
|
+
// a drag, leaves that drag's pan to the person.
|
|
497
|
+
touchedSinceReport = isFingerOnScreen(win);
|
|
498
|
+
isChromeReveal = null;
|
|
465
499
|
},
|
|
466
500
|
isRevealPan: height => {
|
|
467
501
|
const viewport = win.visualViewport;
|
|
468
502
|
const focused = doc.activeElement;
|
|
469
|
-
return viewport != null && atReport != null && !touchedSinceReport && height > 0 && viewport.offsetTop > atReport.top && viewport.scale === atReport.scale && win.scrollX === atReport.x && win.scrollY === atReport.y
|
|
503
|
+
return viewport != null && atReport != null && !touchedSinceReport && height > 0 && viewport.offsetTop > atReport.top && viewport.scale === atReport.scale && focused instanceof HTMLElement && isTextEntryControl(focused) && owns(focused) && (win.scrollX === atReport.x && win.scrollY === atReport.y || documentScrollIsReveal && (isChromeReveal ??= isCentringReveal(win, viewport, focused, atReport)));
|
|
470
504
|
},
|
|
471
505
|
putBack: anchor => {
|
|
506
|
+
isChromeReveal = null;
|
|
472
507
|
const options = {
|
|
473
508
|
block: 'start',
|
|
474
509
|
inline: 'nearest',
|
|
475
510
|
behavior: 'instant'
|
|
476
511
|
};
|
|
512
|
+
if (documentScrollIsReveal && atReport != null && (win.scrollX !== atReport.x || win.scrollY !== atReport.y)) {
|
|
513
|
+
win.scrollTo({
|
|
514
|
+
left: atReport.x,
|
|
515
|
+
top: atReport.y,
|
|
516
|
+
behavior: 'instant'
|
|
517
|
+
});
|
|
518
|
+
}
|
|
477
519
|
if (anchor != null) {
|
|
478
520
|
anchor.scrollIntoView(options);
|
|
479
521
|
return;
|
|
480
522
|
}
|
|
481
|
-
|
|
482
|
-
// move: scrolling its top into view pans the visual viewport back.
|
|
483
|
-
const probe = doc.createElement('div');
|
|
484
|
-
probe.style.position = 'fixed';
|
|
485
|
-
probe.style.left = '0';
|
|
486
|
-
probe.style.top = `${atReport?.top ?? 0}px`;
|
|
487
|
-
probe.style.width = '1px';
|
|
488
|
-
probe.style.height = '1px';
|
|
489
|
-
probe.style.visibility = 'hidden';
|
|
490
|
-
probe.style.pointerEvents = 'none';
|
|
491
|
-
(doc.body ?? doc.documentElement).append(probe);
|
|
492
|
-
probe.scrollIntoView(options);
|
|
493
|
-
probe.remove();
|
|
523
|
+
panVisualViewportTo(win, atReport?.top ?? 0);
|
|
494
524
|
},
|
|
495
525
|
stop: stopTouchStarts
|
|
496
526
|
};
|
|
497
527
|
}
|
|
498
528
|
|
|
529
|
+
// How far a scroll or a pan may sit from Chrome's reveal: rounding.
|
|
530
|
+
const CENTRING_SLACK_PX = 2;
|
|
531
|
+
|
|
532
|
+
// Whether the scroll and the pan since the report match Chrome's reveal of a
|
|
533
|
+
// fixed `field` (documentScrollIsReveal), not an app's scroll elsewhere.
|
|
534
|
+
function isCentringReveal(win, viewport, field, atReport) {
|
|
535
|
+
const box = field.getBoundingClientRect();
|
|
536
|
+
const centring = (box.top + box.bottom) / 2 - viewport.height / 2;
|
|
537
|
+
const root = win.document.scrollingElement ?? win.document.documentElement;
|
|
538
|
+
const range = root.scrollHeight - root.clientHeight;
|
|
539
|
+
const room = layoutViewportHeight(win) - viewport.height;
|
|
540
|
+
const scroll = Math.min(range, Math.max(0, atReport.y + centring));
|
|
541
|
+
const pan = Math.min(room, Math.max(0, centring));
|
|
542
|
+
return win.scrollX === atReport.x && Math.abs(win.scrollY - scroll) <= CENTRING_SLACK_PX && Math.abs(viewport.offsetTop - pan) <= CENTRING_SLACK_PX;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Pans the visual viewport so its top sits `top` CSS px down the layout
|
|
547
|
+
* viewport, without scrolling the document. A probe fixed there is scrolled
|
|
548
|
+
* into view. In Chrome for Android this pans the visual viewport. In Firefox
|
|
549
|
+
* for Android it pans nothing where the page has no scroll range. The pan
|
|
550
|
+
* reaches the room the keyboard takes, which a document scroll cannot.
|
|
551
|
+
*
|
|
552
|
+
* @example
|
|
553
|
+
* ```
|
|
554
|
+
* panVisualViewportTo(window, window.visualViewport.offsetTop + 120);
|
|
555
|
+
* ```
|
|
556
|
+
*/
|
|
557
|
+
export function panVisualViewportTo(win, top) {
|
|
558
|
+
const doc = win.document;
|
|
559
|
+
const probe = doc.createElement('div');
|
|
560
|
+
probe.style.position = 'fixed';
|
|
561
|
+
probe.style.left = '0';
|
|
562
|
+
probe.style.top = `${top}px`;
|
|
563
|
+
probe.style.width = '1px';
|
|
564
|
+
probe.style.height = '1px';
|
|
565
|
+
probe.style.visibility = 'hidden';
|
|
566
|
+
probe.style.pointerEvents = 'none';
|
|
567
|
+
(doc.body ?? doc.documentElement).append(probe);
|
|
568
|
+
probe.scrollIntoView({
|
|
569
|
+
block: 'start',
|
|
570
|
+
inline: 'nearest',
|
|
571
|
+
behavior: 'instant'
|
|
572
|
+
});
|
|
573
|
+
probe.remove();
|
|
574
|
+
}
|
|
575
|
+
|
|
499
576
|
/** The caller's rules for claimTapFocus. */
|
|
500
577
|
|
|
501
578
|
/**
|
|
@@ -9,6 +9,13 @@ export type KeyboardMove = 'reveal' | 'ride';
|
|
|
9
9
|
* clearance a layer keeps above the keyboard.
|
|
10
10
|
*/
|
|
11
11
|
export declare const FIELD_OFFSET = 10;
|
|
12
|
+
/**
|
|
13
|
+
* Chrome on Android pans the page itself if the keyboard still covers the
|
|
14
|
+
* focused field about 100 to 170 ms after the report. A field a fraction of a
|
|
15
|
+
* pixel under the keyboard's top still counts as covered. So a show sets the
|
|
16
|
+
* field this far above that top at once, CSS px, and only the rest rides.
|
|
17
|
+
*/
|
|
18
|
+
export declare const FIELD_CLEARANCE_AT_REPORT = 4;
|
|
12
19
|
/** Registers `element` as a keyboard target until the returned call. */
|
|
13
20
|
export declare function registerKeyboardTarget(element: Element): () => void;
|
|
14
21
|
export { nearestScroller };
|
|
@@ -51,11 +58,16 @@ export declare function deliverTap(control: HTMLElement, x: number, y: number, t
|
|
|
51
58
|
* Puts back a pan the browser makes on its own after a keyboard report. This
|
|
52
59
|
* happens, for example, after a focus no claim saw: a script's `focus()` while
|
|
53
60
|
* nothing has focus. The field sits in place already, so the pan only displaces
|
|
54
|
-
* the page.
|
|
55
|
-
*
|
|
61
|
+
* the page. A pan made at the last height goes back at the next height's
|
|
62
|
+
* report. The caller's own pan is the new rest once reported (`expectPan`):
|
|
63
|
+
* its report comes after the call returns.
|
|
64
|
+
* Feed `report` each keyboard height the module reports; `owns` says whether a
|
|
65
|
+
* focused element is one this watch keeps in place. `documentScrollIsReveal`
|
|
66
|
+
* is watchRevealPan's option of that name.
|
|
56
67
|
*/
|
|
57
|
-
export declare function watchPans(win: Window, owns: (focused: Element) => boolean): {
|
|
68
|
+
export declare function watchPans(win: Window, owns: (focused: Element) => boolean, documentScrollIsReveal?: boolean): {
|
|
58
69
|
report(height: number): void;
|
|
70
|
+
expectPan(top: number): void;
|
|
59
71
|
stop(): void;
|
|
60
72
|
};
|
|
61
73
|
/**
|
|
@@ -89,19 +101,10 @@ export interface KeepFieldAboveKeyboardOptions {
|
|
|
89
101
|
offset?: number;
|
|
90
102
|
}
|
|
91
103
|
/**
|
|
92
|
-
*
|
|
93
|
-
* decides
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* keyboard while one shows. A docked container taller than the room above the
|
|
97
|
-
* keyboard never rides its whole overlap. Its scroller there brings the field
|
|
98
|
-
* up instead, and with none it rides only as far as the field needs. A fixed
|
|
99
|
-
* container the app positions fills the viewport, floats above the bottom edge,
|
|
100
|
-
* or sets its own `translate`. In one, a scroller between the field and the
|
|
101
|
-
* container brings it up. A focus move or a tap into the field arrives without
|
|
102
|
-
* the browser's reveal there, so the page never pans for it. Inside a keyboard
|
|
103
|
-
* target, or in such a container with no scroller around the field, the path
|
|
104
|
-
* does nothing and the browser's own reveal stays.
|
|
104
|
+
* Keeps `field` above the on-screen keyboard until the returned call. On focus,
|
|
105
|
+
* `placementOf` decides who moves it. A claimed focus move or tap arrives
|
|
106
|
+
* without the browser's reveal. Where no placement fits, the browser's own
|
|
107
|
+
* reveal stays.
|
|
105
108
|
*
|
|
106
109
|
* @example
|
|
107
110
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardTarget.d.ts","sourceRoot":"","sources":["../../src/keyboard/keyboardTarget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboardTarget.d.ts","sourceRoot":"","sources":["../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