@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,339 @@
|
|
|
1
1
|
# @xds/core
|
|
2
2
|
|
|
3
|
+
# 0.7.17
|
|
4
|
+
|
|
5
|
+
#### Experimental APIs
|
|
6
|
+
|
|
7
|
+
- Adds two English catalog messages for the Lab media player's visible time readouts (elapsed and total, and remaining time), so a locale can translate them.
|
|
8
|
+
|
|
9
|
+
#### New Features
|
|
10
|
+
|
|
11
|
+
- AlertDialog: under a finger the alert appears and leaves the way an iOS alert does. It scales down into place from 1.2 while it and the dimming fade in, on the theme's entrance timing. When it closes it fades out with the dimming, on the theme's exit timing, and a close or a reopen midway turns back from where it is. While it appears a touch does nothing, and keys and assistive technology still act. While it leaves nothing reaches it, but a toast its action raised stays live and its words are read. With reduced motion it only cross-fades. On a phone (a compact window under a coarse pointer) the width with no `width` prop goes from 400 px to 320 px in every theme; a `width` you pass still wins. With a mouse nothing changes.
|
|
12
|
+
- A Button whose label is cut short in a narrow row shows its full label in a tooltip when keyboard focus reaches it, and a ToggleButton's cut label now shows an ellipsis. Labels that fit look the same and show no tooltip, and screen readers hear the name once.
|
|
13
|
+
- Chat surfaces now default to the container radius: `--radius-chat` defaults to `var(--radius-container)` instead of `28px`, a theme that sets `--radius-container` but not `--radius-chat` declares the alias at its root, and a radius scale no longer sets `--radius-chat` (it set the page step), so chat follows the theme's container, also where the theme sets its container over the scale. This changes the corners of ChatComposer, its drawer and status bar, and ChatMessageBubble, and the buttons inside the composer take their normal corners. The send button stays circular inside a composer, as it is outside one: a theme whose composer corner made the send button a rounded square (controls taller than 32px, or a chat corner under 28px) now draws a circle, unless it sets the `chat-send-button` radius. Butter, Chocolate, Gothic, Matcha, Neutral and Stone set `--radius-chat: 28px`, and Butter keeps its 16px send-button corner, so they look the same; Y2K sets `--radius-chat: 0px` and stays square. A theme that extends one of them keeps that chat radius. To keep the 28px chat corners in another theme, add `--radius-chat: 28px` to its tokens. Set the token in the theme rather than on an ancestor such as `:root`: a theme scope that declares it now replaces an inherited value.
|
|
14
|
+
- Component docs: `playground.mobile` holds the props of a second render at a phone viewport, merged over `defaults`, for a component whose layout changes at phone width; the theme editor's part census renders it too. AppShell declares its mobile layout there (the menu button in the top bar, the open drawer); its playground defaults are unchanged.
|
|
15
|
+
- Banner gives themes two more parts: `banner-message` (the title and description together) and `banner-title`. The default status icon no longer sits in an extra box, so a theme that hides `banner-icon` leaves no empty gap before the message. A theme can now draw a one-line alert with no icon; one space separates the title and the description in every banner, so the gap between them is the same on one line. The four built-in statuses look the same. A status with no default glyph and no `icon` loses the empty 8px space before its message.
|
|
16
|
+
- `defineTheme({palette})`: a theme can take its color tokens from a few seeds. `themePalette({accent, neutral, success, warning, danger, info, vibrancy, recipe})` from the new `@astryxdesign/core/palette` entry generates the palette and maps it to the color tokens the CLI theme editor sets for the same color settings (surfaces, text, borders, icons, the accent and the status colors); explicit `tokens` and `components` still win, one by one. A palette that names no recipe runs `astryx-oklch-v1`. With a `neutral` seed, a pinned recipe keeps the generated shades across upgrades. Without one, the surfaces are Core's defaults, so shades picked by contrast against them follow the installed Core, as does secondary text lifted on a tinted part. Only apps that import `@astryxdesign/core/palette` ship the generator. The entry also exports `generateTonalPalette()` and its types.
|
|
17
|
+
- Text inside a `Theme` that sets no line height of its own now uses the theme's body leading (`--text-body-leading`), as Core's own body text does, instead of the reset's 1.5. Plain text in a Card or Stack and a Blockquote's quote follow the theme's line height and move when a theme changes it. Core parts that set a text role's size now also set that role's leading, so none of them draws on an inherited line height (inline `Code` keeps the line of the text around it, and a few parts keep a fixed line height they are measured or aligned to: the Selector trigger, the Stepper step description and the chat composer): Table cells, header cells and row index numbers, Calendar month heading, day, weekday and week-number text, the touch date and time fields' titles, weekdays and wheels, Stepper step text, Pagination, Collapsible titles, Command Palette items, Dropdown and nav menu items, Selector and MultiSelector items and empty states, the MultiSelector trigger's overflow count, the PowerSearch nested editor's root label, the Typeahead empty state, the chat trigger menu's empty and loading states, the chat system message and pasted-text details, Code Block sizes, Empty State compact text, Segmented Control and Token small sizes, the Switch description, the top nav menu's item descriptions, the chevron in a breadcrumb item's menu trigger, the Avatar Group overflow count, the skip link, Tokenizer and Slider labels. With the default theme, 14px text moves from 21px to 20px lines; 12px text in these parts moves to 20px lines (the supporting leading), from 18px or about 17px; 12px text that only inherits moves from 18px to about 17px; 17px text such as Collapsible titles moves from 25.5px to 24px; the Avatar Group overflow count's line grows inside its fixed circle. Inherited text outside a Theme is unchanged; the listed parts take their role's leading wherever they render, also outside a Theme.
|
|
18
|
+
To keep the old lines: for inherited text, set a line-height on your own container inside the Theme, or set `--text-body-leading` in your theme (which also sets Core's own body text). The listed parts follow their role's leading token instead (`--text-body-leading`, `--text-label-leading`, `--text-supporting-leading`, `--text-large-leading` or `--text-code-leading`): set that token in your theme, or style the part through its theming target.
|
|
19
|
+
- LayoutContent names the container it sits in (`data-container="dialog"`, `"card"` or `"bottom-sheet"`), as LayoutHeader and LayoutFooter do, so a theme can style a dialog's body apart from its header and footer through `layout-content` with `container:dialog`, for a full-bleed title bar over a padded body and a footer bar. The Dialog's own LayoutContent takes it, an AlertDialog's body included.
|
|
20
|
+
- MobileNav's painted drawer panel carries its own theme target, `mobile-nav-drawer`, with the resolved `side`, so a theme can give the panel a surface and text colors without painting the full-screen overlay behind it. The default look does not change.
|
|
21
|
+
- Themes can draw Pagination's controls as one joined strip. The control row carries `pagination-list`, each of its Button controls carries `pagination-item` (the current page's reflects `data-selected`), and the ellipsis carries `pagination-ellipsis`. On the cells, `pagination-item` competes with the theme's `button` entries: its base rule loses to a `button` entry keyed on variant, size or elevation, and its hover and selected rules weigh the same as a one-key `button` rule, so the later one in the theme wins. The default look does not change.
|
|
22
|
+
- Themes can reach parts that painted with no target of their own. The default look does not change.
|
|
23
|
+
- Each key badge in Kbd carries `kbd-key`.
|
|
24
|
+
- The Typeahead result popup carries `typeahead-popup`.
|
|
25
|
+
- Calendar's range band and hover-preview band carry `calendar-range` and `calendar-range-preview`, with `start` and `end` on the first and last day.
|
|
26
|
+
- BottomSheet's grab bar carries `bottom-sheet-handle`.
|
|
27
|
+
- AlertDialog's title and description carry `alert-dialog-title` and `alert-dialog-description`, and a theme's `heading` and `text` rules no longer reach them. A theme that styled them through `heading` or `text` keeps that look by repeating those rules on `alert-dialog-title` and `alert-dialog-description`.
|
|
28
|
+
- LayoutHeader and LayoutFooter reflect `container` (`card`, `dialog` or `bottom-sheet`), so a theme can style a dialog's header without a card's.
|
|
29
|
+
- ToggleButton reflects `grouped` inside a ToggleButtonGroup.
|
|
30
|
+
- An accent Link's hover color reads `--link-hover-color` when a container or theme sets it.
|
|
31
|
+
- Themes can reach four more parts. The default look does not change.
|
|
32
|
+
- A theme's `spinner` indicator replaces the ring a Spinner turns.
|
|
33
|
+
- A theme's `tree-disclosure` indicator replaces a TreeList row's rotating chevron with a mark for each state.
|
|
34
|
+
- NumberInput's stepper buttons carry `number-input-stepper` with `direction` (`increment` or `decrement`).
|
|
35
|
+
- The close buttons of Toast and Banner carry `toast-close` and `banner-close`, so a theme can style them apart from other buttons. Toast's close button draws in the toast's text color; Banner's keeps its status text color.
|
|
36
|
+
- TopNavHeading carries `data-mode="drawer"` when TopNav draws it as the phone menu's title, as TopNavItem already does, so a theme keys the menu's title with `mode:drawer` (for example a heading colored for a dark top bar, kept readable on the menu's own surface). In the bar it carries no `mode`; nothing else changes.
|
|
37
|
+
- A Markdown heading's copy-link button now shows when the clipboard write fails, as CodeBlock's copy button does: the `#` becomes a cross for 1.5 seconds, and the button is named and announces "Failed to copy value to clipboard." It used to fail silently and leave `#` unchanged. The error itself is not shown.
|
|
38
|
+
- On a phone or tablet, TextInput, TextArea and NumberInput keep themselves above the on-screen keyboard, with nothing to turn on. A field in a page that scrolls is scrolled 10 px above the keyboard as it opens, rising with the keyboard on iOS and at once under Reduce Motion; on a page with nothing to scroll, the browser's own reveal stays. When the keyboard closes, the page or scroll area goes back to where it was, sliding down with the keyboard on iOS, unless the person scrolled it meanwhile. In Firefox for Android on a slow device, Back can sometimes leave the page where the reveal scrolled it. A field in a scrolling area is scrolled 10 px above the keyboard when the area can bring it there; otherwise the page brings it into view. A field in a bar fixed at the bottom of the viewport rides up with the keyboard, the bar's bottom on the keyboard's top, and back down when it closes, even in a bar the app owns. A field inside a fully expanded Tall BottomSheet leaves that to the sheet. In a fixed container the app positions itself, such as a full-viewport dialog, a floating bar or a bar with its own `translate`, a scroller around the field brings it above the keyboard when it can; otherwise the page brings it into view, or the browser's own reveal does. In Firefox for Android, where the page cannot scroll further, a field the page should bring into view can stay under the keyboard. Nothing changes under a mouse or a trackpad.
|
|
39
|
+
- Under a finger, a full swipe on an `Item` or `ListItem` swipe-action row works like a UIKit list row's, the same on every touch device. Past the open width the entries ride the row and the outermost action stretches out to the edge. Dragged on past the confirm point, judged on the finger as UIKit does, the row runs ahead and the outermost action covers its place. Letting go there fires it at any speed; backing out undoes that and closes the row. On a side with two or more actions, a full swipe confirms only from the open row. A disabled outermost action never confirms.
|
|
40
|
+
- A trackpad's two-finger swipe moves an `Item` or `ListItem` swipe-action row with the fingers from its first event past 8 px and, when they lift, settles it on the nearest stop at their speed, without stopping first. Within one swipe an open row only closes, and a long fast swipe fires the outermost action where a full swipe may. A mouse wheel's notches never swipe a row.
|
|
41
|
+
- Under a finger, swipe actions on `Item` and `ListItem` move like a UIKit list row, the same on every touch device. The row stays under the finger, one for one, until the release, and settles on UIKit's own spring from where it is and as fast as it was moving, so a release no longer stops dead and restarts. The settle plays on the compositor, so a busy page cannot hold it back. A flick opens the row or closes it, by its direction. Under Reduce Motion nothing a release starts travels or springs: the row cross-fades to where it lands, as `design:reduced-motion` asks. A finger that lands on a moving row catches it instead of being ignored until the row stops.
|
|
42
|
+
- Pagination: page links. Pass `getPageHref` and the page number, previous, next, first and last controls render as real links to each page's URL, so a page opens in a new tab, its address can be copied, and it works before scripts load. `getPageHref(page, pageSize)` returns the URL in the shape your app uses: a query parameter, a path segment, an offset or a cursor. `as` sets the link component, as on Button, and `LinkProvider` applies too. `onChange` still runs when a link is activated: use it for state or analytics, and do not navigate in it, because the link navigates. The dots, the page box and the page-size selector are not links and work as before. A control that stops being a link while it holds focus, at the first or last page or while the pagination is disabled, keeps that focus. A Pagination without `getPageHref` is unchanged.
|
|
43
|
+
- Pagination's first and last controls in the row reflect `data-first="first"` and `data-last="last"` on their `pagination-item` target, so a theme that joins the controls into one strip can round the outer corners on the end cells and leave out the separator after the last. The default look does not change.
|
|
44
|
+
- `usePopover` takes an `anchorRef`: a ref to the element the popover sits on when it is not the control that opens it. Any element with a CSS box works (an HTML element such as a card or a table cell, or an `<svg>` element; a shape inside an `<svg>` warns in development). The trigger keeps its toggle and ARIA, and the anchor gets neither. The ref is read when the popover opens, on each render of your component, and on each `show()`, so a popover with `hasLightDismiss: false` moves between rows without closing when you set `anchorRef.current` and call `show()`. With light dismiss on, the press on the other row closes the popover first, and `show()` opens it again on the new element. A `show()` before the ref holds an element waits, and opens when the ref is next read and holds one. A composition with an anchor and no trigger opens through `show()`. The `Popover` component and its own `anchorRef` are unchanged.
|
|
45
|
+
- Stepper: the current step's `step`, `step-indicator` and `step-label` targets carry the `selected` theme state, the state tabs, side and top navigation and segmented controls use for their chosen item, so a theme can give the current step a selected look with a `selected` rule on those targets. Screen readers still hear "current step".
|
|
46
|
+
- Swipe actions on `Item` and `ListItem` come from one prop, `swipe`, whose value `createSwipe` makes, from `@astryxdesign/core/Swipe` or the package root: `swipe={createSwipe({leading, trailing, swipeBehavior})}`. Each action has an `id`, and its `onActivate` receives `{id, itemKey}`: the action's `id` and the `ListItem`'s `itemKey`. So one definition at module scope serves every row; one whose handlers need component state goes in `useMemo`. The swipe's type carries the ids, so an id it does not have fails to compile. A new value with the same ids keeps an open row open, and one with other ids closes it. The swipe's code comes with `createSwipe`, so a row given `swipe` is swipeable at its first paint, and an app that never imports it ships none of it. The `swipeActions` and `swipeBehavior` props and the `ItemSwipeAction` and `ItemSwipeActions` types are deprecated (DEP-0017) and are removed in the next minor release. `ItemSwipeActionVariant` and `ItemSwipeBehavior` stay, and the new API uses them. Until then the deprecated ones keep working, with the swipe behavior this release gives every row, and when `swipe` is set too, `swipe` wins. `astryx upgrade` rewrites static uses and gives each action an `id`.
|
|
47
|
+
Before:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
<ListItem
|
|
51
|
+
label="Inbox"
|
|
52
|
+
swipeActions={{trailing: [{label: 'Archive', onActivate: archive}]}}
|
|
53
|
+
swipeBehavior="commit"
|
|
54
|
+
/>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
After:
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
import {createSwipe} from '@astryxdesign/core/Swipe';
|
|
61
|
+
|
|
62
|
+
const inboxSwipe = createSwipe({
|
|
63
|
+
trailing: [
|
|
64
|
+
{
|
|
65
|
+
id: 'archive',
|
|
66
|
+
label: 'Archive',
|
|
67
|
+
onActivate: ({itemKey}) => archive(itemKey),
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
swipeBehavior: 'commit',
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
<ListItem label="Inbox" itemKey={message.id} swipe={inboxSwipe} />;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- A table header cell whose heading is cut short shows the full heading in a tooltip when keyboard focus reaches a sortable header's sort control; a mouse hover shows nothing, as before. Headings that fit show no tooltip, and screen readers hear the heading once.
|
|
77
|
+
- A data-driven Table's column headings now follow its `textOverflow`, like the body cells. Under the default `wrap`, a heading longer than its column wraps onto more lines instead of ending in an ellipsis, so on a phone each column still says what it holds. Children-mode tables keep each heading on one line and grow its column to fit it, as before. Under `textOverflow="truncate"`, headings stay on one line and end in an ellipsis, as before.
|
|
78
|
+
- A body row of a data-driven `Table` carries the `table-row` target's `parity` (`data-parity="odd"` for the first, third, … row; `"even"` for the others), and every row an `isStriped` table may stripe (body and footer rows, not the header row) carries its `striped` state, so a theme can style either stripe, for example odd-row striping only where the app stripes: `components: {'table-row': {'parity:odd+striped': {backgroundColor: '#f9f9f9'}, 'parity:even+striped': {backgroundColor: 'transparent'}}}` (the second rule clears Core's own even stripe; in a `hasHover` table it also replaces Core's hover color on those rows, so give the stripe rules a `:hover` of their own to keep one). Core's own stripe stays on even rows and the default look is unchanged. Rows a caller places in a `TableBody` (children mode) carry `striped` but no `parity`. A theme's background on `table-row` (a stripe, or a hover) also reaches a pinned column (`useTableStickyColumns`), whose cells replay the row's fill; Core's theme build now lowers a component's pseudo-class blocks (`:hover`) like its resting rule: derived variables, container padding and `replaces`; pseudo-element blocks stay as written.
|
|
79
|
+
- A table row that `useTableSelection` selects carries the `table-row` target's `selected` theme state, so a theme can style selected rows (`components: {'table-row': {selected: {…}}}`). The selection wash stays as it was; a theme recolors it by setting `--color-accent-muted` in that state.
|
|
80
|
+
- A theme's component overrides can hold `@light` and `@dark` blocks: properties, pseudo-class overrides and pseudo-elements that apply only where the element's color mode is that mode, as `Theme` resolves it from its own `mode`, the system preference, or a `MediaTheme` surface. Inside media surfaces the nearest surface decides, for up to five surfaces of alternating modes nested one in another, so a light `MediaTheme` inside a dark one (a toast over a dark surface) takes only the light block. Where no enclosing mode matches, the block writes nothing, so every other rule applies there as it would without it, and it can be any value, not only a color. Themes without these blocks compile to the same CSS.
|
|
81
|
+
- TopNavMenu items and TopNavMegaMenuItem take `hasCloseOnSelect` (default true), as DropdownMenuItem does: set it to false to keep the menu open after a pick, for an action that reports its result on the item.
|
|
82
|
+
|
|
83
|
+
#### Fixes
|
|
84
|
+
|
|
85
|
+
- `AppShell`: on a phone, when the theme keeps the standard width points, a server-rendered page no longer shows the inline side navigation for a moment while its script loads. The menu toggle still arrives with the script.
|
|
86
|
+
- `AvatarGroupOverflow` takes a caller's `aria-label` as its name. Before, the translated "{count} more" always replaced it, so a builder could not give the indicator a fuller name such as "Show 5 more teammates". A caller `aria-labelledby` still names it, and with neither the translated count does.
|
|
87
|
+
- `Badge` is as wide as its label. A badge alone in a `Grid` cell or a `VStack` no longer stretches into a bar across the cell or the stack; in a crowded `HStack` it still shrinks and ends its label with an ellipsis.
|
|
88
|
+
- A Breadcrumbs menu crumb's menu keeps its gap below the crumb and slides in from it again in published builds, and keeps the viewport gutter on its far edge.
|
|
89
|
+
- Calendar's weekday names no longer run into each other when a theme sets a larger text size or smaller element sizes. Each weekday column is at least as wide as its name. In a Calendar wider than its natural width, each weekday name now sits at the centre of its day column; at its natural width the Calendar looks the same.
|
|
90
|
+
- ChatComposer keeps its send action inside the composer on a narrow screen. When the footer actions are wider than the footer, they wrap onto more lines inside the composer instead of pushing the send button past its edge; an action too wide for a line of its own is shortened with an ellipsis. Wide composers look the same as before.
|
|
91
|
+
- In development, `ChatToolCalls`, `ChatDictationButton` throw an error that names a missing required prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
92
|
+
- `ChatToolCalls` inside a `ChatMessage` now truncates a long target with an ellipsis on a narrow screen, instead of running past the message column.
|
|
93
|
+
- The chat composer's @-mention and slash-command menu resolves its default "No results" message through the locale catalog, so a translation supplied to `InternationalizationProvider` replaces it. Before, it was a fixed English string. A trigger's own `emptySearchText` still wins.
|
|
94
|
+
- ChatComposerDrawer rounds its top corners and its tuck under the composer with the composer corner, so a theme that sets `chat-composer` borderRadius moves the drawer with the composer. Outside a ChatComposer the drawer still uses `--radius-chat`. Shipped themes look the same.
|
|
95
|
+
- A required `CheckboxInput` is no longer announced as invalid before anyone touches it. Chromium reported an unchecked required checkbox as invalid from its first render, so a screen reader said "invalid" on every required checkbox of a fresh form. The invalid state now follows `status`, as on `Switch`, and native validation still blocks a form submitted with the box unchecked.
|
|
96
|
+
- A theme sets the room between a checkbox or a switch and its label with `gap` on the `checkbox-input` or `switch-field` target, for example `components: {'checkbox-input': {base: {gap: '3px'}}}`. Before, that gap sat on an inner row no target reaches, so the only way to change it was the `--spacing-2` token, which also changed the status message's padding. The default room stays 8px, and a hidden label still keeps no gap.
|
|
97
|
+
- Citation: a label citation with a source icon no longer rides above the line inside a sentence; it now sits centred on the line, as a label without an icon already did. A paragraph that contains an icon citation can be 2 px taller. A number citation stays a superscript.
|
|
98
|
+
- In development, `Citation` throws an error that names the `source` prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
99
|
+
- `CodeBlock`'s and `Timestamp`'s copy buttons no longer update after they unmount: a clipboard write that finishes once the control is gone sets no state, starts no timer and announces nothing.
|
|
100
|
+
- Copy works inside a frame that does not allow the async Clipboard API, such as a sandboxed artifact viewer or an embed. There `useClipboard`, and so the copy buttons of `CodeBlock`, `Timestamp` and Markdown heading links, copy with the browser's copy command inside the reader's click or key press, also in an open modal dialog or a hover card, without moving focus. Before, those buttons copied nothing there (`CodeBlock` and `Timestamp` showed a failed copy), and the browser logged a permissions-policy violation for each press. Where the async Clipboard API is allowed, nothing changes.
|
|
101
|
+
- CodeBlock's run-time highlight stylesheet now sits in the `astryx-base` cascade layer, like the rest of Core's CSS. A theme's syntax colours and an app's own `--color-syntax-*` or `::highlight()` rules now win over CodeBlock's defaults in any load order, also for a CodeBlock in a portal under a root Theme.
|
|
102
|
+
- In development, `CodeBlock` throws an error that names the `code` prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
103
|
+
- On right-to-left pages, CodeBlock and Code keep code in its own direction: punctuation stays where it was written, a long left-to-right line starts at the visible edge and scrolls toward its end, and inline code inside right-to-left text reads in source order. Each code line takes its direction from its first letter, on any page, so a line that starts with an Arabic or Hebrew letter reads right to left from the line's end (when it is wider than an unwrapped block, its start sits at the far end of the scroll); other code looks the same on left-to-right pages. CodeBlock's line-number gutter, header and controls still follow the page.
|
|
104
|
+
- `CodeBlock` scrolls a long line, or code past `maxHeight`, before script runs and in a page that runs none, such as a file made with `astryx experimental render`. Until now the code was cut off at the edge of the block until script measured it, and in a static page it stayed cut off. The code viewport still becomes a Tab stop only while its code overflows.
|
|
105
|
+
- Core's compact StyleX media key matched at exactly the `md` width point (768px) and at exactly 500px tall, because StyleX rewrites `(width < 768px)` to a length the browser rounds up to 768px. The key now matches only below those edges, as the compact definition says, and Core spells every range-syntax width and height edge through one set of helpers. No component uses the key yet, so nothing changes on screen.
|
|
106
|
+
- ContextMenu: in a bottom sheet, a data sub-menu whose label is not a plain string (for example emphasized text) now names the sheet after that label's text while its level shows, as DropdownMenu does. Back returns the root name.
|
|
107
|
+
- A CodeBlock title or language label too long for its header wraps before Copy and any caller controls, at a space or anywhere in a long file name, instead of running under them on a narrow block or with a wide code font.
|
|
108
|
+
- `defineTheme` names a token map that holds itself ("tokens refers to itself: the value of self holds an object it sits in …") instead of recursing until the call stack overflows, when the theme extends one with adaptations. Themes whose tokens hold no such loop build as before.
|
|
109
|
+
- A Dialog's and a Drawer's header row now contains its title, close button and end content. A theme that paints the header row (a title bar) no longer sees the title spill above and below it. Every slot stays where it was, so a theme that leaves the row unpainted draws the same pixels.
|
|
110
|
+
- Text that sets no color of its own (such as a selected nav row) in an open MobileNav, Dialog, Drawer or BottomSheet now draws in the theme's text color. Before, it took the browser's dialog default, which ignores the theme and drew black on dark panels. A Toast's text takes the side that reads best on its card, and the default top-layer viewport passes the page's text color down instead of the browser's. A dark-mode error toast now reaches 4.5:1. Before, it read about 4:1 in an in-place viewport.
|
|
111
|
+
- `defineTheme({extends})` refuses a base written as a plain theme object (a name and tokens, not built by `defineTheme()`) with the named "`extends` must be a theme from defineTheme()" error. Before, it merged the object's raw values, so a light/dark pair was written as `#fff,#000`. A base from `defineTheme()` or a built theme module merges as before.
|
|
112
|
+
- A toast shown from inside a `Theme` with no `LayerProvider` draws under that Theme and its mode, and follows it while the Theme is mounted, so its text reads even when the host page rewrites `<html data-astryx-theme>` (an artifact viewer that themes its own frame). A toast shown with no Theme around it still follows `<html>`. A toast that replaces another by `uniqueID`, one shown with a Theme and the other without, keeps drawing as the first one did, so the card stays in place.
|
|
113
|
+
- Text inside a `Theme` that sets no size of its own now uses the theme's body size, 14px by default instead of the browser's 16px. Plain text in a Card or Stack, a Blockquote's quote and `Text type="inherit"` follow the theme's `--text-body-size`, as Core's own body text does, and move when a theme changes its text size. Text outside a Theme, and a host app's own styles, are unchanged: `reset.css` sets no font size. To keep 16px inside a Theme, set a font-size on your own container inside it, or set `--text-body-size` in your theme (which also sizes Core's own body text).
|
|
114
|
+
- defineTheme: a typography weight that reaches Core as a number (from a theme written in JavaScript or read from JSON, such as `heading: {weight: 700}`) is written as its text (`700`) everywhere it is read. A theme that extends a base with adaptation rules now builds instead of failing with "adaptations.rules[0]… must resolve to a concrete CSS string". The `FontWeight` type does not change.
|
|
115
|
+
- The active option of a select, multi-select and typeahead list (the one the keyboard or pointer is on, named by `aria-activedescendant`) carries a `highlighted` theme state on its row target, as Item and CommandPaletteItem rows do: `selector-option-row`, `multi-selector-option`, and the typeahead's option row, which gets its own target, `typeahead-option` (with `size` and `selected`). A theme can style the highlighted option without a structural selector.
|
|
116
|
+
- The radio's circle (RadioList, the menu radio, and every host of the shared radio indicator), its dot and its pressed layer are drawn at a 50% radius instead of the `--radius-full` pill token, so a theme that squares its pills keeps round radios. A theme that wants square radios overrides the radio component.
|
|
117
|
+
- `Theme`'s runtime style injection hint no longer names a package or an import made up from the theme's name (`@astryxdesign/theme-canvas-editor/built`, `canvas-editorTheme`). It gives the build step, `astryx theme build` on the file that defines the theme with `--detail full`, whose printed import lines bring in the built .js and .css; a theme from an Astryx theme package ships both built.
|
|
118
|
+
- Core's install note no longer tells a project that keeps its Astryx guidance as a project skill (`astryx init --to skills`, or a folder in the project) to run `init`: the setup check also counts the Astryx project skill in `.agents/skills`, `.claude/skills`, or a project folder astryx.config saves (`astryx init --to ./<folder>`), read from the config's text without running it.
|
|
119
|
+
- The switch thumb is drawn at a 50% radius instead of the `--radius-full` pill token, so a theme that squares its pills squares the switch track and keeps a round thumb. A theme that wants a square thumb sets the radius on `switch-thumb`.
|
|
120
|
+
- A theme value left `undefined` in a part's style block, a color-mode block (`@light`, `@dark`), a pseudo-class block, an `onDark`/`onLight` surface or an adaptation rule's parts is now not set, and so is a component, style key or color-mode block left `undefined`, or one whose every value is, as a page token left `undefined` already was: the stylesheet writes nothing for it. In a style key or a color-mode block, the value the theme inherits for that property stays. A restated pseudo-class block still replaces the inherited one whole, even when every value in it is `undefined`: it stays, empty, and its component counts as themed. Before, the stylesheet held the text `undefined` (`padding: undefined;`), which the browser drops, and the inherited value was lost too; in an adaptation rule, `defineTheme` refused the theme. A `null` value keeps its meaning: it replaces an inherited value and is written as it is, and an adaptation rule still refuses it.
|
|
121
|
+
- `defineTheme` treats a local token left `undefined` (in the theme or in an adaptation rule's `localTokens`) as not set, as a token, or a value in a part, surface or adaptation rule, left `undefined` already is: the theme builds and the stylesheet writes nothing for it. Before, it was refused as no CSS string, so a conditional spread or an unset environment value failed the theme. An adaptation rule that writes a local token name no theme in the lineage declares still fails with its name. `localTokens: undefined` at the root is refused by name ("localTokens is undefined: omit the field or pass an object"), as `extends: undefined` is: a root `localTokens` or `extends` left undefined is almost always a failed import.
|
|
122
|
+
- defineTheme: a theme's own token map that holds itself is named as the theme's `tokens`, not as one of the adaptation rules of the theme it extends; and an adaptation rule's value or condition that holds itself is refused by its path (`adaptations.rules[0].value.tokens.self …`) instead of overflowing the stack.
|
|
123
|
+
- A toast's card draws on the right side from the first paint on a system-mode page. Before a script ran, a reader in dark mode saw the info toast with light text on its light card (about 1.1:1). The toast now renders its light-page side and names its dark-page side beside it, and the theme draws that side on a dark page. Themes whose toast surfaces keep one side in both modes write no extra CSS.
|
|
124
|
+
- Toast: before the surface is measured (a server render, a static page), the Toast's text side comes from the theme's own resolved inverted surface color, by the same rule the measurement uses, instead of assuming the surface is dark in light mode. This applies when the inverted surface is an opaque hex, `rgb()`/`rgba()`, `black` or `white` value and the on-dark and on-light colors are hex, `rgb()`/`rgba()`, `black` or `white` values; any other value (such as a translucent surface, `oklch()`, `hsl()` or another named color) still starts from the color mode until the measurement runs. A theme whose inverted surface is a light hex or `rgb()` color in light mode no longer renders a Toast with white text on a white bar until the page runs its script.
|
|
125
|
+
- In dark mode, secondary text on a neutral fill (an unselected SegmentedControl label, AvatarGroup's "+N" count) now meets 4.5:1 contrast on the default surface and on a Card. The default dark `--color-text-secondary` is a little lighter: `#B0B5BB`, was `#AAAFB5`.
|
|
126
|
+
- Under Reduced Motion, releasing a mouse drag on a date or time wheel lands on the nearest row at once instead of gliding to it.
|
|
127
|
+
- In development, `DateRangeInput` throws an error that names the `value` prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
128
|
+
- Dialog: opening a dialog no longer moves focus to a `data-autofocus` field (such as a `TextInput` with `hasAutoFocus`) inside a closed dialog nested in it. A nested dialog's focus request belongs to that dialog alone. Before, a closed nested dialog whose box was still laid out (for example through a display utility class) could take the caret into a field nobody could see.
|
|
129
|
+
- Dialog: a DialogHeader that mounts after the dialog opens now names the dialog, and the name goes away when the header unmounts. A dialog's own `aria-label` or `aria-labelledby` wins, and an `aria-label` that arrives while the header is mounted now names the dialog instead of losing to the header title.
|
|
130
|
+
- `useSpeechRecognition` and `ChatDictationButton`: a page rendered on the server no longer has a hydration mismatch. The server and the render that hydrates its markup both report `isSupported: false`, so they draw the same tree; the dictation button appears in the next render when the browser supports speech recognition.
|
|
131
|
+
- A `DropdownMenu` whose layer opens after its trigger becomes a valid anchor now takes focus as it opens, and fires `onClick` once. A menu in a native `<dialog>` that the page displays closed opens one commit after the press. The menu read that open as refused, so focus stayed on the trigger and `onClick` never fired.
|
|
132
|
+
- DropdownMenu: a mouse press opens a menu whose trigger sits in a same-origin iframe or another window, and the menu stays open through that press's release
|
|
133
|
+
- DropdownMenu: in a bottom sheet opened from the keyboard, focus stays on the row a person moved to when the menu re-renders with a new `items` array, such as after a choice that updates the app's state. It moved back to the first row before. The sheet still focuses its first row when it opens, and its heading when a sub-menu is entered or left.
|
|
134
|
+
Reported by duytbp.
|
|
135
|
+
- A DropdownMenu sub-menu whose `label` is not a string, such as emphasized text or a translated message component, is now named correctly: a drilled-in view is named by the label alone, not by the whole row with its description; a view nested in it names its Back row "Back to" that label; and in a bottom-sheet data menu the sheet takes that label's text as its name while its level shows. Sub-menus with string labels do not change.
|
|
136
|
+
- A layer's exit copy, which a touch close plays on, keeps the padding, border and colors of the element it copies. Before, the browser's popover style padded, bordered and painted it, so a surface with no padding of its own drew its content inset during the close.
|
|
137
|
+
- Field labels use the primary text colour. A label names its control, so it now reads at full strength, while its description and the Optional or Required marker stay in the secondary colour. Before, the label and its description shared one colour.
|
|
138
|
+
- Field labels use the semibold weight. Arial, Helvetica, Liberation Sans, and Segoe UI have no medium face, so a medium label drew in their regular face, at the same weight as its description. The label now draws in the next heavier face: semibold in Segoe UI, bold in Arial, Helvetica, and Liberation Sans. With fonts that have a medium face, such as the Apple and Android system fonts and the first-party theme fonts, labels become one step heavier. CheckboxInput and Switch labels use the same label style and change too.
|
|
139
|
+
- Malformed component icon slot values no longer throw while formatting diagnostics. Invalid fields keep the component fallback without dropping valid sibling fields, and production skips diagnostic formatting.
|
|
140
|
+
- MultiSelector's caller-rendered trigger exposes its disabled state and blocks caller activation handlers, including when read-only or disabled by InputGroup, while remaining focusable.
|
|
141
|
+
- An `Item` with its own `onClick` or `href` no longer rings the whole row when a control in its `startContent` or `endContent` takes focus, and a `Token`'s remove button no longer rings the whole token: each of those tab stops shows one focus ring. Rows that delegate to a nested control, and reorderable rows with a handle, keep their ring as before.
|
|
142
|
+
- Tab moves through a `Popover` or a `DropdownMenu` that opens inside a native `<dialog>` that the page displays closed. Tab and Shift+Tab wrap at the layer's edges, and a `DropdownMenu`'s header and footer are Tab stops again. The focus trap counted every control in a closed dialog as hidden, so it found no Tab stops and held focus in place.
|
|
143
|
+
A closed dialog that the page displays has a box, so its controls are Tab stops. A closed dialog with `display: none` has no box, and its controls stay out of the Tab cycle.
|
|
144
|
+
- A mouse drag in a page shown in a sandboxed frame (such as an embed or a viewer) that is released outside the browser window now ends when the pointer comes back over the frame or presses again. Before, a Slider thumb or a pan stayed held and followed the pointer with no button down.
|
|
145
|
+
- Grid: `columns={{minWidth}}` without `max` no longer overflows a container narrower than `minWidth`. A lone column now shrinks to the container width, as it already did with `max`, so a phone no longer scrolls sideways. In a container that takes its width from its content (an inline-block, or a flex item with no width), an uncapped Grid is now as wide as its content instead of `minWidth`, as a capped Grid already was.
|
|
146
|
+
- `Heading` without a `level` from 1 to 6 renders as an `h2` and warns in development, instead of failing with "Element type is invalid". A numeric string such as `level="3"` keeps rendering its level, and now warns in development.
|
|
147
|
+
- Built-in text in six components that was fixed English now follows the locale. Through the catalog, so a provider's translation or override replaces it: Tokenizer's `+N more` overflow count, Slider's screen-reader "Required", CodeBlock's `<language> diff` header label, the default label of a token made by `useChatPasteAsToken` (the same message the pasted-text chip uses), and the relative-date choices in PowerSearch's popover editor (the touch sheet already translated them). Through the locale's own unit formatting: Timer's elapsed durations, which read `34s`, `2m 08s` and `1h 05m` in English as before and use the locale's unit names elsewhere (German `2 Min., 08 Sek.`). Other English output is unchanged, except that Tokenizer groups the digits of a count of 1,000 or more; Timer's units are never grouped (`1000h 05m`, as before). Shipped locales show English for the new catalog keys until translators add them.
|
|
148
|
+
- `Icon` given its glyph as `name` (as other icon libraries call it) renders that glyph and warns in development to use `icon`, instead of failing with "Element type is invalid". `name` does not reach the DOM.
|
|
149
|
+
- The checkbox check and dash and the radio dot are sized as a share of their box, so a theme that sizes the box through the `checkbox-indicator` or `radio-indicator` target's `width` and `height` gets marks in proportion to it: a 13px box draws a 7.6px check and a 5px round dot, where before the 14px check was squeezed into the box's 11px inside, filling it edge to edge, and the 10px dot nearly filled the circle. The dot is rounded to whole pixels so it stays a circle. The shipped 20px and 24px boxes draw the same pixels as before in every official theme. A theme that sets the box's `borderWidth` directly, rather than through `--border-width`, gets marks slightly smaller or larger by that difference.
|
|
150
|
+
- The slot that holds a checkbox's box or a radio's circle in CheckboxInput and RadioList is as big as the mark itself, instead of a fixed 20 or 24px. A theme that sizes the box (for example 13px) now gets the label right beside it and a pressed layer that fits it, where before the box floated in an empty 24px slot. The hidden input keeps its 20 or 24px hit area (at least 24px on touch screens), centered on the mark, and the focus ring stays on the mark. The shipped look is unchanged. A row is as tall as its mark or its label, whichever is taller: with a 13px box a default-size row goes from 24px to about 20px. A theme with a replacement indicator (`defineTheme({indicators})`) of another size sees its rows tighten: the label moves closer by (24 − size) / 2 px at the default size, the row is as tall as the mark or the label (the probe theme's 16px marks: 24px to about 22px), and the pressed layer matches the mark. A Markdown task item drawn in its list's marker column keeps its checkbox centered on the item's first line at any box size.
|
|
151
|
+
- On an interactive Item or ListItem row (with onClick, href or a delegated control), the current marker (`aria-current`) is now on the element that takes focus, so a screen reader announces "current" when the row's button or link is focused. Before, it sat on the row's root, so a screen reader did not announce it on the focused button or link (WCAG 2.2 SC 4.1.2, Name, Role, Value). Rows whose root takes focus, and rows that are not interactive, keep it on the root. A selected row still carries `data-selected` on its root and looks the same at rest; while it slides past other rows, a selected row now keeps its fill whatever its `aria-current` value.
|
|
152
|
+
- An open swipe-action row on `Item` and `ListItem` closes on a touch tap on its own content, as a UIKit list row does, and that tap no longer activates the row or paints its press. It also closes when the list or the page scrolls, including a scroll that starts on the row itself, unless focus is inside its open panel (the browser may be scrolling a focused entry into view), and it counts as open from the release that opens it, before its spring comes to rest.
|
|
153
|
+
- Swipe actions on `Item` and `ListItem` run on the gesture system. A row claims a sideways touch at 8 px, before a browser commits to scrolling it. From the claim the row follows the finger one for one, so the part under the finger stays under it. A pen now swipes the row as a finger does. A second finger that lands before the claim leaves the touch to the browser's pinch; once the row has claimed its finger, a second finger no longer cancels the swipe. The click a browser synthesizes after a swipe is cancelled at its source instead of being swallowed by a 400 ms timer.
|
|
154
|
+
- In development, `Kbd` without a `keys` string (for example with children, or an array) throws an error that names the prop and shows the fix, instead of a TypeError from inside Kbd, such as "Cannot read properties of undefined (reading 'split')" or "keys.split is not a function". Production output is unchanged.
|
|
155
|
+
- A released input hold no longer changes its layer. A closing BottomSheet's hold reads focus a moment after focus leaves the sheet; if the hold was released in between, that late read could leave the sheet inert and hidden from assistive technology. No browser flow is known to hit this today.
|
|
156
|
+
- Every anchor-positioned layer (Popover, DropdownMenu, Selector, Tooltip, and other `useLayer` surfaces in anchor mode) stays on screen when its trigger runs partly past the viewport edge, such as a control in a panel that scrolls sideways, as long as the layer fits between the viewport gutters. Layers now place themselves with `anchor()` insets against the viewport instead of a position area that grows to include the trigger.
|
|
157
|
+
- `Popover`, `Tooltip`, `HoverCard` and the other anchored layers open again when their trigger sits in a native `<dialog>` that the page displays closed. Such a dialog never enters the top layer, so its trigger is a valid anchor. The layer waited for the dialog to open, and it never opened.
|
|
158
|
+
A layer still waits for a `Dialog` that displays its element before it calls `showModal()`. `Dialog`, `Drawer`, `Lightbox` and `MobileNav` open their dialog in the Effects of the commit that displays it. A trigger with a box in a closed dialog now waits for one more commit. React runs those Effects before it renders that commit, so a dialog that is still closed then stays closed, and the layer opens at once. For a press, that commit runs before the press's task ends, so the layer and its initial focus land within the press. A closed dialog with `display: none` gives its trigger no box, and the layer still waits for it with no time limit.
|
|
159
|
+
|
|
160
|
+
A second `show()` while a layer waits for the same trigger keeps that wait. It no longer restarts it.
|
|
161
|
+
|
|
162
|
+
- Popover and DropdownMenu, in their popover presentation, and Dialog move focus as they close only when the close would strand it (WCAG 2.2 SC 2.4.3, Focus Order). Focus that used to fall to the page body when the opener was gone now goes, in order, to the element focused when the layer opened, its trigger, the control that names the layer in `aria-controls`, the component's own stand-in (a typeahead's input), the anchor or the first control inside it, the opener's former place in its group, the nearest surviving ancestor, the layer that opened this one, then the page's `main` region. A released behavior also changes: a DropdownMenu no longer focuses its trigger at close when focus never entered the menu. The `useFocusTrap` hook shares the trap that Popover uses, so it returns focus the same way. A Drawer keeps its own return at close and gets the shared one only when it is removed while open. There is no option to turn focus return off. To send focus somewhere specific, focus it in `onOpenChange` (Popover, DropdownMenu) or in `usePopover`'s `onHide`; for a Dialog, focus it after the dialog has closed, since the page outside an open dialog is inert. A Popover or DropdownMenu returns focus before the browser's own restore, so its trigger gets a focus ring only after keyboard input.
|
|
163
|
+
- Lightbox: an open caption that ends in a block image wider than the room beside "less" keeps its text lines when the window widens, instead of growing by a line every frame. "less" takes the line below the image. (#11740)
|
|
164
|
+
- An open Lightbox caption that widens to fewer lines no longer forces a layout in the frame that shrinks it. That holds for a caption of text, inline elements, inline-blocks, images, and paragraphs or other plain blocks with no room under its last line. Anything else takes the exact read, as before: one forced layout. That includes floats, drop caps, flex, grid and clipped blocks, and empty inline-blocks. It includes room under the last line of text, such as bottom padding or a trailing line break. It also includes list markers, text indents, justified last lines, and `::before` or `::after` content outside an inline element's boxes.
|
|
165
|
+
- In block and inline layout, a Link whose label has no break opportunity, such as a bare URL from `useLinkify`, now wraps inside its line instead of running past it and making the page scroll sideways. The Link stops at its container and its label may shrink, so its text wraps. In a flex row, a Link whose label is wider than the row is now capped at the row's width and wraps. A Link in a line wide enough for its label looks the same. A content-sized grid or table column still grows to the label's longest word.
|
|
166
|
+
- In development, `TreeList`, `Outline`, `TopNavMenu` throw an error that names a missing required prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
167
|
+
- Markdown bulleted and numbered lists stay inside their column: a list no longer reaches 8px past both edges, so Markdown that fills a phone screen no longer makes the page scroll sideways. Markers and text keep their positions.
|
|
168
|
+
- Markdown task lists stay inside their column: a list of checkbox items no longer reaches 8px past both edges, so it no longer makes a phone-width page scroll sideways. Checkboxes and text keep their positions.
|
|
169
|
+
- A bottom-sheet DropdownMenu, MoreMenu or ContextMenu opened before its sheet code has loaded (a press right after the page loads) now shows the sheet together with its actions, instead of an empty sheet for a moment first.
|
|
170
|
+
- `MetadataListItem`: a value no longer breaks an ordinary word or number mid-way when its row is tight, such as an amount beside its description on a phone with a wider font. A word longer than the whole line still wraps.
|
|
171
|
+
- MobileNav keeps its link to MobileNavToggle when a caller passes `id={undefined}`: the dialog keeps AppShell's drawer id, so the toggle's `aria-controls` still names the drawer. A defined `id` still replaces it.
|
|
172
|
+
- MobileNav with `side="auto"` opens from the opener's inline edge in right-to-left layouts. When the opener holds focus, that is used. When nothing is focused (such as the first open after a page load), the opener is found through its `aria-controls`, which AppShell's `MobileNavToggle` sets. A custom opener without `aria-controls` that never takes focus still opens from `end`.
|
|
173
|
+
- `MultiSelector` with `hasSearch`: the trigger button no longer carries `aria-required`, which ARIA does not allow on a button (WCAG 2.2 SC 4.1.2, Name, Role, Value). Before, the button carried it, an attribute a button may not have. A required field still says so: the field label's visible marker is part of the trigger's name, or a hidden "Required" description is added when the marker is not shown, and the search box carries `aria-required` while the list is open. This matches `Selector`.
|
|
174
|
+
- A `NavHeadingMenu` passed as the `menu` of a `SideNavHeading` or `TopNavHeading` no longer adds a second, unnamed menu inside the heading's menu. Screen readers now meet one menu, named after the heading, that holds the items. A `NavHeadingMenu` used on its own is still a menu, named by the `aria-label` you pass.
|
|
175
|
+
- Icons, `useIcon`, and component icon slots use the nearest Theme's object, so registering or nesting another theme with the same name does not replace their artwork. Icons outside a provider keep the registered root-theme fallback.
|
|
176
|
+
- A neutral Badge in a primary or destructive Button now meets 4.5:1 contrast in light and dark mode. It paints the Button's own colour pair inverted: the Button's content colour as the badge fill and its fill colour as the badge text.
|
|
177
|
+
- Outline: under reduced motion, following a link lands on the heading at once instead of scrolling there, the active indicator moves at once instead of sliding, and a link's hover and current colors change at once. A caller's `aria-label` now names the navigation, in place of `label` and the default name.
|
|
178
|
+
- OverflowList: in a theme whose spacing scale differs from the default, or when the root font size changes, the list now fits items with the gap it actually renders, so the last visible item and the overflow indicator are no longer cut off at the list's edge.
|
|
179
|
+
- Popover: a closed popover's trigger no longer points at the popup with `aria-controls`, so it no longer references a popup that is not shown. The trigger names the popup only while it is open; `aria-expanded` and `aria-haspopup` are unchanged. A render-function trigger still receives `aria-controls` in its props.
|
|
180
|
+
- `usePopover` keeps its focus-return target when `show()` runs again after initial focus has moved inside the popover, so a close returns focus to the element that opened it instead of losing it.
|
|
181
|
+
- A press no longer scales a trigger whose own layer is open: a Button that opens a menu or a Popover, and a ghost or secondary Selector, MultiSelector or ComplexSelector. Under a mouse or a finger, the open layer stays where an unpressed open puts it. A disclosure button without a popup keeps its press.
|
|
182
|
+
- ProgressBar and CircularProgress fills reach 3:1 against their track (WCAG 2.2 SC 1.4.11, non-text contrast). ProgressBar's status fills take the status text colors, and its neutral fill, like CircularProgress's, takes the secondary text color instead of the disabled one, which is the bar's track color in dark mode in Theme Neutral and Theme Stone and under 3:1 on the bar's track in every bundled theme in light mode. A disabled bar takes the same fill and dims its track and fill to half opacity, as a disabled Slider or Switch track does, and a disabled ring dims as a whole, center content included, so each reads quieter than a neutral one. A mark on any fill but accent takes the surface color; in Theme Butter and Theme Stone, a mark on a status fill takes that status's on-color. CircularProgress draws every variant on the muted background track, ProgressBar's base track, because some themes' status muted colors are the status color itself. In Theme Neutral, Theme Butter and Theme Stone a dark neutral or disabled fill takes a lighter neutral stop, Butter's and Stone's status fills take the theme's status colors, Stone's accent fill takes a blue stop that reaches 3:1, and the CLI's bundled theme templates match.
|
|
183
|
+
- In development, `Markdown`, `SyntaxTheme`, `InternationalizationProvider` throw an error that names a missing required prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
184
|
+
- Selector and MultiSelector keep their selection surfaces closed when mounted disabled with `isDefaultOpen`, including when read-only or disabled by an InputGroup.
|
|
185
|
+
- Tab from any radio in a `RadioList` now leaves the group, also from a radio that the app focused by script. Before, Chromium sent Tab from that radio to the group's checked radio when it came next, so the group took two Tab stops, and in a modal `Dialog` the result depended on where the group sat.
|
|
186
|
+
- reset.css gives the page the `--font-family-body` font, so text in the page body outside the Theme wrapper, such as a tooltip or a hidden span a chart uses to measure labels, no longer falls back to the browser's serif font. A page where no stylesheet defines the token keeps its current font.
|
|
187
|
+
- A focused `ResizeHandle` acts only on its own keys: plain arrows, Shift with an arrow, Home, End and Enter. Any other combination, such as Alt, Control or Command with an arrow, Home, End or Enter, or Shift with Home, End or Enter, now passes through to the page, so the browser's own shortcuts on those keys (history navigation, scrolling to the top or bottom) and the app's own shortcuts run.
|
|
188
|
+
- RichText text reads the way it is written, in either document, and the shared first-strong classifier reads three Arabic marks, the Rumi numerals, and the digits of Devanagari, Bengali, Tamil, Thai and other scripts by their bidi class, which changes `Markdown` output too: a line opening `०१ שלום` now reads left-to-right where it read right-to-left before. `Badge`, `Token` and `InputGroupText` read the same strong set to decide whether their own text holds any right-to-left character, so the three Arabic marks — the semicolon, the question mark and tatweel — now count there too, wherever they sit in the label. A paragraph, heading, quote or list item takes the direction of its own text at any depth, so a Hebrew paragraph in an English document flushes right with its caret following the arrow keys instead of walking backwards, and an English paragraph, list item or table cell in a Hebrew document does the mirror. Each line of a fenced code block reads its own way too, so a Hebrew comment reads right-to-left while `const x = 1;` keeps its semicolon at the end. Top-level lists, tables and code blocks keep ordering their contents in the document's direction; a nested list follows the item that holds it. The stored value now drops a `dir` that arrives on them with pasted HTML or an older document.
|
|
189
|
+
- On phones and tablets, a Table or CodeBlock that scrolls sideways now fades each edge that hides content. Those browsers show the scrollbar only while scrolling, so the fade shows there is more to see. With a mouse or a trackpad nothing changes. A viewport that fits does not change.
|
|
190
|
+
- In development, these components throw an error that names the missing prop and shows the fix, instead of a TypeError from inside the component: `Tokenizer` without `value`, `PowerSearch` without `config` or `filters`, `PowerSearchFilterEditor` and `PowerSearchToken` without `config`, `TypeaheadItem` without `item`, and `ComplexSelector` without a `children` function. Production output is unchanged.
|
|
191
|
+
- Secondary text now reads on every palette tint. The default light `--color-text-secondary` is `#445564` (was `#4E606F`), so secondary text on a gray Card or any other `--color-background-<hue>` tint meets 4.5:1 over the surface and the page body. The dark value is unchanged. To keep the previous light colour, a theme can set `--color-text-secondary` to `light-dark(#4E606F, #B0B5BB)`.
|
|
192
|
+
- SegmentedControl: when a page's own style wraps the segments onto two rows, a tap selects the segment it lands on, not the segment above or below it in the other row.
|
|
193
|
+
- Selector, MultiSelector, and ComplexSelector: the option list's trigger-width minimum is now clamped by the layer's viewport cap, so a trigger wider than that cap no longer makes the list wider than the cap.
|
|
194
|
+
- In development, `Selector` and `MultiSelector` without an `options` array (for example with `<option>` children) throw an error that names the prop and shows the fix, instead of "options is not iterable". Production output is unchanged.
|
|
195
|
+
- When an option grows while a `Selector`'s list is open, and the list is shorter than its height cap, the selected row stays on the trigger. The selected-item overlay measured its place only when the list opened, so a row that grew above the selection left it off the trigger, and a list near the viewport's end grew past it. The overlay now measures again when the open list resizes, before that frame paints. No API changes.
|
|
196
|
+
- Selector, MultiSelector: focus returns to the trigger again after a mouse pick in a Selector and when a MultiSelector closes after a pick. It also returns after a press on a container around the list that is no Tab stop, such as one with `tabIndex={-1}`. Before, inside such a container, as a dialog's content box can be, focus stayed on the container, so keyboard and screen-reader users lost their place. A press elsewhere still leaves focus where it lands, such as on another field or an unselected tab. So does a press on a container that is a Tab stop, such as a card with `tabIndex={0}`.
|
|
197
|
+
- Selector and MultiSelector inside an open shadow root: after a press on a container around the list that is no Tab stop, such as one with `tabIndex={-1}`, closing the list returns focus to the trigger, as it does outside a shadow root. Focus stayed on the container, because the close read the shadow root's host as the focused element. A closed shadow root hides its focus from the page, so there focus still stays on the container.
|
|
198
|
+
- The setup reminder now says why to run `init` now: "Astryx is not set up in this project yet. Next step: run `npx astryx init` now, before you write Astryx code. It asks no questions, prints the getting-started steps, and saves the Astryx guide to AGENTS.md." Before, it said `init` would "install the Astryx agent prompt", which agents read as a file change the user did not ask for, so they kept working without it. The command it names is unchanged, and so are the places it prints.
|
|
199
|
+
- Three styles that set a shorthand after another style on the same element set one of its longhands now set the longhands instead: an ordered List with dividers (its row gap), a flexible vertical on-track Stepper connector, and the PowerSearch sheet trigger with tokens. StyleX resolves that order differently in Storybook and in the published CSS, so each state had two computed values. It now has one. Nothing changes on screen in either build. A new lint rule, `@astryx/no-shorthand-longhand-merge`, flags the pattern.
|
|
200
|
+
- A horizontal `Slider` with labelled `marks` now keeps room for the labels: before, the labels hung below the slider's box and the content after it overlapped them; now that content starts below the labels. The labels take the supporting text's line height, so the room no longer depends on the surrounding text. Sliders without mark labels, and vertical sliders, keep their size.
|
|
201
|
+
- useTableSortableState no longer throws when a sorted column holds an Invalid Date. The default comparator now treats an Invalid Date like null, undefined and NaN: it sorts last in ascending order and first in descending order.
|
|
202
|
+
- A field with an error, warning or success status shows keyboard focus again. The status style replaced the whole field shadow, so the focus ring disappeared and a focused field with a status looked the same as an unfocused one. It now keeps the focus ring in TextInput, TextArea, NumberInput, Selector, MultiSelector, the date and time fields, Typeahead, Tokenizer and PowerSearch.
|
|
203
|
+
- In a Stepper's compact horizontal layout, a disabled Step now tells screen-reader users it is unavailable, with a hidden word after its label, as the expanded layout's disabled button already does. The new translated string is `@astryx.step.status.unavailable`; locales without it fall back to English.
|
|
204
|
+
- A vertical `Stepper` step with separated indicators (the default) keeps its content within the step. Before, a wide field in an expanded step, such as a `Selector`, pushed the step's body past the step, so on a phone the page scrolled sideways, text was cut at the right edge, and a dropdown opened off-screen. Now the body shrinks to the step's width and the content wraps inside it.
|
|
205
|
+
- The switch thumb rests as far from the track's end as from its top and bottom, at both ends, with a mouse and under a finger, read from the track's and the thumb's own sizes. A theme that sizes the track (`width` and `height` on `switch`) or the thumb (on `switch-thumb`) now keeps the thumb at the ends, where before it stopped short or ran past the end, and under a finger jumped at release. The control's box now follows the track too: before, it stayed 32 by 20 or 40 by 24 and squeezed a wider track back to that width. To follow that one rule, the small switch's off thumb with a mouse sits 3px from the start (as under a finger), not 2px; and in forced colors (high contrast) every thumb moves up to 1px so it sits as far from its end as from the top: the on thumb with a mouse moves 1px in from the end, so it no longer touches the track's border, and the medium off thumb with a mouse and every thumb under a finger move 1px toward their end. Everything else draws the same pixels in every official theme.
|
|
206
|
+
- BottomSheetSwitcher: a flow without its scrim (`hasScrim={false}`) that closes with focus inside it now returns focus to the element that opened it, as a standalone sheet without its scrim does, instead of leaving focus on the page body. A switcher with its scrim that is removed while a sheet is open now returns focus to the flow's opener, when the removal lost focus, instead of leaving it on the page body.
|
|
207
|
+
- Tab: a label that wraps, through `xstyle`, stays centered in its tab, selected or not. An unselected label could take one line fewer than its selected (semibold) width, and it sat at the top of the tab, so selecting the tab moved it down half a line. A label on one line in a button tab looks the same as before. The one visible change for one-line labels: a link tab's one-line label sits centred in its reserved width, as button tabs already do. It moves sideways, toward the tab's center, by half the extra width its semibold weight takes: 1 to 3 px for a short label, depending on the label and the font.
|
|
208
|
+
- A Table inside a Stack or another wrapper no longer reaches past its container's top or bottom padding. Before, a Table that was the last item of a Stack inside a Section, Card or Dialog pulled that Stack short, and the content after it overlapped the table's last row. Now a Table reaches a container's top or bottom edge only when it is that container's direct first or last child, the same rule its rounded corners follow. A Table that is a direct child looks the same as before, except when another Table or a bleeding List sits deeper in the same container: then the direct-child Table also keeps the container's padding at that edge, as its rounded corners already did. A Table nested in a Stack keeps the container's padding above and below it. Its sides still reach the container's edges as before.
|
|
209
|
+
- A Table column without `renderCell`, the tree column of a tree table included, no longer throws or prints engine text when a cell holds an Invalid Date. The default cell renderer now shows an Invalid Date as an empty cell, as it does for null and undefined. Sorting already treats it as a missing value.
|
|
210
|
+
- A Table in children mode whose cells wrap (the default) now scrolls inside its own box when it does not fit, as a data-driven Table does, instead of shrinking every column until words break letter by letter and headings are cut. Its columns now follow their content instead of sharing the width equally. A children-mode Table with `textOverflow="truncate"` keeps its columns within its box and lays out as before.
|
|
211
|
+
- With `useTableColumnsVirtualization`, a horizontal scroll that changes which columns are mounted now renders only the cells of the columns that enter. Before, every mounted cell of every mounted row ran its plugin transforms and rendered again. Each body cell is now its own memoized element, so cells whose inputs stay the same skip both. `useTableStickyColumns` now returns a new plugin object when its pinned keys change, so changing `startKeys` or `endKeys` at runtime pins and unpins body cells together with their header; before, body rows kept their old pinning until they rendered for another reason.
|
|
212
|
+
- Table: with column windowing, a horizontal scroll that keeps the same columns mounted renders the table once instead of twice.
|
|
213
|
+
- A Table stays the one scroll region when a page host gives every table's parent `overflow-x: auto`. Before, the box inside the Table scrolled instead, so the Table lost its keyboard stop and focus ring.
|
|
214
|
+
- Table: in a narrow column, a header's label truncates before its sort indicator and filter button, so those controls stay inside the header cell and can be reached.
|
|
215
|
+
- In a Table with sortable and resizable columns, a sortable column's resize line now sits on the column divider, like every other column's, in left-to-right and right-to-left layouts. Before, it sat one cell padding inside the column. A sortable header's right-click menu still opens at the pointer.
|
|
216
|
+
- Table tree rows follow the disclosure pattern. Body rows no longer carry `aria-level`, which ARIA allows only in a treegrid; Table has no grid keyboard model, so it keeps table semantics. Each parent row's expand/collapse button keeps `aria-expanded` and its "Expand/Collapse <row>" name, and while expanded it names its child rows with `aria-controls`. Indentation stays visual. No visual change.
|
|
217
|
+
- In development, `TableSelectionToolbar` without `selection` throws an error that names the prop and shows the fix, instead of a TypeError from inside the component. Production output is unchanged.
|
|
218
|
+
- TextInput (outside an InputGroup) and TextArea: an error status without a message now gives screen readers text: the field is described by a hidden, translated "Invalid value", so assistive technology hears that the value has an error. In development the field also warns that the error has no message. Nothing changes on screen; give `status.message` to show the error in text.
|
|
219
|
+
- TextInput: a standalone field grows to hold its text line when text is enlarged, instead of the line running across its borders. At the default text size each size keeps its height (28, 32 and 36 px).
|
|
220
|
+
- A theme that gives a Card, a Dialog or a menu corners of different radii (`borderRadius: '12px 12px 0 0'` or a corner longhand such as `borderStartStartRadius`) now reaches what those components hand each corner to: a full-bleed Table or a bleeding List in a Card or a Dialog takes each corner as the container draws it, focus ring and row fills included, and the rows of a pointer menu (DropdownMenu's popover and sub-menu flyouts, and ContextMenu), sub-menu rows included, take the menu's shape less its padding; the touch sheet's list rows, and a drilled-in sub-menu view with its own header or footer, keep their own corners. An elliptical corner (`8px / 4px`) reaches a full-bleed Table; a List and menu rows subtract the padding from it, so they keep square corners there. A default Card, Dialog or menu inside a themed one keeps its own corners. Before, these children kept square corners, or took the first corner's radius at every corner when the CLI theme editor wrote the radius. The theme pipeline writes each corner to its own private variable for components whose derived `borderRadius` entry sets the new `corners` flag. A radius of one value draws as before.
|
|
221
|
+
- A theme that styles `link` keeps Core's hover tint on a link's color: the rules that hold each link `color` prop's color now hold, on hover, Core's tint of that color, so a link setting of any kind (a color for one mode, or any theme link color) no longer removes the hover tint in that mode. A theme's own hover color for a link color key still wins over the tint.
|
|
222
|
+
- A theme's `@dark` and `@light` component styles under a `system` `Theme` that no Theme around it forces to light or dark now follow the scheme the page root draws in: the root's `color-scheme`, else its `<meta name="color-scheme">` (a `color-scheme` on `body` or a container does not count). On a page that draws in one scheme, such as a page that names no scheme (no `reset.css`, no `color-scheme` on the page root and no `<meta name="color-scheme">`), which draws light, the styles of that scheme apply whatever the reader's device is set to: a reader whose device is set to dark no longer gets the theme's dark component styles on the light page, and gets its light ones. On a page that follows the reader, the styles follow the reader's setting as before. At the first paint of a server-rendered page, before the root `Theme` mounts, they follow the reader's setting.
|
|
223
|
+
- `Theme` no longer stops the page when `theme` gets a value that is not a defined theme, such as the mode string `"light"`, a plain object or `undefined`. That Theme applies no theme of its own: its subtree keeps the theme around it, or Core's default tokens at the root, and still takes its `mode`. The server and the browser render the same markup. In development a warning names the value, and for a mode string it points to the `mode` prop.
|
|
224
|
+
- A `Theme` in `system` mode now takes the light or dark scheme of the page around it. A host that draws the page dark, such as an artifact viewer in its dark theme, now gets the dark theme inside the `Theme` too; before, everything inside it followed the device's setting, so a reader on a light device saw dark text on the host's dark page. `useTheme()` and `useSyntaxTheme()` report the same mode, so charts and canvas match: a `system` Theme resolves to the scheme the page root names (light when it names none), else the device's setting, and under a `Theme` that forces light or dark it follows the device. If your app sets the page root's `color-scheme` to `light` or `dark` itself, that setting now decides what a `system` Theme shows. `useSyntaxTheme()` also follows a `Theme` that forces light or dark, as code blocks do. `reset.css` makes the page root follow the device's light or dark setting. Core's stylesheet, prebuilt or from a source build, sets no scheme on the page root. An app that does not load `reset.css` and names no scheme (no `color-scheme` on the page root and no `<meta name="color-scheme">`) stays light, and so do Astryx's tokens and `useTheme()` there; a theme's own `@dark` component styles still follow the device on such a page. To follow the device everywhere, import `@astryxdesign/core/reset.css`, or set `color-scheme: light dark` on `html`. `useTheme()` also reads the page's `<meta name="color-scheme">`, as the browser does.
|
|
225
|
+
- A page that renders a Button or an Icon but no `Theme` no longer loads the theme-rule generator on first load when its build keeps whole modules or every re-export: Next.js with Turbopack when the app also uses `useTheme` elsewhere (for example through Toast), and hosts that lend each package entry whole to other bundles. A page that renders `Theme` still loads the generator, because `Theme` compiles theme CSS at run time. Token resolution now reads the unset status-role defaults from a small module that the generator also reads, instead of importing the generator. The module that defines `defineTheme` no longer re-exports the CSS generators; `@astryxdesign/core/theme` and `@astryxdesign/core` still export them by the same names. Every resolved token and every generated rule stays the same. No API changes.
|
|
226
|
+
- Thumbnail: focusing Open now shows one ring, on the image container, instead of a second ring on the button inside it.
|
|
227
|
+
- A relative `Timestamp` is now named by the words it shows, then the full date: "2 hours ago, March 25, 2026 at 10:00:00 AM Coordinated Universal Time". A button, link, or radio that contains it keeps its visible words in its name, so voice-control users can say what they see (WCAG 2.2 SC 2.5.3). A caller `aria-label` or `aria-labelledby` still names it instead.
|
|
228
|
+
- A `Toast` rendered on its own, outside a `ToastViewport`, no longer holds a live role, so a screen reader does not read it a second time when its caller announces the message. Its text stays readable in browse mode. Only the viewport announces a toast; a caller that renders a `Toast` on its own owns its announcement.
|
|
229
|
+
Reported by:
|
|
230
|
+
- ToggleButtonGroup wraps onto more rows when it is wider than its container, instead of shrinking its buttons until their labels are cut. Each row keeps its own button ends and keyboard order is unchanged; only a single button wider than the whole container still shortens its label. A group that fits looks the same as before.
|
|
231
|
+
- A clickable `Token` passes a caller's `aria-pressed` to its inner button, so a filter chip can expose a pressed toggle to screen readers. Before, `aria-pressed` landed on the outer container, which has no role, and assistive technology ignored it.
|
|
232
|
+
- Tokenizer: with `tokenOverflowBehavior="unfocusedLayer"`, keyboard users can now Tab to the collapsed field. Its placeholder takes the tab stop and opens the field with focus in the input, even when it holds no tokens. A disabled field keeps that stop, says it is disabled, shows its `disabledMessage`, and opens nothing; no element is natively disabled.
|
|
233
|
+
- Tokenizer shows the caret in a focused, empty input when the field has no width
|
|
234
|
+
- An `OverflowList` placed directly in a horizontal `Toolbar`'s `startContent` now folds its actions into its overflow trigger beside `endContent`, instead of pushing the end content past the toolbar's edge. A single-row `OverflowList` in a flex row now unfolds again when the row widens, and never shrinks below its folded width, so a squeezed row keeps its trigger whole. In a flex row its own width is its unfolded items, at most the row's width, so a folded list keeps the width the row gives it and content after it sits after that width. In a block parent it fills the line, as before. A caller's `width`, `max-width`, or flex basis still sets it.
|
|
235
|
+
- A Toolbar with start and end content wraps when the two do not fit one row: the end content moves to the next line instead of squeezing the start content until its title wraps and its badge is cut. Each side keeps its controls on one line while it fits the toolbar's width, and a toolbar that fits its container looks the same as before. The kanban board template's header now fits a phone.
|
|
236
|
+
- Tooltip paints the theme's inverted surface (`--color-background-inverted`), the surface Toast paints, instead of the primary text color, so a theme that sets its inverted surface styles tooltips and toasts alike. Its text stays the page surface color. To keep the previous look, a theme can set the `tooltip` target's `backgroundColor` to `var(--color-text-primary)`.
|
|
237
|
+
- A `Tooltip` no longer opens when an app moves focus by script to its trigger right after a mouse click or a tap that focused nothing, such as a click on page text. The last input was a pointer, so the focus is not keyboard focus. A text-field trigger still opens, as browsers mark a pointer's focus on a text field `:focus-visible`, and focus after a key press still opens the tooltip.
|
|
238
|
+
- Tokenizer, Typeahead and PowerSearch draw the on-field status icon, as TextInput does. With `statusVariant="tooltip"` the icon is a button that shows the status message on hover, keyboard focus or a tap; before, sighted people saw only the border tint and never the message. In the sheet presentation a tap on the plain icon opens the sheet, as a tap on the tokens does. With `tokenOverflowBehavior="unfocusedLayer"`, the icon shows once the field opens.
|
|
239
|
+
- `AppShell`: on a phone, when the theme keeps the standard width points, a server-rendered page no longer paints the top navigation's full row of links for a moment while its script loads; the bar shows only its heading and end content. The menu toggle still arrives with the script.
|
|
240
|
+
- On a phone, TopNav's compact bar keeps a plain-text heading on one line and ends it in an ellipsis, so a long title no longer wraps and makes the bar taller.
|
|
241
|
+
- TopNavMenu and TopNavMegaMenu close when you pick an item with the keyboard, a finger or a pen, and return focus to their trigger. Before, the menu or panel stayed open with focus inside it. In a mega menu, following the featured card's link this way closes the panel too. A mouse or trackpad pick leaves the menu open, as before. To keep a menu open after a pick, set the item's `hasCloseOnSelect` to `false`.
|
|
242
|
+
- On a phone, TopNav's end content is never wider than the bar, so an end item that can narrow, like a search field, narrows and the menu button stays in view. The Shell Nav template's search now narrows on a phone instead of pushing the menu button off screen at 375 px.
|
|
243
|
+
- A TreeList row with no action (no onClick, href or children) now shows the focus ring when it has keyboard focus. Such a row was already a stop in the tree's arrow-key focus, but it showed no sign of focus.
|
|
244
|
+
- Type-to-select: a letter typed with AltGr on Windows, such as ł on a Polish keyboard, now selects a matching item, so typing ł in a Selector reaches "Łódź". AltGr reports Control as well, and type-to-select treated it as a Control shortcut and dropped the letter. This covers `useTypeahead` and every collection that uses it (Selector, MultiSelector, DropdownMenu, ContextMenu), a searchable Selector's typed-to-open query, and TreeList. Control and Command shortcuts such as Control+L still do not type-select.
|
|
245
|
+
Reported by Rajatendu1.
|
|
246
|
+
- Typeahead and Tokenizer: when a search matches more items than `maxMenuItems` shows, the result count announced to screen readers names every match, not only the rows shown.
|
|
247
|
+
- The useHotkeys docs no longer recommend `shift+/` for a help overlay. The hook compares the final key against `event.key`, and Shift+/ produces `?` on US layouts, so a `shift+/` registration never fires there. The docs now use `?` and say to register a punctuation key that shift changes as the character it produces. No behavior changes.
|
|
248
|
+
|
|
249
|
+
#### Performance
|
|
250
|
+
|
|
251
|
+
- CheckboxInput runs its disabled-message tooltip only while that message can show (the checkbox is disabled and has a `disabledMessage`), so a page of many checkboxes renders faster. A disabled checkbox's reason now also describes it in the server-rendered HTML, before the page hydrates.
|
|
252
|
+
- A pointer `ContextMenu` (the default presentation, and every Table cell menu) no longer carries the touch sheet's action list: `ContextMenu` now shares `DropdownMenu`'s sheet module, which loads the sheet only for the sheet presentation. A page with a Table that has cell actions, or with a `ContextMenu`, loads about 57 KB less JavaScript before first paint (about 20 KB gzip). A menu with `presentation="bottom-sheet"`, or `adaptive` on a compact touch screen, still loads its sheet after mount and opens it as before.
|
|
253
|
+
- Reading the locale or direction with `useLocale`, `useDirection` or `useCollator` no longer loads the message parser: `useLocale` alone bundles to 441 bytes gzip instead of 10,250. A page that translates any Astryx string still loads the parser, as before. Translation output, with or without a provider, is unchanged for copies of one Core version.
|
|
254
|
+
- `OverflowList`s that mount or change in one render now measure together after it, before the frame paints. When other components write to the page in the same render, each list used to read its size after those writes and force its own layout; now all lists read their sizes first and the page lays out once for them. The first painted frame is the same. `useOverflow` results and `onOverflowChange` arrive one microtask after the render instead of inside it. A test that checks them right after a synchronous render awaits that microtask first, for example with `await act(async () => {})`. With fake timers that also fake `queueMicrotask`, as Jest's modern fake timers do by default, flush the faked microtasks too, for example with `jest.runAllTicks()` or `vi.runAllTicks()`.
|
|
255
|
+
- Importing `ResizeHandle` on its own no longer pulls in `useResizable` and its resize controller. The handle reads the hook's collapse, release and maximum details from the resize model instead, so its static import graph drops from 90 to 84 modules. A bundler that tree-shakes already dropped most of that code (25 bytes gzip less); one that keeps whole modules loads the controller only with the hook.
|
|
256
|
+
- `Switch` no longer measures its track when it mounts. It reads the track's size at the first press instead, so a settings page with hundreds of switches renders without one forced layout per switch. Dragging, right-to-left layouts and a press right after mount work as before. Two small differences: a mouse or pen drag after a toggle now flips at the thumb's current size (up to 4 px different at the medium size), and a theme that resizes the Switch thumb animates its first value change from the default size.
|
|
257
|
+
- A page whose components bring no tooltip code, such as one that renders only `Text` and `Heading`, loads about 9.6 KB less JavaScript before first paint (about 3.4 KB gzip). The truncation tooltip's tap handling no longer shares a file with the touch trigger code that its lazily loaded tooltip uses, so that code stays with the tooltip. Tapping a truncated text opens its tooltip as before.
|
|
258
|
+
- Text: a truncation measurement that finds the same result no longer schedules a state update, so a page that mounts many truncating texts at once, such as a wide windowed Table, does less work. `useTruncation` returns the same values as before.
|
|
259
|
+
|
|
260
|
+
#### Documentation
|
|
261
|
+
|
|
262
|
+
- The agent docs `astryx init` writes, and the computer-level skill, name the Astryx prop names that differ from other libraries in the workflow's third step: buttons, badges, tokens and tabs take their text in `label` (Text, Heading and Link take children), booleans start with `is` or `has`, and every input takes `value` and `onChange`. An agent that writes props before it reads a component now writes these right far more often. Run `astryx upgrade` or `astryx init` to refresh a project's agent docs.
|
|
263
|
+
- BottomSheet's docs say that a modal sheet with no data-autofocus field opens with focus on its panel in Safari on iOS, as in Chromium, and that marking a field data-autofocus opens on it in every browser.
|
|
264
|
+
- Button's docs now list `ref` and say that in link mode (with `href` and not disabled) the ref receives the anchor (or the link component's element), although its type names `HTMLButtonElement`. No runtime or type change.
|
|
265
|
+
- CheckboxListItem and ListItem docs say that a string `description` shows on one line with an ellipsis, and that a node such as `<Text type="supporting">` shows the full text on more lines.
|
|
266
|
+
- The agent workflow copy that Core ships says to read a block example for a part the template lacks, not to insert a block, matching `astryx build`.
|
|
267
|
+
- The docs of four components list props they already take and left out: ComplexSelector's `isLabelHidden`, `description`, `labelTooltip`, `isOptional` and `isRequired`; Selector's `changeAction`, `labelTooltip`, `placement` and `isDefaultOpen`; Toast's `isExiting`; and ContextMenuItem's `onClick`, `href`, `target`, `rel`, `isDisabled`, `hasCloseOnSelect`, `variant` and `ref`, which it takes as the DropdownMenuItem it re-exports.
|
|
268
|
+
- The README's setup box now shows how to install the CLI at the version of `@astryxdesign/core` you have, saved exactly when `package.json` pins Core exactly, and its link to the Astryx CLI section now works. A second box tells agents to ask the Astryx CLI before they write code, with three commands that work with or without the install: `build`, `component` and `doctor --built .`. Before, the setup box's command installed the newest CLI with a `^` range.
|
|
269
|
+
- The README's stylesheet setup boxes (Next.js, Next.js + Tailwind, Next.js + StyleX) now import the theme's `fonts.css`, as `astryx theme add` does. It holds `@font-face` rules for the font files the theme package ships, so the page requests nothing outside the app. Before, a page set up from those boxes loaded no theme font and fell back to the system font stack.
|
|
270
|
+
- The typography docs say what Core builds, in one rule: a heading with no `family` takes the body's whole font list; with its own `family`, only its own `fallbacks`; `fallbacks` with no `family` build nothing. `TypographyConfig`, its `heading` field, `defineTheme`'s `typography`, the `fonts-and-assets` doc page and the theme template say it; the `font-setup` page says a heading with no family uses the body's and points to `fonts-and-assets` for the rest.
|
|
271
|
+
- Dialog's guidance now names its one nesting exception: an AlertDialog that confirms a destructive action may open from a dialog. It asks one question, and Escape closes only the alert.
|
|
272
|
+
- Text's `as` docs list `h1`, `h2` and `h3`, and PowerSearch's `statusVariant` docs list `tooltip`, as their types already allow; the `tooltip` text says what PowerSearch shows for it.
|
|
273
|
+
- Grid's docs say that `columns={{minWidth}}` alone keeps each column at its track width, so a grid with fewer items than tracks keeps an empty column, and that `repeat: 'fit'`, or a `max` no more than the item count, lets the items grow to fill the row.
|
|
274
|
+
- Hook docs for `useChatDictation`, so `astryx hook useChatDictation` and `astryx search` return it, and a `useChatDictation — Voice input` example block: a start and stop control that stays off when the browser has no speech recognition.
|
|
275
|
+
- Hook docs for `useChatPasteAsToken`, so `astryx hook useChatPasteAsToken` and `astryx search` return it, and a `useChatPasteAsToken — Long paste` example block: a composer that uses a threshold of 40 and a Pasted note label.
|
|
276
|
+
- Hook docs for `useSpeechRecognition`, so `astryx hook useSpeechRecognition` and `astryx search` return it, and a `useSpeechRecognition — Transcript` example block: a headless control that shows whether the browser can listen and the interim transcript.
|
|
277
|
+
- Hook docs for `useSyntaxTheme`, so `astryx hook useSyntaxTheme` and `astryx search` return it, and a `useSyntaxTheme — Keyword color` example block: the word const painted with the keyword color of the GitHub Light syntax theme.
|
|
278
|
+
- The `InternationalizationProvider` example that changes one Astryx string is titled for a change across the app, not a change to one component.
|
|
279
|
+
- Docs now answer three questions in the first sentence that agents read:
|
|
280
|
+
- Icon props such as TextInput `startIcon`, Selector `startIcon`, Field `labelIcon`, DropdownMenuItem `icon` and SideNavItem `icon` take a semantic icon name such as `'search'` (see `astryx docs icons`), an icon component, or an icon element. Their documented type is now `ReactNode | IconType`, as in the code.
|
|
281
|
+
- Selector `value` and `onChange` show the `hasClear` types: with `hasClear`, `value` is required and `string | null`, and `onChange` receives `null` when the user clears the selection.
|
|
282
|
+
- useTableSelectionState names what it returns: `selectionConfig` and `selectionState` with `selectedKeys`, `selectedCount`, `hasSelection` and `clearSelection`, with a bulk-action example.
|
|
283
|
+
|
|
284
|
+
No API or behavior changes.
|
|
285
|
+
|
|
286
|
+
- Markdown's anatomy now says when its Image part shows alternative text: for an empty image URL, while an unsafe URL renders as source text. Its guidance adds two don'ts: plugins cannot cross a Server Component boundary, and Markdown does not sanitize renderer output. Prop docs now describe `density`, `isStreaming`, `onLinkClick`, and `components`; `inlinePlugins` keeps its own description instead of lending it to `plugins`; `contentWidth` names its 680 default; and the `contentAlign="start"` description now says inline start instead of left. The `onLinkClick` docs say that a custom `link` renderer does not receive the handler.
|
|
287
|
+
- MetadataListItem's prop docs now list `xstyle`, `className`, `style`, `ref`, and `data-testid`, and say which element each one reaches: the label `dt` when the item is side by side, or the wrapper when it is stacked. The `data-testid` docs say that a side-by-side item puts `-label` and `-value` on its two cells.
|
|
288
|
+
- MobileNav's prop docs now list `label`, `xstyle`, `className`, `style`, `ref`, and `data-testid`, and the `label` docs say what names the drawer when it is not set. MobileNav's Chinese and dense prop text now reaches the docs: it was written where the doc compiler does not read it for a doc with two components, so those docs showed the English text. The Chinese text no longer marks `isOpen` and `onOpenChange` as required; inside AppShell the drawer reads them from context.
|
|
289
|
+
- MobileNavToggle's docs now say every case where it renders nothing: above the mobile breakpoint, without an AppShell mobile context (AppShell's, or an `AppShellMobileContext` you provide), and when AppShell has no mobile navigation (no side or top nav, `mobileNav={false}`, or a `mobileNav` node).
|
|
290
|
+
- MoreMenu's prop docs now list `isMenuOpen` and say that without `size` the trigger takes the surrounding size (from a SizeProvider, ButtonGroup, or Toolbar), else `md`. The Chinese docs gain `isMenuOpen` and `onOpenChange` and the note on where host `data-*` attributes land.
|
|
291
|
+
- NavHeadingMenu's docs now document NavHeadingMenuItem and its props (`label`, `description`, `icon`, `href`, `onClick`, `isDisabled`, `ref`, `xstyle`), add `ref` to the menu, and say that `minWidth` wins over the size's minimum width. New best practices name the WAI-ARIA menu pattern and its keys, say to name a standalone menu, and explain how a disabled row stays reachable.
|
|
292
|
+
- The npm descriptions of `@astryxdesign/core` and `@astryxdesign/cli` name Astryx, so a search for "astryx" on npm lists them with the other Astryx packages.
|
|
293
|
+
- The README's Quick Start now installs the CLI and runs `init` as part of setup, and the note at the top says setup is install, then `init`, run once before writing UI, and says what `init` prints and writes. Before, Quick Start installed only Core, a theme, and StyleX, and the note framed `init` as an extra for AI agents, so agents that followed the README finished setup without the Astryx guide in `AGENTS.md`. The repository README's Getting Started gets the same `init` step.
|
|
294
|
+
- The useTableSortable doc now says in its first sentence that the plugin adds the header sort controls but does not reorder the rows, and shows two ways to sort the data: from the sort state yourself, or with useTableSortableState. It also says a column needs `sortable` to get a control, and gives the correct default of `allowUnsortedState` (`true`). No API or behavior changes.
|
|
295
|
+
- The useTableSortableState docs say that arrays and plain objects have no sort text, so they need a comparator, and that a Date sorts by its time and an Invalid Date sorts with the missing values. A new useTableSortable example sorts by a status rank and a tags array. Table's `columns` prop says Table has no onRowClick prop: to open a row, put a Link or Button in its main cell's renderCell. No API or behavior changes.
|
|
296
|
+
- Table's docs say how a long token, such as a code identifier or a URL, wraps in a data-driven table: the columns you pass in `columns` are sized from their definitions, not their content, so a token wider than its column breaks inside the token. To keep tokens whole, give the column a floor that fits them with `proportional(1, {minWidth})` or `pixel()`, or compose the table in children mode, whose columns follow their content.
|
|
297
|
+
- The Table, Table plugin and useToast docs now answer common questions without the package source:
|
|
298
|
+
- Table documents its `emptyState` prop, how to open a row from a link or button in its main cell (Table has no row-click prop), and what a custom `TablePlugin` can change, in which order.
|
|
299
|
+
- useTableFiltering documents its required `searchConfig` and shows that you filter the rows yourself, with an empty state for no matches; useTableFilterState names `clearAll`.
|
|
300
|
+
- useTableSelection explains how `getIsItemSelectable` (no checkbox) differs from `getIsItemEnabled` (a disabled checkbox) and what select-all does with each.
|
|
301
|
+
- useToast lists every `ToastOptions` field with its default, and says it returns the show function itself (`const showToast = useToast()`), not an object.
|
|
302
|
+
|
|
303
|
+
No API or behavior changes.
|
|
304
|
+
|
|
305
|
+
- The Toast doc now says in its first sentence that `useToast()` needs no provider or mounted ToastViewport. The Table hooks whose config does not mention the row type (useTableSortable, useTablePagination, useTableFiltering, useTableColumnSettings, useTableColumnResize, useTableInfiniteScroll, useTableStickyColumns) now say that `T` is the row type, that TypeScript cannot infer it and falls back to `Record<string, unknown>`, and that you pass it, as in `useTableSortable<Walk>(…)`. Their examples are typed. No API or behavior changes.
|
|
306
|
+
|
|
307
|
+
#### Other Changes
|
|
308
|
+
|
|
309
|
+
- Internal: Core's internal touch entry re-exports its group press tracking and group-item mark for Lab's Rating, and the catalog gains two Rating messages. Apps import nothing new.
|
|
310
|
+
- Internal: the swipe hook's and the swipe layer's file headers keep only their tags and the SYNC reminder. The prose that explains each moves, unchanged, into the JSDoc of `useSwipeAction` and `SwipeActionsLayer`. No behavior or type changes, and neither is exported from the package entry point.
|
|
311
|
+
- Internal: the swipe's shared drag lists the committed options ref that its begin check reads. The ref is stable, so a row keeps one drag for its life. Not exported from the package entry point.
|
|
312
|
+
- Internal: the UIKit values of a swipe-action row (the swipe threshold, the springs a confirmed row runs ahead on and a released row settles with, the touch claim distance the web needs) and the release rule that picks closed, open or fire (a fast release goes the way it moves, a slow one by where it is, and only a confirmed full swipe fires), checked against releases measured on UIKit. Not exported from the package entry point.
|
|
313
|
+
|
|
314
|
+
#### Contributors
|
|
315
|
+
|
|
316
|
+
Thanks to everyone who contributed to this release:
|
|
317
|
+
|
|
318
|
+
- @ahmed-technyx
|
|
319
|
+
- @cixzhang
|
|
320
|
+
- @duytbp
|
|
321
|
+
- @humbertovirtudes
|
|
322
|
+
- @josephfarina
|
|
323
|
+
- @kentonquatman
|
|
324
|
+
- @korkt-kim
|
|
325
|
+
- @mahmed74
|
|
326
|
+
- @matthewfuaux
|
|
327
|
+
- @mohamedhassank20
|
|
328
|
+
- @nynexman4464
|
|
329
|
+
- @popsiclelmlm
|
|
330
|
+
- @potatowagon
|
|
331
|
+
- @quocluongg
|
|
332
|
+
- @Rajatendu1
|
|
333
|
+
- @vjeux
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
3
337
|
# 0.7.16
|
|
4
338
|
|
|
5
339
|
#### Experimental APIs
|
package/README.md
CHANGED
|
@@ -2,14 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Core UI components, theme system, and utilities for the Astryx design system. For project setup, see [Quick Start](#quick-start) below.
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **Setup is install, then `init`.** Add the CLI at Core's version and run `init` once, before you write UI:
|
|
6
6
|
>
|
|
7
7
|
> ```bash
|
|
8
|
-
> npm install -D @astryxdesign/cli # or: pnpm add -D / yarn add -D / bun add -d
|
|
9
|
-
> npx @astryxdesign/cli init
|
|
8
|
+
> npm install -D -E @astryxdesign/cli@<core version> # or: pnpm add -D -E / yarn add -D -E / bun add -d --exact
|
|
9
|
+
> npx @astryxdesign/cli init # asks no questions
|
|
10
10
|
> ```
|
|
11
11
|
>
|
|
12
|
-
>
|
|
12
|
+
> Use the version of `@astryxdesign/core` you have. Keep `-E` when `package.json` pins Core exactly, as the starters do; leave it out when Core has a `^` or `~` range.
|
|
13
|
+
>
|
|
14
|
+
> `init` prints the getting-started steps (styles, theme) and saves the Astryx guide to your `AGENTS.md`/`CLAUDE.md`: components, templates, and design tokens, so any agent working in the project builds with Astryx instead of guessing. Read it before you write UI. Always use the scoped name: the unscoped `astryx` resolves to an unrelated npm package until `@astryxdesign/cli` is a dependency. See [Astryx CLI](#astryx-cli).
|
|
15
|
+
|
|
16
|
+
> **Building with an AI agent?** Ask the Astryx CLI before you write code. These commands work with or without the install above:
|
|
17
|
+
>
|
|
18
|
+
> ```bash
|
|
19
|
+
> npx @astryxdesign/cli build "<what you are building>" # the template, blocks and components to start from
|
|
20
|
+
> npx @astryxdesign/cli component <Name> # one component's props, variants and examples
|
|
21
|
+
> npx @astryxdesign/cli doctor --built . # checks the setup and the code you wrote
|
|
22
|
+
> ```
|
|
23
|
+
>
|
|
24
|
+
> The `.doc.mjs` files in this package are only part of what the CLI knows: it also has page templates, blocks and checks that no source file shows.
|
|
13
25
|
|
|
14
26
|
## Component Docs
|
|
15
27
|
|
|
@@ -31,7 +43,7 @@ panel slots into common page patterns (dashboards, settings, forms, detail pages
|
|
|
31
43
|
Wrap them in your own app chrome (`AppShell`, `TopNav`, `SideNav`) to add
|
|
32
44
|
global navigation.
|
|
33
45
|
|
|
34
|
-
Requires `@astryxdesign/cli`
|
|
46
|
+
Requires `@astryxdesign/cli` at Core's version: `npm install -D -E @astryxdesign/cli@<core version>` (leave out `-E` when Core has a `^` or `~` range).
|
|
35
47
|
|
|
36
48
|
```bash
|
|
37
49
|
astryx template --list # browse all page and block templates
|
|
@@ -77,27 +89,30 @@ astryx gap-report # report a missing capability
|
|
|
77
89
|
|
|
78
90
|
Astryx requires **React 19** or later (`react` and `react-dom` >= 19.0.0 are peer dependencies).
|
|
79
91
|
|
|
80
|
-
Install Astryx and
|
|
92
|
+
Install Astryx, a theme, and the CLI, then run `init` once:
|
|
81
93
|
|
|
82
94
|
```bash
|
|
83
95
|
npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
|
|
96
|
+
npm install -D @astryxdesign/cli
|
|
97
|
+
npx @astryxdesign/cli init # prints the getting-started steps; saves the Astryx guide to AGENTS.md
|
|
84
98
|
```
|
|
85
99
|
|
|
86
|
-
Then pick your setup below based on your framework and styling approach.
|
|
100
|
+
Then pick your setup below based on your framework and styling approach. The setup you pick wires the theme, so it replaces the theme step `init` prints.
|
|
87
101
|
|
|
88
102
|
### Next.js (simplest)
|
|
89
103
|
|
|
90
|
-
The fastest way to get started. No build plugins, no PostCSS, no Babel config — Astryx ships pre-built CSS and JS, so you import
|
|
104
|
+
The fastest way to get started. No build plugins, no PostCSS, no Babel config — Astryx ships pre-built CSS and JS, so you import four stylesheets (order matters) and wrap your app in a theme provider.
|
|
91
105
|
|
|
92
106
|
**`src/app/globals.css`**
|
|
93
107
|
|
|
94
108
|
```css
|
|
109
|
+
@import '@astryxdesign/theme-neutral/fonts.css';
|
|
95
110
|
@import '@astryxdesign/core/reset.css';
|
|
96
111
|
@import '@astryxdesign/core/astryx.css';
|
|
97
112
|
@import '@astryxdesign/theme-neutral/theme.css';
|
|
98
113
|
```
|
|
99
114
|
|
|
100
|
-
The import order maps to the layer cascade: `reset.css` (`@layer reset`) → `astryx.css` component styles (`@layer astryx-base`) → `theme.css` token overrides (`@layer astryx-theme`).
|
|
115
|
+
The import order maps to the layer cascade: `reset.css` (`@layer reset`) → `astryx.css` component styles (`@layer astryx-base`) → `theme.css` token overrides (`@layer astryx-theme`). `fonts.css` loads the theme's fonts: `@font-face` rules for font files the theme package ships, so the page requests nothing outside your app. Without it the page falls back to the system font stack.
|
|
101
116
|
|
|
102
117
|
**`src/app/providers.tsx`**
|
|
103
118
|
|
|
@@ -146,6 +161,7 @@ This `globals.css` is the whole file for a new app. For an app that already uses
|
|
|
146
161
|
```css
|
|
147
162
|
@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
|
|
148
163
|
|
|
164
|
+
@import '@astryxdesign/theme-neutral/fonts.css';
|
|
149
165
|
@import 'tailwindcss/theme.css' layer(theme);
|
|
150
166
|
@import 'tailwindcss/preflight.css' layer(base);
|
|
151
167
|
@import '@astryxdesign/core/reset.css';
|
|
@@ -239,6 +255,7 @@ npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
|
|
|
239
255
|
**`src/app/globals.css`**
|
|
240
256
|
|
|
241
257
|
```css
|
|
258
|
+
@import '@astryxdesign/theme-neutral/fonts.css';
|
|
242
259
|
@import '@astryxdesign/core/reset.css';
|
|
243
260
|
@import '@astryxdesign/core/astryx.css';
|
|
244
261
|
@import '@astryxdesign/theme-neutral/theme.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file AlertDialog.tsx
|
|
3
|
-
* @input Uses React, StyleX, Dialog, Layout,
|
|
3
|
+
* @input Uses React, StyleX, Dialog, Layout, Text's type styles, Button, the
|
|
4
4
|
* action-group tracking (hooks/useActionGroupTracking), the press-group
|
|
5
5
|
* context (hooks/pressGroupContext), the group pointers
|
|
6
6
|
* (hooks/useGroupPressTracking) and the touch motion (useAlertMotion)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAmC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAmC,MAAM,OAAO,CAAC;AAexD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAkD5C,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACpE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IAE3C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC;IAExB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAW,EACX,WAAW,EAAE,oBAAoB,EACjC,WAAW,EACX,aAA6B,EAC7B,eAAe,EACf,QAAQ,EACR,KAAK,EAAE,SAAS,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,EACrB,GAAG,IAAI,EACR,EAAE,gBAAgB,qBA8JlB;yBAhLe,WAAW"}
|