@trinityui/design-system 2.11.1 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2155 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +505 -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 +18458 -10385
- 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 +135 -7
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.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 +6 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +49 -1
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +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 +13923 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +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
|
@@ -6,44 +6,115 @@
|
|
|
6
6
|
* import { Popper } from '@trinityui/design-system';
|
|
7
7
|
* import { Button } from '@mui/material';
|
|
8
8
|
*
|
|
9
|
-
* <Popper
|
|
10
|
-
* id="actions"
|
|
11
|
-
* content={<div>Actions</div>}
|
|
12
|
-
* >
|
|
9
|
+
* <Popper aria-label="Actions" content={<div>Actions</div>}>
|
|
13
10
|
* <Button>Open</Button>
|
|
14
11
|
* </Popper>
|
|
15
12
|
* ```
|
|
16
13
|
*/
|
|
17
14
|
import * as React from 'react';
|
|
18
15
|
import type { PopperPlacementType } from '@mui/material';
|
|
16
|
+
import type { TrinitySlotProps } from '../shared/rootProps';
|
|
19
17
|
type TriggerElementProps = React.HTMLAttributes<HTMLElement> & {
|
|
20
18
|
disabled?: boolean;
|
|
21
19
|
style?: React.CSSProperties;
|
|
20
|
+
ref?: React.Ref<HTMLElement>;
|
|
22
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Why a Popper's open state changed (`onOpenChange`):
|
|
24
|
+
* - `trigger`: a click on the trigger (click mode), including clicks inside it;
|
|
25
|
+
* - `clickAway`: a click outside the trigger and the surface;
|
|
26
|
+
* - `escape`: the Escape key;
|
|
27
|
+
* - `hover`: the pointer or focus entered or left the trigger or the surface (hover mode);
|
|
28
|
+
* - `disabled`: `disabled` became true while the Popper was open.
|
|
29
|
+
*
|
|
30
|
+
* @since 2.13.0
|
|
31
|
+
*/
|
|
32
|
+
export type PopperOpenChangeReason = 'trigger' | 'clickAway' | 'escape' | 'hover' | 'disabled';
|
|
23
33
|
export interface PopperProps {
|
|
24
34
|
/** Popper body content */
|
|
25
35
|
content: React.ReactElement;
|
|
26
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Trigger element. Popper has no element of its own: it clones the trigger (adding its ARIA
|
|
38
|
+
* and handlers) and renders the surface in a portal. The ref is the trigger.
|
|
39
|
+
*/
|
|
27
40
|
children: React.ReactElement<TriggerElementProps>;
|
|
28
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Close callback, fired when a click away from the surface closes it, and when a click on the
|
|
43
|
+
* trigger closes it. Not fired for Escape. `onOpenChange` reports every change with a reason.
|
|
44
|
+
*/
|
|
29
45
|
onClose?: (event: MouseEvent | TouchEvent) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Controlled open state. Leave it undefined (for the component's lifetime) for an uncontrolled
|
|
48
|
+
* Popper, and update it from `onOpenChange`.
|
|
49
|
+
* @since 2.13.0
|
|
50
|
+
*/
|
|
51
|
+
open?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Initial open state when uncontrolled.
|
|
54
|
+
* @default false
|
|
55
|
+
* @since 2.13.0
|
|
56
|
+
*/
|
|
57
|
+
defaultOpen?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Called on every requested change of the open state, with the reason and the event when
|
|
60
|
+
* there is one. In controlled mode, update `open` here.
|
|
61
|
+
* @since 2.13.0
|
|
62
|
+
*/
|
|
63
|
+
onOpenChange?: (open: boolean, reason: PopperOpenChangeReason, event?: React.SyntheticEvent | Event) => void;
|
|
30
64
|
/** Show directional arrow */
|
|
31
65
|
arrow?: boolean;
|
|
32
66
|
/** Popper placement */
|
|
33
67
|
placement?: PopperPlacementType;
|
|
34
68
|
/** Apply default padding around content */
|
|
35
69
|
useContentPadding?: boolean;
|
|
36
|
-
/** Disable trigger interaction */
|
|
70
|
+
/** Disable trigger interaction. Turning it on while open closes the Popper (reason `disabled`). */
|
|
37
71
|
disabled?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Base id: the positioned layer's id is `${id}-popper`, the surface's (the element the trigger's
|
|
74
|
+
* `aria-controls` or `aria-describedby` points at) `${id}-panel`, and a trigger without an id
|
|
75
|
+
* of its own gets `id`. Optional since 2.13.0: without it, an id from `React.useId()` is used.
|
|
76
|
+
*/
|
|
77
|
+
id?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The surface's accessible name. In click mode the surface is a dialog and needs a name:
|
|
80
|
+
* pass `aria-label` or `aria-labelledby` (a development warning fires without either).
|
|
81
|
+
* @since 2.13.0
|
|
82
|
+
*/
|
|
83
|
+
'aria-label'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The id of the element that names the surface, for example a heading inside `content`.
|
|
86
|
+
* @since 2.13.0
|
|
87
|
+
*/
|
|
88
|
+
'aria-labelledby'?: string;
|
|
40
89
|
/** Interaction model */
|
|
41
90
|
interactionKind?: 'hover' | 'click';
|
|
42
91
|
/** Hover open delay in ms */
|
|
43
92
|
openDelay?: number;
|
|
44
93
|
/** Hover close delay in ms */
|
|
45
94
|
closeDelay?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Render the surface in place instead of in a portal at the end of `document.body`.
|
|
97
|
+
* @default false
|
|
98
|
+
* @since 2.13.0
|
|
99
|
+
*/
|
|
100
|
+
disablePortal?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Props for the Popper's parts (ADR-04 (6)): `popper` (the positioned layer), `paper` (the
|
|
103
|
+
* surface, with the overlay role), `content` (the padded box around `content`) and `arrow`.
|
|
104
|
+
* Owned attributes (`role`, `aria-modal`, live-region attributes) stay the Popper's.
|
|
105
|
+
* @since 2.13.0
|
|
106
|
+
*/
|
|
107
|
+
slotProps?: {
|
|
108
|
+
popper?: TrinitySlotProps<HTMLDivElement>;
|
|
109
|
+
paper?: TrinitySlotProps<HTMLDivElement>;
|
|
110
|
+
content?: TrinitySlotProps<HTMLDivElement>;
|
|
111
|
+
arrow?: TrinitySlotProps<HTMLSpanElement>;
|
|
112
|
+
};
|
|
46
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Popper: a surface anchored to a trigger, opened by a click (a dialog) or by hover and focus
|
|
116
|
+
* (a tooltip). It has no root of its own: the ref and the ARIA go to the trigger.
|
|
117
|
+
*/
|
|
47
118
|
export declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLElement>>;
|
|
48
119
|
export default Popper;
|
|
49
120
|
//# sourceMappingURL=Popper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../src/components/Popper/Popper.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../src/components/Popper/Popper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;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CAAC;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB;IACxB,eAAe,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC3C,KAAK,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;KAC3C,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,iFAkUjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Popper, type PopperProps } from './Popper';
|
|
1
|
+
export { Popper, type PopperProps, type PopperOpenChangeReason } from './Popper';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { type TextFieldProps } from '@mui/material';
|
|
7
7
|
export interface PredictiveSuggestion {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The suggestion's id from your data source. It is not used as a DOM id:
|
|
10
|
+
* option ids come from the list position, so ids may repeat or hold any
|
|
11
|
+
* characters. It is passed back in `onAcceptSuggestion`.
|
|
12
|
+
*/
|
|
9
13
|
id: string;
|
|
10
14
|
/** Display label shown in suggestion list */
|
|
11
15
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PredictiveTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/PredictiveTextInput/PredictiveTextInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAWL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"PredictiveTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/PredictiveTextInput/PredictiveTextInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAWL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,iBAAiB,KACvB,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAA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;IAClB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,CAAC,CAAC;CAC7H;AAED,eAAO,MAAM,mBAAmB,iGA0V/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -63,6 +63,55 @@ export interface SearchInputProps {
|
|
|
63
63
|
debounceMs?: number;
|
|
64
64
|
/** Accessible name for the search input */
|
|
65
65
|
ariaLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Overrides for SearchInput's strings; see {@link SearchInputLabels}.
|
|
68
|
+
* @since 2.13.0
|
|
69
|
+
*/
|
|
70
|
+
labels?: Partial<SearchInputLabels>;
|
|
66
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* SearchInput's overridable strings (NAMING, "Label overrides"). Pass only the keys you change
|
|
74
|
+
* through `labels`.
|
|
75
|
+
*
|
|
76
|
+
* @since 2.13.0
|
|
77
|
+
*/
|
|
78
|
+
export interface SearchInputLabels {
|
|
79
|
+
/**
|
|
80
|
+
* The clear button's accessible name and tooltip.
|
|
81
|
+
* @default 'Clear search'
|
|
82
|
+
*/
|
|
83
|
+
clearSearch: string;
|
|
84
|
+
/**
|
|
85
|
+
* The last recent-search option, which clears them all (shown with `onClearRecentSearches`).
|
|
86
|
+
* @default 'Clear recent searches'
|
|
87
|
+
*/
|
|
88
|
+
clearRecent: string;
|
|
89
|
+
/**
|
|
90
|
+
* The remove button on a recent search: its name and tooltip.
|
|
91
|
+
* @default ({ term }) => `Remove ${term} from recent searches`
|
|
92
|
+
*/
|
|
93
|
+
removeRecent: (args: {
|
|
94
|
+
term: string;
|
|
95
|
+
}) => string;
|
|
96
|
+
/**
|
|
97
|
+
* Announced when a recent search is removed (Delete on the active one, or its remove button).
|
|
98
|
+
* @default ({ term }) => `Removed ${term} from recent searches`
|
|
99
|
+
*/
|
|
100
|
+
recentRemoved: (args: {
|
|
101
|
+
term: string;
|
|
102
|
+
}) => string;
|
|
103
|
+
/**
|
|
104
|
+
* Announced when the recent searches are cleared.
|
|
105
|
+
* @default 'Recent searches cleared'
|
|
106
|
+
*/
|
|
107
|
+
recentCleared: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A search field with suggestions and recent searches: an ARIA combobox on MUI `useAutocomplete`
|
|
111
|
+
* (C-36+, ADR-34). Focus stays in the input; ArrowDown and ArrowUp move the active option
|
|
112
|
+
* (`aria-activedescendant`), Enter picks it (or searches for the typed text), Escape closes the
|
|
113
|
+
* list, and Delete removes the active recent search. With `onClearRecentSearches`, the last option
|
|
114
|
+
* clears the recent searches.
|
|
115
|
+
*/
|
|
67
116
|
export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
117
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,EAAE,EAAE,MAA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,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACjD;;;OAGG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IAClD;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAsCD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,yFAshBtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SearchInput, type SearchInputProps, type SearchSuggestion } from './SearchInput';
|
|
1
|
+
export { SearchInput, type SearchInputProps, type SearchInputLabels, type SearchSuggestion } from './SearchInput';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -53,7 +53,10 @@ export interface SimpleTableProps<T extends {
|
|
|
53
53
|
loading?: boolean;
|
|
54
54
|
/** Number of skeleton rows to show when loading */
|
|
55
55
|
loadingRows?: number;
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Enable row selection. Each row's checkbox is the keyboard path and is
|
|
58
|
+
* named by the row's first cell; a click on the row also toggles it.
|
|
59
|
+
*/
|
|
57
60
|
selectable?: boolean;
|
|
58
61
|
/** Selection mode */
|
|
59
62
|
selectionMode?: 'single' | 'multiple';
|
|
@@ -61,7 +64,13 @@ export interface SimpleTableProps<T extends {
|
|
|
61
64
|
selected?: (string | number)[];
|
|
62
65
|
/** Callback when selection changes */
|
|
63
66
|
onSelectionChange?: (selected: (string | number)[]) => void;
|
|
64
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Row action. The first column's cell gets a button that runs it, so it has
|
|
69
|
+
* a Tab stop and works with Enter and Space; a click anywhere else on the
|
|
70
|
+
* row also runs it (a mouse convenience). The button takes its name from
|
|
71
|
+
* that cell. Clicks on a row's checkbox or on other buttons and links in a
|
|
72
|
+
* cell do not run it.
|
|
73
|
+
*/
|
|
65
74
|
onRowClick?: (row: T) => void;
|
|
66
75
|
/** Show pagination */
|
|
67
76
|
pagination?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAiD,MAAM,OAAO,CAAC;AAgCtE,MAAM,MAAM,aAAa,GAAG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AAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAC7D,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEzC,eAAe,WAAW,CAAC"}
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
import * as React from 'react';
|
|
41
|
+
import { type SxProps, type Theme } from '@mui/material';
|
|
41
42
|
/**
|
|
42
43
|
* Imperative handle exposed via ref. Allows parents to reset the divider
|
|
43
44
|
* position without knowing SplitPane's internal state.
|
|
@@ -89,7 +90,7 @@ export interface SplitPaneProps {
|
|
|
89
90
|
/** Custom class name */
|
|
90
91
|
className?: string;
|
|
91
92
|
/** Custom styles */
|
|
92
|
-
sx?:
|
|
93
|
+
sx?: SxProps<Theme>;
|
|
93
94
|
}
|
|
94
95
|
export declare const SplitPane: React.ForwardRefExoticComponent<SplitPaneProps & React.RefAttributes<SplitPaneHandle>>;
|
|
95
96
|
export default SplitPane;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitPane.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/SplitPane.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SplitPane.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/SplitPane.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAsB/E;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,SAAS,EAA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AC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusHero.d.ts","sourceRoot":"","sources":["../../../src/components/StatusHero/StatusHero.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusHero.d.ts","sourceRoot":"","sources":["../../../src/components/StatusHero/StatusHero.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB/C,eAAO,MAAM,UAAU,wFAiNtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Badge component.
|
|
3
3
|
* @module components/StatusIndicator/Badge
|
|
4
4
|
* Status Indicator - Badge and Differential Components
|
|
5
|
-
* BadgeIndicator, DifferentialIndicator
|
|
5
|
+
* BadgeIndicator, DifferentialIndicator: adapters over the unified StatusIndicator (C-33).
|
|
6
6
|
* @example
|
|
7
7
|
* ```tsx
|
|
8
8
|
* import { Badge } from '@trinityui/design-system';
|
|
@@ -38,6 +38,7 @@ export interface BadgeIndicatorProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* Badge Indicator - Used when a count of new or updated items is available.
|
|
40
40
|
* Displays over an icon or other content.
|
|
41
|
+
* Renders StatusIndicator `variant="badge"`; name the wrapped control, count included.
|
|
41
42
|
*/
|
|
42
43
|
export declare const BadgeIndicator: React.FC<BadgeIndicatorProps>;
|
|
43
44
|
/**
|
|
@@ -66,6 +67,10 @@ export interface DifferentialIndicatorProps {
|
|
|
66
67
|
/**
|
|
67
68
|
* Differential Indicator - Used for displaying positive or negative changes.
|
|
68
69
|
* Common in financial dashboards and data visualizations.
|
|
70
|
+
* Renders StatusIndicator `variant="differential"`, plain: no role or name of its own, because
|
|
71
|
+
* its consumer (HistoricalDataIndicator) names the group around it; a nested named group would
|
|
72
|
+
* read the change twice. The default colours are the theme's success and critical on-surface
|
|
73
|
+
* roles (C-02).
|
|
69
74
|
*/
|
|
70
75
|
export declare const DifferentialIndicator: React.FC<DifferentialIndicatorProps>;
|
|
71
76
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Badge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Badge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gCAAgC;IAChC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAYxD,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAwBtE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Chip component.
|
|
3
3
|
* @module components/StatusIndicator/Chip
|
|
4
4
|
* Status Indicator - Chip and Inline Components
|
|
5
|
-
* StatusChip, InlineStatus
|
|
5
|
+
* StatusChip, InlineStatus: adapters over the unified StatusIndicator (C-33).
|
|
6
6
|
* @example
|
|
7
7
|
* ```tsx
|
|
8
8
|
* import { Chip } from '@trinityui/design-system';
|
|
@@ -37,6 +37,7 @@ export interface StatusChipProps {
|
|
|
37
37
|
/**
|
|
38
38
|
* Status Chip - A compact status indicator using MUI Chip component.
|
|
39
39
|
* Useful for tags, filters, and inline status labels.
|
|
40
|
+
* Renders StatusIndicator `variant="chip"`: a button when `onClick` or `onDelete` is set.
|
|
40
41
|
*/
|
|
41
42
|
export declare const StatusChip: React.FC<StatusChipProps>;
|
|
42
43
|
/**
|
|
@@ -59,6 +60,7 @@ export interface InlineStatusProps {
|
|
|
59
60
|
/**
|
|
60
61
|
* Inline Status - A text-based status indicator with optional dot/icon.
|
|
61
62
|
* Useful for status in tables and lists.
|
|
63
|
+
* Renders StatusIndicator `variant="inline"`.
|
|
62
64
|
*/
|
|
63
65
|
export declare const InlineStatus: React.FC<InlineStatusProps>;
|
|
64
66
|
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Chip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Chip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmBhD,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CASpD,CAAC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @fileoverview Indicators component.
|
|
3
3
|
* @module components/StatusIndicator/Indicators
|
|
4
4
|
* Status Indicator - Core Indicator Components
|
|
5
|
-
* IconIndicator, ShapeIndicator, StatusDot
|
|
5
|
+
* IconIndicator, ShapeIndicator, StatusDot: adapters over the unified StatusIndicator (C-33),
|
|
6
|
+
* so names, roles, colours and motion come from one engine.
|
|
6
7
|
* @example
|
|
7
8
|
* ```tsx
|
|
8
9
|
* import { Indicators } from '@trinityui/design-system';
|
|
@@ -35,6 +36,7 @@ export interface IconIndicatorProps {
|
|
|
35
36
|
/**
|
|
36
37
|
* Icon Indicator - Used when the layout offers ample space and the content requires maximum attention.
|
|
37
38
|
* Consists of an icon, a shape, a meaningful color, and a descriptive label.
|
|
39
|
+
* Renders StatusIndicator `variant="icon"`.
|
|
38
40
|
*/
|
|
39
41
|
export declare const IconIndicator: React.FC<IconIndicatorProps>;
|
|
40
42
|
/**
|
|
@@ -59,6 +61,7 @@ export interface ShapeIndicatorProps {
|
|
|
59
61
|
/**
|
|
60
62
|
* Shape Indicator - Useful in smaller spaces or when users need to scan large amounts of data.
|
|
61
63
|
* Uses shape and color to convey status without relying on symbols.
|
|
64
|
+
* Renders StatusIndicator `variant="shape"`.
|
|
62
65
|
*/
|
|
63
66
|
export declare const ShapeIndicator: React.FC<ShapeIndicatorProps>;
|
|
64
67
|
/**
|
|
@@ -76,6 +79,7 @@ export interface StatusDotProps {
|
|
|
76
79
|
}
|
|
77
80
|
/**
|
|
78
81
|
* Status Dot - A minimal status indicator, useful for inline status display.
|
|
82
|
+
* Renders StatusIndicator `variant="dot"`: a `role="img"` named after the status.
|
|
79
83
|
*/
|
|
80
84
|
export declare const StatusDot: React.FC<StatusDotProps>;
|
|
81
85
|
//# sourceMappingURL=Indicators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Indicators.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Indicators.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Indicators.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Indicators.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAStD,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmBxD,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,sBAAsB;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAKkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Legend.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA0B,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/Legend.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA0B,OAAO,EAAE,KAAK,EAAY,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAC;AAUzF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACnC,uBAAuB;IACvB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,WAAW;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAMD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyEpD,CAAC"}
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { SxProps, Theme } from '@mui/material';
|
|
20
|
+
import { type IconName } from '../Icon';
|
|
21
|
+
import type { TrinityStatusColor } from '../../theme-augmentation';
|
|
20
22
|
import { StatusType, StatusSize, StatusShape } from './types';
|
|
21
23
|
/**
|
|
22
24
|
* Available display variants for the StatusIndicator
|
|
@@ -28,8 +30,27 @@ import { StatusType, StatusSize, StatusShape } from './types';
|
|
|
28
30
|
* - `inline`: Text label with optional dot/icon prefix
|
|
29
31
|
* - `badge`: Wraps children with a notification badge
|
|
30
32
|
* - `differential`: Shows positive/negative value changes
|
|
33
|
+
*
|
|
34
|
+
* Exported from the package root and essentials.
|
|
35
|
+
*
|
|
36
|
+
* @since 2.13.0
|
|
31
37
|
*/
|
|
32
38
|
export type StatusVariant = 'icon' | 'shape' | 'dot' | 'chip' | 'inline' | 'badge' | 'differential';
|
|
39
|
+
/**
|
|
40
|
+
* Colours that replace the status catalog's for one indicator (C-04): an alias of the theme's
|
|
41
|
+
* status colour role, so a resolver value fits as it is
|
|
42
|
+
* (`useTrinityPalette().status.success`, `getTrinityPalette(theme).verification.verified`).
|
|
43
|
+
*
|
|
44
|
+
* - Text and icons on the surface (inline, the icon-only icon) use `text`.
|
|
45
|
+
* - Graphics on the surface (the dot, the shape, the inline dot) use `border`.
|
|
46
|
+
* - Contained variants (the chip, the icon circle, the badge) use `background` with `text` on it;
|
|
47
|
+
* the chip's border is `border`.
|
|
48
|
+
*
|
|
49
|
+
* The differential ignores it: use `positiveColor` and `negativeColor`.
|
|
50
|
+
*
|
|
51
|
+
* @since 2.13.0
|
|
52
|
+
*/
|
|
53
|
+
export type StatusIndicatorColors = TrinityStatusColor;
|
|
33
54
|
/**
|
|
34
55
|
* Base props shared across all variants
|
|
35
56
|
*/
|
|
@@ -44,10 +65,39 @@ interface BaseStatusProps {
|
|
|
44
65
|
label?: string;
|
|
45
66
|
/** Whether to show the label text */
|
|
46
67
|
showLabel?: boolean;
|
|
47
|
-
/** Custom MUI sx props */
|
|
68
|
+
/** Custom MUI sx props. Object, array and function forms all apply after the indicator's own styles. */
|
|
48
69
|
sx?: SxProps<Theme>;
|
|
49
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Added to the root element's classes.
|
|
72
|
+
* @since 2.13.0
|
|
73
|
+
*/
|
|
74
|
+
className?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Replaces the status's catalog icon (icon, chip and inline variants), for example
|
|
77
|
+
* `icon="verified"`. Any `IconName` the Icon component renders.
|
|
78
|
+
* @since 2.13.0
|
|
79
|
+
*/
|
|
80
|
+
icon?: IconName | (string & {});
|
|
81
|
+
/**
|
|
82
|
+
* Replaces the status's catalog colours: see {@link StatusIndicatorColors}.
|
|
83
|
+
* @since 2.13.0
|
|
84
|
+
*/
|
|
85
|
+
colors?: StatusIndicatorColors;
|
|
86
|
+
/**
|
|
87
|
+
* The accessible name. On a variant without visible text (dot, icon-only, `showLabel={false}`)
|
|
88
|
+
* it replaces the label as the name; on a variant with visible text it renders the indicator
|
|
89
|
+
* as `role="img"` with this name. Not applied to the badge variant: name the wrapped control.
|
|
90
|
+
*/
|
|
50
91
|
'aria-label'?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Makes the indicator a live region, so a change of its status or label is announced.
|
|
94
|
+
* `true` or `'polite'` is a polite `role="status"`; `'assertive'` is `role="alert"`.
|
|
95
|
+
* Default `false`: a static indicator is not announced (ADR-32). Ignored, with a development
|
|
96
|
+
* warning, on an interactive chip and on the badge variant: use `useAnnounce()` there.
|
|
97
|
+
*
|
|
98
|
+
* @since 2.13.0
|
|
99
|
+
*/
|
|
100
|
+
live?: boolean | 'polite' | 'assertive';
|
|
51
101
|
}
|
|
52
102
|
/**
|
|
53
103
|
* Props specific to 'icon' variant
|
|
@@ -140,10 +190,23 @@ interface DefaultVariantProps {
|
|
|
140
190
|
variant?: undefined;
|
|
141
191
|
iconOnly?: boolean;
|
|
142
192
|
}
|
|
193
|
+
/** Every prop name a variant owns, so none of them reaches the root as an HTML attribute. */
|
|
194
|
+
declare const OWN_PROP_NAMES: readonly ["variant", "status", "size", "label", "showLabel", "sx", "className", "aria-label", "live", "icon", "colors", "iconOnly", "shape", "showOutline", "pulse", "showIcon", "onClick", "onDelete", "showDot", "children", "count", "dot", "max", "invisible", "value", "percentage", "currency", "showColor", "positiveColor", "negativeColor"];
|
|
143
195
|
/**
|
|
144
|
-
*
|
|
196
|
+
* HTML attributes the root takes (ADR-04): `id`, `data-*`, `aria-*` and event handlers, spread on
|
|
197
|
+
* the root element of every variant (a div; the badge's root is a span). `role`, `aria-live`
|
|
198
|
+
* and the other owned attributes stay the indicator's: a consumer value is ignored, with a
|
|
199
|
+
* development warning. Since 2.13.0.
|
|
145
200
|
*/
|
|
146
|
-
|
|
201
|
+
type StatusIndicatorRootProps = Omit<React.HTMLAttributes<HTMLElement>, (typeof OWN_PROP_NAMES)[number] | 'color'>;
|
|
202
|
+
/**
|
|
203
|
+
* Union type of all StatusIndicator props. Exported from the package root and essentials.
|
|
204
|
+
*
|
|
205
|
+
* @since 2.13.0
|
|
206
|
+
*/
|
|
207
|
+
export type StatusIndicatorProps = BaseStatusProps & (IconVariantProps | ShapeVariantProps | DotVariantProps | ChipVariantProps | InlineVariantProps | BadgeVariantProps | DifferentialVariantProps | DefaultVariantProps) & StatusIndicatorRootProps;
|
|
208
|
+
/** @internal */
|
|
209
|
+
export type StatusLive = boolean | 'polite' | 'assertive';
|
|
147
210
|
/**
|
|
148
211
|
* StatusIndicator - A unified, polymorphic status indicator component.
|
|
149
212
|
*
|
|
@@ -179,5 +242,36 @@ export type StatusIndicatorProps = BaseStatusProps & (IconVariantProps | ShapeVa
|
|
|
179
242
|
* <StatusIndicator variant="differential" value={12.5} percentage />
|
|
180
243
|
*/
|
|
181
244
|
export declare const StatusIndicator: React.ForwardRefExoticComponent<StatusIndicatorProps & React.RefAttributes<HTMLElement>>;
|
|
245
|
+
/**
|
|
246
|
+
* Options only Trinity's own components pass (C-33). Not on any exported props type.
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
export interface StatusIndicatorInternalOptions {
|
|
250
|
+
/**
|
|
251
|
+
* Hide the indicator from assistive technology (`aria-hidden`), for an indicator that repeats
|
|
252
|
+
* visible text beside it. `live` and the naming rules do not apply.
|
|
253
|
+
*/
|
|
254
|
+
decorative?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* No role and no name of its own: for an indicator inside an element that names it, such as
|
|
257
|
+
* HistoricalDataIndicator's group around the legacy DifferentialIndicator. Its visible text is
|
|
258
|
+
* still read.
|
|
259
|
+
*/
|
|
260
|
+
plain?: boolean;
|
|
261
|
+
/** Set by the engine when the consumer passes `aria-labelledby`. */
|
|
262
|
+
labelledBy?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* The icon variant renders spans only (phrasing content), for an indicator inside a button
|
|
265
|
+
* such as StepStatusMarker in a Disclosure trigger (D-36, D-44). The layout is unchanged.
|
|
266
|
+
*/
|
|
267
|
+
inline?: boolean;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The one rendering engine behind StatusIndicator and the legacy primitives (IconIndicator,
|
|
271
|
+
* ShapeIndicator, StatusDot, StatusChip, InlineStatus, BadgeIndicator, DifferentialIndicator),
|
|
272
|
+
* which are adapters over it (C-33). Takes the internal options as well.
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
export declare const InternalStatusIndicator: React.ForwardRefExoticComponent<(StatusIndicatorProps & StatusIndicatorInternalOptions) & React.RefAttributes<HTMLElement>>;
|
|
182
276
|
export default StatusIndicator;
|
|
183
277
|
//# sourceMappingURL=StatusIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,OAAO,EACP,KAAK,EAEN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EAKZ,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,QAAQ,GACR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AC7F,QAAA,MAAM,cAAc,sVAKV,CAAC;AAEX;;;;;GAKG;AACH,KAAK,wBAAwB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC;AAEnH;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,CACjD,gBAAgB,GAChB,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,mBAAmB,CACtB,GAAG,wBAAwB,CAAC;AA2D7B,gBAAgB;AAChB,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AA0Z1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,0FAI3B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,6HAInC,CAAC;AA8MF,eAAe,eAAe,CAAC"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module StatusIndicator
|
|
10
10
|
* @version 2.0.0
|
|
11
11
|
*/
|
|
12
|
-
export { StatusIndicator, default as StatusIndicatorDefault, type StatusIndicatorProps, type StatusVariant, } from './StatusIndicator';
|
|
13
|
-
export { type StatusType, type SeverityLevel, type StatusShape, type StatusSize, type StatusConfig, } from './types';
|
|
12
|
+
export { StatusIndicator, default as StatusIndicatorDefault, type StatusIndicatorProps, type StatusVariant, type StatusIndicatorColors, } from './StatusIndicator';
|
|
13
|
+
export { type StatusType, type SeverityLevel, type StatusShape, type StatusSize, type StatusConfig, type StatusColorMode, } from './types';
|
|
14
14
|
/** @internal */
|
|
15
15
|
export { statusConfigs } from './types';
|
|
16
16
|
/** @internal */
|