@astryxdesign/core 0.7.17-canary.gffd1c8e → 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 +4 -0
- 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/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/CodeBlock/CodeBlock.js +17 -3
- 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 +2 -1
- 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.map +1 -1
- package/dist/Text/TruncationTooltip.js +17 -6
- 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 +2 -1
- 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/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/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +21 -9
- package/dist/TopNav/TopNavMegaMenu.js +1 -1
- package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMenu.js +9 -2
- 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 +211 -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 +6 -0
- package/src/Button/Button.tsx +6 -0
- 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/CodeBlock/CodeBlock.tsx +29 -2
- 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 +2 -4
- 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/Text/Heading.doc.mjs +2 -2
- package/src/Text/Text.doc.mjs +1 -1
- package/src/Text/TruncationTooltip.tsx +18 -11
- 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 +1 -0
- 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/useTooltip.tsx +26 -0
- package/src/TopNav/TopNav.doc.mjs +1 -1
- package/src/TopNav/TopNav.tsx +13 -3
- package/src/TopNav/TopNavHeading.tsx +22 -9
- package/src/TopNav/TopNavMegaMenu.tsx +4 -4
- package/src/TopNav/TopNavMenu.tsx +13 -0
- 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/locales/pseudo.json
CHANGED
|
@@ -623,6 +623,9 @@
|
|
|
623
623
|
"@astryx.markdownHeadingLinks.copied": {
|
|
624
624
|
"defaultMessage": "⟦Łíñķ çóþíéð⟧"
|
|
625
625
|
},
|
|
626
|
+
"@astryx.markdownHeadingLinks.copyFailed": {
|
|
627
|
+
"defaultMessage": "⟦Ƒàíłéð ţó çóþý ṽàłúé ţó çłíþƀóàřð.⟧"
|
|
628
|
+
},
|
|
626
629
|
"@astryx.markdownHeadingLinks.copy": {
|
|
627
630
|
"defaultMessage": "⟦Çóþý łíñķ ţó {heading}⟧"
|
|
628
631
|
},
|
|
@@ -767,6 +770,9 @@
|
|
|
767
770
|
"@astryx.slider.maximumThumb": {
|
|
768
771
|
"defaultMessage": "⟦Ṁàẋíɱúɱ ṽàłúé⟧"
|
|
769
772
|
},
|
|
773
|
+
"@astryx.slider.required": {
|
|
774
|
+
"defaultMessage": "⟦Řéɋúířéð⟧"
|
|
775
|
+
},
|
|
770
776
|
"@astryx.tabBar.badgedItem": {
|
|
771
777
|
"defaultMessage": "⟦{label}, {badge}⟧"
|
|
772
778
|
},
|
|
@@ -1130,6 +1136,9 @@
|
|
|
1130
1136
|
"@astryx.chatToolCalls.groupLabel": {
|
|
1131
1137
|
"defaultMessage": "⟦{count} ţóół çàłłš⟧"
|
|
1132
1138
|
},
|
|
1139
|
+
"@astryx.chatTriggerMenu.noResults": {
|
|
1140
|
+
"defaultMessage": "⟦Ñó řéšúłţš⟧"
|
|
1141
|
+
},
|
|
1133
1142
|
"@astryx.chatTriggerMenu.searching": {
|
|
1134
1143
|
"defaultMessage": "⟦Šéàřçĥíñĝ…⟧"
|
|
1135
1144
|
},
|
|
@@ -1151,12 +1160,18 @@
|
|
|
1151
1160
|
"@astryx.codeBlock.code": {
|
|
1152
1161
|
"defaultMessage": "⟦Çóðé⟧"
|
|
1153
1162
|
},
|
|
1163
|
+
"@astryx.codeBlock.diffLabel": {
|
|
1164
|
+
"defaultMessage": "⟦{language} ð탃⟧"
|
|
1165
|
+
},
|
|
1154
1166
|
"@astryx.field.optional": {
|
|
1155
1167
|
"defaultMessage": "⟦Óþţíóñàł⟧"
|
|
1156
1168
|
},
|
|
1157
1169
|
"@astryx.field.labelTooltip": {
|
|
1158
1170
|
"defaultMessage": "⟦Àƀóúţ {label}⟧"
|
|
1159
1171
|
},
|
|
1172
|
+
"@astryx.field.errorFallback": {
|
|
1173
|
+
"defaultMessage": "⟦Íñṽàłíð ṽàłúé⟧"
|
|
1174
|
+
},
|
|
1160
1175
|
"@astryx.field.required": {
|
|
1161
1176
|
"defaultMessage": "⟦Řéɋúířéð⟧"
|
|
1162
1177
|
},
|
|
@@ -1454,6 +1469,9 @@
|
|
|
1454
1469
|
"@astryx.timestamp.copied": {
|
|
1455
1470
|
"defaultMessage": "⟦Çóþíéð⟧"
|
|
1456
1471
|
},
|
|
1472
|
+
"@astryx.timestamp.relativeLabel": {
|
|
1473
|
+
"defaultMessage": "⟦{relative}, {date}⟧"
|
|
1474
|
+
},
|
|
1457
1475
|
"@astryx.timestamp.detailsLabel": {
|
|
1458
1476
|
"defaultMessage": "⟦Ţíɱéšţàɱþ ðéţàíłš⟧"
|
|
1459
1477
|
},
|
|
@@ -1502,6 +1520,9 @@
|
|
|
1502
1520
|
"@astryx.typeahead.resultCount": {
|
|
1503
1521
|
"defaultMessage": "⟦{count, number} {count, plural, one {result} other {results}}⟧"
|
|
1504
1522
|
},
|
|
1523
|
+
"@astryx.tokenizer.overflowCount": {
|
|
1524
|
+
"defaultMessage": "⟦+{count, number} ɱóřé⟧"
|
|
1525
|
+
},
|
|
1505
1526
|
"@astryx.tokenizer.tokenAdded": {
|
|
1506
1527
|
"defaultMessage": "⟦Àððéð {label}⟧"
|
|
1507
1528
|
},
|
|
@@ -2036,6 +2057,12 @@
|
|
|
2036
2057
|
"@astryx.navigationStack.back": {
|
|
2037
2058
|
"defaultMessage": "⟦Ɓàçķ⟧"
|
|
2038
2059
|
},
|
|
2060
|
+
"@astryx.rating.starLabel": {
|
|
2061
|
+
"defaultMessage": "⟦{value, number} óƒ {max, plural, one {# star} other {# stars}}⟧"
|
|
2062
|
+
},
|
|
2063
|
+
"@astryx.rating.readOnlyLabel": {
|
|
2064
|
+
"defaultMessage": "⟦{label}: {rating}⟧"
|
|
2065
|
+
},
|
|
2039
2066
|
"@astryx.searchField.cancel": {
|
|
2040
2067
|
"defaultMessage": "⟦Çàñçéł⟧"
|
|
2041
2068
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/core",
|
|
3
|
-
"version": "0.7.17
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"displayName": "Astryx Core",
|
|
5
5
|
"description": "The Astryx component library: accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -724,6 +724,11 @@
|
|
|
724
724
|
"types": "./dist/i18n/index.d.ts",
|
|
725
725
|
"default": "./dist/i18n/index.js"
|
|
726
726
|
},
|
|
727
|
+
"./palette": {
|
|
728
|
+
"source": "./src/palette/index.ts",
|
|
729
|
+
"types": "./dist/palette/index.d.ts",
|
|
730
|
+
"default": "./dist/palette/index.js"
|
|
731
|
+
},
|
|
727
732
|
"./theme": {
|
|
728
733
|
"source": "./src/theme/index.ts",
|
|
729
734
|
"types": "./dist/theme/index.d.ts",
|
|
@@ -940,9 +945,6 @@
|
|
|
940
945
|
"react-dom": ">=19.0.0"
|
|
941
946
|
},
|
|
942
947
|
"devDependencies": {
|
|
943
|
-
"@astryxdesign/a11y-spec": "0.7.17-canary.gffd1c8e",
|
|
944
|
-
"@astryxdesign/cli": "0.7.17-canary.gffd1c8e",
|
|
945
|
-
"@astryxdesign/interaction-harness": "0.7.17-canary.gffd1c8e",
|
|
946
948
|
"@babel/cli": "^7.29.7",
|
|
947
949
|
"@babel/core": "^7.29.7",
|
|
948
950
|
"@babel/preset-react": "^7.29.7",
|
|
@@ -954,7 +956,10 @@
|
|
|
954
956
|
"@testing-library/react": "^16.3.3",
|
|
955
957
|
"@types/babel__core": "^7.20.5",
|
|
956
958
|
"tailwindcss": "^4.3.2",
|
|
957
|
-
"temporal-polyfill": "^1.0.6"
|
|
959
|
+
"temporal-polyfill": "^1.0.6",
|
|
960
|
+
"@astryxdesign/a11y-spec": "0.0.0",
|
|
961
|
+
"@astryxdesign/cli": "0.7.17",
|
|
962
|
+
"@astryxdesign/interaction-harness": "0.0.0"
|
|
958
963
|
},
|
|
959
964
|
"dependencies": {
|
|
960
965
|
"intl-messageformat": "^11.2.9"
|
|
@@ -54,7 +54,7 @@ export const WORKFLOW_TITLE =
|
|
|
54
54
|
export const WORKFLOW_STEPS = Object.freeze([
|
|
55
55
|
'1. `astryx build "<idea>"` — names the template to scaffold from and the parts it lacks.',
|
|
56
56
|
'2. `astryx template <name> <path>` — scaffold it; keep its frame, gap and padding; replace the content.',
|
|
57
|
-
'3. `astryx
|
|
57
|
+
'3. `astryx component <Name>` to read props before using one; `astryx template <Block>` prints a block example to read for a part it lacks. Astryx names differ from other libraries: buttons, badges, tokens and tabs take their text in `label` (Text, Heading and Link take children), booleans start with `is` or `has` (`isOpen`, `isDisabled`), and every input takes `value` and `onChange`.',
|
|
58
58
|
]);
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -131,10 +131,64 @@ export function holdsAstryxBlock(content) {
|
|
|
131
131
|
return false;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* The project skills folders `init --to skills` writes, relative to the
|
|
136
|
+
* project root: the shared folder most agents read, and Claude Code's own.
|
|
137
|
+
*/
|
|
138
|
+
export const PROJECT_SKILL_FOLDERS = Object.freeze([
|
|
139
|
+
path.join('.agents', 'skills'),
|
|
140
|
+
path.join('.claude', 'skills'),
|
|
141
|
+
]);
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The project skill's name, which is also its folder's name. It differs from
|
|
145
|
+
* the computer-level skill's (`astryx`): an agent that reads both a user and
|
|
146
|
+
* a project skill of one name shows only one of them, and Claude Code shows
|
|
147
|
+
* the user one, which would hide the project's.
|
|
148
|
+
*/
|
|
149
|
+
export const PROJECT_SKILL_NAME = 'astryx-project';
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The names a project's astryx.config can have, in the order the CLI looks
|
|
153
|
+
* for them.
|
|
154
|
+
*/
|
|
155
|
+
export const CONFIG_BASENAMES = ['astryx.config.ts', 'astryx.config.mjs', 'astryx.config.js'];
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The project skill files a folder place saved in the project's
|
|
159
|
+
* astryx.config can hold: `<root>/<path>/astryx-project/SKILL.md` for each
|
|
160
|
+
* `'./<path>'` string the config file names (`'.'` is the root). The config
|
|
161
|
+
* is read as text and
|
|
162
|
+
* never run, so this works where only Node's builtins load. A string that
|
|
163
|
+
* is not a saved place counts only when Astryx wrote a project skill there.
|
|
164
|
+
* @param {string} root
|
|
165
|
+
* @returns {string[]}
|
|
166
|
+
*/
|
|
167
|
+
function savedFolderSkillFiles(root) {
|
|
168
|
+
for (const name of CONFIG_BASENAMES) {
|
|
169
|
+
let source;
|
|
170
|
+
try {
|
|
171
|
+
source = fs.readFileSync(path.join(root, name), 'utf-8');
|
|
172
|
+
} catch {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
const files = [];
|
|
176
|
+
// `'.'` and `'./'` name the project root itself.
|
|
177
|
+
for (const match of source.matchAll(/(['"`])\.(?:\/([^'"`\n]*?))?\1/gu)) {
|
|
178
|
+
const rel = match[2] ?? '';
|
|
179
|
+
if (rel.split(/[\\/]/u).includes('..')) continue;
|
|
180
|
+
files.push(path.join(root, rel, PROJECT_SKILL_NAME, 'SKILL.md'));
|
|
181
|
+
}
|
|
182
|
+
return files;
|
|
183
|
+
}
|
|
184
|
+
return [];
|
|
185
|
+
}
|
|
186
|
+
|
|
134
187
|
/**
|
|
135
188
|
* Single source of truth for "is Astryx set up in this project?" — true when any
|
|
136
|
-
* agent-doc file already holds an Astryx block,
|
|
137
|
-
*
|
|
189
|
+
* agent-doc file already holds an Astryx block, or a project skills folder or
|
|
190
|
+
* a folder place saved in astryx.config holds the Astryx project skill
|
|
191
|
+
* (`init --to`), i.e. `init` has run. Reused by the init & upgrade commands, the per-command setup nudge
|
|
138
192
|
* (enforcement layer 3), and the cli postinstall nudge (layer 2). Core's
|
|
139
193
|
* postinstall (separate package, layer 1) mirrors the same marker contract.
|
|
140
194
|
*
|
|
@@ -152,6 +206,19 @@ export function isAstryxInitialized(targetDir = process.cwd()) {
|
|
|
152
206
|
// Unreadable file — ignore and keep checking the others.
|
|
153
207
|
}
|
|
154
208
|
}
|
|
209
|
+
const skillFiles = [
|
|
210
|
+
...PROJECT_SKILL_FOLDERS.map(folder =>
|
|
211
|
+
path.join(targetDir, folder, PROJECT_SKILL_NAME, 'SKILL.md'),
|
|
212
|
+
),
|
|
213
|
+
...savedFolderSkillFiles(targetDir),
|
|
214
|
+
];
|
|
215
|
+
for (const file of skillFiles) {
|
|
216
|
+
try {
|
|
217
|
+
if (fs.readFileSync(file, 'utf-8').includes(MARKER_START)) return true;
|
|
218
|
+
} catch {
|
|
219
|
+
// No project skill there.
|
|
220
|
+
}
|
|
221
|
+
}
|
|
155
222
|
return false;
|
|
156
223
|
}
|
|
157
224
|
|
|
@@ -220,7 +287,7 @@ export function setupNudge(
|
|
|
220
287
|
const run = before
|
|
221
288
|
? `\`${before}\`, then \`${invocation} init\``
|
|
222
289
|
: `\`${invocation} init\``;
|
|
223
|
-
return `\
|
|
290
|
+
return `\nAstryx is not set up in this project yet. Next step: run ${run} now, before you write Astryx code. It asks no questions, prints the getting-started steps, and saves the Astryx guide to AGENTS.md.\n\n`;
|
|
224
291
|
}
|
|
225
292
|
|
|
226
293
|
/** The nudge with the fallback invocation. */
|
|
@@ -186,7 +186,11 @@ export const docs = {
|
|
|
186
186
|
],
|
|
187
187
|
components: [{name: 'useImperativeAlertDialog'}],
|
|
188
188
|
theming: {
|
|
189
|
-
targets: [
|
|
189
|
+
targets: [
|
|
190
|
+
{className: 'astryx-alert-dialog'},
|
|
191
|
+
{className: 'astryx-alert-dialog-title'},
|
|
192
|
+
{className: 'astryx-alert-dialog-description'},
|
|
193
|
+
],
|
|
190
194
|
},
|
|
191
195
|
};
|
|
192
196
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file AlertDialog.tsx
|
|
7
|
-
* @input Uses React, StyleX, Dialog, Layout,
|
|
7
|
+
* @input Uses React, StyleX, Dialog, Layout, Text's type styles, Button, the
|
|
8
8
|
* action-group tracking (hooks/useActionGroupTracking), the press-group
|
|
9
9
|
* context (hooks/pressGroupContext), the group pointers
|
|
10
10
|
* (hooks/useGroupPressTracking) and the touch motion (useAlertMotion)
|
|
@@ -28,8 +28,13 @@ import {Layout} from '../Layout/Layout';
|
|
|
28
28
|
import {LayoutContent} from '../Layout/LayoutContent';
|
|
29
29
|
import {LayoutFooter} from '../Layout/LayoutFooter';
|
|
30
30
|
import {Stack} from '../Stack/Stack';
|
|
31
|
-
import {
|
|
32
|
-
|
|
31
|
+
import {
|
|
32
|
+
colorStyles,
|
|
33
|
+
defaultWeightByTypeStyles,
|
|
34
|
+
displayStyles,
|
|
35
|
+
sizeByLevelStyles,
|
|
36
|
+
sizeByTypeStyles,
|
|
37
|
+
} from '../Text/text.stylex';
|
|
33
38
|
import {Button} from '../Button/Button';
|
|
34
39
|
import type {ButtonVariant} from '../Button';
|
|
35
40
|
import type {BaseProps} from '../BaseProps';
|
|
@@ -299,12 +304,34 @@ export function AlertDialog({
|
|
|
299
304
|
<Layout
|
|
300
305
|
content={
|
|
301
306
|
<LayoutContent>
|
|
302
|
-
|
|
307
|
+
{/* The title and description draw as a level-2 heading and
|
|
308
|
+
secondary body text, but carry only their own targets: a
|
|
309
|
+
theme rule on a heading or text state never outranks them. */}
|
|
310
|
+
<h2
|
|
311
|
+
id={titleId}
|
|
312
|
+
{...mergeProps(
|
|
313
|
+
themeProps('alert-dialog-title'),
|
|
314
|
+
stylex.props(
|
|
315
|
+
colorStyles.primary,
|
|
316
|
+
sizeByLevelStyles[2],
|
|
317
|
+
displayStyles.block,
|
|
318
|
+
),
|
|
319
|
+
)}>
|
|
303
320
|
{title}
|
|
304
|
-
</
|
|
305
|
-
<
|
|
321
|
+
</h2>
|
|
322
|
+
<span
|
|
323
|
+
id={descriptionId}
|
|
324
|
+
{...mergeProps(
|
|
325
|
+
themeProps('alert-dialog-description'),
|
|
326
|
+
stylex.props(
|
|
327
|
+
colorStyles.secondary,
|
|
328
|
+
sizeByTypeStyles.body,
|
|
329
|
+
defaultWeightByTypeStyles.body,
|
|
330
|
+
displayStyles.inline,
|
|
331
|
+
),
|
|
332
|
+
)}>
|
|
306
333
|
{description}
|
|
307
|
-
</
|
|
334
|
+
</span>
|
|
308
335
|
</LayoutContent>
|
|
309
336
|
}
|
|
310
337
|
footer={
|
|
@@ -183,6 +183,28 @@ export const docs = {
|
|
|
183
183
|
},
|
|
184
184
|
],
|
|
185
185
|
playground: {
|
|
186
|
+
// The phone layout (the menu button in the top bar, the open drawer with
|
|
187
|
+
// the top bar's links):
|
|
188
|
+
// the theme editor's census renders it, so a theme reaches the parts
|
|
189
|
+
// only that layout draws.
|
|
190
|
+
mobile: {
|
|
191
|
+
mobileNav: {defaultIsMobile: true, isOpen: true},
|
|
192
|
+
// The top bar's links, which the phone menu draws as its own rows.
|
|
193
|
+
topNav: {
|
|
194
|
+
__element: 'TopNav',
|
|
195
|
+
props: {
|
|
196
|
+
label: 'Navigation',
|
|
197
|
+
heading: {__element: 'TopNavHeading', props: {heading: 'My App'}},
|
|
198
|
+
startContent: [
|
|
199
|
+
{
|
|
200
|
+
__element: 'TopNavItem',
|
|
201
|
+
props: {label: 'Inbox', href: '#', isSelected: true},
|
|
202
|
+
},
|
|
203
|
+
{__element: 'TopNavItem', props: {label: 'Reports', href: '#'}},
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
186
208
|
defaults: {
|
|
187
209
|
variant: 'surface',
|
|
188
210
|
contentPadding: 4,
|
|
@@ -45,6 +45,7 @@ import {LayoutHeader} from '../Layout/LayoutHeader';
|
|
|
45
45
|
import {LayoutPanel} from '../Layout/LayoutPanel';
|
|
46
46
|
import {LayoutContent} from '../Layout/LayoutContent';
|
|
47
47
|
import {LayoutAreaContext} from '../Layout/LayoutAreaContext';
|
|
48
|
+
import {LayoutContainerContext} from '../Layout/LayoutContainerContext';
|
|
48
49
|
import {LayoutDividerContext} from '../Layout/LayoutDividerContext';
|
|
49
50
|
import {
|
|
50
51
|
DEFAULT_LAYOUT_SLOTS,
|
|
@@ -67,9 +68,13 @@ import {
|
|
|
67
68
|
type LayoutChange,
|
|
68
69
|
type LayoutSwap,
|
|
69
70
|
} from '../motion/animatedLayout';
|
|
70
|
-
import {
|
|
71
|
+
import {
|
|
72
|
+
TopNavRenderContext,
|
|
73
|
+
TopNavUnreadRegionContext,
|
|
74
|
+
} from '../TopNav/TopNavRenderContext';
|
|
71
75
|
import {TopNavMobileContentContext} from '../TopNav/TopNavMobileContentContext';
|
|
72
76
|
import {AppShellMobileContext} from './AppShellMobileContext';
|
|
77
|
+
import {UNREAD_STYLES, unreadWidthPoint} from './unreadWidthPoint';
|
|
73
78
|
import {AppShellNestingContext, useAppShellMainId} from './useAppShellMainId';
|
|
74
79
|
import type {AppShellMobileContextValue} from './AppShellMobileContext';
|
|
75
80
|
import type {SpacingStep} from '../utils/types';
|
|
@@ -79,6 +84,7 @@ import {
|
|
|
79
84
|
focusOutlineProps,
|
|
80
85
|
focusOutlineStyles,
|
|
81
86
|
} from '../utils/focusOutline.stylex';
|
|
87
|
+
import {useIsHydrating} from '../hooks/useIsHydrating';
|
|
82
88
|
import {useMediaQuery} from '../hooks/useMediaQuery';
|
|
83
89
|
import {matchesMediaQuery} from '../utils/coarsePointer';
|
|
84
90
|
import {observeResize} from '../utils/sharedResizeObserver';
|
|
@@ -87,6 +93,7 @@ import {useThemeDefinition} from '../theme/useTheme';
|
|
|
87
93
|
import {
|
|
88
94
|
DEFAULT_WIDTH_BREAKPOINTS,
|
|
89
95
|
type WidthBreakpointName,
|
|
96
|
+
widthBelowFeature,
|
|
90
97
|
} from '../theme/themeAdaptations';
|
|
91
98
|
import type {AppShellVariantMap} from './index';
|
|
92
99
|
|
|
@@ -194,9 +201,13 @@ export interface MobileNavConfig {
|
|
|
194
201
|
|
|
195
202
|
/**
|
|
196
203
|
* SSR hint: whether the initial render should assume mobile layout.
|
|
197
|
-
* Seeds the breakpoint state so the server-rendered HTML
|
|
198
|
-
*
|
|
199
|
-
*
|
|
204
|
+
* Seeds the breakpoint state so the server-rendered HTML is the phone
|
|
205
|
+
* layout, menu toggle included. Without it, when the theme keeps the
|
|
206
|
+
* standard width points, the server-rendered wide layout still paints
|
|
207
|
+
* without its inline side nav, and with only the top nav's heading and end
|
|
208
|
+
* content, below the breakpoint, and the toggle arrives when the page's
|
|
209
|
+
* script runs. Ignored when `breakpoint` is
|
|
210
|
+
* `none`, which is always non-mobile.
|
|
200
211
|
*
|
|
201
212
|
* Derive from the User-Agent header or a device-detection cookie
|
|
202
213
|
* in a server component, then pass down.
|
|
@@ -390,6 +401,7 @@ const styles = stylex.create({
|
|
|
390
401
|
textDecoration: 'none',
|
|
391
402
|
fontWeight: fontWeightVars['--font-weight-semibold'],
|
|
392
403
|
fontSize: typeScaleVars['--text-body-size'],
|
|
404
|
+
lineHeight: typeScaleVars['--text-body-leading'],
|
|
393
405
|
},
|
|
394
406
|
// Programmatic focus target for the skip link. While main fits, it is only
|
|
395
407
|
// focusable via tabIndex={-1} (never tabbable), so a focus ring around the
|
|
@@ -622,25 +634,27 @@ export function AppShell({
|
|
|
622
634
|
// Mobile nav open state (controlled + uncontrolled)
|
|
623
635
|
// =========================================================================
|
|
624
636
|
const activeWidthBreakpoints = activeTheme?.__adaptations?.widthBreakpoints;
|
|
625
|
-
const
|
|
637
|
+
const breakpointWidth =
|
|
626
638
|
sideNavBreakpoint === 'none'
|
|
627
|
-
?
|
|
628
|
-
:
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
639
|
+
? null
|
|
640
|
+
: (activeWidthBreakpoints?.[sideNavBreakpoint] ??
|
|
641
|
+
DEFAULT_WIDTH_BREAKPOINTS[sideNavBreakpoint]);
|
|
642
|
+
const breakpointQuery = widthBelowFeature(breakpointWidth ?? 0);
|
|
643
|
+
const isMobileOnServer =
|
|
644
|
+
breakpointWidth != null && mobileNavConfig?.defaultIsMobile === true;
|
|
645
|
+
const isBelowBreakpointNow = useMediaQuery(breakpointQuery, isMobileOnServer);
|
|
646
|
+
const hasReadWindow = !useIsHydrating();
|
|
632
647
|
// The client's first answer can differ from the server's. That correction
|
|
633
648
|
// is an urgent update, and it changes the mobile context above the page.
|
|
634
649
|
// React answers an urgent update above content it has not hydrated by
|
|
635
650
|
// rendering that content again in place of its server HTML. A deferred
|
|
636
651
|
// value takes the client's answer in a transition, which waits for that
|
|
637
652
|
// content to hydrate.
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
breakpointQuery,
|
|
641
|
-
sideNavBreakpoint === 'none' ? false : mobileNavConfig?.defaultIsMobile,
|
|
642
|
-
),
|
|
653
|
+
const layoutWidth = useDeferredValue(
|
|
654
|
+
!hasReadWindow ? 'unread' : isBelowBreakpointNow ? 'mobile' : 'wide',
|
|
643
655
|
);
|
|
656
|
+
const isBelowBreakpoint =
|
|
657
|
+
layoutWidth === 'unread' ? isMobileOnServer : layoutWidth === 'mobile';
|
|
644
658
|
const [uncontrolledMobileOpen, setUncontrolledMobileOpen] = useState(false);
|
|
645
659
|
const isMobileNavOpen = mobileNavConfig?.isOpen ?? uncontrolledMobileOpen;
|
|
646
660
|
|
|
@@ -851,6 +865,19 @@ export function AppShell({
|
|
|
851
865
|
// Determine if sideNav should show as overlay (mobile) or inline
|
|
852
866
|
// =========================================================================
|
|
853
867
|
const showSideNavInline = hasSideNav && !isBelowBreakpoint;
|
|
868
|
+
// Until the shell reads the window, a phone can be showing the server's wide
|
|
869
|
+
// layout. CSS then hides the inline side nav and flattens the elevated
|
|
870
|
+
// corner below the breakpoint. A theme that moves the point has no compiled
|
|
871
|
+
// rule, so its shell keeps the server's layout until it reads the window.
|
|
872
|
+
const unreadPoint = unreadWidthPoint(
|
|
873
|
+
layoutWidth === 'unread',
|
|
874
|
+
sideNavBreakpoint,
|
|
875
|
+
breakpointWidth,
|
|
876
|
+
);
|
|
877
|
+
const unreadStyles =
|
|
878
|
+
showSideNavInline && unreadPoint != null
|
|
879
|
+
? UNREAD_STYLES[unreadPoint]
|
|
880
|
+
: undefined;
|
|
854
881
|
|
|
855
882
|
// Mobile nav rendering modes:
|
|
856
883
|
// 1. ReactNode shorthand — user provided <MobileNav> directly
|
|
@@ -912,13 +939,27 @@ export function AppShell({
|
|
|
912
939
|
</SideNavRenderContext>
|
|
913
940
|
) : null;
|
|
914
941
|
|
|
942
|
+
const topNavTakesMobileBar = !mobileNavDisabled && mobileNavReactNode == null;
|
|
943
|
+
// Until the shell reads the window, the server's full bar can be showing on
|
|
944
|
+
// a phone. The full bar then hides its start and center content below the
|
|
945
|
+
// breakpoint, as the mobile bar does. The toggle arrives when the shell
|
|
946
|
+
// reads the window. A theme that moves the point has no compiled rule, so
|
|
947
|
+
// its bar keeps the server's layout until then.
|
|
948
|
+
const unreadTopNavRegion =
|
|
949
|
+
!isBelowBreakpoint && topNavTakesMobileBar && unreadPoint != null
|
|
950
|
+
? UNREAD_STYLES[unreadPoint].topNavRegion
|
|
951
|
+
: null;
|
|
915
952
|
const topNavContent = hasTopNav ? (
|
|
916
|
-
isBelowBreakpoint &&
|
|
953
|
+
isBelowBreakpoint && topNavTakesMobileBar ? (
|
|
917
954
|
<TopNavMobileContentContext value={mobileContentValue}>
|
|
918
955
|
<TopNavRenderContext value="mobile-bar">{topNav}</TopNavRenderContext>
|
|
919
956
|
</TopNavMobileContentContext>
|
|
920
957
|
) : (
|
|
921
|
-
|
|
958
|
+
// Always present on this branch, so reading the window keeps the bar
|
|
959
|
+
// mounted.
|
|
960
|
+
<TopNavUnreadRegionContext value={unreadTopNavRegion}>
|
|
961
|
+
{topNav}
|
|
962
|
+
</TopNavUnreadRegionContext>
|
|
922
963
|
)
|
|
923
964
|
) : null;
|
|
924
965
|
|
|
@@ -1118,6 +1159,7 @@ export function AppShell({
|
|
|
1118
1159
|
navAreaStyle,
|
|
1119
1160
|
isAuto && stickyBgStyle,
|
|
1120
1161
|
isAuto && styles.panelAutoFill,
|
|
1162
|
+
unreadStyles?.sideNav,
|
|
1121
1163
|
]}>
|
|
1122
1164
|
<SideNavShellContext value={sideNavShell}>{sideNav}</SideNavShellContext>
|
|
1123
1165
|
</LayoutPanel>
|
|
@@ -1258,7 +1300,10 @@ export function AppShell({
|
|
|
1258
1300
|
: styles.contentWrapper,
|
|
1259
1301
|
)}>
|
|
1260
1302
|
{shouldElevateWithCorner && (
|
|
1261
|
-
<div
|
|
1303
|
+
<div
|
|
1304
|
+
ref={backdropRef}
|
|
1305
|
+
{...stylex.props(styles.elevatedBackdrop, unreadStyles?.corner)}
|
|
1306
|
+
/>
|
|
1262
1307
|
)}
|
|
1263
1308
|
{mainInner}
|
|
1264
1309
|
</div>
|
|
@@ -1344,56 +1389,58 @@ export function AppShell({
|
|
|
1344
1389
|
<LayoutAreaContext value={null}>
|
|
1345
1390
|
<LayoutSlotsContext value={DEFAULT_LAYOUT_SLOTS}>
|
|
1346
1391
|
<LayoutDividerContext value={null}>
|
|
1347
|
-
{
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1392
|
+
<LayoutContainerContext value={null}>
|
|
1393
|
+
{/* Skip-to-content link */}
|
|
1394
|
+
<a
|
|
1395
|
+
href={`#${mainContentId}`}
|
|
1396
|
+
onClick={handleSkipLinkClick}
|
|
1397
|
+
{...focusOutlineProps.focusVisible(styles.skipLink)}
|
|
1398
|
+
data-testid="skip-to-content">
|
|
1399
|
+
{t('@astryx.appShell.skipToContent')}
|
|
1400
|
+
</a>
|
|
1401
|
+
|
|
1402
|
+
<Layout
|
|
1403
|
+
height={height}
|
|
1404
|
+
padding={0}
|
|
1405
|
+
header={
|
|
1406
|
+
<>
|
|
1407
|
+
{headerContent}
|
|
1408
|
+
{autoMobileTopBar}
|
|
1409
|
+
</>
|
|
1410
|
+
}
|
|
1411
|
+
start={sideNavContent}
|
|
1412
|
+
content={mainContent}
|
|
1413
|
+
/>
|
|
1414
|
+
|
|
1415
|
+
{/* Mobile nav — always mounted below breakpoint via Activity so DOM
|
|
1370
1416
|
presence detection works. Hidden until the drawer opens. */}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1417
|
+
{shouldRenderMobileNavReactNode && mobileNavReactNode}
|
|
1418
|
+
{shouldRenderConfigContent && mobileNavConfigContent}
|
|
1419
|
+
{isBelowBreakpoint &&
|
|
1420
|
+
!mobileNavDisabled &&
|
|
1421
|
+
mobileNavReactNode == null &&
|
|
1422
|
+
!mobileNavConfigContent && (
|
|
1423
|
+
<ActivityWrapper
|
|
1424
|
+
mode={isMobileNavActivityVisible ? 'visible' : 'hidden'}>
|
|
1425
|
+
{/* SideNav drawer — always mounted so presence detection works.
|
|
1380
1426
|
Hidden when TopNav owns the drawer (combined mode passes
|
|
1381
1427
|
sideNav via TopNav's mobile content context instead). */}
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1428
|
+
{hasSideNav && !hasTopNav && (
|
|
1429
|
+
<SideNavRenderContext value="drawer">
|
|
1430
|
+
{sideNav}
|
|
1431
|
+
</SideNavRenderContext>
|
|
1432
|
+
)}
|
|
1433
|
+
{hasTopNav && (
|
|
1434
|
+
<TopNavMobileContentContext
|
|
1435
|
+
value={drawerMobileContentValue}>
|
|
1436
|
+
<TopNavRenderContext value="drawer">
|
|
1437
|
+
{topNav}
|
|
1438
|
+
</TopNavRenderContext>
|
|
1439
|
+
</TopNavMobileContentContext>
|
|
1440
|
+
)}
|
|
1441
|
+
</ActivityWrapper>
|
|
1442
|
+
)}
|
|
1443
|
+
</LayoutContainerContext>
|
|
1397
1444
|
</LayoutDividerContext>
|
|
1398
1445
|
</LayoutSlotsContext>
|
|
1399
1446
|
</LayoutAreaContext>
|