@astryxdesign/core 0.7.4 → 0.7.5-canary.04434e7
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/Wheel.d.ts.map +1 -1
- package/dist/DateInput/Wheel.js +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 +12 -7
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioItem.js +13 -5
- 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/Layer/useTouchTrigger.d.ts +14 -1
- package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
- package/dist/Layer/useTouchTrigger.js +72 -17
- 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 +46 -20
- 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/Skeleton.d.ts.map +1 -1
- package/dist/Skeleton/Skeleton.js +12 -3
- 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 +27 -17
- 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 +8 -16
- 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/DateInput/DateInputTouch.test.tsx +9 -0
- package/src/DateInput/Wheel.tsx +4 -1
- package/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts +158 -0
- package/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs +5 -2
- package/src/DropdownMenu/DropdownMenuRadioItem.spec.md +226 -0
- package/src/DropdownMenu/DropdownMenuRadioItem.tsx +32 -16
- package/src/DropdownMenu/DropdownMenuSelectable.test.tsx +158 -0
- package/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts +539 -0
- package/src/Field/inputDisabledFocus.ts +28 -0
- package/src/HoverCard/HoverCard.test.tsx +93 -3
- package/src/Icon/Icon.spec.md +40 -29
- package/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts +199 -0
- package/src/Layer/modalOutlet.ts +1 -1
- package/src/Layer/useTouchTrigger.ts +95 -41
- package/src/NumberInput/NumberInput.doc.mjs +6 -6
- package/src/NumberInput/NumberInput.test.tsx +144 -14
- package/src/NumberInput/NumberInput.tsx +68 -21
- 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/Skeleton/Skeleton.test.tsx +108 -1
- package/src/Skeleton/Skeleton.tsx +30 -2
- 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 +83 -10
- package/src/TextInput/TextInput.tsx +38 -19
- 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/Tooltip/Tooltip.test.tsx +148 -3
- package/src/Tooltip/__tests__/Tooltip.a11y.states.ts +2 -2
- package/src/VisuallyHidden/VisuallyHidden.doc.mjs +1 -1
- package/src/VisuallyHidden/VisuallyHidden.test.tsx +39 -0
- package/src/VisuallyHidden/VisuallyHidden.tsx +38 -5
- package/src/theme/tokens.test.ts +60 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update this header and /packages/core/src/TimeInput/TimeInput.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { TimeInput } from './TimeInput';
|
|
10
|
-
export type { TimeInputProps, TimeInputSize, TimeInputHourFormat, TimeInputNativePicker, TimeInputPresentation, TimeInputStatus, TimeInputStatusType, } from './TimeInput';
|
|
11
|
-
export type { ISOTimeString } from '../utils';
|
|
9
|
+
export { TimeInput } from './TimeInput.js';
|
|
10
|
+
export type { TimeInputProps, TimeInputSize, TimeInputHourFormat, TimeInputNativePicker, TimeInputPresentation, TimeInputStatus, TimeInputStatusType, } from './TimeInput.js';
|
|
11
|
+
export type { ISOTimeString } from '../utils/index.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Timer/Timer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseProps } from '../BaseProps';
|
|
2
|
-
import type { TextColor, TextSize, TextType, TextWeight } from '../theme/types';
|
|
1
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
2
|
+
import type { TextColor, TextSize, TextType, TextWeight } from '../theme/types.js';
|
|
3
3
|
export type TimerFormat = 'elapsed' | 'clock';
|
|
4
4
|
export interface TimerProps extends Omit<BaseProps<HTMLTimeElement>, 'dateTime'> {
|
|
5
5
|
/** Ref forwarded to the rendered `<time>` element. */
|
package/dist/Timer/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @output Public Timer component barrel
|
|
5
5
|
* @position Component subpath entry point for @astryxdesign/core/Timer
|
|
6
6
|
*/
|
|
7
|
-
export { Timer } from './Timer';
|
|
8
|
-
export type { TimerFormat, TimerProps } from './Timer';
|
|
7
|
+
export { Timer } from './Timer.js';
|
|
8
|
+
export type { TimerFormat, TimerProps } from './Timer.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TextType, TextSize, TextColor, TextWeight } from '../theme/types';
|
|
2
|
-
import type { BaseProps } from '../BaseProps';
|
|
3
|
-
import type { TimestampTooltipEntry } from './tooltipEntries';
|
|
1
|
+
import type { TextType, TextSize, TextColor, TextWeight } from '../theme/types.js';
|
|
2
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
3
|
+
import type { TimestampTooltipEntry } from './tooltipEntries.js';
|
|
4
4
|
export type TimestampFormat = 'relative' | 'relative_short' | 'auto' | 'date' | 'date_long' | 'date_weekday' | 'date_time' | 'time' | 'system_date' | 'system_date_time' | 'system_time' | 'unix_seconds';
|
|
5
5
|
export interface TimestampProps extends BaseProps<HTMLTimeElement> {
|
|
6
6
|
/** Ref forwarded to the root `<time>` element. */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* - /packages/core/src/Timestamp/Timestamp.test.tsx
|
|
20
20
|
*/
|
|
21
21
|
import type { ReactNode } from 'react';
|
|
22
|
-
import type { TimestampTooltipLine } from './tooltipEntries';
|
|
22
|
+
import type { TimestampTooltipLine } from './tooltipEntries.js';
|
|
23
23
|
export interface TimestampHoverCardProps {
|
|
24
24
|
/** The rows to render, each a labelled instant, optionally copyable. */
|
|
25
25
|
lines: ReadonlyArray<TimestampTooltipLine>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Locale } from '../i18n/types';
|
|
2
|
-
import type { TimestampFormat } from './Timestamp';
|
|
1
|
+
import type { Locale } from '../i18n/types.js';
|
|
2
|
+
import type { TimestampFormat } from './Timestamp.js';
|
|
3
3
|
/**
|
|
4
4
|
* Every format that names a fixed instant, plus `'full'` — the long absolute
|
|
5
5
|
* style ("February 19, 2026 at 5:00:00 PM UTC") that backs a relative
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - /packages/core/src/Timestamp/Timestamp.test.tsx
|
|
10
10
|
* - /packages/core/src/Timestamp/Timestamp.doc.mjs
|
|
11
11
|
*/
|
|
12
|
-
import type { Locale } from '../i18n/types';
|
|
12
|
+
import type { Locale } from '../i18n/types.js';
|
|
13
13
|
type RelativeTimeStyle = 'long' | 'narrow';
|
|
14
14
|
/**
|
|
15
15
|
* Chooses Astryx's existing time tier, then delegates locale-specific wording,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new Timestamp files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export { Timestamp } from './Timestamp';
|
|
10
|
-
export type { TimestampProps, TimestampFormat } from './Timestamp';
|
|
11
|
-
export type { TimestampTooltipEntry, TimestampTooltipFormat, } from './tooltipEntries';
|
|
9
|
+
export { Timestamp } from './Timestamp.js';
|
|
10
|
+
export type { TimestampProps, TimestampFormat } from './Timestamp.js';
|
|
11
|
+
export type { TimestampTooltipEntry, TimestampTooltipFormat, } from './tooltipEntries.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Toast/Toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ToastType, ToastDismissReason, ToastContentRenderFn } from './types';
|
|
3
|
-
import { type ToastGestureDirection } from './useToastGesture';
|
|
2
|
+
import type { ToastType, ToastDismissReason, ToastContentRenderFn } from './types.js';
|
|
3
|
+
import { type ToastGestureDirection } from './useToastGesture.js';
|
|
4
4
|
export interface ToastProps {
|
|
5
5
|
type: ToastType;
|
|
6
6
|
body: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ToastPosition } from './types';
|
|
2
|
-
import type { LayerInset } from '../Layer/LayerContext';
|
|
1
|
+
import type { ToastPosition } from './types.js';
|
|
2
|
+
import type { LayerInset } from '../Layer/LayerContext.js';
|
|
3
3
|
export interface ToastViewportProps {
|
|
4
4
|
position?: ToastPosition;
|
|
5
5
|
/** Maximum number of visible toasts. @default 5 */
|
package/dist/Toast/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { useToast } from './useToast';
|
|
2
|
-
export type { ToastType, ToastPosition, ToastCollisionBehavior, ToastDismissReason, ToastOptions, ToastDismissFn, ShowToastFn, ToastContentRenderProps, ToastContentRenderFn, } from './types';
|
|
3
|
-
export { ToastViewport } from './ToastViewport';
|
|
4
|
-
export type { ToastViewportProps } from './ToastViewport';
|
|
5
|
-
export { Toast } from './Toast';
|
|
6
|
-
export type { ToastProps } from './Toast';
|
|
1
|
+
export { useToast } from './useToast.js';
|
|
2
|
+
export type { ToastType, ToastPosition, ToastCollisionBehavior, ToastDismissReason, ToastOptions, ToastDismissFn, ShowToastFn, ToastContentRenderProps, ToastContentRenderFn, } from './types.js';
|
|
3
|
+
export { ToastViewport } from './ToastViewport.js';
|
|
4
|
+
export type { ToastViewportProps } from './ToastViewport.js';
|
|
5
|
+
export { Toast } from './Toast.js';
|
|
6
|
+
export type { ToastProps } from './Toast.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Toast/useToast.d.ts
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* - /packages/cli/assets/templates/blocks/components/ToggleButton/ (showcase blocks)
|
|
18
18
|
*/
|
|
19
19
|
import React, { type ReactNode } from 'react';
|
|
20
|
-
import { type ButtonSize } from '../Button';
|
|
21
|
-
import type { Elevation } from '../utils/types';
|
|
22
|
-
import type { BaseProps } from '../BaseProps';
|
|
20
|
+
import { type ButtonSize } from '../Button/index.js';
|
|
21
|
+
import type { Elevation } from '../utils/types.js';
|
|
22
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
23
23
|
export interface ToggleButtonProps extends BaseProps<HTMLButtonElement> {
|
|
24
24
|
ref?: React.Ref<HTMLButtonElement>;
|
|
25
25
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - /packages/cli/assets/templates/blocks/components/ToggleButton/ (showcase blocks)
|
|
15
15
|
*/
|
|
16
16
|
import { type ReactNode } from 'react';
|
|
17
|
-
import type { ButtonSize } from '../Button';
|
|
17
|
+
import type { ButtonSize } from '../Button/index.js';
|
|
18
18
|
import type { StyleXStyles } from '@stylexjs/stylex';
|
|
19
19
|
interface ToggleButtonGroupContextValue {
|
|
20
20
|
/** Currently selected value(s). */
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @output Exports ToggleButton, ToggleButtonGroup, and types
|
|
5
5
|
* @position Component entry point; re-exported by /packages/core/src/index.ts
|
|
6
6
|
*/
|
|
7
|
-
export { ToggleButton } from './ToggleButton';
|
|
8
|
-
export type { ToggleButtonProps } from './ToggleButton';
|
|
9
|
-
export { ToggleButtonGroup } from './ToggleButtonGroup';
|
|
10
|
-
export type { ToggleButtonGroupProps, ToggleButtonGroupSingleProps, ToggleButtonGroupMultipleProps, } from './ToggleButtonGroup';
|
|
7
|
+
export { ToggleButton } from './ToggleButton.js';
|
|
8
|
+
export type { ToggleButtonProps } from './ToggleButton.js';
|
|
9
|
+
export { ToggleButtonGroup } from './ToggleButtonGroup.js';
|
|
10
|
+
export type { ToggleButtonGroupProps, ToggleButtonGroupSingleProps, ToggleButtonGroupMultipleProps, } from './ToggleButtonGroup.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Token/Token.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* - /packages/cli/assets/templates/blocks/components/Token/ (showcase blocks)
|
|
14
14
|
*/
|
|
15
15
|
import type { ReactNode } from 'react';
|
|
16
|
-
import type { BaseProps } from '../BaseProps';
|
|
17
|
-
import type { TokenColorMap } from './index';
|
|
16
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
17
|
+
import type { TokenColorMap } from './index.js';
|
|
18
18
|
/**
|
|
19
19
|
* Token color type derived from TokenColorMap.
|
|
20
20
|
* Extensible via module augmentation of TokenColorMap.
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* - /packages/core/src/Token/Token.test.tsx (tests for delegated behavior)
|
|
22
22
|
*/
|
|
23
23
|
import type { ReactNode, CSSProperties, Ref, HTMLAttributes } from 'react';
|
|
24
|
-
import type { LinkComponentType } from '../Link/types';
|
|
24
|
+
import type { LinkComponentType } from '../Link/types.js';
|
|
25
25
|
export interface TokenLinkProps extends HTMLAttributes<HTMLElement> {
|
|
26
26
|
/** Ref forwarded to the container element. */
|
|
27
27
|
ref?: Ref<HTMLElement>;
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -32,6 +32,6 @@ export interface TokenColorMap {
|
|
|
32
32
|
pink: true;
|
|
33
33
|
gray: true;
|
|
34
34
|
}
|
|
35
|
-
export { Token } from './Token';
|
|
36
|
-
export type { TokenProps, TokenColor, TokenSize } from './Token';
|
|
35
|
+
export { Token } from './Token.js';
|
|
36
|
+
export type { TokenProps, TokenColor, TokenSize } from './Token.js';
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* - /packages/cli/assets/templates/blocks/components/Tokenizer/ (showcase blocks)
|
|
12
12
|
*/
|
|
13
13
|
import React, { type ReactNode } from 'react';
|
|
14
|
-
import { type FieldInputBaseProps } from '../Field/fieldParts';
|
|
15
|
-
import type { SizeValue } from '../utils/types';
|
|
16
|
-
import { type InputStatus, type FieldStatusVariant } from '../Field';
|
|
17
|
-
import { type IconType } from '../Icon';
|
|
18
|
-
import type { SearchableItem, SearchSource } from '../Typeahead/types';
|
|
19
|
-
export type { InputStatus as TokenizerStatus, InputStatusType as TokenizerStatusType, } from '../Field';
|
|
14
|
+
import { type FieldInputBaseProps } from '../Field/fieldParts.js';
|
|
15
|
+
import type { SizeValue } from '../utils/types.js';
|
|
16
|
+
import { type InputStatus, type FieldStatusVariant } from '../Field/index.js';
|
|
17
|
+
import { type IconType } from '../Icon/index.js';
|
|
18
|
+
import type { SearchableItem, SearchSource } from '../Typeahead/types.js';
|
|
19
|
+
export type { InputStatus as TokenizerStatus, InputStatusType as TokenizerStatusType, } from '../Field/index.js';
|
|
20
20
|
/**
|
|
21
21
|
* Change metadata for onChange callback.
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tok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,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;CACxC;AAsRD,wBAAgB,SAAS,CAAC,CAAC,SAAS,cAAc,EAAE,EAClD,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAkB,EAClB,UAAkB,EAClB,MAAM,EACN,aAA0B,EAC1B,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,cAAc,EACd,eAAe,EACf,UAAkB,EAClB,QAAQ,EACR,eAAe,EACf,QAAgB,EAChB,UAAU,EACV,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,qBAA8B,EAC9B,UAAU,EACV,SAAiB,EACjB,aAAa,EACb,OAAO,EACP,MAAM,EACN,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,SAAS,EACT,SAAS,EACT,EAAE,EAAE,MAAM,EACV,kBAAkB,EAAE,mBAAmB,EACvC,GAAG,SAAS,EACb,EAAE,cAAc,CAAC,CAAC,CAAC,qBAmmBnB;yBAnpBe,SAAS"}
|
|
@@ -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. */
|