@trinityui/design-system 2.11.1 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2171 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +508 -28
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +17219 -9131
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +159 -77
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +81 -11
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +104 -16
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +47 -4
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +143 -8
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +18 -1
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +61 -2
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +9 -2
- package/dist/components/shared/safeContent.d.ts.map +1 -1
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13925 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +69 -69
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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","sour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;AAE9C,gBAAgB;AAChB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,gBAAgB;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,gBAAgB;AAChB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,gBAAgB;AAChB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD,YAAY,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":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAelD,MAAM,MAAM,UAAU,GAElB,OAAO,GACP,UAAU,GACV,QAAQ,GACR,UAAU,GACV,WAAW,GAEX,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,GACb,SAAS,GAET,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,GAET,MAAM,GACN,KAAK,GACL,SAAS,GAET,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GAET,MAAM,GACN,cAAc,CAAC;AAEnB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAMtD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EA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"}
|
|
@@ -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,sFA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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,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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,OAAO,CAAC;AAef,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AACnB,KAAK,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,uCAAuC;IACv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;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ,QAAO,gBAM3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -42,8 +42,19 @@ export interface TopNavHeaderProps {
|
|
|
42
42
|
* When provided, shown alongside or replacing the `appName` display text.
|
|
43
43
|
*/
|
|
44
44
|
productName?: string;
|
|
45
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The client name shown in the client selector, on every render (controlled). The selector
|
|
47
|
+
* does not change it by itself: update the prop from `onClientChange`. Leave it unset to let
|
|
48
|
+
* the selector keep the user's choice (`defaultClientName`).
|
|
49
|
+
*/
|
|
46
50
|
clientName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The client name shown first when `clientName` is not passed (uncontrolled); picking a client
|
|
53
|
+
* in the selector then changes it.
|
|
54
|
+
* @default 'Long Client Name 1'
|
|
55
|
+
* @since 2.13.1
|
|
56
|
+
*/
|
|
57
|
+
defaultClientName?: string;
|
|
47
58
|
/** Array of available clients for the dropdown selector. */
|
|
48
59
|
clients?: {
|
|
49
60
|
id: string;
|
|
@@ -51,6 +62,12 @@ export interface TopNavHeaderProps {
|
|
|
51
62
|
}[];
|
|
52
63
|
/** Callback fired when the user selects a different client. */
|
|
53
64
|
onClientChange?: (clientId: string) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Accessible name of the client picker's trigger, from the current client (B-37).
|
|
67
|
+
* @default (client) => `Switch client, current: ${client}`
|
|
68
|
+
* @since 2.13.0
|
|
69
|
+
*/
|
|
70
|
+
clientSelectorLabel?: (client: string) => string;
|
|
54
71
|
/** User initials displayed in the avatar circle. @default 'RD' */
|
|
55
72
|
userInitials?: string;
|
|
56
73
|
/** Full name of the logged-in user, shown in the user menu header. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavHeader.d.ts","sourceRoot":"","sources":["../../src/components/TopNavHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,K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,EAAE,YAAY,EAAE,CAAC;CAChC;AAED,QAAA,MAAM,YAAY,uFAoqBhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -14,6 +14,28 @@ interface NavItem {
|
|
|
14
14
|
label: string;
|
|
15
15
|
icon: React.ReactNode;
|
|
16
16
|
isSpecial?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* What the item does (H-11). `'page'` navigates: a click selects it and it
|
|
19
|
+
* carries `aria-current="page"` while selected. `'toggle'` opens and closes
|
|
20
|
+
* something on the page (a panel): it is never selected, never carries
|
|
21
|
+
* `aria-current`, and its selected styling follows `expanded`. A click still
|
|
22
|
+
* fires `onNavItemClick`.
|
|
23
|
+
* @default 'page'
|
|
24
|
+
* @since 2.13.0
|
|
25
|
+
*/
|
|
26
|
+
kind?: 'page' | 'toggle';
|
|
27
|
+
/**
|
|
28
|
+
* A toggle item's state: rendered as `aria-expanded` when defined, and its
|
|
29
|
+
* selected styling while `true`.
|
|
30
|
+
* @since 2.13.0
|
|
31
|
+
*/
|
|
32
|
+
expanded?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Id of the element a toggle item opens, rendered as `aria-controls` when
|
|
35
|
+
* defined. Pass it only while that element is in the document.
|
|
36
|
+
* @since 2.13.0
|
|
37
|
+
*/
|
|
38
|
+
controls?: string;
|
|
17
39
|
}
|
|
18
40
|
interface App {
|
|
19
41
|
id: string;
|
|
@@ -36,8 +58,19 @@ interface TopNavWithSidebarProps {
|
|
|
36
58
|
* When provided, shown alongside or replacing the `appName` display text.
|
|
37
59
|
*/
|
|
38
60
|
productName?: string;
|
|
39
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* The client name shown in the client selector, on every render (controlled). The selector
|
|
63
|
+
* does not change it by itself: update the prop from `onClientChange`. Leave it unset to let
|
|
64
|
+
* the selector keep the user's choice (`defaultClientName`).
|
|
65
|
+
*/
|
|
40
66
|
clientName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The client name shown first when `clientName` is not passed (uncontrolled); picking a client
|
|
69
|
+
* in the selector then changes it.
|
|
70
|
+
* @default 'Long Client Name 1'
|
|
71
|
+
* @since 2.13.1
|
|
72
|
+
*/
|
|
73
|
+
defaultClientName?: string;
|
|
41
74
|
/** Array of available clients for the dropdown selector. */
|
|
42
75
|
clients?: {
|
|
43
76
|
id: string;
|
|
@@ -45,6 +78,12 @@ interface TopNavWithSidebarProps {
|
|
|
45
78
|
}[];
|
|
46
79
|
/** Callback fired when the user selects a different client. */
|
|
47
80
|
onClientChange?: (clientId: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Accessible name of the client picker's trigger, from the current client (B-37).
|
|
83
|
+
* @default (client) => `Switch client, current: ${client}`
|
|
84
|
+
* @since 2.13.0
|
|
85
|
+
*/
|
|
86
|
+
clientSelectorLabel?: (client: string) => string;
|
|
48
87
|
/** User initials displayed in the avatar circle. @default 'RD' */
|
|
49
88
|
userInitials?: string;
|
|
50
89
|
/** Full name of the logged-in user, shown in the user menu header. */
|
|
@@ -61,8 +100,28 @@ interface TopNavWithSidebarProps {
|
|
|
61
100
|
apps?: App[];
|
|
62
101
|
/** Array of navigation items rendered in the sidebar. */
|
|
63
102
|
navItems?: NavItem[];
|
|
64
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* ID of the selected navigation item (controlled). The highlight and `aria-current` follow
|
|
105
|
+
* this prop on every render, so derive it from your router's location. A click does not
|
|
106
|
+
* move the highlight by itself: update the prop from `onSelectedNavItemChange` (or
|
|
107
|
+
* `onNavItemClick`). Leave it `undefined` to let the sidebar keep the selection
|
|
108
|
+
* (`defaultSelectedNavItem`).
|
|
109
|
+
*/
|
|
65
110
|
selectedNavItem?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The item selected first when `selectedNavItem` is not passed (uncontrolled); a click
|
|
113
|
+
* on a page item then moves the selection. Read on the first render only.
|
|
114
|
+
* @default 'home'
|
|
115
|
+
* @since 2.13.0
|
|
116
|
+
*/
|
|
117
|
+
defaultSelectedNavItem?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Fired when the user selects a different page item (not for `kind: 'toggle'` items,
|
|
120
|
+
* and not for the item that is already selected), in both modes. Receives the new and
|
|
121
|
+
* the previously selected ID. A controlled `selectedNavItem` should be set from here.
|
|
122
|
+
* @since 2.13.0
|
|
123
|
+
*/
|
|
124
|
+
onSelectedNavItemChange?: (itemId: string, previousId: string | undefined) => void;
|
|
66
125
|
/**
|
|
67
126
|
* Callback fired when a sidebar navigation item is clicked.
|
|
68
127
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavWithSidebar.d.ts","sourceRoot":"","sources":["../../src/components/TopNavWithSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TopNavWithSidebar.d.ts","sourceRoot":"","sources":["../../src/components/TopNavWithSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwE/B,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE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