@astryxdesign/core 0.1.5 → 0.1.6-canary.02f2602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +2 -0
- package/dist/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +21 -18
- package/dist/AlertDialog/useImperativeAlertDialog.d.ts +0 -2
- package/dist/AlertDialog/useImperativeAlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/useImperativeAlertDialog.js +3 -5
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +55 -53
- package/dist/AspectRatio/AspectRatio.js +5 -5
- package/dist/Avatar/Avatar.js +19 -19
- package/dist/Avatar/AvatarStatusDot.js +5 -5
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.js +9 -6
- package/dist/AvatarGroup/AvatarGroupOverflow.js +5 -5
- package/dist/Badge/Badge.js +3 -3
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +32 -30
- package/dist/Blockquote/Blockquote.js +7 -7
- package/dist/Breadcrumbs/BreadcrumbItem.js +17 -17
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +11 -8
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +53 -23
- package/dist/ButtonGroup/ButtonGroup.d.ts +20 -5
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +34 -18
- package/dist/Calendar/Calendar.d.ts.map +1 -1
- package/dist/Calendar/Calendar.js +51 -48
- package/dist/Card/Card.js +3 -3
- package/dist/Carousel/Carousel.d.ts +1 -1
- package/dist/Carousel/Carousel.d.ts.map +1 -1
- package/dist/Carousel/Carousel.js +27 -24
- package/dist/Center/Center.js +3 -3
- package/dist/Chat/ChatComposer.d.ts.map +1 -1
- package/dist/Chat/ChatComposer.js +27 -24
- package/dist/Chat/ChatComposerDrawer.d.ts +1 -1
- package/dist/Chat/ChatComposerDrawer.d.ts.map +1 -1
- package/dist/Chat/ChatComposerDrawer.js +23 -16
- package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
- package/dist/Chat/ChatComposerInput.js +20 -16
- package/dist/Chat/ChatDictationButton.js +10 -10
- package/dist/Chat/ChatLayout.d.ts +1 -11
- package/dist/Chat/ChatLayout.d.ts.map +1 -1
- package/dist/Chat/ChatLayout.js +23 -21
- package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
- package/dist/Chat/ChatLayoutScrollButton.js +13 -11
- package/dist/Chat/ChatMessage.d.ts +1 -1
- package/dist/Chat/ChatMessage.d.ts.map +1 -1
- package/dist/Chat/ChatMessage.js +20 -14
- package/dist/Chat/ChatMessageBubble.d.ts +1 -1
- package/dist/Chat/ChatMessageBubble.d.ts.map +1 -1
- package/dist/Chat/ChatMessageBubble.js +10 -8
- package/dist/Chat/ChatMessageList.d.ts +1 -1
- package/dist/Chat/ChatMessageList.d.ts.map +1 -1
- package/dist/Chat/ChatMessageList.js +17 -15
- package/dist/Chat/ChatMessageMetadata.d.ts.map +1 -1
- package/dist/Chat/ChatMessageMetadata.js +24 -19
- package/dist/Chat/ChatPastedTextToken.d.ts.map +1 -1
- package/dist/Chat/ChatPastedTextToken.js +16 -14
- package/dist/Chat/ChatSendButton.d.ts.map +1 -1
- package/dist/Chat/ChatSendButton.js +6 -4
- package/dist/Chat/ChatSystemMessage.js +11 -11
- package/dist/Chat/ChatTokenizedText.js +8 -8
- package/dist/Chat/ChatToolCalls.js +73 -73
- package/dist/Chat/useSpeechRecognition.d.ts.map +1 -1
- package/dist/Chat/useSpeechRecognition.js +4 -2
- package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
- package/dist/Chat/useTriggerMenu.js +19 -17
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +26 -24
- package/dist/CheckboxList/CheckboxList.d.ts +1 -1
- package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxList.js +12 -10
- package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListItem.js +8 -6
- package/dist/Citation/Citation.d.ts.map +1 -1
- package/dist/Citation/Citation.js +20 -12
- package/dist/ClickableCard/ClickableCard.js +6 -6
- package/dist/Code/Code.js +3 -3
- package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/CodeBlock/CodeBlock.js +114 -96
- package/dist/Collapsible/Collapsible.js +11 -11
- package/dist/Collapsible/CollapsibleGroup.js +7 -7
- package/dist/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPalette.js +39 -34
- package/dist/CommandPalette/CommandPaletteEmpty.js +3 -3
- package/dist/CommandPalette/CommandPaletteFooter.js +16 -16
- package/dist/CommandPalette/CommandPaletteGroup.js +5 -5
- package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteInput.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteInput.js +17 -14
- package/dist/CommandPalette/CommandPaletteItem.js +3 -3
- package/dist/CommandPalette/CommandPaletteList.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteList.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteList.js +7 -4
- package/dist/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +14 -11
- package/dist/DateInput/DateInput.d.ts +1 -1
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +28 -23
- package/dist/DateRangeInput/DateRangeInput.d.ts +1 -1
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +32 -27
- package/dist/DateTimeInput/DateTimeInput.d.ts +1 -1
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +41 -33
- package/dist/Dialog/Dialog.js +9 -9
- package/dist/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/Dialog/DialogHeader.js +20 -18
- package/dist/Dialog/useImperativeDialog.js +3 -3
- package/dist/Divider/Divider.js +7 -7
- package/dist/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +21 -15
- package/dist/DropdownMenu/DropdownMenuItem.js +3 -3
- package/dist/DropdownMenu/renderDropdownItems.js +10 -10
- package/dist/EmptyState/EmptyState.d.ts +4 -1
- package/dist/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/EmptyState/EmptyState.js +9 -9
- package/dist/Field/Field.js +17 -17
- package/dist/Field/FieldLabel.js +15 -15
- package/dist/Field/InputClearButton.js +5 -5
- package/dist/FieldStatus/FieldStatus.js +3 -3
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +34 -30
- package/dist/FormLayout/FormLayout.js +5 -5
- package/dist/Grid/Grid.js +3 -3
- package/dist/Grid/GridSpan.js +3 -3
- package/dist/HStack/HStack.js +3 -3
- package/dist/Heading/Heading.js +10 -10
- package/dist/HoverCard/HoverCard.js +9 -9
- package/dist/HoverCard/useHoverCard.js +3 -3
- package/dist/Icon/Icon.js +11 -11
- package/dist/Icon/defaultIcons.js +116 -116
- package/dist/IconButton/IconButton.js +3 -3
- package/dist/InputGroup/InputGroup.js +9 -9
- package/dist/InputGroup/InputGroupText.js +3 -3
- package/dist/Item/Item.js +17 -17
- package/dist/Kbd/Kbd.js +5 -5
- package/dist/Layer/LayerProvider.js +7 -7
- package/dist/Layer/useLayer.js +5 -5
- package/dist/Layout/Layout.js +21 -21
- package/dist/Layout/LayoutContent.js +3 -3
- package/dist/Layout/LayoutFooter.js +5 -5
- package/dist/Layout/LayoutHeader.js +5 -5
- package/dist/Layout/LayoutPanel.js +3 -3
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +35 -33
- package/dist/Lightbox/useLightbox.d.ts +0 -1
- package/dist/Lightbox/useLightbox.d.ts.map +1 -1
- package/dist/Lightbox/useLightbox.js +3 -4
- package/dist/Link/Link.d.ts +5 -3
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +47 -18
- package/dist/Link/LinkProvider.js +3 -3
- package/dist/Link/useLinkify.js +3 -3
- package/dist/List/List.js +11 -11
- package/dist/List/ListItem.js +11 -11
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +111 -109
- package/dist/MetadataList/MetadataList.js +10 -10
- package/dist/MetadataList/MetadataListItem.js +15 -15
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +19 -17
- package/dist/MobileNav/MobileNavToggle.d.ts +1 -1
- package/dist/MobileNav/MobileNavToggle.d.ts.map +1 -1
- package/dist/MobileNav/MobileNavToggle.js +9 -6
- package/dist/MoreMenu/MoreMenu.d.ts +1 -1
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MoreMenu/MoreMenu.js +7 -4
- package/dist/MultiSelector/MultiSelector.d.ts +1 -1
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +69 -62
- package/dist/NavIcon/NavIcon.js +3 -3
- package/dist/NavMenu/NavHeadingMenu.js +5 -5
- package/dist/NavMenu/NavHeadingMenuItem.js +8 -8
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +21 -17
- package/dist/Outline/Outline.d.ts +1 -1
- package/dist/Outline/Outline.d.ts.map +1 -1
- package/dist/Outline/Outline.js +19 -16
- package/dist/OverflowList/OverflowList.js +8 -8
- package/dist/Overlay/Overlay.js +3 -3
- package/dist/Overlay/OverlayScrim.js +5 -5
- package/dist/Overlay/useOverlay.d.ts +0 -3
- package/dist/Overlay/useOverlay.d.ts.map +1 -1
- package/dist/Overlay/useOverlay.js +3 -6
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +73 -46
- package/dist/Popover/Popover.js +16 -16
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +11 -8
- package/dist/PowerSearch/PowerSearch.d.ts +1 -1
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +95 -85
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +109 -103
- package/dist/PowerSearch/PowerSearchFilterEditor.js +3 -3
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +12 -8
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.js +88 -75
- package/dist/PowerSearch/formatFilterValue.d.ts +2 -1
- package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
- package/dist/PowerSearch/formatFilterValue.js +19 -9
- package/dist/PowerSearch/index.d.ts +2 -1
- package/dist/PowerSearch/index.d.ts.map +1 -1
- package/dist/PowerSearch/index.js +1 -0
- package/dist/PowerSearch/resolveOperatorLabel.d.ts +23 -0
- package/dist/PowerSearch/resolveOperatorLabel.d.ts.map +1 -0
- package/dist/PowerSearch/resolveOperatorLabel.js +28 -0
- package/dist/PowerSearch/types.d.ts +28 -2
- package/dist/PowerSearch/types.d.ts.map +1 -1
- package/dist/PowerSearch/usePowerSearchConfig.d.ts.map +1 -1
- package/dist/PowerSearch/usePowerSearchConfig.js +27 -27
- package/dist/PowerSearch/usePowerSearchSource.d.ts.map +1 -1
- package/dist/PowerSearch/usePowerSearchSource.js +15 -8
- package/dist/ProgressBar/ProgressBar.js +13 -13
- package/dist/RadioList/RadioList.js +7 -7
- package/dist/RadioList/RadioListItem.js +18 -18
- package/dist/Resizable/ResizeHandle.d.ts +1 -1
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +10 -7
- package/dist/Section/Section.js +5 -5
- package/dist/SegmentedControl/SegmentedControl.js +5 -5
- package/dist/SegmentedControl/SegmentedControlItem.js +7 -7
- package/dist/SelectableCard/SelectableCard.js +5 -5
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +57 -51
- package/dist/Selector/SelectorOption.js +3 -3
- package/dist/SideNav/SideNav.d.ts.map +1 -1
- package/dist/SideNav/SideNav.js +38 -36
- package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
- package/dist/SideNav/SideNavCollapseButton.js +8 -6
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +92 -90
- package/dist/SideNav/SideNavItem.d.ts.map +1 -1
- package/dist/SideNav/SideNavItem.js +49 -43
- package/dist/SideNav/SideNavSection.js +14 -14
- package/dist/Skeleton/Skeleton.js +3 -3
- package/dist/Slider/Slider.js +23 -23
- package/dist/Spinner/Spinner.js +9 -9
- package/dist/StatusDot/StatusDot.js +5 -5
- package/dist/Switch/Switch.d.ts.map +1 -1
- package/dist/Switch/Switch.js +29 -27
- package/dist/TabList/Tab.js +18 -18
- package/dist/TabList/TabList.d.ts +1 -1
- package/dist/TabList/TabList.d.ts.map +1 -1
- package/dist/TabList/TabList.js +9 -6
- package/dist/TabList/TabMenu.js +23 -23
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +39 -37
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +10 -8
- package/dist/Table/TableBody.js +3 -3
- package/dist/Table/TableCell.js +3 -3
- package/dist/Table/TableFooter.js +3 -3
- package/dist/Table/TableHeader.js +3 -3
- package/dist/Table/TableHeaderCell.js +3 -3
- package/dist/Table/TableRow.js +5 -5
- package/dist/Table/index.d.ts +4 -0
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +2 -0
- package/dist/Table/plugins/columnResize/useTableColumnResize.js +9 -9
- package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.js +127 -90
- package/dist/Table/plugins/groupedRows/index.d.ts +3 -0
- package/dist/Table/plugins/groupedRows/index.d.ts.map +1 -0
- package/dist/Table/plugins/groupedRows/index.js +3 -0
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts +78 -0
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts.map +1 -0
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.js +257 -0
- package/dist/Table/plugins/pagination/useTablePagination.d.ts.map +1 -1
- package/dist/Table/plugins/pagination/useTablePagination.js +12 -9
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +30 -28
- package/dist/Table/plugins/rowIndex/index.d.ts +3 -0
- package/dist/Table/plugins/rowIndex/index.d.ts.map +1 -0
- package/dist/Table/plugins/rowIndex/index.js +3 -0
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +50 -0
- package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -0
- package/dist/Table/plugins/rowIndex/useTableRowIndex.js +91 -0
- package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
- package/dist/Table/plugins/selection/useTableSelection.js +23 -20
- package/dist/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortable.js +23 -21
- package/dist/Table/tableContextMenu.js +9 -9
- package/dist/Text/Text.js +10 -10
- package/dist/TextArea/TextArea.js +14 -14
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +20 -16
- package/dist/Thumbnail/Thumbnail.d.ts.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +37 -31
- package/dist/TimeInput/TimeInput.d.ts +1 -1
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +28 -23
- package/dist/Timestamp/Timestamp.d.ts.map +1 -1
- package/dist/Timestamp/Timestamp.js +29 -14
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +17 -15
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +14 -12
- package/dist/Toast/useToast.js +4 -4
- package/dist/ToggleButton/ToggleButton.js +12 -12
- package/dist/ToggleButton/ToggleButtonGroup.js +5 -5
- package/dist/Token/Token.d.ts.map +1 -1
- package/dist/Token/Token.js +29 -23
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +33 -31
- package/dist/Toolbar/Toolbar.js +18 -18
- package/dist/Tooltip/Tooltip.js +11 -11
- package/dist/Tooltip/useTooltip.js +3 -3
- package/dist/TopNav/TopNav.d.ts +2 -1
- package/dist/TopNav/TopNav.d.ts.map +1 -1
- package/dist/TopNav/TopNav.js +36 -33
- package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +72 -70
- package/dist/TopNav/TopNavItem.js +5 -5
- package/dist/TopNav/TopNavMegaMenu.js +30 -30
- package/dist/TopNav/TopNavMegaMenuFeaturedCard.js +10 -10
- package/dist/TopNav/TopNavMegaMenuItem.js +16 -16
- package/dist/TopNav/TopNavMenu.js +32 -32
- package/dist/TreeList/TreeList.d.ts.map +1 -1
- package/dist/TreeList/TreeList.js +13 -9
- package/dist/TreeList/TreeListBranches.js +11 -11
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +37 -31
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +26 -22
- package/dist/Typeahead/Typeahead.d.ts.map +1 -1
- package/dist/Typeahead/Typeahead.js +15 -13
- package/dist/Typeahead/TypeaheadItem.js +10 -10
- package/dist/VStack/VStack.js +3 -3
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -3
- package/dist/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -3
- package/dist/astryx.css +20 -2
- package/dist/astryx.umd.js +66 -64
- package/dist/astryx.umd.js.map +4 -4
- package/dist/authoring/doc.d.ts +145 -0
- package/dist/authoring/doc.d.ts.map +1 -0
- package/dist/authoring/doc.js +100 -0
- package/dist/authoring/index.d.ts +29 -0
- package/dist/authoring/index.d.ts.map +1 -0
- package/dist/authoring/index.js +28 -0
- package/dist/authoring/integration.d.ts +35 -0
- package/dist/authoring/integration.d.ts.map +1 -0
- package/dist/authoring/integration.js +30 -0
- package/dist/authoring/template.d.ts +66 -0
- package/dist/authoring/template.d.ts.map +1 -0
- package/dist/authoring/template.js +55 -0
- package/dist/config.d.ts +80 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +40 -0
- package/dist/hooks/useKeyboardHint.js +9 -9
- package/dist/i18n/InternationalizationContext.d.ts +12 -0
- package/dist/i18n/InternationalizationContext.d.ts.map +1 -0
- package/dist/i18n/InternationalizationContext.js +29 -0
- package/dist/i18n/InternationalizationProvider.d.ts +62 -0
- package/dist/i18n/InternationalizationProvider.d.ts.map +1 -0
- package/dist/i18n/InternationalizationProvider.js +44 -0
- package/dist/i18n/index.d.ts +24 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +21 -0
- package/dist/i18n/resolve.d.ts +22 -0
- package/dist/i18n/resolve.d.ts.map +1 -0
- package/dist/i18n/resolve.js +141 -0
- package/dist/i18n/translator.d.ts +25 -0
- package/dist/i18n/translator.d.ts.map +1 -0
- package/dist/i18n/translator.js +1 -0
- package/dist/i18n/types.d.ts +47 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/types.js +1 -0
- package/dist/i18n/useTranslator.d.ts +15 -0
- package/dist/i18n/useTranslator.d.ts.map +1 -0
- package/dist/i18n/useTranslator.js +39 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/theme/MediaTheme.js +3 -3
- package/dist/theme/Theme.js +7 -7
- package/dist/theme/syntax/SyntaxTheme.js +5 -5
- package/locales/en.json +746 -0
- package/locales/pseudo.json +560 -0
- package/package.json +24 -3
- package/src/AlertDialog/AlertDialog.doc.mjs +5 -0
- package/src/AlertDialog/AlertDialog.tsx +4 -1
- package/src/AlertDialog/useImperativeAlertDialog.tsx +0 -2
- package/src/AppShell/AppShell.doc.mjs +8 -2
- package/src/AppShell/AppShell.tsx +3 -1
- package/src/AvatarGroup/AvatarGroup.tsx +4 -1
- package/src/Banner/Banner.tsx +10 -5
- package/src/Breadcrumbs/Breadcrumbs.tsx +4 -1
- package/src/Button/Button.tsx +34 -4
- package/src/ButtonGroup/ButtonGroup.test.tsx +386 -2
- package/src/ButtonGroup/ButtonGroup.tsx +27 -11
- package/src/Calendar/Calendar.tsx +8 -5
- package/src/Card/Card.doc.mjs +3 -3
- package/src/Carousel/Carousel.tsx +10 -7
- package/src/Chat/ChatComposer.tsx +5 -1
- package/src/Chat/ChatComposerDrawer.tsx +9 -2
- package/src/Chat/ChatComposerInput.tsx +10 -4
- package/src/Chat/ChatLayout.tsx +5 -12
- package/src/Chat/ChatLayoutScrollButton.tsx +4 -2
- package/src/Chat/ChatMessage.tsx +5 -1
- package/src/Chat/ChatMessageBubble.tsx +2 -0
- package/src/Chat/ChatMessageList.doc.mjs +1 -1
- package/src/Chat/ChatMessageList.tsx +2 -0
- package/src/Chat/ChatMessageMetadata.tsx +15 -9
- package/src/Chat/ChatPastedTextToken.tsx +3 -1
- package/src/Chat/ChatSendButton.tsx +3 -1
- package/src/Chat/ChatToolCalls.doc.mjs +1 -1
- package/src/Chat/useSpeechRecognition.ts +11 -2
- package/src/Chat/useTriggerMenu.tsx +4 -2
- package/src/CheckboxInput/CheckboxInput.test.tsx +16 -0
- package/src/CheckboxInput/CheckboxInput.tsx +4 -2
- package/src/CheckboxList/CheckboxList.doc.mjs +6 -1
- package/src/CheckboxList/CheckboxList.tsx +2 -0
- package/src/CheckboxList/CheckboxListItem.tsx +7 -1
- package/src/Citation/Citation.tsx +4 -2
- package/src/ClickableCard/ClickableCard.doc.mjs +1 -1
- package/src/CodeBlock/CodeBlock.tsx +91 -40
- package/src/Collapsible/Collapsible.doc.mjs +3 -3
- package/src/CommandPalette/CommandPalette.tsx +10 -3
- package/src/CommandPalette/CommandPaletteInput.test.tsx +1 -1
- package/src/CommandPalette/CommandPaletteInput.tsx +5 -1
- package/src/CommandPalette/CommandPaletteList.tsx +4 -1
- package/src/ContextMenu/ContextMenu.tsx +4 -1
- package/src/DateInput/DateInput.doc.mjs +2 -2
- package/src/DateInput/DateInput.tsx +13 -5
- package/src/DateRangeInput/DateRangeInput.doc.mjs +7 -7
- package/src/DateRangeInput/DateRangeInput.tsx +14 -6
- package/src/DateTimeInput/DateTimeInput.doc.mjs +2 -2
- package/src/DateTimeInput/DateTimeInput.tsx +17 -7
- package/src/Dialog/DialogHeader.tsx +4 -2
- package/src/DropdownMenu/DropdownMenu.tsx +12 -8
- package/src/EmptyState/EmptyState.doc.mjs +3 -3
- package/src/EmptyState/EmptyState.tsx +4 -1
- package/src/Field/Field.doc.mjs +2 -2
- package/src/FileInput/FileInput.tsx +3 -1
- package/src/Grid/Grid.doc.mjs +5 -5
- package/src/InputGroup/InputGroup.doc.mjs +1 -1
- package/src/Layer/useLayer.doc.mjs +2 -2
- package/src/Lightbox/Lightbox.doc.mjs +7 -2
- package/src/Lightbox/Lightbox.tsx +6 -4
- package/src/Lightbox/useLightbox.tsx +0 -1
- package/src/Link/Link.test.tsx +74 -2
- package/src/Link/Link.tsx +48 -3
- package/src/Markdown/Markdown.tsx +12 -4
- package/src/MobileNav/MobileNav.tsx +4 -2
- package/src/MobileNav/MobileNavToggle.tsx +5 -3
- package/src/MoreMenu/MoreMenu.tsx +4 -1
- package/src/MultiSelector/MultiSelector.tsx +14 -5
- package/src/NumberInput/NumberInput.tsx +3 -1
- package/src/Outline/Outline.tsx +4 -1
- package/src/OverflowList/OverflowList.doc.mjs +2 -2
- package/src/Overlay/useOverlay.tsx +0 -3
- package/src/Pagination/Pagination.tsx +35 -12
- package/src/Popover/usePopover.tsx +6 -1
- package/src/PowerSearch/PowerSearch.doc.mjs +9 -4
- package/src/PowerSearch/PowerSearch.tsx +22 -10
- package/src/PowerSearch/PowerSearchEditPopover.tsx +27 -20
- package/src/PowerSearch/PowerSearchToken.tsx +17 -6
- package/src/PowerSearch/PowerSearchValueEditor.tsx +34 -21
- package/src/PowerSearch/formatFilterValue.test.ts +282 -0
- package/src/PowerSearch/formatFilterValue.ts +21 -8
- package/src/PowerSearch/index.ts +5 -0
- package/src/PowerSearch/resolveOperatorLabel.ts +34 -0
- package/src/PowerSearch/types.ts +33 -9
- package/src/PowerSearch/usePowerSearchConfig.ts +59 -27
- package/src/PowerSearch/usePowerSearchSource.ts +17 -8
- package/src/RadioList/RadioList.doc.mjs +1 -1
- package/src/Resizable/ResizeHandle.tsx +4 -1
- package/src/Section/Section.doc.mjs +4 -4
- package/src/SelectableCard/SelectableCard.doc.mjs +1 -1
- package/src/Selector/Selector.tsx +11 -6
- package/src/SideNav/SideNav.tsx +4 -2
- package/src/SideNav/SideNavCollapseButton.tsx +3 -1
- package/src/SideNav/SideNavHeading.tsx +5 -3
- package/src/SideNav/SideNavItem.tsx +3 -1
- package/src/Slider/Slider.doc.mjs +2 -2
- package/src/Stack/Stack.doc.mjs +10 -10
- package/src/Switch/Switch.doc.mjs +2 -2
- package/src/Switch/Switch.test.tsx +16 -0
- package/src/Switch/Switch.tsx +4 -2
- package/src/TabList/TabList.tsx +4 -1
- package/src/Table/BaseTable.tsx +8 -1
- package/src/Table/Table.doc.mjs +1 -1
- package/src/Table/Table.tsx +3 -1
- package/src/Table/index.ts +7 -0
- package/src/Table/plugins/filtering/useTableFiltering.tsx +31 -30
- package/src/Table/plugins/groupedRows/index.ts +7 -0
- package/src/Table/plugins/groupedRows/useTableGroupedRows.test.tsx +231 -0
- package/src/Table/plugins/groupedRows/useTableGroupedRows.tsx +351 -0
- package/src/Table/plugins/pagination/useTablePagination.tsx +4 -1
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +8 -4
- package/src/Table/plugins/rowIndex/index.ts +4 -0
- package/src/Table/plugins/rowIndex/useTableRowIndex.test.tsx +132 -0
- package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +114 -0
- package/src/Table/plugins/selection/useTableSelection.tsx +6 -7
- package/src/Table/plugins/sortable/useTableSortable.tsx +8 -5
- package/src/Table/useTableFiltering.doc.mjs +2 -2
- package/src/Table/useTableGroupedRows.doc.mjs +71 -0
- package/src/Table/useTableRowIndex.doc.mjs +50 -0
- package/src/Table/useTableSortable.doc.mjs +11 -11
- package/src/Text/Text.doc.mjs +2 -2
- package/src/TextInput/TextInput.tsx +3 -1
- package/src/Thumbnail/Thumbnail.tsx +4 -2
- package/src/TimeInput/TimeInput.doc.mjs +2 -2
- package/src/TimeInput/TimeInput.tsx +6 -2
- package/src/Timestamp/Timestamp.doc.mjs +4 -4
- package/src/Timestamp/Timestamp.test.tsx +120 -7
- package/src/Timestamp/Timestamp.tsx +21 -1
- package/src/Toast/Toast.tsx +3 -1
- package/src/Toast/ToastViewport.tsx +3 -1
- package/src/Token/Token.tsx +4 -2
- package/src/Tokenizer/Tokenizer.doc.mjs +2 -2
- package/src/Tokenizer/Tokenizer.tsx +4 -4
- package/src/Toolbar/Toolbar.doc.mjs +1 -1
- package/src/TopNav/TopNav.doc.mjs +1 -0
- package/src/TopNav/TopNav.test.tsx +30 -0
- package/src/TopNav/TopNav.tsx +6 -4
- package/src/TopNav/TopNavHeading.tsx +5 -3
- package/src/TreeList/TreeList.tsx +5 -1
- package/src/TreeList/TreeListItem.tsx +6 -1
- package/src/Typeahead/BaseTypeahead.tsx +11 -4
- package/src/Typeahead/Typeahead.doc.mjs +1 -1
- package/src/Typeahead/Typeahead.tsx +3 -1
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -3
- package/src/authoring/doc.ts +166 -0
- package/src/authoring/index.test.ts +52 -0
- package/src/authoring/index.ts +50 -0
- package/src/authoring/integration.ts +42 -0
- package/src/authoring/template.ts +74 -0
- package/src/config.test.ts +16 -0
- package/src/config.ts +92 -0
- package/src/docPropLiterals.test.ts +902 -0
- package/src/hooks/useHotkeys.doc.mjs +5 -5
- package/src/i18n/InternationalizationContext.ts +39 -0
- package/src/i18n/InternationalizationProvider.doc.mjs +72 -0
- package/src/i18n/InternationalizationProvider.tsx +83 -0
- package/src/i18n/__tests__/e2e-pagination.test.tsx +172 -0
- package/src/i18n/__tests__/e2e-powersearch.test.tsx +130 -0
- package/src/i18n/__tests__/resolve.test.ts +284 -0
- package/src/i18n/index.ts +32 -0
- package/src/i18n/resolve.ts +165 -0
- package/src/i18n/translator.ts +31 -0
- package/src/i18n/types.ts +53 -0
- package/src/i18n/useTranslator.doc.mjs +46 -0
- package/src/i18n/useTranslator.ts +50 -0
- package/src/index.ts +3 -0
- package/dist/NavItem/index.d.ts +0 -9
- package/dist/NavItem/index.d.ts.map +0 -1
- package/dist/NavItem/index.js +0 -10
- package/src/NavItem/index.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -53,233 +53,233 @@ const solidSvgProps = {
|
|
|
53
53
|
};
|
|
54
54
|
export const defaultIcons = {
|
|
55
55
|
/** ✕ — two diagonal lines */
|
|
56
|
-
close: /*#__PURE__*/
|
|
56
|
+
close: /*#__PURE__*/_jsx("svg", {
|
|
57
57
|
...svgProps,
|
|
58
|
-
children: /*#__PURE__*/
|
|
58
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
59
59
|
d: "M6 6l12 12M6 18L18 6"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
60
|
+
})
|
|
61
|
+
}),
|
|
62
62
|
/** ▾ — downward chevron */
|
|
63
|
-
chevronDown: /*#__PURE__*/
|
|
63
|
+
chevronDown: /*#__PURE__*/_jsx("svg", {
|
|
64
64
|
...svgProps,
|
|
65
|
-
children: /*#__PURE__*/
|
|
65
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
66
66
|
d: "M6 9l6 6 6-6"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
69
|
/** ‹ — left chevron */
|
|
70
|
-
chevronLeft: /*#__PURE__*/
|
|
70
|
+
chevronLeft: /*#__PURE__*/_jsx("svg", {
|
|
71
71
|
...svgProps,
|
|
72
|
-
children: /*#__PURE__*/
|
|
72
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
73
73
|
d: "M15 6l-6 6 6 6"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
74
|
+
})
|
|
75
|
+
}),
|
|
76
76
|
/** › — right chevron */
|
|
77
|
-
chevronRight: /*#__PURE__*/
|
|
77
|
+
chevronRight: /*#__PURE__*/_jsx("svg", {
|
|
78
78
|
...svgProps,
|
|
79
|
-
children: /*#__PURE__*/
|
|
79
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
80
80
|
d: "M9 6l6 6-6 6"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
81
|
+
})
|
|
82
|
+
}),
|
|
83
83
|
/** ✓ — checkmark */
|
|
84
|
-
check: /*#__PURE__*/
|
|
84
|
+
check: /*#__PURE__*/_jsx("svg", {
|
|
85
85
|
...svgProps,
|
|
86
|
-
children: /*#__PURE__*/
|
|
86
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
87
87
|
d: "M5 13l4 4L19 7"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
88
|
+
})
|
|
89
|
+
}),
|
|
90
90
|
/** ✓ in circle — success state (solid fill for status visibility) */
|
|
91
|
-
success: /*#__PURE__*/
|
|
91
|
+
success: /*#__PURE__*/_jsx("svg", {
|
|
92
92
|
...solidSvgProps,
|
|
93
|
-
children: /*#__PURE__*/
|
|
93
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
94
94
|
fillRule: "evenodd",
|
|
95
95
|
clipRule: "evenodd",
|
|
96
96
|
d: "M12 3a9 9 0 100 18 9 9 0 000-18zm4.06 6.56a.75.75 0 00-1.12-1l-3.94 4.4-1.94-1.94a.75.75 0 00-1.06 1.06l2.5 2.5a.75.75 0 001.09-.03l4.47-5z"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
99
|
/** ✕ in circle — error state (solid fill for status visibility) */
|
|
100
|
-
error: /*#__PURE__*/
|
|
100
|
+
error: /*#__PURE__*/_jsx("svg", {
|
|
101
101
|
...solidSvgProps,
|
|
102
|
-
children: /*#__PURE__*/
|
|
102
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
103
103
|
fillRule: "evenodd",
|
|
104
104
|
clipRule: "evenodd",
|
|
105
105
|
d: "M12 3a9 9 0 100 18 9 9 0 000-18zm-2.47 5.47a.75.75 0 00-1.06 1.06L10.94 12l-2.47 2.47a.75.75 0 101.06 1.06L12 13.06l2.47 2.47a.75.75 0 101.06-1.06L13.06 12l2.47-2.47a.75.75 0 00-1.06-1.06L12 10.94l-2.47-2.47z"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
106
|
+
})
|
|
107
|
+
}),
|
|
108
108
|
/** △ with ! — warning (solid fill for status visibility) */
|
|
109
|
-
warning: /*#__PURE__*/
|
|
109
|
+
warning: /*#__PURE__*/_jsx("svg", {
|
|
110
110
|
...solidSvgProps,
|
|
111
|
-
children: /*#__PURE__*/
|
|
111
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
112
112
|
fillRule: "evenodd",
|
|
113
113
|
clipRule: "evenodd",
|
|
114
114
|
d: "M10.29 3.86L2.07 19.05A2 2 0 003.78 22h16.44a2 2 0 001.71-2.95L13.71 3.86a2 2 0 00-3.42 0zM12 9a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 9zm0 9a1 1 0 100-2 1 1 0 000 2z"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
115
|
+
})
|
|
116
|
+
}),
|
|
117
117
|
/** ⓘ — information (solid fill for status visibility) */
|
|
118
|
-
info: /*#__PURE__*/
|
|
118
|
+
info: /*#__PURE__*/_jsx("svg", {
|
|
119
119
|
...solidSvgProps,
|
|
120
|
-
children: /*#__PURE__*/
|
|
120
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
121
121
|
fillRule: "evenodd",
|
|
122
122
|
clipRule: "evenodd",
|
|
123
123
|
d: "M12 3a9 9 0 100 18 9 9 0 000-18zm0 4a1 1 0 100 2 1 1 0 000-2zm-.75 3.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5z"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
124
|
+
})
|
|
125
|
+
}),
|
|
126
126
|
/** 📅 — calendar */
|
|
127
|
-
calendar: /*#__PURE__*/
|
|
127
|
+
calendar: /*#__PURE__*/_jsxs("svg", {
|
|
128
128
|
...svgProps,
|
|
129
|
-
children: [/*#__PURE__*/
|
|
129
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
130
130
|
x: "3",
|
|
131
131
|
y: "4",
|
|
132
132
|
width: "18",
|
|
133
133
|
height: "18",
|
|
134
134
|
rx: "2"
|
|
135
|
-
}
|
|
135
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
136
136
|
d: "M16 2v4M8 2v4M3 10h18"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
137
|
+
})]
|
|
138
|
+
}),
|
|
139
139
|
/** 🕐 — clock */
|
|
140
|
-
clock: /*#__PURE__*/
|
|
140
|
+
clock: /*#__PURE__*/_jsxs("svg", {
|
|
141
141
|
...svgProps,
|
|
142
|
-
children: [/*#__PURE__*/
|
|
142
|
+
children: [/*#__PURE__*/_jsx("circle", {
|
|
143
143
|
cx: "12",
|
|
144
144
|
cy: "12",
|
|
145
145
|
r: "9"
|
|
146
|
-
}
|
|
146
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
147
147
|
d: "M12 7v5l3 3"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
148
|
+
})]
|
|
149
|
+
}),
|
|
150
150
|
/** ↗ — external link arrow */
|
|
151
|
-
externalLink: /*#__PURE__*/
|
|
151
|
+
externalLink: /*#__PURE__*/_jsxs("svg", {
|
|
152
152
|
...svgProps,
|
|
153
|
-
children: [/*#__PURE__*/
|
|
153
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
154
154
|
d: "M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"
|
|
155
|
-
}
|
|
155
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
156
156
|
d: "M15 3h6v6"
|
|
157
|
-
}
|
|
157
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
158
158
|
d: "M10 14L21 3"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
159
|
+
})]
|
|
160
|
+
}),
|
|
161
161
|
/** ☰ — hamburger menu (three horizontal lines) */
|
|
162
|
-
menu: /*#__PURE__*/
|
|
162
|
+
menu: /*#__PURE__*/_jsx("svg", {
|
|
163
163
|
...svgProps,
|
|
164
164
|
strokeWidth: 2,
|
|
165
|
-
children: /*#__PURE__*/
|
|
165
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
166
166
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
167
|
+
})
|
|
168
|
+
}),
|
|
169
169
|
/** ⋯ — three horizontal dots (more/overflow) */
|
|
170
|
-
moreHorizontal: /*#__PURE__*/
|
|
170
|
+
moreHorizontal: /*#__PURE__*/_jsxs("svg", {
|
|
171
171
|
...solidSvgProps,
|
|
172
|
-
children: [/*#__PURE__*/
|
|
172
|
+
children: [/*#__PURE__*/_jsx("circle", {
|
|
173
173
|
cx: "5",
|
|
174
174
|
cy: "12",
|
|
175
175
|
r: "1.5"
|
|
176
|
-
}
|
|
176
|
+
}), /*#__PURE__*/_jsx("circle", {
|
|
177
177
|
cx: "12",
|
|
178
178
|
cy: "12",
|
|
179
179
|
r: "1.5"
|
|
180
|
-
}
|
|
180
|
+
}), /*#__PURE__*/_jsx("circle", {
|
|
181
181
|
cx: "19",
|
|
182
182
|
cy: "12",
|
|
183
183
|
r: "1.5"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
184
|
+
})]
|
|
185
|
+
}),
|
|
186
186
|
/** 🔍 — magnifying glass (search) */
|
|
187
|
-
search: /*#__PURE__*/
|
|
187
|
+
search: /*#__PURE__*/_jsxs("svg", {
|
|
188
188
|
...svgProps,
|
|
189
|
-
children: [/*#__PURE__*/
|
|
189
|
+
children: [/*#__PURE__*/_jsx("circle", {
|
|
190
190
|
cx: "11",
|
|
191
191
|
cy: "11",
|
|
192
192
|
r: "8"
|
|
193
|
-
}
|
|
193
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
194
194
|
d: "M21 21l-4.35-4.35"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
195
|
+
})]
|
|
196
|
+
}),
|
|
197
197
|
/** ↑ — arrow up (sort ascending) */
|
|
198
|
-
arrowUp: /*#__PURE__*/
|
|
198
|
+
arrowUp: /*#__PURE__*/_jsx("svg", {
|
|
199
199
|
...svgProps,
|
|
200
|
-
children: /*#__PURE__*/
|
|
200
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
201
201
|
d: "M12 19V5m0 0l-7 7m7-7l7 7"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
202
|
+
})
|
|
203
|
+
}),
|
|
204
204
|
/** ↓ — arrow down (sort descending) */
|
|
205
|
-
arrowDown: /*#__PURE__*/
|
|
205
|
+
arrowDown: /*#__PURE__*/_jsx("svg", {
|
|
206
206
|
...svgProps,
|
|
207
|
-
children: /*#__PURE__*/
|
|
207
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
208
208
|
d: "M12 5v14m0 0l7-7m-7 7l-7-7"
|
|
209
|
-
}
|
|
210
|
-
}
|
|
209
|
+
})
|
|
210
|
+
}),
|
|
211
211
|
/** ↕ — arrows up-down (unsorted / sortable indicator) */
|
|
212
|
-
arrowsUpDown: /*#__PURE__*/
|
|
212
|
+
arrowsUpDown: /*#__PURE__*/_jsx("svg", {
|
|
213
213
|
...svgProps,
|
|
214
|
-
children: /*#__PURE__*/
|
|
214
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
215
215
|
d: "M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
216
|
+
})
|
|
217
|
+
}),
|
|
218
218
|
/** 🔽 — funnel (filter indicator) */
|
|
219
|
-
funnel: /*#__PURE__*/
|
|
219
|
+
funnel: /*#__PURE__*/_jsx("svg", {
|
|
220
220
|
...svgProps,
|
|
221
|
-
children: /*#__PURE__*/
|
|
221
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
222
222
|
d: "M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
223
|
+
})
|
|
224
|
+
}),
|
|
225
225
|
/** 👁🗨 — eye with slash (hidden column) */
|
|
226
|
-
eyeSlash: /*#__PURE__*/
|
|
226
|
+
eyeSlash: /*#__PURE__*/_jsx("svg", {
|
|
227
227
|
...svgProps,
|
|
228
|
-
children: /*#__PURE__*/
|
|
228
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
229
229
|
d: "M3.98 8.223A10.477 10.477 0 001.934 12c1.292 4.338 5.31 7.5 10.066 7.5.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
230
|
+
})
|
|
231
|
+
}),
|
|
232
232
|
/** ☐☐ — view columns (column settings) */
|
|
233
|
-
viewColumns: /*#__PURE__*/
|
|
233
|
+
viewColumns: /*#__PURE__*/_jsx("svg", {
|
|
234
234
|
...svgProps,
|
|
235
|
-
children: /*#__PURE__*/
|
|
235
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
236
236
|
d: "M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125z"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
237
|
+
})
|
|
238
|
+
}),
|
|
239
239
|
/** clipboard — copy to clipboard */
|
|
240
|
-
copy: /*#__PURE__*/
|
|
240
|
+
copy: /*#__PURE__*/_jsxs("svg", {
|
|
241
241
|
...svgProps,
|
|
242
|
-
children: [/*#__PURE__*/
|
|
242
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
243
243
|
d: "M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z"
|
|
244
|
-
}
|
|
244
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
245
245
|
d: "M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"
|
|
246
|
-
}
|
|
247
|
-
}
|
|
246
|
+
})]
|
|
247
|
+
}),
|
|
248
248
|
/** ✓✓ — double checkmark (delivered/read) */
|
|
249
|
-
checkDouble: /*#__PURE__*/
|
|
249
|
+
checkDouble: /*#__PURE__*/_jsxs("svg", {
|
|
250
250
|
...svgProps,
|
|
251
|
-
children: [/*#__PURE__*/
|
|
251
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
252
252
|
d: "M2 13l4 4L14 7"
|
|
253
|
-
}
|
|
253
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
254
254
|
d: "M9 13l4 4L21 7"
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
wrench: /*#__PURE__*/
|
|
255
|
+
})]
|
|
256
|
+
}),
|
|
257
|
+
wrench: /*#__PURE__*/_jsx("svg", {
|
|
258
258
|
...svgProps,
|
|
259
|
-
children: /*#__PURE__*/
|
|
259
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
260
260
|
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
261
|
+
})
|
|
262
|
+
}),
|
|
263
263
|
/** ■ — stop (rounded square, solid fill for media control) */
|
|
264
|
-
stop: /*#__PURE__*/
|
|
264
|
+
stop: /*#__PURE__*/_jsx("svg", {
|
|
265
265
|
...solidSvgProps,
|
|
266
|
-
children: /*#__PURE__*/
|
|
266
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
267
267
|
x: "6",
|
|
268
268
|
y: "6",
|
|
269
269
|
width: "12",
|
|
270
270
|
height: "12",
|
|
271
271
|
rx: "2"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
272
|
+
})
|
|
273
|
+
}),
|
|
274
274
|
/** 🎤 — microphone (voice input / dictation) */
|
|
275
|
-
microphone: /*#__PURE__*/
|
|
275
|
+
microphone: /*#__PURE__*/_jsxs("svg", {
|
|
276
276
|
...svgProps,
|
|
277
|
-
children: [/*#__PURE__*/
|
|
277
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
278
278
|
d: "M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"
|
|
279
|
-
}
|
|
279
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
280
280
|
d: "M19 10v1a7 7 0 01-14 0v-1"
|
|
281
|
-
}
|
|
281
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
282
282
|
d: "M12 18v4m-4 0h8"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
283
|
+
})]
|
|
284
|
+
})
|
|
285
285
|
};
|
|
@@ -23,7 +23,7 @@ import { Button } from "../Button/Button.js";
|
|
|
23
23
|
* Omits `isIconOnly` (always true), `children` and `endContent` (not applicable
|
|
24
24
|
* for icon-only buttons). `icon` is required.
|
|
25
25
|
*/
|
|
26
|
-
import {
|
|
26
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
/**
|
|
28
28
|
* An icon-only button — a thin wrapper around Button with `isIconOnly`
|
|
29
29
|
* always set to true.
|
|
@@ -42,10 +42,10 @@ export function IconButton({
|
|
|
42
42
|
icon,
|
|
43
43
|
...props
|
|
44
44
|
}) {
|
|
45
|
-
return /*#__PURE__*/
|
|
45
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
46
46
|
...props,
|
|
47
47
|
icon: icon,
|
|
48
48
|
isIconOnly: true
|
|
49
|
-
}
|
|
49
|
+
});
|
|
50
50
|
}
|
|
51
51
|
IconButton.displayName = 'IconButton';
|
|
@@ -29,7 +29,7 @@ import { SizeProvider, useSize } from "../SizeContext/SizeContext.js";
|
|
|
29
29
|
import { mergeProps } from "../utils/index.js";
|
|
30
30
|
import { InputGroupContext } from "./InputGroupContext.js";
|
|
31
31
|
import { themeProps } from "../utils/themeProps.js";
|
|
32
|
-
import {
|
|
32
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
33
|
const styles = {
|
|
34
34
|
group: {
|
|
35
35
|
k1xSpc: "x3nfvp2",
|
|
@@ -98,11 +98,11 @@ export function InputGroup({
|
|
|
98
98
|
labelID,
|
|
99
99
|
describedByIDs
|
|
100
100
|
}), [labelID, describedByIDs]);
|
|
101
|
-
return /*#__PURE__*/
|
|
101
|
+
return /*#__PURE__*/_jsx(InputGroupContext, {
|
|
102
102
|
value: contextValue,
|
|
103
|
-
children: /*#__PURE__*/
|
|
103
|
+
children: /*#__PURE__*/_jsx(SizeProvider, {
|
|
104
104
|
value: size,
|
|
105
|
-
children: /*#__PURE__*/
|
|
105
|
+
children: /*#__PURE__*/_jsx(Field, {
|
|
106
106
|
label: label,
|
|
107
107
|
isLabelHidden: isLabelHidden,
|
|
108
108
|
description: description,
|
|
@@ -120,7 +120,7 @@ export function InputGroup({
|
|
|
120
120
|
} : undefined,
|
|
121
121
|
statusVariant: "detached",
|
|
122
122
|
labelTooltip: labelTooltip,
|
|
123
|
-
children: /*#__PURE__*/
|
|
123
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
124
124
|
ref: ref,
|
|
125
125
|
"data-testid": testId,
|
|
126
126
|
...rest,
|
|
@@ -132,9 +132,9 @@ export function InputGroup({
|
|
|
132
132
|
status: status?.type ?? null
|
|
133
133
|
}), stylex.props(styles.group, sizeStyles[size], isDisabled && styles.disabled, xstyle), className, style),
|
|
134
134
|
children: children
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
139
|
}
|
|
140
140
|
InputGroup.displayName = 'InputGroup';
|
|
@@ -19,7 +19,7 @@ import "../theme/tokens.stylex.js";
|
|
|
19
19
|
import { colorVars, spacingVars, radiusVars, typographyVars, typeScaleVars, borderVars } from "../theme/tokens.stylex.js";
|
|
20
20
|
import { mergeProps } from "../utils/index.js";
|
|
21
21
|
import { themeProps } from "../utils/themeProps.js";
|
|
22
|
-
import {
|
|
22
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
23
|
const styles = {
|
|
24
24
|
text: {
|
|
25
25
|
k1xSpc: "x78zum5",
|
|
@@ -62,11 +62,11 @@ export function InputGroupText({
|
|
|
62
62
|
style,
|
|
63
63
|
...rest
|
|
64
64
|
}) {
|
|
65
|
-
return /*#__PURE__*/
|
|
65
|
+
return /*#__PURE__*/_jsx("div", {
|
|
66
66
|
ref: ref,
|
|
67
67
|
...rest,
|
|
68
68
|
...mergeProps(themeProps('input-group-text'), stylex.props(styles.text, xstyle), className, style),
|
|
69
69
|
children: children
|
|
70
|
-
}
|
|
70
|
+
});
|
|
71
71
|
}
|
|
72
72
|
InputGroupText.displayName = 'InputGroupText';
|
package/dist/Item/Item.js
CHANGED
|
@@ -26,7 +26,7 @@ import { themeProps } from "../utils/themeProps.js";
|
|
|
26
26
|
// =============================================================================
|
|
27
27
|
// Types
|
|
28
28
|
// =============================================================================
|
|
29
|
-
import {
|
|
29
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
30
|
// =============================================================================
|
|
31
31
|
// Styles
|
|
32
32
|
// =============================================================================
|
|
@@ -193,15 +193,15 @@ export function Item({
|
|
|
193
193
|
const isStringDescription = typeof description === 'string';
|
|
194
194
|
const labelTruncateStyle = labelLines != null ? labelLines === 1 ? styles.labelSingleTruncate : styles.labelMultiTruncate : isStringLabel ? styles.labelSingleTruncate : null;
|
|
195
195
|
const descriptionTruncateStyle = descriptionLines != null ? descriptionLines === 1 ? styles.descriptionSingleTruncate : styles.descriptionMultiTruncate : isStringDescription ? styles.descriptionSingleTruncate : null;
|
|
196
|
-
const labelAndDescription = /*#__PURE__*/
|
|
197
|
-
children: [/*#__PURE__*/
|
|
196
|
+
const labelAndDescription = /*#__PURE__*/_jsxs(_Fragment, {
|
|
197
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
198
198
|
...stylex.props(styles.label, labelTruncateStyle, labelLines != null && labelLines > 1 && dynamicStyles.lineClamp(labelLines)),
|
|
199
199
|
children: label
|
|
200
|
-
}
|
|
200
|
+
}), description != null && /*#__PURE__*/_jsx("span", {
|
|
201
201
|
...stylex.props(styles.description, descriptionTruncateStyle, descriptionLines != null && descriptionLines > 1 && dynamicStyles.lineClamp(descriptionLines)),
|
|
202
202
|
children: description
|
|
203
|
-
}
|
|
204
|
-
}
|
|
203
|
+
})]
|
|
204
|
+
});
|
|
205
205
|
const handleContainerClick = e => {
|
|
206
206
|
if (isDisabled) {
|
|
207
207
|
return;
|
|
@@ -212,13 +212,13 @@ export function Item({
|
|
|
212
212
|
}
|
|
213
213
|
onClick?.(e);
|
|
214
214
|
};
|
|
215
|
-
const innerContent = /*#__PURE__*/
|
|
216
|
-
children: [marker, startContent != null && /*#__PURE__*/
|
|
215
|
+
const innerContent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
216
|
+
children: [marker, startContent != null && /*#__PURE__*/_jsx("span", {
|
|
217
217
|
...{
|
|
218
218
|
className: "x3psx0u x78zum5"
|
|
219
219
|
},
|
|
220
220
|
children: startContent
|
|
221
|
-
}
|
|
221
|
+
}), hasParentRole ? /*#__PURE__*/_jsx("span", {
|
|
222
222
|
...{
|
|
223
223
|
0: {
|
|
224
224
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"
|
|
@@ -228,7 +228,7 @@ export function Item({
|
|
|
228
228
|
}
|
|
229
229
|
}[!!isDisabled << 0],
|
|
230
230
|
children: labelAndDescription
|
|
231
|
-
}
|
|
231
|
+
}) : href != null ? /*#__PURE__*/_jsx(LinkComponent, {
|
|
232
232
|
href: href,
|
|
233
233
|
target: target,
|
|
234
234
|
rel: rel,
|
|
@@ -243,7 +243,7 @@ export function Item({
|
|
|
243
243
|
}
|
|
244
244
|
}[!!isDisabled << 0],
|
|
245
245
|
children: labelAndDescription
|
|
246
|
-
}
|
|
246
|
+
}) : onClick != null ? /*#__PURE__*/_jsx("button", {
|
|
247
247
|
type: "button",
|
|
248
248
|
onClick: onClick,
|
|
249
249
|
disabled: isDisabled,
|
|
@@ -256,7 +256,7 @@ export function Item({
|
|
|
256
256
|
}
|
|
257
257
|
}[!!isDisabled << 0],
|
|
258
258
|
children: labelAndDescription
|
|
259
|
-
}
|
|
259
|
+
}) : /*#__PURE__*/_jsx("span", {
|
|
260
260
|
...{
|
|
261
261
|
0: {
|
|
262
262
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"
|
|
@@ -266,7 +266,7 @@ export function Item({
|
|
|
266
266
|
}
|
|
267
267
|
}[!!isDisabled << 0],
|
|
268
268
|
children: labelAndDescription
|
|
269
|
-
}
|
|
269
|
+
}), endContent != null && /*#__PURE__*/_jsx("span", {
|
|
270
270
|
...{
|
|
271
271
|
0: {
|
|
272
272
|
className: "x3psx0u x78zum5 xvc5jky"
|
|
@@ -276,9 +276,9 @@ export function Item({
|
|
|
276
276
|
}
|
|
277
277
|
}[!!isDisabled << 0],
|
|
278
278
|
children: endContent
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return /*#__PURE__*/
|
|
279
|
+
})]
|
|
280
|
+
});
|
|
281
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
282
282
|
ref: ref,
|
|
283
283
|
...restProps,
|
|
284
284
|
"aria-selected": isSelected || undefined,
|
|
@@ -290,6 +290,6 @@ export function Item({
|
|
|
290
290
|
role: role,
|
|
291
291
|
onClick: hasParentRole ? onClick : isInteractive ? handleContainerClick : undefined,
|
|
292
292
|
children: innerContent
|
|
293
|
-
}
|
|
293
|
+
});
|
|
294
294
|
}
|
|
295
295
|
Item.displayName = 'Item';
|
package/dist/Kbd/Kbd.js
CHANGED
|
@@ -18,7 +18,7 @@ import { mergeProps } from "../utils/index.js";
|
|
|
18
18
|
import { themeProps } from "../utils/themeProps.js";
|
|
19
19
|
import "../theme/tokens.stylex.js";
|
|
20
20
|
import { colorVars, spacingVars, radiusVars, typographyVars, fontWeightVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
21
|
-
import {
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
22
|
const styles = {
|
|
23
23
|
wrapper: {
|
|
24
24
|
k1xSpc: "x3nfvp2",
|
|
@@ -145,19 +145,19 @@ export function Kbd({
|
|
|
145
145
|
// Screen-reader name: the joined spoken labels (e.g. "Command + K"), since
|
|
146
146
|
// the visual glyphs below are announced meaninglessly by assistive tech.
|
|
147
147
|
const accessibleName = parts.map(key => getKeyLabel(key, isMac)).join(' + ');
|
|
148
|
-
return /*#__PURE__*/
|
|
148
|
+
return /*#__PURE__*/_jsx("span", {
|
|
149
149
|
ref: ref,
|
|
150
150
|
role: "img",
|
|
151
151
|
"aria-label": accessibleName,
|
|
152
152
|
...rest,
|
|
153
153
|
...mergeProps(themeProps('kbd'), stylex.props(styles.wrapper, xstyle), className, style),
|
|
154
|
-
children: parts.map(key => /*#__PURE__*/
|
|
154
|
+
children: parts.map(key => /*#__PURE__*/_jsx("kbd", {
|
|
155
155
|
"aria-hidden": "true",
|
|
156
156
|
...{
|
|
157
157
|
className: "x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle xv1l7n4 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o"
|
|
158
158
|
},
|
|
159
159
|
children: getKeyDisplay(key, isMac)
|
|
160
|
-
}, key
|
|
161
|
-
}
|
|
160
|
+
}, key))
|
|
161
|
+
});
|
|
162
162
|
}
|
|
163
163
|
Kbd.displayName = 'Kbd';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { LayerContext, useLayerContext } from "./LayerContext.js";
|
|
7
7
|
import { ToastViewport } from "../Toast/ToastViewport.js";
|
|
8
|
-
import { Fragment as _Fragment,
|
|
8
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/**
|
|
10
10
|
* App-level provider for layer systems (toast, sheet, imperative modals).
|
|
11
11
|
*
|
|
@@ -32,18 +32,18 @@ export function LayerProvider({
|
|
|
32
32
|
|
|
33
33
|
// Nested provider — pass through
|
|
34
34
|
if (existingContext) {
|
|
35
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
36
36
|
children: children
|
|
37
|
-
}
|
|
37
|
+
});
|
|
38
38
|
}
|
|
39
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/_jsx(LayerContext, {
|
|
40
40
|
value: contextValue,
|
|
41
|
-
children: /*#__PURE__*/
|
|
41
|
+
children: /*#__PURE__*/_jsx(ToastViewport, {
|
|
42
42
|
position: toastConfig.position,
|
|
43
43
|
maxVisible: toastConfig.maxVisible,
|
|
44
44
|
inset: toastConfig.inset,
|
|
45
45
|
children: children
|
|
46
|
-
}
|
|
47
|
-
}
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
48
|
}
|
|
49
49
|
LayerProvider.displayName = 'LayerProvider';
|
package/dist/Layer/useLayer.js
CHANGED
|
@@ -18,7 +18,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
18
18
|
import { addAnchorName, removeAnchorName } from "./anchorName.js";
|
|
19
19
|
import "../theme/tokens.stylex.js";
|
|
20
20
|
import { typographyVars } from "../theme/tokens.stylex.js";
|
|
21
|
-
import {
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
22
|
const styles = {
|
|
23
23
|
base: {
|
|
24
24
|
keoZOQ: "xdj266r",
|
|
@@ -289,7 +289,7 @@ export function useLayer(options) {
|
|
|
289
289
|
// Render as the requested tag. A `span` keeps the layer phrasing content
|
|
290
290
|
// so it is valid (and stays put on hydration) inside inline contexts like
|
|
291
291
|
// a `<p>`; `div` remains the default for block layers.
|
|
292
|
-
return /*#__PURE__*/
|
|
292
|
+
return /*#__PURE__*/_jsx(Container, {
|
|
293
293
|
ref: popoverRefCallback,
|
|
294
294
|
id: id,
|
|
295
295
|
role: role,
|
|
@@ -303,7 +303,7 @@ export function useLayer(options) {
|
|
|
303
303
|
onMouseEnter: onMouseEnter,
|
|
304
304
|
onMouseLeave: onMouseLeave,
|
|
305
305
|
children: children
|
|
306
|
-
}
|
|
306
|
+
});
|
|
307
307
|
}, [anchorId, id, lightDismiss, popoverRefCallback]);
|
|
308
308
|
|
|
309
309
|
// Render function for fixed mode
|
|
@@ -323,7 +323,7 @@ export function useLayer(options) {
|
|
|
323
323
|
};
|
|
324
324
|
const stylexResult = stylex.props(styles.base, styles.fixed, xstyle);
|
|
325
325
|
const combinedClassName = extraClassName ? `${extraClassName} ${stylexResult.className ?? ''}` : stylexResult.className;
|
|
326
|
-
return /*#__PURE__*/
|
|
326
|
+
return /*#__PURE__*/_jsx("div", {
|
|
327
327
|
ref: popoverRefCallback,
|
|
328
328
|
id: id,
|
|
329
329
|
popover: lightDismiss ? 'auto' : 'manual',
|
|
@@ -334,7 +334,7 @@ export function useLayer(options) {
|
|
|
334
334
|
...extraStyle
|
|
335
335
|
},
|
|
336
336
|
children: children
|
|
337
|
-
}
|
|
337
|
+
});
|
|
338
338
|
}, [popoverRefCallback, id, lightDismiss]);
|
|
339
339
|
if (mode === 'context') {
|
|
340
340
|
return {
|