@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
|
@@ -1351,9 +1351,9 @@ export function useSwipeAction({
|
|
|
1351
1351
|
root.style.removeProperty(SWIPE_TRAVEL_PROPERTY);
|
|
1352
1352
|
root.style.removeProperty(SWIPE_CONFIRM_PROPERTY);
|
|
1353
1353
|
};
|
|
1354
|
-
// The model
|
|
1355
|
-
// shared drag for the root's life.
|
|
1356
|
-
}, [landed, modelRef, panels, presentedX]);
|
|
1354
|
+
// The model and the latest options come through their committed refs, and
|
|
1355
|
+
// the rest is stable: one shared drag for the root's life.
|
|
1356
|
+
}, [landed, latestRef, modelRef, panels, presentedX]);
|
|
1357
1357
|
|
|
1358
1358
|
// A touch tap on an open row's own content closes it and activates nothing,
|
|
1359
1359
|
// as UIKit's dismissal does. The tap recognizes at the lift. The host keeps
|
|
@@ -162,9 +162,9 @@ export const docs = {
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
name: 'labelIcon',
|
|
165
|
-
type: 'IconType',
|
|
165
|
+
type: 'ReactNode | IconType',
|
|
166
166
|
description:
|
|
167
|
-
|
|
167
|
+
"Icon displayed before the label text; pass a semantic icon name such as 'search' (see `astryx docs icons`), an icon component, or an icon element.",
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
name: 'labelTooltip',
|
|
@@ -211,6 +211,33 @@ export const docs = {
|
|
|
211
211
|
},
|
|
212
212
|
{className: 'astryx-switch-label'},
|
|
213
213
|
],
|
|
214
|
+
vars: [
|
|
215
|
+
{
|
|
216
|
+
name: '--_switch-field-gap',
|
|
217
|
+
description:
|
|
218
|
+
'Room between the switch and its label; set by gap on the switch-field target',
|
|
219
|
+
default: 'var(--spacing-2)',
|
|
220
|
+
private: true,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: '--_switch-thumb-width',
|
|
224
|
+
description:
|
|
225
|
+
"Thumb width; set by width on the switch-thumb target. The thumb's rest under a finger reads it",
|
|
226
|
+
default: '14px or 16px off, 16px or 20px on, by size',
|
|
227
|
+
private: true,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: '--_switch-thumb-height',
|
|
231
|
+
description: 'Thumb height; set by height on the switch-thumb target',
|
|
232
|
+
default: '14px or 16px off, 16px or 20px on, by size',
|
|
233
|
+
private: true,
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
derived: [
|
|
237
|
+
{property: 'gap', vars: ['--_switch-field-gap'], replaces: true},
|
|
238
|
+
{property: 'width', vars: ['--_switch-thumb-width'], replaces: true},
|
|
239
|
+
{property: 'height', vars: ['--_switch-thumb-height'], replaces: true},
|
|
240
|
+
],
|
|
214
241
|
},
|
|
215
242
|
usage: {
|
|
216
243
|
accessibility: [
|
|
@@ -355,8 +382,9 @@ export const docsZh = {
|
|
|
355
382
|
},
|
|
356
383
|
{
|
|
357
384
|
name: 'labelIcon',
|
|
358
|
-
type: 'IconType',
|
|
359
|
-
description:
|
|
385
|
+
type: 'ReactNode | IconType',
|
|
386
|
+
description:
|
|
387
|
+
"显示在标签文本前面的图标;可传语义图标名称(如 'search',见 `astryx docs icons`)、图标组件或图标元素。",
|
|
360
388
|
},
|
|
361
389
|
{
|
|
362
390
|
name: 'labelTooltip',
|
|
@@ -395,6 +423,33 @@ export const docsZh = {
|
|
|
395
423
|
},
|
|
396
424
|
{className: 'astryx-switch-label'},
|
|
397
425
|
],
|
|
426
|
+
vars: [
|
|
427
|
+
{
|
|
428
|
+
name: '--_switch-field-gap',
|
|
429
|
+
description:
|
|
430
|
+
'Room between the switch and its label; set by gap on the switch-field target',
|
|
431
|
+
default: 'var(--spacing-2)',
|
|
432
|
+
private: true,
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: '--_switch-thumb-width',
|
|
436
|
+
description:
|
|
437
|
+
'滑块宽度;由 switch-thumb 目标上的 width 设置。触摸时滑块的停靠位置读取它',
|
|
438
|
+
default: '按尺寸:关闭时 14px 或 16px,开启时 16px 或 20px',
|
|
439
|
+
private: true,
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
name: '--_switch-thumb-height',
|
|
443
|
+
description: '滑块高度;由 switch-thumb 目标上的 height 设置',
|
|
444
|
+
default: '按尺寸:关闭时 14px 或 16px,开启时 16px 或 20px',
|
|
445
|
+
private: true,
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
derived: [
|
|
449
|
+
{property: 'gap', vars: ['--_switch-field-gap'], replaces: true},
|
|
450
|
+
{property: 'width', vars: ['--_switch-thumb-width'], replaces: true},
|
|
451
|
+
{property: 'height', vars: ['--_switch-thumb-height'], replaces: true},
|
|
452
|
+
],
|
|
398
453
|
},
|
|
399
454
|
usage: {
|
|
400
455
|
description:
|
|
@@ -481,7 +536,8 @@ export const docsDense = {
|
|
|
481
536
|
'Status indicator w/ type + message; colored message box, sets aria-invalid on error.',
|
|
482
537
|
onFocus: 'Fired when switch receives focus.',
|
|
483
538
|
onBlur: 'Fired when switch loses focus.',
|
|
484
|
-
labelIcon:
|
|
539
|
+
labelIcon:
|
|
540
|
+
"Icon before label text; semantic icon name string OK, e.g. 'search' (`astryx docs icons`), or icon component/element.",
|
|
485
541
|
labelTooltip: 'Tooltip text in info icon at label end.',
|
|
486
542
|
labelPosition: 'Which side label appears; "start" places before switch.',
|
|
487
543
|
labelSpacing:
|
package/src/Switch/Switch.tsx
CHANGED
|
@@ -75,10 +75,19 @@ import {watchHitArea, writeHitInsets} from '../utils/hitArea';
|
|
|
75
75
|
/**
|
|
76
76
|
* The track box of each size, px (width × height), for the touch
|
|
77
77
|
* presentation's thumb geometry.
|
|
78
|
-
* SYNC:
|
|
78
|
+
* SYNC: trackSizeStyles below.
|
|
79
79
|
*/
|
|
80
80
|
const TRACK_SIZE = {sm: [32, 20], md: [40, 24]} as const;
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* The thumb circle's diameter of each size in each state, px. The thumb size
|
|
84
|
+
* styles below and the touch presentation's first value change read it.
|
|
85
|
+
*/
|
|
86
|
+
const THUMB_SIZE = {
|
|
87
|
+
sm: {off: 14, on: 16},
|
|
88
|
+
md: {off: 16, on: 20},
|
|
89
|
+
} as const;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* A finger: utils/touchPresentation.ts's TOUCH_QUERY. The touch presentation
|
|
84
93
|
* is one model on every touch device: the lift, tracking, flip rule and
|
|
@@ -109,53 +118,68 @@ const HIT_RIGHT = 'var(--astryx-hit-inset-right, 0px)';
|
|
|
109
118
|
const HIT_BOTTOM = 'var(--astryx-hit-inset-bottom, 0px)';
|
|
110
119
|
const HIT_LEFT = 'var(--astryx-hit-inset-left, 0px)';
|
|
111
120
|
|
|
112
|
-
const wrapperSizeStyles = stylex.create({
|
|
113
|
-
sm: {
|
|
114
|
-
width: 32,
|
|
115
|
-
height: 20,
|
|
116
|
-
},
|
|
117
|
-
md: {
|
|
118
|
-
width: 40,
|
|
119
|
-
height: 24,
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
|
|
123
121
|
// Every touch value sits in the same property as the mouse value, as a
|
|
124
122
|
// nested condition, never in a later style. A later style that names a
|
|
125
123
|
// property replaces all of it, mouse value included.
|
|
124
|
+
// Under a finger the track has no padding: everything in it is placed by
|
|
125
|
+
// insets (the thumb, the press and fade layers), so its content box is its
|
|
126
|
+
// own box, and the thumb's insets read its height from it (100cqb).
|
|
126
127
|
const trackSizeStyles = stylex.create({
|
|
127
128
|
sm: {
|
|
128
129
|
width: 32,
|
|
129
130
|
height: 20,
|
|
130
|
-
padding: 2,
|
|
131
|
+
padding: {default: 2, [TOUCH]: 0},
|
|
131
132
|
},
|
|
132
133
|
md: {
|
|
133
134
|
width: 40,
|
|
134
135
|
height: 24,
|
|
135
|
-
padding: 4,
|
|
136
|
+
padding: {default: 4, [TOUCH]: 0},
|
|
136
137
|
},
|
|
137
138
|
});
|
|
138
139
|
|
|
140
|
+
// The thumb's size: a private variable when a theme sizes the thumb
|
|
141
|
+
// (`width` and `height` on `switch-thumb`, through the derived-variable
|
|
142
|
+
// registry), else the size's own. Its touch rest reads the same value, so the
|
|
143
|
+
// thumb sits as far from the track's end as from its top and bottom.
|
|
144
|
+
const thumbWidth = (px: number) => `var(--_switch-thumb-width, ${px}px)`;
|
|
145
|
+
const thumbHeight = (px: number) => `var(--_switch-thumb-height, ${px}px)`;
|
|
146
|
+
// The gap between a thumb and the track's end under a finger: the gap above
|
|
147
|
+
// and below it, from the track's height (100cqb).
|
|
148
|
+
const restInset = (px: number) => `calc(50cqb - ${thumbWidth(px)} / 2)`;
|
|
149
|
+
// The thumb's place with a mouse, from where the track's padding puts it:
|
|
150
|
+
// as far from its end as from the top and bottom. The padding cancels out:
|
|
151
|
+
// 100cqi and 100cqb read the track's content box, and 50% is the thumb.
|
|
152
|
+
const OFF_PLACE = 'calc(50cqb - 50%)';
|
|
153
|
+
const ON_TRAVEL = 'calc(100cqi - 50cqb - 50%)';
|
|
154
|
+
|
|
139
155
|
// The thumb is one circle under any pointer, at each state's size. Under a
|
|
140
156
|
// finger it rests by insets instead of a transform, centered in the track's
|
|
141
157
|
// height at each end. So the compositor moves and lifts it with translate and
|
|
142
158
|
// scale alone; useSwitchTouch measures the box it renders.
|
|
143
159
|
const thumbOffSizeStyles = stylex.create({
|
|
144
160
|
sm: {
|
|
145
|
-
width:
|
|
146
|
-
height:
|
|
147
|
-
insetInlineStart: {default: null, [TOUCH]:
|
|
161
|
+
width: thumbWidth(THUMB_SIZE.sm.off),
|
|
162
|
+
height: thumbHeight(THUMB_SIZE.sm.off),
|
|
163
|
+
insetInlineStart: {default: null, [TOUCH]: restInset(THUMB_SIZE.sm.off)},
|
|
148
164
|
transform: {
|
|
149
|
-
default:
|
|
165
|
+
default: `translateX(${OFF_PLACE})`,
|
|
166
|
+
':is([dir="rtl"] *)': {
|
|
167
|
+
default: `translateX(calc(-1 * ${OFF_PLACE}))`,
|
|
168
|
+
[TOUCH]: 'none',
|
|
169
|
+
},
|
|
150
170
|
[TOUCH]: 'none',
|
|
151
171
|
},
|
|
152
172
|
},
|
|
153
173
|
md: {
|
|
154
|
-
width:
|
|
155
|
-
height:
|
|
156
|
-
insetInlineStart: {default: null, [TOUCH]:
|
|
174
|
+
width: thumbWidth(THUMB_SIZE.md.off),
|
|
175
|
+
height: thumbHeight(THUMB_SIZE.md.off),
|
|
176
|
+
insetInlineStart: {default: null, [TOUCH]: restInset(THUMB_SIZE.md.off)},
|
|
157
177
|
transform: {
|
|
158
|
-
default:
|
|
178
|
+
default: `translateX(${OFF_PLACE})`,
|
|
179
|
+
':is([dir="rtl"] *)': {
|
|
180
|
+
default: `translateX(calc(-1 * ${OFF_PLACE}))`,
|
|
181
|
+
[TOUCH]: 'none',
|
|
182
|
+
},
|
|
159
183
|
[TOUCH]: 'none',
|
|
160
184
|
},
|
|
161
185
|
},
|
|
@@ -163,33 +187,33 @@ const thumbOffSizeStyles = stylex.create({
|
|
|
163
187
|
|
|
164
188
|
const thumbOnSizeStyles = stylex.create({
|
|
165
189
|
sm: {
|
|
166
|
-
width:
|
|
167
|
-
height:
|
|
190
|
+
width: thumbWidth(THUMB_SIZE.sm.on),
|
|
191
|
+
height: thumbHeight(THUMB_SIZE.sm.on),
|
|
168
192
|
insetInlineStart: {default: null, [TOUCH]: 'auto'},
|
|
169
|
-
insetInlineEnd: {default: null, [TOUCH]:
|
|
193
|
+
insetInlineEnd: {default: null, [TOUCH]: restInset(THUMB_SIZE.sm.on)},
|
|
170
194
|
// The thumb rests at the inline-start edge (flex-start, which flexbox
|
|
171
195
|
// already mirrors under RTL). The on-state travel toward the inline-end
|
|
172
196
|
// edge is a physical translateX, so it must flip sign under RTL — right
|
|
173
197
|
// in LTR, left in RTL — so the switch mirrors per convention (Material,
|
|
174
198
|
// iOS): off-thumb on the reading-start side, on-thumb on the reading-end.
|
|
175
199
|
transform: {
|
|
176
|
-
default:
|
|
200
|
+
default: `translateX(${ON_TRAVEL})`,
|
|
177
201
|
':is([dir="rtl"] *)': {
|
|
178
|
-
default:
|
|
202
|
+
default: `translateX(calc(-1 * ${ON_TRAVEL}))`,
|
|
179
203
|
[TOUCH]: 'none',
|
|
180
204
|
},
|
|
181
205
|
[TOUCH]: 'none',
|
|
182
206
|
},
|
|
183
207
|
},
|
|
184
208
|
md: {
|
|
185
|
-
width:
|
|
186
|
-
height:
|
|
209
|
+
width: thumbWidth(THUMB_SIZE.md.on),
|
|
210
|
+
height: thumbHeight(THUMB_SIZE.md.on),
|
|
187
211
|
insetInlineStart: {default: null, [TOUCH]: 'auto'},
|
|
188
|
-
insetInlineEnd: {default: null, [TOUCH]:
|
|
212
|
+
insetInlineEnd: {default: null, [TOUCH]: restInset(THUMB_SIZE.md.on)},
|
|
189
213
|
transform: {
|
|
190
|
-
default:
|
|
214
|
+
default: `translateX(${ON_TRAVEL})`,
|
|
191
215
|
':is([dir="rtl"] *)': {
|
|
192
|
-
default:
|
|
216
|
+
default: `translateX(calc(-1 * ${ON_TRAVEL}))`,
|
|
193
217
|
[TOUCH]: 'none',
|
|
194
218
|
},
|
|
195
219
|
[TOUCH]: 'none',
|
|
@@ -256,7 +280,11 @@ const styles = stylex.create({
|
|
|
256
280
|
container: {
|
|
257
281
|
display: 'flex',
|
|
258
282
|
alignItems: 'center',
|
|
259
|
-
gap
|
|
283
|
+
// The room between the switch and its label. A theme sets it with gap on
|
|
284
|
+
// the `switch-field` target, which the compiler hands to this row as
|
|
285
|
+
// --_switch-field-gap (derivedVarRegistry): the target is the outer field,
|
|
286
|
+
// which also holds the status message below the row.
|
|
287
|
+
gap: `var(--_switch-field-gap, ${spacingVars['--spacing-2']})`,
|
|
260
288
|
},
|
|
261
289
|
// A hidden label is sr-only, so its wrapper is a zero-width flex item — the
|
|
262
290
|
// row gap would still be painted beside the track, making the field box
|
|
@@ -271,6 +299,9 @@ const styles = stylex.create({
|
|
|
271
299
|
statusGap: {
|
|
272
300
|
marginTop: spacingVars['--spacing-2'],
|
|
273
301
|
},
|
|
302
|
+
// The control's box is the track's: it takes no size of its own, so a
|
|
303
|
+
// theme that sizes the track (`width` and `height` on `switch`) sizes the
|
|
304
|
+
// box the invisible input covers and the row it sits in.
|
|
274
305
|
switchWrapper: {
|
|
275
306
|
position: 'relative',
|
|
276
307
|
display: 'flex',
|
|
@@ -326,6 +357,8 @@ const styles = stylex.create({
|
|
|
326
357
|
track: {
|
|
327
358
|
display: 'flex',
|
|
328
359
|
alignItems: 'center',
|
|
360
|
+
// The thumb's travel and touch rest read the track's size (cq units).
|
|
361
|
+
containerType: 'size',
|
|
329
362
|
// Under a finger the press layer (::before), the colour fade (::after)
|
|
330
363
|
// and the thumb sit in the track, in a stacking context of its own.
|
|
331
364
|
position: {default: null, [TOUCH]: 'relative'},
|
|
@@ -534,7 +567,10 @@ const styles = stylex.create({
|
|
|
534
567
|
display: 'flex',
|
|
535
568
|
alignItems: 'center',
|
|
536
569
|
justifyContent: 'center',
|
|
537
|
-
|
|
570
|
+
// A circle marks the thumb; it is no corner. 50% draws it on the square
|
|
571
|
+
// box the size styles set, so a theme that squares its pills through
|
|
572
|
+
// --radius-full keeps a round thumb.
|
|
573
|
+
borderRadius: '50%',
|
|
538
574
|
// Under a finger it sits in the track, centered in its height, above the
|
|
539
575
|
// colour fade (::after) and the press layer (::before). useSwitchTouch
|
|
540
576
|
// moves and lifts it on the compositor: nothing of its own transitions.
|
|
@@ -679,6 +715,7 @@ const styles = stylex.create({
|
|
|
679
715
|
description: {
|
|
680
716
|
fontFamily: typographyVars['--font-family-body'],
|
|
681
717
|
fontSize: typeScaleVars['--text-supporting-size'],
|
|
718
|
+
lineHeight: typeScaleVars['--text-supporting-leading'],
|
|
682
719
|
color: colorVars['--color-text-secondary'],
|
|
683
720
|
},
|
|
684
721
|
});
|
|
@@ -984,6 +1021,7 @@ export function Switch({
|
|
|
984
1021
|
isInteractive: !isDisabled && !isBusy,
|
|
985
1022
|
isDisabled,
|
|
986
1023
|
trackSize: TRACK_SIZE[size],
|
|
1024
|
+
thumbSize: THUMB_SIZE[size],
|
|
987
1025
|
otherTrackProps: trackPropsFor(!isOn),
|
|
988
1026
|
});
|
|
989
1027
|
|
|
@@ -992,7 +1030,6 @@ export function Switch({
|
|
|
992
1030
|
ref={surfaceRef}
|
|
993
1031
|
{...stylex.props(
|
|
994
1032
|
styles.switchWrapper,
|
|
995
|
-
wrapperSizeStyles[size],
|
|
996
1033
|
!isDisabled && !isBusy && styles.switchWrapperInteractive,
|
|
997
1034
|
)}>
|
|
998
1035
|
<input
|
|
@@ -77,6 +77,11 @@ export interface SwitchTouchOptions {
|
|
|
77
77
|
readonly isDisabled: boolean;
|
|
78
78
|
/** The track's box, px (width × height): the thumb geometry's scale. */
|
|
79
79
|
readonly trackSize: readonly [number, number];
|
|
80
|
+
/**
|
|
81
|
+
* The thumb circle's default diameter in each state, px. A value change
|
|
82
|
+
* before any measurement animates the size from it.
|
|
83
|
+
*/
|
|
84
|
+
readonly thumbSize?: {readonly off: number; readonly on: number};
|
|
80
85
|
/**
|
|
81
86
|
* The props the track renders with in its other state (its theme target
|
|
82
87
|
* and fill), for the fade layer's colour.
|
|
@@ -208,6 +213,16 @@ interface Drag {
|
|
|
208
213
|
export class SwitchTouchController {
|
|
209
214
|
private elements: Elements | null = null;
|
|
210
215
|
private geometry: SwitchTouchGeometry;
|
|
216
|
+
/** Whether `geometry` holds the rendered boxes since the last attach. */
|
|
217
|
+
private isGeometryMeasured = false;
|
|
218
|
+
/** The thumb's default diameter in each state, for the first change. */
|
|
219
|
+
private defaultThumb: {readonly off: number; readonly on: number} | null =
|
|
220
|
+
null;
|
|
221
|
+
/**
|
|
222
|
+
* The thumb's diameter a theme sets for the state it attached in
|
|
223
|
+
* (`--_switch-thumb-width`), or null where the theme sets none.
|
|
224
|
+
*/
|
|
225
|
+
private attachedThumb: number | null = null;
|
|
211
226
|
private isOn: boolean;
|
|
212
227
|
private isInteractive = true;
|
|
213
228
|
/** The side the visuals show or head to. */
|
|
@@ -274,7 +289,9 @@ export class SwitchTouchController {
|
|
|
274
289
|
this.detach();
|
|
275
290
|
this.elements = elements;
|
|
276
291
|
this.presentation = presentation;
|
|
277
|
-
|
|
292
|
+
// The boxes are read at the first press, not here: a read at mount forces
|
|
293
|
+
// a layout for every switch on the page.
|
|
294
|
+
this.isGeometryMeasured = false;
|
|
278
295
|
this.direction = isRtlElement(elements.surface) ? -1 : 1;
|
|
279
296
|
this.isVisuallyOn = this.isOn;
|
|
280
297
|
const host = getGestureHost(elements.surface.ownerDocument);
|
|
@@ -285,6 +302,15 @@ export class SwitchTouchController {
|
|
|
285
302
|
return;
|
|
286
303
|
}
|
|
287
304
|
registerSwitchTable();
|
|
305
|
+
// A theme's thumb size for this state, read from its private variable:
|
|
306
|
+
// a style read, never a layout (the boxes wait for the first press). A
|
|
307
|
+
// value change before any press grows the thumb from it.
|
|
308
|
+
const themed = /^\s*(\d*\.?\d+)px\s*$/.exec(
|
|
309
|
+
getComputedStyle(elements.thumb).getPropertyValue(
|
|
310
|
+
'--_switch-thumb-width',
|
|
311
|
+
),
|
|
312
|
+
);
|
|
313
|
+
this.attachedThumb = themed ? Number(themed[1]) : null;
|
|
288
314
|
this.thumb = createMotionEngine(elements.thumb);
|
|
289
315
|
// The layer rests clear (its class's opacity 0) while the visuals show
|
|
290
316
|
// the value; from here its opacity is the animator's. The stylesheet
|
|
@@ -384,9 +410,15 @@ export class SwitchTouchController {
|
|
|
384
410
|
}
|
|
385
411
|
}
|
|
386
412
|
|
|
413
|
+
setDefaultThumb(
|
|
414
|
+
thumb: {readonly off: number; readonly on: number} | null,
|
|
415
|
+
): void {
|
|
416
|
+
this.defaultThumb = thumb;
|
|
417
|
+
}
|
|
418
|
+
|
|
387
419
|
setGeometry(geometry: SwitchTouchGeometry): void {
|
|
388
420
|
this.geometry = geometry;
|
|
389
|
-
this.
|
|
421
|
+
this.isGeometryMeasured = false;
|
|
390
422
|
this.thumb?.set({x: 0, scaleX: 1, scaleY: 1}, {promote: false});
|
|
391
423
|
}
|
|
392
424
|
|
|
@@ -410,6 +442,7 @@ export class SwitchTouchController {
|
|
|
410
442
|
if (trackWidth <= 0 || trackHeight <= 0) {
|
|
411
443
|
return;
|
|
412
444
|
}
|
|
445
|
+
this.isGeometryMeasured = true;
|
|
413
446
|
const style = thumb == null ? null : getComputedStyle(thumb);
|
|
414
447
|
const thumbWidth = style == null ? NaN : parseFloat(style.width);
|
|
415
448
|
const thumbHeight = style == null ? NaN : parseFloat(style.height);
|
|
@@ -444,6 +477,22 @@ export class SwitchTouchController {
|
|
|
444
477
|
// and is sent to the new rest below. A spring already heading for the new
|
|
445
478
|
// rest moves whole instead, keeping its start time and velocity. A
|
|
446
479
|
// reduced-motion dip shifts whole, its end included, and keeps going.
|
|
480
|
+
// A value change before any measurement reads the boxes once here. The
|
|
481
|
+
// track is the rendered one, but the circle is already the new value's.
|
|
482
|
+
// The previous circle is the state it attached in: the theme's size for
|
|
483
|
+
// it, read then, else the state's default size.
|
|
484
|
+
let measured: SwitchTouchGeometry | null = null;
|
|
485
|
+
if (!this.isGeometryMeasured && this.defaultThumb != null) {
|
|
486
|
+
this.measureGeometry();
|
|
487
|
+
measured = this.geometry;
|
|
488
|
+
const size =
|
|
489
|
+
this.attachedThumb ?? this.defaultThumb[previous ? 'on' : 'off'];
|
|
490
|
+
this.geometry = switchTouchGeometry(
|
|
491
|
+
measured.trackWidth,
|
|
492
|
+
measured.trackHeight,
|
|
493
|
+
{width: size, height: size},
|
|
494
|
+
);
|
|
495
|
+
}
|
|
447
496
|
const springs = thumb.reducedMotion() === 'off';
|
|
448
497
|
thumb.rebase(
|
|
449
498
|
{x: this.direction * (this.rest(previous) - this.rest(isOn))},
|
|
@@ -453,7 +502,11 @@ export class SwitchTouchController {
|
|
|
453
502
|
// CSS now renders is the new value's. Its scale takes the old size over
|
|
454
503
|
// and grows or shrinks it from there.
|
|
455
504
|
const before = this.geometry;
|
|
456
|
-
|
|
505
|
+
if (measured == null) {
|
|
506
|
+
this.measureGeometry();
|
|
507
|
+
} else {
|
|
508
|
+
this.geometry = measured;
|
|
509
|
+
}
|
|
457
510
|
if (springs) {
|
|
458
511
|
this.rescaleThumb(before, this.geometry, time);
|
|
459
512
|
}
|
|
@@ -496,6 +549,8 @@ export class SwitchTouchController {
|
|
|
496
549
|
// --- Touches ---------------------------------------------------------------
|
|
497
550
|
|
|
498
551
|
private touchDown(time: number): void {
|
|
552
|
+
// Each press reads the rendered boxes once, before the drag needs them.
|
|
553
|
+
this.measureGeometry();
|
|
499
554
|
this.landBase(time);
|
|
500
555
|
this.released = false;
|
|
501
556
|
this.pendingTravel = false;
|
|
@@ -1011,6 +1066,7 @@ export function useSwitchTouch(
|
|
|
1011
1066
|
isInteractive,
|
|
1012
1067
|
isDisabled,
|
|
1013
1068
|
trackSize,
|
|
1069
|
+
thumbSize,
|
|
1014
1070
|
otherTrackProps,
|
|
1015
1071
|
}: SwitchTouchOptions,
|
|
1016
1072
|
): void {
|
|
@@ -1037,6 +1093,15 @@ export function useSwitchTouch(
|
|
|
1037
1093
|
controller.setGeometry(geometry);
|
|
1038
1094
|
}, [controller, geometry]);
|
|
1039
1095
|
|
|
1096
|
+
// Syncs the controller's default thumb sizes with the switch's size.
|
|
1097
|
+
const thumbOff = thumbSize?.off;
|
|
1098
|
+
const thumbOn = thumbSize?.on;
|
|
1099
|
+
useIsomorphicLayoutEffect(() => {
|
|
1100
|
+
controller.setDefaultThumb(
|
|
1101
|
+
thumbOff == null || thumbOn == null ? null : {off: thumbOff, on: thumbOn},
|
|
1102
|
+
);
|
|
1103
|
+
}, [controller, thumbOff, thumbOn]);
|
|
1104
|
+
|
|
1040
1105
|
// Syncs whether the controller's gestures take a press.
|
|
1041
1106
|
useIsomorphicLayoutEffect(() => {
|
|
1042
1107
|
controller.setInteractive(isInteractive);
|
package/src/TabList/Tab.tsx
CHANGED
|
@@ -214,16 +214,22 @@ const styles = stylex.create({
|
|
|
214
214
|
justifyContent: 'center',
|
|
215
215
|
flexShrink: 0,
|
|
216
216
|
},
|
|
217
|
+
// The label and its semibold sizer share one cell. A wrapped label can take
|
|
218
|
+
// fewer lines than the sizer, so both center in the cell: selection then
|
|
219
|
+
// does not move the label.
|
|
217
220
|
labelContainer: {
|
|
218
221
|
display: 'inline-grid',
|
|
222
|
+
textAlign: 'center',
|
|
219
223
|
},
|
|
220
224
|
labelText: {
|
|
221
225
|
gridRowStart: 1,
|
|
222
226
|
gridColumnStart: 1,
|
|
227
|
+
alignSelf: 'center',
|
|
223
228
|
},
|
|
224
229
|
labelSizer: {
|
|
225
230
|
gridRowStart: 1,
|
|
226
231
|
gridColumnStart: 1,
|
|
232
|
+
alignSelf: 'center',
|
|
227
233
|
visibility: 'hidden',
|
|
228
234
|
pointerEvents: 'none',
|
|
229
235
|
fontWeight: fontWeightVars['--font-weight-semibold'],
|
package/src/Table/BaseTable.tsx
CHANGED
|
@@ -77,6 +77,10 @@ import {TableCell} from './TableCell';
|
|
|
77
77
|
import {TableHeaderCell} from './TableHeaderCell';
|
|
78
78
|
import {TableHeader} from './TableHeader';
|
|
79
79
|
import {TableBody} from './TableBody';
|
|
80
|
+
import {
|
|
81
|
+
bodyRowPlacement,
|
|
82
|
+
TableRowPlacementContext,
|
|
83
|
+
} from './TableRowPlacementContext';
|
|
80
84
|
import {mergeProps} from '../utils';
|
|
81
85
|
import {useMergedRefs} from '../hooks/useMergedRefs';
|
|
82
86
|
import {internByIdentity} from './internByIdentity';
|
|
@@ -112,9 +116,23 @@ const styles = stylex.create({
|
|
|
112
116
|
borderCollapse: 'collapse',
|
|
113
117
|
borderSpacing: '0',
|
|
114
118
|
tableLayout: 'fixed',
|
|
119
|
+
// Fixed layout sets the columns, so a wrap cell's long token may break at
|
|
120
|
+
// any letter to stay inside its cell, flex rows inside the cell included.
|
|
121
|
+
// Only wrap cells read this (`wrapStyles`); panel and empty rows do not.
|
|
122
|
+
'--_table-cell-word-break': 'break-word',
|
|
123
|
+
// A heading wraps like the body cells (`headerOverflowStyles`). Set here
|
|
124
|
+
// too, so a table nested in a children-mode table does not inherit nowrap.
|
|
125
|
+
'--_table-header-white-space': 'normal',
|
|
115
126
|
},
|
|
116
127
|
tableAutoLayout: {
|
|
117
128
|
tableLayout: 'auto',
|
|
129
|
+
// Automatic layout sizes each column from its longest word. A word-break
|
|
130
|
+
// inherited from an ancestor, such as a chat bubble, would shrink that
|
|
131
|
+
// word to one letter, so the table sets its own.
|
|
132
|
+
wordBreak: 'normal',
|
|
133
|
+
'--_table-cell-word-break': 'normal',
|
|
134
|
+
// Each column grows to keep its heading on one line.
|
|
135
|
+
'--_table-header-white-space': 'nowrap',
|
|
118
136
|
},
|
|
119
137
|
/**
|
|
120
138
|
* Inline flex row that keeps the header label and any "after" slot content
|
|
@@ -126,6 +144,18 @@ const styles = stylex.create({
|
|
|
126
144
|
alignItems: 'center',
|
|
127
145
|
gap: spacingVars['--spacing-1'],
|
|
128
146
|
minWidth: 0,
|
|
147
|
+
// The row may use the header cell's inline-end padding, but not cross the
|
|
148
|
+
// cell's edge.
|
|
149
|
+
maxWidth: 'calc(100% + var(--_table-header-end-room, 0px))',
|
|
150
|
+
},
|
|
151
|
+
// The label gives up width first, so the "after" controls stay inside the
|
|
152
|
+
// cell and can be reached when the column is narrow. The row already took
|
|
153
|
+
// the cell's end room, so the label's content gets none.
|
|
154
|
+
headerLabel: {
|
|
155
|
+
'--_table-header-end-room': '0px',
|
|
156
|
+
minWidth: 0,
|
|
157
|
+
overflow: 'hidden',
|
|
158
|
+
textOverflow: 'ellipsis',
|
|
129
159
|
},
|
|
130
160
|
});
|
|
131
161
|
|
|
@@ -910,7 +940,7 @@ function BaseTableInner<T extends Record<string, unknown>>({
|
|
|
910
940
|
|
|
911
941
|
const labelRow = isRenderable(after) ? (
|
|
912
942
|
<div {...stylex.props(styles.headerLabelRow)}>
|
|
913
|
-
{resolvedContent}
|
|
943
|
+
<span {...stylex.props(styles.headerLabel)}>{resolvedContent}</span>
|
|
914
944
|
{after}
|
|
915
945
|
</div>
|
|
916
946
|
) : (
|
|
@@ -1090,43 +1120,51 @@ function BaseTableInner<T extends Record<string, unknown>>({
|
|
|
1090
1120
|
) {
|
|
1091
1121
|
const item = data[rowIndex];
|
|
1092
1122
|
const rowIdentity = identity[rowIndex];
|
|
1123
|
+
// The row's stripe comes from its display index: the
|
|
1124
|
+
// index skips expansion panels and stays right when
|
|
1125
|
+
// the table is windowed or re-sorted. The provider
|
|
1126
|
+
// sits outside the memoized row. A re-sort that keeps
|
|
1127
|
+
// a row's cells still updates its stripe.
|
|
1093
1128
|
rows.push(
|
|
1094
|
-
<
|
|
1129
|
+
<TableRowPlacementContext
|
|
1095
1130
|
key={rowIdentity.reactKey}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
columnLayout={columnLayout}
|
|
1112
|
-
onRowFocus={
|
|
1113
|
-
windowPlan.isWindowed
|
|
1114
|
-
? windowPlan.onRowFocus
|
|
1115
|
-
: undefined
|
|
1116
|
-
}
|
|
1117
|
-
onRowBlur={
|
|
1118
|
-
windowPlan.isWindowed
|
|
1119
|
-
? windowPlan.onRowBlur
|
|
1120
|
-
: undefined
|
|
1121
|
-
}
|
|
1122
|
-
ariaRowIndex={
|
|
1123
|
-
windowPlan.isWindowed
|
|
1124
|
-
? headerRowCount + rowIndex + 1
|
|
1125
|
-
: ariaRowIndexingEnabled
|
|
1126
|
-
? firstRowAriaIndex + rowIndex
|
|
1131
|
+
value={bodyRowPlacement(rowIndex)}>
|
|
1132
|
+
<MemoizedTableRow<T>
|
|
1133
|
+
item={item}
|
|
1134
|
+
rowIndex={rowIndex}
|
|
1135
|
+
rowKey={rowIdentity.reactKey}
|
|
1136
|
+
contextIdentity={rowIdentity}
|
|
1137
|
+
renderContext={renderContext}
|
|
1138
|
+
columns={resolvedColumns}
|
|
1139
|
+
plugins={plugins}
|
|
1140
|
+
textOverflow={textOverflow}
|
|
1141
|
+
RowComponent={RowComponent}
|
|
1142
|
+
CellComponent={CellComponent}
|
|
1143
|
+
rowHeight={
|
|
1144
|
+
windowPlan.isWindowed
|
|
1145
|
+
? config?.rowHeight
|
|
1127
1146
|
: undefined
|
|
1128
|
-
|
|
1129
|
-
|
|
1147
|
+
}
|
|
1148
|
+
columnLayout={columnLayout}
|
|
1149
|
+
onRowFocus={
|
|
1150
|
+
windowPlan.isWindowed
|
|
1151
|
+
? windowPlan.onRowFocus
|
|
1152
|
+
: undefined
|
|
1153
|
+
}
|
|
1154
|
+
onRowBlur={
|
|
1155
|
+
windowPlan.isWindowed
|
|
1156
|
+
? windowPlan.onRowBlur
|
|
1157
|
+
: undefined
|
|
1158
|
+
}
|
|
1159
|
+
ariaRowIndex={
|
|
1160
|
+
windowPlan.isWindowed
|
|
1161
|
+
? headerRowCount + rowIndex + 1
|
|
1162
|
+
: ariaRowIndexingEnabled
|
|
1163
|
+
? firstRowAriaIndex + rowIndex
|
|
1164
|
+
: undefined
|
|
1165
|
+
}
|
|
1166
|
+
/>
|
|
1167
|
+
</TableRowPlacementContext>,
|
|
1130
1168
|
);
|
|
1131
1169
|
}
|
|
1132
1170
|
return rows;
|