@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
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { SxProps, Theme } from '@mui/material';
|
|
20
|
+
import { type IconName } from '../Icon';
|
|
21
|
+
import type { TrinityStatusColor } from '../../theme-augmentation';
|
|
20
22
|
import { StatusType, StatusSize, StatusShape } from './types';
|
|
21
23
|
/**
|
|
22
24
|
* Available display variants for the StatusIndicator
|
|
@@ -28,8 +30,27 @@ import { StatusType, StatusSize, StatusShape } from './types';
|
|
|
28
30
|
* - `inline`: Text label with optional dot/icon prefix
|
|
29
31
|
* - `badge`: Wraps children with a notification badge
|
|
30
32
|
* - `differential`: Shows positive/negative value changes
|
|
33
|
+
*
|
|
34
|
+
* Exported from the package root and essentials.
|
|
35
|
+
*
|
|
36
|
+
* @since 2.13.0
|
|
31
37
|
*/
|
|
32
38
|
export type StatusVariant = 'icon' | 'shape' | 'dot' | 'chip' | 'inline' | 'badge' | 'differential';
|
|
39
|
+
/**
|
|
40
|
+
* Colours that replace the status catalog's for one indicator (C-04): an alias of the theme's
|
|
41
|
+
* status colour role, so a resolver value fits as it is
|
|
42
|
+
* (`useTrinityPalette().status.success`, `getTrinityPalette(theme).verification.verified`).
|
|
43
|
+
*
|
|
44
|
+
* - Text and icons on the surface (inline, the icon-only icon) use `text`.
|
|
45
|
+
* - Graphics on the surface (the dot, the shape, the inline dot) use `border`.
|
|
46
|
+
* - Contained variants (the chip, the icon circle, the badge) use `background` with `text` on it;
|
|
47
|
+
* the chip's border is `border`.
|
|
48
|
+
*
|
|
49
|
+
* The differential ignores it: use `positiveColor` and `negativeColor`.
|
|
50
|
+
*
|
|
51
|
+
* @since 2.13.0
|
|
52
|
+
*/
|
|
53
|
+
export type StatusIndicatorColors = TrinityStatusColor;
|
|
33
54
|
/**
|
|
34
55
|
* Base props shared across all variants
|
|
35
56
|
*/
|
|
@@ -44,10 +65,39 @@ interface BaseStatusProps {
|
|
|
44
65
|
label?: string;
|
|
45
66
|
/** Whether to show the label text */
|
|
46
67
|
showLabel?: boolean;
|
|
47
|
-
/** Custom MUI sx props */
|
|
68
|
+
/** Custom MUI sx props. Object, array and function forms all apply after the indicator's own styles. */
|
|
48
69
|
sx?: SxProps<Theme>;
|
|
49
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Added to the root element's classes.
|
|
72
|
+
* @since 2.13.0
|
|
73
|
+
*/
|
|
74
|
+
className?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Replaces the status's catalog icon (icon, chip and inline variants), for example
|
|
77
|
+
* `icon="verified"`. Any `IconName` the Icon component renders.
|
|
78
|
+
* @since 2.13.0
|
|
79
|
+
*/
|
|
80
|
+
icon?: IconName | (string & {});
|
|
81
|
+
/**
|
|
82
|
+
* Replaces the status's catalog colours: see {@link StatusIndicatorColors}.
|
|
83
|
+
* @since 2.13.0
|
|
84
|
+
*/
|
|
85
|
+
colors?: StatusIndicatorColors;
|
|
86
|
+
/**
|
|
87
|
+
* The accessible name. On a variant without visible text (dot, icon-only, `showLabel={false}`)
|
|
88
|
+
* it replaces the label as the name; on a variant with visible text it renders the indicator
|
|
89
|
+
* as `role="img"` with this name. Not applied to the badge variant: name the wrapped control.
|
|
90
|
+
*/
|
|
50
91
|
'aria-label'?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Makes the indicator a live region, so a change of its status or label is announced.
|
|
94
|
+
* `true` or `'polite'` is a polite `role="status"`; `'assertive'` is `role="alert"`.
|
|
95
|
+
* Default `false`: a static indicator is not announced (ADR-32). Ignored, with a development
|
|
96
|
+
* warning, on an interactive chip and on the badge variant: use `useAnnounce()` there.
|
|
97
|
+
*
|
|
98
|
+
* @since 2.13.0
|
|
99
|
+
*/
|
|
100
|
+
live?: boolean | 'polite' | 'assertive';
|
|
51
101
|
}
|
|
52
102
|
/**
|
|
53
103
|
* Props specific to 'icon' variant
|
|
@@ -140,10 +190,23 @@ interface DefaultVariantProps {
|
|
|
140
190
|
variant?: undefined;
|
|
141
191
|
iconOnly?: boolean;
|
|
142
192
|
}
|
|
193
|
+
/** Every prop name a variant owns, so none of them reaches the root as an HTML attribute. */
|
|
194
|
+
declare const OWN_PROP_NAMES: readonly ["variant", "status", "size", "label", "showLabel", "sx", "className", "aria-label", "live", "icon", "colors", "iconOnly", "shape", "showOutline", "pulse", "showIcon", "onClick", "onDelete", "showDot", "children", "count", "dot", "max", "invisible", "value", "percentage", "currency", "showColor", "positiveColor", "negativeColor"];
|
|
143
195
|
/**
|
|
144
|
-
*
|
|
196
|
+
* HTML attributes the root takes (ADR-04): `id`, `data-*`, `aria-*` and event handlers, spread on
|
|
197
|
+
* the root element of every variant (a div; the badge's root is a span). `role`, `aria-live`
|
|
198
|
+
* and the other owned attributes stay the indicator's: a consumer value is ignored, with a
|
|
199
|
+
* development warning. Since 2.13.0.
|
|
145
200
|
*/
|
|
146
|
-
|
|
201
|
+
type StatusIndicatorRootProps = Omit<React.HTMLAttributes<HTMLElement>, (typeof OWN_PROP_NAMES)[number] | 'color'>;
|
|
202
|
+
/**
|
|
203
|
+
* Union type of all StatusIndicator props. Exported from the package root and essentials.
|
|
204
|
+
*
|
|
205
|
+
* @since 2.13.0
|
|
206
|
+
*/
|
|
207
|
+
export type StatusIndicatorProps = BaseStatusProps & (IconVariantProps | ShapeVariantProps | DotVariantProps | ChipVariantProps | InlineVariantProps | BadgeVariantProps | DifferentialVariantProps | DefaultVariantProps) & StatusIndicatorRootProps;
|
|
208
|
+
/** @internal */
|
|
209
|
+
export type StatusLive = boolean | 'polite' | 'assertive';
|
|
147
210
|
/**
|
|
148
211
|
* StatusIndicator - A unified, polymorphic status indicator component.
|
|
149
212
|
*
|
|
@@ -179,5 +242,36 @@ export type StatusIndicatorProps = BaseStatusProps & (IconVariantProps | ShapeVa
|
|
|
179
242
|
* <StatusIndicator variant="differential" value={12.5} percentage />
|
|
180
243
|
*/
|
|
181
244
|
export declare const StatusIndicator: React.ForwardRefExoticComponent<StatusIndicatorProps & React.RefAttributes<HTMLElement>>;
|
|
245
|
+
/**
|
|
246
|
+
* Options only Trinity's own components pass (C-33). Not on any exported props type.
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
export interface StatusIndicatorInternalOptions {
|
|
250
|
+
/**
|
|
251
|
+
* Hide the indicator from assistive technology (`aria-hidden`), for an indicator that repeats
|
|
252
|
+
* visible text beside it. `live` and the naming rules do not apply.
|
|
253
|
+
*/
|
|
254
|
+
decorative?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* No role and no name of its own: for an indicator inside an element that names it, such as
|
|
257
|
+
* HistoricalDataIndicator's group around the legacy DifferentialIndicator. Its visible text is
|
|
258
|
+
* still read.
|
|
259
|
+
*/
|
|
260
|
+
plain?: boolean;
|
|
261
|
+
/** Set by the engine when the consumer passes `aria-labelledby`. */
|
|
262
|
+
labelledBy?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* The icon variant renders spans only (phrasing content), for an indicator inside a button
|
|
265
|
+
* such as StepStatusMarker in a Disclosure trigger (D-36, D-44). The layout is unchanged.
|
|
266
|
+
*/
|
|
267
|
+
inline?: boolean;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The one rendering engine behind StatusIndicator and the legacy primitives (IconIndicator,
|
|
271
|
+
* ShapeIndicator, StatusDot, StatusChip, InlineStatus, BadgeIndicator, DifferentialIndicator),
|
|
272
|
+
* which are adapters over it (C-33). Takes the internal options as well.
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
export declare const InternalStatusIndicator: React.ForwardRefExoticComponent<(StatusIndicatorProps & StatusIndicatorInternalOptions) & React.RefAttributes<HTMLElement>>;
|
|
182
276
|
export default StatusIndicator;
|
|
183
277
|
//# sourceMappingURL=StatusIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.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U,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,6HAInC,CAAC;AA8MF,eAAe,eAAe,CAAC"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module StatusIndicator
|
|
10
10
|
* @version 2.0.0
|
|
11
11
|
*/
|
|
12
|
-
export { StatusIndicator, default as StatusIndicatorDefault, type StatusIndicatorProps, type StatusVariant, } from './StatusIndicator';
|
|
13
|
-
export { type StatusType, type SeverityLevel, type StatusShape, type StatusSize, type StatusConfig, } from './types';
|
|
12
|
+
export { StatusIndicator, default as StatusIndicatorDefault, type StatusIndicatorProps, type StatusVariant, type StatusIndicatorColors, } from './StatusIndicator';
|
|
13
|
+
export { type StatusType, type SeverityLevel, type StatusShape, type StatusSize, type StatusConfig, type StatusColorMode, } from './types';
|
|
14
14
|
/** @internal */
|
|
15
15
|
export { statusConfigs } from './types';
|
|
16
16
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EACL,eAAe,EACf,OAAO,IAAI,sBAAsB,EACjC,KAAK,oBAAoB,EACzB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EACL,eAAe,EACf,OAAO,IAAI,sBAAsB,EACjC,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,GACrB,MA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,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5F,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAK/E,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,UAAU,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Status Indicator - Types and Configuration
|
|
3
3
|
* Centralized type definitions and status configs
|
|
4
4
|
*/
|
|
5
|
+
import type { Theme } from '@mui/material/styles';
|
|
5
6
|
export type StatusType = 'error' | 'critical' | 'failed' | 'rejected' | 'cancelled' | 'warning' | 'caution' | 'pending' | 'in-progress' | 'running' | 'success' | 'complete' | 'approved' | 'active' | 'enabled' | 'info' | 'new' | 'updated' | 'draft' | 'inactive' | 'disabled' | 'unknown' | 'beta' | 'experimental';
|
|
6
7
|
export type SeverityLevel = 'high' | 'medium' | 'low' | 'info' | 'neutral';
|
|
7
8
|
export type StatusShape = 'circle' | 'square' | 'diamond' | 'triangle' | 'hexagon';
|
|
@@ -25,7 +26,53 @@ export declare const sizeConfigs: Record<StatusSize, {
|
|
|
25
26
|
/**
|
|
26
27
|
* Get the configuration for a status type
|
|
27
28
|
*/
|
|
28
|
-
export
|
|
29
|
+
export type StatusColorMode = 'light' | 'dark';
|
|
30
|
+
export declare const getStatusConfig: (status: StatusType, mode?: StatusColorMode) => StatusConfig;
|
|
31
|
+
/**
|
|
32
|
+
* One status as a renderer draws it, read from the theme (C-02, ADR-03-R6).
|
|
33
|
+
*
|
|
34
|
+
* - `fill` and `onFill`: the contained fill (icon circle, chip, badge, dot, shape) and the
|
|
35
|
+
* text or icon on it.
|
|
36
|
+
* - `outline`: the darker ring a light fill declares (the warning family in light mode).
|
|
37
|
+
* - `surfaceText` and `surfaceIcon`: the status as text or an icon straight on the page,
|
|
38
|
+
* paper or elevated surface (4.5:1 for text, so 3:1 for the icon as well).
|
|
39
|
+
* - `icon`, `shape`, `label`, `severity`: the catalog's, the same in every theme.
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export interface StatusPresentation {
|
|
44
|
+
fill: string;
|
|
45
|
+
onFill: string;
|
|
46
|
+
outline?: string;
|
|
47
|
+
surfaceText: string;
|
|
48
|
+
surfaceIcon: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
shape: StatusShape;
|
|
51
|
+
label: string;
|
|
52
|
+
severity: SeverityLevel;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The presentation of `status` under `theme`: colours from
|
|
56
|
+
* `getTrinityPalette(theme).indicator` (built from the merged token catalog, so token
|
|
57
|
+
* overrides reach it, with the dark roles in dark mode, and an MUI-derived fallback under a
|
|
58
|
+
* plain MUI theme), icon, shape, label and severity from the catalog. In a light Trinity theme
|
|
59
|
+
* the colours equal the catalog's (`statusConfigs`) bit for bit. No mode branch: the theme
|
|
60
|
+
* carries the mode.
|
|
61
|
+
*
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare function resolveStatusPresentation(status: StatusType, theme: Theme): StatusPresentation;
|
|
65
|
+
/**
|
|
66
|
+
* The differential's default colours: the success and critical on-surface roles (C-02): light
|
|
67
|
+
* #15803D and #DA1E28, dark #86EFAC and #FCA5A5. An explicit `positiveColor` or
|
|
68
|
+
* `negativeColor` still wins.
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export declare function resolveDifferentialDefaults(theme: Theme): {
|
|
73
|
+
positive: string;
|
|
74
|
+
negative: string;
|
|
75
|
+
};
|
|
29
76
|
/**
|
|
30
77
|
* Get all available status types
|
|
31
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/types.ts"],"names":[],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,CAI9G,CAAC;AAMF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;AAc/C,eAAO,MAAM,eAAe,GAC1B,QAAQ,UAAU,EAClB,OAAM,eAAyB,KAC9B,YAgBF,CAAC;AAMF;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC;CACzB;AAMD;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAc9F;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAGhG;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,UAAU,EAAgD,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,UAAU,aAAa,KAAG,UAAU,EAI5E,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview StepList: a static ordered list of steps with an ordinal or a status marker
|
|
3
|
+
* (master-plan D-10, ADR-02 shared block).
|
|
4
|
+
* @module components/StepList/StepList
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* - An `<ol role="list">`: the role is owned and restores list semantics where
|
|
9
|
+
* `list-style: none` removes them (WebKit). Each `<li>` holds the marker, the label, the
|
|
10
|
+
* description, the meta, the content and the actions.
|
|
11
|
+
* - `marker="number"` (default) shows the ordinal, hidden from assistive technology because
|
|
12
|
+
* the list already announces positions; `start` is honoured. `marker="status"` renders
|
|
13
|
+
* {@link StepStatusMarker}: the catalog icon plus the status as text. `marker="none"` renders
|
|
14
|
+
* no marker.
|
|
15
|
+
* - Emphasis is never colour alone (ADR-33): the active step's label is weight 600 with a 2px
|
|
16
|
+
* inline-start rule in the resolver's `interactive.default`; an error step sits on
|
|
17
|
+
* `status.error.background` with `text.primary`; a pending label is `text.secondary`, never
|
|
18
|
+
* `text.disabled`.
|
|
19
|
+
* - `animateEntrance` (off by default) is a CSS entrance on the motion tokens that slides in
|
|
20
|
+
* from the inline start (a positive translateX right to left) and stops under reduced
|
|
21
|
+
* motion (`reducedMotion`, B-02's `REDUCED_MOTION_QUERY`), so server rendering never plays
|
|
22
|
+
* it before a JavaScript check.
|
|
23
|
+
* - Not interactive and not a live region: no keyboard model (keyboard-models.md (5), ADR-34),
|
|
24
|
+
* interactive content inside a step keeps its own keys.
|
|
25
|
+
* - Colours come from the resolver (`getTrinityPalette`, ADR-26), so a plain MUI theme works.
|
|
26
|
+
*/
|
|
27
|
+
import * as React from 'react';
|
|
28
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
29
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
30
|
+
import { type StepListStatus } from './stepStatus';
|
|
31
|
+
/** One step. @internal */
|
|
32
|
+
export interface StepListItem {
|
|
33
|
+
/** Stable key. */
|
|
34
|
+
id: string;
|
|
35
|
+
/** The step's text. */
|
|
36
|
+
label: React.ReactNode;
|
|
37
|
+
/** The step's status, for `marker="status"` and the emphasis. Default `'pending'`. */
|
|
38
|
+
status?: StepListStatus;
|
|
39
|
+
/** Replaces the status text of this step, for example "Retrying". */
|
|
40
|
+
statusLabel?: string;
|
|
41
|
+
/** Secondary text under the label. */
|
|
42
|
+
description?: React.ReactNode;
|
|
43
|
+
/** Short metadata (a time, a count) beside the label. */
|
|
44
|
+
meta?: React.ReactNode;
|
|
45
|
+
/** Controls at the inline end of the step; they keep their own keyboard behaviour. */
|
|
46
|
+
actions?: React.ReactNode;
|
|
47
|
+
/** Any content under the step. */
|
|
48
|
+
content?: React.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
/** The Trinity-owned parts of a step. @internal */
|
|
51
|
+
export type StepListSlot = 'item' | 'marker' | 'label' | 'description' | 'meta' | 'actions' | 'content';
|
|
52
|
+
/** StepList's own props. @internal */
|
|
53
|
+
export interface StepListOwnProps {
|
|
54
|
+
/** The steps, in order. */
|
|
55
|
+
items: readonly StepListItem[];
|
|
56
|
+
/** `'number'` (default) the ordinal, `'status'` the status marker, `'none'` no marker. */
|
|
57
|
+
marker?: 'number' | 'status' | 'none';
|
|
58
|
+
/** The first ordinal. Default `1`. */
|
|
59
|
+
start?: number;
|
|
60
|
+
/** Status texts by status, merged over the defaults ("Not started", "In progress", "Completed", "Needs attention", "Failed"). */
|
|
61
|
+
statusLabels?: Partial<Record<StepListStatus, string>>;
|
|
62
|
+
/** Default `'medium'`. */
|
|
63
|
+
size?: 'small' | 'medium';
|
|
64
|
+
/** Slide each step in on mount (staggered); stops under reduced motion. Default `false`. */
|
|
65
|
+
animateEntrance?: boolean;
|
|
66
|
+
/** Applied after the list's own styles; array and function forms work. */
|
|
67
|
+
sx?: SxProps<Theme>;
|
|
68
|
+
/** Added to the list's classes. */
|
|
69
|
+
className?: string;
|
|
70
|
+
/** Props for the parts of every step. */
|
|
71
|
+
slotProps?: Partial<Record<StepListSlot, TrinitySlotProps>>;
|
|
72
|
+
}
|
|
73
|
+
/** StepList's props: its own, plus the `<ol>`'s HTML attributes. @internal */
|
|
74
|
+
export type StepListProps = StepListOwnProps & Omit<React.OlHTMLAttributes<HTMLOListElement>, keyof StepListOwnProps>;
|
|
75
|
+
/**
|
|
76
|
+
* A static ordered list of steps.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export declare const StepList: React.ForwardRefExoticComponent<StepListOwnProps & Omit<React.OlHTMLAttributes<HTMLOListElement>, keyof StepListOwnProps> & React.RefAttributes<HTMLOListElement>>;
|
|
80
|
+
//# sourceMappingURL=StepList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepList.d.ts","sourceRoot":"","sources":["../../../src/components/StepList/StepList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAO1E,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEnG,OAAO,EAA8B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/E,0BAA0B;AAC1B,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sFAAsF;IACtF,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,yDAAyD;IACzD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sFAAsF;IACtF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kCAAkC;IAClC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,mDAAmD;AACnD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAExG,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iIAAiI;IACjI,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD,0BAA0B;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,4FAA4F;IAC5F,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,0EAA0E;IAC1E,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC;CAC7D;AAED,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,MAAM,gBAAgB,CAAC,CAAC;AAOtH;;;GAGG;AACH,eAAO,MAAM,QAAQ,oKAwJnB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview StepStatusMarker: the status marker of one StepList step (master-plan D-10).
|
|
3
|
+
* @module components/StepList/StepStatusMarker
|
|
4
|
+
*
|
|
5
|
+
* @internal — not part of the public API; see ADR-02
|
|
6
|
+
*
|
|
7
|
+
* The status is text plus an icon shape, never colour alone (ADR-33): the repaired
|
|
8
|
+
* StatusIndicator icon (C-02..C-04), hidden from assistive technology, and the status as
|
|
9
|
+
* visually hidden text in sentence case. The vocabulary is in ./stepStatus.ts.
|
|
10
|
+
*
|
|
11
|
+
* `labelVisibility="none"` renders no text, for a trigger (D-23, D-36) that places the status
|
|
12
|
+
* text after its visible label so that its accessible name starts with the visible label
|
|
13
|
+
* (WCAG 2.5.3). The marker is spans only (phrasing content), so it may sit in a button (D-44).
|
|
14
|
+
*/
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
17
|
+
import { type StepListStatus } from './stepStatus';
|
|
18
|
+
/** Props of {@link StepStatusMarker}. @internal */
|
|
19
|
+
export interface StepStatusMarkerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
20
|
+
/** The step's status. */
|
|
21
|
+
status: StepListStatus;
|
|
22
|
+
/** The status text. Default: the status's default text. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* `'visually-hidden'` (default) renders the status text for assistive technology; `'none'`
|
|
26
|
+
* renders none, for a trigger that places the text after its visible label.
|
|
27
|
+
*/
|
|
28
|
+
labelVisibility?: 'visually-hidden' | 'none';
|
|
29
|
+
/** Default `'medium'`. */
|
|
30
|
+
size?: 'small' | 'medium';
|
|
31
|
+
/** Applied after the marker's own styles. */
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The marker: the catalog icon (decorative) and the status text.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare const StepStatusMarker: React.ForwardRefExoticComponent<StepStatusMarkerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
//# sourceMappingURL=StepStatusMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepStatusMarker.d.ts","sourceRoot":"","sources":["../../../src/components/StepList/StepStatusMarker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAAmD,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEpG,mDAAmD;AACnD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACpG,yBAAyB;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,eAAe,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAC7C,0BAA0B;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,6CAA6C;IAC7C,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,+FAiB3B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The step statuses of StepList: their StatusIndicator catalog icons and their
|
|
3
|
+
* default texts (master-plan D-10).
|
|
4
|
+
* @module components/StepList/stepStatus
|
|
5
|
+
*
|
|
6
|
+
* @internal — not part of the public API; see ADR-02
|
|
7
|
+
*
|
|
8
|
+
* The icon vocabulary is the StatusIndicator catalog (OD-D11 (a), the recommended option; the
|
|
9
|
+
* owner's design sign-off is pending). If design rejects it, only STEP_STATUS_CATALOG changes
|
|
10
|
+
* (first fallback (a2): `pending` as `inactive`), with no API change.
|
|
11
|
+
*
|
|
12
|
+
* | Step status | Catalog status | Default text |
|
|
13
|
+
* |---|---|---|
|
|
14
|
+
* | `pending` | `pending` (clock) | Not started |
|
|
15
|
+
* | `active` | `in-progress` (refresh) | In progress |
|
|
16
|
+
* | `completed` | `complete` (check) | Completed |
|
|
17
|
+
* | `warning` | `warning` | Needs attention |
|
|
18
|
+
* | `error` | `error` | Failed |
|
|
19
|
+
*/
|
|
20
|
+
import type { StatusType } from '../StatusIndicator/types';
|
|
21
|
+
/** The status of one step. @internal */
|
|
22
|
+
export type StepListStatus = 'pending' | 'active' | 'completed' | 'warning' | 'error';
|
|
23
|
+
/** The StatusIndicator catalog status each step status draws (OD-D11 (a)). @internal */
|
|
24
|
+
export declare const STEP_STATUS_CATALOG: Readonly<Record<StepListStatus, StatusType>>;
|
|
25
|
+
/**
|
|
26
|
+
* The default status texts, in sentence case (MICROCOPY). The catalog's Title Case labels
|
|
27
|
+
* ("In Progress") are never used as step text. @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const DEFAULT_STEP_STATUS_LABELS: Readonly<Record<StepListStatus, string>>;
|
|
30
|
+
//# sourceMappingURL=stepStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepStatus.d.ts","sourceRoot":"","sources":["../../../src/components/StepList/stepStatus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,wCAAwC;AACxC,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;AAEtF,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC,CAM5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAM/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemBanner.d.ts","sourceRoot":"","sources":["../../../src/components/SystemBanner/SystemBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemBanner.d.ts","sourceRoot":"","sources":["../../../src/components/SystemBanner/SystemBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,iBAAiB,EAAwB,MAAM,SAAS,CAAC;AA+DvE,eAAO,MAAM,YAAY,0FA2FxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
import * as React from 'react';
|
|
14
|
+
import { type HeadingLevel } from '../shared/headingLevel';
|
|
15
|
+
import { type TimelineLabels } from './timelineLabels';
|
|
16
|
+
export type { TimelineLabels } from './timelineLabels';
|
|
14
17
|
export type TimelineVariant = 'default' | 'compact' | 'detailed';
|
|
15
18
|
export type TimelineItemType = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
16
19
|
export interface TimelineItem {
|
|
@@ -61,11 +64,31 @@ export interface TimelineProps {
|
|
|
61
64
|
showConnector?: boolean;
|
|
62
65
|
/** Alternate sides (for detailed variant) */
|
|
63
66
|
alternate?: boolean;
|
|
64
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Custom render function for items. Timeline wraps each result in the list item
|
|
69
|
+
* (`<li key={item.id}>`) itself, with the item's type text; date-group headings are
|
|
70
|
+
* Timeline's own and are not passed here. `index` is the item's position in the rendered
|
|
71
|
+
* sequence, date-group headings included.
|
|
72
|
+
*/
|
|
65
73
|
renderItem?: (item: TimelineItem, index: number) => React.ReactNode;
|
|
66
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Group items by date. Each group is a heading (`groupHeadingLevel`) followed by its own
|
|
76
|
+
* ordered list.
|
|
77
|
+
*/
|
|
67
78
|
groupByDate?: boolean;
|
|
68
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Heading level of the date-group labels (`groupByDate`, or items with `isGroupHeader`).
|
|
81
|
+
* They keep their caption style at every level.
|
|
82
|
+
* @default 3
|
|
83
|
+
* @since 2.13.0
|
|
84
|
+
*/
|
|
85
|
+
groupHeadingLevel?: HeadingLevel;
|
|
86
|
+
/**
|
|
87
|
+
* Callback when an item is activated. An item without expandable content then has a
|
|
88
|
+
* primary action: a button that covers the item, named by its title, reachable with Tab
|
|
89
|
+
* and run by Enter and Space (B-25). An expandable item expands instead; its "Show details"
|
|
90
|
+
* button is the keyboard path.
|
|
91
|
+
*/
|
|
69
92
|
onItemClick?: (item: TimelineItem) => void;
|
|
70
93
|
/** Show "Load more" button */
|
|
71
94
|
showLoadMore?: boolean;
|
|
@@ -77,6 +100,35 @@ export interface TimelineProps {
|
|
|
77
100
|
emptyMessage?: string;
|
|
78
101
|
/** Max height with scroll */
|
|
79
102
|
maxHeight?: number | string;
|
|
103
|
+
/**
|
|
104
|
+
* Locale of the date-group labels (`groupByDate`), as a BCP 47 tag.
|
|
105
|
+
* The default keeps server and client markup identical; pass the user's locale
|
|
106
|
+
* (for example `useAILocale()` or `navigator.language` read after mount) to localize.
|
|
107
|
+
* @default 'en-US'
|
|
108
|
+
* @since 2.13.0
|
|
109
|
+
*/
|
|
110
|
+
locale?: string;
|
|
111
|
+
/**
|
|
112
|
+
* IANA time zone that decides which day an item belongs to (`groupByDate`).
|
|
113
|
+
* Without it the runtime's zone is used, so a server and a browser in different zones
|
|
114
|
+
* can group an item under different days: server-rendered apps should pass one.
|
|
115
|
+
* @default undefined (the runtime's time zone)
|
|
116
|
+
* @since 2.13.0
|
|
117
|
+
*/
|
|
118
|
+
timeZone?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Formats the label of a date group (`groupByDate`). Called with each valid item date;
|
|
121
|
+
* items whose timestamp is not a valid date go under `labels.unknownDate`. Items are grouped
|
|
122
|
+
* by the returned string. Overrides `locale` and `timeZone` for the label text.
|
|
123
|
+
* @since 2.13.0
|
|
124
|
+
*/
|
|
125
|
+
formatGroupLabel?: (date: Date) => string;
|
|
126
|
+
/**
|
|
127
|
+
* Overrides for Timeline's built-in strings (any subset; NAMING.md "Label overrides"). Keys
|
|
128
|
+
* you leave out keep their English defaults (see {@link TimelineLabels}).
|
|
129
|
+
* @since 2.13.0
|
|
130
|
+
*/
|
|
131
|
+
labels?: Partial<TimelineLabels>;
|
|
80
132
|
}
|
|
81
133
|
export declare const TimelineItemComponent: React.FC<{
|
|
82
134
|
item: TimelineItem;
|
|
@@ -84,6 +136,8 @@ export declare const TimelineItemComponent: React.FC<{
|
|
|
84
136
|
showConnector: boolean;
|
|
85
137
|
isLast: boolean;
|
|
86
138
|
onClick?: (item: TimelineItem) => void;
|
|
139
|
+
/** Resolved strings; Timeline passes its `labels` merged over the defaults. */
|
|
140
|
+
labels?: TimelineLabels;
|
|
87
141
|
}>;
|
|
88
142
|
export declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLDivElement>>;
|
|
89
143
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM7E,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpF,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,wBAAwB;IACxB,KA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W,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,8BAA8B;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IAC1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3C,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CA8QA,CAAC;AAoBF,eAAO,MAAM,QAAQ,sFAuKnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Timeline, type TimelineProps, type TimelineItem, TimelineItemComponent } from './Timeline';
|
|
1
|
+
export { Timeline, type TimelineProps, type TimelineItem, type TimelineLabels, TimelineItemComponent } from './Timeline';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Timeline's overridable strings and their English defaults (B-25, H-44, NAMING.md
|
|
3
|
+
* "Label overrides (non-AI)", H-47).
|
|
4
|
+
* @module components/Timeline/timelineLabels
|
|
5
|
+
*/
|
|
6
|
+
import type { TimelineItemType } from './Timeline';
|
|
7
|
+
/**
|
|
8
|
+
* Strings Timeline renders. Pass a partial object to `labels`; keys you leave out (or set to
|
|
9
|
+
* `undefined`) keep their English defaults.
|
|
10
|
+
*
|
|
11
|
+
* @since 2.13.0
|
|
12
|
+
*/
|
|
13
|
+
export interface TimelineLabels {
|
|
14
|
+
/**
|
|
15
|
+
* Name and tooltip of an expandable item's button while the item is collapsed.
|
|
16
|
+
* @default 'Show details'
|
|
17
|
+
*/
|
|
18
|
+
expandDetails: string;
|
|
19
|
+
/**
|
|
20
|
+
* Name and tooltip of an expandable item's button while the item is expanded.
|
|
21
|
+
* @default 'Hide details'
|
|
22
|
+
*/
|
|
23
|
+
collapseDetails: string;
|
|
24
|
+
/**
|
|
25
|
+
* Visible caption under an item's title in the detailed variant, naming who acted.
|
|
26
|
+
* @default ({ actor }) => `by ${actor}`
|
|
27
|
+
*/
|
|
28
|
+
actorPrefix: (args: {
|
|
29
|
+
actor: string;
|
|
30
|
+
}) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Group label for items whose `timestamp` is not a valid date (with `groupByDate`).
|
|
33
|
+
* @default 'Unknown date'
|
|
34
|
+
*/
|
|
35
|
+
unknownDate: string;
|
|
36
|
+
/**
|
|
37
|
+
* Text of the load-more button (`showLoadMore` with `onLoadMore`).
|
|
38
|
+
* @default 'Load more'
|
|
39
|
+
*/
|
|
40
|
+
loadMore: string;
|
|
41
|
+
/**
|
|
42
|
+
* Text of the load-more button while `loadingMore` is true.
|
|
43
|
+
* @default 'Loading...'
|
|
44
|
+
*/
|
|
45
|
+
loadingMore: string;
|
|
46
|
+
/**
|
|
47
|
+
* Visually hidden text read before each item that has a `type`, so the type is not conveyed by
|
|
48
|
+
* the dot or icon color alone (WCAG 1.4.1). A type without an entry here gets no text; keys you
|
|
49
|
+
* pass are merged over the defaults one by one.
|
|
50
|
+
* @default { success: 'Success', warning: 'Warning', error: 'Error', info: 'Info' }
|
|
51
|
+
*/
|
|
52
|
+
types: Partial<Record<TimelineItemType, string>>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* English defaults for {@link TimelineLabels}.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export declare const DEFAULT_TIMELINE_LABELS: TimelineLabels;
|
|
59
|
+
/**
|
|
60
|
+
* Merges the consumer's partial labels over the defaults. A key set to `undefined` keeps its
|
|
61
|
+
* default.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare function resolveTimelineLabels(overrides: Partial<TimelineLabels> | undefined): TimelineLabels;
|
|
65
|
+
/**
|
|
66
|
+
* The hidden type text for an item, or undefined for an untyped item or a type without a label.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
export declare function timelineTypeLabel(labels: TimelineLabels, type: TimelineItemType | undefined): string | undefined;
|
|
70
|
+
//# sourceMappingURL=timelineLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timelineLabels.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/timelineLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACjD;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAQrC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,cAAc,CAWpG;AAMD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGhH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAMN,MAAM,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