@trinityui/design-system 2.11.1 → 2.13.1
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 +2171 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +508 -28
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +17219 -9131
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +159 -77
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +81 -11
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +104 -16
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +47 -4
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +143 -8
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +18 -1
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +61 -2
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +9 -2
- package/dist/components/shared/safeContent.d.ts.map +1 -1
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13925 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +69 -69
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../src/accessibility.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../src/accessibility.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH;;GAEG;AACH,MAAM,WAAW,mBAA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AgC,CAAC,EAAE,CAAC,GAC5C,+BAA+B,CAAC,EAAE,CAAC,CAAC;AAGvC,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAC1D,OAAO,EAAE,gCAAgC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,GACrD,+BAA+B,CAAC,EAAE,CAAC,CAAC;AACvC,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import { jsx as F, jsxs as ue } from "react/jsx-runtime";
|
|
2
|
+
import * as $ from "react";
|
|
3
|
+
import G, { useState as k, useRef as w, useCallback as p, useEffect as K, useSyncExternalStore as le, useMemo as de } from "react";
|
|
4
|
+
import { isItemFocusable as V, useRovingTabIndexRoot as fe } from "@mui/utils/useRovingTabIndex";
|
|
5
|
+
import pe from "@mui/utils/useEventCallback";
|
|
6
|
+
import ve from "@mui/utils/useEnhancedEffect";
|
|
7
|
+
import { Button as me, Box as ge, useTheme as te } from "@mui/material";
|
|
8
|
+
const Q = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ Object.assign(/* @__PURE__ */ $.createContext(!1), { displayName: "DeprecationSuppressionContext" });
|
|
9
|
+
function be(e, n, t) {
|
|
10
|
+
process.env.NODE_ENV !== "production" && (Q.has(e) || (Q.add(e), console.warn(
|
|
11
|
+
`[trinity] \`${e}\` is deprecated and will be removed in ${n}. Use ${t} instead. See MIGRATION.md for details.`
|
|
12
|
+
)));
|
|
13
|
+
}
|
|
14
|
+
function Ie(e, n, t, o = !0) {
|
|
15
|
+
const s = $.useContext(he);
|
|
16
|
+
$.useEffect(() => {
|
|
17
|
+
!o || s || be(e, n, t);
|
|
18
|
+
}, [e, n, t, o, s]);
|
|
19
|
+
}
|
|
20
|
+
function ze(e, n) {
|
|
21
|
+
process.env.NODE_ENV !== "production" && (W.has(e) || (W.add(e), console.warn(`[trinity] ${n}`)));
|
|
22
|
+
}
|
|
23
|
+
function ne(e) {
|
|
24
|
+
return {
|
|
25
|
+
appChrome: e.drawer + 1,
|
|
26
|
+
aiPanel: e.drawer - 1,
|
|
27
|
+
aiFab: e.drawer + 1,
|
|
28
|
+
popover: e.modal,
|
|
29
|
+
toast: e.snackbar,
|
|
30
|
+
skipLink: e.tooltip + 1,
|
|
31
|
+
diagnostic: e.tooltip + 2
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function Re(e, n) {
|
|
35
|
+
const t = e.zIndex[n];
|
|
36
|
+
return typeof t == "number" ? t : ne(e.zIndex)[n];
|
|
37
|
+
}
|
|
38
|
+
function Ue(e) {
|
|
39
|
+
return e.zIndex = { ...ne(e.zIndex), ...e.zIndex }, e;
|
|
40
|
+
}
|
|
41
|
+
const ye = "MUI `Dialog`, `Popover`, `Menu` or a temporary `Drawer` (each traps focus), or `FocusTrap` from `@mui/material/Unstable_TrapFocus` for a custom surface", Ke = ({
|
|
42
|
+
enabled: e = !0,
|
|
43
|
+
initialFocus: n,
|
|
44
|
+
returnFocus: t = !0,
|
|
45
|
+
wrapFocus: o = !0
|
|
46
|
+
} = {}) => {
|
|
47
|
+
Ie("useFocusTrap", "v3.0", ye);
|
|
48
|
+
const s = w(null), r = w(null), [a, c] = k(!1), l = p(() => {
|
|
49
|
+
if (!s.current) return [];
|
|
50
|
+
const h = [
|
|
51
|
+
"a[href]",
|
|
52
|
+
"button:not([disabled])",
|
|
53
|
+
"input:not([disabled])",
|
|
54
|
+
"select:not([disabled])",
|
|
55
|
+
"textarea:not([disabled])",
|
|
56
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
57
|
+
].join(", ");
|
|
58
|
+
return Array.from(
|
|
59
|
+
s.current.querySelectorAll(h)
|
|
60
|
+
).filter((v) => v.offsetParent !== null);
|
|
61
|
+
}, []), g = p((h) => {
|
|
62
|
+
if (!(!a || !o) && h.key === "Tab") {
|
|
63
|
+
const v = l();
|
|
64
|
+
if (v.length === 0) return;
|
|
65
|
+
const m = v[0], C = v[v.length - 1];
|
|
66
|
+
h.shiftKey && document.activeElement === m ? (h.preventDefault(), C.focus()) : !h.shiftKey && document.activeElement === C && (h.preventDefault(), m.focus());
|
|
67
|
+
}
|
|
68
|
+
}, [a, o, l]), y = p(() => {
|
|
69
|
+
s.current && (r.current = document.activeElement, c(!0), setTimeout(() => {
|
|
70
|
+
n ? (typeof n == "string" ? s.current?.querySelector(n) : n)?.focus() : l()[0]?.focus();
|
|
71
|
+
}, 0));
|
|
72
|
+
}, [n, l]), T = p(() => {
|
|
73
|
+
c(!1), t && r.current && r.current.focus();
|
|
74
|
+
}, [t]);
|
|
75
|
+
return K(() => {
|
|
76
|
+
if (e && a)
|
|
77
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
78
|
+
}, [e, a, g]), {
|
|
79
|
+
containerRef: s,
|
|
80
|
+
activate: y,
|
|
81
|
+
deactivate: T,
|
|
82
|
+
isActive: a
|
|
83
|
+
};
|
|
84
|
+
}, re = "(prefers-reduced-motion: reduce)", je = `@media ${re}`, Z = () => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(re) : null, we = () => !1, Ee = () => {
|
|
85
|
+
let e = null;
|
|
86
|
+
return {
|
|
87
|
+
subscribe: (n) => {
|
|
88
|
+
const t = Z();
|
|
89
|
+
if (!t) return () => {
|
|
90
|
+
};
|
|
91
|
+
const o = (s) => {
|
|
92
|
+
e = s.matches, n();
|
|
93
|
+
};
|
|
94
|
+
return t.addEventListener("change", o), () => {
|
|
95
|
+
t.removeEventListener("change", o), e = null;
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
getSnapshot: () => e ?? Z()?.matches ?? !1
|
|
99
|
+
};
|
|
100
|
+
}, Fe = () => {
|
|
101
|
+
const [e] = k(Ee);
|
|
102
|
+
return le(e.subscribe, e.getSnapshot, we);
|
|
103
|
+
}, Ve = ({
|
|
104
|
+
targetId: e,
|
|
105
|
+
label: n = "Skip to main content",
|
|
106
|
+
sx: t
|
|
107
|
+
}) => {
|
|
108
|
+
const o = () => {
|
|
109
|
+
const r = document.getElementById(e);
|
|
110
|
+
r && (!r.hasAttribute("tabindex") && r.tabIndex < 0 && (r.setAttribute("tabindex", "-1"), r.addEventListener("blur", () => r.removeAttribute("tabindex"), { once: !0 })), r.focus());
|
|
111
|
+
}, s = (r) => {
|
|
112
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), o());
|
|
113
|
+
};
|
|
114
|
+
return /* @__PURE__ */ F(
|
|
115
|
+
me,
|
|
116
|
+
{
|
|
117
|
+
component: "a",
|
|
118
|
+
href: `#${e}`,
|
|
119
|
+
onClick: o,
|
|
120
|
+
onKeyDown: s,
|
|
121
|
+
sx: [
|
|
122
|
+
{
|
|
123
|
+
position: "absolute",
|
|
124
|
+
insetInlineStart: "-9999px",
|
|
125
|
+
top: "auto",
|
|
126
|
+
width: "1px",
|
|
127
|
+
height: "1px",
|
|
128
|
+
overflow: "hidden",
|
|
129
|
+
zIndex: (r) => Re(r, "skipLink"),
|
|
130
|
+
"&:focus": {
|
|
131
|
+
position: "fixed",
|
|
132
|
+
top: (r) => r.spacing(2),
|
|
133
|
+
insetInlineStart: (r) => r.spacing(2),
|
|
134
|
+
width: "auto",
|
|
135
|
+
height: "auto",
|
|
136
|
+
overflow: "visible",
|
|
137
|
+
padding: (r) => r.spacing(1.5, 3),
|
|
138
|
+
backgroundColor: "primary.main",
|
|
139
|
+
color: "primary.contrastText",
|
|
140
|
+
fontWeight: 600,
|
|
141
|
+
borderRadius: 2,
|
|
142
|
+
boxShadow: 3
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
...t === void 0 ? [] : Array.isArray(t) ? t : [t]
|
|
146
|
+
],
|
|
147
|
+
children: n
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}, oe = 50, se = 7e3;
|
|
151
|
+
function ce(e, n) {
|
|
152
|
+
const t = { polite: {}, assertive: {} };
|
|
153
|
+
let o = !1;
|
|
154
|
+
const s = (a) => {
|
|
155
|
+
const c = t[a];
|
|
156
|
+
c.show !== void 0 && clearTimeout(c.show), c.clear !== void 0 && clearTimeout(c.clear), t[a] = {};
|
|
157
|
+
}, r = (a, c) => {
|
|
158
|
+
const l = e(a);
|
|
159
|
+
l && (l.textContent = c);
|
|
160
|
+
};
|
|
161
|
+
return {
|
|
162
|
+
announce(a, c) {
|
|
163
|
+
o && !e(c)?.isConnected || (s(c), r(c, ""), a && (t[c].show = setTimeout(() => {
|
|
164
|
+
t[c].show = void 0, r(c, a);
|
|
165
|
+
const l = n();
|
|
166
|
+
Number.isFinite(l) && l > 0 && (t[c].clear = setTimeout(() => {
|
|
167
|
+
t[c].clear = void 0, r(c, "");
|
|
168
|
+
}, l));
|
|
169
|
+
}, oe)));
|
|
170
|
+
},
|
|
171
|
+
activate() {
|
|
172
|
+
o = !1;
|
|
173
|
+
},
|
|
174
|
+
dispose() {
|
|
175
|
+
o = !0, s("polite"), s("assertive");
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
const ie = /* @__PURE__ */ G.createContext(null), Ae = "data-trinity-live-region", B = (e) => ({ "aria-live": e, "aria-atomic": "true", [Ae]: e });
|
|
180
|
+
function He({
|
|
181
|
+
children: e,
|
|
182
|
+
clearAfterMs: n = se
|
|
183
|
+
}) {
|
|
184
|
+
const t = w(null), o = w(null), s = w(n);
|
|
185
|
+
K(() => {
|
|
186
|
+
s.current = n;
|
|
187
|
+
}, [n]);
|
|
188
|
+
const r = w(null), a = p(() => (r.current ?? (r.current = ce(
|
|
189
|
+
(l) => l === "assertive" ? o.current : t.current,
|
|
190
|
+
() => s.current
|
|
191
|
+
)), r.current), []);
|
|
192
|
+
K(() => {
|
|
193
|
+
const l = a();
|
|
194
|
+
return l.activate(), l.dispose;
|
|
195
|
+
}, [a]);
|
|
196
|
+
const c = p(
|
|
197
|
+
(l, g = "polite") => a().announce(l, g),
|
|
198
|
+
[a]
|
|
199
|
+
);
|
|
200
|
+
return /* @__PURE__ */ ue(ie.Provider, { value: c, children: [
|
|
201
|
+
e,
|
|
202
|
+
/* @__PURE__ */ F(J, { ref: t, ...B("polite") }),
|
|
203
|
+
/* @__PURE__ */ F(J, { ref: o, ...B("assertive") })
|
|
204
|
+
] });
|
|
205
|
+
}
|
|
206
|
+
let _ = null, H = null;
|
|
207
|
+
function Y(e) {
|
|
208
|
+
const n = document.createElement("span");
|
|
209
|
+
for (const [t, o] of Object.entries(B(e))) n.setAttribute(t, o);
|
|
210
|
+
for (const [t, o] of Object.entries(q))
|
|
211
|
+
n.style.setProperty(t.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`), String(o));
|
|
212
|
+
return document.body.appendChild(n), n;
|
|
213
|
+
}
|
|
214
|
+
function xe(e) {
|
|
215
|
+
return typeof document > "u" || !document.body ? null : ((!_ || !_.polite.isConnected || !_.assertive.isConnected) && (_?.polite.remove(), _?.assertive.remove(), _ = { polite: Y("polite"), assertive: Y("assertive") }), _[e]);
|
|
216
|
+
}
|
|
217
|
+
const De = (e, n = "polite") => {
|
|
218
|
+
typeof document > "u" || (H ?? (H = ce(xe, () => se)), H.announce(e, n));
|
|
219
|
+
};
|
|
220
|
+
function Ce() {
|
|
221
|
+
return G.useContext(ie) ?? De;
|
|
222
|
+
}
|
|
223
|
+
function $e(e = {}) {
|
|
224
|
+
const { role: n, politeness: t, relevant: o, atomic: s, busy: r } = e, a = n === "alert" ? "assertive" : t ?? "polite", c = n === void 0 ? { "aria-live": a } : { role: n, "aria-live": a };
|
|
225
|
+
return o !== void 0 && (c["aria-relevant"] = o), s !== void 0 && (c["aria-atomic"] = s), r && (c["aria-busy"] = !0), c;
|
|
226
|
+
}
|
|
227
|
+
const Be = ({
|
|
228
|
+
politeness: e = "polite",
|
|
229
|
+
atomic: n = !0,
|
|
230
|
+
relevant: t
|
|
231
|
+
} = {}) => {
|
|
232
|
+
const [o, s] = k(""), r = w(null), a = w(!1), c = Ce(), l = w(null), g = p(() => {
|
|
233
|
+
r.current !== null && (clearTimeout(r.current), r.current = null);
|
|
234
|
+
}, []);
|
|
235
|
+
K(() => g, [g]);
|
|
236
|
+
const y = p((m) => {
|
|
237
|
+
a.current = m !== null;
|
|
238
|
+
}, []), T = p(
|
|
239
|
+
(m, C) => {
|
|
240
|
+
const E = C?.politeness ?? e;
|
|
241
|
+
!(a.current && E === e) && E !== "off" && (l.current = E, c(m, E), a.current) || (g(), s(""), r.current = setTimeout(() => {
|
|
242
|
+
r.current = null, s(m);
|
|
243
|
+
}, oe));
|
|
244
|
+
},
|
|
245
|
+
[e, c, g]
|
|
246
|
+
), h = p(() => {
|
|
247
|
+
g(), s("");
|
|
248
|
+
const m = l.current;
|
|
249
|
+
m !== null && (l.current = null, c("", m));
|
|
250
|
+
}, [g, c]), v = {
|
|
251
|
+
...e === "off" ? {} : { role: e === "assertive" ? "alert" : "status" },
|
|
252
|
+
"aria-live": e,
|
|
253
|
+
"aria-atomic": n,
|
|
254
|
+
...t && { "aria-relevant": t },
|
|
255
|
+
ref: y
|
|
256
|
+
};
|
|
257
|
+
return {
|
|
258
|
+
announce: T,
|
|
259
|
+
clear: h,
|
|
260
|
+
message: o,
|
|
261
|
+
ariaProps: v
|
|
262
|
+
};
|
|
263
|
+
}, q = /* @__PURE__ */ Object.freeze({
|
|
264
|
+
position: "absolute",
|
|
265
|
+
width: "1px",
|
|
266
|
+
height: "1px",
|
|
267
|
+
padding: 0,
|
|
268
|
+
margin: "-1px",
|
|
269
|
+
overflow: "hidden",
|
|
270
|
+
clip: "rect(0, 0, 0, 0)",
|
|
271
|
+
whiteSpace: "nowrap",
|
|
272
|
+
border: 0
|
|
273
|
+
}), J = /* @__PURE__ */ G.forwardRef(
|
|
274
|
+
function({ children: n, as: t = "span", sx: o, ...s }, r) {
|
|
275
|
+
return /* @__PURE__ */ F(
|
|
276
|
+
ge,
|
|
277
|
+
{
|
|
278
|
+
...s,
|
|
279
|
+
component: t,
|
|
280
|
+
ref: r,
|
|
281
|
+
sx: o === void 0 ? q : [q, ...Array.isArray(o) ? o : [o]],
|
|
282
|
+
children: n
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
), X = (e) => !!e && (e.disabled === !0 || e.getAttribute("aria-disabled") === "true"), ee = (e, n, t) => {
|
|
287
|
+
if (t(e)) return e;
|
|
288
|
+
for (let o = 1; o < n; o += 1)
|
|
289
|
+
for (const s of [e + o, e - o])
|
|
290
|
+
if (s >= 0 && s < n && t(s)) return s;
|
|
291
|
+
return e;
|
|
292
|
+
}, Te = ({
|
|
293
|
+
items: e,
|
|
294
|
+
currentIndex: n = 0,
|
|
295
|
+
direction: t = "vertical",
|
|
296
|
+
wrap: o = !0,
|
|
297
|
+
onIndexChange: s
|
|
298
|
+
}) => {
|
|
299
|
+
const r = te().direction === "rtl", [a, c] = k(n), [l, g] = k(n);
|
|
300
|
+
n !== l && (g(n), c(n));
|
|
301
|
+
const y = Math.max(0, Math.min(a, e.length - 1)), [T, h] = k("");
|
|
302
|
+
ve(() => {
|
|
303
|
+
const d = e.map((R) => X(R.current) ? "1" : "0").join(""), A = d.includes("1") ? d : "";
|
|
304
|
+
h((R) => R === A ? R : A);
|
|
305
|
+
});
|
|
306
|
+
const v = p((d) => !X(e[d]?.current), [e]), m = p((d) => {
|
|
307
|
+
c(d), s?.(d), e[d]?.current?.focus();
|
|
308
|
+
}, [e, s]), C = p((d) => {
|
|
309
|
+
const { key: A } = d, R = e.length, O = t === "horizontal" || t === "both", N = t === "vertical" || t === "both", P = r ? "ArrowLeft" : "ArrowRight", j = r ? "ArrowRight" : "ArrowLeft", L = d.target instanceof Node ? d.target : null;
|
|
310
|
+
let b = L ? e.findIndex((u) => u.current === L) : -1;
|
|
311
|
+
b < 0 && L && (b = e.findIndex((u) => u.current?.contains(L) ?? !1)), b < 0 && (b = ee(y, R, v));
|
|
312
|
+
const z = (u) => {
|
|
313
|
+
let f = b;
|
|
314
|
+
for (let I = 0; I < R; I += 1) {
|
|
315
|
+
if (f += u, f < 0 || f >= R) {
|
|
316
|
+
if (!o) return b;
|
|
317
|
+
f = (f + R) % R;
|
|
318
|
+
}
|
|
319
|
+
if (v(f)) return f;
|
|
320
|
+
}
|
|
321
|
+
return b;
|
|
322
|
+
}, U = (u, f) => {
|
|
323
|
+
for (let I = u; I >= 0 && I < R; I += f)
|
|
324
|
+
if (v(I)) return I;
|
|
325
|
+
return b;
|
|
326
|
+
};
|
|
327
|
+
let i = b;
|
|
328
|
+
A === "ArrowDown" && N || A === P && O ? (d.preventDefault(), i = z(1)) : A === "ArrowUp" && N || A === j && O ? (d.preventDefault(), i = z(-1)) : A === "Home" ? (d.preventDefault(), i = U(0, 1)) : A === "End" && (d.preventDefault(), i = U(R - 1, -1)), i !== b && m(i);
|
|
329
|
+
}, [y, e, t, o, r, v, m]), E = ee(y, e.length, (d) => T[d] !== "1"), S = p((d) => d === E ? 0 : -1, [E]);
|
|
330
|
+
return {
|
|
331
|
+
focusedIndex: y,
|
|
332
|
+
setFocusedIndex: m,
|
|
333
|
+
handleKeyDown: C,
|
|
334
|
+
getTabIndex: S
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
function Se(e, n) {
|
|
338
|
+
if (e == null) return () => {
|
|
339
|
+
};
|
|
340
|
+
if (typeof e == "function") {
|
|
341
|
+
const t = e(n);
|
|
342
|
+
return typeof t == "function" ? t : () => {
|
|
343
|
+
e(null);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
return e.current = n, () => {
|
|
347
|
+
e.current = null;
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function Le(e) {
|
|
351
|
+
const {
|
|
352
|
+
orientation: n,
|
|
353
|
+
activeId: t,
|
|
354
|
+
defaultActiveId: o = null,
|
|
355
|
+
onActiveIdChange: s,
|
|
356
|
+
wrap: r = !0,
|
|
357
|
+
direction: a
|
|
358
|
+
} = e, c = te().direction, l = (a ?? c) === "rtl", g = p(
|
|
359
|
+
(i) => {
|
|
360
|
+
const u = o == null ? void 0 : i.find((f) => f.id === o && V(f));
|
|
361
|
+
return u ? u.id : i.find((f) => f.selected && V(f))?.id ?? null;
|
|
362
|
+
},
|
|
363
|
+
[o]
|
|
364
|
+
), y = fe({
|
|
365
|
+
orientation: n,
|
|
366
|
+
activeItemId: t,
|
|
367
|
+
getDefaultActiveItemId: g,
|
|
368
|
+
wrap: r,
|
|
369
|
+
isRtl: l
|
|
370
|
+
}), { registerItem: T, unregisterItem: h, setActiveItemId: v, getItemMap: m } = y, C = m().size > 0, E = C ? y.activeItemId : t ?? o ?? null, S = w(/* @__PURE__ */ new Map()), d = w(/* @__PURE__ */ new Map()), A = p(
|
|
371
|
+
(i, u, f, I) => {
|
|
372
|
+
let x;
|
|
373
|
+
const D = (M) => {
|
|
374
|
+
if (x?.(), x = void 0, M == null) return;
|
|
375
|
+
d.current.set(i, M), T({ id: i, element: M, disabled: u, focusableWhenDisabled: !1, selected: f });
|
|
376
|
+
const ae = Se(I, M);
|
|
377
|
+
return x = () => {
|
|
378
|
+
ae(), d.current.get(i) === M && (d.current.delete(i), queueMicrotask(() => {
|
|
379
|
+
d.current.has(i) || (h(i), S.current.get(i)?.ref === D && S.current.delete(i));
|
|
380
|
+
}));
|
|
381
|
+
}, () => {
|
|
382
|
+
x?.(), x = void 0;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
return D;
|
|
386
|
+
},
|
|
387
|
+
[T, h]
|
|
388
|
+
), R = p(
|
|
389
|
+
(i, u = {}) => {
|
|
390
|
+
const f = u.disabled ?? !1, I = u.selected ?? !1, x = u.ref;
|
|
391
|
+
let D = S.current.get(i);
|
|
392
|
+
(!D || D.disabled !== f || D.selected !== I || D.consumerRef !== x) && (D = { disabled: f, selected: I, consumerRef: x, ref: A(i, f, I, x) }, S.current.set(i, D));
|
|
393
|
+
const M = i === E && !f ? 0 : -1;
|
|
394
|
+
return { ref: D.ref, tabIndex: M };
|
|
395
|
+
},
|
|
396
|
+
[A, E]
|
|
397
|
+
), { getContainerProps: O } = y, N = p(
|
|
398
|
+
(i) => {
|
|
399
|
+
const { onFocus: u, onKeyDown: f, ref: I, ...x } = i ?? {};
|
|
400
|
+
return { ...x, ...O(I, u, f) };
|
|
401
|
+
},
|
|
402
|
+
[O]
|
|
403
|
+
), P = p(
|
|
404
|
+
(i) => {
|
|
405
|
+
const u = m().get(i);
|
|
406
|
+
!u?.element?.isConnected || !V(u) || (u.element.focus(), v(i));
|
|
407
|
+
},
|
|
408
|
+
[m, v]
|
|
409
|
+
), j = p(
|
|
410
|
+
(i, u) => {
|
|
411
|
+
u?.focus ? P(i) : v(i);
|
|
412
|
+
},
|
|
413
|
+
[P, v]
|
|
414
|
+
), L = pe((i) => {
|
|
415
|
+
s?.(i);
|
|
416
|
+
}), b = C ? y.activeItemId : null, z = w(null), U = w(t);
|
|
417
|
+
return K(() => {
|
|
418
|
+
const i = t !== U.current;
|
|
419
|
+
U.current = t;
|
|
420
|
+
const u = z.current;
|
|
421
|
+
u !== b && (z.current = b, u != null && b != null && !i && L(b));
|
|
422
|
+
}, [b, t, L]), de(
|
|
423
|
+
() => ({ activeId: E, setActiveId: j, getContainerProps: N, getItemProps: R, focusItem: P }),
|
|
424
|
+
[E, j, N, R, P]
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
function qe(e) {
|
|
428
|
+
const n = e.items !== void 0, [t] = k(n);
|
|
429
|
+
if (t !== n)
|
|
430
|
+
throw new Error(
|
|
431
|
+
"useRovingTabIndex: the options switched between the legacy form (`items`) and the registry form after mount. The form is fixed on the first render; remount the component (change its `key`) to switch."
|
|
432
|
+
);
|
|
433
|
+
return t ? (
|
|
434
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks -- the form is fixed on mount
|
|
435
|
+
Te(e)
|
|
436
|
+
) : (
|
|
437
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks -- the form is fixed on mount
|
|
438
|
+
Le(e)
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
export {
|
|
442
|
+
he as D,
|
|
443
|
+
He as L,
|
|
444
|
+
je as R,
|
|
445
|
+
Ve as S,
|
|
446
|
+
J as V,
|
|
447
|
+
Ce as a,
|
|
448
|
+
Ie as b,
|
|
449
|
+
Ue as c,
|
|
450
|
+
qe as d,
|
|
451
|
+
Be as e,
|
|
452
|
+
Ke as f,
|
|
453
|
+
Re as g,
|
|
454
|
+
$e as l,
|
|
455
|
+
Fe as u,
|
|
456
|
+
q as v,
|
|
457
|
+
ze as w
|
|
458
|
+
};
|