@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
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { SxProps, Theme } from '@mui/material';
|
|
18
|
+
import { type HeadingLevel } from './shared/headingLevel';
|
|
19
|
+
import { type TrinityRootProps, type TrinitySlotProps } from './shared/rootProps';
|
|
18
20
|
export type IllustrationType = 'empty-table' | 'empty-drafts' | 'getting-started' | 'empty-documents' | 'empty-insights' | 'no-results' | 'error-generic' | 'error-404' | 'error-500' | 'error-permission' | 'upload' | 'success' | 'no-notifications' | 'no-data' | 'offline';
|
|
19
21
|
export type IllustratedMessageSize = 'small' | 'medium' | 'large';
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* IllustratedMessage's own props.
|
|
22
24
|
*/
|
|
23
|
-
export interface
|
|
25
|
+
export interface IllustratedMessageOwnProps {
|
|
24
26
|
/** Type of illustration to display */
|
|
25
27
|
illustration: IllustrationType;
|
|
26
28
|
/** Title text */
|
|
@@ -39,17 +41,64 @@ export interface IllustratedMessageProps {
|
|
|
39
41
|
onClick?: () => void;
|
|
40
42
|
href?: string;
|
|
41
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Your own actions, rendered in the actions row instead of the built-in buttons, for
|
|
46
|
+
* example a retry button that shows a pending state. Pass either `actions` or
|
|
47
|
+
* `primaryAction`/`secondaryAction`; with both, `actions` wins and a development warning
|
|
48
|
+
* names the conflict.
|
|
49
|
+
* @since 2.13.0
|
|
50
|
+
*/
|
|
51
|
+
actions?: React.ReactNode;
|
|
42
52
|
/** Size of the component */
|
|
43
53
|
size?: IllustratedMessageSize;
|
|
54
|
+
/**
|
|
55
|
+
* Element of the title: 2 to 6. Default: `h6` for `small` and `medium`, `h5` for `large`,
|
|
56
|
+
* the elements the sizes rendered before the prop existed. The visual style follows `size`.
|
|
57
|
+
* @since 2.13.0
|
|
58
|
+
*/
|
|
59
|
+
headingLevel?: HeadingLevel;
|
|
60
|
+
/**
|
|
61
|
+
* Ref to the title element. When it is passed the title gets `tabIndex={-1}`, so a page
|
|
62
|
+
* can move focus to it (for example after a failed load replaces the content); without it
|
|
63
|
+
* the title is not focusable.
|
|
64
|
+
* @since 2.13.0
|
|
65
|
+
*/
|
|
66
|
+
titleRef?: React.Ref<HTMLHeadingElement>;
|
|
44
67
|
/** Custom illustration component (overrides illustration prop) */
|
|
45
68
|
customIllustration?: React.ReactNode;
|
|
46
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Props for the Trinity-owned slots: `title` (the heading), `description` (the paragraph)
|
|
71
|
+
* and `actions` (the actions row). Each takes `className`, `sx`, `id`, `data-*` and HTML
|
|
72
|
+
* attributes.
|
|
73
|
+
* @since 2.13.0
|
|
74
|
+
*/
|
|
75
|
+
slotProps?: {
|
|
76
|
+
title?: TrinitySlotProps<HTMLHeadingElement>;
|
|
77
|
+
description?: TrinitySlotProps<HTMLParagraphElement>;
|
|
78
|
+
actions?: TrinitySlotProps<HTMLDivElement>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Added to the root's own class names.
|
|
82
|
+
* @since 2.13.0
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
/** Additional styles, applied after the component's own (object, array or function). */
|
|
47
86
|
sx?: SxProps<Theme>;
|
|
48
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Props for IllustratedMessage: its own props, plus the HTML attributes of its root `div`
|
|
90
|
+
* (`id`, `data-*`, `aria-*`), which reach the root (ADR-04).
|
|
91
|
+
*/
|
|
92
|
+
export interface IllustratedMessageProps extends IllustratedMessageOwnProps, TrinityRootProps<HTMLDivElement, IllustratedMessageOwnProps> {
|
|
93
|
+
}
|
|
49
94
|
interface IllustrationProps {
|
|
95
|
+
/** Width and height in pixels. Default 180. */
|
|
50
96
|
size?: number;
|
|
97
|
+
/** Main strokes and shapes. Default: the theme's `palette.primary.main`. */
|
|
51
98
|
primaryColor?: string;
|
|
99
|
+
/** Neutral shapes and outlines. Default: the theme's subtle border role (`palette.trinity.border.subtle`). */
|
|
52
100
|
secondaryColor?: string;
|
|
101
|
+
/** Accent shapes. Default: the theme's `palette.secondary.main`. */
|
|
53
102
|
accentColor?: string;
|
|
54
103
|
}
|
|
55
104
|
declare const EmptyTableIllustration: React.FC<IllustrationProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IllustratedMessage.d.ts","sourceRoot":"","sources":["../../src/components/IllustratedMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"IllustratedMessage.d.ts","sourceRoot":"","sources":["../../src/components/IllustratedMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGrF,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG5E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA4ChG,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,sCAAsC;IACtC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,M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AAMF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,oBAAoB;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,4FAmG1B,CAAC;AAGF,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview InlineEditableText: text that turns into a field and back, with an async commit
|
|
3
|
+
* (master-plan D-11).
|
|
4
|
+
* @module components/InlineEditableText
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* For ThreadHistorySidebar's rename (D-40, M7) and AIPlanReview's step edit (G-18). Its keyboard
|
|
9
|
+
* model is keyboard-models.md (3): BUILD a two-state machine, view (a button) and edit (a field).
|
|
10
|
+
*
|
|
11
|
+
* - **View.** `renderView(value)`, or the value as text plus an edit IconButton ('edit' icon)
|
|
12
|
+
* named "<labels.edit> <label>" through `aria-labelledby` (no string concatenation). With
|
|
13
|
+
* `editTrigger="external"` the view is the text alone and the consumer's own control starts the
|
|
14
|
+
* edit (a menu item, for example).
|
|
15
|
+
* - **Edit.** An MUI TextField named `label`, focused when editing starts (never `autoFocus`),
|
|
16
|
+
* with optional Save and Cancel IconButtons ('check', 'close').
|
|
17
|
+
* - **Keys.** Enter commits, unless an IME is composing (`isComposing`, keyCode 229), and never
|
|
18
|
+
* submits an enclosing form; Shift+Enter adds a line when `multiline`. Escape cancels and stops
|
|
19
|
+
* propagation, so an enclosing Modal, ConfirmDialog or Popover stays open. Tab leaves the field
|
|
20
|
+
* without committing (keyboard model (3)); `commitOnBlur` opts in to a commit on blur, which
|
|
21
|
+
* never fires when focus moves to the component's own Save or Cancel.
|
|
22
|
+
* - **Validation.** `validate(draft)`, then `required`: the message shows as the field's helper
|
|
23
|
+
* text and is announced assertively; edit mode and focus stay.
|
|
24
|
+
* - **Commit.** `onChange(draft)` runs through `useAsyncAction`. Pending: the input is readOnly
|
|
25
|
+
* with `aria-busy`, Save is `aria-disabled`, a second Enter does not commit again. Success:
|
|
26
|
+
* edit mode ends, focus returns to the edit button (or `returnFocusRef`, else the root, never
|
|
27
|
+
* `<body>`) through `useFocusOnReplace`, and `labels.saved` is announced politely. Failure
|
|
28
|
+
* (OD-D6 (a)): edit mode, the draft and focus stay, `labels.saveError` shows as helper text and
|
|
29
|
+
* is announced assertively.
|
|
30
|
+
* - **State.** `value` and `editing` are controlled or uncontrolled (`useControlled`);
|
|
31
|
+
* `onEditingChange(editing, 'trigger' | 'commit' | 'cancel', event)` (D-45).
|
|
32
|
+
* - **Strings** are one `labels` object (H-47): the drafted flat `editLabel`, `saveLabel`,
|
|
33
|
+
* `cancelLabel`, `savedMessage`, `saveErrorMessage` and `requiredMessage` become `labels.edit`,
|
|
34
|
+
* `save`, `cancel`, `saved`, `saveError` and `required`. `label`, the field's name, stays flat.
|
|
35
|
+
*/
|
|
36
|
+
import * as React from 'react';
|
|
37
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
38
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
39
|
+
/** InlineEditableText's strings. @internal */
|
|
40
|
+
export interface InlineEditableTextLabels {
|
|
41
|
+
/** Before the field's label in the edit button's name: "Edit <label>". @default 'Edit' */
|
|
42
|
+
edit: string;
|
|
43
|
+
/** @default 'Save' */
|
|
44
|
+
save: string;
|
|
45
|
+
/** @default 'Cancel' */
|
|
46
|
+
cancel: string;
|
|
47
|
+
/** Announced politely after a commit. @default 'Saved' */
|
|
48
|
+
saved: string;
|
|
49
|
+
/** Helper text and assertive announcement after a failed commit. @default "Couldn't save your changes. Try again." */
|
|
50
|
+
saveError: string;
|
|
51
|
+
/** Shown when `required` and the draft is empty. @default 'Enter a value.' */
|
|
52
|
+
required: string;
|
|
53
|
+
}
|
|
54
|
+
/** Why editing changed: the trigger started it, a commit or a cancel ended it. @internal */
|
|
55
|
+
export type InlineEditableTextEditingReason = 'trigger' | 'commit' | 'cancel';
|
|
56
|
+
/** Props both trigger modes share. @internal */
|
|
57
|
+
export interface InlineEditableTextBaseProps {
|
|
58
|
+
/** The field's accessible name. */
|
|
59
|
+
label: string;
|
|
60
|
+
value?: string;
|
|
61
|
+
defaultValue?: string;
|
|
62
|
+
/** Commits the draft. A rejection keeps the field open with the error. */
|
|
63
|
+
onChange?: (value: string) => void | Promise<void>;
|
|
64
|
+
onDraftChange?: (draft: string) => void;
|
|
65
|
+
editing?: boolean;
|
|
66
|
+
defaultEditing?: boolean;
|
|
67
|
+
onEditingChange?: (editing: boolean, reason: InlineEditableTextEditingReason, event?: React.SyntheticEvent) => void;
|
|
68
|
+
/** Returns an error message, or null when the draft is valid. Runs before the required check. */
|
|
69
|
+
validate?: (draft: string) => string | null;
|
|
70
|
+
required?: boolean;
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
placeholder?: string;
|
|
73
|
+
multiline?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Commit when focus leaves the field for something other than Save or Cancel. Off by default:
|
|
76
|
+
* keyboard model (3) has Tab leave without committing.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
commitOnBlur?: boolean;
|
|
80
|
+
/** @default true */
|
|
81
|
+
showActions?: boolean;
|
|
82
|
+
labels?: Partial<InlineEditableTextLabels>;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
/** View only: no edit control. */
|
|
85
|
+
readOnly?: boolean;
|
|
86
|
+
/** @default 'small' */
|
|
87
|
+
size?: 'small' | 'medium';
|
|
88
|
+
/** Replaces the view text: `null` renders nothing, `undefined` the default. */
|
|
89
|
+
renderView?: (value: string) => React.ReactNode | null | undefined;
|
|
90
|
+
sx?: SxProps<Theme>;
|
|
91
|
+
className?: string;
|
|
92
|
+
slotProps?: {
|
|
93
|
+
view?: TrinitySlotProps<HTMLSpanElement>;
|
|
94
|
+
editButton?: TrinitySlotProps<HTMLButtonElement>;
|
|
95
|
+
input?: TrinitySlotProps<HTMLInputElement>;
|
|
96
|
+
actions?: TrinitySlotProps<HTMLDivElement>;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** The built-in edit button starts editing. @internal */
|
|
100
|
+
export interface InlineEditableTextButtonProps extends InlineEditableTextBaseProps {
|
|
101
|
+
/** @default 'button' */
|
|
102
|
+
editTrigger?: 'button';
|
|
103
|
+
returnFocusRef?: never;
|
|
104
|
+
}
|
|
105
|
+
/** A control of the consumer starts editing (controlled `editing`); focus returns to `returnFocusRef`. @internal */
|
|
106
|
+
export interface InlineEditableTextExternalProps extends InlineEditableTextBaseProps {
|
|
107
|
+
editTrigger: 'external';
|
|
108
|
+
returnFocusRef: React.RefObject<HTMLElement | null>;
|
|
109
|
+
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
export type InlineEditableTextProps = (InlineEditableTextButtonProps | InlineEditableTextExternalProps) & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | keyof InlineEditableTextBaseProps | 'returnFocusRef' | 'editTrigger'>;
|
|
112
|
+
/**
|
|
113
|
+
* Text that turns into a field and back. See the module notes.
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
export declare const InlineEditableText: React.ForwardRefExoticComponent<InlineEditableTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
//# sourceMappingURL=InlineEditableText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineEditableText.d.ts","sourceRoot":"","sources":["../../../src/components/InlineEditableText/InlineEditableText.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAS1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE1E,8CAA8C;AAC9C,MAAM,WAAW,wBAAwB;IACvC,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,sHAAsH;IACtH,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,4FAA4F;AAC5F,MAAM,MAAM,+BAA+B,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E,gDAAgD;AAChD,MAAM,WAAW,2BAA2B;IAC1C,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAA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;QACV,IAAI,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;QACzC,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QACjD,KAAK,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;KAC5C,CAAC;CACH;AAED,yDAAyD;AACzD,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;IAChF,wBAAwB;IACxB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB;AAED,oHAAoH;AACpH,MAAM,WAAW,+BAAgC,SAAQ,2BAA2B;IAClF,WAAW,EAAE,UAAU,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACrD;AAED,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG,CAAC,6BAA6B,GAAG,+BAA+B,CAAC,GACrG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,MAAM,2BAA2B,GAAG,gBAAgB,GAAG,aAAa,CAAC,CAAC;AAYjJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gGA4P7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/InsightCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/InsightCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAkCjE,eAAO,MAAM,WAAW,yFA+KvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -48,15 +48,22 @@ export interface InsightCardProps {
|
|
|
48
48
|
actions?: ReactNode;
|
|
49
49
|
/** Visual variant. Default `tinted`. */
|
|
50
50
|
variant?: InsightVariant;
|
|
51
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* When true, the card has a primary action: a button that covers the card, named by
|
|
53
|
+
* `ariaLabel` or `title`, reachable with Tab and run by Enter and Space. The dismiss button
|
|
54
|
+
* and the `actions` keep their own clicks (B-24).
|
|
55
|
+
*/
|
|
52
56
|
interactive?: boolean;
|
|
53
|
-
/** Called when the card
|
|
57
|
+
/** Called when the card's primary action runs (requires `interactive`). */
|
|
54
58
|
onClick?: () => void;
|
|
55
59
|
/** Called when the dismiss control is clicked. If omitted, no dismiss button is shown. */
|
|
56
60
|
onDismiss?: () => void;
|
|
57
61
|
/** sx overrides for the root Card. */
|
|
58
62
|
sx?: SxProps<Theme>;
|
|
59
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Accessible name of the card's primary action when `interactive` (default: `title`); on a
|
|
65
|
+
* card that is not interactive it labels the card root, as before.
|
|
66
|
+
*/
|
|
60
67
|
ariaLabel?: string;
|
|
61
68
|
}
|
|
62
69
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9E;;;;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,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wCAAwC;IACxC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,sCAAsC;IACtC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview KeyValueList: name-value pairs as a description list (master-plan D-05).
|
|
3
|
+
* @module components/KeyValueList
|
|
4
|
+
*
|
|
5
|
+
* @internal — not part of the public API; see ADR-02
|
|
6
|
+
*
|
|
7
|
+
* The one name-value structure for EntityDetailPanel, AuditDrawer's field changes, Timeline's
|
|
8
|
+
* metadata, DocumentCard, AIExplainability and AISourcesPanel (D-17..D-20, D-26, D-33, D-50).
|
|
9
|
+
*
|
|
10
|
+
* - **Structure.** The root is a `<dl>`; each pair is a `<div>` group holding a `<dt>` and a
|
|
11
|
+
* `<dd>`, as HTML allows, so assistive technology reads term and definition.
|
|
12
|
+
* - **Layouts.** `'horizontal'` (the default) wraps intrinsically: the term takes `termWidth`
|
|
13
|
+
* and the definition grows from 12rem, so a pair stacks when its row is narrower than both,
|
|
14
|
+
* with no viewport breakpoint and no container query (OD-D10 (a)). `'justified'` puts the value
|
|
15
|
+
* at the inline end, `'stacked'` puts it under the term, and `'inline'` lays the pairs out as
|
|
16
|
+
* tiles. `fullWidth` stacks one pair.
|
|
17
|
+
* - **Colours.** Terms use `text.secondary` and values `text.primary` (MUI's text roles; never
|
|
18
|
+
* `text.disabled`). `variant="outlined"` adds the resolver's `border.default`; `divided` puts
|
|
19
|
+
* `border.subtle` between pairs (a decorative divider).
|
|
20
|
+
* - **Values** are model, user or data text: bidi-isolated (E-48+) and wrapped anywhere, so an
|
|
21
|
+
* unbroken URL never overflows. Terms are UI text and are not isolated.
|
|
22
|
+
* - **Help.** `helperText` adds a focusable 24 by 24 button with the info icon after the term,
|
|
23
|
+
* named "More information <term>" through `aria-labelledby` (its own hidden label and the term), so
|
|
24
|
+
* every row's button has its own name with no string concatenation, and described by a
|
|
25
|
+
* Tooltip (`describeChild`, ADR-15).
|
|
26
|
+
* - **Loading** renders Skeleton values and sets `aria-busy` (owned); with no items it renders
|
|
27
|
+
* `loadingRows` placeholder pairs. With no items and no loading it renders nothing, or
|
|
28
|
+
* `emptyText` in a `<div>` in place of the list.
|
|
29
|
+
*/
|
|
30
|
+
import * as React from 'react';
|
|
31
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
32
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
33
|
+
/** One name-value pair. @internal */
|
|
34
|
+
export interface KeyValueListItem {
|
|
35
|
+
/** Stable key, also the base of the term's id. */
|
|
36
|
+
id: string;
|
|
37
|
+
/** The term, in the UI language. */
|
|
38
|
+
label: React.ReactNode;
|
|
39
|
+
/** The value: model, user or data text. Bidi-isolated. */
|
|
40
|
+
value: React.ReactNode;
|
|
41
|
+
/** Help for the term, shown by an info button's tooltip. */
|
|
42
|
+
helperText?: string;
|
|
43
|
+
/** Stack this pair (the value under the term) whatever the layout. */
|
|
44
|
+
fullWidth?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type KeyValueListLayout = 'horizontal' | 'justified' | 'stacked' | 'inline';
|
|
48
|
+
/** The list's own props. @internal */
|
|
49
|
+
export interface KeyValueListOwnProps {
|
|
50
|
+
items: readonly KeyValueListItem[];
|
|
51
|
+
/** @default 'horizontal' */
|
|
52
|
+
layout?: KeyValueListLayout;
|
|
53
|
+
/**
|
|
54
|
+
* The term's width in `'horizontal'` layout, in px, or `'auto'` for its own width.
|
|
55
|
+
* @default 160
|
|
56
|
+
*/
|
|
57
|
+
termWidth?: number | 'auto';
|
|
58
|
+
/** @default 'plain' */
|
|
59
|
+
variant?: 'plain' | 'outlined';
|
|
60
|
+
/** A subtle divider between pairs. */
|
|
61
|
+
divided?: boolean;
|
|
62
|
+
/** @default 'medium' */
|
|
63
|
+
size?: 'small' | 'medium';
|
|
64
|
+
/** Skeleton values and `aria-busy`. */
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Placeholder pairs while loading with no items.
|
|
68
|
+
* @default 3
|
|
69
|
+
*/
|
|
70
|
+
loadingRows?: number;
|
|
71
|
+
/** Shown in place of the list when there are no items. */
|
|
72
|
+
emptyText?: React.ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* The help button's label, before the term: "More information <term>".
|
|
75
|
+
* @default 'More information'
|
|
76
|
+
*/
|
|
77
|
+
helpButtonLabel?: string;
|
|
78
|
+
sx?: SxProps<Theme>;
|
|
79
|
+
className?: string;
|
|
80
|
+
slotProps?: {
|
|
81
|
+
group?: TrinitySlotProps<HTMLDivElement>;
|
|
82
|
+
term?: TrinitySlotProps<HTMLElement>;
|
|
83
|
+
definition?: TrinitySlotProps<HTMLElement>;
|
|
84
|
+
helpButton?: TrinitySlotProps<HTMLButtonElement>;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** @internal */
|
|
88
|
+
export type KeyValueListProps = KeyValueListOwnProps & Omit<React.HTMLAttributes<HTMLDListElement>, keyof KeyValueListOwnProps | 'color'>;
|
|
89
|
+
/**
|
|
90
|
+
* A description list of name-value pairs. See the module notes.
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
export declare const KeyValueList: React.ForwardRefExoticComponent<KeyValueListOwnProps & Omit<React.HTMLAttributes<HTMLDListElement>, "color" | keyof KeyValueListOwnProps> & React.RefAttributes<HTMLDListElement>>;
|
|
94
|
+
//# sourceMappingURL=KeyValueList.d.ts.map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AC;IACrB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACzC,IAAI,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACrC,UAAU,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;KAClD,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAClD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,oBAAoB,GAAG,OAAO,CAAC,CAAC;AAmGrF;;;GAGG;AACH,eAAO,MAAM,YAAY,oLA0FvB,CAAC"}
|
|
@@ -19,6 +19,8 @@ import * as React from 'react';
|
|
|
19
19
|
import { SxProps, Theme } from '@mui/material';
|
|
20
20
|
/**
|
|
21
21
|
* Props for FeatureCard component.
|
|
22
|
+
*
|
|
23
|
+
* @since 2.13.0
|
|
22
24
|
*/
|
|
23
25
|
export interface FeatureCardProps {
|
|
24
26
|
/**
|
|
@@ -83,6 +85,8 @@ export interface FeatureCardProps {
|
|
|
83
85
|
* - Uses semantic heading structure (h3 for title)
|
|
84
86
|
* - CardActionArea provides keyboard navigation
|
|
85
87
|
* - Sufficient color contrast (WCAG AA compliant)
|
|
88
|
+
*
|
|
89
|
+
* @since 2.13.0 (exported from the package root; before that it was not reachable from any entry)
|
|
86
90
|
*/
|
|
87
91
|
export declare const FeatureCard: React.FC<FeatureCardProps>;
|
|
88
92
|
export default FeatureCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/FeatureCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/FeatureCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAKtF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;OAGG;IACH,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqJlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
import * as React from 'react';
|
|
18
18
|
import { SxProps, Theme } from '@mui/material';
|
|
19
19
|
import { FeatureCardProps } from './FeatureCard';
|
|
20
|
+
/**
|
|
21
|
+
* One feature card of {@link LandingPage}: the {@link FeatureCardProps} without
|
|
22
|
+
* `sx`, plus a unique `id`.
|
|
23
|
+
*
|
|
24
|
+
* @since 2.13.0
|
|
25
|
+
*/
|
|
20
26
|
export interface LandingPageFeature extends Omit<FeatureCardProps, 'sx'> {
|
|
21
27
|
/**
|
|
22
28
|
* Unique identifier for the feature
|
|
@@ -25,6 +31,8 @@ export interface LandingPageFeature extends Omit<FeatureCardProps, 'sx'> {
|
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Props for LandingPage component.
|
|
34
|
+
*
|
|
35
|
+
* @since 2.13.0
|
|
28
36
|
*/
|
|
29
37
|
export interface LandingPageProps {
|
|
30
38
|
/**
|
|
@@ -42,15 +50,43 @@ export interface LandingPageProps {
|
|
|
42
50
|
*/
|
|
43
51
|
heroIcon?: React.ReactNode | 'sparkle';
|
|
44
52
|
/**
|
|
45
|
-
* Background image URL for the hero section
|
|
46
|
-
*
|
|
53
|
+
* Background image URL for the hero section. The Trinity brand gradients and background
|
|
54
|
+
* images are not in the package: copy them from Storybook (Assets) into your app. A light
|
|
55
|
+
* brand gradient switches the hero text to the `'onLight'` tone (see `heroTone`).
|
|
47
56
|
*/
|
|
48
57
|
backgroundImage?: string;
|
|
49
58
|
/**
|
|
50
|
-
* Background gradient CSS (alternative to backgroundImage)
|
|
59
|
+
* Background gradient CSS (alternative to backgroundImage). The hero text stays in the
|
|
60
|
+
* `'onDark'` tone unless `heroTone` says otherwise.
|
|
51
61
|
* @example 'linear-gradient(135deg, #050742 0%, #3816A0 100%)'
|
|
52
62
|
*/
|
|
53
63
|
backgroundGradient?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Which kind of background the hero text sits on: `'onDark'` (white text) or `'onLight'`
|
|
66
|
+
* (dark text from the theme). Not set: `'onLight'` for the light brand gradients, `'onDark'`
|
|
67
|
+
* for every other background.
|
|
68
|
+
*
|
|
69
|
+
* The title, subtitle and icon then contrast with the background:
|
|
70
|
+
* - `'onDark'`: white title and subtitle and the coral AI sparkle, for dark backgrounds (the
|
|
71
|
+
* built-in navy gradient, the dark brand gradients, the dark Smooth Abstract images).
|
|
72
|
+
* - `'onLight'`: dark text from the theme (the navy primary for the title and the secondary
|
|
73
|
+
* text for the subtitle under the Trinity light theme) and the AI purple sparkle, for light
|
|
74
|
+
* backgrounds such as the light brand gradients.
|
|
75
|
+
*
|
|
76
|
+
* When it is not set, the tone is `'onLight'` for the package's light brand gradients
|
|
77
|
+
* (recognised by file name: `light_brand_gradient<n>`, `light-brand-gradient-<n>` or
|
|
78
|
+
* `gradients/light-<n>`) and `'onDark'` for everything else. The component cannot see an
|
|
79
|
+
* image's colours: set it explicitly for your own images and for `backgroundGradient`.
|
|
80
|
+
* Photographs and busy images (the Technology & Human set) reach AA in neither tone; put a
|
|
81
|
+
* scrim under the text or choose a brand gradient.
|
|
82
|
+
*
|
|
83
|
+
* The hero background looks the same in light and dark mode, so the tone, not the colour
|
|
84
|
+
* mode, picks the hero text colours. A custom `heroIcon` that uses `currentColor` follows the
|
|
85
|
+
* title colour.
|
|
86
|
+
*
|
|
87
|
+
* @since 2.13.0
|
|
88
|
+
*/
|
|
89
|
+
heroTone?: 'onDark' | 'onLight';
|
|
54
90
|
/**
|
|
55
91
|
* Array of feature cards to display
|
|
56
92
|
*/
|
|
@@ -109,7 +145,8 @@ export interface LandingPageProps {
|
|
|
109
145
|
* LandingPage - A complete landing page template with hero and feature cards.
|
|
110
146
|
*
|
|
111
147
|
* Features:
|
|
112
|
-
* - Customizable hero section with background image/gradient
|
|
148
|
+
* - Customizable hero section with background image/gradient, and a hero tone (`heroTone`)
|
|
149
|
+
* that keeps the hero text readable on dark and light backgrounds
|
|
113
150
|
* - Responsive feature card grid
|
|
114
151
|
* - Supports both navy and white card variants
|
|
115
152
|
* - Works with Trinity navigation components
|
|
@@ -120,6 +157,8 @@ export interface LandingPageProps {
|
|
|
120
157
|
* - Hero title uses h1, feature cards use h3
|
|
121
158
|
* - Background images are decorative (aria-hidden)
|
|
122
159
|
* - All interactive elements are keyboard accessible
|
|
160
|
+
*
|
|
161
|
+
* @since 2.13.0 (exported from the package root; before that it was not reachable from any entry)
|
|
123
162
|
*/
|
|
124
163
|
export declare const LandingPage: React.ForwardRefExoticComponent<LandingPageProps & React.RefAttributes<HTMLDivElement>>;
|
|
125
164
|
export default LandingPage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LandingPage.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/LandingPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAoC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"LandingPage.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/LandingPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAoC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIjF,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAI9D;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC;IACtE;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAEvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAEhC;;OAEG;IACH,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAE/B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEhC;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAE7C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,yFAyNtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LandingPage's hero tone: which kind of background the hero text sits on, and the colours that
|
|
3
|
+
* contrast with it. Internal to the LandingPage module; the public surface is the `heroTone`
|
|
4
|
+
* prop.
|
|
5
|
+
*
|
|
6
|
+
* The hero background (an image or a gradient) looks the same in light and dark mode, so the
|
|
7
|
+
* tone, not `palette.mode`, decides the text colours. The colours still come from the theme:
|
|
8
|
+
* `palette.common` and the text and primary roles, and the resolver's AI roles.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* @module components/LandingPage/heroTone
|
|
12
|
+
*/
|
|
13
|
+
import { type Theme } from '@mui/material/styles';
|
|
14
|
+
/** The two hero tones: text for a dark background, or text for a light one. @internal */
|
|
15
|
+
export type HeroTone = 'onDark' | 'onLight';
|
|
16
|
+
/** The colours of the hero's title, subtitle and icon in one tone. @internal */
|
|
17
|
+
export interface HeroToneColors {
|
|
18
|
+
title: string;
|
|
19
|
+
subtitle: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether `url` names one of the package's light brand gradients (by file name). A data URI or
|
|
24
|
+
* a URL with another file name is not recognised.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare function isLightBrandGradient(url: string | undefined): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The tone LandingPage uses when `heroTone` is not set: `'onLight'` for a light brand gradient,
|
|
31
|
+
* `'onDark'` for everything else (the built-in navy gradient, `backgroundGradient`, the dark
|
|
32
|
+
* brand gradients and any other image).
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export declare function defaultHeroTone(backgroundImage: string | undefined): HeroTone;
|
|
37
|
+
/**
|
|
38
|
+
* The hero colours for `tone` under `theme`.
|
|
39
|
+
*
|
|
40
|
+
* - `'onDark'`: `palette.common.white` for the title, 90% of it for the subtitle, and the AI
|
|
41
|
+
* accent (`ai.accent`, coral) for the sparkle icon. This is the look LandingPage always had.
|
|
42
|
+
* - `'onLight'`: the first theme role that reaches 4.5:1 on the light gradients for the title
|
|
43
|
+
* (`palette.primary.main`, then `palette.text.primary`, then `palette.common.black`) and the
|
|
44
|
+
* subtitle (`palette.text.secondary`, then `palette.text.primary`, then
|
|
45
|
+
* `palette.common.black`), and the first AI purple that reaches 3:1 for the icon
|
|
46
|
+
* (`ai.primary`, then `ai.primaryFill`, then the title colour). Under the Trinity light theme
|
|
47
|
+
* that is the navy primary, the secondary text and the AI purple. Under the dark theme, whose
|
|
48
|
+
* text roles are light and whose primary is coral, the black fallback keeps the text readable
|
|
49
|
+
* on the light image.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export declare function heroToneColors(theme: Theme, tone: HeroTone): HeroToneColors;
|
|
54
|
+
//# sourceMappingURL=heroTone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heroTone.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/heroTone.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKjE,yFAAyF;AACzF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5C,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAYD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CASrE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAE7E;AAoBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,GAAG,cAAc,CAuB3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionsInput.d.ts","sourceRoot":"","sources":["../../../src/components/MentionsInput/MentionsInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAYL,KAAK,cAAc,EAEpB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"MentionsInput.d.ts","sourceRoot":"","sources":["../../../src/components/MentionsInput/MentionsInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAYL,KAAK,cAAc,EAEpB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,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