@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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { DeepPartial } from '../shared/createStringsContext';
|
|
3
|
+
import type { AIConfidenceThresholds, AIInteractionEvent, AIStrings } from './types/hitl';
|
|
4
|
+
/**
|
|
5
|
+
* Props of {@link AIConfigProvider}.
|
|
6
|
+
*
|
|
7
|
+
* @since 2.13.0
|
|
8
|
+
*/
|
|
9
|
+
export interface AIConfigProviderProps {
|
|
10
|
+
/**
|
|
11
|
+
* Strings to replace, as a deep partial of `AIStrings`: pass only the keys you change. Nested
|
|
12
|
+
* providers merge over their parent. Hoist the object or wrap it in `useMemo`; a new object
|
|
13
|
+
* with the same content on every render re-renders every strings consumer (a development
|
|
14
|
+
* warning says so).
|
|
15
|
+
*/
|
|
16
|
+
strings?: DeepPartial<AIStrings>;
|
|
17
|
+
/**
|
|
18
|
+
* Confidence thresholds on the 0-1 scale. Missing keys come from the parent provider, then
|
|
19
|
+
* `DEFAULT_AI_CONFIDENCE_THRESHOLDS`. Invalid thresholds (not `0 <= medium <= high <= 1`)
|
|
20
|
+
* are ignored with a development warning.
|
|
21
|
+
*/
|
|
22
|
+
thresholds?: Partial<AIConfidenceThresholds>;
|
|
23
|
+
/**
|
|
24
|
+
* BCP 47 locale for numbers and counts, for example 'de-DE'. Inherited from the parent
|
|
25
|
+
* provider when omitted. Without any, `useAILocale()` returns `undefined` and formatters
|
|
26
|
+
* use 'en-US'. An invalid tag is ignored with a development warning.
|
|
27
|
+
*/
|
|
28
|
+
locale?: string;
|
|
29
|
+
/**
|
|
30
|
+
* IANA time zone for dates, for example 'Europe/Berlin'. Inherited from the parent provider
|
|
31
|
+
* when omitted. Without any, `useAITimeZone()` returns the runtime's zone on the client and
|
|
32
|
+
* 'UTC' during server rendering. An invalid zone is ignored with a development warning.
|
|
33
|
+
*/
|
|
34
|
+
timeZone?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Receives every interaction the AI components report. Content-free unless `includeContent`
|
|
37
|
+
* is set. It may change identity on every render: components keep a stable reference. If it
|
|
38
|
+
* throws, the error is contained and logged once in development; components behave the same.
|
|
39
|
+
* The nearest provider with a handler receives the event; a provider without one passes
|
|
40
|
+
* events to its parent's.
|
|
41
|
+
*/
|
|
42
|
+
onInteraction?: (event: AIInteractionEvent) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Whether events sent to this provider's `onInteraction` keep fields with user or model text
|
|
45
|
+
* (feedback comments, typed clarification answers). Default `false`: those fields are removed.
|
|
46
|
+
*/
|
|
47
|
+
includeContent?: boolean;
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Configures the AI components below it: strings, confidence thresholds, locale, time zone and
|
|
52
|
+
* interaction telemetry. Optional and nestable; renders no element.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* const strings = { common: { copied: 'Kopiert' } };
|
|
57
|
+
*
|
|
58
|
+
* <AIConfigProvider strings={strings} locale="de-DE" onInteraction={(event) => analytics.track(event.type, event)}>
|
|
59
|
+
* <InsightEngine />
|
|
60
|
+
* </AIConfigProvider>
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @since 2.13.0
|
|
64
|
+
*/
|
|
65
|
+
export declare function AIConfigProvider({ strings, thresholds, locale, timeZone, onInteraction, includeContent, children, }: AIConfigProviderProps): ReactElement;
|
|
66
|
+
//# sourceMappingURL=AIConfigProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIConfigProvider.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIConfigProvider.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAY1F;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACpD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAgDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,UAAU,EACV,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,QAAQ,GACT,EAAE,qBAAqB,GAAG,YAAY,CAoEtC"}
|
|
@@ -19,12 +19,26 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { SxProps, Theme } from '@mui/material';
|
|
22
|
+
import { type HeadingLevel } from '../shared/headingLevel';
|
|
23
|
+
import { type TrinityRootProps } from '../shared/rootProps';
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* AIContainer's own props.
|
|
24
26
|
*/
|
|
25
|
-
export interface
|
|
27
|
+
export interface AIContainerOwnProps {
|
|
26
28
|
/** Container title */
|
|
27
29
|
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Heading level of the title: 2 to 6 for h2 to h6. Set it to fit the page outline.
|
|
32
|
+
* @default 6 (the h6 the title rendered before the prop existed)
|
|
33
|
+
* @since 2.13.0
|
|
34
|
+
*/
|
|
35
|
+
headingLevel?: HeadingLevel;
|
|
36
|
+
/**
|
|
37
|
+
* Id of the title element, for `aria-labelledby` on a surrounding region or dialog. Without
|
|
38
|
+
* it, the component generates one.
|
|
39
|
+
* @since 2.13.0
|
|
40
|
+
*/
|
|
41
|
+
titleId?: string;
|
|
28
42
|
/** Container subtitle */
|
|
29
43
|
subtitle?: string;
|
|
30
44
|
/** Header actions */
|
|
@@ -39,17 +53,28 @@ export interface AIContainerProps {
|
|
|
39
53
|
filled?: boolean;
|
|
40
54
|
/** Whether container has padding */
|
|
41
55
|
padded?: boolean;
|
|
42
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Added to the root's own class names.
|
|
58
|
+
* @since 2.13.0
|
|
59
|
+
*/
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Custom sx props, applied after the container's own styles (object, array or function). */
|
|
43
62
|
sx?: SxProps<Theme>;
|
|
44
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Props for AIContainer: its own props, plus the HTML attributes of its root `div` (`id`,
|
|
66
|
+
* `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
|
|
67
|
+
*/
|
|
68
|
+
export interface AIContainerProps extends AIContainerOwnProps, TrinityRootProps<HTMLDivElement, AIContainerOwnProps> {
|
|
69
|
+
}
|
|
45
70
|
/**
|
|
46
71
|
* AI Container - Wrapper for AI content with optional header.
|
|
47
72
|
*/
|
|
48
73
|
export declare const AIContainer: React.ForwardRefExoticComponent<AIContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
74
|
/**
|
|
50
|
-
*
|
|
75
|
+
* AIExpandableSection's own props.
|
|
51
76
|
*/
|
|
52
|
-
export interface
|
|
77
|
+
export interface AIExpandableSectionOwnProps {
|
|
53
78
|
/** Section title */
|
|
54
79
|
title: string;
|
|
55
80
|
/** Section subtitle */
|
|
@@ -64,17 +89,38 @@ export interface AIExpandableSectionProps {
|
|
|
64
89
|
expanded?: boolean;
|
|
65
90
|
/** Change handler */
|
|
66
91
|
onChange?: (expanded: boolean) => void;
|
|
67
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Added to the root's own class names.
|
|
94
|
+
* @since 2.13.0
|
|
95
|
+
*/
|
|
96
|
+
className?: string;
|
|
97
|
+
/** Custom sx props, applied after the section's own styles (object, array or function). */
|
|
68
98
|
sx?: SxProps<Theme>;
|
|
69
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Props for AIExpandableSection: its own props, plus the HTML attributes of its root `div`
|
|
102
|
+
* (`data-*`, `aria-*`), which reach the root (ADR-04, WI-40; Disclosure's root contract). As in
|
|
103
|
+
* Disclosure, `id` is the header button's id, and the panel's is `${id}-panel`.
|
|
104
|
+
*/
|
|
105
|
+
export interface AIExpandableSectionProps extends AIExpandableSectionOwnProps, TrinityRootProps<HTMLDivElement, AIExpandableSectionOwnProps> {
|
|
106
|
+
}
|
|
70
107
|
/**
|
|
71
108
|
* AI Expandable Section - Collapsible content section.
|
|
109
|
+
*
|
|
110
|
+
* Renders through the internal Disclosure (D-27, D-08): the header is one `<button
|
|
111
|
+
* type="button">` named by the title (and subtitle), with `aria-expanded` and `aria-controls`
|
|
112
|
+
* pointing at the panel; Tab reaches it and Enter or Space toggles it. `expanded` and
|
|
113
|
+
* `defaultExpanded` follow the controlled and uncontrolled canon (useControlled); every toggle
|
|
114
|
+
* calls `onChange` with the requested state. The chevron (OD-D2) turns when open and the header
|
|
115
|
+
* shows the theme's focus ring. Colours come from the resolver's AI roles in both modes: the
|
|
116
|
+
* header on `ai.surfaceEmphasis` (`ai.surfaceEmphasisHover` under the pointer), the panel on
|
|
117
|
+
* `ai.surface` with an `ai.border` outline, the leading icon in `ai.primary`.
|
|
72
118
|
*/
|
|
73
119
|
export declare const AIExpandableSection: React.ForwardRefExoticComponent<AIExpandableSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
74
120
|
/**
|
|
75
|
-
*
|
|
121
|
+
* AIPersonaCard's own props.
|
|
76
122
|
*/
|
|
77
|
-
export interface
|
|
123
|
+
export interface AIPersonaCardOwnProps {
|
|
78
124
|
/** Persona name */
|
|
79
125
|
name: string;
|
|
80
126
|
/** Persona description */
|
|
@@ -83,15 +129,38 @@ export interface AIPersonaCardProps {
|
|
|
83
129
|
avatar?: React.ReactNode;
|
|
84
130
|
/** Persona capabilities */
|
|
85
131
|
capabilities?: string[];
|
|
86
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Whether the persona is selected. With `onClick`, the card is a toggle button and this is its
|
|
134
|
+
* `aria-pressed` state; the AI-primary border and the check icon show it visually.
|
|
135
|
+
*/
|
|
87
136
|
selected?: boolean;
|
|
88
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Called when the card is pressed (click, Enter or Space). With it, the card is a toggle button
|
|
139
|
+
* named by `name`; without it, the card is static content.
|
|
140
|
+
*/
|
|
89
141
|
onClick?: () => void;
|
|
90
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Added to the root's own class names.
|
|
144
|
+
* @since 2.13.0
|
|
145
|
+
*/
|
|
146
|
+
className?: string;
|
|
147
|
+
/** Custom sx props, applied after the card's own styles (object, array or function). */
|
|
91
148
|
sx?: SxProps<Theme>;
|
|
92
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Props for AIPersonaCard: its own props, plus the HTML attributes of its root `div` (`id`,
|
|
152
|
+
* `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
|
|
153
|
+
*/
|
|
154
|
+
export interface AIPersonaCardProps extends AIPersonaCardOwnProps, TrinityRootProps<HTMLDivElement, AIPersonaCardOwnProps> {
|
|
155
|
+
}
|
|
93
156
|
/**
|
|
94
157
|
* AI Persona Card - Card for selecting AI personas/agents.
|
|
158
|
+
*
|
|
159
|
+
* With `onClick`, the whole card is pressable through the primary-action pattern (WI-17, B-13):
|
|
160
|
+
* an empty button covers the card, named by the persona name and described by the description,
|
|
161
|
+
* with `aria-pressed={selected}`. The avatar, text, divider and chips stay static content above
|
|
162
|
+
* it, so the button holds no block content. Tab reaches it; Enter and Space toggle it. The ref
|
|
163
|
+
* and `sx` stay on the Paper root.
|
|
95
164
|
*/
|
|
96
165
|
export declare const AIPersonaCard: React.ForwardRefExoticComponent<AIPersonaCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
166
|
//# sourceMappingURL=AIContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;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WAAW,kBAAmB,SAAQ,qBAAqB,EAAE,gBAAgB,CAAC,cAAc,EAAE,qBAAqB,CAAC;CAAG;AAE7H;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,2FAkIzB,CAAC"}
|
|
@@ -12,18 +12,41 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { SxProps, Theme } from '@mui/material';
|
|
15
|
+
import { type HeadingLevel } from '../shared/headingLevel';
|
|
16
|
+
import { type TrinityRootProps } from '../shared/rootProps';
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
18
|
+
* AIExplainability's own props.
|
|
17
19
|
*/
|
|
18
|
-
export interface
|
|
19
|
-
/** Title/overview of the AI */
|
|
20
|
+
export interface AIExplainabilityOwnProps {
|
|
21
|
+
/** Title/overview of the AI. Default: the `ai.explainability.title` string ('AI-generated content'). */
|
|
20
22
|
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Heading level of the title: 2 to 6 for h2 to h6. Set it to fit the page outline.
|
|
25
|
+
* @default 6 (the h6 the title rendered before the prop existed)
|
|
26
|
+
* @since 2.13.0
|
|
27
|
+
*/
|
|
28
|
+
headingLevel?: HeadingLevel;
|
|
21
29
|
/** Description of what the AI does */
|
|
22
30
|
description?: string;
|
|
23
31
|
/** Model name or version */
|
|
24
32
|
modelName?: string;
|
|
25
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Confidence score on the 0-100 scale (92 means 92%), unlike AIConfidenceBadge and the
|
|
35
|
+
* confidence utilities, which take 0-1. It is shown as a percent in the locale of the nearest
|
|
36
|
+
* `AIConfigProvider` ('en-US' without one): 92 reads '92%' in en-US and '92 %' in de-DE. Up to
|
|
37
|
+
* two decimals are kept (92.5 reads '92.5%').
|
|
38
|
+
*/
|
|
26
39
|
confidence?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Shows the confidence level next to the percent: a level icon (the `confidence-high`,
|
|
42
|
+
* `-medium` and `-low` signal bars, a different shape per level) and the level word
|
|
43
|
+
* (`ai.explainability.confidenceHigh`, `confidenceMedium` and `confidenceLow`). The level
|
|
44
|
+
* follows the nearest `AIConfigProvider`'s thresholds and is rated on the shown, rounded
|
|
45
|
+
* value. Off by default: the percent alone, as before (WI-25).
|
|
46
|
+
* @default false
|
|
47
|
+
* @since 2.13.0
|
|
48
|
+
*/
|
|
49
|
+
showConfidenceLevel?: boolean;
|
|
27
50
|
/** Last updated date */
|
|
28
51
|
lastUpdated?: string;
|
|
29
52
|
/** Additional details */
|
|
@@ -36,9 +59,20 @@ export interface AIExplainabilityProps {
|
|
|
36
59
|
label: string;
|
|
37
60
|
onClick: () => void;
|
|
38
61
|
}>;
|
|
39
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Added to the root's own class names.
|
|
64
|
+
* @since 2.13.0
|
|
65
|
+
*/
|
|
66
|
+
className?: string;
|
|
67
|
+
/** Custom sx props, applied after the root's own styles (object, array or function). */
|
|
40
68
|
sx?: SxProps<Theme>;
|
|
41
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Props for AIExplainability: its own props, plus the HTML attributes of its root `div` (`id`,
|
|
72
|
+
* `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
|
|
73
|
+
*/
|
|
74
|
+
export interface AIExplainabilityProps extends AIExplainabilityOwnProps, TrinityRootProps<HTMLDivElement, AIExplainabilityOwnProps> {
|
|
75
|
+
}
|
|
42
76
|
/**
|
|
43
77
|
* AI Explainability Content - Provides details about AI-generated content.
|
|
44
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIExplainability.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIExplainability.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA2C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"AIExplainability.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIExplainability.tsx"],"names":[],"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
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AIFeedbackControl: thumbs up and down on an AI answer, and a separate "Tell us what
|
|
3
|
+
* went wrong" flow (master-plan F-17, ADR-15-R3, ADR-15-R4).
|
|
4
|
+
* @module components/AI/AIFeedbackControl
|
|
5
|
+
*
|
|
6
|
+
* - **Group.** The root is `role="group"` (owned), named 'Rate this response'.
|
|
7
|
+
* - **Thumbs.** Two MUI IconButtons, pure toggles: `aria-pressed`, and a constant name that is
|
|
8
|
+
* also the tooltip (one key each: 'Good response', 'Poor response'). The tooltip does not
|
|
9
|
+
* describe the button, since it repeats the name (OD-F13 A). Pressed has three cues:
|
|
10
|
+
* `aria-pressed`, the filled glyph and the theme's C-27 pressed recipe (selected overlay and an
|
|
11
|
+
* inset ring, Highlight in forced colours). The glyph is `status.success.text` or
|
|
12
|
+
* `status.error.text` when pressed and `text.secondary` at rest (WCAG 1.4.11); its colour change
|
|
13
|
+
* uses `semanticTokens.motion` and is instant under reduced motion. Each is at least 24px
|
|
14
|
+
* (WCAG 2.5.8). Pressing a pressed thumb clears the rating; the rating is the one-click flag.
|
|
15
|
+
* - **Detailed mode (OD-F18, ADR-15-R4).** While the rating is negative and nothing was sent yet,
|
|
16
|
+
* a text button 'Tell us what went wrong' follows the thumbs in the group. It is the only popup
|
|
17
|
+
* trigger (`aria-haspopup="dialog"`, `aria-expanded`, `aria-controls`); thumbs-down never moves
|
|
18
|
+
* focus or opens anything. It opens AIFeedbackForm in DetailsPopover, or in C's Modal below the
|
|
19
|
+
* theme's `sm` breakpoint (OD-F4, ADR-15-R3; the first render, server and hydration, is the
|
|
20
|
+
* popover). The surface's heading is its only heading: the form is hosted (no title, no
|
|
21
|
+
* telemetry). The Modal has no description (`describedBy="none"`) and no footer.
|
|
22
|
+
* - **Sending.** The control runs `onSubmit` through `useAsyncAction` and passes `loading` and
|
|
23
|
+
* `error` to the form. While pending, no close path works (DetailsPopover `preventClose`, Modal
|
|
24
|
+
* `pendingClosePolicy="block"` with `loading`). Cancel closes, keeps the rating and MUI returns
|
|
25
|
+
* focus to the details trigger. A failure keeps the surface open with the form's error.
|
|
26
|
+
* - **Sent.** The surface closes. After its exit transition (focus restored, the page no longer
|
|
27
|
+
* hidden), focus moves to thumbs-down and 'Feedback sent' is announced once through the
|
|
28
|
+
* control's own announcer, outside the closed overlay. The details trigger is replaced by the
|
|
29
|
+
* visible, non-live text 'Feedback sent'.
|
|
30
|
+
* - **Disabled** sets `aria-disabled` on every button, described by `disabledReason`; clicks do
|
|
31
|
+
* nothing.
|
|
32
|
+
* - **Telemetry.** `AIFeedbackInteraction` for rate, clear, detail-open, detail-submit and
|
|
33
|
+
* detail-cancel, from the control only.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* import { AIFeedbackControl } from '@trinityui/design-system';
|
|
38
|
+
*
|
|
39
|
+
* <AIFeedbackControl responseId="r-1" mode="detailed" onChange={saveRating} onSubmit={sendFeedback} />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
import * as React from 'react';
|
|
43
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
44
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
45
|
+
import type { AIFeedbackCategory, AIFeedbackCategoryOption, AIFeedbackEvent, AIFeedbackRating } from './types/hitl';
|
|
46
|
+
/**
|
|
47
|
+
* AIFeedbackControl's own props.
|
|
48
|
+
*
|
|
49
|
+
* @since 2.13.0
|
|
50
|
+
*/
|
|
51
|
+
export interface AIFeedbackControlOwnProps {
|
|
52
|
+
/** Controlled rating; `null` is no rating. */
|
|
53
|
+
value?: AIFeedbackRating | null;
|
|
54
|
+
/** Initial rating when uncontrolled. @default null */
|
|
55
|
+
defaultValue?: AIFeedbackRating | null;
|
|
56
|
+
/** Called with the next rating (`null` when a pressed thumb is pressed again) and the click. */
|
|
57
|
+
onChange?: (rating: AIFeedbackRating | null, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
58
|
+
/**
|
|
59
|
+
* `'simple'`: the thumbs only. `'detailed'`: after a thumbs-down, 'Tell us what went wrong'
|
|
60
|
+
* opens AIFeedbackForm.
|
|
61
|
+
* @default 'simple'
|
|
62
|
+
*/
|
|
63
|
+
mode?: 'simple' | 'detailed';
|
|
64
|
+
/** The form's categories (detailed mode). @default every built-in category */
|
|
65
|
+
categories?: ReadonlyArray<AIFeedbackCategory | AIFeedbackCategoryOption>;
|
|
66
|
+
/** The form's rerun option (detailed mode). @default false */
|
|
67
|
+
allowRerun?: boolean;
|
|
68
|
+
/** At least one category must be chosen (detailed mode). @default false */
|
|
69
|
+
requireCategory?: boolean;
|
|
70
|
+
/** Sends the detailed feedback. May return a promise; the surface stays open until it settles. */
|
|
71
|
+
onSubmit?: (event: AIFeedbackEvent) => void | Promise<void>;
|
|
72
|
+
/** Detailed feedback was already sent: shows 'Feedback sent' instead of the details trigger. */
|
|
73
|
+
submitted?: boolean;
|
|
74
|
+
/** Id of the rated response, sent with the feedback and the interactions. */
|
|
75
|
+
responseId?: string;
|
|
76
|
+
/** Every button is `aria-disabled` (for example while the response streams). */
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
/** Why it is disabled, linked to each button. @default 'You can rate the response once it is complete.' */
|
|
79
|
+
disabledReason?: string;
|
|
80
|
+
/** @default 'small' */
|
|
81
|
+
size?: 'small' | 'medium';
|
|
82
|
+
className?: string;
|
|
83
|
+
sx?: SxProps<Theme>;
|
|
84
|
+
/**
|
|
85
|
+
* Props for the parts (ADR-04 (6)): `positiveButton`, `negativeButton`, `detailsTrigger`,
|
|
86
|
+
* `popover` (the details dialog), `dialog` (the narrow-viewport Modal's surface), `form` and
|
|
87
|
+
* `status` (the 'Feedback sent' text).
|
|
88
|
+
*/
|
|
89
|
+
slotProps?: {
|
|
90
|
+
positiveButton?: TrinitySlotProps<HTMLButtonElement>;
|
|
91
|
+
negativeButton?: TrinitySlotProps<HTMLButtonElement>;
|
|
92
|
+
detailsTrigger?: TrinitySlotProps<HTMLButtonElement>;
|
|
93
|
+
popover?: TrinitySlotProps<HTMLDivElement>;
|
|
94
|
+
dialog?: TrinitySlotProps<HTMLDivElement>;
|
|
95
|
+
form?: TrinitySlotProps<HTMLFormElement>;
|
|
96
|
+
status?: TrinitySlotProps<HTMLSpanElement>;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Props of {@link AIFeedbackControl}: its own props plus the root `<div>`'s HTML attributes
|
|
101
|
+
* (ADR-04).
|
|
102
|
+
*
|
|
103
|
+
* @since 2.13.0
|
|
104
|
+
*/
|
|
105
|
+
export type AIFeedbackControlProps = AIFeedbackControlOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'onChange' | 'onSubmit' | 'defaultValue' | keyof AIFeedbackControlOwnProps>;
|
|
106
|
+
/**
|
|
107
|
+
* Thumbs up and down on an AI answer, with an optional "Tell us what went wrong" flow. See the
|
|
108
|
+
* module notes.
|
|
109
|
+
*
|
|
110
|
+
* @since 2.13.0
|
|
111
|
+
*/
|
|
112
|
+
export declare const AIFeedbackControl: React.ForwardRefExoticComponent<AIFeedbackControlOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color" | keyof AIFeedbackControlOwnProps> & React.RefAttributes<HTMLDivElement>>;
|
|
113
|
+
//# sourceMappingURL=AIFeedbackControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIFeedbackControl.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackControl.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,OAAO,KAAK,EAAE,kBAAk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,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QACrD,cAAc,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QACrD,OAAO,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC3C,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC1C,IAAI,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;QACzC,MAAM,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;KAC5C,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAC5D,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,MAAM,yBAAyB,CAAC,CAAC;AAYnI;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,0LAoR5B,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AIFeedbackForm: what went wrong with an AI answer, in a few choices and a comment
|
|
3
|
+
* (master-plan F-16).
|
|
4
|
+
* @module components/AI/AIFeedbackForm
|
|
5
|
+
*
|
|
6
|
+
* - **Root.** A native `<form noValidate>`, unnamed by default, so it is not a form landmark
|
|
7
|
+
* (ADR-19 keeps the landmark list clean). Pass `aria-labelledby` to make it one. The title is
|
|
8
|
+
* text, not a heading, unless `headingLevel` is set (ADR-19). Do not nest it inside another
|
|
9
|
+
* DOM `<form>`.
|
|
10
|
+
* - **Fields.** D's ChoiceChips in multiple mode in a fieldset with the legend 'Problem type'
|
|
11
|
+
* (the built-in categories from `ai.feedbackForm.category.*`, or yours); a multiline TextField
|
|
12
|
+
* 'Details (optional)'; with `allowRerun`, a Checkbox 'Rerun with this correction'; then
|
|
13
|
+
* 'Send feedback' and 'Cancel'.
|
|
14
|
+
* - **Validation (OD-F14 A).** Nothing is required by default. `requireCategory` opts into the
|
|
15
|
+
* ADR-07 pattern: Submit stays enabled; an empty submit marks the checkboxes `aria-invalid`,
|
|
16
|
+
* links the error text to the group and focuses the first checkbox.
|
|
17
|
+
* - **Submit.** The handler calls `preventDefault` and `stopPropagation`, so a React ancestor
|
|
18
|
+
* form reached through a portal never receives the event. `onSubmit` runs through
|
|
19
|
+
* `useAsyncAction` (one run at a time; a throw or rejection is reported). `loading`, `error`
|
|
20
|
+
* and `errorMessage` override the hook, so a host can own the pending state (ADR-07).
|
|
21
|
+
* - **Pending.** Submit and Cancel are `aria-disabled` (Submit also `aria-busy`) and keep focus;
|
|
22
|
+
* clicks do nothing.
|
|
23
|
+
* - **Error.** AsyncOutcomeAlert inside the form (no implicit live role, OD-F9): announced once,
|
|
24
|
+
* assertively, with 'Try again'. The input is kept and focus stays on Submit.
|
|
25
|
+
* - **Success.** The summary 'Thanks — sent for review' replaces the fields and takes focus
|
|
26
|
+
* (useFocusOnReplace), unless `submitted` says otherwise or the form is hosted.
|
|
27
|
+
* - **Hosted** (inside AIFeedbackControl, through the internal HostedFeedbackContext): no title,
|
|
28
|
+
* no telemetry, no summary and no focus move; the host owns all three.
|
|
29
|
+
* - **Telemetry.** Standalone, one `AIFeedbackInteraction { action: 'detail-submit' }` per submit,
|
|
30
|
+
* content-free (the comment only with the provider's `includeContent`).
|
|
31
|
+
* - **Layout.** An inner container query stacks the actions full width below the 'compact'
|
|
32
|
+
* container width (E-19).
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* import { AIFeedbackForm } from '@trinityui/design-system';
|
|
37
|
+
*
|
|
38
|
+
* <AIFeedbackForm responseId="r-1" allowRerun onSubmit={(feedback) => api.sendFeedback(feedback)} />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
import * as React from 'react';
|
|
42
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
43
|
+
import { type HeadingLevel } from '../shared/headingLevel';
|
|
44
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
45
|
+
import type { AIFeedbackCategory, AIFeedbackCategoryOption, AIFeedbackDraft, AIFeedbackEvent, AIFeedbackRating } from './types/hitl';
|
|
46
|
+
/**
|
|
47
|
+
* AIFeedbackForm's own props.
|
|
48
|
+
*
|
|
49
|
+
* @since 2.13.0
|
|
50
|
+
*/
|
|
51
|
+
export interface AIFeedbackFormOwnProps {
|
|
52
|
+
/** The rating the feedback is about. @default 'negative' */
|
|
53
|
+
rating?: AIFeedbackRating;
|
|
54
|
+
/**
|
|
55
|
+
* The categories offered: built-in ids (their text comes from the strings) or options with
|
|
56
|
+
* your own `label` and `description`. An empty list hides the field.
|
|
57
|
+
* @default every built-in category
|
|
58
|
+
*/
|
|
59
|
+
categories?: ReadonlyArray<AIFeedbackCategory | AIFeedbackCategoryOption>;
|
|
60
|
+
/** Controlled draft. */
|
|
61
|
+
value?: AIFeedbackDraft;
|
|
62
|
+
/** Initial draft when uncontrolled. @default { categories: [], comment: '', rerun: false } */
|
|
63
|
+
defaultValue?: AIFeedbackDraft;
|
|
64
|
+
/** Called with the next draft and the event that changed it. */
|
|
65
|
+
onChange?: (draft: AIFeedbackDraft, event?: React.SyntheticEvent) => void;
|
|
66
|
+
/** Shows 'Rerun with this correction'. @default false */
|
|
67
|
+
allowRerun?: boolean;
|
|
68
|
+
/** At least one category must be chosen (OD-F14 A: opt-in). @default false */
|
|
69
|
+
requireCategory?: boolean;
|
|
70
|
+
/** Id of the rated response, sent with the feedback. */
|
|
71
|
+
responseId?: string;
|
|
72
|
+
/** Sends the feedback. May return a promise: the form shows the pending, error and success states. */
|
|
73
|
+
onSubmit?: (event: AIFeedbackEvent) => void | Promise<void>;
|
|
74
|
+
/** Shows 'Cancel' and is called when it is pressed (not while pending). */
|
|
75
|
+
onCancel?: () => void;
|
|
76
|
+
/** Pending, from the host (overrides the form's own async state). */
|
|
77
|
+
loading?: boolean;
|
|
78
|
+
/** Failed, from the host (overrides the form's own async state). */
|
|
79
|
+
error?: boolean;
|
|
80
|
+
/** The error text. @default "Couldn't send feedback." */
|
|
81
|
+
errorMessage?: string;
|
|
82
|
+
/** Sent, from the host: shows the success summary (overrides the form's own async state). */
|
|
83
|
+
submitted?: boolean;
|
|
84
|
+
/** The title. Not shown when hosted. @default 'Tell us what went wrong' */
|
|
85
|
+
title?: string;
|
|
86
|
+
/** Renders the title as a heading of this level. No heading by default (ADR-19). */
|
|
87
|
+
headingLevel?: HeadingLevel;
|
|
88
|
+
className?: string;
|
|
89
|
+
sx?: SxProps<Theme>;
|
|
90
|
+
/**
|
|
91
|
+
* Props for the parts (ADR-04 (6)): `title`, `categories` (the fieldset), `comment` (the text
|
|
92
|
+
* field root), `rerun` (its label), `actions`, `alert` and `summary`.
|
|
93
|
+
*/
|
|
94
|
+
slotProps?: {
|
|
95
|
+
title?: TrinitySlotProps<HTMLElement>;
|
|
96
|
+
categories?: TrinitySlotProps<HTMLFieldSetElement>;
|
|
97
|
+
comment?: TrinitySlotProps<HTMLDivElement>;
|
|
98
|
+
rerun?: TrinitySlotProps<HTMLLabelElement>;
|
|
99
|
+
actions?: TrinitySlotProps<HTMLDivElement>;
|
|
100
|
+
alert?: TrinitySlotProps<HTMLDivElement>;
|
|
101
|
+
summary?: TrinitySlotProps<HTMLDivElement>;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Props of {@link AIFeedbackForm}: its own props plus the `<form>`'s HTML attributes (ADR-04).
|
|
106
|
+
*
|
|
107
|
+
* @since 2.13.0
|
|
108
|
+
*/
|
|
109
|
+
export type AIFeedbackFormProps = AIFeedbackFormOwnProps & Omit<React.FormHTMLAttributes<HTMLFormElement>, 'color' | 'onChange' | 'onSubmit' | 'defaultValue' | 'title' | keyof AIFeedbackFormOwnProps>;
|
|
110
|
+
/**
|
|
111
|
+
* Detailed feedback on an AI answer: problem types, a comment and an optional rerun. See the
|
|
112
|
+
* module notes.
|
|
113
|
+
*
|
|
114
|
+
* @since 2.13.0
|
|
115
|
+
*/
|
|
116
|
+
export declare const AIFeedbackForm: React.ForwardRefExoticComponent<AIFeedbackFormOwnProps & Omit<React.FormHTMLAttributes<HTMLFormElement>, "color" | keyof AIFeedbackFormOwnProps> & React.RefAttributes<HTMLFormElement>>;
|
|
117
|
+
//# sourceMappingURL=AIFeedbackForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQ3D,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAa,MAAM,cAAc,CAAC;AA8BhJ;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,kBAAkB,GAAG,wBAAwB,CAAC,CAAC;IAC1E,wBAAwB;IACxB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,8FAA8F;IAC9F,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAC;IAC1E,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8EAA8E;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OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,GAAG,MAAM,sBAAsB,CAAC,CAAC;AAkB/I;;;;;GAKG;AACH,eAAO,MAAM,cAAc,0LAqOzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Context } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the nearest AIFeedbackForm is hosted. `true` only under a host's provider.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* @since 2.13.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const HostedFeedbackContext: Context<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the calling form is hosted (see the module notes); `false` without a provider.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* @since 2.13.0
|
|
14
|
+
*/
|
|
15
|
+
export declare function useHostedFeedback(): boolean;
|
|
16
|
+
//# sourceMappingURL=AIFeedbackHostContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIFeedbackHostContext.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackHostContext.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OAAO,CAAiD,CAAC;AAErG;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
|
|
@@ -12,32 +12,65 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { SxProps, Theme } from '@mui/material';
|
|
15
|
+
import { type TrinityRootProps } from '../shared/rootProps';
|
|
15
16
|
export type AILabelSize = 'mini' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
16
17
|
export type AILabelVariant = 'default' | 'inline';
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* AILabel's own props.
|
|
19
20
|
*/
|
|
20
|
-
export interface
|
|
21
|
+
export interface AILabelOwnProps {
|
|
21
22
|
/** Size of the AI label */
|
|
22
23
|
size?: AILabelSize;
|
|
23
24
|
/** Variant of the AI label */
|
|
24
25
|
variant?: AILabelVariant;
|
|
25
|
-
/** Custom text
|
|
26
|
+
/** Custom text. Default: the `ai.label.text` string ('AI'). */
|
|
26
27
|
text?: string;
|
|
27
28
|
/** Whether to show explainability popover on click */
|
|
28
29
|
showPopover?: boolean;
|
|
29
30
|
/** Content for the explainability popover */
|
|
30
31
|
popoverContent?: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Accessible name of the explainability popover, which is a dialog. Ignored
|
|
34
|
+
* when `popoverLabelledBy` is set.
|
|
35
|
+
* Default: the `ai.label.popoverLabel` string ('About this AI content').
|
|
36
|
+
* @since 2.13.0
|
|
37
|
+
*/
|
|
38
|
+
popoverLabel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Id of an element inside `popoverContent` that names the popover, such as
|
|
41
|
+
* its title. Takes precedence over `popoverLabel`.
|
|
42
|
+
* @since 2.13.0
|
|
43
|
+
*/
|
|
44
|
+
popoverLabelledBy?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the label is clickable. The label renders as a button only when
|
|
47
|
+
* clicking it does something: `onClick` is set, or `showPopover` is on and
|
|
48
|
+
* `popoverContent` is given. Otherwise it renders as static text (a `span`)
|
|
49
|
+
* with the same look and no tab stop.
|
|
50
|
+
*/
|
|
32
51
|
clickable?: boolean;
|
|
33
52
|
/** Click handler */
|
|
34
53
|
onClick?: () => void;
|
|
35
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Added to the root's own class names (the button, or the static span).
|
|
56
|
+
* @since 2.13.0
|
|
57
|
+
*/
|
|
58
|
+
className?: string;
|
|
59
|
+
/** Custom sx props, applied after the label's own styles (object, array or function). */
|
|
36
60
|
sx?: SxProps<Theme>;
|
|
37
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Props for AILabel: its own props, plus the HTML attributes of its root (`id`, `data-*`,
|
|
64
|
+
* `aria-*`), which reach the root in both forms: the button, or the static span (ADR-04, WI-40).
|
|
65
|
+
*/
|
|
66
|
+
export interface AILabelProps extends AILabelOwnProps, TrinityRootProps<HTMLElement, AILabelOwnProps> {
|
|
67
|
+
}
|
|
38
68
|
/**
|
|
39
69
|
* AI Label - Indicates AI-generated content and provides pathway to explainability.
|
|
40
70
|
* Use to mark any instance of AI in the interface.
|
|
71
|
+
*
|
|
72
|
+
* The ref points at the root element: a `button` when the label is
|
|
73
|
+
* interactive, a `span` otherwise.
|
|
41
74
|
*/
|
|
42
|
-
export declare const AILabel: React.ForwardRefExoticComponent<AILabelProps & React.RefAttributes<
|
|
75
|
+
export declare const AILabel: React.ForwardRefExoticComponent<AILabelProps & React.RefAttributes<HTMLElement>>;
|
|
43
76
|
//# sourceMappingURL=AILabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AILabel.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AILabel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"AILabel.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AILabel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,OAAO,EAAE,KAAK,EAAmB,MAAM,eAAe,CAAC;AAW7E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM1E,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,IA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