@trinityui/design-system 2.11.1 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2171 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +508 -28
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +17219 -9131
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +159 -77
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +81 -11
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +104 -16
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +47 -4
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +143 -8
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +18 -1
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +61 -2
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +9 -2
- package/dist/components/shared/safeContent.d.ts.map +1 -1
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13925 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +69 -69
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview MetaChip: a `Label: value` metadata chip over MUI Chip (master-plan D-04).
|
|
3
|
+
* @module components/MetaChip
|
|
4
|
+
*
|
|
5
|
+
* @internal — not part of the public API; see ADR-02
|
|
6
|
+
*
|
|
7
|
+
* One chip for metadata: FilterBar's filter chips, AuditDrawer's category, AIPersonaCard's
|
|
8
|
+
* capabilities, AISourcesPanel's items and the chain-of-thought sources migrate onto it
|
|
9
|
+
* (D-13, D-16, D-28, D-32, D-38).
|
|
10
|
+
*
|
|
11
|
+
* - **Content.** `label`, `labelSeparator` and `value`, so a screen reader reads
|
|
12
|
+
* "Status: Open". The value is model, user or data text and is bidi-isolated (E-48+); the
|
|
13
|
+
* label is UI text and is not. `renderLabel({ label, value })` replaces the composition:
|
|
14
|
+
* `null` renders nothing, `undefined` the default (ADR-04 (7)).
|
|
15
|
+
* - **Tones.** `'neutral'` (the default) sets no colour, so the chip is MUI Chip's own default
|
|
16
|
+
* for its variant. The status tones read `getTrinityPalette(theme).status`, the pairs
|
|
17
|
+
* INSTRUCTIONS_CSS's `.chip--*` recipe uses. An object tone passes resolver colours through.
|
|
18
|
+
* - **Interaction (OD-D3 (a), the MUI Chip model).** With `onClick` or `onDelete` the root is
|
|
19
|
+
* a native `<button type="button">`, valid inside `<p>` and headings. Delete and Backspace
|
|
20
|
+
* call `onDelete`; the visually hidden `deleteHint` is linked through `aria-describedby`;
|
|
21
|
+
* the delete icon's box is at least 24 by 24 (WCAG 2.5.8). Without either, the root is the
|
|
22
|
+
* `component` element (`'div'` or `'span'`).
|
|
23
|
+
* - **Selection.** `aria-pressed` only when `selected` is defined, the chip has `onClick`, and
|
|
24
|
+
* the consumer passes no `aria-expanded` or `aria-haspopup` (popup and disclosure triggers
|
|
25
|
+
* are never toggles). Selected adds a 2px `interactive.default` border and weight 600, not
|
|
26
|
+
* colour alone (ADR-33); forced colours draw it as a 2px Highlight border.
|
|
27
|
+
* - **Truncation.** `truncate` (interactive chips only) keeps one line with an ellipsis; the
|
|
28
|
+
* full text stays in the DOM and, while it overflows (`useOverflow`, measured after mount),
|
|
29
|
+
* a Tooltip with `describeChild` shows it. Other chips wrap.
|
|
30
|
+
* - **Disabled** applies to interactive chips only: the root is a natively disabled button
|
|
31
|
+
* (out of the tab order, and exempt from the contrast rules as an inactive control), with
|
|
32
|
+
* `onDelete` alone too. A static chip has no disabled state to expose, so `disabled` there is
|
|
33
|
+
* ignored rather than greying the text below 4.5:1.
|
|
34
|
+
* - **Warnings** (development, once): `truncate` without interaction; `selected` without
|
|
35
|
+
* `onClick`; `disabled` without interaction.
|
|
36
|
+
*/
|
|
37
|
+
import * as React from 'react';
|
|
38
|
+
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
39
|
+
import { type TrinitySlotProps } from '../shared/rootProps';
|
|
40
|
+
/** A status tone, or `'neutral'` (MUI Chip's own default colours). @internal */
|
|
41
|
+
export type MetaChipTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
42
|
+
/** Resolver-derived colours for a custom tone. @internal */
|
|
43
|
+
export interface MetaChipColors {
|
|
44
|
+
text: string;
|
|
45
|
+
background: string;
|
|
46
|
+
border: string;
|
|
47
|
+
}
|
|
48
|
+
/** The chip's own props. @internal */
|
|
49
|
+
export interface MetaChipOwnProps {
|
|
50
|
+
/** The value: model, user or data text. Bidi-isolated. */
|
|
51
|
+
value: React.ReactNode;
|
|
52
|
+
/** The label before the separator, in the UI language. */
|
|
53
|
+
label?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Between the label and the value.
|
|
56
|
+
* @default ':'
|
|
57
|
+
*/
|
|
58
|
+
labelSeparator?: string;
|
|
59
|
+
/** Replaces the label and value composition: `null` renders nothing, `undefined` the default. */
|
|
60
|
+
renderLabel?: (parts: {
|
|
61
|
+
label: React.ReactNode;
|
|
62
|
+
value: React.ReactNode;
|
|
63
|
+
}) => React.ReactNode | null | undefined;
|
|
64
|
+
/** A leading icon (decorative). */
|
|
65
|
+
icon?: React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* `'neutral'` sets no colour; a status tone reads the resolver's status pair.
|
|
68
|
+
* @default 'neutral'
|
|
69
|
+
*/
|
|
70
|
+
tone?: MetaChipTone | MetaChipColors;
|
|
71
|
+
/**
|
|
72
|
+
* MUI Chip's variants.
|
|
73
|
+
* @default 'filled'
|
|
74
|
+
*/
|
|
75
|
+
variant?: 'filled' | 'outlined';
|
|
76
|
+
/** @default 'small' */
|
|
77
|
+
size?: 'small' | 'medium';
|
|
78
|
+
/**
|
|
79
|
+
* The root element when the chip is not interactive. An interactive chip is a `<button>`.
|
|
80
|
+
* @default 'div'
|
|
81
|
+
*/
|
|
82
|
+
component?: 'div' | 'span';
|
|
83
|
+
/** The pressed state of a toggle chip (needs `onClick`). */
|
|
84
|
+
selected?: boolean;
|
|
85
|
+
/** A natively disabled button. Interactive chips only; ignored on a static chip. */
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
/** One line with an ellipsis and a tooltip while it overflows. Interactive chips only. */
|
|
88
|
+
truncate?: boolean;
|
|
89
|
+
maxWidth?: number | string;
|
|
90
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
91
|
+
/** Called by the delete icon and by Delete or Backspace on the focused chip. */
|
|
92
|
+
onDelete?: (event: React.SyntheticEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* The visually hidden hint linked to a removable chip through `aria-describedby`.
|
|
95
|
+
* @default 'Press Delete to remove'
|
|
96
|
+
*/
|
|
97
|
+
deleteHint?: string;
|
|
98
|
+
sx?: SxProps<Theme>;
|
|
99
|
+
className?: string;
|
|
100
|
+
slotProps?: {
|
|
101
|
+
label?: TrinitySlotProps<HTMLSpanElement>;
|
|
102
|
+
value?: TrinitySlotProps<HTMLSpanElement>;
|
|
103
|
+
icon?: TrinitySlotProps<HTMLSpanElement>;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
export type MetaChipProps = MetaChipOwnProps & Omit<React.HTMLAttributes<HTMLElement>, keyof MetaChipOwnProps | 'color'>;
|
|
108
|
+
/**
|
|
109
|
+
* A `Label: value` metadata chip. See the module notes.
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
export declare const MetaChip: React.ForwardRefExoticComponent<MetaChipOwnProps & Omit<React.HTMLAttributes<HTMLElement>, "color" | keyof MetaChipOwnProps> & React.RefAttributes<HTMLElement>>;
|
|
113
|
+
//# sourceMappingURL=MetaChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaChip.d.ts","sourceRoot":"","sources":["../../../src/components/MetaChip/MetaChip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQ1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhF,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAChH,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;IACrC;;;OA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type TrinityRootProps, type TrinitySlotProps } from '../shared/rootProps';
|
|
16
|
+
/**
|
|
17
|
+
* Modal's overridable strings (NAMING, "Label overrides"). Pass only the keys you change through
|
|
18
|
+
* `labels`.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.13.0
|
|
21
|
+
*/
|
|
22
|
+
export interface ModalLabels {
|
|
23
|
+
/**
|
|
24
|
+
* The close button's accessible name and tooltip.
|
|
25
|
+
* @default 'Close dialog'
|
|
26
|
+
*/
|
|
27
|
+
close: string;
|
|
28
|
+
/**
|
|
29
|
+
* The button in the inline error (shown when the primary action fails) that runs the action
|
|
30
|
+
* again.
|
|
31
|
+
* @default 'Try again'
|
|
32
|
+
* @since 2.13.0
|
|
33
|
+
*/
|
|
34
|
+
retry: string;
|
|
35
|
+
}
|
|
15
36
|
export type ModalVariant = 'default' | 'info' | 'success' | 'warning' | 'danger' | 'confirm';
|
|
16
37
|
/**
|
|
17
|
-
*
|
|
38
|
+
* Modal's own props. ModalProps adds the root's HTML attributes (ADR-04).
|
|
18
39
|
*/
|
|
19
|
-
|
|
40
|
+
interface ModalOwnProps {
|
|
20
41
|
/** Whether the modal is open */
|
|
21
42
|
open: boolean;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Called when the modal asks to close, with why: `'closeButton'`, `'secondaryAction'`,
|
|
45
|
+
* `'backdropClick'` or `'escapeKeyDown'` (the reason since 2.13.0). While the primary action is
|
|
46
|
+
* pending, no close path calls it unless `pendingClosePolicy="allow"`.
|
|
47
|
+
*/
|
|
48
|
+
onClose: (reason?: 'closeButton' | 'secondaryAction' | 'backdropClick' | 'escapeKeyDown') => void;
|
|
49
|
+
/**
|
|
50
|
+
* Modal title: the dialog's heading (`h2`) and its accessible name. Without a title, name the
|
|
51
|
+
* dialog with `aria-label` or `aria-labelledby` (they reach the dialog surface); with neither,
|
|
52
|
+
* a development warning fires.
|
|
53
|
+
*/
|
|
25
54
|
title?: string;
|
|
26
55
|
/** Modal content */
|
|
27
56
|
children?: React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* A message shown first in the content, as MUI's DialogContentText: a paragraph for a
|
|
59
|
+
* string, a `div` for any other node (so lists and blocks are valid HTML). It has its own id,
|
|
60
|
+
* which `describedBy="message"` points the dialog's description at.
|
|
61
|
+
* @since 2.13.0
|
|
62
|
+
*/
|
|
63
|
+
message?: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* What describes the dialog (`aria-describedby` on the surface): `'content'` (the whole
|
|
66
|
+
* content area, the default and the behavior before 2.13.0), `'message'` (only `message`),
|
|
67
|
+
* or `'none'`. A consumer's own `aria-describedby` is added after it.
|
|
68
|
+
* @default 'content'
|
|
69
|
+
* @since 2.13.0
|
|
70
|
+
*/
|
|
71
|
+
describedBy?: 'content' | 'message' | 'none';
|
|
72
|
+
/**
|
|
73
|
+
* Overrides for Modal's strings; see {@link ModalLabels}.
|
|
74
|
+
* @since 2.13.0
|
|
75
|
+
*/
|
|
76
|
+
labels?: Partial<ModalLabels>;
|
|
28
77
|
/** Visual variant */
|
|
29
78
|
variant?: ModalVariant;
|
|
30
79
|
/** Primary action button label */
|
|
31
80
|
primaryAction?: string;
|
|
32
|
-
/**
|
|
33
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Primary action click handler. It may return nothing, a promise or any thenable (a thenable
|
|
83
|
+
* since 2.13.0). While what it returns is pending, the primary button shows a spinner and is
|
|
84
|
+
* `aria-busy`, and the actions are `aria-disabled` (they keep focus; clicks do nothing). A sync
|
|
85
|
+
* throw or a rejection shows an inline error with a retry button and goes to `onActionError`.
|
|
86
|
+
*/
|
|
87
|
+
onPrimaryAction?: () => void | PromiseLike<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Called with the error when the primary action throws or rejects. Without it the error is
|
|
90
|
+
* reported through `globalThis.reportError`, so window error monitoring still sees it; it never
|
|
91
|
+
* escapes as an unhandled rejection. The inline error shows either way.
|
|
92
|
+
* @since 2.13.0
|
|
93
|
+
*/
|
|
94
|
+
onActionError?: (error: unknown) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the dialog can close while the primary action (or `loading`) is pending: `'block'`
|
|
97
|
+
* (the default) ignores the close button, the secondary action, backdrop clicks and Escape, and
|
|
98
|
+
* marks the close and secondary buttons `aria-disabled`; `'allow'` keeps every close path
|
|
99
|
+
* working.
|
|
100
|
+
* @default 'block'
|
|
101
|
+
* @since 2.13.0
|
|
102
|
+
*/
|
|
103
|
+
pendingClosePolicy?: 'block' | 'allow';
|
|
104
|
+
/**
|
|
105
|
+
* The inline error shown at the end of the content when the primary action fails: what
|
|
106
|
+
* happened and what to do next. A node, or a function of the error that returns one (for
|
|
107
|
+
* example to show a server message you trust). The retry button's text is `labels.retry`.
|
|
108
|
+
* @default 'The action could not be completed. Try again.'
|
|
109
|
+
* @since 2.13.0
|
|
110
|
+
*/
|
|
111
|
+
errorMessage?: React.ReactNode | ((error: unknown) => React.ReactNode);
|
|
34
112
|
/** Secondary action button label */
|
|
35
113
|
secondaryAction?: string;
|
|
36
114
|
/** Secondary action click handler */
|
|
37
115
|
onSecondaryAction?: () => void;
|
|
38
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Shows the pending state as if the primary action were running: a spinner on the primary
|
|
118
|
+
* button, and `aria-disabled` actions (before 2.13.0 they were `disabled`, which dropped focus).
|
|
119
|
+
*/
|
|
39
120
|
loading?: boolean;
|
|
40
121
|
/** Whether primary action is disabled */
|
|
41
122
|
primaryDisabled?: boolean;
|
|
@@ -49,14 +130,44 @@ export interface ModalProps {
|
|
|
49
130
|
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
50
131
|
/** Full width */
|
|
51
132
|
fullWidth?: boolean;
|
|
52
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Full screen below the theme's `sm` breakpoint: the dialog fills the viewport with no
|
|
135
|
+
* radius. Above `sm` it keeps its `maxWidth`. The first render (server and hydration) is not
|
|
136
|
+
* full screen; the viewport is read after mount.
|
|
137
|
+
*/
|
|
53
138
|
fullScreenMobile?: boolean;
|
|
54
139
|
/** Custom footer content */
|
|
55
140
|
footer?: React.ReactNode;
|
|
56
141
|
/** Hide default footer actions */
|
|
57
142
|
hideFooter?: boolean;
|
|
58
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* Styles for the dialog surface (the paper, `role="dialog"`), applied after Modal's own. The
|
|
145
|
+
* object, array and function forms all work (array and function since 2.13.0).
|
|
146
|
+
*/
|
|
59
147
|
sx?: object;
|
|
148
|
+
/**
|
|
149
|
+
* Class name for the Dialog root, added to its own classes.
|
|
150
|
+
* @since 2.13.0
|
|
151
|
+
*/
|
|
152
|
+
className?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Props for Modal's parts (ADR-04 (6)): `root` (the Dialog root, a fixed container around
|
|
155
|
+
* the backdrop and the surface), `backdrop`, and `paper` (the dialog surface, `role="dialog"`).
|
|
156
|
+
* Each takes `className`, `sx`, `id` and HTML attributes; `role`, `aria-modal` and the other
|
|
157
|
+
* owned attributes stay Modal's. `slotProps.paper.sx` applies after `sx`.
|
|
158
|
+
* @since 2.13.0
|
|
159
|
+
*/
|
|
160
|
+
slotProps?: {
|
|
161
|
+
root?: TrinitySlotProps<HTMLDivElement>;
|
|
162
|
+
backdrop?: TrinitySlotProps<HTMLDivElement>;
|
|
163
|
+
paper?: TrinitySlotProps<HTMLDivElement>;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Props for Modal component: Modal's own props, plus HTML attributes for the Dialog root (rest
|
|
168
|
+
* props, since 2.13.0). The ref is the Dialog root.
|
|
169
|
+
*/
|
|
170
|
+
export interface ModalProps extends ModalOwnProps, TrinityRootProps<HTMLDivElement, ModalOwnProps> {
|
|
60
171
|
}
|
|
61
172
|
/**
|
|
62
173
|
* Modal component provides a consistent dialog pattern for Trinity applications.
|
|
@@ -89,20 +200,68 @@ export interface ModalProps {
|
|
|
89
200
|
* ```
|
|
90
201
|
*/
|
|
91
202
|
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
203
|
+
/**
|
|
204
|
+
* ConfirmDialog's built-in reason field (`reasonField`): a text field below the message whose
|
|
205
|
+
* value, trimmed, `onConfirm` receives. While `required` (the default), an empty or
|
|
206
|
+
* whitespace-only reason does not confirm: the field shows `requiredMessage`, is marked invalid
|
|
207
|
+
* and takes focus.
|
|
208
|
+
*
|
|
209
|
+
* @since 2.13.0
|
|
210
|
+
*/
|
|
211
|
+
export interface ConfirmDialogReasonField {
|
|
212
|
+
/** The field's visible label, also its accessible name. */
|
|
213
|
+
label: string;
|
|
214
|
+
/** Whether a reason must be entered before confirming. @default true */
|
|
215
|
+
required?: boolean;
|
|
216
|
+
/** Help text under the field (replaced by `requiredMessage` while the empty reason is invalid). */
|
|
217
|
+
helperText?: React.ReactNode;
|
|
218
|
+
/**
|
|
219
|
+
* The message shown, and read with the field, when a required reason is empty.
|
|
220
|
+
* @default 'Enter a reason to continue.'
|
|
221
|
+
*/
|
|
222
|
+
requiredMessage?: string;
|
|
223
|
+
/** A multi-line field (Enter adds a line). @default true */
|
|
224
|
+
multiline?: boolean;
|
|
225
|
+
/** The most characters the field accepts. */
|
|
226
|
+
maxLength?: number;
|
|
227
|
+
/** The reason the field starts with each time the dialog opens. @default '' */
|
|
228
|
+
defaultValue?: string;
|
|
229
|
+
}
|
|
92
230
|
/**
|
|
93
231
|
* Props for ConfirmDialog component.
|
|
94
232
|
*/
|
|
95
233
|
export interface ConfirmDialogProps {
|
|
96
234
|
/** Whether the dialog is open */
|
|
97
235
|
open: boolean;
|
|
98
|
-
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Callback when dialog closes, with Modal's reason (`'closeButton'`, `'secondaryAction'`,
|
|
238
|
+
* `'backdropClick'` or `'escapeKeyDown'`; the reason since 2.13.0).
|
|
239
|
+
*/
|
|
240
|
+
onClose: (reason?: 'closeButton' | 'secondaryAction' | 'backdropClick' | 'escapeKeyDown') => void;
|
|
241
|
+
/**
|
|
242
|
+
* Callback when user confirms. With `reasonField` it receives the entered reason (since
|
|
243
|
+
* 2.13.0). It may return a promise or any thenable: the dialog shows the pending state and,
|
|
244
|
+
* when it rejects, an inline error with a retry. The dialog does not close itself: close it
|
|
245
|
+
* when the action succeeds.
|
|
246
|
+
*/
|
|
247
|
+
onConfirm: (reason?: string) => void | PromiseLike<void>;
|
|
102
248
|
/** Dialog title */
|
|
103
249
|
title?: string;
|
|
104
|
-
/**
|
|
105
|
-
|
|
250
|
+
/**
|
|
251
|
+
* Dialog message: it describes the dialog (`aria-describedby`). A string is a paragraph; any
|
|
252
|
+
* other node (a node since 2.13.0) renders in a `div`.
|
|
253
|
+
*/
|
|
254
|
+
message?: React.ReactNode;
|
|
255
|
+
/**
|
|
256
|
+
* More content below the message, for example details of what the action affects.
|
|
257
|
+
* @since 2.13.0
|
|
258
|
+
*/
|
|
259
|
+
children?: React.ReactNode;
|
|
260
|
+
/**
|
|
261
|
+
* A built-in reason field below the message; see {@link ConfirmDialogReasonField}.
|
|
262
|
+
* @since 2.13.0
|
|
263
|
+
*/
|
|
264
|
+
reasonField?: ConfirmDialogReasonField;
|
|
106
265
|
/** Confirm button label */
|
|
107
266
|
confirmLabel?: string;
|
|
108
267
|
/** Cancel button label */
|
|
@@ -111,6 +270,35 @@ export interface ConfirmDialogProps {
|
|
|
111
270
|
variant?: 'default' | 'danger' | 'warning';
|
|
112
271
|
/** Whether confirmation is loading */
|
|
113
272
|
loading?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the confirm button is disabled. A required `reasonField` does not need it: the
|
|
275
|
+
* button stays enabled and an empty reason is reported on the field.
|
|
276
|
+
* @since 2.13.0
|
|
277
|
+
*/
|
|
278
|
+
primaryDisabled?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Called with the error when `onConfirm` throws or rejects; see Modal's `onActionError`.
|
|
281
|
+
* @since 2.13.0
|
|
282
|
+
*/
|
|
283
|
+
onActionError?: (error: unknown) => void;
|
|
284
|
+
/**
|
|
285
|
+
* Whether the dialog can close while `onConfirm` is pending; see Modal's `pendingClosePolicy`.
|
|
286
|
+
* @default 'block'
|
|
287
|
+
* @since 2.13.0
|
|
288
|
+
*/
|
|
289
|
+
pendingClosePolicy?: 'block' | 'allow';
|
|
290
|
+
/**
|
|
291
|
+
* The inline error shown when `onConfirm` fails; see Modal's `errorMessage`.
|
|
292
|
+
* @default 'The action could not be completed. Try again.'
|
|
293
|
+
* @since 2.13.0
|
|
294
|
+
*/
|
|
295
|
+
errorMessage?: React.ReactNode | ((error: unknown) => React.ReactNode);
|
|
296
|
+
/**
|
|
297
|
+
* Overrides for the strings ConfirmDialog takes from Modal (`close`, `retry`); see
|
|
298
|
+
* {@link ModalLabels}.
|
|
299
|
+
* @since 2.13.0
|
|
300
|
+
*/
|
|
301
|
+
labels?: Partial<ModalLabels>;
|
|
114
302
|
}
|
|
115
303
|
/**
|
|
116
304
|
* ConfirmDialog provides a simple "Are you sure?" pattern.
|
|
@@ -126,16 +314,30 @@ export interface ConfirmDialogProps {
|
|
|
126
314
|
* variant="danger"
|
|
127
315
|
* confirmLabel="Delete"
|
|
128
316
|
* />
|
|
317
|
+
*
|
|
318
|
+
* // Reject with a required reason; the dialog validates it and passes it to onConfirm.
|
|
319
|
+
* <ConfirmDialog
|
|
320
|
+
* open={open}
|
|
321
|
+
* onClose={close}
|
|
322
|
+
* onConfirm={(reason) => rejectRequest(id, reason).then(close)}
|
|
323
|
+
* title="Reject request?"
|
|
324
|
+
* message="The requester sees your reason."
|
|
325
|
+
* variant="danger"
|
|
326
|
+
* confirmLabel="Reject"
|
|
327
|
+
* reasonField={{ label: 'Reason', required: true, multiline: true }}
|
|
328
|
+
* />
|
|
129
329
|
* ```
|
|
130
330
|
*/
|
|
131
|
-
export declare const ConfirmDialog: React.
|
|
331
|
+
export declare const ConfirmDialog: React.ForwardRefExoticComponent<ConfirmDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
132
332
|
interface ConfirmDialogState {
|
|
133
333
|
isOpen: boolean;
|
|
134
334
|
title: string;
|
|
135
|
-
message:
|
|
335
|
+
message: React.ReactNode;
|
|
136
336
|
variant: 'default' | 'danger' | 'warning';
|
|
137
337
|
confirmLabel: string;
|
|
138
|
-
onConfirm: () => void |
|
|
338
|
+
onConfirm: (reason?: string) => void | PromiseLike<void>;
|
|
339
|
+
/** Pass to ConfirmDialog's `reasonField` (since 2.13.0). */
|
|
340
|
+
reasonField?: ConfirmDialogReasonField;
|
|
139
341
|
}
|
|
140
342
|
/**
|
|
141
343
|
* Hook for programmatically showing confirmation dialogs.
|
|
@@ -172,7 +374,7 @@ interface ConfirmDialogState {
|
|
|
172
374
|
*/
|
|
173
375
|
export declare const useConfirmDialog: () => {
|
|
174
376
|
confirm: (options: Partial<ConfirmDialogState> & {
|
|
175
|
-
onConfirm: () => void |
|
|
377
|
+
onConfirm: (reason?: string) => void | PromiseLike<void>;
|
|
176
378
|
}) => void;
|
|
177
379
|
close: () => void;
|
|
178
380
|
state: ConfirmDialogState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAgC,MAAM,OAAO,CAAC;AA4BrD,OAAO,EAAW,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5F;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,EAAE,M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AG,OAAO,CAAC;IACvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACvE;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,2FA6FxB,CAAC;AAMH,UAAU,kBAAkB;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACzD,4DAA4D;IAC5D,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gBAAgB;uBAIf,OAAO,CAAC,kBAAkB,CAAC,GAAG;QAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;KAAE;;;CAevG,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Modal, ConfirmDialog, useConfirmDialog, type ModalProps, type ConfirmDialogProps, type ModalVariant, } from './Modal';
|
|
1
|
+
export { Modal, ConfirmDialog, useConfirmDialog, type ModalProps, type ConfirmDialogProps, type ConfirmDialogReasonField, type ModalVariant, type ModalLabels, } from './Modal';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,SAAS,CAAC;AAyMjB,eAAO,MAAM,kBAAkB,mGA4L7B,CAAC;AAEH,eAAe,kBAAkB,CAAC;AAIlC,wBAAgB,yBAAyB,IAAI,KAAK,CAAC,YAAY,CAM9D"}
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
* curved connectors are easier on the eye for genealogy trees but less
|
|
13
13
|
* legible for org reporting structures.
|
|
14
14
|
*
|
|
15
|
+
* Expander (B-21): when `onExpand` is set, a collapsed node that hides
|
|
16
|
+
* children gets an "Expand subtree" IconButton next to (never inside) its node
|
|
17
|
+
* button. After the consumer expands the node the expander unmounts, and focus
|
|
18
|
+
* moves to the node's own button (B-08 `useFocusOnReplace`).
|
|
19
|
+
*
|
|
15
20
|
* @module components/OrgChart
|
|
16
21
|
*/
|
|
17
22
|
import * as React from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrgChart.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/OrgChart.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OrgChart.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/OrgChart.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,aAAa,EAGd,MAAM,SAAS,CAAC;AAgSjB,eAAO,MAAM,QAAQ,EAiMf,CAAC,KAAK,EACV,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAC9D,KAAK,CAAC,YAAY,CAAC;AAExB,eAAe,QAAQ,CAAC"}
|
|
@@ -11,8 +11,9 @@ import type { SxProps, Theme } from '@mui/material';
|
|
|
11
11
|
* render the box. Long-form data should be loaded separately when a node is
|
|
12
12
|
* selected (typically into an `EntityDetailPanel`).
|
|
13
13
|
*
|
|
14
|
-
* For deeper trees, set `collapsed: true` on intermediate nodes to
|
|
15
|
-
*
|
|
14
|
+
* For deeper trees, set `collapsed: true` on intermediate nodes to hide their
|
|
15
|
+
* subtree. When the chart has `onExpand`, each such node that has children
|
|
16
|
+
* gets an "Expand subtree" button next to it.
|
|
16
17
|
*/
|
|
17
18
|
export interface OrgNode<TMeta = unknown> {
|
|
18
19
|
/** Stable id for React keys + selection. */
|
|
@@ -29,7 +30,13 @@ export interface OrgNode<TMeta = unknown> {
|
|
|
29
30
|
badge?: ReactNode;
|
|
30
31
|
/** Optional sub-tree. */
|
|
31
32
|
children?: ReadonlyArray<OrgNode<TMeta>>;
|
|
32
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* When true, the sub-tree is left out of the layout. The default node body
|
|
35
|
+
* then shows an "Expand subtree" button next to the node when the node has at
|
|
36
|
+
* least one child and the chart has `onExpand`; otherwise it shows a
|
|
37
|
+
* decorative ▸ marker. The chart never changes this flag itself: expand the
|
|
38
|
+
* node by passing a new `root` with `collapsed: false` from `onExpand`.
|
|
39
|
+
*/
|
|
33
40
|
collapsed?: boolean;
|
|
34
41
|
/** Optional consumer-defined payload. */
|
|
35
42
|
meta?: TMeta;
|
|
@@ -53,9 +60,22 @@ export interface OrgChartProps<TMeta = unknown> {
|
|
|
53
60
|
root: OrgNode<TMeta>;
|
|
54
61
|
/** Currently selected node id. */
|
|
55
62
|
selectedId?: string;
|
|
56
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Called when a node button is activated (click, Enter or Space). Receives
|
|
65
|
+
* your own node object from `root` (the same reference, never a copy).
|
|
66
|
+
*/
|
|
57
67
|
onSelect?: (node: OrgNode<TMeta>) => void;
|
|
58
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Called when the "Expand subtree" button of a collapsed node is activated
|
|
70
|
+
* (click, Enter or Space). Receives your own node object from `root` (the same
|
|
71
|
+
* reference, never a copy) and does not select the node.
|
|
72
|
+
*
|
|
73
|
+
* The button renders only while this prop is set, the node is `collapsed`
|
|
74
|
+
* and it has at least one child; without `onExpand`, collapsed nodes show a
|
|
75
|
+
* decorative ▸ marker instead. To expand, pass a new `root` with
|
|
76
|
+
* `collapsed: false` on that node: the button then disappears and focus moves
|
|
77
|
+
* to the node's own button. There is no built-in collapse control.
|
|
78
|
+
*/
|
|
59
79
|
onExpand?: (node: OrgNode<TMeta>) => void;
|
|
60
80
|
/** Orientation. Default `vertical`. */
|
|
61
81
|
orientation?: OrgChartOrientation;
|
|
@@ -67,9 +87,13 @@ export interface OrgChartProps<TMeta = unknown> {
|
|
|
67
87
|
siblingGap?: number;
|
|
68
88
|
/** Vertical gap between levels. Default 48. */
|
|
69
89
|
levelGap?: number;
|
|
70
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* Render a custom node body instead of the default avatar+title+subtitle.
|
|
92
|
+
* The default node button and the built-in "Expand subtree" button are not
|
|
93
|
+
* rendered for custom bodies, so supply your own controls.
|
|
94
|
+
*/
|
|
71
95
|
renderNode?: (node: OrgNode<TMeta>, isSelected: boolean) => ReactNode;
|
|
72
|
-
/** Optional background color for the canvas. Default
|
|
96
|
+
/** Optional background color for the canvas. Default: the theme's `background.default`. */
|
|
73
97
|
canvasBackground?: string;
|
|
74
98
|
/** Maximum visible height before vertical scroll engages. Default 600. */
|
|
75
99
|
maxHeight?: number | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,OAAO,CAAC,KAAK,GAAG,OAAO;IACtC,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,EAAE,SAAS,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yDAAyD;IACzD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,SAAS,GAAG,SAA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,GAAG,MAAM,CAAC;IAC5B,iCAAiC;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -24,7 +24,7 @@ export declare const OverflowTooltip: React.ForwardRefExoticComponent<Omit<Overf
|
|
|
24
24
|
/**
|
|
25
25
|
* @deprecated Removed in v3.0 (planned). Use `OverflowTooltip` (lowercase
|
|
26
26
|
* "ltip"). This capitalized alias is a compatibility shim for the v1.x typo
|
|
27
|
-
* era and emits a dev-mode console warning
|
|
27
|
+
* era and emits a dev-mode console warning once, after its first render.
|
|
28
28
|
*/
|
|
29
29
|
export declare const OverflowToolTip: React.ForwardRefExoticComponent<Omit<OverflowTooltipProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
30
30
|
export default OverflowTooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowTooltip/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowTooltip/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACzC,+CAA+C;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,eAAe,2GAqD3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,2GAK3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAcL,KAAK,OAAO,EACZ,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAcvB,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,oCAAoC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACnE,qBAAqB;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IACzC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;OAQG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,wFAuTrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* intersection (overridable via `activeId`).
|
|
7
7
|
*
|
|
8
8
|
* Active indicator: 2px brand-color left border + bolder text. Smooth scroll
|
|
9
|
-
* to anchor on click
|
|
9
|
+
* to anchor on click (a jump when the user prefers reduced motion), with
|
|
10
|
+
* `scroll-margin-top` honored via `scrollOffset`.
|
|
10
11
|
*
|
|
11
12
|
* @module components/PageTOC
|
|
12
13
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTOC.d.ts","sourceRoot":"","sources":["../../../src/components/PageTOC/PageTOC.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"PageTOC.d.ts","sourceRoot":"","sources":["../../../src/components/PageTOC/PageTOC.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AA6I1D,eAAO,MAAM,OAAO,kFAkJnB,CAAC;AAeF,eAAe,OAAO,CAAC"}
|