@astryxdesign/core 0.7.4 → 0.7.5-canary.07605c2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/AlertDialog/index.d.ts +4 -4
- package/dist/AlertDialog/useImperativeAlertDialog.d.ts +1 -1
- package/dist/AppShell/AppShell.d.ts +4 -4
- package/dist/AppShell/index.d.ts +4 -4
- package/dist/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/AspectRatio/index.d.ts +2 -2
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/AvatarStatusDot.d.ts +2 -2
- package/dist/Avatar/index.d.ts +4 -4
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/AvatarGroup/AvatarGroupContext.d.ts +1 -1
- package/dist/AvatarGroup/AvatarGroupOverflow.d.ts +1 -1
- package/dist/AvatarGroup/index.d.ts +6 -6
- package/dist/Badge/Badge.d.ts +2 -2
- package/dist/Badge/index.d.ts +2 -2
- package/dist/Banner/Banner.d.ts +4 -4
- package/dist/Banner/index.d.ts +2 -2
- package/dist/Blockquote/Blockquote.d.ts +1 -1
- package/dist/Blockquote/index.d.ts +2 -2
- package/dist/BottomSheet/BottomSheet.d.ts +10 -6
- package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheet.js +12 -1
- package/dist/BottomSheet/BottomSheetPanel.d.ts +3 -3
- package/dist/BottomSheet/BottomSheetSwitcher.d.ts +1 -1
- package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts +2 -2
- package/dist/BottomSheet/index.d.ts +4 -4
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/Breadcrumbs/index.d.ts +12 -12
- package/dist/Button/Button.d.ts +4 -4
- package/dist/Button/index.d.ts +2 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +4 -4
- package/dist/ButtonGroup/index.d.ts +4 -4
- package/dist/Calendar/Calendar.d.ts +3 -3
- package/dist/Calendar/dayCellUtils.d.ts +1 -1
- package/dist/Calendar/getInitialFocusDate.d.ts +2 -2
- package/dist/Calendar/getStandaloneShortWeekdayNames.d.ts +1 -1
- package/dist/Calendar/hooks/index.d.ts +6 -6
- package/dist/Calendar/hooks/useCalendarConstraints.d.ts +2 -2
- package/dist/Calendar/hooks/useCalendarDays.d.ts +2 -2
- package/dist/Calendar/hooks/useCalendarNavigation.d.ts +2 -2
- package/dist/Calendar/index.d.ts +5 -5
- package/dist/Calendar/utils.d.ts +1 -1
- package/dist/Card/Card.d.ts +4 -4
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/index.d.ts +2 -2
- package/dist/Center/Center.d.ts +2 -2
- package/dist/Center/index.d.ts +2 -2
- package/dist/Chat/ChatComposer.d.ts +1 -1
- package/dist/Chat/ChatComposerDrawer.d.ts +1 -1
- package/dist/Chat/ChatComposerInput.d.ts +4 -4
- package/dist/Chat/ChatDictationButton.d.ts +2 -2
- package/dist/Chat/ChatLayout.d.ts +1 -1
- package/dist/Chat/ChatLayoutScrollButton.d.ts +1 -1
- package/dist/Chat/ChatMessage.d.ts +2 -2
- package/dist/Chat/ChatMessageBubble.d.ts +2 -2
- package/dist/Chat/ChatMessageList.d.ts +3 -3
- package/dist/Chat/ChatMessageMetadata.d.ts +1 -1
- package/dist/Chat/ChatSendButton.d.ts +1 -1
- package/dist/Chat/ChatSystemMessage.d.ts +1 -1
- package/dist/Chat/ChatTokenizedText.d.ts +2 -2
- package/dist/Chat/ChatToolCalls.d.ts +1 -1
- package/dist/Chat/index.d.ts +43 -43
- package/dist/Chat/useChatComposerTokens.d.ts +1 -1
- package/dist/Chat/useChatDictation.d.ts +1 -1
- package/dist/Chat/useChatPasteAsToken.d.ts +1 -1
- package/dist/Chat/useTriggerMenu.d.ts +2 -2
- package/dist/CheckboxInput/CheckboxInput.d.ts +4 -4
- package/dist/CheckboxInput/index.d.ts +2 -2
- package/dist/CheckboxList/CheckboxList.d.ts +4 -4
- package/dist/CheckboxList/CheckboxListItem.d.ts +2 -2
- package/dist/CheckboxList/index.d.ts +4 -4
- package/dist/Citation/Citation.d.ts +1 -1
- package/dist/Citation/index.d.ts +2 -2
- package/dist/ClickableCard/ClickableCard.d.ts +3 -3
- package/dist/ClickableCard/index.d.ts +2 -2
- package/dist/Code/Code.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/CodeBlock/CodeBlock.d.ts +2 -2
- package/dist/CodeBlock/highlightRanges.d.ts +1 -1
- package/dist/CodeBlock/index.d.ts +8 -8
- package/dist/Collapsible/Collapsible.d.ts +2 -2
- package/dist/Collapsible/CollapsibleGroup.d.ts +2 -2
- package/dist/Collapsible/index.d.ts +7 -7
- package/dist/CommandPalette/CommandPalette.d.ts +2 -2
- package/dist/CommandPalette/CommandPaletteContext.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteEmpty.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteFooter.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteGroup.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteItem.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteList.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +16 -16
- package/dist/ComplexSelector/ComplexSelector.d.ts +5 -5
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts +4 -4
- package/dist/ContextMenu/index.d.ts +9 -9
- package/dist/DateInput/DateInput.d.ts +7 -7
- package/dist/DateInput/MonthScroller.d.ts +1 -1
- package/dist/DateInput/NativeDateField.d.ts +1 -1
- package/dist/DateInput/TouchDateField.d.ts +1 -1
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/monthGeometry.d.ts +1 -1
- package/dist/DateRangeInput/DateRangeInput.d.ts +6 -6
- package/dist/DateRangeInput/index.d.ts +2 -2
- package/dist/DateTimeInput/DateTimeInput.d.ts +6 -6
- package/dist/DateTimeInput/NativeDateSegment.d.ts +3 -3
- package/dist/DateTimeInput/NativeTimeSegment.d.ts +4 -4
- package/dist/DateTimeInput/TouchDateTimeField.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +2 -2
- package/dist/Dialog/Dialog.d.ts +3 -3
- package/dist/Dialog/DialogHeader.d.ts +1 -1
- package/dist/Dialog/index.d.ts +6 -6
- package/dist/Dialog/useImperativeDialog.d.ts +1 -1
- package/dist/Divider/Divider.d.ts +2 -2
- package/dist/Divider/index.d.ts +2 -2
- package/dist/Drawer/Drawer.d.ts +3 -3
- package/dist/Drawer/DrawerHeader.d.ts +1 -1
- package/dist/Drawer/index.d.ts +4 -4
- package/dist/DropdownMenu/DropdownMenu.d.ts +5 -5
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts +2 -2
- package/dist/DropdownMenu/DropdownMenuDivider.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenuGroup.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/dist/DropdownMenu/DropdownMenuRadioGroup.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts +2 -2
- package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts +2 -2
- package/dist/DropdownMenu/MenuBottomSheetActionList.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +10 -10
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +2 -2
- package/dist/DropdownMenu/renderDropdownItems.d.ts +1 -1
- package/dist/DropdownMenu/useMenuDrillIn.d.ts +1 -1
- package/dist/EmptyState/EmptyState.d.ts +1 -1
- package/dist/EmptyState/index.d.ts +2 -2
- package/dist/Field/Field.d.ts +5 -5
- package/dist/Field/FieldLabel.d.ts +2 -2
- package/dist/Field/PanelSearchInput.d.ts +1 -1
- package/dist/Field/fieldInputFamily.testing.d.ts +1 -1
- package/dist/Field/fieldParts.d.ts +1 -1
- package/dist/Field/index.d.ts +10 -10
- package/dist/Field/inputDisabledFocus.d.ts +14 -0
- package/dist/Field/inputDisabledFocus.d.ts.map +1 -0
- package/dist/Field/inputDisabledFocus.js +19 -0
- package/dist/FieldStatus/FieldStatus.d.ts +3 -3
- package/dist/FieldStatus/index.d.ts +2 -2
- package/dist/FieldStatus/useFieldStatusAnnouncement.d.ts +1 -1
- package/dist/FileInput/FileInput.d.ts +4 -4
- package/dist/FileInput/index.d.ts +2 -2
- package/dist/FormLayout/FormLayout.d.ts +2 -2
- package/dist/FormLayout/index.d.ts +4 -4
- package/dist/Grid/Grid.d.ts +3 -3
- package/dist/Grid/GridSpan.d.ts +1 -1
- package/dist/Grid/index.d.ts +4 -4
- package/dist/HStack/HStack.d.ts +2 -2
- package/dist/HStack/index.d.ts +1 -1
- package/dist/Heading/Heading.d.ts +4 -4
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/HoverCard.d.ts +4 -4
- package/dist/HoverCard/index.d.ts +4 -4
- package/dist/HoverCard/useHoverCard.d.ts +2 -2
- package/dist/Icon/Icon.d.ts +3 -3
- package/dist/Icon/IconDefaultSizeContext.d.ts +1 -1
- package/dist/Icon/defaultIcons.d.ts +1 -1
- package/dist/Icon/globalIconRegistry.d.ts +1 -1
- package/dist/Icon/index.d.ts +5 -5
- package/dist/Icon/useIcon.d.ts +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/Indicator/CheckIndicator.d.ts +1 -1
- package/dist/Indicator/CheckboxIndicator.d.ts +1 -1
- package/dist/Indicator/RadioIndicator.d.ts +1 -1
- package/dist/Indicator/index.d.ts +8 -8
- package/dist/Indicator/indicatorRegistry.d.ts +2 -2
- package/dist/Indicator/types.d.ts +1 -1
- package/dist/Indicator/useIndicator.d.ts +2 -2
- package/dist/InputGroup/InputGroup.d.ts +2 -2
- package/dist/InputGroup/InputGroupText.d.ts +1 -1
- package/dist/InputGroup/index.d.ts +6 -6
- package/dist/InteractiveRoleContext/InteractiveRoleContext.d.ts +1 -1
- package/dist/InteractiveRoleContext/index.d.ts +1 -1
- package/dist/Item/Item.d.ts +1 -1
- package/dist/Item/ItemSwipeLayer.d.ts +2 -2
- package/dist/Item/index.d.ts +2 -2
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Kbd/index.d.ts +2 -2
- package/dist/Layer/LayerProvider.d.ts +1 -1
- package/dist/Layer/index.d.ts +18 -18
- package/dist/Layer/layerInset.d.ts +1 -1
- package/dist/Layer/layerSlideRules.d.ts +1 -1
- package/dist/Layer/modalOutlet.d.ts +1 -1
- package/dist/Layer/modalOutlet.js +1 -1
- package/dist/Layer/useLayerDismissal.d.ts +1 -1
- package/dist/Layout/Layout.d.ts +2 -2
- package/dist/Layout/LayoutContent.d.ts +2 -2
- package/dist/Layout/LayoutFooter.d.ts +2 -2
- package/dist/Layout/LayoutHeader.d.ts +2 -2
- package/dist/Layout/LayoutPanel.d.ts +3 -3
- package/dist/Layout/index.d.ts +29 -29
- package/dist/Layout/padding.stylex.d.ts +1 -1
- package/dist/Lightbox/Lightbox.d.ts +1 -1
- package/dist/Lightbox/index.d.ts +4 -4
- package/dist/Lightbox/useLightbox.d.ts +1 -1
- package/dist/Link/Link.d.ts +3 -3
- package/dist/Link/LinkContext.d.ts +1 -1
- package/dist/Link/LinkProvider.d.ts +1 -1
- package/dist/Link/index.d.ts +8 -8
- package/dist/Link/useLinkComponent.d.ts +1 -1
- package/dist/List/List.d.ts +3 -3
- package/dist/List/ListItem.d.ts +2 -2
- package/dist/List/index.d.ts +4 -4
- package/dist/Markdown/Markdown.d.ts +4 -4
- package/dist/Markdown/headingProjection.d.ts +3 -3
- package/dist/Markdown/index.d.ts +7 -7
- package/dist/Markdown/parser/index.d.ts +3 -3
- package/dist/Markdown/parser.d.ts +3 -3
- package/dist/Markdown/plugin-renderer/MarkdownPluginNodeRenderer.d.ts +1 -1
- package/dist/Markdown/plugin-renderer/index.d.ts +2 -2
- package/dist/Markdown/plugins/frontmatter.d.ts +2 -2
- package/dist/Markdown/plugins/headingLinks.d.ts +2 -2
- package/dist/Markdown/plugins/index.d.ts +14 -14
- package/dist/Markdown/plugins/protocol.d.ts +1 -1
- package/dist/Markdown/plugins/semanticFence.d.ts +2 -2
- package/dist/Markdown/plugins/softBreaks.d.ts +1 -1
- package/dist/Markdown/plugins/sourceDecoration.d.ts +2 -2
- package/dist/Markdown/plugins/sourceLines.d.ts +1 -1
- package/dist/Markdown/plugins/textTransform.d.ts +2 -2
- package/dist/Markdown/remark.d.ts +1 -1
- package/dist/Markdown/utils.d.ts +4 -4
- package/dist/MetadataList/MetadataList.d.ts +2 -2
- package/dist/MetadataList/MetadataListItem.d.ts +1 -1
- package/dist/MetadataList/index.d.ts +5 -5
- package/dist/MobileNav/MobileNav.d.ts +1 -1
- package/dist/MobileNav/MobileNavToggle.d.ts +1 -1
- package/dist/MobileNav/index.d.ts +4 -4
- package/dist/MoreMenu/MoreMenu.d.ts +4 -4
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/MultiSelector.d.ts +7 -7
- package/dist/MultiSelector/hooks.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +3 -3
- package/dist/MultiSelector/types.d.ts +1 -1
- package/dist/NavIcon/NavIcon.d.ts +1 -1
- package/dist/NavIcon/index.d.ts +2 -2
- package/dist/NavMenu/NavHeadingMenu.d.ts +2 -2
- package/dist/NavMenu/NavHeadingMenuItem.d.ts +2 -2
- package/dist/NavMenu/index.d.ts +6 -6
- package/dist/NumberInput/NumberInput.d.ts +8 -8
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +39 -14
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/numberInputCommit.d.ts +1 -1
- package/dist/NumberInput/numberParser.d.ts +1 -1
- package/dist/Outline/Outline.d.ts +3 -3
- package/dist/Outline/index.d.ts +7 -7
- package/dist/Outline/parseOutlineFromMarkdown.d.ts +2 -2
- package/dist/Outline/useOutlineFromDOM.d.ts +1 -1
- package/dist/Outline/useOutlineFromMarkdown.d.ts +3 -3
- package/dist/Outline/useScrollSpy.d.ts +1 -1
- package/dist/OverflowList/OverflowList.d.ts +2 -2
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/Overlay/Overlay.d.ts +2 -2
- package/dist/Overlay/index.d.ts +5 -5
- package/dist/Overlay/useOverlay.d.ts +1 -1
- package/dist/Pagination/Pagination.d.ts +2 -2
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Popover/Popover.d.ts +3 -3
- package/dist/Popover/index.d.ts +4 -4
- package/dist/Popover/usePopover.d.ts +2 -2
- package/dist/PowerSearch/PowerSearch.d.ts +5 -5
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +2 -2
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchToken.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts +2 -2
- package/dist/PowerSearch/formatFilterValue.d.ts +3 -3
- package/dist/PowerSearch/index.d.ts +8 -8
- package/dist/PowerSearch/resolveDateTimeRangePart.d.ts +1 -1
- package/dist/PowerSearch/resolveOperatorLabel.d.ts +2 -2
- package/dist/PowerSearch/types.d.ts +1 -1
- package/dist/PowerSearch/useInternalConfig.d.ts +1 -1
- package/dist/PowerSearch/usePowerSearchConfig.d.ts +1 -1
- package/dist/PowerSearch/usePowerSearchSource.d.ts +3 -3
- package/dist/PowerSearch/utils.d.ts +3 -3
- package/dist/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/RadioList/RadioList.d.ts +3 -3
- package/dist/RadioList/RadioListItem.d.ts +2 -2
- package/dist/RadioList/index.d.ts +4 -4
- package/dist/Resizable/ResizeHandle.d.ts +2 -2
- package/dist/Resizable/index.d.ts +6 -6
- package/dist/Resizable/useResizable.d.ts +2 -2
- package/dist/Resizable/utils.d.ts +3 -3
- package/dist/ScrollableArea/ScrollableArea.d.ts +3 -3
- package/dist/ScrollableArea/index.d.ts +4 -4
- package/dist/Section/Section.d.ts +3 -3
- package/dist/Section/index.d.ts +2 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/SegmentedControl/SegmentedControlItem.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +5 -5
- package/dist/SelectableCard/SelectableCard.d.ts +3 -3
- package/dist/SelectableCard/index.d.ts +2 -2
- package/dist/Selector/Selector.d.ts +8 -8
- package/dist/Selector/SelectorOption.d.ts +1 -1
- package/dist/Selector/hooks.d.ts +1 -1
- package/dist/Selector/index.d.ts +4 -4
- package/dist/Selector/types.d.ts +1 -1
- package/dist/Selector/useSelectorPresentation.d.ts +2 -2
- package/dist/Selector/utils.d.ts +1 -1
- package/dist/SideNav/SideNav.d.ts +3 -3
- package/dist/SideNav/SideNavCollapseButton.d.ts +3 -3
- package/dist/SideNav/SideNavHeading.d.ts +2 -2
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +34 -0
- package/dist/SideNav/SideNavItem.d.ts +4 -4
- package/dist/SideNav/SideNavSection.d.ts +1 -1
- package/dist/SideNav/index.d.ts +14 -14
- package/dist/SizeContext/index.d.ts +1 -1
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/index.d.ts +2 -2
- package/dist/Slider/Slider.d.ts +3 -3
- package/dist/Slider/index.d.ts +2 -2
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/Stack/Stack.d.ts +3 -3
- package/dist/Stack/StackItem.d.ts +2 -2
- package/dist/Stack/index.d.ts +6 -6
- package/dist/Stack/stack.stylex.d.ts +1 -1
- package/dist/StatusDot/StatusDot.d.ts +2 -2
- package/dist/StatusDot/index.d.ts +2 -2
- package/dist/Stepper/Step.d.ts +2 -2
- package/dist/Stepper/Step.d.ts.map +1 -1
- package/dist/Stepper/Step.js +3 -3
- package/dist/Stepper/Stepper.d.ts +2 -2
- package/dist/Stepper/index.d.ts +7 -7
- package/dist/Switch/Switch.d.ts +4 -4
- package/dist/Switch/index.d.ts +2 -2
- package/dist/TabList/Tab.d.ts +2 -2
- package/dist/TabList/TabList.d.ts +3 -3
- package/dist/TabList/TabMenu.d.ts +2 -2
- package/dist/TabList/index.d.ts +8 -8
- package/dist/Table/BaseTable.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/TableBody.d.ts +1 -1
- package/dist/Table/TableCell.d.ts +3 -3
- package/dist/Table/TableContext.d.ts +1 -1
- package/dist/Table/TableFooter.d.ts +1 -1
- package/dist/Table/TableHeader.d.ts +1 -1
- package/dist/Table/TableHeaderCell.d.ts +3 -3
- package/dist/Table/TableRow.d.ts +2 -2
- package/dist/Table/TableSelectionToolbar.d.ts +2 -2
- package/dist/Table/columnUtils.d.ts +1 -1
- package/dist/Table/index.d.ts +54 -54
- package/dist/Table/plugins/columnResize/index.d.ts +2 -2
- package/dist/Table/plugins/columnResize/useTableColumnResize.d.ts +1 -1
- package/dist/Table/plugins/columnSettings/index.d.ts +4 -4
- package/dist/Table/plugins/columnSettings/useTableColumnSettings.d.ts +2 -2
- package/dist/Table/plugins/columnSettings/useTableColumnSettingsState.d.ts +1 -1
- package/dist/Table/plugins/filtering/index.d.ts +4 -4
- package/dist/Table/plugins/filtering/useTableFilterState.d.ts +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.d.ts +2 -2
- package/dist/Table/plugins/groupedRows/index.d.ts +2 -2
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts +1 -1
- package/dist/Table/plugins/pagination/index.d.ts +3 -3
- package/dist/Table/plugins/pagination/useTablePagination.d.ts +1 -1
- package/dist/Table/plugins/rowExpansion/index.d.ts +2 -2
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts +1 -1
- package/dist/Table/plugins/rowIndex/index.d.ts +2 -2
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +1 -1
- package/dist/Table/plugins/rowStatus/index.d.ts +2 -2
- package/dist/Table/plugins/rowStatus/useTableRowStatus.d.ts +2 -2
- package/dist/Table/plugins/selection/index.d.ts +4 -4
- package/dist/Table/plugins/selection/useTableSelection.d.ts +1 -1
- package/dist/Table/plugins/selection/useTableSelectionState.d.ts +1 -1
- package/dist/Table/plugins/sortable/index.d.ts +4 -4
- package/dist/Table/plugins/sortable/useTableSortable.d.ts +1 -1
- package/dist/Table/plugins/sortable/useTableSortableState.d.ts +1 -1
- package/dist/Table/plugins/stickyColumns/index.d.ts +2 -2
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts +1 -1
- package/dist/Table/plugins/tree/index.d.ts +4 -4
- package/dist/Table/plugins/tree/useTableTreeData.d.ts +1 -1
- package/dist/Table/plugins/tree/useTableTreeState.d.ts +1 -1
- package/dist/Table/tableContextMenu.d.ts +2 -2
- package/dist/Table/types.d.ts +3 -3
- package/dist/Table/useBaseTablePlugins.d.ts +1 -1
- package/dist/Table/useTableCellStyles.d.ts +2 -2
- package/dist/Table/utils.d.ts +2 -2
- package/dist/Text/Text.d.ts +3 -3
- package/dist/Text/index.d.ts +4 -4
- package/dist/TextArea/TextArea.d.ts +10 -8
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +14 -11
- package/dist/TextArea/index.d.ts +2 -2
- package/dist/TextInput/TextInput.d.ts +11 -9
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +20 -11
- package/dist/TextInput/index.d.ts +2 -2
- package/dist/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/Thumbnail/index.d.ts +2 -2
- package/dist/TimeInput/TimeInput.d.ts +6 -6
- package/dist/TimeInput/TouchTimeField.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +3 -3
- package/dist/Timer/Timer.d.ts +2 -2
- package/dist/Timer/index.d.ts +2 -2
- package/dist/Timestamp/Timestamp.d.ts +3 -3
- package/dist/Timestamp/TimestampHoverCard.d.ts +1 -1
- package/dist/Timestamp/formatInstant.d.ts +2 -2
- package/dist/Timestamp/formatRelativeTime.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +3 -3
- package/dist/Timestamp/tooltipEntries.d.ts +2 -2
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/ToastContext.d.ts +1 -1
- package/dist/Toast/ToastViewport.d.ts +2 -2
- package/dist/Toast/index.d.ts +6 -6
- package/dist/Toast/useToast.d.ts +1 -1
- package/dist/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +4 -4
- package/dist/Token/Token.d.ts +2 -2
- package/dist/Token/TokenLink.d.ts +1 -1
- package/dist/Token/index.d.ts +2 -2
- package/dist/Tokenizer/Tokenizer.d.ts +6 -6
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +44 -40
- package/dist/Tokenizer/index.d.ts +2 -2
- package/dist/Tokenizer/useEndLaneReserve.d.ts +3 -2
- package/dist/Tokenizer/useEndLaneReserve.d.ts.map +1 -1
- package/dist/Tokenizer/useEndLaneReserve.js +3 -2
- package/dist/Toolbar/Toolbar.d.ts +4 -4
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/index.d.ts +4 -4
- package/dist/Tooltip/useTooltip.d.ts +2 -2
- package/dist/TopNav/TopNav.d.ts +1 -1
- package/dist/TopNav/TopNavHeading.d.ts +2 -2
- package/dist/TopNav/TopNavItem.d.ts +3 -3
- package/dist/TopNav/TopNavMegaMenu.d.ts +1 -1
- package/dist/TopNav/TopNavMegaMenuFeaturedCard.d.ts +1 -1
- package/dist/TopNav/TopNavMegaMenuItem.d.ts +2 -2
- package/dist/TopNav/TopNavMenu.d.ts +1 -1
- package/dist/TopNav/index.d.ts +16 -16
- package/dist/TreeList/TreeList.d.ts +3 -3
- package/dist/TreeList/TreeListItem.d.ts +1 -1
- package/dist/TreeList/TreeListTypes.d.ts +1 -1
- package/dist/TreeList/index.d.ts +3 -3
- package/dist/Typeahead/BaseTypeahead.d.ts +2 -2
- package/dist/Typeahead/Typeahead.d.ts +6 -6
- package/dist/Typeahead/TypeaheadItem.d.ts +2 -2
- package/dist/Typeahead/createStaticSource.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +9 -9
- package/dist/Typeahead/utils.d.ts +3 -3
- package/dist/VStack/VStack.d.ts +2 -2
- package/dist/VStack/index.d.ts +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +24 -6
- package/dist/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +24 -5
- package/dist/VisuallyHidden/index.d.ts +2 -2
- package/dist/astryx.css +6 -13
- package/dist/hooks/index.d.ts +52 -52
- package/dist/hooks/useAutoMediaMode.d.ts +1 -1
- package/dist/hooks/useInputContainer.d.ts +1 -1
- package/dist/hooks/useInputStatusIcon.d.ts +3 -3
- package/dist/hooks/useMenuPress.d.ts +1 -1
- package/dist/hooks/usePressFeedback.d.ts +1 -1
- package/dist/hooks/useScrollableArea.d.ts +1 -1
- package/dist/i18n/InternationalizationContext.d.ts +2 -2
- package/dist/i18n/InternationalizationProvider.d.ts +1 -1
- package/dist/i18n/index.d.ts +12 -12
- package/dist/i18n/resolve.d.ts +1 -1
- package/dist/i18n/useLocale.d.ts +1 -1
- package/dist/index.d.ts +111 -111
- package/dist/theme/Theme.d.ts +2 -2
- package/dist/theme/contrast.d.ts +1 -1
- package/dist/theme/defineTheme.d.ts +12 -12
- package/dist/theme/domainTokens/index.d.ts +6 -6
- package/dist/theme/generateThemeRules.d.ts +1 -1
- package/dist/theme/index.d.ts +31 -31
- package/dist/theme/localTokens.d.ts +1 -1
- package/dist/theme/mergeComponents.d.ts +1 -1
- package/dist/theme/onMediaTokens.d.ts +1 -1
- package/dist/theme/resolveThemeValues.d.ts +7 -7
- package/dist/theme/syntax/SyntaxTheme.d.ts +1 -1
- package/dist/theme/syntax/index.d.ts +7 -7
- package/dist/theme/syntax/presets.d.ts +1 -1
- package/dist/theme/themeAdaptations.d.ts +5 -5
- package/dist/theme/themeRegistry.d.ts +1 -1
- package/dist/theme/tokens.d.ts +1 -1
- package/dist/theme/types.d.ts +1 -1
- package/dist/theme/useTheme.d.ts +2 -2
- package/dist/utils/dateParser.d.ts +3 -3
- package/dist/utils/groupItems.d.ts +1 -1
- package/dist/utils/index.d.ts +29 -29
- package/dist/utils/plainDate.d.ts +3 -3
- package/package.json +5 -5
- package/src/Badge/Badge.doc.mjs +2 -1
- package/src/BottomSheet/BottomSheet.tsx +12 -1
- package/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts +82 -0
- package/src/Field/inputDisabledFocus.ts +28 -0
- package/src/Icon/Icon.spec.md +40 -29
- package/src/Layer/modalOutlet.ts +1 -1
- package/src/NumberInput/NumberInput.doc.mjs +6 -6
- package/src/NumberInput/NumberInput.test.tsx +126 -14
- package/src/NumberInput/NumberInput.tsx +62 -16
- package/src/Pagination/Pagination.test.tsx +2 -2
- package/src/SideNav/SideNav.test.tsx +15 -6
- package/src/SideNav/SideNavHeading.tsx +41 -0
- package/src/Stepper/Step.tsx +7 -0
- package/src/Stepper/Stepper.test.tsx +33 -0
- package/src/TextArea/TextArea.doc.mjs +6 -6
- package/src/TextArea/TextArea.test.tsx +65 -6
- package/src/TextArea/TextArea.tsx +26 -14
- package/src/TextInput/TextInput.doc.mjs +8 -8
- package/src/TextInput/TextInput.test.tsx +72 -6
- package/src/TextInput/TextInput.tsx +32 -14
- package/src/Toast/ToastViewport.modalHost.test.tsx +139 -4
- package/src/Tokenizer/Tokenizer.test.tsx +26 -8
- package/src/Tokenizer/Tokenizer.tsx +65 -72
- package/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts +471 -0
- package/src/Tokenizer/useEndLaneReserve.ts +3 -2
- package/src/VisuallyHidden/VisuallyHidden.doc.mjs +1 -1
- package/src/VisuallyHidden/VisuallyHidden.test.tsx +39 -0
- package/src/VisuallyHidden/VisuallyHidden.tsx +38 -5
|
@@ -67,11 +67,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
67
67
|
// because the input's reserve is derived from the same value.
|
|
68
68
|
const END_LANE_INSET = spacingVars['--spacing-2'];
|
|
69
69
|
const TOKEN_ROW_INSET = `calc(${spacingVars['--spacing-1']} - 1px)`;
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
const INPUT_CLEAR_COARSE_POINTER_OUTSET = '2px';
|
|
73
|
-
// Kept in sync with useEndLaneReserve: inputCompact reads the custom property
|
|
74
|
-
// directly so its empty-query pseudo-class can suppress the inner reserve.
|
|
70
|
+
// Kept in sync with useEndLaneReserve: wrapperWithTokens reads the custom
|
|
71
|
+
// property directly, to keep token rows and the input short of the lane.
|
|
75
72
|
const END_LANE_RESERVE_VAR = '--_tokenizer-end-lane-reserve';
|
|
76
73
|
const styles = {
|
|
77
74
|
wrapper: {
|
|
@@ -85,12 +82,14 @@ const styles = {
|
|
|
85
82
|
wrapperWithTokens: {
|
|
86
83
|
k8WAf4: "x1x7cmac",
|
|
87
84
|
kg3NbH: "xx2oswg",
|
|
85
|
+
kwRFfy: "xx0flbe",
|
|
88
86
|
khm7nJ: "xajebq8",
|
|
89
87
|
$$css: true
|
|
90
88
|
},
|
|
91
89
|
token: {
|
|
92
90
|
k1xSpc: "x78zum5",
|
|
93
91
|
kmuXW: "x2lah0s",
|
|
92
|
+
ks0D6T: "x193iq5w",
|
|
94
93
|
kVAEAm: "x1n2onr6",
|
|
95
94
|
kY2c9j: "x1vjfegm",
|
|
96
95
|
$$css: true
|
|
@@ -105,6 +104,11 @@ const styles = {
|
|
|
105
104
|
kY2c9j: "x1vjfegm",
|
|
106
105
|
$$css: true
|
|
107
106
|
},
|
|
107
|
+
idleSpinner: {
|
|
108
|
+
k33iCy: "xlshs6z",
|
|
109
|
+
kCygrm: "xdps06",
|
|
110
|
+
$$css: true
|
|
111
|
+
},
|
|
108
112
|
inputAtMax: {
|
|
109
113
|
kzqmXN: "xnalus7",
|
|
110
114
|
k7Eaqz: "xeuugli",
|
|
@@ -115,16 +119,15 @@ const styles = {
|
|
|
115
119
|
$$css: true
|
|
116
120
|
},
|
|
117
121
|
inputCompact: {
|
|
118
|
-
kVAEAm: "x1n2onr6
|
|
122
|
+
kVAEAm: "x1n2onr6",
|
|
119
123
|
kB7OPa: "x9f619",
|
|
120
|
-
kLqNvP: "xhi6v0a x1cs7wtd",
|
|
121
124
|
kY2c9j: "x1ja2u2z",
|
|
122
|
-
k7Eaqz: "x1fns5xo
|
|
123
|
-
kUk6DE: "xfoc8du
|
|
124
|
-
kzqmXN: "xnalus7
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
k7Eaqz: "x1fns5xo x14dcwvw",
|
|
126
|
+
kUk6DE: "xfoc8du x1q9bidn",
|
|
127
|
+
kzqmXN: "xnalus7",
|
|
128
|
+
keTefX: "x1lziwak x1rq9t4t",
|
|
129
|
+
kZCmMZ: "x2a0j69 x1jwxvv4",
|
|
130
|
+
kwRFfy: "xyri2b",
|
|
128
131
|
$$css: true
|
|
129
132
|
},
|
|
130
133
|
truncatedWrapper: {
|
|
@@ -168,23 +171,6 @@ const endSectionSizeStyles = {
|
|
|
168
171
|
$$css: true
|
|
169
172
|
}
|
|
170
173
|
};
|
|
171
|
-
const compactInputSizeStyles = {
|
|
172
|
-
sm: {
|
|
173
|
-
k87sOh: "x80663w x1a21zuh",
|
|
174
|
-
k3aq6I: "x1c071of xv6p7n0",
|
|
175
|
-
$$css: true
|
|
176
|
-
},
|
|
177
|
-
md: {
|
|
178
|
-
k87sOh: "x80663w x811pv0",
|
|
179
|
-
k3aq6I: "x1c071of xv6p7n0",
|
|
180
|
-
$$css: true
|
|
181
|
-
},
|
|
182
|
-
lg: {
|
|
183
|
-
k87sOh: "x80663w x1o13q2w",
|
|
184
|
-
k3aq6I: "x1c071of xv6p7n0",
|
|
185
|
-
$$css: true
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
174
|
const truncatedSizeStyles = {
|
|
189
175
|
sm: {
|
|
190
176
|
kZKoxP: "x6k0iem",
|
|
@@ -271,6 +257,13 @@ const CREATABLE_ID_PREFIX = '__xds_create__';
|
|
|
271
257
|
*
|
|
272
258
|
* Renders nothing when the lane would be empty, so `useEndLaneReserve` sees no
|
|
273
259
|
* element, publishes no width, and the input keeps its full content box.
|
|
260
|
+
*
|
|
261
|
+
* With `hasBusySlot` the Spinner stays mounted while idle, unrendered, not
|
|
262
|
+
* animating and out of the accessibility tree, so its box keeps the themed
|
|
263
|
+
* Spinner's own size.
|
|
264
|
+
* Token rows reserve the lane's measured width, so a Spinner that came and
|
|
265
|
+
* went with the search would re-wrap them, and widen a content-sized field,
|
|
266
|
+
* on every search.
|
|
274
267
|
*/
|
|
275
268
|
function EndLane({
|
|
276
269
|
lane,
|
|
@@ -279,6 +272,7 @@ function EndLane({
|
|
|
279
272
|
loadingLabel,
|
|
280
273
|
anchorRef,
|
|
281
274
|
hasStaticContent,
|
|
275
|
+
hasBusySlot,
|
|
282
276
|
children
|
|
283
277
|
}) {
|
|
284
278
|
const isBusy = useIsBusy(lane);
|
|
@@ -286,17 +280,22 @@ function EndLane({
|
|
|
286
280
|
// live region; the field announces each search's busy start instead
|
|
287
281
|
// (spec:AST-086 FR8).
|
|
288
282
|
useBusyAnnouncement(isBusy, loadingLabel, anchorRef);
|
|
289
|
-
if (!isBusy && !hasStaticContent) {
|
|
283
|
+
if (!isBusy && !hasStaticContent && !hasBusySlot) {
|
|
290
284
|
return null;
|
|
291
285
|
}
|
|
292
286
|
return /*#__PURE__*/_jsxs("div", {
|
|
293
287
|
ref: laneRef,
|
|
294
288
|
...stylex.props(laneXStyle),
|
|
295
|
-
children: [isBusy && /*#__PURE__*/_jsx(Spinner
|
|
289
|
+
children: [(isBusy || hasBusySlot) && /*#__PURE__*/_jsx(Spinner
|
|
290
|
+
// Remounts when a search starts, so the ring syncs its phase on
|
|
291
|
+
// mount exactly as a newly shown Spinner did before.
|
|
292
|
+
, {
|
|
296
293
|
size: "sm",
|
|
297
294
|
"aria-label": loadingLabel,
|
|
298
|
-
role: "img"
|
|
299
|
-
|
|
295
|
+
role: "img",
|
|
296
|
+
"aria-hidden": isBusy ? undefined : true,
|
|
297
|
+
xstyle: isBusy ? undefined : styles.idleSpinner
|
|
298
|
+
}, isBusy ? 'busy' : 'idle'), children]
|
|
300
299
|
});
|
|
301
300
|
}
|
|
302
301
|
export function Tokenizer({
|
|
@@ -633,7 +632,7 @@ export function Tokenizer({
|
|
|
633
632
|
if (renderToken) {
|
|
634
633
|
return /*#__PURE__*/_jsx("span", {
|
|
635
634
|
...{
|
|
636
|
-
className: "x78zum5 x2lah0s x1n2onr6 x1vjfegm"
|
|
635
|
+
className: "x78zum5 x2lah0s x193iq5w x1n2onr6 x1vjfegm"
|
|
637
636
|
},
|
|
638
637
|
children: renderToken(item, onRemoveItem)
|
|
639
638
|
}, item.id);
|
|
@@ -734,10 +733,10 @@ export function Tokenizer({
|
|
|
734
733
|
onKeyDown: handleKeyDown,
|
|
735
734
|
anchorRef: wrapperRef,
|
|
736
735
|
size: size,
|
|
737
|
-
inputXStyle: [isAtMax || isTruncated ? styles.inputAtMax : value.length > 0 ?
|
|
738
|
-
//
|
|
739
|
-
//
|
|
740
|
-
//
|
|
736
|
+
inputXStyle: [isAtMax || isTruncated ? styles.inputAtMax : value.length > 0 ? styles.inputCompact : undefined,
|
|
737
|
+
// With tokens, wrapperWithTokens reserves the lane for every row.
|
|
738
|
+
// This rule is only for an empty Tokenizer; it still resolves to
|
|
739
|
+
// zero until the lane publishes a width.
|
|
741
740
|
!(isAtMax || isTruncated || value.length > 0) && laneReserve]
|
|
742
741
|
})
|
|
743
742
|
})
|
|
@@ -755,7 +754,12 @@ export function Tokenizer({
|
|
|
755
754
|
laneXStyle: [styles.endSection, endSectionSizeStyles[size]],
|
|
756
755
|
loadingLabel: t('@astryx.typeahead.loading'),
|
|
757
756
|
anchorRef: wrapperRef,
|
|
758
|
-
hasStaticContent: hasStaticEndLane
|
|
757
|
+
hasStaticContent: hasStaticEndLane
|
|
758
|
+
// Wherever a search can run beside tokens: enabled and below
|
|
759
|
+
// maxEntries. A collapsed overflow row keeps it too, since a search
|
|
760
|
+
// started while focused can settle after focus leaves.
|
|
761
|
+
,
|
|
762
|
+
hasBusySlot: value.length > 0 && !isDisabled && !isAtMax,
|
|
759
763
|
children: [endContent, hasClearButton && /*#__PURE__*/_jsx(InputClearButton, {
|
|
760
764
|
label: t('@astryx.tokenizer.clearAll'),
|
|
761
765
|
onClick: e => {
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new Tokenizer files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export { Tokenizer } from './Tokenizer';
|
|
10
|
-
export type { TokenizerProps, TokenizerSize, TokenizerOverflowBehavior, TokenizerChange, TokenizerHandle, TokenizerStatus, TokenizerStatusType, } from './Tokenizer';
|
|
9
|
+
export { Tokenizer } from './Tokenizer.js';
|
|
10
|
+
export type { TokenizerProps, TokenizerSize, TokenizerOverflowBehavior, TokenizerChange, TokenizerHandle, TokenizerStatus, TokenizerStatusType, } from './Tokenizer.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -23,8 +23,9 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
23
23
|
*
|
|
24
24
|
* Takes the lane's inset from the field's inline-end border, as the CSS
|
|
25
25
|
* expression that positions it. Returns a ref callback for the lane, and the
|
|
26
|
-
* ordinary input reserve style. Tokenizer's
|
|
27
|
-
* property directly so
|
|
26
|
+
* ordinary input reserve style. With tokens, Tokenizer's field wrapper reads the
|
|
27
|
+
* same custom property directly so every token row, and the input after the
|
|
28
|
+
* last token, stops before the lane.
|
|
28
29
|
* With no lane mounted the variable is absent and either rule resolves to its
|
|
29
30
|
* no-lane fallback, so neither path needs to know whether a search is running.
|
|
30
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEndLaneReserve.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/useEndLaneReserve.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA+B3C
|
|
1
|
+
{"version":3,"file":"useEndLaneReserve.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/useEndLaneReserve.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA+B3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,GAChB,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,CAuD3D"}
|
|
@@ -81,8 +81,9 @@ const reserveStyles = {
|
|
|
81
81
|
*
|
|
82
82
|
* Takes the lane's inset from the field's inline-end border, as the CSS
|
|
83
83
|
* expression that positions it. Returns a ref callback for the lane, and the
|
|
84
|
-
* ordinary input reserve style. Tokenizer's
|
|
85
|
-
* property directly so
|
|
84
|
+
* ordinary input reserve style. With tokens, Tokenizer's field wrapper reads the
|
|
85
|
+
* same custom property directly so every token row, and the input after the
|
|
86
|
+
* last token, stops before the lane.
|
|
86
87
|
* With no lane mounted the variable is absent and either rule resolves to its
|
|
87
88
|
* no-lane fallback, so neither path needs to know whether a search is running.
|
|
88
89
|
*/
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* - /packages/cli/assets/templates/blocks/components/Toolbar/ (showcase blocks)
|
|
14
14
|
*/
|
|
15
15
|
import { type ReactNode } from 'react';
|
|
16
|
-
import type { BaseProps } from '../BaseProps';
|
|
17
|
-
import type { SectionVariant } from '../Section/Section';
|
|
18
|
-
import type { SpacingStep } from '../utils/types';
|
|
19
|
-
import type { ElementSize } from '../SizeContext/SizeContext';
|
|
16
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
17
|
+
import type { SectionVariant } from '../Section/Section.js';
|
|
18
|
+
import type { SpacingStep } from '../utils/types.js';
|
|
19
|
+
import type { ElementSize } from '../SizeContext/SizeContext.js';
|
|
20
20
|
export type ToolbarSize = ElementSize;
|
|
21
21
|
export interface ToolbarProps extends BaseProps<HTMLDivElement> {
|
|
22
22
|
/** Ref forwarded to the root Section element */
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update /packages/core/src/Toolbar/Toolbar.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { Toolbar } from './Toolbar';
|
|
10
|
-
export type { ToolbarProps, ToolbarSize } from './Toolbar';
|
|
9
|
+
export { Toolbar } from './Toolbar.js';
|
|
10
|
+
export type { ToolbarProps, ToolbarSize } from './Toolbar.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* - /packages/cli/assets/templates/blocks/components/Tooltip/ (showcase blocks)
|
|
11
11
|
*/
|
|
12
12
|
import React, { type ReactElement, type ReactNode } from 'react';
|
|
13
|
-
import { type TooltipFocusTrigger, type TooltipTouchTrigger } from './useTooltip';
|
|
14
|
-
import type { LayerAlignment, LayerPlacement } from '../Layer/useLayer';
|
|
15
|
-
export type { TooltipFocusTrigger, TooltipTouchTrigger } from './useTooltip';
|
|
13
|
+
import { type TooltipFocusTrigger, type TooltipTouchTrigger } from './useTooltip.js';
|
|
14
|
+
import type { LayerAlignment, LayerPlacement } from '../Layer/useLayer.js';
|
|
15
|
+
export type { TooltipFocusTrigger, TooltipTouchTrigger } from './useTooltip.js';
|
|
16
16
|
export interface TooltipProps {
|
|
17
17
|
/**
|
|
18
18
|
* The trigger element(s). Children refs are preserved.
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new Tooltip files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export { useTooltip } from './useTooltip';
|
|
10
|
-
export type { TooltipFocusTrigger, TooltipTouchTrigger, TooltipOptions, TooltipReturn, } from './useTooltip';
|
|
11
|
-
export { Tooltip } from './Tooltip';
|
|
12
|
-
export type { TooltipProps } from './Tooltip';
|
|
9
|
+
export { useTooltip } from './useTooltip.js';
|
|
10
|
+
export type { TooltipFocusTrigger, TooltipTouchTrigger, TooltipOptions, TooltipReturn, } from './useTooltip.js';
|
|
11
|
+
export { Tooltip } from './Tooltip.js';
|
|
12
|
+
export type { TooltipProps } from './Tooltip.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* - /packages/core/src/Tooltip/index.ts
|
|
9
9
|
*/
|
|
10
10
|
import { type ReactNode, type RefCallback } from 'react';
|
|
11
|
-
import { type ContextRenderProps, type LayerAlignment, type LayerPlacement } from '../Layer/useLayer';
|
|
12
|
-
import { type LayerTouchTrigger } from '../Layer/useTouchTrigger';
|
|
11
|
+
import { type ContextRenderProps, type LayerAlignment, type LayerPlacement } from '../Layer/useLayer.js';
|
|
12
|
+
import { type LayerTouchTrigger } from '../Layer/useTouchTrigger.js';
|
|
13
13
|
/**
|
|
14
14
|
* Focus trigger behavior for tooltips
|
|
15
15
|
*/
|
package/dist/TopNav/TopNav.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
13
13
|
*/
|
|
14
14
|
import type { ReactNode } from 'react';
|
|
15
|
-
import type { BaseProps } from '../BaseProps';
|
|
15
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
16
16
|
export interface TopNavProps extends BaseProps<HTMLElement> {
|
|
17
17
|
/** Ref forwarded to the root element */
|
|
18
18
|
ref?: React.Ref<HTMLElement>;
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
17
17
|
*/
|
|
18
18
|
import { type ReactNode } from 'react';
|
|
19
|
-
import type { LinkComponentType } from '../Link/types';
|
|
20
|
-
import type { BaseProps } from '../BaseProps';
|
|
19
|
+
import type { LinkComponentType } from '../Link/types.js';
|
|
20
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
21
21
|
export interface TopNavHeadingProps extends BaseProps<HTMLElement> {
|
|
22
22
|
/** Ref forwarded to the root element */
|
|
23
23
|
ref?: React.Ref<HTMLElement>;
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
13
13
|
*/
|
|
14
14
|
import type { ReactNode } from 'react';
|
|
15
|
-
import type { BaseProps } from '../BaseProps';
|
|
16
|
-
import type { LinkComponentType } from '../Link/types';
|
|
17
|
-
import { type NavItemSize } from '../NavItem/navItemStyles.stylex';
|
|
15
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
16
|
+
import type { LinkComponentType } from '../Link/types.js';
|
|
17
|
+
import { type NavItemSize } from '../NavItem/navItemStyles.stylex.js';
|
|
18
18
|
export interface TopNavItemProps extends BaseProps<HTMLAnchorElement> {
|
|
19
19
|
/** Ref forwarded to the root element */
|
|
20
20
|
ref?: React.Ref<HTMLAnchorElement>;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
27
27
|
*/
|
|
28
28
|
import React, { type ReactNode } from 'react';
|
|
29
|
-
import type { BaseProps } from '../BaseProps';
|
|
29
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
30
30
|
export interface TopNavMegaMenuProps extends BaseProps<HTMLButtonElement> {
|
|
31
31
|
ref?: React.Ref<HTMLButtonElement>;
|
|
32
32
|
/** The visible label for the nav item trigger. */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
15
15
|
*/
|
|
16
16
|
import React, { type ReactNode } from 'react';
|
|
17
|
-
import type { BaseProps } from '../BaseProps';
|
|
17
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
18
18
|
export interface TopNavMegaMenuFeaturedCardProps extends BaseProps<HTMLDivElement> {
|
|
19
19
|
ref?: React.Ref<HTMLDivElement>;
|
|
20
20
|
/** Card title. */
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
12
12
|
*/
|
|
13
13
|
import React, { type ReactNode } from 'react';
|
|
14
|
-
import type { LinkComponentType } from '../Link/types';
|
|
15
|
-
import type { BaseProps } from '../BaseProps';
|
|
14
|
+
import type { LinkComponentType } from '../Link/types.js';
|
|
15
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
16
16
|
export interface TopNavMegaMenuItemProps extends Omit<BaseProps<HTMLElement>, 'onClick'> {
|
|
17
17
|
ref?: React.Ref<HTMLElement>;
|
|
18
18
|
/** Display title for the menu item. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)
|
|
13
13
|
*/
|
|
14
14
|
import React, { type ReactNode } from 'react';
|
|
15
|
-
import type { BaseProps } from '../BaseProps';
|
|
15
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
16
16
|
/**
|
|
17
17
|
* An item in the TopNav overflow menu.
|
|
18
18
|
*/
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update /packages/core/src/TopNav/TopNav.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { TopNav } from './TopNav';
|
|
10
|
-
export type { TopNavProps } from './TopNav';
|
|
11
|
-
export { TopNavHeading } from './TopNavHeading';
|
|
12
|
-
export type { TopNavHeadingProps } from './TopNavHeading';
|
|
13
|
-
export { TopNavItem } from './TopNavItem';
|
|
14
|
-
export type { TopNavItemProps } from './TopNavItem';
|
|
15
|
-
export { TopNavMenu } from './TopNavMenu';
|
|
16
|
-
export type { TopNavMenuProps, TopNavMenuItemData } from './TopNavMenu';
|
|
17
|
-
export { TopNavMegaMenu } from './TopNavMegaMenu';
|
|
18
|
-
export type { TopNavMegaMenuProps } from './TopNavMegaMenu';
|
|
19
|
-
export { TopNavMegaMenuItem } from './TopNavMegaMenuItem';
|
|
20
|
-
export type { TopNavMegaMenuItemProps } from './TopNavMegaMenuItem';
|
|
21
|
-
export { TopNavMegaMenuFeaturedCard } from './TopNavMegaMenuFeaturedCard';
|
|
22
|
-
export type { TopNavMegaMenuFeaturedCardProps } from './TopNavMegaMenuFeaturedCard';
|
|
23
|
-
export { TopNavRenderContext, useTopNavRenderMode, } from './TopNavRenderContext';
|
|
24
|
-
export type { TopNavRenderMode } from './TopNavRenderContext';
|
|
9
|
+
export { TopNav } from './TopNav.js';
|
|
10
|
+
export type { TopNavProps } from './TopNav.js';
|
|
11
|
+
export { TopNavHeading } from './TopNavHeading.js';
|
|
12
|
+
export type { TopNavHeadingProps } from './TopNavHeading.js';
|
|
13
|
+
export { TopNavItem } from './TopNavItem.js';
|
|
14
|
+
export type { TopNavItemProps } from './TopNavItem.js';
|
|
15
|
+
export { TopNavMenu } from './TopNavMenu.js';
|
|
16
|
+
export type { TopNavMenuProps, TopNavMenuItemData } from './TopNavMenu.js';
|
|
17
|
+
export { TopNavMegaMenu } from './TopNavMegaMenu.js';
|
|
18
|
+
export type { TopNavMegaMenuProps } from './TopNavMegaMenu.js';
|
|
19
|
+
export { TopNavMegaMenuItem } from './TopNavMegaMenuItem.js';
|
|
20
|
+
export type { TopNavMegaMenuItemProps } from './TopNavMegaMenuItem.js';
|
|
21
|
+
export { TopNavMegaMenuFeaturedCard } from './TopNavMegaMenuFeaturedCard.js';
|
|
22
|
+
export type { TopNavMegaMenuFeaturedCardProps } from './TopNavMegaMenuFeaturedCard.js';
|
|
23
|
+
export { TopNavRenderContext, useTopNavRenderMode, } from './TopNavRenderContext.js';
|
|
24
|
+
export type { TopNavRenderMode } from './TopNavRenderContext.js';
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* - /packages/cli/assets/templates/blocks/components/TreeList/ (showcase blocks)
|
|
12
12
|
*/
|
|
13
13
|
import { type ReactNode } from 'react';
|
|
14
|
-
import type { BaseProps } from '../BaseProps';
|
|
15
|
-
import type { TreeListItemData, TreeListDensity, TreeListVariant } from './TreeListTypes';
|
|
16
|
-
export { type TreeListDensity, type TreeListVariant } from './TreeListTypes';
|
|
14
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
15
|
+
import type { TreeListItemData, TreeListDensity, TreeListVariant } from './TreeListTypes.js';
|
|
16
|
+
export { type TreeListDensity, type TreeListVariant } from './TreeListTypes.js';
|
|
17
17
|
export interface TreeListProps extends BaseProps<HTMLDivElement> {
|
|
18
18
|
/** Ref forwarded to the root element */
|
|
19
19
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ReactNode } from 'react';
|
|
13
13
|
import * as stylex from '@stylexjs/stylex';
|
|
14
|
-
import type { TreeListDensity, TreeListVariant } from './TreeListTypes';
|
|
14
|
+
import type { TreeListDensity, TreeListVariant } from './TreeListTypes.js';
|
|
15
15
|
export interface TreeListItemInternalProps {
|
|
16
16
|
id: string;
|
|
17
17
|
label: React.ReactNode;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { CSSProperties, ReactNode } from 'react';
|
|
12
12
|
import type { StyleXStyles } from '@stylexjs/stylex';
|
|
13
|
-
import type { TreeListVariantMap } from './index';
|
|
13
|
+
import type { TreeListVariantMap } from './index.js';
|
|
14
14
|
/** Spacing density for tree list items. */
|
|
15
15
|
export type TreeListDensity = 'compact' | 'balanced' | 'spacious';
|
|
16
16
|
/**
|
package/dist/TreeList/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface TreeListVariantMap {
|
|
|
23
23
|
lineGuides: true;
|
|
24
24
|
noGuides: true;
|
|
25
25
|
}
|
|
26
|
-
export { TreeList } from './TreeList';
|
|
27
|
-
export type { TreeListProps, TreeListDensity, TreeListVariant } from './TreeList';
|
|
28
|
-
export type { TreeListItemData } from './TreeListTypes';
|
|
26
|
+
export { TreeList } from './TreeList.js';
|
|
27
|
+
export type { TreeListProps, TreeListDensity, TreeListVariant } from './TreeList.js';
|
|
28
|
+
export type { TreeListItemData } from './TreeListTypes.js';
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import React, { type ReactNode, type RefObject } from 'react';
|
|
16
16
|
import type { StyleXStyles } from '@stylexjs/stylex';
|
|
17
|
-
import type { BaseProps } from '../BaseProps';
|
|
18
|
-
import type { SearchableItem, SearchSource } from './types';
|
|
17
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
18
|
+
import type { SearchableItem, SearchSource } from './types.js';
|
|
19
19
|
export interface BaseTypeaheadProps<T extends SearchableItem> extends Omit<BaseProps<HTMLElement>, 'onChange'> {
|
|
20
20
|
ref?: React.Ref<HTMLInputElement>;
|
|
21
21
|
/**
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* - /packages/cli/assets/templates/blocks/components/Typeahead/ (showcase blocks)
|
|
15
15
|
*/
|
|
16
16
|
import React, { type ReactNode } from 'react';
|
|
17
|
-
import { type InputStatus, type FieldStatusVariant } from '../Field';
|
|
18
|
-
import { type IconType } from '../Icon';
|
|
19
|
-
import { type FieldInputBaseProps } from '../Field/fieldParts';
|
|
20
|
-
import type { SizeValue } from '../utils/types';
|
|
21
|
-
import type { SearchableItem, SearchSource } from './types';
|
|
22
|
-
export type { InputStatus as TypeaheadStatus, InputStatusType as TypeaheadStatusType, } from '../Field';
|
|
17
|
+
import { type InputStatus, type FieldStatusVariant } from '../Field/index.js';
|
|
18
|
+
import { type IconType } from '../Icon/index.js';
|
|
19
|
+
import { type FieldInputBaseProps } from '../Field/fieldParts.js';
|
|
20
|
+
import type { SizeValue } from '../utils/types.js';
|
|
21
|
+
import type { SearchableItem, SearchSource } from './types.js';
|
|
22
|
+
export type { InputStatus as TypeaheadStatus, InputStatusType as TypeaheadStatusType, } from '../Field/index.js';
|
|
23
23
|
export type TypeaheadSize = 'sm' | 'md' | 'lg';
|
|
24
24
|
export interface TypeaheadProps<T extends SearchableItem> extends Omit<FieldInputBaseProps<HTMLInputElement>, 'onChange' | 'onKeyDown'> {
|
|
25
25
|
/**
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* - /packages/cli/assets/templates/blocks/components/Typeahead/ (showcase blocks)
|
|
10
10
|
*/
|
|
11
11
|
import React, { type ReactNode } from 'react';
|
|
12
|
-
import type { SearchableItem } from './types';
|
|
13
|
-
import type { BaseProps } from '../BaseProps';
|
|
12
|
+
import type { SearchableItem } from './types.js';
|
|
13
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
14
14
|
export interface TypeaheadItemProps<T extends SearchableItem = SearchableItem> extends BaseProps<HTMLDivElement> {
|
|
15
15
|
ref?: React.Ref<HTMLDivElement>;
|
|
16
16
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* SYNC: When modified, update:
|
|
8
8
|
* - /packages/core/src/Typeahead/index.ts
|
|
9
9
|
*/
|
|
10
|
-
import type { SearchableItem, SearchSource } from './types';
|
|
10
|
+
import type { SearchableItem, SearchSource } from './types.js';
|
|
11
11
|
export interface CreateStaticSourceOptions<T extends SearchableItem = SearchableItem> {
|
|
12
12
|
/**
|
|
13
13
|
* Extract additional search terms from an item.
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new Typeahead files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export type { SearchableItem, SearchSource } from './types';
|
|
10
|
-
export { createStaticSource } from './createStaticSource';
|
|
11
|
-
export type { CreateStaticSourceOptions } from './createStaticSource';
|
|
12
|
-
export { BaseTypeahead } from './BaseTypeahead';
|
|
13
|
-
export type { BaseTypeaheadProps } from './BaseTypeahead';
|
|
14
|
-
export { Typeahead } from './Typeahead';
|
|
15
|
-
export type { TypeaheadProps, TypeaheadSize, TypeaheadStatus, TypeaheadStatusType, } from './Typeahead';
|
|
16
|
-
export { TypeaheadItem } from './TypeaheadItem';
|
|
17
|
-
export type { TypeaheadItemProps } from './TypeaheadItem';
|
|
9
|
+
export type { SearchableItem, SearchSource } from './types.js';
|
|
10
|
+
export { createStaticSource } from './createStaticSource.js';
|
|
11
|
+
export type { CreateStaticSourceOptions } from './createStaticSource.js';
|
|
12
|
+
export { BaseTypeahead } from './BaseTypeahead.js';
|
|
13
|
+
export type { BaseTypeaheadProps } from './BaseTypeahead.js';
|
|
14
|
+
export { Typeahead } from './Typeahead.js';
|
|
15
|
+
export type { TypeaheadProps, TypeaheadSize, TypeaheadStatus, TypeaheadStatusType, } from './Typeahead.js';
|
|
16
|
+
export { TypeaheadItem } from './TypeaheadItem.js';
|
|
17
|
+
export type { TypeaheadItemProps } from './TypeaheadItem.js';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @output Server-safe re-exports of pure Typeahead utility functions
|
|
4
4
|
* @position Subpath entry point: `@astryxdesign/core/Typeahead/utils`
|
|
5
5
|
*/
|
|
6
|
-
export { createStaticSource } from './createStaticSource';
|
|
7
|
-
export type { CreateStaticSourceOptions } from './createStaticSource';
|
|
8
|
-
export type { SearchableItem, SearchSource } from './types';
|
|
6
|
+
export { createStaticSource } from './createStaticSource.js';
|
|
7
|
+
export type { CreateStaticSourceOptions } from './createStaticSource.js';
|
|
8
|
+
export type { SearchableItem, SearchSource } from './types.js';
|
|
9
9
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/VStack/VStack.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* - /packages/core/src/VStack/VStack.test.tsx
|
|
10
10
|
* - /packages/cli/assets/templates/blocks/components/VStack/ (showcase blocks)
|
|
11
11
|
*/
|
|
12
|
-
import { type StackProps } from '../Stack/Stack';
|
|
13
|
-
import type { StackCrossAlignment, StackMainAlignment } from '../Stack/stack.stylex';
|
|
12
|
+
import { type StackProps } from '../Stack/Stack.js';
|
|
13
|
+
import type { StackCrossAlignment, StackMainAlignment } from '../Stack/stack.stylex.js';
|
|
14
14
|
export interface VStackProps extends Omit<StackProps, 'direction' | 'hAlign' | 'vAlign'> {
|
|
15
15
|
/** Ref forwarded to the root element */
|
|
16
16
|
ref?: React.Ref<HTMLElement>;
|
package/dist/VStack/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* @output Exports VStack and its props type
|
|
5
5
|
* @position Entry point for @astryxdesign/core/VStack subpath export
|
|
6
6
|
*/
|
|
7
|
-
export { VStack, type VStackProps } from './VStack';
|
|
7
|
+
export { VStack, type VStackProps } from './VStack.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,13 +12,22 @@
|
|
|
12
12
|
* - /packages/cli/assets/templates/blocks/components/VisuallyHidden/ (showcase blocks)
|
|
13
13
|
*/
|
|
14
14
|
import { type ElementType, type ReactNode } from 'react';
|
|
15
|
-
import type { BaseProps } from '../BaseProps';
|
|
15
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
16
|
+
import type { StyleXStyles } from '@stylexjs/stylex';
|
|
16
17
|
/**
|
|
17
18
|
* VisuallyHidden is deliberately styling-free: it exists to *not* be seen, so it
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* omits `className`/`style` and applies a fixed, non-overridable clip block —
|
|
20
|
+
* styling a visually-hidden node is always a mistake. The accessibility
|
|
21
|
+
* pass-throughs from `BaseProps` (`aria-*`, `role`, `id`, `data-*`, event
|
|
22
|
+
* handlers) remain, since the live-region use case needs them.
|
|
23
|
+
*
|
|
24
|
+
* `xstyle` stays declared and documented as ignored, because released 0.7.2
|
|
25
|
+
* accepted it through `BaseProps`: narrowing the interface would force every
|
|
26
|
+
* consumer to edit code, which is a `[breaking]` change for a planned minor
|
|
27
|
+
* (`spec:AST-017/FR53`). It carries no `@deprecated` marker either — under
|
|
28
|
+
* `spec:AST-017/FR28` a patch may only deprecate a surface it ships an exact
|
|
29
|
+
* migration for, and this fix ships none. Dropping the prop from the interface,
|
|
30
|
+
* with the migration being to delete it, belongs to a planned minor.
|
|
22
31
|
*/
|
|
23
32
|
export interface VisuallyHiddenProps extends Omit<BaseProps<HTMLElement>, 'className' | 'style'> {
|
|
24
33
|
/** Ref forwarded to the rendered element. */
|
|
@@ -34,6 +43,15 @@ export interface VisuallyHiddenProps extends Omit<BaseProps<HTMLElement>, 'class
|
|
|
34
43
|
* @default 'span'
|
|
35
44
|
*/
|
|
36
45
|
as?: ElementType;
|
|
46
|
+
/**
|
|
47
|
+
* Ignored: VisuallyHidden has no styling surface. The clip block is the only
|
|
48
|
+
* style applied, and nothing a caller passes can displace it.
|
|
49
|
+
*
|
|
50
|
+
* Accepted only so that code written against 0.7.2 keeps compiling. It is not
|
|
51
|
+
* applied to the element, and a planned minor removes it — the migration is to
|
|
52
|
+
* delete the prop.
|
|
53
|
+
*/
|
|
54
|
+
xstyle?: StyleXStyles;
|
|
37
55
|
}
|
|
38
56
|
/**
|
|
39
57
|
* Renders its children in the accessibility tree while hiding them visually.
|
|
@@ -52,7 +70,7 @@ export interface VisuallyHiddenProps extends Omit<BaseProps<HTMLElement>, 'class
|
|
|
52
70
|
* </VisuallyHidden>
|
|
53
71
|
* ```
|
|
54
72
|
*/
|
|
55
|
-
export declare function VisuallyHidden({ children, as: element, ref, ...
|
|
73
|
+
export declare function VisuallyHidden({ children, as: element, ref, ...rest }: VisuallyHiddenProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
56
74
|
export declare namespace VisuallyHidden {
|
|
57
75
|
var displayName: string;
|
|
58
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../src/VisuallyHidden/VisuallyHidden.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,WAAW,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAChF,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../src/VisuallyHidden/VisuallyHidden.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,WAAW,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAChF,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAGnD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,SAAS,CAAC,WAAW,CAAC,EACtB,WAAW,GAAG,OAAO,CACtB;IACC,6CAA6C;IAC7C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAE7B,yEAAyE;IACzE,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;OAOG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAyBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,EAAE,EAAE,OAAgB,EACpB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,mBAAmB,0FA2BrB;yBAhCe,cAAc"}
|