@trinityui/design-system 2.11.0 → 2.13.0
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 +2209 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +523 -21
- 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 +17230 -9097
- 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 +192 -72
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
- 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 +91 -13
- 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 +107 -17
- 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 +52 -5
- 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 +135 -7
- 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 +32 -2
- 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/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.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 +6 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +49 -1
- 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 +136 -0
- package/dist/components/shared/safeContent.d.ts.map +1 -0
- 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 +13923 -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 +792 -0
- 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
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
* <StatusIndicator variant="dot" status="error" />
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
+
* This file is also the registry of internal names (ADR-02, D-01). Every name it
|
|
18
|
+
* exports, value or type, must stay off every package entry:
|
|
19
|
+
* src/__tests__/internal-api-boundary.test.ts checks the runtime exports and
|
|
20
|
+
* scripts/lib/declaration-boundary.mjs checks the built declarations. Nothing
|
|
21
|
+
* imports this barrel: consumers and sibling blocks import a block by its direct
|
|
22
|
+
* module path, which avoids ESM cycles. Use `export { … } from` lines only (no
|
|
23
|
+
* `export *`), so the checks can read the names.
|
|
24
|
+
*
|
|
17
25
|
* @internal
|
|
18
26
|
* @module internal
|
|
19
27
|
*/
|
|
@@ -24,4 +32,83 @@ export type { StatusChipProps, InlineStatusProps } from '../StatusIndicator/Chip
|
|
|
24
32
|
export { IconIndicator, ShapeIndicator, StatusDot } from '../StatusIndicator/Indicators';
|
|
25
33
|
export type { IconIndicatorProps, ShapeIndicatorProps, StatusDotProps } from '../StatusIndicator/Indicators';
|
|
26
34
|
export { CircleShape, SquareShape, DiamondShape, TriangleShape, HexagonShape, ShapeComponents, type ShapeProps, } from '../StatusIndicator/Shapes';
|
|
35
|
+
export { useRootProps, joinIds, isOwnedAttribute, warnOwnedAttributes, OWNED_ATTRIBUTES, __resetOwnedAttributeWarnings, } from '../shared/rootProps';
|
|
36
|
+
export type { TrinityRootProps, UseRootPropsOptions, RootPropsResult, IdList } from '../shared/rootProps';
|
|
37
|
+
export { mergeSx } from '../shared/mergeSx';
|
|
38
|
+
export type { SxPart } from '../shared/mergeSx';
|
|
39
|
+
export { mergeSlotProps } from '../shared/mergeSlotProps';
|
|
40
|
+
export type { SlotOwnProps, MergeSlotPropsOptions } from '../shared/mergeSlotProps';
|
|
41
|
+
export { containerWrapperSx, containerQueryWidth, containerUp, containerDown, type ContainerQuerySize, } from '../shared/containerQueries';
|
|
42
|
+
export { useOverflow } from '../shared/useOverflow';
|
|
43
|
+
export type { OverflowAxis, UseOverflowOptions, UseOverflowResult } from '../shared/useOverflow';
|
|
44
|
+
export { useContainerInlineSize } from '../shared/useContainerInlineSize';
|
|
45
|
+
export type { UseContainerInlineSizeOptions } from '../shared/useContainerInlineSize';
|
|
46
|
+
export { headingComponent, offsetHeadingComponent, type HeadingOffset, type HeadingElement, } from '../shared/headingLevel';
|
|
47
|
+
export { BidiIsolate } from '../shared/bidi';
|
|
48
|
+
export type { BidiIsolateProps } from '../shared/bidi';
|
|
49
|
+
export { isolateText, BIDI_ISOLATE_CONTROLS } from '../shared/bidiText';
|
|
50
|
+
export type { BidiDirection } from '../shared/bidiText';
|
|
51
|
+
export { occurrenceKeys } from '../shared/occurrenceKeys';
|
|
52
|
+
export { getInitials } from '../shared/getInitials';
|
|
53
|
+
export { getResizeKeyTarget, RESIZE_KEY_STEP, RESIZE_KEY_LARGE_STEP } from '../shared/resizeKeyboard';
|
|
54
|
+
export type { ResizeOrientation, ResizeGrowDirection, ResizeKeyOptions } from '../shared/resizeKeyboard';
|
|
55
|
+
export { toMs, useMotionTimeout, reducedMotion, keyframes } from '../shared/motion';
|
|
56
|
+
export { themeTransitions, reducedMotionBackstop, ESSENTIAL_MOTION_CLASS, REDUCED_MOTION_DURATION, } from '../shared/motion';
|
|
57
|
+
export { decodeEntities, isSafeHref, isSafeSrc, isRemoteSrc, warnUnsafeUrl, __resetUnsafeUrlWarnings, sanitizeInlineStyle, tokenizeHtml, renderSafeHtml, DROP_WITH_CONTENT_TAGS, DEFAULT_ALLOWED_TAGS, } from '../shared/safeContent';
|
|
58
|
+
export type { SafeStyleMap, SafeHtmlTag, RenderSafeHtmlOptions } from '../shared/safeContent';
|
|
59
|
+
export { isRtl, inlineSign, rotateInline, translateInlineStart } from '../shared/direction';
|
|
60
|
+
export type { DirectionSource } from '../shared/direction';
|
|
61
|
+
export { useCopyAction } from '../shared/useCopyAction';
|
|
62
|
+
export type { UseCopyActionOptions, UseCopyActionResult, CopyActionStatus } from '../shared/useCopyAction';
|
|
63
|
+
export { FocusTrap, TABBABLE_SELECTOR, firstTabbable } from '../shared/focusTrap';
|
|
64
|
+
export type { FocusTrapProps } from '../shared/focusTrap';
|
|
65
|
+
export { MetaChip } from '../MetaChip/MetaChip';
|
|
66
|
+
export type { MetaChipProps, MetaChipOwnProps, MetaChipTone, MetaChipColors } from '../MetaChip/MetaChip';
|
|
67
|
+
export { KeyValueList } from '../KeyValueList/KeyValueList';
|
|
68
|
+
export type { KeyValueListProps, KeyValueListOwnProps, KeyValueListItem, KeyValueListLayout } from '../KeyValueList/KeyValueList';
|
|
69
|
+
export { CopyButton } from '../CopyButton/CopyButton';
|
|
70
|
+
export type { CopyButtonProps, CopyButtonOwnProps, CopyButtonSource, CopyButtonLabels } from '../CopyButton/CopyButton';
|
|
71
|
+
export { CodeBlock } from '../CodeBlock/CodeBlock';
|
|
72
|
+
export type { CodeBlockProps, CodeBlockOwnProps, CodeBlockContent, CodeBlockLabels } from '../CodeBlock/CodeBlock';
|
|
73
|
+
export { Disclosure } from '../Disclosure/Disclosure';
|
|
74
|
+
export type { DisclosureProps, DisclosureOwnProps } from '../Disclosure/Disclosure';
|
|
75
|
+
export { ChoiceChips } from '../ChoiceChips/ChoiceChips';
|
|
76
|
+
export type { ChoiceChipsProps, ChoiceChipsBaseProps, ChoiceChipsSingleProps, ChoiceChipsMultipleProps, ChoiceChipsOption, ChoiceChipsActions } from '../ChoiceChips/ChoiceChips';
|
|
77
|
+
export { InlineEditableText } from '../InlineEditableText/InlineEditableText';
|
|
78
|
+
export type { InlineEditableTextProps, InlineEditableTextBaseProps, InlineEditableTextButtonProps, InlineEditableTextExternalProps, InlineEditableTextLabels, InlineEditableTextEditingReason } from '../InlineEditableText/InlineEditableText';
|
|
79
|
+
export { StepList } from '../StepList/StepList';
|
|
80
|
+
export type { StepListItem, StepListOwnProps, StepListProps, StepListSlot } from '../StepList/StepList';
|
|
81
|
+
export { StepStatusMarker } from '../StepList/StepStatusMarker';
|
|
82
|
+
export type { StepStatusMarkerProps } from '../StepList/StepStatusMarker';
|
|
83
|
+
export { STEP_STATUS_CATALOG, DEFAULT_STEP_STATUS_LABELS } from '../StepList/stepStatus';
|
|
84
|
+
export type { StepListStatus } from '../StepList/stepStatus';
|
|
85
|
+
export { DetailsPopover, useDetailsPopover } from '../DetailsPopover/DetailsPopover';
|
|
86
|
+
export type { DetailsPopoverProps, DetailsPopoverOwnProps, DetailsPopoverName, DetailsPopoverChangeReason, UseDetailsPopoverOptions, UseDetailsPopoverResult, } from '../DetailsPopover/DetailsPopover';
|
|
87
|
+
export { DeprecationSuppressionContext, useDeprecationWarning, warnOnce, warnDeprecated, __resetDevWarnings, } from '../shared/warnDeprecated';
|
|
88
|
+
export { useFocusOnReplace } from '../../hooks/useFocusOnReplace';
|
|
89
|
+
export type { FocusOnReplaceTarget, UseFocusOnReplaceOptions, UseFocusOnReplaceResult } from '../../hooks/useFocusOnReplace';
|
|
90
|
+
export { createStorageStore } from '../../hooks/storageStore';
|
|
91
|
+
export type { StorageArea, StorageStore } from '../../hooks/storageStore';
|
|
92
|
+
export { primaryActionContainerSx, primaryActionOverlaySx, primaryActionContentSx, PRIMARY_ACTION_INTERACTIVE_SELECTOR, } from '../shared/primaryAction';
|
|
93
|
+
export { AsyncOutcomeAlert } from '../shared/AsyncOutcomeAlert';
|
|
94
|
+
export type { AsyncOutcomeAlertProps } from '../shared/AsyncOutcomeAlert';
|
|
95
|
+
export { targetSizeHitAreaSx, TARGET_SIZE_FLOOR_PX } from '../shared/targetSize';
|
|
96
|
+
export { InThreadContext } from '../AI/InThreadContext';
|
|
97
|
+
export { MessageActionButton } from '../AI/MessageActionButton';
|
|
98
|
+
export type { BuiltInActionSpec } from '../AI/MessageActionButton';
|
|
99
|
+
export { getResponsePlainText } from '../AI/utils/responseText';
|
|
100
|
+
export { AI_AVATAR_SIZE_PX } from '../AI/AIAvatar';
|
|
101
|
+
export { getMessageContentInset } from '../AI/AIMessage';
|
|
102
|
+
export { AIBlockRendererProvider, useBlockRenderer, useBlockRendererMap, type AIBlockRendererMap, type AIBlockRendererProviderProps, } from '../AI/blockRendererContext';
|
|
103
|
+
export { BlockErrorBoundary, BlockUnavailable, type BlockErrorBoundaryProps, type BlockErrorContext, type BlockUnavailableProps, } from '../AI/BlockErrorBoundary';
|
|
104
|
+
export { queryBlockRenderer, clarificationBlockRenderer } from '../AI/moleculeBlockRenderers';
|
|
105
|
+
export { useBlockReadyAnnouncement, BlockReadyAnnouncementSuppressed, type UseBlockReadyAnnouncementOptions, } from '../AI/utils/blockReady';
|
|
106
|
+
export { getPendingRequiredClarification, useRequiredClarificationGate, type BlockGateMessage, type MessageBlockEventHandler, type RequiredClarificationGate, } from '../AI/utils/blocks';
|
|
107
|
+
export { planReviewBlockRenderer } from '../AI/planReviewBlockRenderer';
|
|
108
|
+
export { createStringsContext, mergeStrings, contentHash, useIdentityChurnWarning, type DeepPartial, type StringsProviderProps, type StringsContextKit, type StringsContextOptions, } from '../shared/createStringsContext';
|
|
109
|
+
export { DEFAULT_AI_STRINGS } from '../AI/strings/defaults';
|
|
110
|
+
export { AIStringsKit, AIThresholdsContext, AILocaleContext, AITimeZoneContext, AIInteractionContext, stripInteractionContent, type AIInteractionContextValue, } from '../AI/AIConfigContext';
|
|
111
|
+
export { parseMarkdown, parseInlineMarkdown, type MarkdownElementType, type ParsedElement, type InlinePart, LEGACY_INLINE_SYNTAX, type InlineSyntax, type InlineScanOptions, DEFAULT_INLINE_SYNTAX, CITATION_INLINE_SYNTAX, TRAILING_PARTIAL_CITATION, splitCitations, citationsToPlainText, type CitationRun, type SplitCitationsOptions, type CitationPlainTextOptions, } from '../AI/AITextBlock.parser';
|
|
112
|
+
export { AIResponseSourcesContext, AIResponseSourcesProvider, useResponseSources, useIsQueryRegistered, indexResponseSources, createQueryRegistry, cellKey, pointKey, type AIResponseSourcesProviderProps, type ResponseSourcesContextValue, type ResponseSourcesIndex, type QueryRegistry, type QueryRegistration, } from '../AI/AIResponseSourcesContext';
|
|
113
|
+
export { HostedFeedbackContext, useHostedFeedback } from '../AI/AIFeedbackHostContext';
|
|
27
114
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/internal/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/internal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAQH,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjF,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGhG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACzF,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG7G,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,KAAK,UAAU,GAChB,MAAM,2BAA2B,CAAC;AAiBnC,OAAO,EACL,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAIpF,OAAO,EACL,kBAAkB,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OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EAEf,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview A Menu `list` slot that renders a heading above the list instead of inside it.
|
|
3
|
+
* @module components/navigation/MenuListWithHeading
|
|
4
|
+
*
|
|
5
|
+
* A heading placed as a child of a MUI Menu ends up inside the `role="menu"` or
|
|
6
|
+
* `role="listbox"` element, where only items may live (axe `aria-required-children`, B-37).
|
|
7
|
+
* Passing this component as `slots.list` keeps MUI Menu (its focus management, keyboard model
|
|
8
|
+
* and `MuiMenu-paper` classes) and renders the heading before the list, naming the list through
|
|
9
|
+
* `aria-labelledby` with an id from `useId`:
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Menu
|
|
13
|
+
* slots={{ list: MenuListWithHeading }}
|
|
14
|
+
* slotProps={{ list: { heading: 'Switch client', role: 'listbox' } as MenuListWithHeadingSlotProps }}
|
|
15
|
+
* >
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import { type MenuListProps, type SxProps, type Theme } from '@mui/material';
|
|
20
|
+
/** The slot props MenuListWithHeading reads on top of MenuList's. */
|
|
21
|
+
export interface MenuListWithHeadingSlotProps extends Partial<MenuListProps> {
|
|
22
|
+
/** Shown above the list, outside it; it names the list. */
|
|
23
|
+
heading: React.ReactNode;
|
|
24
|
+
/** Styles of the heading's box. @default { px: 2, pt: 2.5, pb: 1.5 } */
|
|
25
|
+
headingSx?: SxProps<Theme>;
|
|
26
|
+
}
|
|
27
|
+
interface MenuListWithHeadingProps extends MenuListProps, Omit<MenuListWithHeadingSlotProps, keyof MenuListProps> {
|
|
28
|
+
/** Passed by MUI's slot machinery; not a DOM attribute. */
|
|
29
|
+
ownerState?: unknown;
|
|
30
|
+
}
|
|
31
|
+
export declare const MenuListWithHeading: React.ForwardRefExoticComponent<Omit<MenuListWithHeadingProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=MenuListWithHeading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuListWithHeading.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/MenuListWithHeading.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE5F,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,OAAO,CAAC,aAAa,CAAC;IAC1E,2DAA2D;IAC3D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC5B;AAED,UAAU,wBAAyB,SAAQ,aAAa,EAAE,IAAI,CAAC,4BAA4B,EAAE,MAAM,aAAa,CAAC;IAC/G,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAQD,eAAO,MAAM,mBAAmB,gHAiB/B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The client picker's built-in strings, shared by ClientMenu, TopNavHeader and
|
|
3
|
+
* TopNavWithSidebar (B-37).
|
|
4
|
+
* @module components/navigation/clientSelectorLabels
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The default name of a client picker's trigger: the action first, then the current client, in
|
|
8
|
+
* sentence case (MICROCOPY: no "click").
|
|
9
|
+
*/
|
|
10
|
+
export declare const defaultClientSelectorLabel: (client: string) => string;
|
|
11
|
+
/** The client list's heading, which also names the listbox. */
|
|
12
|
+
export declare const CLIENT_LIST_HEADING = "Switch client";
|
|
13
|
+
//# sourceMappingURL=clientSelectorLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientSelectorLabels.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/clientSelectorLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,KAAG,MAA6C,CAAC;AAE1G,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,kBAAkB,CAAC"}
|
|
@@ -44,6 +44,12 @@ export interface ClientMenuProps {
|
|
|
44
44
|
onButtonClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
45
45
|
onClose: () => void;
|
|
46
46
|
onSelect: (client: Client) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Accessible name of the trigger, from the current client.
|
|
49
|
+
* @default (client) => `Switch client, current: ${client}`
|
|
50
|
+
* @since 2.13.0
|
|
51
|
+
*/
|
|
52
|
+
clientSelectorLabel?: (client: string) => string;
|
|
47
53
|
}
|
|
48
54
|
export declare const ClientMenu: React.ForwardRefExoticComponent<ClientMenuProps & React.RefAttributes<HTMLButtonElement>>;
|
|
49
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAUtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,yFAQvB,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM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,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,yFA+FnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4BtD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AsyncOutcomeAlert: the one inline error surface for a failed async action (ADR-36 (4)).
|
|
3
|
+
* @module components/shared/AsyncOutcomeAlert
|
|
4
|
+
*
|
|
5
|
+
* @internal — not part of the public API; see ADR-02
|
|
6
|
+
*
|
|
7
|
+
* A surface that runs an action through `useAsyncAction` (B-07) renders this
|
|
8
|
+
* below its controls when the action fails: an MUI Alert (severity error,
|
|
9
|
+
* theme colours only) with the message and, when the action can run again, a
|
|
10
|
+
* retry button. It holds no built-in strings: the surface passes the message
|
|
11
|
+
* (MICROCOPY's "what happened / what to do" form) and the button text.
|
|
12
|
+
*
|
|
13
|
+
* - Announcement: the message is announced once, assertively, through
|
|
14
|
+
* `useAnnounce` (B-04), so it reaches the nearest `LiveRegionProvider` (a
|
|
15
|
+
* Modal or Popover paper) or the document-level region. The Alert itself
|
|
16
|
+
* carries no `role="alert"` (G-OD9): inside a chat log or a live container
|
|
17
|
+
* an implicit live role would announce twice or nest live regions. A new
|
|
18
|
+
* message text is announced again; a re-render with the same text is not.
|
|
19
|
+
* - Focus (ADR-31, ADR-36 (1)): it never steals focus. When the Alert appears
|
|
20
|
+
* and nothing has focus (the control that failed was removed), focus moves to
|
|
21
|
+
* the Alert. After the retry button is pressed, if the button goes away (the
|
|
22
|
+
* surface removes the Alert, or renders it again without a retry), focus
|
|
23
|
+
* moves to `focusFallbackRef`, else to the Alert while it is still shown.
|
|
24
|
+
* - Root props: `className`, `sx`, `style`, `ref`, `data-*` and `aria-*` reach
|
|
25
|
+
* the Alert root. `role` and `tabIndex` are owned.
|
|
26
|
+
* - Narrow hosts (a 360px popover, a 320px panel): the retry button wraps below
|
|
27
|
+
* the message once the message would get less than 12rem, and long words
|
|
28
|
+
* wrap, so the message never becomes a narrow box that scrolls sideways
|
|
29
|
+
* (MUI's message is `overflow: auto`, which axe then reports as a
|
|
30
|
+
* scrollable region with nothing focusable in it). Wide hosts look the same:
|
|
31
|
+
* the button stays at the inline end.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* const submitRef = React.useRef<HTMLButtonElement>(null);
|
|
36
|
+
* const save = useAsyncAction(onSave);
|
|
37
|
+
* {save.status === 'error' && (
|
|
38
|
+
* <AsyncOutcomeAlert
|
|
39
|
+
* message={strings.saveFailed} // "The changes were not saved. Check your connection and try again."
|
|
40
|
+
* retryLabel={strings.tryAgain} // "Try again"
|
|
41
|
+
* onRetry={() => save.run(values)}
|
|
42
|
+
* error={save.error}
|
|
43
|
+
* focusFallbackRef={submitRef}
|
|
44
|
+
* />
|
|
45
|
+
* )}
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
import * as React from 'react';
|
|
49
|
+
import { type SxProps, type Theme } from '@mui/material';
|
|
50
|
+
/** Props of `AsyncOutcomeAlert` that every variant shares. */
|
|
51
|
+
interface AsyncOutcomeAlertBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'role' | 'tabIndex' | 'onError' | 'color'> {
|
|
52
|
+
/** What happened and what to do next. Announced assertively when it appears or changes. */
|
|
53
|
+
message: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* The error the action reported. It is never rendered (it may hold
|
|
56
|
+
* internals); pass it so developer tools show the cause next to the message.
|
|
57
|
+
*/
|
|
58
|
+
error?: unknown;
|
|
59
|
+
/**
|
|
60
|
+
* Where focus goes when the retry button disappears after it was pressed
|
|
61
|
+
* (the Alert is removed, or shown again without a retry). Usually the
|
|
62
|
+
* control that started the action. Without it, focus goes to the Alert
|
|
63
|
+
* while it is still shown.
|
|
64
|
+
*/
|
|
65
|
+
focusFallbackRef?: React.RefObject<HTMLElement | null>;
|
|
66
|
+
/** Styles for the Alert root, merged after the defaults. */
|
|
67
|
+
sx?: SxProps<Theme>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props of `AsyncOutcomeAlert`. `retryLabel` is required when `onRetry` is set:
|
|
71
|
+
* the component has no built-in strings.
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export type AsyncOutcomeAlertProps = AsyncOutcomeAlertBaseProps & ({
|
|
76
|
+
/** Runs the failed action again. Shows the retry button. */
|
|
77
|
+
onRetry: () => void;
|
|
78
|
+
/** The retry button text, for example "Try again". */
|
|
79
|
+
retryLabel: string;
|
|
80
|
+
} | {
|
|
81
|
+
onRetry?: undefined;
|
|
82
|
+
retryLabel?: undefined;
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* The inline error surface for a failed async action (ADR-36 (4)).
|
|
86
|
+
*
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
export declare const AsyncOutcomeAlert: React.ForwardRefExoticComponent<AsyncOutcomeAlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
export {};
|
|
91
|
+
//# sourceMappingURL=AsyncOutcomeAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsyncOutcomeAlert.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AsyncOutcomeAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"TrinityIconSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityIconSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsExD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Bidi isolation for text that is not written in the UI language (E-48+;
|
|
3
|
+
* docs/RTL.md, "Mixed-direction text").
|
|
4
|
+
* @module components/shared/bidi
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* A value that comes from a model, a user or a data source can be in any script. Placed next to
|
|
9
|
+
* a label in the UI's language, its neutral characters (punctuation, spaces, brackets, digits
|
|
10
|
+
* at the edges) take their direction from the label's paragraph and reorder: in an Arabic UI,
|
|
11
|
+
* `v2.1 (beta)!` shows its `!` before the `v`. Isolating the value lets its own first strong
|
|
12
|
+
* character decide its direction and keeps it from reordering the label around it.
|
|
13
|
+
*
|
|
14
|
+
* - {@link BidiIsolate}: the element form, `<span dir="auto">` with `unicode-bidi: isolate`.
|
|
15
|
+
* - `isolateText` (./bidiText.ts): the string form, for text that must stay a string
|
|
16
|
+
* (`aria-label`, `title`, live-region announcements): the value between Unicode isolate
|
|
17
|
+
* controls. It has its own module so this one exports only a component (react-refresh).
|
|
18
|
+
*
|
|
19
|
+
* Isolate values, never labels: a label is authored in the UI language and follows the page.
|
|
20
|
+
* It lives here, in src/components/shared/, so the shared blocks (MetaChip, KeyValueList) can
|
|
21
|
+
* import it (src/__tests__/shared-block-layering.test.ts).
|
|
22
|
+
*/
|
|
23
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
24
|
+
import type { BidiDirection } from './bidiText';
|
|
25
|
+
/** Props of {@link BidiIsolate}. @internal */
|
|
26
|
+
export interface BidiIsolateProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'dir'> {
|
|
27
|
+
/** The value to isolate: model, user or data text. */
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* 'auto' (the default): the value's first strong character decides, which is right for text
|
|
31
|
+
* in an unknown script. 'ltr' for content that is always left to right whatever its first
|
|
32
|
+
* character: code, URLs, e-mail addresses, file paths and identifiers. 'rtl' only for a value
|
|
33
|
+
* known to be right to left.
|
|
34
|
+
* @default 'auto'
|
|
35
|
+
*/
|
|
36
|
+
dir?: BidiDirection;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* An inline bidi isolate: `<span dir="auto">` with `unicode-bidi: isolate`. Wrap the value, not
|
|
40
|
+
* the label: `{label}: <BidiIsolate>{value}</BidiIsolate>`. It adds no box, colour or spacing.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare const BidiIsolate: import("react").ForwardRefExoticComponent<BidiIsolateProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
44
|
+
//# sourceMappingURL=bidi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bidi.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,8CAA8C;AAC9C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC;IACpF,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,8GAKtB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The string form of bidi isolation (E-48+; docs/RTL.md, "Mixed-direction text"),
|
|
3
|
+
* for text that cannot hold markup. The element form is `BidiIsolate` in ./bidi.tsx.
|
|
4
|
+
* @module components/shared/bidiText
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*/
|
|
8
|
+
/** The direction of an isolated value: 'auto' lets its first strong character decide. */
|
|
9
|
+
export type BidiDirection = 'auto' | 'ltr' | 'rtl';
|
|
10
|
+
/** First strong isolate, left-to-right isolate, right-to-left isolate, pop directional isolate. */
|
|
11
|
+
export declare const BIDI_ISOLATE_CONTROLS: Readonly<{
|
|
12
|
+
auto: "";
|
|
13
|
+
ltr: "";
|
|
14
|
+
rtl: "";
|
|
15
|
+
pop: "";
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* The string form of {@link BidiIsolate}: the value between Unicode isolate controls (U+2068
|
|
19
|
+
* FIRST STRONG ISOLATE, or U+2066 / U+2067 for a fixed direction, then U+2069 POP DIRECTIONAL
|
|
20
|
+
* ISOLATE). Use it where markup cannot go, such as `aria-label`, `title` and announcements:
|
|
21
|
+
* ``aria-label={`Remove ${isolateText(fileName, 'ltr')}`}``. An empty value stays empty.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare function isolateText(value: string, dir?: BidiDirection): string;
|
|
25
|
+
//# sourceMappingURL=bidiText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bidiText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidiText.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yFAAyF;AACzF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnD,mGAAmG;AACnG,eAAO,MAAM,qBAAqB;;;;;EAKhC,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,aAAsB,GAAG,MAAM,CAG9E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Container-query helpers for components hosted in narrow containers
|
|
3
|
+
* (master-plan E-19, ADR-11 §5).
|
|
4
|
+
* @module components/shared/containerQueries
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* Panel-hosted components (an AI panel 320-420px wide inside a desktop viewport) cannot use
|
|
9
|
+
* viewport breakpoints: the viewport says "desktop" while the panel is narrow. They respond
|
|
10
|
+
* to their container instead, with the widths in `semanticTokens.spacing.layout.containerQuery`
|
|
11
|
+
* (narrow 320, compact 360, regular 600), which are JavaScript-only: a CSS custom property
|
|
12
|
+
* cannot be an `@container` operand (H-08).
|
|
13
|
+
*
|
|
14
|
+
* The policy (docs/TOKEN_USAGE_RULES.md, "Narrow containers"):
|
|
15
|
+
*
|
|
16
|
+
* - Every panel-hosted component is usable at `narrow` (320px) with no horizontal scroll.
|
|
17
|
+
* - Below `compact`, footers and toolbars wrap or collapse.
|
|
18
|
+
* - Container queries for components, viewport breakpoints only for page layout.
|
|
19
|
+
* - **The inner-wrapper rule.** `container-type: inline-size` goes on an inner wrapper
|
|
20
|
+
* ({@link containerWrapperSx}), never on the component's public root. A size container
|
|
21
|
+
* cannot size itself from its content, so on the root it would change how the component
|
|
22
|
+
* sizes in its host, and it would turn a consumer's `sx` on the root into a container
|
|
23
|
+
* query target they did not ask for. Rules inside the wrapper query it with
|
|
24
|
+
* {@link containerUp} and {@link containerDown}.
|
|
25
|
+
*
|
|
26
|
+
* Container queries need an evergreen browser (ADR-11); MUI 9 builds the conditions.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <Box className="root">
|
|
31
|
+
* <Box sx={containerWrapperSx}>
|
|
32
|
+
* <Box sx={(theme) => ({
|
|
33
|
+
* display: 'flex',
|
|
34
|
+
* flexWrap: 'nowrap',
|
|
35
|
+
* [containerDown(theme, 'compact')]: { flexWrap: 'wrap' },
|
|
36
|
+
* })} />
|
|
37
|
+
* </Box>
|
|
38
|
+
* </Box>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
import type { Theme } from '@mui/material/styles';
|
|
42
|
+
import { type TrinityContainerQuerySizes } from '../../tokens';
|
|
43
|
+
/** A container width role: `narrow` (320px), `compact` (360px) or `regular` (600px). */
|
|
44
|
+
export type ContainerQuerySize = keyof TrinityContainerQuerySizes;
|
|
45
|
+
/**
|
|
46
|
+
* The inner wrapper that becomes the size container. `width: 100%` keeps it as wide as the
|
|
47
|
+
* component, because an inline-size container does not size from its content.
|
|
48
|
+
*
|
|
49
|
+
* For the same reason its content gives the component no width in a host that sizes from content
|
|
50
|
+
* (a flex row whose child has no width, a grid `auto` column, a popover's paper): the component
|
|
51
|
+
* would be 0px wide there (F-22's hosting check). `containIntrinsicInlineSize` gives the
|
|
52
|
+
* container the narrow container width (320px, `semanticTokens.spacing.layout.containerQuery`)
|
|
53
|
+
* as its intrinsic inline size, the width every panel-hosted component is usable at; a host that
|
|
54
|
+
* sets a width still decides the width.
|
|
55
|
+
*/
|
|
56
|
+
export declare const containerWrapperSx: {
|
|
57
|
+
readonly containerType: "inline-size";
|
|
58
|
+
readonly width: "100%";
|
|
59
|
+
readonly containIntrinsicInlineSize: `${number}px`;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The width in px for a container role: the theme's resolved tokens (token overrides reach
|
|
63
|
+
* it), else the defaults. Works under a plain MUI theme too.
|
|
64
|
+
*/
|
|
65
|
+
export declare function containerQueryWidth(theme: Theme, size: ContainerQuerySize): number;
|
|
66
|
+
/**
|
|
67
|
+
* `@container (min-width:<px>)` for a role, or `@container <name> (min-width:<px>)` when the
|
|
68
|
+
* wrapper has a `containerName`. Use as an `sx` key.
|
|
69
|
+
*/
|
|
70
|
+
export declare function containerUp(theme: Theme, size: ContainerQuerySize, name?: string): string;
|
|
71
|
+
/** `@container (max-width:<px - 0.05>)` for a role: below that width. Use as an `sx` key. */
|
|
72
|
+
export declare function containerDown(theme: Theme, size: ContainerQuerySize, name?: string): string;
|
|
73
|
+
//# sourceMappingURL=containerQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerQueries.d.ts","sourceRoot":"","sources":["../../../src/components/shared/containerQueries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAkB,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/E,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAGlF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAGzF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAG3F"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Context, ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Every key optional, at every depth. Functions (count strings) are leaves: they are replaced
|
|
4
|
+
* whole, never merged.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export type DeepPartial<T> = {
|
|
9
|
+
[K in keyof T]?: T[K] extends (...args: never[]) => unknown ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export interface StringsProviderProps<T> {
|
|
13
|
+
/** Keys to replace; the rest come from the nearest parent provider, then the defaults. */
|
|
14
|
+
strings?: DeepPartial<T>;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
export interface StringsContextOptions {
|
|
19
|
+
/** The public component that renders the provider, named in warnings. Default `StringsProvider(<namespace>)`. */
|
|
20
|
+
providerName?: string;
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
23
|
+
export interface StringsContextKit<T> {
|
|
24
|
+
/** The namespace, for example 'ai'. */
|
|
25
|
+
namespace: string;
|
|
26
|
+
/** The built-in strings, returned when no provider is mounted. */
|
|
27
|
+
defaults: T;
|
|
28
|
+
/** The context itself; its default value is `defaults`. */
|
|
29
|
+
Context: Context<T>;
|
|
30
|
+
/** Deep-merges `strings` over the nearest parent value. */
|
|
31
|
+
StringsProvider: (props: StringsProviderProps<T>) => ReactElement;
|
|
32
|
+
/** The merged strings of the nearest provider, or `defaults`. */
|
|
33
|
+
useStrings: () => T;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Deep-merges `overrides` over `base` without mutating either. Returns `base` itself when
|
|
37
|
+
* there is nothing to merge, so the value keeps its identity.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare function mergeStrings<T>(base: T, overrides: DeepPartial<T> | undefined): T;
|
|
42
|
+
/**
|
|
43
|
+
* A stable text form of a value for the churn check: object keys sorted, functions by their
|
|
44
|
+
* source text (an inline arrow re-created on each render has the same text).
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export declare function contentHash(value: unknown): string;
|
|
49
|
+
/**
|
|
50
|
+
* Dev-only identity-churn check (ADR-06 (4)). Runs after every commit of the calling
|
|
51
|
+
* component and warns once when `value` got a new identity with equal content on more than 3
|
|
52
|
+
* consecutive commits. Checking in an effect means StrictMode's double render never counts,
|
|
53
|
+
* and its double effect sees the same identity twice, which is not a change.
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare function useIdentityChurnWarning(label: string, value: unknown): void;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a namespaced strings context: provider, hook and defaults.
|
|
60
|
+
*
|
|
61
|
+
* @param namespace The key namespace, for example 'ai'. Used in key paths, warnings and the
|
|
62
|
+
* context's display name.
|
|
63
|
+
* @param defaults The built-in strings. Frozen by the caller or never mutated.
|
|
64
|
+
* @param options.providerName The public component that renders the provider, for warnings.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare function createStringsContext<T extends object>(namespace: string, defaults: T, options?: StringsContextOptions): StringsContextKit<T>;
|
|
69
|
+
//# sourceMappingURL=createStringsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStringsContext.d.ts","sourceRoot":"","sources":["../../../src/components/shared/createStringsContext.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACpH,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACpC,iHAAiH;IACjH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,QAAQ,EAAE,CAAC,CAAC;IACZ,2DAA2D;IAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,2DAA2D;IAC3D,eAAe,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IAClE,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC,CAAC;CACrB;AAKD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CASjF;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD;AAKD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA4B3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACnD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,qBAA0B,GAClC,iBAAiB,CAAC,CAAC,CAAC,CAkBtB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Direction helpers for the CSS that logical properties cannot express (ADR-11,
|
|
3
|
+
* master-plan E-18; docs/QUICK_START.md, "Right-to-left").
|
|
4
|
+
* @module components/shared/direction
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* Layout uses logical properties, which follow `dir` with or without stylis-plugin-rtl:
|
|
9
|
+
* `marginInlineStart`, `paddingInlineEnd`, `insetInlineStart`, `borderInlineStart`,
|
|
10
|
+
* `textAlign: 'start'` and `borderStartStartRadius` (and its three siblings). Never build them
|
|
11
|
+
* from these helpers.
|
|
12
|
+
*
|
|
13
|
+
* Transforms have no logical form, and the RTL plugin does not flip them: a chevron rotated to
|
|
14
|
+
* point at the inline end, or an entrance that slides in from the inline start, must read the
|
|
15
|
+
* theme's direction. These helpers do that, so a component never branches on `theme.direction`
|
|
16
|
+
* itself. They read `theme.direction`, which `createTrinityTheme(mode, overrides, 'rtl')` and
|
|
17
|
+
* the presets' `direction` option set; the consumer also sets `dir` on the root
|
|
18
|
+
* (QUICK_START). A theme without a direction is left to right, as in MUI.
|
|
19
|
+
*/
|
|
20
|
+
import type { Theme } from '@mui/material/styles';
|
|
21
|
+
/** The part of a theme the helpers read; any MUI theme fits. */
|
|
22
|
+
export type DirectionSource = Pick<Theme, 'direction'> | {
|
|
23
|
+
direction?: Theme['direction'];
|
|
24
|
+
};
|
|
25
|
+
/** Whether the theme lays out right to left. */
|
|
26
|
+
export declare function isRtl(theme: DirectionSource): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The sign of the inline-end direction on the physical x axis: `1` left to right, `-1` right to
|
|
29
|
+
* left. Multiply an x offset or an angle that points toward the inline end by it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function inlineSign(theme: DirectionSource): 1 | -1;
|
|
32
|
+
/**
|
|
33
|
+
* A `rotate()` for an angle written for left to right, mirrored right to left. A chevron that
|
|
34
|
+
* points down (`chevron-down`) and turns to point at the inline end when collapsed uses
|
|
35
|
+
* `rotateInline(theme, -90)`: `rotate(-90deg)` left to right, `rotate(90deg)` right to left.
|
|
36
|
+
* Zero stays `rotate(0deg)`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function rotateInline(theme: DirectionSource, degrees: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* A `translateX()` that moves an element `px` pixels toward the inline start (negative values
|
|
41
|
+
* move it toward the inline end): `translateX(-8px)` left to right, `translateX(8px)` right to
|
|
42
|
+
* left for `translateInlineStart(theme, 8)`. Use it for an entrance that slides in from the
|
|
43
|
+
* start edge; zero is `translateX(0px)`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function translateInlineStart(theme: DirectionSource, px: number): string;
|
|
46
|
+
//# sourceMappingURL=direction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../src/components/shared/direction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,gEAAgE;AAChE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;AAE5F,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAG/E"}
|