@astryxdesign/core 0.1.6-canary.1b61ba6 → 0.1.6-canary.1d64659
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/README.md +0 -2
- package/dist/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +1 -4
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +1 -3
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.js +1 -4
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +6 -8
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -4
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +4 -34
- package/dist/ButtonGroup/ButtonGroup.d.ts +5 -20
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +11 -27
- package/dist/Calendar/Calendar.d.ts.map +1 -1
- package/dist/Calendar/Calendar.js +5 -8
- package/dist/Carousel/Carousel.d.ts +1 -1
- package/dist/Carousel/Carousel.d.ts.map +1 -1
- package/dist/Carousel/Carousel.js +5 -8
- package/dist/Chat/ChatComposer.d.ts.map +1 -1
- package/dist/Chat/ChatComposer.js +1 -4
- package/dist/Chat/ChatComposerDrawer.d.ts +1 -1
- package/dist/Chat/ChatComposerDrawer.d.ts.map +1 -1
- package/dist/Chat/ChatComposerDrawer.js +2 -9
- package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
- package/dist/Chat/ChatComposerInput.js +2 -6
- package/dist/Chat/ChatLayout.d.ts +11 -1
- package/dist/Chat/ChatLayout.d.ts.map +1 -1
- package/dist/Chat/ChatLayout.js +4 -6
- package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
- package/dist/Chat/ChatLayoutScrollButton.js +2 -4
- package/dist/Chat/ChatMessage.d.ts +1 -1
- package/dist/Chat/ChatMessage.d.ts.map +1 -1
- package/dist/Chat/ChatMessage.js +2 -8
- package/dist/Chat/ChatMessageBubble.d.ts +1 -1
- package/dist/Chat/ChatMessageBubble.d.ts.map +1 -1
- package/dist/Chat/ChatMessageBubble.js +1 -3
- package/dist/Chat/ChatMessageList.d.ts +1 -1
- package/dist/Chat/ChatMessageList.d.ts.map +1 -1
- package/dist/Chat/ChatMessageList.js +1 -3
- package/dist/Chat/ChatMessageMetadata.d.ts.map +1 -1
- package/dist/Chat/ChatMessageMetadata.js +8 -13
- package/dist/Chat/ChatPastedTextToken.d.ts.map +1 -1
- package/dist/Chat/ChatPastedTextToken.js +1 -3
- package/dist/Chat/ChatSendButton.d.ts.map +1 -1
- package/dist/Chat/ChatSendButton.js +1 -3
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.d.ts.map +1 -1
- package/dist/Chat/useChatStreamScroll.d.ts +1 -12
- package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
- package/dist/Chat/useChatStreamScroll.js +6 -43
- package/dist/Chat/useSpeechRecognition.d.ts.map +1 -1
- package/dist/Chat/useSpeechRecognition.js +2 -4
- package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
- package/dist/Chat/useTriggerMenu.js +2 -4
- package/dist/CheckboxList/CheckboxList.d.ts +1 -1
- package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxList.js +1 -3
- package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListItem.js +1 -3
- package/dist/Citation/Citation.d.ts.map +1 -1
- package/dist/Citation/Citation.js +2 -10
- package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/CodeBlock/CodeBlock.js +2 -4
- package/dist/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPalette.js +3 -8
- package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteInput.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteInput.js +1 -4
- package/dist/CommandPalette/CommandPaletteList.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteList.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteList.js +1 -4
- package/dist/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +1 -4
- package/dist/DateInput/DateInput.d.ts +1 -1
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +5 -10
- package/dist/DateRangeInput/DateRangeInput.d.ts +1 -1
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +6 -11
- package/dist/DateTimeInput/DateTimeInput.d.ts +1 -1
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +7 -15
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +12 -15
- package/dist/Dialog/DialogHeader.d.ts +1 -1
- package/dist/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/Dialog/DialogHeader.js +3 -7
- package/dist/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +5 -11
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +1 -11
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +4 -6
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +1 -4
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +8 -10
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +2 -4
- package/dist/MobileNav/MobileNavToggle.d.ts +1 -1
- package/dist/MobileNav/MobileNavToggle.d.ts.map +1 -1
- package/dist/MobileNav/MobileNavToggle.js +1 -4
- package/dist/MoreMenu/MoreMenu.d.ts +1 -1
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MoreMenu/MoreMenu.js +1 -4
- package/dist/MultiSelector/MultiSelector.d.ts +1 -1
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +6 -13
- package/dist/NavItem/index.d.ts +9 -0
- package/dist/NavItem/index.d.ts.map +1 -0
- package/dist/NavItem/index.js +10 -0
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +1 -5
- package/dist/Outline/Outline.d.ts +1 -1
- package/dist/Outline/Outline.d.ts.map +1 -1
- package/dist/Outline/Outline.js +1 -4
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +11 -38
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +1 -4
- package/dist/PowerSearch/PowerSearch.d.ts +1 -1
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +12 -22
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +20 -26
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +3 -7
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.js +21 -34
- package/dist/PowerSearch/formatFilterValue.d.ts +1 -2
- package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
- package/dist/PowerSearch/formatFilterValue.js +9 -19
- package/dist/PowerSearch/index.d.ts +1 -2
- package/dist/PowerSearch/index.d.ts.map +1 -1
- package/dist/PowerSearch/index.js +0 -1
- package/dist/PowerSearch/types.d.ts +2 -28
- 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 +8 -15
- package/dist/Resizable/ResizeHandle.d.ts +1 -1
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +1 -4
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +5 -11
- package/dist/SideNav/SideNav.d.ts.map +1 -1
- package/dist/SideNav/SideNav.js +2 -4
- package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
- package/dist/SideNav/SideNavCollapseButton.js +1 -3
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +3 -5
- package/dist/SideNav/SideNavItem.d.ts.map +1 -1
- package/dist/SideNav/SideNavItem.js +1 -7
- package/dist/TabList/TabList.d.ts +1 -1
- package/dist/TabList/TabList.d.ts.map +1 -1
- package/dist/TabList/TabList.js +1 -4
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +16 -29
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +3 -5
- package/dist/Table/plugins/columnResize/useTableColumnResize.js +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.js +19 -56
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts.map +1 -1
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.js +4 -11
- package/dist/Table/plugins/pagination/useTablePagination.d.ts.map +1 -1
- package/dist/Table/plugins/pagination/useTablePagination.js +3 -6
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +6 -8
- package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
- package/dist/Table/plugins/selection/useTableSelection.js +2 -5
- package/dist/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortable.js +4 -6
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +2 -2
- package/dist/Table/types.d.ts +10 -17
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +1 -5
- package/dist/Thumbnail/Thumbnail.d.ts.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +2 -8
- package/dist/TimeInput/TimeInput.d.ts +1 -1
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +2 -7
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +1 -3
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +1 -3
- package/dist/Token/Token.d.ts.map +1 -1
- package/dist/Token/Token.js +2 -8
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +1 -3
- package/dist/TopNav/TopNav.d.ts +1 -1
- package/dist/TopNav/TopNav.d.ts.map +1 -1
- package/dist/TopNav/TopNav.js +1 -4
- package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +3 -5
- package/dist/TreeList/TreeList.d.ts.map +1 -1
- package/dist/TreeList/TreeList.js +1 -5
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +1 -7
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +4 -8
- package/dist/Typeahead/Typeahead.d.ts.map +1 -1
- package/dist/Typeahead/Typeahead.js +1 -3
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +0 -1
- package/dist/astryx.css +1 -3
- package/dist/astryx.umd.js +60 -62
- package/dist/astryx.umd.js.map +4 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/package.json +2 -23
- package/src/AlertDialog/AlertDialog.tsx +1 -4
- package/src/AppShell/AppShell.doc.mjs +2 -8
- package/src/AppShell/AppShell.tsx +1 -3
- package/src/AvatarGroup/AvatarGroup.tsx +1 -4
- package/src/Banner/Banner.tsx +5 -10
- package/src/Breadcrumbs/Breadcrumbs.tsx +1 -4
- package/src/Button/Button.tsx +4 -34
- package/src/ButtonGroup/ButtonGroup.test.tsx +2 -386
- package/src/ButtonGroup/ButtonGroup.tsx +11 -27
- package/src/Calendar/Calendar.tsx +5 -8
- package/src/Card/Card.doc.mjs +3 -3
- package/src/Carousel/Carousel.tsx +7 -10
- package/src/Chat/ChatComposer.tsx +1 -5
- package/src/Chat/ChatComposerDrawer.tsx +2 -9
- package/src/Chat/ChatComposerInput.tsx +4 -10
- package/src/Chat/ChatLayout.test.tsx +2 -127
- package/src/Chat/ChatLayout.tsx +12 -5
- package/src/Chat/ChatLayoutScrollButton.tsx +2 -4
- package/src/Chat/ChatMessage.tsx +1 -5
- package/src/Chat/ChatMessageBubble.tsx +0 -2
- package/src/Chat/ChatMessageList.doc.mjs +1 -1
- package/src/Chat/ChatMessageList.tsx +0 -2
- package/src/Chat/ChatMessageMetadata.tsx +9 -15
- package/src/Chat/ChatPastedTextToken.tsx +1 -3
- package/src/Chat/ChatSendButton.tsx +1 -3
- package/src/Chat/ChatToolCalls.doc.mjs +1 -1
- package/src/Chat/index.ts +0 -1
- package/src/Chat/useChatStreamScroll.ts +11 -67
- package/src/Chat/useSpeechRecognition.ts +2 -11
- package/src/Chat/useTriggerMenu.tsx +2 -4
- package/src/CheckboxList/CheckboxList.doc.mjs +1 -1
- package/src/CheckboxList/CheckboxList.tsx +0 -2
- package/src/CheckboxList/CheckboxListItem.tsx +1 -7
- package/src/Citation/Citation.tsx +2 -4
- package/src/ClickableCard/ClickableCard.doc.mjs +1 -1
- package/src/CodeBlock/CodeBlock.tsx +2 -4
- package/src/CommandPalette/CommandPalette.tsx +3 -10
- package/src/CommandPalette/CommandPaletteInput.test.tsx +1 -1
- package/src/CommandPalette/CommandPaletteInput.tsx +1 -5
- package/src/CommandPalette/CommandPaletteList.tsx +1 -4
- package/src/ContextMenu/ContextMenu.tsx +1 -4
- package/src/DateInput/DateInput.doc.mjs +2 -2
- package/src/DateInput/DateInput.tsx +5 -13
- package/src/DateRangeInput/DateRangeInput.doc.mjs +1 -1
- package/src/DateRangeInput/DateRangeInput.tsx +6 -14
- package/src/DateTimeInput/DateTimeInput.doc.mjs +2 -2
- package/src/DateTimeInput/DateTimeInput.tsx +7 -17
- package/src/Dialog/Dialog.tsx +15 -11
- package/src/Dialog/DialogHeader.tsx +3 -7
- package/src/DropdownMenu/DropdownMenu.tsx +8 -12
- package/src/Field/Field.doc.mjs +2 -2
- package/src/FileInput/FileInput.test.tsx +1 -40
- package/src/FileInput/FileInput.tsx +1 -12
- package/src/Grid/Grid.doc.mjs +5 -5
- package/src/InputGroup/InputGroup.doc.mjs +1 -1
- package/src/Lightbox/Lightbox.doc.mjs +2 -7
- package/src/Lightbox/Lightbox.tsx +4 -6
- package/src/Link/Link.tsx +1 -4
- package/src/Markdown/Markdown.tsx +4 -12
- package/src/MobileNav/MobileNav.tsx +2 -4
- package/src/MobileNav/MobileNavToggle.tsx +3 -5
- package/src/MoreMenu/MoreMenu.tsx +1 -4
- package/src/MultiSelector/MultiSelector.tsx +5 -14
- package/src/NavItem/index.ts +11 -0
- package/src/NumberInput/NumberInput.tsx +1 -3
- package/src/Outline/Outline.tsx +1 -4
- package/src/OverflowList/OverflowList.doc.mjs +2 -2
- package/src/Pagination/Pagination.tsx +12 -35
- package/src/Popover/usePopover.tsx +1 -6
- package/src/PowerSearch/PowerSearch.doc.mjs +4 -4
- package/src/PowerSearch/PowerSearch.tsx +10 -22
- package/src/PowerSearch/PowerSearchEditPopover.tsx +20 -27
- package/src/PowerSearch/PowerSearchToken.tsx +6 -17
- package/src/PowerSearch/PowerSearchValueEditor.tsx +21 -34
- package/src/PowerSearch/formatFilterValue.ts +8 -21
- package/src/PowerSearch/index.ts +0 -5
- package/src/PowerSearch/types.ts +9 -33
- package/src/PowerSearch/usePowerSearchConfig.ts +27 -59
- package/src/PowerSearch/usePowerSearchSource.ts +8 -17
- package/src/RadioList/RadioList.doc.mjs +1 -1
- package/src/Resizable/ResizeHandle.tsx +1 -4
- package/src/Section/Section.doc.mjs +4 -4
- package/src/SelectableCard/SelectableCard.doc.mjs +1 -1
- package/src/Selector/Selector.tsx +6 -11
- package/src/SideNav/SideNav.tsx +2 -4
- package/src/SideNav/SideNavCollapseButton.tsx +1 -3
- package/src/SideNav/SideNavHeading.tsx +3 -5
- package/src/SideNav/SideNavItem.tsx +1 -3
- 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/TabList/TabList.tsx +1 -4
- package/src/Table/BaseTable.tsx +19 -36
- package/src/Table/Table.test.tsx +1 -132
- package/src/Table/Table.tsx +4 -6
- package/src/Table/plugins/columnResize/useTableColumnResize.tsx +1 -1
- package/src/Table/plugins/filtering/useTableFiltering.tsx +30 -31
- package/src/Table/plugins/groupedRows/useTableGroupedRows.tsx +4 -6
- package/src/Table/plugins/pagination/useTablePagination.tsx +1 -4
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +8 -9
- package/src/Table/plugins/selection/useTableSelection.tsx +7 -6
- package/src/Table/plugins/sortable/useTableSortable.tsx +5 -8
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +4 -4
- package/src/Table/types.ts +12 -18
- package/src/Table/useTableFiltering.doc.mjs +2 -2
- package/src/Table/useTableSortable.doc.mjs +11 -11
- package/src/Text/Text.doc.mjs +2 -2
- package/src/TextInput/TextInput.tsx +1 -3
- package/src/Thumbnail/Thumbnail.tsx +2 -4
- package/src/TimeInput/TimeInput.doc.mjs +2 -2
- package/src/TimeInput/TimeInput.tsx +2 -6
- package/src/Timestamp/Timestamp.doc.mjs +4 -4
- package/src/Toast/Toast.tsx +1 -3
- package/src/Toast/ToastViewport.tsx +1 -3
- package/src/Token/Token.tsx +2 -4
- 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.tsx +1 -4
- package/src/TopNav/TopNavHeading.tsx +3 -5
- package/src/TreeList/TreeList.tsx +1 -5
- package/src/TreeList/TreeListItem.tsx +1 -6
- package/src/Typeahead/BaseTypeahead.tsx +4 -11
- package/src/Typeahead/Typeahead.doc.mjs +1 -1
- package/src/Typeahead/Typeahead.tsx +1 -3
- package/src/VisuallyHidden/VisuallyHidden.tsx +0 -1
- package/src/index.ts +0 -3
- package/dist/PowerSearch/resolveOperatorLabel.d.ts +0 -23
- package/dist/PowerSearch/resolveOperatorLabel.d.ts.map +0 -1
- package/dist/PowerSearch/resolveOperatorLabel.js +0 -28
- package/dist/authoring/doc.d.ts +0 -145
- package/dist/authoring/doc.d.ts.map +0 -1
- package/dist/authoring/doc.js +0 -100
- package/dist/authoring/index.d.ts +0 -29
- package/dist/authoring/index.d.ts.map +0 -1
- package/dist/authoring/index.js +0 -28
- package/dist/authoring/integration.d.ts +0 -35
- package/dist/authoring/integration.d.ts.map +0 -1
- package/dist/authoring/integration.js +0 -30
- package/dist/authoring/template.d.ts +0 -66
- package/dist/authoring/template.d.ts.map +0 -1
- package/dist/authoring/template.js +0 -55
- package/dist/config.d.ts +0 -80
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -40
- package/dist/i18n/InternationalizationContext.d.ts +0 -12
- package/dist/i18n/InternationalizationContext.d.ts.map +0 -1
- package/dist/i18n/InternationalizationContext.js +0 -29
- package/dist/i18n/InternationalizationProvider.d.ts +0 -62
- package/dist/i18n/InternationalizationProvider.d.ts.map +0 -1
- package/dist/i18n/InternationalizationProvider.js +0 -44
- package/dist/i18n/index.d.ts +0 -24
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/index.js +0 -21
- package/dist/i18n/resolve.d.ts +0 -22
- package/dist/i18n/resolve.d.ts.map +0 -1
- package/dist/i18n/resolve.js +0 -141
- package/dist/i18n/translator.d.ts +0 -25
- package/dist/i18n/translator.d.ts.map +0 -1
- package/dist/i18n/translator.js +0 -1
- package/dist/i18n/types.d.ts +0 -47
- package/dist/i18n/types.d.ts.map +0 -1
- package/dist/i18n/types.js +0 -1
- package/dist/i18n/useTranslator.d.ts +0 -15
- package/dist/i18n/useTranslator.d.ts.map +0 -1
- package/dist/i18n/useTranslator.js +0 -39
- package/locales/en.json +0 -746
- package/locales/pseudo.json +0 -560
- package/src/Chat/useChatStreamScroll.test.tsx +0 -168
- package/src/PowerSearch/formatFilterValue.test.ts +0 -282
- package/src/PowerSearch/resolveOperatorLabel.ts +0 -34
- package/src/authoring/doc.ts +0 -166
- package/src/authoring/index.test.ts +0 -52
- package/src/authoring/index.ts +0 -50
- package/src/authoring/integration.ts +0 -42
- package/src/authoring/template.ts +0 -74
- package/src/config.test.ts +0 -16
- package/src/config.ts +0 -92
- package/src/docPropLiterals.test.ts +0 -938
- package/src/i18n/InternationalizationContext.ts +0 -39
- package/src/i18n/InternationalizationProvider.doc.mjs +0 -72
- package/src/i18n/InternationalizationProvider.tsx +0 -83
- package/src/i18n/__tests__/e2e-pagination.test.tsx +0 -172
- package/src/i18n/__tests__/e2e-powersearch.test.tsx +0 -130
- package/src/i18n/__tests__/resolve.test.ts +0 -284
- package/src/i18n/index.ts +0 -32
- package/src/i18n/resolve.ts +0 -165
- package/src/i18n/translator.ts +0 -31
- package/src/i18n/types.ts +0 -53
- package/src/i18n/useTranslator.doc.mjs +0 -46
- package/src/i18n/useTranslator.ts +0 -50
package/dist/SideNav/SideNav.js
CHANGED
|
@@ -32,7 +32,6 @@ import { MobileNav } from "../MobileNav/MobileNav.js";
|
|
|
32
32
|
import { useResizable } from "../Resizable/useResizable.js";
|
|
33
33
|
import { ResizeHandle } from "../Resizable/ResizeHandle.js";
|
|
34
34
|
import { themeProps } from "../utils/themeProps.js";
|
|
35
|
-
import { useTranslator } from "../i18n/index.js";
|
|
36
35
|
|
|
37
36
|
// =============================================================================
|
|
38
37
|
// Constants
|
|
@@ -117,7 +116,6 @@ export function SideNav({
|
|
|
117
116
|
handleRef,
|
|
118
117
|
...props
|
|
119
118
|
}) {
|
|
120
|
-
const t = useTranslator();
|
|
121
119
|
// Parse collapsible prop
|
|
122
120
|
const collapsibleConfig = typeof collapsible === 'object' ? collapsible : {};
|
|
123
121
|
const isCollapsible = !!collapsible;
|
|
@@ -269,7 +267,7 @@ export function SideNav({
|
|
|
269
267
|
const navElement = /*#__PURE__*/_jsxs("nav", {
|
|
270
268
|
ref: mergeRefs(ref, navRef),
|
|
271
269
|
role: "navigation",
|
|
272
|
-
"aria-label":
|
|
270
|
+
"aria-label": "Side navigation",
|
|
273
271
|
"data-testid": testId,
|
|
274
272
|
...mergeProps(themeProps('side-nav'), stylex.props(styles.root, collapsed && styles.rootCollapsed, xstyle), className, resizableNavStyle),
|
|
275
273
|
...props,
|
|
@@ -351,7 +349,7 @@ export function SideNav({
|
|
|
351
349
|
pillPlacement: "end",
|
|
352
350
|
isAlwaysVisible: false,
|
|
353
351
|
resizable: resizableHook.props,
|
|
354
|
-
label:
|
|
352
|
+
label: "Resize sidebar"
|
|
355
353
|
})]
|
|
356
354
|
}) : navElement;
|
|
357
355
|
if (isCollapsible) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavCollapseButton.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavCollapseButton.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAK5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SideNavCollapseButton.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavCollapseButton.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAK5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,EAGL,KAAK,+BAA+B,EACrC,MAAM,0BAA0B,CAAC;AAwBlC,MAAM,WAAW,0BAA2B,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC9E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,+BAA+B,GAAG,IAAI,CAAC,CAAC;IAEpE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EAAE,WAAW,EACpB,GAAG,KAAK,EACT,EAAE,0BAA0B,4BAgC5B;yBAvCe,qBAAqB"}
|
|
@@ -25,7 +25,6 @@ import { Button } from "../Button/index.js";
|
|
|
25
25
|
import { composeEventHandlers } from "../utils/index.js";
|
|
26
26
|
import { useSideNavCollapse } from "./SideNavCollapseContext.js";
|
|
27
27
|
import { useAppShellMobile } from "../AppShell/AppShellMobileContext.js";
|
|
28
|
-
import { useTranslator } from "../i18n/index.js";
|
|
29
28
|
|
|
30
29
|
// =============================================================================
|
|
31
30
|
// Styles
|
|
@@ -68,7 +67,6 @@ export function SideNavCollapseButton({
|
|
|
68
67
|
onClick: onClickProp,
|
|
69
68
|
...props
|
|
70
69
|
}) {
|
|
71
|
-
const t = useTranslator();
|
|
72
70
|
const {
|
|
73
71
|
isCollapsed,
|
|
74
72
|
toggle,
|
|
@@ -85,7 +83,7 @@ export function SideNavCollapseButton({
|
|
|
85
83
|
}
|
|
86
84
|
return /*#__PURE__*/_jsx(Button, {
|
|
87
85
|
ref: ref,
|
|
88
|
-
label: label ?? (isCollapsed ?
|
|
86
|
+
label: label ?? (isCollapsed ? 'Expand sidebar' : 'Collapse sidebar'),
|
|
89
87
|
variant: "ghost",
|
|
90
88
|
...props,
|
|
91
89
|
onClick: composeEventHandlers(onClickProp, toggle),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavHeading.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavHeading.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAmBtD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAErD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SideNavHeading.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavHeading.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAmBtD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAErD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAoM5C,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACpE,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,EAAE,CAAC,EAAE,iBAAiB,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,IAAI,EACJ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,EACrB,GAAG,EACH,GAAG,KAAK,EACT,EAAE,mBAAmB,sCAmbrB;yBApce,cAAc"}
|
|
@@ -36,7 +36,6 @@ import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
|
36
36
|
import { useMenuHover } from "../hooks/useMenuHover.js";
|
|
37
37
|
import { NavHeadingCloseContext } from "../NavMenu/NavMenuContext.js";
|
|
38
38
|
import { themeProps } from "../utils/themeProps.js";
|
|
39
|
-
import { useTranslator } from "../i18n/index.js";
|
|
40
39
|
|
|
41
40
|
// =============================================================================
|
|
42
41
|
// Styles
|
|
@@ -145,7 +144,6 @@ export function SideNavHeading({
|
|
|
145
144
|
ref,
|
|
146
145
|
...props
|
|
147
146
|
}) {
|
|
148
|
-
const t = useTranslator();
|
|
149
147
|
const LinkComponent = useLinkComponent(as);
|
|
150
148
|
const {
|
|
151
149
|
isCollapsed
|
|
@@ -153,7 +151,7 @@ export function SideNavHeading({
|
|
|
153
151
|
const rootRef = useRef(null);
|
|
154
152
|
const collapsedItemRef = useRef(null);
|
|
155
153
|
const popover = usePopover({
|
|
156
|
-
dialogLabel:
|
|
154
|
+
dialogLabel: 'Navigation menu',
|
|
157
155
|
hasCloseButton: false
|
|
158
156
|
});
|
|
159
157
|
const closeMenuCtx = useMemo(() => ({
|
|
@@ -404,7 +402,7 @@ export function SideNavHeading({
|
|
|
404
402
|
children: icon
|
|
405
403
|
}), renderTextContent(/*#__PURE__*/_jsx("button", {
|
|
406
404
|
type: "button",
|
|
407
|
-
"aria-label":
|
|
405
|
+
"aria-label": "Open menu",
|
|
408
406
|
onClick: e => {
|
|
409
407
|
e.stopPropagation();
|
|
410
408
|
triggerProps.onClick();
|
|
@@ -455,7 +453,7 @@ export function SideNavHeading({
|
|
|
455
453
|
children: icon
|
|
456
454
|
})), renderTextContent(showChevron ? /*#__PURE__*/_jsx("button", {
|
|
457
455
|
type: "button",
|
|
458
|
-
"aria-label":
|
|
456
|
+
"aria-label": "Open menu",
|
|
459
457
|
onClick: e => {
|
|
460
458
|
e.stopPropagation();
|
|
461
459
|
triggerProps.onClick();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNavItem.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,OAAO,EAAiB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAgB,KAAK,WAAW,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SideNavItem.d.ts","sourceRoot":"","sources":["../../src/SideNav/SideNavItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,OAAO,EAAiB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAgB,KAAK,WAAW,EAAC,MAAM,iCAAiC,CAAC;AAuMhF,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,WAAW,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,EAAE,CAAC,EAAE,iBAAiB,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EACR,OAAO,GACP;QACE,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;KACpD,CAAC;IACN;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,UAAkB,EAClB,UAAkB,EAClB,IAAI,EACJ,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EAAE,eAAe,EAC5B,IAAW,EACX,aAAa,EAAE,MAAM,EACrB,GAAG,GACJ,EAAE,gBAAgB,sCA8UlB;yBA7Ve,WAAW"}
|
|
@@ -32,7 +32,6 @@ import { getIcon } from "../Icon/globalIconRegistry.js";
|
|
|
32
32
|
import { useSideNavRenderMode } from "./SideNavRenderContext.js";
|
|
33
33
|
import { useAppShellMobile } from "../AppShell/AppShellMobileContext.js";
|
|
34
34
|
import { themeProps } from "../utils/themeProps.js";
|
|
35
|
-
import { useTranslator } from "../i18n/index.js";
|
|
36
35
|
|
|
37
36
|
// =============================================================================
|
|
38
37
|
// Styles
|
|
@@ -143,7 +142,6 @@ export function SideNavItem({
|
|
|
143
142
|
'data-testid': testId,
|
|
144
143
|
ref
|
|
145
144
|
}) {
|
|
146
|
-
const t = useTranslator();
|
|
147
145
|
const {
|
|
148
146
|
isCollapsed
|
|
149
147
|
} = useSideNavCollapse();
|
|
@@ -393,11 +391,7 @@ export function SideNavItem({
|
|
|
393
391
|
}), /*#__PURE__*/_jsx("button", {
|
|
394
392
|
type: "button",
|
|
395
393
|
onClick: handleToggleClick,
|
|
396
|
-
"aria-label": isItemCollapsed ?
|
|
397
|
-
label
|
|
398
|
-
}) : t('@astryx.sideNavItem.collapse', {
|
|
399
|
-
label
|
|
400
|
-
}),
|
|
394
|
+
"aria-label": isItemCollapsed ? `Expand ${label}` : `Collapse ${label}`,
|
|
401
395
|
"aria-expanded": !isItemCollapsed,
|
|
402
396
|
"aria-controls": `${id}-children`,
|
|
403
397
|
...{
|
|
@@ -74,7 +74,7 @@ export interface TabListProps extends Omit<BaseProps<HTMLElement>, 'onChange'> {
|
|
|
74
74
|
* </TabList>
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
export declare function TabList({ ref, value, onChange, size: sizeProp, layout, hasDivider, orientation, xstyle, className, style, children, onKeyDown: onKeyDownProp, onFocus: onFocusProp, onBlur: onBlurProp, 'aria-label':
|
|
77
|
+
export declare function TabList({ ref, value, onChange, size: sizeProp, layout, hasDivider, orientation, xstyle, className, style, children, onKeyDown: onKeyDownProp, onFocus: onFocusProp, onBlur: onBlurProp, 'aria-label': ariaLabel, 'aria-orientation': _ariaOrientation, [EDGE_COMP_ATTR]: _edgeCompAttr, ...restProps }: TabListProps): React.JSX.Element;
|
|
78
78
|
export declare namespace TabList {
|
|
79
79
|
var displayName: string;
|
|
80
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../src/TabList/TabList.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAuB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAGlE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,kBAAkB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAKtE,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../src/TabList/TabList.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAuB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAGlE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,kBAAkB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAKtE,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AAUjE,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAC5E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAoBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,EACtB,GAAG,EACH,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,MAAc,EACd,UAAkB,EAClB,WAA0B,EAC1B,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,SAAkB,EAChC,kBAAkB,EAAE,gBAAgB,EACpC,CAAC,cAAc,CAAC,EAAE,aAAa,EAC/B,GAAG,SAAS,EACb,EAAE,YAAY,qBAiGd;yBApHe,OAAO"}
|
package/dist/TabList/TabList.js
CHANGED
|
@@ -27,7 +27,6 @@ import { useListFocus } from "../hooks/useListFocus.js";
|
|
|
27
27
|
import { useKeyboardHint } from "../hooks/useKeyboardHint.js";
|
|
28
28
|
import { EDGE_COMP_ATTR } from "../Layout/edgeCompensation.stylex.js";
|
|
29
29
|
import { themeProps } from "../utils/themeProps.js";
|
|
30
|
-
import { useTranslator } from "../i18n/index.js";
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* Selector matching the focusable stops in the tab strip: every Tab
|
|
@@ -88,13 +87,11 @@ export function TabList({
|
|
|
88
87
|
onKeyDown: onKeyDownProp,
|
|
89
88
|
onFocus: onFocusProp,
|
|
90
89
|
onBlur: onBlurProp,
|
|
91
|
-
'aria-label':
|
|
90
|
+
'aria-label': ariaLabel = 'Tabs',
|
|
92
91
|
'aria-orientation': _ariaOrientation,
|
|
93
92
|
[EDGE_COMP_ATTR]: _edgeCompAttr,
|
|
94
93
|
...restProps
|
|
95
94
|
}) {
|
|
96
|
-
const t = useTranslator();
|
|
97
|
-
const ariaLabel = ariaLabelFromProps ?? t('@astryx.tabList.label');
|
|
98
95
|
const size = useSize(sizeProp, 'md');
|
|
99
96
|
|
|
100
97
|
// Roving-tabindex keyboard navigation across the tab strip via the shared
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTable.d.ts","sourceRoot":"","sources":["../../src/Table/BaseTable.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAe,KAAK,YAAY,EAAkB,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAGhF,OAAO,KAAK,EACV,cAAc,EAYf,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseTable.d.ts","sourceRoot":"","sources":["../../src/Table/BaseTable.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAe,KAAK,YAAY,EAAkB,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAGhF,OAAO,KAAK,EACV,cAAc,EAYf,MAAM,SAAS,CAAC;AA0iBjB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS,EAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3E,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAC,KACrD,YAAY,CAAC"}
|
package/dist/Table/BaseTable.js
CHANGED
|
@@ -28,7 +28,6 @@ import { mergeProps } from "../utils/index.js";
|
|
|
28
28
|
import { EmptyState } from "../EmptyState/index.js";
|
|
29
29
|
import { Text } from "../Text/index.js";
|
|
30
30
|
import { themeProps } from "../utils/themeProps.js";
|
|
31
|
-
import { useTranslator } from "../i18n/index.js";
|
|
32
31
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
32
|
const styles = {
|
|
34
33
|
table: {
|
|
@@ -116,7 +115,7 @@ function TableRowInner({
|
|
|
116
115
|
}
|
|
117
116
|
const initialBodyCellRenderProps = {
|
|
118
117
|
htmlProps: initialCellHtmlProps,
|
|
119
|
-
|
|
118
|
+
styles: [],
|
|
120
119
|
columnIndex,
|
|
121
120
|
columns: columns
|
|
122
121
|
};
|
|
@@ -141,7 +140,7 @@ function TableRowInner({
|
|
|
141
140
|
return /*#__PURE__*/_jsx(CellComponent, {
|
|
142
141
|
...cellRenderProps.htmlProps,
|
|
143
142
|
contextMenuActions: cellRenderProps.contextMenuActions,
|
|
144
|
-
xstyle: cellRenderProps.
|
|
143
|
+
xstyle: cellRenderProps.styles,
|
|
145
144
|
children: content
|
|
146
145
|
}, col.key);
|
|
147
146
|
});
|
|
@@ -149,7 +148,7 @@ function TableRowInner({
|
|
|
149
148
|
// Apply plugin transforms for row (with pre-rendered children)
|
|
150
149
|
const rowRenderProps = applyPlugins(plugins, p => p.transformBodyRow, {
|
|
151
150
|
htmlProps: {},
|
|
152
|
-
|
|
151
|
+
styles: [],
|
|
153
152
|
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
154
153
|
children: cells
|
|
155
154
|
})
|
|
@@ -157,7 +156,7 @@ function TableRowInner({
|
|
|
157
156
|
const row = /*#__PURE__*/_jsx(RowComponent, {
|
|
158
157
|
ref: rowRenderProps.ref,
|
|
159
158
|
...rowRenderProps.htmlProps,
|
|
160
|
-
xstyle: rowRenderProps.
|
|
159
|
+
xstyle: rowRenderProps.styles,
|
|
161
160
|
children: rowRenderProps.children
|
|
162
161
|
}, rowKey);
|
|
163
162
|
return row;
|
|
@@ -239,13 +238,8 @@ function BaseTableInner({
|
|
|
239
238
|
textOverflow = 'wrap',
|
|
240
239
|
scrollWrapper: ScrollWrapper,
|
|
241
240
|
emptyState,
|
|
242
|
-
|
|
243
|
-
className,
|
|
244
|
-
style,
|
|
245
|
-
ref,
|
|
246
|
-
...rest
|
|
241
|
+
ref
|
|
247
242
|
}) {
|
|
248
|
-
const t = useTranslator();
|
|
249
243
|
// Use stable empty array when no plugins provided
|
|
250
244
|
const plugins = pluginsProp ?? EMPTY_PLUGINS;
|
|
251
245
|
const RowComponent = TableRow;
|
|
@@ -279,7 +273,7 @@ function BaseTableInner({
|
|
|
279
273
|
htmlProps: {
|
|
280
274
|
...userTableProps
|
|
281
275
|
},
|
|
282
|
-
|
|
276
|
+
styles: children ? [styles.table, styles.tableAutoLayout] : [styles.table]
|
|
283
277
|
});
|
|
284
278
|
|
|
285
279
|
// --- Plugin pipeline: header cells ---
|
|
@@ -301,7 +295,7 @@ function BaseTableInner({
|
|
|
301
295
|
}
|
|
302
296
|
const initialHeaderRenderProps = {
|
|
303
297
|
htmlProps: initialHeaderHtmlProps,
|
|
304
|
-
|
|
298
|
+
styles: [],
|
|
305
299
|
content: headerContent,
|
|
306
300
|
columnIndex,
|
|
307
301
|
columns: resolvedColumns
|
|
@@ -345,7 +339,7 @@ function BaseTableInner({
|
|
|
345
339
|
...mergedHtmlProps,
|
|
346
340
|
...headerTitleProp,
|
|
347
341
|
contextMenuActions: cellRenderProps.contextMenuActions,
|
|
348
|
-
xstyle: cellRenderProps.
|
|
342
|
+
xstyle: cellRenderProps.styles,
|
|
349
343
|
children: headerInner
|
|
350
344
|
}, col.key);
|
|
351
345
|
});
|
|
@@ -353,7 +347,7 @@ function BaseTableInner({
|
|
|
353
347
|
// --- Plugin pipeline: header row ---
|
|
354
348
|
const headerRowRenderProps = applyPlugins(plugins, p => p.transformHeaderRow, {
|
|
355
349
|
htmlProps: {},
|
|
356
|
-
|
|
350
|
+
styles: [],
|
|
357
351
|
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
358
352
|
children: headerCells
|
|
359
353
|
})
|
|
@@ -362,28 +356,21 @@ function BaseTableInner({
|
|
|
362
356
|
// --- Render ---
|
|
363
357
|
const hasData = data != null && data.length > 0;
|
|
364
358
|
const hasColumns = resolvedColumns.length > 0;
|
|
365
|
-
|
|
366
|
-
// Style precedence: deprecated tableProps.style < consumer style < the
|
|
367
|
-
// computed column min-width (structural — derived from column defs, so it
|
|
368
|
-
// must win when present; when absent, a consumer minWidth survives).
|
|
369
359
|
const tableStyle = {
|
|
370
360
|
...tableRenderProps.htmlProps.style,
|
|
371
|
-
|
|
372
|
-
...(resolvedWidths.tableMinWidth > 0 ? {
|
|
373
|
-
minWidth: `${resolvedWidths.tableMinWidth}px`
|
|
374
|
-
} : null)
|
|
361
|
+
minWidth: resolvedWidths.tableMinWidth > 0 ? `${resolvedWidths.tableMinWidth}px` : undefined
|
|
375
362
|
};
|
|
376
363
|
let tableElement = /*#__PURE__*/_jsx("table", {
|
|
377
364
|
ref: ref,
|
|
378
365
|
...tableRenderProps.htmlProps,
|
|
379
|
-
...mergeProps(themeProps('base-table'), stylex.props(...tableRenderProps.
|
|
380
|
-
|
|
366
|
+
...mergeProps(themeProps('base-table'), stylex.props(...tableRenderProps.styles), tableRenderProps.htmlProps.className),
|
|
367
|
+
style: tableStyle,
|
|
381
368
|
children: children ? children : /*#__PURE__*/_jsxs(_Fragment, {
|
|
382
369
|
children: [hasColumns && /*#__PURE__*/_jsx(TableHeader, {
|
|
383
370
|
children: /*#__PURE__*/_jsx(RowComponent, {
|
|
384
371
|
...headerRowRenderProps.htmlProps,
|
|
385
372
|
isHeaderRow: true,
|
|
386
|
-
xstyle: headerRowRenderProps.
|
|
373
|
+
xstyle: headerRowRenderProps.styles,
|
|
387
374
|
children: headerRowRenderProps.children
|
|
388
375
|
})
|
|
389
376
|
}), /*#__PURE__*/_jsx(TableBody, {
|
|
@@ -403,7 +390,7 @@ function BaseTableInner({
|
|
|
403
390
|
children: /*#__PURE__*/_jsx("td", {
|
|
404
391
|
colSpan: resolvedColumns.length,
|
|
405
392
|
children: emptyState ?? /*#__PURE__*/_jsx(EmptyState, {
|
|
406
|
-
title:
|
|
393
|
+
title: "No data",
|
|
407
394
|
isCompact: true
|
|
408
395
|
})
|
|
409
396
|
})
|
|
@@ -423,11 +410,11 @@ function BaseTableInner({
|
|
|
423
410
|
if (ScrollWrapper) {
|
|
424
411
|
const scrollWrapperRenderProps = applyPlugins(plugins, p => p.transformScrollWrapper, {
|
|
425
412
|
htmlProps: {},
|
|
426
|
-
|
|
413
|
+
styles: []
|
|
427
414
|
});
|
|
428
415
|
tableElement = /*#__PURE__*/_jsx(ScrollWrapper, {
|
|
429
416
|
htmlProps: scrollWrapperRenderProps.htmlProps,
|
|
430
|
-
|
|
417
|
+
styles: scrollWrapperRenderProps.styles,
|
|
431
418
|
beforeTable: scrollWrapperRenderProps.beforeTable,
|
|
432
419
|
afterTable: scrollWrapperRenderProps.afterTable,
|
|
433
420
|
children: tableElement
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,WAAW,EAEZ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,WAAW,EAEZ,MAAM,SAAS,CAAC;AAOjB,oDAAoD;AAEpD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE/D,kCAAkC;AAElC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjE,8DAA8D;AAE9D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEpD;;;;;GAKG;AAEH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAE,SAAQ,IAAI,CACzE,cAAc,CAAC,CAAC,CAAC,EACjB,SAAS,GAAG,YAAY,CACzB;IACC,uCAAuC;IACvC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1C;AAyJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,KAAK,EAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAC,KACjD,YAAY,CAAC"}
|
package/dist/Table/Table.js
CHANGED
|
@@ -24,7 +24,6 @@ import { TableContext } from "./TableContext.js";
|
|
|
24
24
|
import { useBaseTablePlugins } from "./useBaseTablePlugins.js";
|
|
25
25
|
import { mergeProps } from "../utils/index.js";
|
|
26
26
|
import { themeProps } from "../utils/themeProps.js";
|
|
27
|
-
import { useTranslator } from "../i18n/index.js";
|
|
28
27
|
|
|
29
28
|
// =============================================================================
|
|
30
29
|
// Table Types
|
|
@@ -72,11 +71,10 @@ const scrollWrapperStyles = {
|
|
|
72
71
|
function TableScrollWrapper({
|
|
73
72
|
children,
|
|
74
73
|
htmlProps,
|
|
75
|
-
|
|
74
|
+
styles: pluginStyles,
|
|
76
75
|
beforeTable,
|
|
77
76
|
afterTable
|
|
78
77
|
}) {
|
|
79
|
-
const t = useTranslator();
|
|
80
78
|
const {
|
|
81
79
|
ref,
|
|
82
80
|
...restHtmlProps
|
|
@@ -91,7 +89,7 @@ function TableScrollWrapper({
|
|
|
91
89
|
,
|
|
92
90
|
tabIndex: 0,
|
|
93
91
|
role: "group",
|
|
94
|
-
"aria-label":
|
|
92
|
+
"aria-label": "Table",
|
|
95
93
|
...restHtmlProps,
|
|
96
94
|
...mergeProps(themeProps('table-scroll-wrapper'), stylex.props(scrollWrapperStyles.base, scrollWrapperStyles.containerBleed, ...(pluginStyles ?? []))),
|
|
97
95
|
children: [beforeTable, children, afterTable]
|
|
@@ -113,7 +111,7 @@ function buildTableStylePlugin() {
|
|
|
113
111
|
...props.htmlProps,
|
|
114
112
|
className: existingClass ? `${existingClass} ${tableClass}` : tableClass
|
|
115
113
|
},
|
|
116
|
-
|
|
114
|
+
styles: [...props.styles, tableStyles.base]
|
|
117
115
|
};
|
|
118
116
|
}
|
|
119
117
|
};
|
|
@@ -595,7 +595,7 @@ export function useTableColumnResize(config) {
|
|
|
595
595
|
overlay: /*#__PURE__*/_jsxs(_Fragment, {
|
|
596
596
|
children: [props.overlay, handle]
|
|
597
597
|
}),
|
|
598
|
-
|
|
598
|
+
styles: [...props.styles, headerCellRelative.base]
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
601
|
}), [columnWidths, globalMinWidth, maxWidth, resizableColumns, measureRef]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableFiltering.d.ts","sourceRoot":"","sources":["../../../../src/Table/plugins/filtering/useTableFiltering.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useTableFiltering.d.ts","sourceRoot":"","sources":["../../../../src/Table/plugins/filtering/useTableFiltering.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,iBAAiB,EAGjB,iBAAiB,EASlB,MAAM,4BAA4B,CAAC;AAMpC,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAkDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChE,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;CACvC,CAAC,EACF,YAAY,EAAE,iBAAiB,GAC9B,iBAAiB,EAAE,CAoCrB;AAwDD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN,gBAAgB,GAAG,SAAS,CAC7B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAMzE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,uBAAuB;IACtC,kEAAkE;IAClE,OAAO,EAAE,gBAAgB,CAAC;IAC1B,6EAA6E;IAC7E,cAAc,EAAE,CACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,gBAAgB,GAAG,IAAI,KAC3B,IAAI,CAAC;IACV;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;;;;;OAQG;IACH,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAqrBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,MAAM,EAAE,uBAAuB,GAC9B,WAAW,CAAC,CAAC,CAAC,CAiGhB"}
|
|
@@ -27,7 +27,6 @@ import { Selector } from "../../../Selector/index.js";
|
|
|
27
27
|
import { MultiSelector } from "../../../MultiSelector/index.js";
|
|
28
28
|
import { Tokenizer } from "../../../Tokenizer/index.js";
|
|
29
29
|
import { proportional } from "../../columnUtils.js";
|
|
30
|
-
import { useTranslator } from "../../../i18n/index.js";
|
|
31
30
|
|
|
32
31
|
// =============================================================================
|
|
33
32
|
// Filter Value Types
|
|
@@ -289,23 +288,18 @@ function TextFilterControl({
|
|
|
289
288
|
size,
|
|
290
289
|
hasClear
|
|
291
290
|
}) {
|
|
292
|
-
const t = useTranslator();
|
|
293
291
|
const store = useFilterStore();
|
|
294
292
|
const config = store.getConfig();
|
|
295
293
|
const value = config.filters[columnKey];
|
|
296
294
|
const strValue = typeof value === 'string' ? value : '';
|
|
297
295
|
return /*#__PURE__*/_jsx(TextInput, {
|
|
298
|
-
label:
|
|
299
|
-
header
|
|
300
|
-
}),
|
|
296
|
+
label: `Filter ${header}`,
|
|
301
297
|
isLabelHidden: true,
|
|
302
298
|
value: strValue,
|
|
303
299
|
onChange: newValue => {
|
|
304
300
|
store.getConfig().onFilterChange(columnKey, newValue === '' ? null : newValue);
|
|
305
301
|
},
|
|
306
|
-
placeholder:
|
|
307
|
-
header
|
|
308
|
-
}),
|
|
302
|
+
placeholder: `Filter ${header}`,
|
|
309
303
|
size: size,
|
|
310
304
|
hasClear: hasClear
|
|
311
305
|
});
|
|
@@ -317,7 +311,6 @@ function NumberFilterControl({
|
|
|
317
311
|
size,
|
|
318
312
|
hasClear
|
|
319
313
|
}) {
|
|
320
|
-
const t = useTranslator();
|
|
321
314
|
const store = useFilterStore();
|
|
322
315
|
const config = store.getConfig();
|
|
323
316
|
const value = config.filters[columnKey];
|
|
@@ -328,15 +321,11 @@ function NumberFilterControl({
|
|
|
328
321
|
}, [store, columnKey]);
|
|
329
322
|
if (hasClear) {
|
|
330
323
|
return /*#__PURE__*/_jsx(NumberInput, {
|
|
331
|
-
label:
|
|
332
|
-
header
|
|
333
|
-
}),
|
|
324
|
+
label: `Filter ${header}`,
|
|
334
325
|
isLabelHidden: true,
|
|
335
326
|
value: numValue,
|
|
336
327
|
onChange: handleChange,
|
|
337
|
-
placeholder:
|
|
338
|
-
header
|
|
339
|
-
}),
|
|
328
|
+
placeholder: `Filter ${header}`,
|
|
340
329
|
min: operatorValue.minValue ?? null,
|
|
341
330
|
max: operatorValue.maxValue ?? null,
|
|
342
331
|
step: step,
|
|
@@ -345,15 +334,11 @@ function NumberFilterControl({
|
|
|
345
334
|
});
|
|
346
335
|
}
|
|
347
336
|
return /*#__PURE__*/_jsx(NumberInput, {
|
|
348
|
-
label:
|
|
349
|
-
header
|
|
350
|
-
}),
|
|
337
|
+
label: `Filter ${header}`,
|
|
351
338
|
isLabelHidden: true,
|
|
352
339
|
value: numValue,
|
|
353
340
|
onChange: handleChange,
|
|
354
|
-
placeholder:
|
|
355
|
-
header
|
|
356
|
-
}),
|
|
341
|
+
placeholder: `Filter ${header}`,
|
|
357
342
|
min: operatorValue.minValue ?? null,
|
|
358
343
|
max: operatorValue.maxValue ?? null,
|
|
359
344
|
step: step,
|
|
@@ -367,7 +352,6 @@ function SelectorFilterControl({
|
|
|
367
352
|
size,
|
|
368
353
|
hasClear
|
|
369
354
|
}) {
|
|
370
|
-
const t = useTranslator();
|
|
371
355
|
const store = useFilterStore();
|
|
372
356
|
const config = store.getConfig();
|
|
373
357
|
const value = config.filters[columnKey];
|
|
@@ -381,27 +365,23 @@ function SelectorFilterControl({
|
|
|
381
365
|
}, [store, columnKey]);
|
|
382
366
|
if (hasClear) {
|
|
383
367
|
return /*#__PURE__*/_jsx(Selector, {
|
|
384
|
-
label:
|
|
385
|
-
header
|
|
386
|
-
}),
|
|
368
|
+
label: `Filter ${header}`,
|
|
387
369
|
isLabelHidden: true,
|
|
388
370
|
options: options,
|
|
389
371
|
value: strValue || null,
|
|
390
372
|
onChange: handleChange,
|
|
391
|
-
placeholder:
|
|
373
|
+
placeholder: "All",
|
|
392
374
|
size: size,
|
|
393
375
|
hasClear: true
|
|
394
376
|
});
|
|
395
377
|
}
|
|
396
378
|
return /*#__PURE__*/_jsx(Selector, {
|
|
397
|
-
label:
|
|
398
|
-
header
|
|
399
|
-
}),
|
|
379
|
+
label: `Filter ${header}`,
|
|
400
380
|
isLabelHidden: true,
|
|
401
381
|
options: options,
|
|
402
382
|
value: strValue,
|
|
403
383
|
onChange: handleChange,
|
|
404
|
-
placeholder:
|
|
384
|
+
placeholder: "All",
|
|
405
385
|
size: size
|
|
406
386
|
});
|
|
407
387
|
}
|
|
@@ -412,7 +392,6 @@ function MultiSelectorFilterControl({
|
|
|
412
392
|
size,
|
|
413
393
|
hasClear
|
|
414
394
|
}) {
|
|
415
|
-
const t = useTranslator();
|
|
416
395
|
const store = useFilterStore();
|
|
417
396
|
const config = store.getConfig();
|
|
418
397
|
const value = config.filters[columnKey];
|
|
@@ -422,16 +401,14 @@ function MultiSelectorFilterControl({
|
|
|
422
401
|
label: v.label
|
|
423
402
|
}));
|
|
424
403
|
return /*#__PURE__*/_jsx(MultiSelector, {
|
|
425
|
-
label:
|
|
426
|
-
header
|
|
427
|
-
}),
|
|
404
|
+
label: `Filter ${header}`,
|
|
428
405
|
isLabelHidden: true,
|
|
429
406
|
options: options,
|
|
430
407
|
value: arrValue,
|
|
431
408
|
onChange: newValue => {
|
|
432
409
|
store.getConfig().onFilterChange(columnKey, newValue.length === 0 ? null : newValue);
|
|
433
410
|
},
|
|
434
|
-
placeholder:
|
|
411
|
+
placeholder: "All",
|
|
435
412
|
size: size,
|
|
436
413
|
hasSelectAll: true,
|
|
437
414
|
hasSearch: false,
|
|
@@ -444,13 +421,10 @@ function DateFilterControl({
|
|
|
444
421
|
size,
|
|
445
422
|
hasClear
|
|
446
423
|
}) {
|
|
447
|
-
const t = useTranslator();
|
|
448
424
|
const store = useFilterStore();
|
|
449
425
|
const value = store.getConfig().filters[columnKey];
|
|
450
426
|
return /*#__PURE__*/_jsx(DateInput, {
|
|
451
|
-
label:
|
|
452
|
-
header
|
|
453
|
-
}),
|
|
427
|
+
label: `Filter ${header}`,
|
|
454
428
|
isLabelHidden: true,
|
|
455
429
|
value: value ?? undefined,
|
|
456
430
|
onChange: newValue => {
|
|
@@ -466,13 +440,10 @@ function TimeFilterControl({
|
|
|
466
440
|
size,
|
|
467
441
|
hasClear
|
|
468
442
|
}) {
|
|
469
|
-
const t = useTranslator();
|
|
470
443
|
const store = useFilterStore();
|
|
471
444
|
const value = store.getConfig().filters[columnKey];
|
|
472
445
|
return /*#__PURE__*/_jsx(TimeInput, {
|
|
473
|
-
label:
|
|
474
|
-
header
|
|
475
|
-
}),
|
|
446
|
+
label: `Filter ${header}`,
|
|
476
447
|
isLabelHidden: true,
|
|
477
448
|
value: value ?? undefined,
|
|
478
449
|
onChange: newValue => {
|
|
@@ -489,7 +460,6 @@ function StringListFilterControl({
|
|
|
489
460
|
size,
|
|
490
461
|
hasClear
|
|
491
462
|
}) {
|
|
492
|
-
const t = useTranslator();
|
|
493
463
|
const store = useFilterStore();
|
|
494
464
|
const value = store.getConfig().filters[columnKey] ?? [];
|
|
495
465
|
|
|
@@ -504,9 +474,7 @@ function StringListFilterControl({
|
|
|
504
474
|
}), []);
|
|
505
475
|
const searchSource = operatorValue.searchSource ?? fallbackSource;
|
|
506
476
|
return /*#__PURE__*/_jsx(Tokenizer, {
|
|
507
|
-
label:
|
|
508
|
-
header
|
|
509
|
-
}),
|
|
477
|
+
label: `Filter ${header}`,
|
|
510
478
|
isLabelHidden: true,
|
|
511
479
|
searchSource: searchSource,
|
|
512
480
|
value: value.map(v => ({
|
|
@@ -604,7 +572,6 @@ function PopoverFilterTrigger({
|
|
|
604
572
|
header,
|
|
605
573
|
operatorValue
|
|
606
574
|
}) {
|
|
607
|
-
const t = useTranslator();
|
|
608
575
|
const store = useFilterStore();
|
|
609
576
|
const config = store.getConfig();
|
|
610
577
|
const value = config.filters[columnKey];
|
|
@@ -649,9 +616,7 @@ function PopoverFilterTrigger({
|
|
|
649
616
|
return /*#__PURE__*/_jsx(Popover, {
|
|
650
617
|
isOpen: isOpen,
|
|
651
618
|
onOpenChange: handleOpen,
|
|
652
|
-
label:
|
|
653
|
-
header
|
|
654
|
-
}),
|
|
619
|
+
label: `Filter ${header}`,
|
|
655
620
|
placement: "below",
|
|
656
621
|
alignment: "start",
|
|
657
622
|
content: /*#__PURE__*/_jsx(FilterStoreContext, {
|
|
@@ -670,7 +635,7 @@ function PopoverFilterTrigger({
|
|
|
670
635
|
className: "x78zum5 x1txdalj xtbrsbv"
|
|
671
636
|
},
|
|
672
637
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
673
|
-
label:
|
|
638
|
+
label: "Reset",
|
|
674
639
|
variant: "ghost",
|
|
675
640
|
size: "sm",
|
|
676
641
|
onClick: handleClear
|
|
@@ -679,7 +644,7 @@ function PopoverFilterTrigger({
|
|
|
679
644
|
className: "x98rzlu"
|
|
680
645
|
}
|
|
681
646
|
}), /*#__PURE__*/_jsx(Button, {
|
|
682
|
-
label:
|
|
647
|
+
label: "Apply",
|
|
683
648
|
variant: "primary",
|
|
684
649
|
size: "sm",
|
|
685
650
|
onClick: handleApply
|
|
@@ -689,9 +654,7 @@ function PopoverFilterTrigger({
|
|
|
689
654
|
}),
|
|
690
655
|
children: /*#__PURE__*/_jsx("button", {
|
|
691
656
|
type: "button",
|
|
692
|
-
"aria-label":
|
|
693
|
-
header
|
|
694
|
-
}),
|
|
657
|
+
"aria-label": `Filter ${header}`,
|
|
695
658
|
"aria-haspopup": "dialog",
|
|
696
659
|
...{
|
|
697
660
|
0: {
|