@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
|
@@ -23,7 +23,7 @@ import "../theme/tokens.stylex.js";
|
|
|
23
23
|
import { colorVars, radiusVars, spacingVars, typographyVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
24
24
|
import { useEntryAnimation } from "../hooks/useEntryAnimation.js";
|
|
25
25
|
import { themeProps } from "../utils/themeProps.js";
|
|
26
|
-
import {
|
|
26
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
const styles = {
|
|
28
28
|
base: {
|
|
29
29
|
kMv6JI: "x9ynric",
|
|
@@ -112,7 +112,7 @@ export function FieldStatus({
|
|
|
112
112
|
...rest
|
|
113
113
|
}) {
|
|
114
114
|
const entryStyle = useEntryAnimation('slideDown');
|
|
115
|
-
return /*#__PURE__*/
|
|
115
|
+
return /*#__PURE__*/_jsx("div", {
|
|
116
116
|
ref: ref,
|
|
117
117
|
id: id,
|
|
118
118
|
role: type === 'error' ? 'alert' : 'status',
|
|
@@ -123,6 +123,6 @@ export function FieldStatus({
|
|
|
123
123
|
variant
|
|
124
124
|
}), stylex.props(styles.base, entryStyle, variant === 'attached' ? styles.attached : styles.detached, colorStyles[type], xstyle), className, style),
|
|
125
125
|
children: message
|
|
126
|
-
}
|
|
126
|
+
});
|
|
127
127
|
}
|
|
128
128
|
FieldStatus.displayName = 'FieldStatus';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../src/FileInput/FileInput.tsx"],"names":[],"mappings":"AAsCA,OAAO,EAGL,KAAK,WAAW,EAEjB,MAAM,UAAU,CAAC;AAMlB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,eAAe,IAAI,mBAAmB,GACvC,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../src/FileInput/FileInput.tsx"],"names":[],"mappings":"AAsCA,OAAO,EAGL,KAAK,WAAW,EAEjB,MAAM,UAAU,CAAC;AAMlB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,eAAe,IAAI,mBAAmB,GACvC,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AA0N9C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,SAAS,EACT,UAAU,GAAG,cAAc,GAAG,OAAO,CACtC;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,aAAqB,EACrB,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAkB,EAClB,OAAO,EACP,QAAQ,EACR,UAAkB,EAClB,eAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,MAAM,EAAE,UAAU,EAClB,WAAW,EACX,WAAW,EACX,IAAc,EACd,UAAkB,EAClB,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,cAAc,+BA6WhB;yBAvYe,SAAS"}
|
|
@@ -26,7 +26,8 @@ import { useAnnounce } from "../hooks/useAnnounce.js";
|
|
|
26
26
|
import { useTooltip } from "../Tooltip/index.js";
|
|
27
27
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
28
28
|
import { themeProps } from "../utils/themeProps.js";
|
|
29
|
-
import {
|
|
29
|
+
import { useTranslator } from "../i18n/index.js";
|
|
30
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
31
|
function formatFileSize(bytes) {
|
|
31
32
|
if (bytes < 1024) {
|
|
32
33
|
return `${bytes} B`;
|
|
@@ -193,6 +194,7 @@ export function FileInput({
|
|
|
193
194
|
ref,
|
|
194
195
|
...rest
|
|
195
196
|
}) {
|
|
197
|
+
const t = useTranslator();
|
|
196
198
|
const id = useId();
|
|
197
199
|
const descriptionID = useId();
|
|
198
200
|
const statusMessageID = useId();
|
|
@@ -329,50 +331,50 @@ export function FileInput({
|
|
|
329
331
|
const fileNames = hasFiles ? Array.isArray(value) ? value.map(f => f.name).join(', ') : value?.name ?? '' : null;
|
|
330
332
|
const renderDropzoneContent = () => {
|
|
331
333
|
if (isLoading) {
|
|
332
|
-
return /*#__PURE__*/
|
|
334
|
+
return /*#__PURE__*/_jsx(Spinner, {
|
|
333
335
|
size: "md"
|
|
334
|
-
}
|
|
336
|
+
});
|
|
335
337
|
}
|
|
336
338
|
if (hasFiles) {
|
|
337
|
-
return /*#__PURE__*/
|
|
339
|
+
return /*#__PURE__*/_jsx("div", {
|
|
338
340
|
...{
|
|
339
341
|
className: "x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xb3r6kr xlyipyv x98rzlu xeuugli x2b8uid xeaf4i8"
|
|
340
342
|
},
|
|
341
343
|
children: fileNames
|
|
342
|
-
}
|
|
344
|
+
});
|
|
343
345
|
}
|
|
344
|
-
return /*#__PURE__*/
|
|
345
|
-
children: [/*#__PURE__*/
|
|
346
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
347
|
+
children: [/*#__PURE__*/_jsx(Icon, {
|
|
346
348
|
icon: "arrowUp",
|
|
347
349
|
size: "md",
|
|
348
350
|
color: "secondary"
|
|
349
|
-
}
|
|
351
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
350
352
|
...{
|
|
351
353
|
className: "x9ynric xjm74w1 x6pjikd xw6l6zx xv1l7n4 x2b8uid x87ps6o"
|
|
352
354
|
},
|
|
353
355
|
children: isDragOver ? 'Drop files here' : displayPlaceholder
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
+
})]
|
|
357
|
+
});
|
|
356
358
|
};
|
|
357
359
|
const renderCompactContent = () => {
|
|
358
360
|
if (isLoading) {
|
|
359
|
-
return /*#__PURE__*/
|
|
360
|
-
children: [/*#__PURE__*/
|
|
361
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
362
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
361
363
|
...{
|
|
362
364
|
className: "x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xb3r6kr xlyipyv xuxw1ft x98rzlu xeuugli"
|
|
363
365
|
},
|
|
364
366
|
children: fileNames ?? displayPlaceholder
|
|
365
|
-
}
|
|
367
|
+
}), /*#__PURE__*/_jsx(Spinner, {
|
|
366
368
|
size: "sm"
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
+
})]
|
|
370
|
+
});
|
|
369
371
|
}
|
|
370
|
-
return /*#__PURE__*/
|
|
371
|
-
children: [/*#__PURE__*/
|
|
372
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
373
|
+
children: [/*#__PURE__*/_jsx(Icon, {
|
|
372
374
|
icon: "arrowUp",
|
|
373
375
|
size: "sm",
|
|
374
376
|
color: "secondary"
|
|
375
|
-
}
|
|
377
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
376
378
|
...{
|
|
377
379
|
0: {
|
|
378
380
|
className: "x9ynric xjm74w1 x6pjikd xw6l6zx xv1l7n4 x87ps6o x1yc453h x98rzlu xeuugli"
|
|
@@ -388,12 +390,12 @@ export function FileInput({
|
|
|
388
390
|
}
|
|
389
391
|
}[!!hasFiles << 1 | !!hasFiles << 0],
|
|
390
392
|
children: fileNames ?? displayPlaceholder
|
|
391
|
-
}
|
|
393
|
+
}), status && /*#__PURE__*/_jsx(Icon, {
|
|
392
394
|
icon: statusIconMap[status.type],
|
|
393
395
|
size: "md",
|
|
394
396
|
color: statusIconColorMap[status.type]
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
+
})]
|
|
398
|
+
});
|
|
397
399
|
};
|
|
398
400
|
const isDropzone = mode === 'dropzone';
|
|
399
401
|
const dragDropProps = isDropzone ? {
|
|
@@ -402,7 +404,7 @@ export function FileInput({
|
|
|
402
404
|
onDragLeave: handleDragLeave,
|
|
403
405
|
onDrop: handleDrop
|
|
404
406
|
} : {};
|
|
405
|
-
return /*#__PURE__*/
|
|
407
|
+
return /*#__PURE__*/_jsxs(Field, {
|
|
406
408
|
label: label,
|
|
407
409
|
isLabelHidden: isLabelHidden,
|
|
408
410
|
description: description,
|
|
@@ -418,7 +420,7 @@ export function FileInput({
|
|
|
418
420
|
} : undefined,
|
|
419
421
|
labelTooltip: labelTooltip,
|
|
420
422
|
width: width,
|
|
421
|
-
children: [/*#__PURE__*/
|
|
423
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
422
424
|
ref: el => {
|
|
423
425
|
// Anchor + hover/focus listeners for the disabled-message tooltip.
|
|
424
426
|
// Handlers are gated internally by isEnabled, and anchor names
|
|
@@ -448,7 +450,7 @@ export function FileInput({
|
|
|
448
450
|
mode,
|
|
449
451
|
status: status?.type ?? null
|
|
450
452
|
}), stylex.props(isDropzone ? styles.dropzone : styles.compact, isDropzone && !isDisabled && styles.dropzoneHover, isDropzone && isDragOver && styles.dropzoneActive, isDropzone && isDisabled && styles.dropzoneDisabled, !isDropzone && isDisabled && styles.compactDisabled, status && statusBorderStyles[status.type], xstyle), className, style),
|
|
451
|
-
children: [/*#__PURE__*/
|
|
453
|
+
children: [/*#__PURE__*/_jsx("input", {
|
|
452
454
|
...rest,
|
|
453
455
|
ref: mergeRefs(ref, inputRef),
|
|
454
456
|
id: id,
|
|
@@ -465,11 +467,13 @@ export function FileInput({
|
|
|
465
467
|
...{
|
|
466
468
|
className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km"
|
|
467
469
|
}
|
|
468
|
-
}
|
|
469
|
-
label:
|
|
470
|
+
}), isDropzone ? renderDropzoneContent() : renderCompactContent(), hasFiles && !isDisabled && !isLoading && /*#__PURE__*/_jsx(InputClearButton, {
|
|
471
|
+
label: t('@astryx.fileInput.clearLabel', {
|
|
472
|
+
label
|
|
473
|
+
}),
|
|
470
474
|
onClick: handleClear
|
|
471
|
-
}
|
|
472
|
-
}
|
|
475
|
+
})]
|
|
476
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
473
477
|
id: liveRegionID,
|
|
474
478
|
role: "status",
|
|
475
479
|
"aria-live": "polite",
|
|
@@ -477,7 +481,7 @@ export function FileInput({
|
|
|
477
481
|
className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km"
|
|
478
482
|
},
|
|
479
483
|
children: validationError
|
|
480
|
-
}
|
|
481
|
-
}
|
|
484
|
+
}), showsDisabledMessage && disabledMessageTooltip.renderTooltip(disabledMessage)]
|
|
485
|
+
});
|
|
482
486
|
}
|
|
483
487
|
FileInput.displayName = 'FileInput';
|
|
@@ -25,7 +25,7 @@ import { themeProps } from "../utils/themeProps.js";
|
|
|
25
25
|
// =============================================================================
|
|
26
26
|
// Responsive breakpoint for horizontal-labels collapse
|
|
27
27
|
// =============================================================================
|
|
28
|
-
import {
|
|
28
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
29
|
const HORIZONTAL_LABELS_COLLAPSE = '@media (max-width: 480px)';
|
|
30
30
|
|
|
31
31
|
// =============================================================================
|
|
@@ -95,16 +95,16 @@ export function FormLayout({
|
|
|
95
95
|
const contextValue = useMemo(() => ({
|
|
96
96
|
direction
|
|
97
97
|
}), [direction]);
|
|
98
|
-
return /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/_jsx(FormLayoutContext, {
|
|
99
99
|
value: contextValue,
|
|
100
|
-
children: /*#__PURE__*/
|
|
100
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
101
101
|
ref: ref,
|
|
102
102
|
...mergeProps(themeProps('form-layout', {
|
|
103
103
|
direction
|
|
104
104
|
}), stylex.props(styles.base, direction === 'horizontal' && styles.horizontal, direction === 'horizontal-labels' && styles.horizontalLabels, xstyle), className, style),
|
|
105
105
|
...props,
|
|
106
106
|
children: children
|
|
107
|
-
}
|
|
108
|
-
}
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
109
|
}
|
|
110
110
|
FormLayout.displayName = 'FormLayout';
|
package/dist/Grid/Grid.js
CHANGED
|
@@ -37,7 +37,7 @@ import { themeProps } from "../utils/themeProps.js";
|
|
|
37
37
|
* layout collapsing to a single column on mobile stretches to full width
|
|
38
38
|
* (no dead space on the right).
|
|
39
39
|
*/
|
|
40
|
-
import {
|
|
40
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
41
41
|
const baseStyles = {
|
|
42
42
|
grid: {
|
|
43
43
|
k1xSpc: "xrvj5dj",
|
|
@@ -370,7 +370,7 @@ export function Grid({
|
|
|
370
370
|
|
|
371
371
|
// For themeProps, extract numeric columns value for variant tracking
|
|
372
372
|
const columnsVariant = typeof columns === 'number' ? columns : typeof columns === 'object' ? undefined : undefined;
|
|
373
|
-
return /*#__PURE__*/
|
|
373
|
+
return /*#__PURE__*/_jsx("div", {
|
|
374
374
|
ref: ref,
|
|
375
375
|
...mergeProps(themeProps('grid', {
|
|
376
376
|
columns: columnsVariant,
|
|
@@ -383,6 +383,6 @@ export function Grid({
|
|
|
383
383
|
}),
|
|
384
384
|
...props,
|
|
385
385
|
children: children
|
|
386
|
-
}
|
|
386
|
+
});
|
|
387
387
|
}
|
|
388
388
|
Grid.displayName = 'Grid';
|
package/dist/Grid/GridSpan.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import * as stylex from '@stylexjs/stylex';
|
|
17
17
|
import { mergeProps } from "../utils/index.js";
|
|
18
18
|
import { themeProps } from "../utils/themeProps.js";
|
|
19
|
-
import {
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
const baseStyles = {
|
|
21
21
|
span: {
|
|
22
22
|
k7Eaqz: "xeuugli",
|
|
@@ -59,7 +59,7 @@ export function GridSpan({
|
|
|
59
59
|
gridRow: `span ${rows}`
|
|
60
60
|
})
|
|
61
61
|
};
|
|
62
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/_jsx("div", {
|
|
63
63
|
ref: ref,
|
|
64
64
|
...mergeProps(themeProps('grid-span'), stylex.props(baseStyles.span, xstyle), className, {
|
|
65
65
|
...style,
|
|
@@ -67,6 +67,6 @@ export function GridSpan({
|
|
|
67
67
|
}),
|
|
68
68
|
...props,
|
|
69
69
|
children: children
|
|
70
|
-
}
|
|
70
|
+
});
|
|
71
71
|
}
|
|
72
72
|
GridSpan.displayName = 'GridSpan';
|
package/dist/HStack/HStack.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { Stack } from "../Stack/Stack.js";
|
|
16
|
-
import {
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
/**
|
|
18
18
|
* Horizontal stack component for arranging items left-to-right.
|
|
19
19
|
* Convenience wrapper around `Stack` with `direction="horizontal"`.
|
|
@@ -34,12 +34,12 @@ export function HStack({
|
|
|
34
34
|
vAlign,
|
|
35
35
|
...props
|
|
36
36
|
}) {
|
|
37
|
-
return /*#__PURE__*/
|
|
37
|
+
return /*#__PURE__*/_jsx(Stack, {
|
|
38
38
|
...props,
|
|
39
39
|
direction: "horizontal",
|
|
40
40
|
hAlign: hAlign ?? justify,
|
|
41
41
|
vAlign: vAlign ?? align,
|
|
42
42
|
ref: ref
|
|
43
|
-
}
|
|
43
|
+
});
|
|
44
44
|
}
|
|
45
45
|
HStack.displayName = 'HStack';
|
package/dist/Heading/Heading.js
CHANGED
|
@@ -22,7 +22,7 @@ import { colorStyles, sizeByLevelStyles, sizeByTypeStyles, defaultWeightByTypeSt
|
|
|
22
22
|
import { useTruncation } from "../Text/useTruncation.js";
|
|
23
23
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
24
24
|
import { themeProps } from "../utils/themeProps.js";
|
|
25
|
-
import {
|
|
25
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
26
|
const LazyXDSTooltip = /*#__PURE__*/lazy(async () => import('../Tooltip/Tooltip').then(mod => ({
|
|
27
27
|
default: mod.Tooltip
|
|
28
28
|
})));
|
|
@@ -110,8 +110,8 @@ export function Heading({
|
|
|
110
110
|
const inlineStyle = maxLines > 1 ? {
|
|
111
111
|
WebkitLineClamp: maxLines
|
|
112
112
|
} : undefined;
|
|
113
|
-
return /*#__PURE__*/
|
|
114
|
-
children: [/*#__PURE__*/
|
|
113
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
114
|
+
children: [/*#__PURE__*/_jsx(Component, {
|
|
115
115
|
ref: mergeRefs(ref, truncation.ref, headingRef),
|
|
116
116
|
...mergeProps(themeProps('heading', {
|
|
117
117
|
level,
|
|
@@ -141,17 +141,17 @@ export function Heading({
|
|
|
141
141
|
...ariaProps,
|
|
142
142
|
...props,
|
|
143
143
|
children: children
|
|
144
|
-
}
|
|
144
|
+
}), tooltipEnabled && /*#__PURE__*/_jsx(Suspense, {
|
|
145
145
|
fallback: null,
|
|
146
|
-
children: /*#__PURE__*/
|
|
146
|
+
children: /*#__PURE__*/_jsx(LazyXDSTooltip, {
|
|
147
147
|
anchorRef: headingRef,
|
|
148
|
-
content: /*#__PURE__*/
|
|
148
|
+
content: /*#__PURE__*/_jsx("span", {
|
|
149
149
|
...stylex.props(truncationTooltipStyles.content),
|
|
150
150
|
children: truncation.fullText
|
|
151
|
-
}
|
|
151
|
+
}),
|
|
152
152
|
placement: tooltipPlacement
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
153
|
+
})
|
|
154
|
+
})]
|
|
155
|
+
});
|
|
156
156
|
}
|
|
157
157
|
Heading.displayName = 'Heading';
|
|
@@ -20,7 +20,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
20
20
|
import { useHoverCard } from "./useHoverCard.js";
|
|
21
21
|
import "../theme/tokens.stylex.js";
|
|
22
22
|
import { colorVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
23
|
-
import {
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
/**
|
|
25
25
|
* Check if children are text-only (no React elements)
|
|
26
26
|
*/
|
|
@@ -145,8 +145,8 @@ export function HoverCard({
|
|
|
145
145
|
|
|
146
146
|
// For text-only children: use inline span with ref on wrapper
|
|
147
147
|
if (textOnly) {
|
|
148
|
-
return /*#__PURE__*/
|
|
149
|
-
children: [/*#__PURE__*/
|
|
148
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
149
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
150
150
|
ref: hoverCard.ref,
|
|
151
151
|
tabIndex: 0,
|
|
152
152
|
"aria-describedby": hoverCard.describedBy,
|
|
@@ -159,19 +159,19 @@ export function HoverCard({
|
|
|
159
159
|
}
|
|
160
160
|
}[!!showHoverIndication << 0],
|
|
161
161
|
children: children
|
|
162
|
-
}
|
|
163
|
-
}
|
|
162
|
+
}), renderedHoverCard]
|
|
163
|
+
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
// For element children: use inline-safe display:contents, ref on first child
|
|
167
|
-
return /*#__PURE__*/
|
|
168
|
-
children: [/*#__PURE__*/
|
|
167
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
168
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
169
169
|
ref: wrapperRef,
|
|
170
170
|
...{
|
|
171
171
|
className: "xjp7ctv"
|
|
172
172
|
},
|
|
173
173
|
children: children
|
|
174
|
-
}
|
|
175
|
-
}
|
|
174
|
+
}), renderedHoverCard]
|
|
175
|
+
});
|
|
176
176
|
}
|
|
177
177
|
HoverCard.displayName = 'HoverCard';
|
|
@@ -19,7 +19,7 @@ import "../theme/tokens.stylex.js";
|
|
|
19
19
|
import { colorVars, shadowVars, radiusVars, spacingVars } 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
|
container: {
|
|
25
25
|
kWkggS: "x10xzikg",
|
|
@@ -267,7 +267,7 @@ export function useHoverCard(options = {}) {
|
|
|
267
267
|
// valid (and hydration-stable) inside inline contexts like a `<p>`.
|
|
268
268
|
as: 'span'
|
|
269
269
|
};
|
|
270
|
-
return layer.render(/*#__PURE__*/
|
|
270
|
+
return layer.render(/*#__PURE__*/_jsx("span", {
|
|
271
271
|
...mergeProps(themeProps('hovercard'), {
|
|
272
272
|
className: "x1lliihq x1vlblms xvmdzux x126nfab x1t818jl"
|
|
273
273
|
}),
|
|
@@ -311,7 +311,7 @@ export function useHoverCard(options = {}) {
|
|
|
311
311
|
scheduleHide();
|
|
312
312
|
},
|
|
313
313
|
children: children
|
|
314
|
-
}
|
|
314
|
+
}), renderProps);
|
|
315
315
|
}, [layer, placement, alignment, clearTimeouts, scheduleHide, popoverXstyle]);
|
|
316
316
|
return {
|
|
317
317
|
ref,
|
package/dist/Icon/Icon.js
CHANGED
|
@@ -32,7 +32,7 @@ import { themeProps } from "../utils/themeProps.js";
|
|
|
32
32
|
// =============================================================================
|
|
33
33
|
// Styles
|
|
34
34
|
// =============================================================================
|
|
35
|
-
import {
|
|
35
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
36
36
|
const styles = {
|
|
37
37
|
root: {
|
|
38
38
|
kmuXW: "x2lah0s",
|
|
@@ -218,17 +218,17 @@ export function Icon({
|
|
|
218
218
|
}) {
|
|
219
219
|
// String mode: resolve from icon registry, wrap in styled span
|
|
220
220
|
if (typeof icon === 'string') {
|
|
221
|
-
return /*#__PURE__*/
|
|
221
|
+
return /*#__PURE__*/_jsx(IconFromRegistry, {
|
|
222
222
|
name: icon,
|
|
223
223
|
color: color,
|
|
224
224
|
size: size,
|
|
225
225
|
spanProps: props
|
|
226
|
-
}
|
|
226
|
+
});
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
// Component mode: render SVG component directly with ref forwarding
|
|
230
230
|
const IconComponent = icon;
|
|
231
|
-
return /*#__PURE__*/
|
|
231
|
+
return /*#__PURE__*/_jsx(IconComponent, {
|
|
232
232
|
ref: ref,
|
|
233
233
|
"aria-hidden": "true",
|
|
234
234
|
...mergeProps(themeProps('icon', {
|
|
@@ -236,7 +236,7 @@ export function Icon({
|
|
|
236
236
|
color
|
|
237
237
|
}), stylex.props(styles.root, colorStyles[color], sizeStyles[size])),
|
|
238
238
|
...props
|
|
239
|
-
}
|
|
239
|
+
});
|
|
240
240
|
}
|
|
241
241
|
Icon.displayName = 'Icon';
|
|
242
242
|
|
|
@@ -261,7 +261,7 @@ function IconFromRegistry({
|
|
|
261
261
|
if (resolvedIcon == null) {
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
|
-
return /*#__PURE__*/
|
|
264
|
+
return /*#__PURE__*/_jsx("span", {
|
|
265
265
|
// Decorative by default, but placed BEFORE the prop spread so consumers
|
|
266
266
|
// can override it (e.g. `aria-hidden={false}` + `role="img"` +
|
|
267
267
|
// `aria-label`) to expose a meaningful standalone icon. This matches
|
|
@@ -273,7 +273,7 @@ function IconFromRegistry({
|
|
|
273
273
|
color
|
|
274
274
|
}), stylex.props(styles.span, colorStyles[color], spanSizeStyles[size])),
|
|
275
275
|
children: resolvedIcon
|
|
276
|
-
}
|
|
276
|
+
});
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/**
|
|
@@ -285,16 +285,16 @@ function IconFromRegistry({
|
|
|
285
285
|
*/
|
|
286
286
|
export function renderIconSlot(icon, props) {
|
|
287
287
|
if (typeof icon === 'string') {
|
|
288
|
-
return /*#__PURE__*/
|
|
288
|
+
return /*#__PURE__*/_jsx(Icon, {
|
|
289
289
|
icon: icon,
|
|
290
290
|
...props
|
|
291
|
-
}
|
|
291
|
+
});
|
|
292
292
|
}
|
|
293
293
|
if (typeof icon === 'function' || typeof icon === 'object' && icon !== null && 'render' in icon) {
|
|
294
|
-
return /*#__PURE__*/
|
|
294
|
+
return /*#__PURE__*/_jsx(Icon, {
|
|
295
295
|
icon: icon,
|
|
296
296
|
...props
|
|
297
|
-
}
|
|
297
|
+
});
|
|
298
298
|
}
|
|
299
299
|
return icon;
|
|
300
300
|
}
|