@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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - /packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.tsx
|
|
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 NavIconProps extends BaseProps<HTMLSpanElement> {
|
|
17
17
|
/** Ref forwarded to the root element */
|
|
18
18
|
ref?: React.Ref<HTMLSpanElement>;
|
package/dist/NavIcon/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update /packages/core/src/NavIcon/NavIcon.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { NavIcon } from './NavIcon';
|
|
10
|
-
export type { NavIconProps } from './NavIcon';
|
|
9
|
+
export { NavIcon } from './NavIcon.js';
|
|
10
|
+
export type { NavIconProps } from './NavIcon.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* - /packages/core/src/NavMenu/index.ts
|
|
9
9
|
*/
|
|
10
10
|
import React, { type ReactNode } from 'react';
|
|
11
|
-
import type { BaseProps } from '../BaseProps';
|
|
12
|
-
import { type NavHeadingMenuSize } from './NavMenuContext';
|
|
11
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
12
|
+
import { type NavHeadingMenuSize } from './NavMenuContext.js';
|
|
13
13
|
export interface NavHeadingMenuProps extends BaseProps<HTMLDivElement> {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
15
|
/** Menu items (NavHeadingMenuItem, dividers, custom content). */
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* - /packages/core/src/NavMenu/index.ts
|
|
9
9
|
*/
|
|
10
10
|
import React, { type ReactNode } from 'react';
|
|
11
|
-
import { type IconType } from '../Icon';
|
|
12
|
-
import type { BaseProps } from '../BaseProps';
|
|
11
|
+
import { type IconType } from '../Icon/index.js';
|
|
12
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
13
13
|
export interface NavHeadingMenuItemProps extends Omit<BaseProps<HTMLElement>, 'onClick'> {
|
|
14
14
|
ref?: React.Ref<HTMLElement>;
|
|
15
15
|
/** Icon to display before the label. */
|
package/dist/NavMenu/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { NavHeadingMenu } from './NavHeadingMenu';
|
|
2
|
-
export type { NavHeadingMenuProps } from './NavHeadingMenu';
|
|
3
|
-
export { NavHeadingMenuItem } from './NavHeadingMenuItem';
|
|
4
|
-
export type { NavHeadingMenuItemProps } from './NavHeadingMenuItem';
|
|
5
|
-
export { NavHeadingMenuContext, useNavHeadingMenuContext, NavHeadingCloseContext, useNavHeadingCloseContext, } from './NavMenuContext';
|
|
6
|
-
export type { NavHeadingMenuContextValue, NavHeadingCloseContextValue, NavHeadingMenuSize, } from './NavMenuContext';
|
|
1
|
+
export { NavHeadingMenu } from './NavHeadingMenu.js';
|
|
2
|
+
export type { NavHeadingMenuProps } from './NavHeadingMenu.js';
|
|
3
|
+
export { NavHeadingMenuItem } from './NavHeadingMenuItem.js';
|
|
4
|
+
export type { NavHeadingMenuItemProps } from './NavHeadingMenuItem.js';
|
|
5
|
+
export { NavHeadingMenuContext, useNavHeadingMenuContext, NavHeadingCloseContext, useNavHeadingCloseContext, } from './NavMenuContext.js';
|
|
6
|
+
export type { NavHeadingMenuContextValue, NavHeadingCloseContextValue, NavHeadingMenuSize, } from './NavMenuContext.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type FocusEvent, type KeyboardEvent, type ReactNode } from 'react';
|
|
17
17
|
import * as stylex from '@stylexjs/stylex';
|
|
18
|
-
import { type InputStatus, type FieldStatusVariant } from '../Field';
|
|
19
|
-
import { type IconType } from '../Icon';
|
|
18
|
+
import { type InputStatus, type FieldStatusVariant } from '../Field/index.js';
|
|
19
|
+
import { type IconType } from '../Icon/index.js';
|
|
20
20
|
declare const sizeStyles: Readonly<{
|
|
21
21
|
readonly sm: Readonly<{
|
|
22
22
|
readonly height: stylex.StyleXClassNameFor<"height", "28px">;
|
|
@@ -29,9 +29,9 @@ declare const sizeStyles: Readonly<{
|
|
|
29
29
|
}>;
|
|
30
30
|
}>;
|
|
31
31
|
export type NumberInputSize = keyof typeof sizeStyles;
|
|
32
|
-
export type { InputStatus as NumberInputStatus, InputStatusType as NumberInputStatusType, } from '../Field';
|
|
33
|
-
import { type FieldInputBaseProps } from '../Field/fieldParts';
|
|
34
|
-
import type { SizeValue } from '../utils/types';
|
|
32
|
+
export type { InputStatus as NumberInputStatus, InputStatusType as NumberInputStatusType, } from '../Field/index.js';
|
|
33
|
+
import { type FieldInputBaseProps } from '../Field/fieldParts.js';
|
|
34
|
+
import type { SizeValue } from '../utils/types.js';
|
|
35
35
|
interface NumberInputPropsBase extends Omit<FieldInputBaseProps, 'onChange' | 'defaultValue'> {
|
|
36
36
|
/** Ref forwarded to the root element */
|
|
37
37
|
ref?: React.Ref<HTMLInputElement>;
|
|
@@ -67,7 +67,7 @@ interface NumberInputPropsBase extends Omit<FieldInputBaseProps, 'onChange' | 'd
|
|
|
67
67
|
* Whether the input is read-only.
|
|
68
68
|
* The value is shown at full opacity and still submits with the form, but
|
|
69
69
|
* cannot be edited. Unlike `isDisabled`, a read-only input is not dimmed and
|
|
70
|
-
*
|
|
70
|
+
* keeps its form value — use it for a value the user should see and send
|
|
71
71
|
* but not change. Stepping is off in every form while read-only: arrow keys,
|
|
72
72
|
* the wheel, and the number steppers. `isDisabled` takes precedence when both
|
|
73
73
|
* are set.
|
|
@@ -81,8 +81,8 @@ interface NumberInputPropsBase extends Omit<FieldInputBaseProps, 'onChange' | 'd
|
|
|
81
81
|
* keyboard and assistive technology. The field cannot be edited (it becomes
|
|
82
82
|
* read-only) while disabled.
|
|
83
83
|
*
|
|
84
|
-
* Use this instead of wrapping a disabled input in `Tooltip
|
|
85
|
-
*
|
|
84
|
+
* Use this instead of wrapping a disabled input in `Tooltip`, so the reason
|
|
85
|
+
* is attached to the field itself.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../src/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAML,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAS3C,OAAO,EAGL,KAAK,WAAW,EAKhB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAuB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../src/NumberInput/NumberInput.tsx"],"names":[],"mappings":"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"}
|
|
@@ -28,6 +28,7 @@ import { useTooltip } from "../Tooltip/index.js";
|
|
|
28
28
|
import { getInputARIA } from "../utils/index.js";
|
|
29
29
|
import { interactionOverlayStyles } from "../utils/interactionOverlay.stylex.js";
|
|
30
30
|
import { usePressFeedback } from "../hooks/usePressFeedback.js";
|
|
31
|
+
import { inputDisabledFocusStyles } from "../Field/inputDisabledFocus.js";
|
|
31
32
|
import { useSize } from "../SizeContext/SizeContext.js";
|
|
32
33
|
import { useInputContainer } from "../hooks/useInputContainer.js";
|
|
33
34
|
import { useInputStatusIcon } from "../hooks/useInputStatusIcon.js";
|
|
@@ -275,12 +276,14 @@ export function NumberInput({
|
|
|
275
276
|
const [pendingInput, setPendingInput] = useState(null);
|
|
276
277
|
const [isFocused, setIsFocused] = useState(false);
|
|
277
278
|
|
|
278
|
-
// Disabled-reason tooltip.
|
|
279
|
-
// tooltip listeners attach to the input container (which already exists) and
|
|
279
|
+
// Disabled-reason tooltip. The tooltip listeners attach to the input container (which already exists) and
|
|
280
280
|
// the input stays perceivable via aria-disabled instead of the native
|
|
281
281
|
// disabled attribute. The field is made read-only so it can't be typed into,
|
|
282
282
|
// and value mutation is blocked by the isDisabled guard in the handlers.
|
|
283
283
|
const showsDisabledMessage = isDisabled && !!disabledMessage;
|
|
284
|
+
// A disabled field keeps its tab stop but, like a natively disabled one,
|
|
285
|
+
// runs no caller event handler other than focus and blur (`spec:AST-085` FR2).
|
|
286
|
+
const fieldProps = isDisabled ? Object.fromEntries(Object.entries(rest).filter(([key]) => !/^on[A-Z]/.test(key) || /^on(Focus|Blur)/.test(key))) : rest;
|
|
284
287
|
const disabledMessageTooltip = useTooltip({
|
|
285
288
|
placement: 'above',
|
|
286
289
|
// The container div is not naturally focusable; focusin bubbles up from
|
|
@@ -359,6 +362,12 @@ export function NumberInput({
|
|
|
359
362
|
if (pendingInput === null) {
|
|
360
363
|
return;
|
|
361
364
|
}
|
|
365
|
+
if (isDisabled) {
|
|
366
|
+
// A field disabled mid-entry commits nothing; its draft is dropped, as
|
|
367
|
+
// a natively disabled field's was (spec:AST-085 FR2).
|
|
368
|
+
setPendingInput(null);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
362
371
|
const decision = resolveNumberInputCommit(pendingInput, {
|
|
363
372
|
min,
|
|
364
373
|
max,
|
|
@@ -376,7 +385,7 @@ export function NumberInput({
|
|
|
376
385
|
} else if (decision.type === 'commit' && decision.value !== value) {
|
|
377
386
|
onChange(decision.value);
|
|
378
387
|
}
|
|
379
|
-
}, [hasClear, isIntegerOnly, locale, max, min, onChange, pendingInput, value]);
|
|
388
|
+
}, [hasClear, isDisabled, isIntegerOnly, locale, max, min, onChange, pendingInput, value]);
|
|
380
389
|
|
|
381
390
|
// Blur ends the edit and displays the resulting committed value.
|
|
382
391
|
const handleBlur = useCallback(e => {
|
|
@@ -419,6 +428,13 @@ export function NumberInput({
|
|
|
419
428
|
|
|
420
429
|
// Handle keyboard events
|
|
421
430
|
const handleKeyDown = useCallback(e => {
|
|
431
|
+
if (isDisabled) {
|
|
432
|
+
// A read-only field still submits its form on Enter.
|
|
433
|
+
if (e.key === 'Enter') {
|
|
434
|
+
e.preventDefault();
|
|
435
|
+
}
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
422
438
|
// The field is type="text" for formatted display, so an IME can compose
|
|
423
439
|
// into it: Enter commits the candidate and the arrows walk the candidate
|
|
424
440
|
// window. The composing keydown fires before compositionend, so without
|
|
@@ -442,7 +458,7 @@ export function NumberInput({
|
|
|
442
458
|
onEnter?.();
|
|
443
459
|
}
|
|
444
460
|
onKeyDown?.(e);
|
|
445
|
-
}, [commitPendingInput, onEnter, onKeyDown, stepValue]);
|
|
461
|
+
}, [commitPendingInput, isDisabled, onEnter, onKeyDown, stepValue]);
|
|
446
462
|
|
|
447
463
|
// React's delegated wheel listener can be passive, so use a native,
|
|
448
464
|
// explicitly non-passive listener to prevent page scrolling only when this
|
|
@@ -479,12 +495,13 @@ export function NumberInput({
|
|
|
479
495
|
if (!e || e.detail === 0) {
|
|
480
496
|
inputRef.current?.focus();
|
|
481
497
|
} else {
|
|
482
|
-
//
|
|
483
|
-
//
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
498
|
+
// Focus inside the tap: iOS Safari brings up its keyboard only for a
|
|
499
|
+
// focus made while handling the touch, so a field the tap reaches
|
|
500
|
+
// unfocused gets its keyboard, as UIKit's clear button makes the
|
|
501
|
+
// field first responder. `preventScroll` keeps a scrolled page where
|
|
502
|
+
// it is.
|
|
503
|
+
inputRef.current?.focus({
|
|
504
|
+
preventScroll: true
|
|
488
505
|
});
|
|
489
506
|
}
|
|
490
507
|
}, [hasClear, onChange]);
|
|
@@ -513,7 +530,7 @@ export function NumberInput({
|
|
|
513
530
|
status: status?.type ?? null,
|
|
514
531
|
disabled: isDisabled ? 'disabled' : null,
|
|
515
532
|
readonly: isReadOnly ? 'readonly' : null
|
|
516
|
-
}), stylex.props(inputWrapperStyles.base, styles.wrapper, hasNumberSteppers && styles.wrapperWithNumberSteppers, sizeStyles[size], isDisabled && inputWrapperStyles.disabled, status && inputStatusBorderStyles[status.type], status && !isDisabled && inputStatusHoverShadowStyles[status.type], status && inputStatusFocusWithinStyles[status.type], inputGroup && groupStyles.inGroup, controlXstyle), controlClassName, controlStyle),
|
|
533
|
+
}), stylex.props(inputWrapperStyles.base, styles.wrapper, hasNumberSteppers && styles.wrapperWithNumberSteppers, sizeStyles[size], isDisabled && inputWrapperStyles.disabled, isDisabled && inputDisabledFocusStyles.ring, status && inputStatusBorderStyles[status.type], status && !isDisabled && inputStatusHoverShadowStyles[status.type], status && inputStatusFocusWithinStyles[status.type], inputGroup && groupStyles.inGroup, controlXstyle), controlClassName, controlStyle),
|
|
517
534
|
children: [startIcon && renderIconSlot(startIcon, {
|
|
518
535
|
size: 'sm',
|
|
519
536
|
color: 'secondary'
|
|
@@ -521,7 +538,7 @@ export function NumberInput({
|
|
|
521
538
|
id: inputLabelID,
|
|
522
539
|
children: label
|
|
523
540
|
}), /*#__PURE__*/_jsx("input", {
|
|
524
|
-
...
|
|
541
|
+
...fieldProps,
|
|
525
542
|
ref: mergedInputRef,
|
|
526
543
|
id: id,
|
|
527
544
|
name: isDisabled || formatValue ? undefined : htmlName,
|
|
@@ -535,13 +552,12 @@ export function NumberInput({
|
|
|
535
552
|
onBlur: handleBlur,
|
|
536
553
|
onKeyDown: handleKeyDown,
|
|
537
554
|
placeholder: placeholder
|
|
538
|
-
//
|
|
539
|
-
//
|
|
540
|
-
//
|
|
555
|
+
// A disabled input keeps its place in the tab order (spec:AST-085):
|
|
556
|
+
// aria-disabled instead of the native attribute, with readOnly + the
|
|
557
|
+
// handler guards keeping the value from changing.
|
|
541
558
|
,
|
|
542
|
-
disabled: isDisabled
|
|
543
|
-
|
|
544
|
-
readOnly: isReadOnly || showsDisabledMessage || undefined,
|
|
559
|
+
"aria-disabled": isDisabled ? 'true' : undefined,
|
|
560
|
+
readOnly: isReadOnly || isDisabled || undefined,
|
|
545
561
|
autoFocus: hasAutoFocus,
|
|
546
562
|
"data-autofocus": hasAutoFocus || undefined,
|
|
547
563
|
"aria-valuemin": min ?? undefined,
|
|
@@ -597,12 +613,17 @@ export function NumberInput({
|
|
|
597
613
|
type: "button",
|
|
598
614
|
tabIndex: -1,
|
|
599
615
|
...pressable,
|
|
600
|
-
disabled: isDisabled || isReadOnly || !canIncrement,
|
|
616
|
+
"aria-disabled": isDisabled || isReadOnly || !canIncrement || undefined,
|
|
601
617
|
"aria-label": t('@astryx.numberInput.incrementLabel', {
|
|
602
618
|
label
|
|
603
619
|
}),
|
|
604
620
|
onPointerDown: event => event.preventDefault(),
|
|
605
621
|
onClick: () => {
|
|
622
|
+
// An aria-disabled stepper does nothing, as a natively disabled
|
|
623
|
+
// one did (spec:AST-085 FR2).
|
|
624
|
+
if (isDisabled || isReadOnly || !canIncrement) {
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
606
627
|
inputRef.current?.focus();
|
|
607
628
|
stepValue(1);
|
|
608
629
|
},
|
|
@@ -617,12 +638,17 @@ export function NumberInput({
|
|
|
617
638
|
type: "button",
|
|
618
639
|
tabIndex: -1,
|
|
619
640
|
...pressable,
|
|
620
|
-
disabled: isDisabled || isReadOnly || !canDecrement,
|
|
641
|
+
"aria-disabled": isDisabled || isReadOnly || !canDecrement || undefined,
|
|
621
642
|
"aria-label": t('@astryx.numberInput.decrementLabel', {
|
|
622
643
|
label
|
|
623
644
|
}),
|
|
624
645
|
onPointerDown: event => event.preventDefault(),
|
|
625
646
|
onClick: () => {
|
|
647
|
+
// An aria-disabled stepper does nothing, as a natively disabled
|
|
648
|
+
// one did (spec:AST-085 FR2).
|
|
649
|
+
if (isDisabled || isReadOnly || !canDecrement) {
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
626
652
|
inputRef.current?.focus();
|
|
627
653
|
stepValue(-1);
|
|
628
654
|
},
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update this header and /packages/core/src/NumberInput/NumberInput.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { NumberInput } from './NumberInput';
|
|
10
|
-
export type { NumberInputProps, NumberInputSize, NumberInputStatus, NumberInputStatusType, } from './NumberInput';
|
|
9
|
+
export { NumberInput } from './NumberInput.js';
|
|
10
|
+
export type { NumberInputProps, NumberInputSize, NumberInputStatus, NumberInputStatusType, } from './NumberInput.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - /packages/core/src/Table/plugins/filtering/useTableFiltering.tsx
|
|
11
11
|
* - /packages/core/src/PowerSearch/PowerSearchValueEditor.tsx
|
|
12
12
|
*/
|
|
13
|
-
import type { Locale } from '../i18n';
|
|
13
|
+
import type { Locale } from '../i18n/index.js';
|
|
14
14
|
interface NumberInputValidationOptions {
|
|
15
15
|
min?: number | null;
|
|
16
16
|
max?: number | null;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* - /packages/core/src/NumberInput/numberParser.test.ts
|
|
33
33
|
* - /packages/core/src/NumberInput/numberParser.docblock.test.ts
|
|
34
34
|
*/
|
|
35
|
-
import type { Locale } from '../i18n';
|
|
35
|
+
import type { Locale } from '../i18n/index.js';
|
|
36
36
|
/**
|
|
37
37
|
* Read a number out of text the way a person in `locale` writes one: their
|
|
38
38
|
* grouping and decimal separators, their group sizes, their digit script, an
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseProps } from '../BaseProps';
|
|
2
|
-
import type { OutlineItem } from './types';
|
|
3
|
-
export type { OutlineItem } from './types';
|
|
1
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
2
|
+
import type { OutlineItem } from './types.js';
|
|
3
|
+
export type { OutlineItem } from './types.js';
|
|
4
4
|
export interface OutlineProps extends BaseProps<HTMLElement> {
|
|
5
5
|
/** Ref forwarded to the root nav element. */
|
|
6
6
|
ref?: React.Ref<HTMLElement>;
|
package/dist/Outline/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When modified, update /packages/core/src/Outline/Outline.doc.mjs
|
|
8
8
|
*/
|
|
9
|
-
export { Outline } from './Outline';
|
|
10
|
-
export type { OutlineProps } from './Outline';
|
|
11
|
-
export type { OutlineItem } from './types';
|
|
12
|
-
export { parseOutlineFromMarkdown } from './parseOutlineFromMarkdown';
|
|
13
|
-
export type { ParseOutlineFromMarkdownOptions } from './parseOutlineFromMarkdown';
|
|
14
|
-
export { useOutlineFromMarkdown } from './useOutlineFromMarkdown';
|
|
15
|
-
export { useOutlineFromDOM } from './useOutlineFromDOM';
|
|
9
|
+
export { Outline } from './Outline.js';
|
|
10
|
+
export type { OutlineProps } from './Outline.js';
|
|
11
|
+
export type { OutlineItem } from './types.js';
|
|
12
|
+
export { parseOutlineFromMarkdown } from './parseOutlineFromMarkdown.js';
|
|
13
|
+
export type { ParseOutlineFromMarkdownOptions } from './parseOutlineFromMarkdown.js';
|
|
14
|
+
export { useOutlineFromMarkdown } from './useOutlineFromMarkdown.js';
|
|
15
|
+
export { useOutlineFromDOM } from './useOutlineFromDOM.js';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MarkdownExtensionNode, MarkdownPluginEntry } from '../Markdown/plugins/protocol';
|
|
2
|
-
import type { OutlineItem } from './types';
|
|
1
|
+
import type { MarkdownExtensionNode, MarkdownPluginEntry } from '../Markdown/plugins/protocol.js';
|
|
2
|
+
import type { OutlineItem } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extract heading items from a Markdown string.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OutlineItem } from './types';
|
|
1
|
+
import type { OutlineItem } from './types.js';
|
|
2
2
|
/** Build outline items from h1-h6 elements inside a DOM container. */
|
|
3
3
|
export declare function useOutlineFromDOM(containerRef: React.RefObject<HTMLElement | null>): OutlineItem[];
|
|
4
4
|
//# sourceMappingURL=useOutlineFromDOM.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ParseOutlineFromMarkdownOptions } from './parseOutlineFromMarkdown';
|
|
2
|
-
import type { MarkdownExtensionNode } from '../Markdown/plugins/protocol';
|
|
3
|
-
import type { OutlineItem } from './types';
|
|
1
|
+
import type { ParseOutlineFromMarkdownOptions } from './parseOutlineFromMarkdown.js';
|
|
2
|
+
import type { MarkdownExtensionNode } from '../Markdown/plugins/protocol.js';
|
|
3
|
+
import type { OutlineItem } from './types.js';
|
|
4
4
|
/** Extract a stable outline from a Markdown string. */
|
|
5
5
|
export declare function useOutlineFromMarkdown<Node extends MarkdownExtensionNode = never>(markdown: string, options?: ParseOutlineFromMarkdownOptions<Node>): OutlineItem[];
|
|
6
6
|
//# sourceMappingURL=useOutlineFromMarkdown.d.ts.map
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* - /packages/cli/assets/templates/blocks/components/OverflowList/ (showcase blocks)
|
|
15
15
|
*/
|
|
16
16
|
import { type ReactNode, type ReactElement } from 'react';
|
|
17
|
-
import type { BaseProps } from '../BaseProps';
|
|
18
|
-
import type { SpacingStep } from '../utils/types';
|
|
17
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
18
|
+
import type { SpacingStep } from '../utils/types.js';
|
|
19
19
|
export interface OverflowItem {
|
|
20
20
|
/** The React element for this item */
|
|
21
21
|
child: ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file OverflowList component barrel export
|
|
3
3
|
*/
|
|
4
|
-
export { OverflowList } from './OverflowList';
|
|
5
|
-
export type { OverflowListProps, OverflowItem } from './OverflowList';
|
|
4
|
+
export { OverflowList } from './OverflowList.js';
|
|
5
|
+
export type { OverflowListProps, OverflowItem } from './OverflowList.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* use the useOverlay hook directly.
|
|
12
12
|
*/
|
|
13
13
|
import type { ReactNode, Ref } from 'react';
|
|
14
|
-
import type { BaseProps } from '../BaseProps';
|
|
15
|
-
import type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn } from './OverlayScrim';
|
|
14
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
15
|
+
import type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn } from './OverlayScrim.js';
|
|
16
16
|
export interface OverlayProps extends Pick<BaseProps<HTMLDivElement>, 'xstyle' | 'className' | 'style'> {
|
|
17
17
|
/** Ref forwarded to the container element. */
|
|
18
18
|
ref?: Ref<HTMLDivElement>;
|
package/dist/Overlay/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @file index.ts
|
|
3
3
|
* @position Overlay barrel export
|
|
4
4
|
*/
|
|
5
|
-
export { Overlay } from './Overlay';
|
|
6
|
-
export type { OverlayProps } from './Overlay';
|
|
7
|
-
export { useOverlay } from './useOverlay';
|
|
8
|
-
export type { UseOverlayOptions, UseOverlayResult, OverlayContainerProps, } from './useOverlay';
|
|
9
|
-
export type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn, } from './OverlayScrim';
|
|
5
|
+
export { Overlay } from './Overlay.js';
|
|
6
|
+
export type { OverlayProps } from './Overlay.js';
|
|
7
|
+
export { useOverlay } from './useOverlay.js';
|
|
8
|
+
export type { UseOverlayOptions, UseOverlayResult, OverlayContainerProps, } from './useOverlay.js';
|
|
9
|
+
export type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn, } from './OverlayScrim.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* and scrim rendering.
|
|
13
13
|
*/
|
|
14
14
|
import { type ReactNode, type ReactElement, type MouseEvent } from 'react';
|
|
15
|
-
import type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn } from './OverlayScrim';
|
|
15
|
+
import type { OverlayScrimMode, OverlayPosition, OverlayAlign, OverlayShowOn } from './OverlayScrim.js';
|
|
16
16
|
export interface UseOverlayOptions {
|
|
17
17
|
/** Content rendered inside the scrim overlay. */
|
|
18
18
|
content?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseProps } from '../BaseProps';
|
|
2
|
-
import type { PaginationVariantMap } from './index';
|
|
1
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
2
|
+
import type { PaginationVariantMap } from './index.js';
|
|
3
3
|
/** Visual variant controlling what appears between prev/next buttons.
|
|
4
4
|
* Extensible via module augmentation of PaginationVariantMap.
|
|
5
5
|
*/
|
|
@@ -25,6 +25,6 @@ export interface PaginationVariantMap {
|
|
|
25
25
|
input: true;
|
|
26
26
|
none: true;
|
|
27
27
|
}
|
|
28
|
-
export { Pagination, generatePageRange } from './Pagination';
|
|
29
|
-
export type { PaginationProps, PaginationVariant, PaginationSize, } from './Pagination';
|
|
28
|
+
export { Pagination, generatePageRange } from './Pagination.js';
|
|
29
|
+
export type { PaginationProps, PaginationVariant, PaginationSize, } from './Pagination.js';
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* - /packages/cli/assets/templates/blocks/components/Popover/ (showcase blocks)
|
|
14
14
|
*/
|
|
15
15
|
import React, { type ReactElement, type ReactNode } from 'react';
|
|
16
|
-
import type { BaseProps } from '../BaseProps';
|
|
17
|
-
import type { LayerAlignment, LayerPlacement } from '../Layer/useLayer';
|
|
18
|
-
import type { SpacingStep } from '../utils/types';
|
|
16
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
17
|
+
import type { LayerAlignment, LayerPlacement } from '../Layer/useLayer.js';
|
|
18
|
+
import type { SpacingStep } from '../utils/types.js';
|
|
19
19
|
/**
|
|
20
20
|
* Props passed to render-prop children for explicit trigger wiring.
|
|
21
21
|
*/
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new Popover files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export { usePopover } from './usePopover';
|
|
10
|
-
export type { UsePopoverOptions, UsePopoverReturn } from './usePopover';
|
|
11
|
-
export { Popover } from './Popover';
|
|
12
|
-
export type { PopoverProps, PopoverTriggerRenderProps } from './Popover';
|
|
9
|
+
export { usePopover } from './usePopover.js';
|
|
10
|
+
export type { UsePopoverOptions, UsePopoverReturn } from './usePopover.js';
|
|
11
|
+
export { Popover } from './Popover.js';
|
|
12
|
+
export type { PopoverProps, PopoverTriggerRenderProps } from './Popover.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* - /packages/core/src/Popover/index.ts
|
|
12
12
|
*/
|
|
13
13
|
import React, { type ReactNode } from 'react';
|
|
14
|
-
import { type ContextRenderProps } from '../Layer/useLayer';
|
|
14
|
+
import { type ContextRenderProps } from '../Layer/useLayer.js';
|
|
15
15
|
import type { StyleXStyles } from '@stylexjs/stylex';
|
|
16
|
-
import type { SpacingStep } from '../utils/types';
|
|
16
|
+
import type { SpacingStep } from '../utils/types.js';
|
|
17
17
|
/**
|
|
18
18
|
* Options for usePopover
|
|
19
19
|
*/
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* - /packages/cli/assets/templates/blocks/components/PowerSearch/ (showcase blocks)
|
|
11
11
|
*/
|
|
12
12
|
import React, { type ReactNode } from 'react';
|
|
13
|
-
import type { BaseProps } from '../BaseProps';
|
|
14
|
-
import { type TokenizerOverflowBehavior } from '../Tokenizer';
|
|
15
|
-
import type { IconType } from '../Icon';
|
|
16
|
-
import type { InputStatus, FieldStatusVariant } from '../Field';
|
|
17
|
-
import type { PowerSearchConfig, PowerSearchFilter, PowerSearchChangeType, PowerSearchHandle, PowerSearchComponents } from './types';
|
|
13
|
+
import type { BaseProps } from '../BaseProps.js';
|
|
14
|
+
import { type TokenizerOverflowBehavior } from '../Tokenizer/index.js';
|
|
15
|
+
import type { IconType } from '../Icon/index.js';
|
|
16
|
+
import type { InputStatus, FieldStatusVariant } from '../Field/index.js';
|
|
17
|
+
import type { PowerSearchConfig, PowerSearchFilter, PowerSearchChangeType, PowerSearchHandle, PowerSearchComponents } from './types.js';
|
|
18
18
|
export type PowerSearchSize = 'sm' | 'md' | 'lg';
|
|
19
19
|
export interface PowerSearchProps extends Omit<BaseProps<HTMLElement>, 'onChange'> {
|
|
20
20
|
/** PowerSearch configuration defining available fields and operators. */
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* - /packages/core/src/PowerSearch/index.ts
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import type { InternalConfig } from './useInternalConfig';
|
|
12
|
-
import type { PowerSearchFilter, PartialFilter } from './types';
|
|
11
|
+
import type { InternalConfig } from './useInternalConfig.js';
|
|
12
|
+
import type { PowerSearchFilter, PartialFilter } from './types.js';
|
|
13
13
|
export interface PowerSearchEditPopoverProps {
|
|
14
14
|
config: InternalConfig;
|
|
15
15
|
/** The filter being edited/created. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @position Public component; used internally by PowerSearch and available for consumer composition
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import type { PowerSearchEditorProps } from './types';
|
|
8
|
+
import type { PowerSearchEditorProps } from './types.js';
|
|
9
9
|
/**
|
|
10
10
|
* Default filter editor for PowerSearch.
|
|
11
11
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @position Public component; used internally by PowerSearch and available for consumer composition
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import type { PowerSearchTokenProps } from './types';
|
|
8
|
+
import type { PowerSearchTokenProps } from './types.js';
|
|
9
9
|
/**
|
|
10
10
|
* Default token pill for PowerSearch filters.
|
|
11
11
|
*
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* - /packages/core/src/PowerSearch/index.ts
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import type { OperatorValue, FilterValue } from './types';
|
|
12
|
-
import type { InternalConfig } from './useInternalConfig';
|
|
11
|
+
import type { OperatorValue, FilterValue } from './types.js';
|
|
12
|
+
import type { InternalConfig } from './useInternalConfig.js';
|
|
13
13
|
export interface PowerSearchValueEditorProps {
|
|
14
14
|
operatorValue: OperatorValue;
|
|
15
15
|
filterValue: FilterValue | undefined;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* SYNC: When modified, update:
|
|
8
8
|
* - /packages/core/src/PowerSearch/index.ts
|
|
9
9
|
*/
|
|
10
|
-
import type { OperatorValue, FilterValue } from './types';
|
|
11
|
-
import type { InternalConfig } from './useInternalConfig';
|
|
12
|
-
import type { Locale, TranslatorFn } from '../i18n';
|
|
10
|
+
import type { OperatorValue, FilterValue } from './types.js';
|
|
11
|
+
import type { InternalConfig } from './useInternalConfig.js';
|
|
12
|
+
import type { Locale, TranslatorFn } from '../i18n/index.js';
|
|
13
13
|
export declare function formatDateAbsolute(unixSeconds: number, locale: Locale, timezoneID?: string): string;
|
|
14
14
|
/**
|
|
15
15
|
* Compact date-only rendering (no time-of-day) for the token pill's inline
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* SYNC: When adding new PowerSearch files, update exports here
|
|
8
8
|
*/
|
|
9
|
-
export { PowerSearch } from './PowerSearch';
|
|
10
|
-
export type { PowerSearchProps, PowerSearchSize } from './PowerSearch';
|
|
11
|
-
export { PowerSearchToken } from './PowerSearchToken';
|
|
12
|
-
export { PowerSearchFilterEditor } from './PowerSearchFilterEditor';
|
|
13
|
-
export { resolveOperatorLabel } from './resolveOperatorLabel';
|
|
14
|
-
export { createPowerSearchConfig, usePowerSearchConfig, } from './usePowerSearchConfig';
|
|
15
|
-
export type { FieldDefinition, InferData } from './usePowerSearchConfig';
|
|
16
|
-
export type { PowerSearchConfig, PowerSearchField, PowerSearchOperator, PowerSearchOperatorBase, PowerSearchOperatorWithLabel, PowerSearchOperatorWithI18nKey, OperatorValue, EmptyOperatorValue, StringOperatorValue, StringListOperatorValue, IntegerOperatorValue, FloatOperatorValue, TimeOperatorValue, DateAbsoluteOperatorValue, DateRelativeOperatorValue, DateRangeOperatorValue, EnumOperatorValue, EnumListOperatorValue, EntityListOperatorValue, CustomOperatorValue, NestedOperatorValue, FilterValue, FilterValueEmpty, FilterValueString, FilterValueStringList, FilterValueInteger, FilterValueFloat, FilterValueTime, FilterValueDateAbsolute, FilterValueDateRelative, FilterValueDateRange, FilterValueEnum, FilterValueEnumList, FilterValueEntityList, FilterValueCustom, FilterValueNested, PowerSearchFilter, PartialFilter, EnumItem, PowerSearchEntity, DateTimeRange, DateTimeRangePart, DateRangeFilterPreset, RelativeDateFilterPreset, OperatorTokenizationConfig, PowerSearchChangeType, PowerSearchHandle, PowerSearchTokenProps, PowerSearchEditorProps, PowerSearchComponentOverride, PowerSearchComponents, } from './types';
|
|
9
|
+
export { PowerSearch } from './PowerSearch.js';
|
|
10
|
+
export type { PowerSearchProps, PowerSearchSize } from './PowerSearch.js';
|
|
11
|
+
export { PowerSearchToken } from './PowerSearchToken.js';
|
|
12
|
+
export { PowerSearchFilterEditor } from './PowerSearchFilterEditor.js';
|
|
13
|
+
export { resolveOperatorLabel } from './resolveOperatorLabel.js';
|
|
14
|
+
export { createPowerSearchConfig, usePowerSearchConfig, } from './usePowerSearchConfig.js';
|
|
15
|
+
export type { FieldDefinition, InferData } from './usePowerSearchConfig.js';
|
|
16
|
+
export type { PowerSearchConfig, PowerSearchField, PowerSearchOperator, PowerSearchOperatorBase, PowerSearchOperatorWithLabel, PowerSearchOperatorWithI18nKey, OperatorValue, EmptyOperatorValue, StringOperatorValue, StringListOperatorValue, IntegerOperatorValue, FloatOperatorValue, TimeOperatorValue, DateAbsoluteOperatorValue, DateRelativeOperatorValue, DateRangeOperatorValue, EnumOperatorValue, EnumListOperatorValue, EntityListOperatorValue, CustomOperatorValue, NestedOperatorValue, FilterValue, FilterValueEmpty, FilterValueString, FilterValueStringList, FilterValueInteger, FilterValueFloat, FilterValueTime, FilterValueDateAbsolute, FilterValueDateRelative, FilterValueDateRange, FilterValueEnum, FilterValueEnumList, FilterValueEntityList, FilterValueCustom, FilterValueNested, PowerSearchFilter, PartialFilter, EnumItem, PowerSearchEntity, DateTimeRange, DateTimeRangePart, DateRangeFilterPreset, RelativeDateFilterPreset, OperatorTokenizationConfig, PowerSearchChangeType, PowerSearchHandle, PowerSearchTokenProps, PowerSearchEditorProps, PowerSearchComponentOverride, PowerSearchComponents, } from './types.js';
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @output Resolves absolute, now, and relative range parts to Unix seconds
|
|
5
5
|
* @position Internal PowerSearch date-range utility; shared by filtering and editing
|
|
6
6
|
*/
|
|
7
|
-
import type { DateTimeRangePart } from './types';
|
|
7
|
+
import type { DateTimeRangePart } from './types.js';
|
|
8
8
|
/** Resolves a range part against one caller-supplied instant. */
|
|
9
9
|
export declare function resolveDateTimeRangePart(part: DateTimeRangePart, nowSeconds?: number): number;
|
|
10
10
|
//# sourceMappingURL=resolveDateTimeRangePart.d.ts.map
|