@trinityui/design-system 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2209 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +523 -21
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +17230 -9097
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +192 -72
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +91 -13
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +107 -17
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +52 -5
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +135 -7
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts +32 -2
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +6 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +49 -1
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +136 -0
- package/dist/components/shared/safeContent.d.ts.map +1 -0
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13923 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +792 -0
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -1,952 +1,128 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { s as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import De from "@mui/icons-material/HelpOutlined";
|
|
11
|
-
const a = W.colors.indicator, z = {
|
|
12
|
-
// High Attention - Red
|
|
13
|
-
error: {
|
|
14
|
-
color: a.error.fg,
|
|
15
|
-
backgroundColor: a.error.bg,
|
|
16
|
-
icon: "error",
|
|
17
|
-
shape: "circle",
|
|
18
|
-
severity: "high",
|
|
19
|
-
label: "Error"
|
|
20
|
-
},
|
|
21
|
-
critical: {
|
|
22
|
-
color: a.critical.fg,
|
|
23
|
-
backgroundColor: a.critical.bg,
|
|
24
|
-
icon: "warning",
|
|
25
|
-
shape: "hexagon",
|
|
26
|
-
severity: "high",
|
|
27
|
-
label: "Critical"
|
|
28
|
-
},
|
|
29
|
-
failed: {
|
|
30
|
-
color: a.failed.fg,
|
|
31
|
-
backgroundColor: a.failed.bg,
|
|
32
|
-
icon: "close",
|
|
33
|
-
shape: "circle",
|
|
34
|
-
severity: "high",
|
|
35
|
-
label: "Failed"
|
|
36
|
-
},
|
|
37
|
-
rejected: {
|
|
38
|
-
color: a.rejected.fg,
|
|
39
|
-
backgroundColor: a.rejected.bg,
|
|
40
|
-
icon: "close",
|
|
41
|
-
shape: "circle",
|
|
42
|
-
severity: "high",
|
|
43
|
-
label: "Rejected"
|
|
44
|
-
},
|
|
45
|
-
cancelled: {
|
|
46
|
-
color: a.cancelled.fg,
|
|
47
|
-
backgroundColor: a.cancelled.bg,
|
|
48
|
-
icon: "close",
|
|
49
|
-
shape: "circle",
|
|
50
|
-
severity: "neutral",
|
|
51
|
-
label: "Cancelled"
|
|
52
|
-
},
|
|
53
|
-
// Medium Attention - Orange/Yellow
|
|
54
|
-
warning: {
|
|
55
|
-
color: a.warning.fg,
|
|
56
|
-
backgroundColor: a.warning.bg,
|
|
57
|
-
outlineColor: a.warning.outline,
|
|
58
|
-
icon: "warning",
|
|
59
|
-
shape: "triangle",
|
|
60
|
-
severity: "medium",
|
|
61
|
-
label: "Warning"
|
|
62
|
-
},
|
|
63
|
-
caution: {
|
|
64
|
-
color: a.caution.fg,
|
|
65
|
-
backgroundColor: a.caution.bg,
|
|
66
|
-
outlineColor: a.caution.outline,
|
|
67
|
-
icon: "warning",
|
|
68
|
-
shape: "triangle",
|
|
69
|
-
severity: "medium",
|
|
70
|
-
label: "Caution"
|
|
71
|
-
},
|
|
72
|
-
pending: {
|
|
73
|
-
color: a.pending.fg,
|
|
74
|
-
backgroundColor: a.pending.bg,
|
|
75
|
-
outlineColor: a.pending.outline,
|
|
76
|
-
icon: "clock",
|
|
77
|
-
shape: "circle",
|
|
78
|
-
severity: "medium",
|
|
79
|
-
label: "Pending"
|
|
80
|
-
},
|
|
81
|
-
"in-progress": {
|
|
82
|
-
color: a.inProgress.fg,
|
|
83
|
-
backgroundColor: a.inProgress.bg,
|
|
84
|
-
icon: "refresh",
|
|
85
|
-
shape: "circle",
|
|
86
|
-
severity: "medium",
|
|
87
|
-
label: "In Progress"
|
|
88
|
-
},
|
|
89
|
-
running: {
|
|
90
|
-
color: a.running.fg,
|
|
91
|
-
backgroundColor: a.running.bg,
|
|
92
|
-
icon: "play",
|
|
93
|
-
shape: "circle",
|
|
94
|
-
severity: "medium",
|
|
95
|
-
label: "Running"
|
|
96
|
-
},
|
|
97
|
-
// Low Attention - Green
|
|
98
|
-
success: {
|
|
99
|
-
color: a.success.fg,
|
|
100
|
-
backgroundColor: a.success.bg,
|
|
101
|
-
icon: "check-circle",
|
|
102
|
-
shape: "circle",
|
|
103
|
-
severity: "low",
|
|
104
|
-
label: "Success"
|
|
105
|
-
},
|
|
106
|
-
complete: {
|
|
107
|
-
color: a.complete.fg,
|
|
108
|
-
backgroundColor: a.complete.bg,
|
|
109
|
-
icon: "check",
|
|
110
|
-
shape: "circle",
|
|
111
|
-
severity: "low",
|
|
112
|
-
label: "Complete"
|
|
113
|
-
},
|
|
114
|
-
approved: {
|
|
115
|
-
color: a.approved.fg,
|
|
116
|
-
backgroundColor: a.approved.bg,
|
|
117
|
-
icon: "check-circle",
|
|
118
|
-
shape: "circle",
|
|
119
|
-
severity: "low",
|
|
120
|
-
label: "Approved"
|
|
121
|
-
},
|
|
122
|
-
active: {
|
|
123
|
-
color: a.active.fg,
|
|
124
|
-
backgroundColor: a.active.bg,
|
|
125
|
-
icon: "check",
|
|
126
|
-
shape: "circle",
|
|
127
|
-
severity: "low",
|
|
128
|
-
label: "Active"
|
|
129
|
-
},
|
|
130
|
-
enabled: {
|
|
131
|
-
color: a.enabled.fg,
|
|
132
|
-
backgroundColor: a.enabled.bg,
|
|
133
|
-
icon: "check",
|
|
134
|
-
shape: "circle",
|
|
135
|
-
severity: "low",
|
|
136
|
-
label: "Enabled"
|
|
137
|
-
},
|
|
138
|
-
// Informational - Blue
|
|
139
|
-
info: {
|
|
140
|
-
color: a.info.fg,
|
|
141
|
-
backgroundColor: a.info.bg,
|
|
142
|
-
icon: "info",
|
|
143
|
-
shape: "circle",
|
|
144
|
-
severity: "info",
|
|
145
|
-
label: "Info"
|
|
146
|
-
},
|
|
147
|
-
new: {
|
|
148
|
-
color: a.new.fg,
|
|
149
|
-
backgroundColor: a.new.bg,
|
|
150
|
-
icon: "star",
|
|
151
|
-
shape: "circle",
|
|
152
|
-
severity: "info",
|
|
153
|
-
label: "New"
|
|
154
|
-
},
|
|
155
|
-
updated: {
|
|
156
|
-
color: a.updated.fg,
|
|
157
|
-
backgroundColor: a.updated.bg,
|
|
158
|
-
icon: "refresh",
|
|
159
|
-
shape: "circle",
|
|
160
|
-
severity: "info",
|
|
161
|
-
label: "Updated"
|
|
162
|
-
},
|
|
163
|
-
// Neutral - Gray
|
|
164
|
-
draft: {
|
|
165
|
-
color: a.draft.fg,
|
|
166
|
-
backgroundColor: a.draft.bg,
|
|
167
|
-
icon: "edit",
|
|
168
|
-
shape: "circle",
|
|
169
|
-
severity: "neutral",
|
|
170
|
-
label: "Draft"
|
|
171
|
-
},
|
|
172
|
-
inactive: {
|
|
173
|
-
color: a.inactive.fg,
|
|
174
|
-
backgroundColor: a.inactive.bg,
|
|
175
|
-
icon: "remove",
|
|
176
|
-
shape: "circle",
|
|
177
|
-
severity: "neutral",
|
|
178
|
-
label: "Inactive"
|
|
179
|
-
},
|
|
180
|
-
disabled: {
|
|
181
|
-
color: a.disabled.fg,
|
|
182
|
-
backgroundColor: a.disabled.bg,
|
|
183
|
-
icon: "close",
|
|
184
|
-
shape: "circle",
|
|
185
|
-
severity: "neutral",
|
|
186
|
-
label: "Disabled"
|
|
187
|
-
},
|
|
188
|
-
unknown: {
|
|
189
|
-
color: a.unknown.fg,
|
|
190
|
-
backgroundColor: a.unknown.bg,
|
|
191
|
-
icon: "help",
|
|
192
|
-
shape: "circle",
|
|
193
|
-
severity: "neutral",
|
|
194
|
-
label: "Unknown"
|
|
195
|
-
},
|
|
196
|
-
// Special - Purple
|
|
197
|
-
beta: {
|
|
198
|
-
color: a.beta.fg,
|
|
199
|
-
backgroundColor: a.beta.bg,
|
|
200
|
-
icon: "zap",
|
|
201
|
-
shape: "diamond",
|
|
202
|
-
severity: "info",
|
|
203
|
-
label: "Beta"
|
|
204
|
-
},
|
|
205
|
-
experimental: {
|
|
206
|
-
color: a.experimental.fg,
|
|
207
|
-
backgroundColor: a.experimental.bg,
|
|
208
|
-
icon: "code",
|
|
209
|
-
shape: "diamond",
|
|
210
|
-
severity: "info",
|
|
211
|
-
label: "Experimental"
|
|
212
|
-
}
|
|
213
|
-
}, T = {
|
|
214
|
-
small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
|
|
215
|
-
medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
|
|
216
|
-
large: { icon: 24, shape: 12, fontSize: "1rem", dotSize: 12 }
|
|
217
|
-
}, Si = (r) => z[r], Me = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Pe = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Be = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
218
|
-
"rect",
|
|
219
|
-
{
|
|
220
|
-
x: "3",
|
|
221
|
-
y: "3",
|
|
222
|
-
width: "10",
|
|
223
|
-
height: "10",
|
|
224
|
-
rx: "1",
|
|
225
|
-
fill: i,
|
|
226
|
-
stroke: t,
|
|
227
|
-
strokeWidth: t ? 1.5 : 0,
|
|
228
|
-
transform: "rotate(45 8 8)"
|
|
229
|
-
}
|
|
230
|
-
) }), Te = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
231
|
-
"path",
|
|
232
|
-
{
|
|
233
|
-
d: "M8 2L14 14H2L8 2Z",
|
|
234
|
-
fill: i,
|
|
235
|
-
stroke: t,
|
|
236
|
-
strokeWidth: t ? 1.5 : 0,
|
|
237
|
-
strokeLinejoin: "round"
|
|
238
|
-
}
|
|
239
|
-
) }), Ee = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
240
|
-
"polygon",
|
|
241
|
-
{
|
|
242
|
-
points: "8,1 14,4.5 14,11.5 8,15 2,11.5 2,4.5",
|
|
243
|
-
fill: i,
|
|
244
|
-
stroke: t,
|
|
245
|
-
strokeWidth: t ? 1.5 : 0
|
|
246
|
-
}
|
|
247
|
-
) }), J = {
|
|
248
|
-
circle: Me,
|
|
249
|
-
square: Pe,
|
|
250
|
-
diamond: Be,
|
|
251
|
-
triangle: Te,
|
|
252
|
-
hexagon: Ee
|
|
253
|
-
}, $e = (r, i, t, o, n, l) => {
|
|
254
|
-
const c = z[r], s = T[i];
|
|
255
|
-
return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
256
|
-
/* @__PURE__ */ e(
|
|
257
|
-
B,
|
|
258
|
-
{
|
|
259
|
-
name: c.icon,
|
|
260
|
-
size: i,
|
|
261
|
-
sx: { color: c.backgroundColor },
|
|
262
|
-
"aria-hidden": "true"
|
|
263
|
-
}
|
|
264
|
-
),
|
|
265
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
266
|
-
] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
C,
|
|
269
|
-
{
|
|
270
|
-
sx: {
|
|
271
|
-
display: "flex",
|
|
272
|
-
alignItems: "center",
|
|
273
|
-
justifyContent: "center",
|
|
274
|
-
width: s.icon + 8,
|
|
275
|
-
height: s.icon + 8,
|
|
276
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
277
|
-
// Perfect circle
|
|
278
|
-
backgroundColor: c.backgroundColor,
|
|
279
|
-
color: c.color
|
|
280
|
-
},
|
|
281
|
-
"aria-hidden": "true",
|
|
282
|
-
children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
|
|
283
|
-
}
|
|
284
|
-
),
|
|
285
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
286
|
-
] });
|
|
287
|
-
}, Re = (r, i, t, o, n, l, c) => {
|
|
288
|
-
const s = z[r], h = T[i], x = n || s.shape, p = J[x];
|
|
289
|
-
return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...c, alignItems: "center" }, role: "status", children: [
|
|
290
|
-
/* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
291
|
-
p,
|
|
292
|
-
{
|
|
293
|
-
size: h.shape * 1.6,
|
|
294
|
-
color: s.backgroundColor,
|
|
295
|
-
outline: l ? s.outlineColor : void 0
|
|
296
|
-
}
|
|
297
|
-
) }),
|
|
298
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: h.fontSize }, children: t })
|
|
299
|
-
] });
|
|
300
|
-
}, Ve = (r, i, t, o) => {
|
|
301
|
-
const n = z[r], l = T[i];
|
|
302
|
-
return /* @__PURE__ */ e(
|
|
303
|
-
C,
|
|
304
|
-
{
|
|
305
|
-
role: "status",
|
|
306
|
-
"aria-label": n.label,
|
|
307
|
-
sx: {
|
|
308
|
-
width: l.dotSize,
|
|
309
|
-
height: l.dotSize,
|
|
310
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
311
|
-
// Perfect circle
|
|
312
|
-
backgroundColor: n.backgroundColor,
|
|
313
|
-
flexShrink: 0,
|
|
314
|
-
...t && {
|
|
315
|
-
animation: "statusPulse 2s infinite",
|
|
316
|
-
"@keyframes statusPulse": {
|
|
317
|
-
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
318
|
-
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
319
|
-
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
...o
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
}, Fe = (r, i, t, o, n, l, c) => {
|
|
327
|
-
const s = z[r];
|
|
328
|
-
return /* @__PURE__ */ e(
|
|
329
|
-
ae,
|
|
330
|
-
{
|
|
331
|
-
label: t,
|
|
332
|
-
size: i,
|
|
333
|
-
icon: o ? /* @__PURE__ */ e(B, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
|
|
334
|
-
onClick: n,
|
|
335
|
-
onDelete: l,
|
|
336
|
-
role: "status",
|
|
337
|
-
sx: {
|
|
338
|
-
backgroundColor: `${s.backgroundColor}20`,
|
|
339
|
-
color: s.backgroundColor,
|
|
340
|
-
borderColor: s.backgroundColor,
|
|
341
|
-
"& .MuiChip-icon": {
|
|
342
|
-
color: s.backgroundColor
|
|
343
|
-
},
|
|
344
|
-
"& .MuiChip-deleteIcon": {
|
|
345
|
-
color: s.backgroundColor,
|
|
346
|
-
"&:hover": {
|
|
347
|
-
color: s.backgroundColor
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
...c
|
|
351
|
-
},
|
|
352
|
-
variant: "outlined"
|
|
353
|
-
}
|
|
354
|
-
);
|
|
355
|
-
}, Qe = (r, i, t, o, n, l) => {
|
|
356
|
-
const c = z[r], s = T[i];
|
|
357
|
-
return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
358
|
-
o && /* @__PURE__ */ e(
|
|
359
|
-
C,
|
|
360
|
-
{
|
|
361
|
-
"aria-hidden": "true",
|
|
362
|
-
sx: {
|
|
363
|
-
width: s.dotSize,
|
|
364
|
-
height: s.dotSize,
|
|
365
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
366
|
-
// Perfect circle
|
|
367
|
-
backgroundColor: c.backgroundColor,
|
|
368
|
-
flexShrink: 0
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
),
|
|
372
|
-
n && !o && /* @__PURE__ */ e(
|
|
373
|
-
B,
|
|
374
|
-
{
|
|
375
|
-
name: c.icon,
|
|
376
|
-
size: i === "large" ? "medium" : "small",
|
|
377
|
-
sx: { color: c.backgroundColor },
|
|
378
|
-
"aria-hidden": "true"
|
|
379
|
-
}
|
|
380
|
-
),
|
|
381
|
-
/* @__PURE__ */ e(
|
|
382
|
-
S,
|
|
383
|
-
{
|
|
384
|
-
variant: "body2",
|
|
385
|
-
sx: {
|
|
386
|
-
fontSize: s.fontSize,
|
|
387
|
-
color: c.backgroundColor,
|
|
388
|
-
fontWeight: 500
|
|
389
|
-
},
|
|
390
|
-
children: t
|
|
391
|
-
}
|
|
392
|
-
)
|
|
393
|
-
] });
|
|
394
|
-
}, je = (r, i, t, o, n, l, c) => {
|
|
395
|
-
const s = z[r];
|
|
396
|
-
return /* @__PURE__ */ e(
|
|
397
|
-
ce,
|
|
398
|
-
{
|
|
399
|
-
badgeContent: o ? void 0 : t,
|
|
400
|
-
max: n,
|
|
401
|
-
variant: o ? "dot" : "standard",
|
|
402
|
-
invisible: l,
|
|
403
|
-
sx: {
|
|
404
|
-
"& .MuiBadge-badge": {
|
|
405
|
-
backgroundColor: s.backgroundColor,
|
|
406
|
-
color: s.color,
|
|
407
|
-
fontSize: "0.7rem",
|
|
408
|
-
minWidth: o ? 8 : 18,
|
|
409
|
-
height: o ? 8 : 18,
|
|
410
|
-
padding: o ? 0 : "0 4px"
|
|
411
|
-
},
|
|
412
|
-
...c
|
|
413
|
-
},
|
|
414
|
-
children: i
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
}, Ze = (r, i, t, o, n, l, c, s, h) => {
|
|
418
|
-
const x = T[i], p = r >= 0, g = l !== !1 ? p ? c || "#24a148" : s || "#da1e28" : "inherit", L = () => {
|
|
419
|
-
const D = Math.abs(r), m = p ? "+" : "-";
|
|
420
|
-
return o ? `${m}${o}${D.toLocaleString()}` : t ? `${m}${D}%` : `${m}${D.toLocaleString()}`;
|
|
421
|
-
};
|
|
422
|
-
return /* @__PURE__ */ f(
|
|
423
|
-
P,
|
|
424
|
-
{
|
|
425
|
-
direction: "row",
|
|
426
|
-
spacing: 0.5,
|
|
427
|
-
sx: { color: g, ...h, alignItems: "center" },
|
|
428
|
-
role: "status",
|
|
429
|
-
"aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
|
|
430
|
-
children: [
|
|
431
|
-
n !== !1 && /* @__PURE__ */ e(
|
|
432
|
-
B,
|
|
433
|
-
{
|
|
434
|
-
name: p ? "trending-up" : "trending-down",
|
|
435
|
-
size: i === "large" ? "medium" : "small",
|
|
436
|
-
"aria-hidden": "true"
|
|
437
|
-
}
|
|
438
|
-
),
|
|
439
|
-
/* @__PURE__ */ e(
|
|
440
|
-
S,
|
|
441
|
-
{
|
|
442
|
-
variant: "body2",
|
|
443
|
-
sx: {
|
|
444
|
-
fontSize: x.fontSize,
|
|
445
|
-
fontWeight: 500,
|
|
446
|
-
fontFamily: "monospace"
|
|
447
|
-
},
|
|
448
|
-
children: L()
|
|
449
|
-
}
|
|
450
|
-
)
|
|
451
|
-
]
|
|
452
|
-
}
|
|
453
|
-
);
|
|
454
|
-
}, Ci = M.forwardRef(
|
|
455
|
-
function(i, t) {
|
|
456
|
-
const {
|
|
457
|
-
variant: o = "icon",
|
|
458
|
-
status: n = "info",
|
|
459
|
-
size: l = "medium",
|
|
460
|
-
label: c,
|
|
461
|
-
showLabel: s = !0,
|
|
462
|
-
sx: h,
|
|
463
|
-
"aria-label": x
|
|
464
|
-
} = i, p = z[n], v = c || p.label, w = (() => {
|
|
465
|
-
switch (o) {
|
|
466
|
-
case "icon":
|
|
467
|
-
case void 0:
|
|
468
|
-
return $e(
|
|
469
|
-
n,
|
|
470
|
-
l,
|
|
471
|
-
v,
|
|
472
|
-
s,
|
|
473
|
-
i.iconOnly || !1,
|
|
474
|
-
h
|
|
475
|
-
);
|
|
476
|
-
case "shape": {
|
|
477
|
-
const g = i;
|
|
478
|
-
return Re(
|
|
479
|
-
n,
|
|
480
|
-
l,
|
|
481
|
-
v,
|
|
482
|
-
s,
|
|
483
|
-
g.shape,
|
|
484
|
-
g.showOutline ?? !0,
|
|
485
|
-
h
|
|
486
|
-
);
|
|
487
|
-
}
|
|
488
|
-
case "dot":
|
|
489
|
-
return Ve(n, l, i.pulse || !1, h);
|
|
490
|
-
case "chip": {
|
|
491
|
-
const g = i;
|
|
492
|
-
return Fe(
|
|
493
|
-
n,
|
|
494
|
-
l === "large" ? "medium" : l,
|
|
495
|
-
v,
|
|
496
|
-
g.showIcon ?? !0,
|
|
497
|
-
g.onClick,
|
|
498
|
-
g.onDelete,
|
|
499
|
-
h
|
|
500
|
-
);
|
|
501
|
-
}
|
|
502
|
-
case "inline": {
|
|
503
|
-
const g = i;
|
|
504
|
-
return Qe(
|
|
505
|
-
n,
|
|
506
|
-
l,
|
|
507
|
-
v,
|
|
508
|
-
g.showDot ?? !0,
|
|
509
|
-
g.showIcon ?? !1,
|
|
510
|
-
h
|
|
511
|
-
);
|
|
512
|
-
}
|
|
513
|
-
case "badge": {
|
|
514
|
-
const g = i;
|
|
515
|
-
return je(
|
|
516
|
-
n,
|
|
517
|
-
g.children,
|
|
518
|
-
g.count,
|
|
519
|
-
g.dot,
|
|
520
|
-
g.max ?? 999,
|
|
521
|
-
g.invisible,
|
|
522
|
-
h
|
|
523
|
-
);
|
|
524
|
-
}
|
|
525
|
-
case "differential": {
|
|
526
|
-
const g = i;
|
|
527
|
-
return Ze(
|
|
528
|
-
g.value,
|
|
529
|
-
l,
|
|
530
|
-
g.percentage || !1,
|
|
531
|
-
g.currency,
|
|
532
|
-
g.showIcon,
|
|
533
|
-
g.showColor,
|
|
534
|
-
g.positiveColor,
|
|
535
|
-
g.negativeColor,
|
|
536
|
-
h
|
|
537
|
-
);
|
|
538
|
-
}
|
|
539
|
-
default:
|
|
540
|
-
return null;
|
|
541
|
-
}
|
|
542
|
-
})();
|
|
543
|
-
return !w || !M.isValidElement(w) ? w : M.cloneElement(w, {
|
|
544
|
-
ref: t
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
), Li = ({
|
|
548
|
-
status: r,
|
|
549
|
-
size: i = "medium",
|
|
550
|
-
label: t,
|
|
551
|
-
showLabel: o = !0,
|
|
552
|
-
iconOnly: n = !1,
|
|
553
|
-
sx: l
|
|
554
|
-
}) => {
|
|
555
|
-
const c = z[r], s = T[i], h = t || c.label;
|
|
556
|
-
return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
|
|
557
|
-
/* @__PURE__ */ e(
|
|
558
|
-
B,
|
|
559
|
-
{
|
|
560
|
-
name: c.icon,
|
|
561
|
-
size: i,
|
|
562
|
-
sx: { color: c.backgroundColor }
|
|
563
|
-
}
|
|
564
|
-
),
|
|
565
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
|
|
566
|
-
] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
|
|
567
|
-
/* @__PURE__ */ e(
|
|
568
|
-
C,
|
|
569
|
-
{
|
|
570
|
-
sx: {
|
|
571
|
-
display: "flex",
|
|
572
|
-
alignItems: "center",
|
|
573
|
-
justifyContent: "center",
|
|
574
|
-
width: s.icon + 8,
|
|
575
|
-
height: s.icon + 8,
|
|
576
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
577
|
-
// Perfect circle
|
|
578
|
-
backgroundColor: c.backgroundColor,
|
|
579
|
-
color: c.color
|
|
580
|
-
},
|
|
581
|
-
children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
|
|
582
|
-
}
|
|
583
|
-
),
|
|
584
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
|
|
585
|
-
] });
|
|
586
|
-
}, Oe = ({
|
|
587
|
-
status: r,
|
|
588
|
-
size: i = "medium",
|
|
589
|
-
pulse: t = !1,
|
|
590
|
-
sx: o
|
|
591
|
-
}) => {
|
|
592
|
-
const n = z[r], l = T[i];
|
|
593
|
-
return /* @__PURE__ */ e(
|
|
594
|
-
C,
|
|
595
|
-
{
|
|
596
|
-
sx: {
|
|
597
|
-
width: l.dotSize,
|
|
598
|
-
height: l.dotSize,
|
|
599
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
600
|
-
// Perfect circle
|
|
601
|
-
backgroundColor: n.backgroundColor,
|
|
602
|
-
...t && {
|
|
603
|
-
animation: "pulse 2s infinite",
|
|
604
|
-
"@keyframes pulse": {
|
|
605
|
-
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
606
|
-
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
607
|
-
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
...o
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
);
|
|
614
|
-
}, Wi = ({
|
|
615
|
-
items: r,
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as U, Stack as B, Box as b, Typography as C, Snackbar as $, Alert as H, AlertTitle as J, Button as D, Portal as X, Slide as q, Fade as K, Grow as Y, Link as Q } from "@mui/material";
|
|
3
|
+
import { r as tt, I as et, s as rt, b as it, c as ot, g as lt } from "./app-shell.js";
|
|
4
|
+
import { s as nt, t as F, x as st, o as E, p as ct } from "./foundation.js";
|
|
5
|
+
import z, { useState as at, useRef as ht, useCallback as L, useContext as dt, createContext as xt } from "react";
|
|
6
|
+
import { g as pt, w as ft } from "./accessibility.js";
|
|
7
|
+
import { useTheme as yt, getLuminance as gt } from "@mui/material/styles";
|
|
8
|
+
const Ut = ({
|
|
9
|
+
items: o,
|
|
616
10
|
variant: i = "dot",
|
|
617
|
-
direction:
|
|
618
|
-
size:
|
|
619
|
-
sx:
|
|
11
|
+
direction: r = "row",
|
|
12
|
+
size: e = "small",
|
|
13
|
+
sx: l
|
|
620
14
|
}) => {
|
|
621
|
-
const
|
|
622
|
-
return /* @__PURE__ */
|
|
623
|
-
|
|
15
|
+
const n = U(), h = rt[e];
|
|
16
|
+
return /* @__PURE__ */ t(
|
|
17
|
+
B,
|
|
624
18
|
{
|
|
625
|
-
direction:
|
|
626
|
-
spacing:
|
|
19
|
+
direction: r,
|
|
20
|
+
spacing: r === "row" ? 3 : 1,
|
|
627
21
|
useFlexGap: !0,
|
|
628
|
-
sx: {
|
|
629
|
-
children:
|
|
630
|
-
const
|
|
631
|
-
return /* @__PURE__ */
|
|
632
|
-
i === "icon" && /* @__PURE__ */
|
|
633
|
-
|
|
22
|
+
sx: F(l, { flexWrap: "wrap" }),
|
|
23
|
+
children: o.map((f, u) => {
|
|
24
|
+
const c = tt(f.status, n), w = f.label || c.label;
|
|
25
|
+
return /* @__PURE__ */ a(B, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
|
|
26
|
+
i === "icon" && /* @__PURE__ */ t(
|
|
27
|
+
b,
|
|
634
28
|
{
|
|
635
29
|
sx: {
|
|
636
30
|
display: "flex",
|
|
637
31
|
alignItems: "center",
|
|
638
32
|
justifyContent: "center",
|
|
639
|
-
width:
|
|
640
|
-
height:
|
|
641
|
-
borderRadius: `${
|
|
33
|
+
width: h.icon + 4,
|
|
34
|
+
height: h.icon + 4,
|
|
35
|
+
borderRadius: `${nt.borders.radius.circle}px`,
|
|
642
36
|
// Perfect circle
|
|
643
|
-
backgroundColor:
|
|
644
|
-
color:
|
|
37
|
+
backgroundColor: c.fill,
|
|
38
|
+
color: c.onFill
|
|
645
39
|
},
|
|
646
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ t(et, { name: c.icon, size: "small" })
|
|
647
41
|
}
|
|
648
42
|
),
|
|
649
43
|
i === "shape" && (() => {
|
|
650
|
-
const
|
|
651
|
-
return /* @__PURE__ */
|
|
652
|
-
|
|
44
|
+
const g = it[c.shape];
|
|
45
|
+
return /* @__PURE__ */ t(
|
|
46
|
+
g,
|
|
653
47
|
{
|
|
654
|
-
size:
|
|
655
|
-
color:
|
|
656
|
-
outline:
|
|
48
|
+
size: h.shape * 1.4,
|
|
49
|
+
color: c.fill,
|
|
50
|
+
outline: c.outline
|
|
657
51
|
}
|
|
658
52
|
);
|
|
659
53
|
})(),
|
|
660
|
-
i === "dot" &&
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
54
|
+
i === "dot" && // The visible label names the item; the dot repeats it, so it is decorative.
|
|
55
|
+
/* @__PURE__ */ t(ot, { variant: "dot", status: f.status, size: e, decorative: !0 }),
|
|
56
|
+
/* @__PURE__ */ a(C, { variant: "body2", sx: { fontSize: h.fontSize }, children: [
|
|
57
|
+
w,
|
|
58
|
+
f.count !== void 0 && /* @__PURE__ */ a(
|
|
59
|
+
C,
|
|
665
60
|
{
|
|
666
61
|
component: "span",
|
|
667
62
|
sx: {
|
|
668
63
|
ml: 0.5,
|
|
669
64
|
color: "text.secondary",
|
|
670
|
-
fontSize:
|
|
65
|
+
fontSize: h.fontSize
|
|
671
66
|
},
|
|
672
67
|
children: [
|
|
673
68
|
"(",
|
|
674
|
-
|
|
69
|
+
f.count,
|
|
675
70
|
")"
|
|
676
71
|
]
|
|
677
72
|
}
|
|
678
73
|
)
|
|
679
74
|
] })
|
|
680
|
-
] },
|
|
75
|
+
] }, u);
|
|
681
76
|
})
|
|
682
77
|
}
|
|
683
78
|
);
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
icon: null,
|
|
690
|
-
color: i.interactive.default,
|
|
691
|
-
primaryColor: "primary"
|
|
692
|
-
},
|
|
693
|
-
info: {
|
|
694
|
-
icon: /* @__PURE__ */ e(ze, {}),
|
|
695
|
-
color: i.status.info.text,
|
|
696
|
-
primaryColor: "info"
|
|
697
|
-
},
|
|
698
|
-
success: {
|
|
699
|
-
icon: /* @__PURE__ */ e(Le, {}),
|
|
700
|
-
color: i.status.success.text,
|
|
701
|
-
primaryColor: "success"
|
|
702
|
-
},
|
|
703
|
-
warning: {
|
|
704
|
-
icon: /* @__PURE__ */ e(Ie, {}),
|
|
705
|
-
color: i.status.warning.text,
|
|
706
|
-
primaryColor: "warning"
|
|
707
|
-
},
|
|
708
|
-
danger: {
|
|
709
|
-
icon: /* @__PURE__ */ e(We, {}),
|
|
710
|
-
color: i.status.error.text,
|
|
711
|
-
primaryColor: "error"
|
|
712
|
-
},
|
|
713
|
-
confirm: {
|
|
714
|
-
icon: /* @__PURE__ */ e(De, {}),
|
|
715
|
-
color: i.interactive.default,
|
|
716
|
-
primaryColor: "primary"
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
}
|
|
720
|
-
const Ae = M.forwardRef(function({
|
|
721
|
-
open: i,
|
|
722
|
-
onClose: t,
|
|
723
|
-
title: o,
|
|
724
|
-
children: n,
|
|
725
|
-
variant: l = "default",
|
|
726
|
-
primaryAction: c,
|
|
727
|
-
onPrimaryAction: s,
|
|
728
|
-
secondaryAction: h = "Cancel",
|
|
729
|
-
onSecondaryAction: x,
|
|
730
|
-
loading: p = !1,
|
|
731
|
-
primaryDisabled: v = !1,
|
|
732
|
-
showCloseButton: w = !0,
|
|
733
|
-
disableBackdropClick: g = !1,
|
|
734
|
-
disableEscapeKeyDown: L = !1,
|
|
735
|
-
maxWidth: D = "sm",
|
|
736
|
-
fullWidth: m = !0,
|
|
737
|
-
fullScreenMobile: F = !1,
|
|
738
|
-
footer: Q,
|
|
739
|
-
hideFooter: u = !1,
|
|
740
|
-
sx: y
|
|
741
|
-
}, b) {
|
|
742
|
-
const j = se(), [$, _] = O(!1), R = _e(j)[l], ee = (Z, G) => {
|
|
743
|
-
G === "backdropClick" && g || G === "escapeKeyDown" && L || t();
|
|
744
|
-
}, ie = async () => {
|
|
745
|
-
if (s) {
|
|
746
|
-
const Z = s();
|
|
747
|
-
if (Z instanceof Promise) {
|
|
748
|
-
_(!0);
|
|
749
|
-
try {
|
|
750
|
-
await Z;
|
|
751
|
-
} finally {
|
|
752
|
-
_(!1);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}, te = () => {
|
|
757
|
-
x?.(), t();
|
|
758
|
-
}, V = p || $, A = M.useId(), N = M.useId();
|
|
759
|
-
return /* @__PURE__ */ f(
|
|
760
|
-
de,
|
|
761
|
-
{
|
|
762
|
-
ref: b,
|
|
763
|
-
open: i,
|
|
764
|
-
onClose: ee,
|
|
765
|
-
maxWidth: D,
|
|
766
|
-
fullWidth: m,
|
|
767
|
-
fullScreen: F ? void 0 : !1,
|
|
768
|
-
"aria-labelledby": o ? A : void 0,
|
|
769
|
-
"aria-describedby": n ? N : void 0,
|
|
770
|
-
sx: {
|
|
771
|
-
"& .MuiDialog-paper": {
|
|
772
|
-
borderRadius: W.borders.radiusPx.lg,
|
|
773
|
-
// 12px
|
|
774
|
-
...y
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
children: [
|
|
778
|
-
(o || w) && /* @__PURE__ */ f(
|
|
779
|
-
he,
|
|
780
|
-
{
|
|
781
|
-
id: A,
|
|
782
|
-
sx: {
|
|
783
|
-
display: "flex",
|
|
784
|
-
alignItems: "center",
|
|
785
|
-
gap: 1.5,
|
|
786
|
-
pr: w ? 6 : 3
|
|
787
|
-
},
|
|
788
|
-
children: [
|
|
789
|
-
R.icon && /* @__PURE__ */ e(
|
|
790
|
-
C,
|
|
791
|
-
{
|
|
792
|
-
sx: {
|
|
793
|
-
width: W.iconSize.display + 4,
|
|
794
|
-
// 40px - prominent icon with frame
|
|
795
|
-
height: W.iconSize.display + 4,
|
|
796
|
-
borderRadius: `${W.borders.radius.circle}px`,
|
|
797
|
-
// Perfect circle
|
|
798
|
-
bgcolor: "action.selected",
|
|
799
|
-
// Theme-aware 12% overlay
|
|
800
|
-
display: "flex",
|
|
801
|
-
alignItems: "center",
|
|
802
|
-
justifyContent: "center",
|
|
803
|
-
"& .MuiSvgIcon-root": {
|
|
804
|
-
color: R.color,
|
|
805
|
-
fontSize: W.iconSize.prominent
|
|
806
|
-
// 24px
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
children: R.icon
|
|
810
|
-
}
|
|
811
|
-
),
|
|
812
|
-
/* @__PURE__ */ e(S, { variant: "h6", component: "span", sx: { fontWeight: 600 }, children: o }),
|
|
813
|
-
w && /* @__PURE__ */ e(
|
|
814
|
-
ge,
|
|
815
|
-
{
|
|
816
|
-
onClick: t,
|
|
817
|
-
disabled: V,
|
|
818
|
-
"aria-label": "Close dialog",
|
|
819
|
-
sx: {
|
|
820
|
-
position: "absolute",
|
|
821
|
-
right: 8,
|
|
822
|
-
top: 8,
|
|
823
|
-
color: "text.secondary"
|
|
824
|
-
},
|
|
825
|
-
children: /* @__PURE__ */ e(Ce, {})
|
|
826
|
-
}
|
|
827
|
-
)
|
|
828
|
-
]
|
|
829
|
-
}
|
|
830
|
-
),
|
|
831
|
-
/* @__PURE__ */ e(fe, { id: N, dividers: l === "default", children: typeof n == "string" ? /* @__PURE__ */ e(ue, { children: n }) : n }),
|
|
832
|
-
!u && /* @__PURE__ */ e(pe, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(re, { children: [
|
|
833
|
-
h && /* @__PURE__ */ e(
|
|
834
|
-
E,
|
|
835
|
-
{
|
|
836
|
-
onClick: te,
|
|
837
|
-
disabled: V,
|
|
838
|
-
color: "inherit",
|
|
839
|
-
children: h
|
|
840
|
-
}
|
|
841
|
-
),
|
|
842
|
-
c && /* @__PURE__ */ e(
|
|
843
|
-
E,
|
|
844
|
-
{
|
|
845
|
-
onClick: ie,
|
|
846
|
-
disabled: v || V,
|
|
847
|
-
variant: "contained",
|
|
848
|
-
color: R.primaryColor,
|
|
849
|
-
startIcon: V ? /* @__PURE__ */ e(xe, { size: 16, color: "inherit" }) : void 0,
|
|
850
|
-
children: c
|
|
851
|
-
}
|
|
852
|
-
)
|
|
853
|
-
] }) })
|
|
854
|
-
]
|
|
855
|
-
}
|
|
856
|
-
);
|
|
857
|
-
}), Ii = ({
|
|
858
|
-
open: r,
|
|
859
|
-
onClose: i,
|
|
860
|
-
onConfirm: t,
|
|
861
|
-
title: o = "Confirm Action",
|
|
862
|
-
message: n = "Are you sure you want to proceed?",
|
|
863
|
-
confirmLabel: l = "Confirm",
|
|
864
|
-
cancelLabel: c = "Cancel",
|
|
865
|
-
variant: s = "default",
|
|
866
|
-
loading: h = !1
|
|
867
|
-
}) => /* @__PURE__ */ e(
|
|
868
|
-
Ae,
|
|
869
|
-
{
|
|
870
|
-
open: r,
|
|
871
|
-
onClose: i,
|
|
872
|
-
title: o,
|
|
873
|
-
variant: s === "default" ? "confirm" : s,
|
|
874
|
-
primaryAction: l,
|
|
875
|
-
onPrimaryAction: t,
|
|
876
|
-
secondaryAction: c,
|
|
877
|
-
loading: h,
|
|
878
|
-
maxWidth: "xs",
|
|
879
|
-
children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
|
|
880
|
-
}
|
|
881
|
-
), H = {
|
|
882
|
-
isOpen: !1,
|
|
883
|
-
title: "Confirm Action",
|
|
884
|
-
message: "Are you sure you want to proceed?",
|
|
885
|
-
variant: "default",
|
|
886
|
-
confirmLabel: "Confirm",
|
|
887
|
-
onConfirm: () => {
|
|
888
|
-
}
|
|
889
|
-
}, zi = () => {
|
|
890
|
-
const [r, i] = O(H), t = I(
|
|
891
|
-
(n) => {
|
|
892
|
-
i({
|
|
893
|
-
...H,
|
|
894
|
-
...n,
|
|
895
|
-
isOpen: !0
|
|
896
|
-
});
|
|
897
|
-
},
|
|
898
|
-
[]
|
|
899
|
-
), o = I(() => {
|
|
900
|
-
i((n) => ({ ...n, isOpen: !1 }));
|
|
901
|
-
}, []);
|
|
902
|
-
return { confirm: t, close: o, state: r };
|
|
903
|
-
}, K = ne(null), q = (r) => /* @__PURE__ */ e(ke, { ...r, direction: "left" }), Ne = (r) => /* @__PURE__ */ e(Se, { ...r }), Ge = (r) => /* @__PURE__ */ e(ve, { ...r }), Ue = (r) => {
|
|
904
|
-
const [i, t] = r.split("-");
|
|
905
|
-
return { vertical: i, horizontal: t };
|
|
906
|
-
}, He = (r) => {
|
|
907
|
-
switch (r) {
|
|
79
|
+
}, Z = /* @__PURE__ */ xt(null), V = (o) => /* @__PURE__ */ t(q, { ...o, direction: "left" }), ut = (o) => /* @__PURE__ */ t(Y, { ...o }), mt = (o) => /* @__PURE__ */ t(K, { ...o }), wt = (o) => {
|
|
80
|
+
const [i, r] = o.split("-");
|
|
81
|
+
return { vertical: i, horizontal: r };
|
|
82
|
+
}, kt = (o) => {
|
|
83
|
+
switch (o) {
|
|
908
84
|
case "slide":
|
|
909
|
-
return
|
|
85
|
+
return V;
|
|
910
86
|
case "grow":
|
|
911
|
-
return
|
|
87
|
+
return ut;
|
|
912
88
|
case "fade":
|
|
913
|
-
return
|
|
89
|
+
return mt;
|
|
914
90
|
default:
|
|
915
|
-
return
|
|
91
|
+
return V;
|
|
916
92
|
}
|
|
917
|
-
},
|
|
93
|
+
}, vt = /* @__PURE__ */ z.forwardRef(function({
|
|
918
94
|
id: i,
|
|
919
|
-
message:
|
|
920
|
-
title:
|
|
921
|
-
severity:
|
|
922
|
-
duration:
|
|
923
|
-
action:
|
|
924
|
-
onAction:
|
|
925
|
-
position:
|
|
926
|
-
transition:
|
|
927
|
-
dismissible:
|
|
928
|
-
open:
|
|
929
|
-
onClose:
|
|
930
|
-
},
|
|
931
|
-
const
|
|
932
|
-
return /* @__PURE__ */
|
|
933
|
-
|
|
95
|
+
message: r,
|
|
96
|
+
title: e,
|
|
97
|
+
severity: l = "info",
|
|
98
|
+
duration: n = 5e3,
|
|
99
|
+
action: h,
|
|
100
|
+
onAction: f,
|
|
101
|
+
position: u = "top-right",
|
|
102
|
+
transition: c = "slide",
|
|
103
|
+
dismissible: w = !0,
|
|
104
|
+
open: g,
|
|
105
|
+
onClose: m
|
|
106
|
+
}, k) {
|
|
107
|
+
const v = wt(u), W = kt(c);
|
|
108
|
+
return /* @__PURE__ */ t(
|
|
109
|
+
$,
|
|
934
110
|
{
|
|
935
|
-
ref:
|
|
936
|
-
open:
|
|
937
|
-
autoHideDuration:
|
|
938
|
-
onClose:
|
|
939
|
-
anchorOrigin:
|
|
940
|
-
slots: { transition:
|
|
941
|
-
children: /* @__PURE__ */
|
|
942
|
-
|
|
111
|
+
ref: k,
|
|
112
|
+
open: g,
|
|
113
|
+
autoHideDuration: n,
|
|
114
|
+
onClose: m,
|
|
115
|
+
anchorOrigin: v,
|
|
116
|
+
slots: { transition: W },
|
|
117
|
+
children: /* @__PURE__ */ a(
|
|
118
|
+
H,
|
|
943
119
|
{
|
|
944
|
-
severity:
|
|
120
|
+
severity: l,
|
|
945
121
|
variant: "filled",
|
|
946
|
-
onClose:
|
|
947
|
-
action:
|
|
948
|
-
|
|
949
|
-
}, children:
|
|
122
|
+
onClose: w ? m : void 0,
|
|
123
|
+
action: h ? /* @__PURE__ */ t(D, { color: "inherit", size: "small", onClick: () => {
|
|
124
|
+
f?.(), m();
|
|
125
|
+
}, children: h }) : void 0,
|
|
950
126
|
sx: {
|
|
951
127
|
width: "100%",
|
|
952
128
|
minWidth: 300,
|
|
@@ -957,83 +133,83 @@ const Ae = M.forwardRef(function({
|
|
|
957
133
|
}
|
|
958
134
|
},
|
|
959
135
|
children: [
|
|
960
|
-
|
|
961
|
-
|
|
136
|
+
e && /* @__PURE__ */ t(J, { children: e }),
|
|
137
|
+
r
|
|
962
138
|
]
|
|
963
139
|
}
|
|
964
140
|
)
|
|
965
141
|
}
|
|
966
142
|
);
|
|
967
|
-
}),
|
|
968
|
-
children:
|
|
143
|
+
}), $t = ({
|
|
144
|
+
children: o,
|
|
969
145
|
defaultPosition: i = "top-right",
|
|
970
|
-
defaultDuration:
|
|
971
|
-
maxToasts:
|
|
972
|
-
defaultTransition:
|
|
146
|
+
defaultDuration: r = 5e3,
|
|
147
|
+
maxToasts: e = 5,
|
|
148
|
+
defaultTransition: l = "slide"
|
|
973
149
|
}) => {
|
|
974
|
-
const [
|
|
975
|
-
(
|
|
976
|
-
const
|
|
977
|
-
...
|
|
978
|
-
id:
|
|
150
|
+
const [n, h] = at([]), f = ht(0), u = L(() => (f.current += 1, `toast-${f.current}-${Date.now()}`), []), c = L(
|
|
151
|
+
(s) => {
|
|
152
|
+
const x = u(), p = {
|
|
153
|
+
...s,
|
|
154
|
+
id: x,
|
|
979
155
|
open: !0,
|
|
980
|
-
position:
|
|
981
|
-
duration:
|
|
982
|
-
transition:
|
|
983
|
-
dismissible:
|
|
156
|
+
position: s.position ?? i,
|
|
157
|
+
duration: s.duration ?? r,
|
|
158
|
+
transition: s.transition ?? l,
|
|
159
|
+
dismissible: s.dismissible ?? !0
|
|
984
160
|
};
|
|
985
|
-
return
|
|
986
|
-
const
|
|
987
|
-
return
|
|
988
|
-
}),
|
|
161
|
+
return h((M) => {
|
|
162
|
+
const I = [...M, p];
|
|
163
|
+
return I.length > e ? I.slice(-e) : I;
|
|
164
|
+
}), x;
|
|
989
165
|
},
|
|
990
|
-
[
|
|
991
|
-
),
|
|
992
|
-
|
|
993
|
-
(
|
|
166
|
+
[u, i, r, l, e]
|
|
167
|
+
), w = L((s) => {
|
|
168
|
+
h(
|
|
169
|
+
(x) => x.map((p) => p.id === s ? { ...p, open: !1 } : p)
|
|
994
170
|
), setTimeout(() => {
|
|
995
|
-
|
|
171
|
+
h((x) => x.filter((p) => p.id !== s));
|
|
996
172
|
}, 300);
|
|
997
|
-
}, []),
|
|
998
|
-
|
|
999
|
-
|
|
173
|
+
}, []), g = L(() => {
|
|
174
|
+
h((s) => s.map((x) => ({ ...x, open: !1 }))), setTimeout(() => {
|
|
175
|
+
h([]);
|
|
1000
176
|
}, 300);
|
|
1001
|
-
}, []),
|
|
1002
|
-
(
|
|
1003
|
-
[
|
|
1004
|
-
),
|
|
1005
|
-
(
|
|
1006
|
-
[
|
|
1007
|
-
),
|
|
1008
|
-
(
|
|
1009
|
-
[
|
|
1010
|
-
),
|
|
1011
|
-
(
|
|
1012
|
-
[
|
|
1013
|
-
),
|
|
1014
|
-
(
|
|
1015
|
-
[
|
|
1016
|
-
),
|
|
1017
|
-
toast:
|
|
1018
|
-
success:
|
|
1019
|
-
info:
|
|
1020
|
-
warning:
|
|
1021
|
-
error:
|
|
1022
|
-
dismiss:
|
|
1023
|
-
dismissAll:
|
|
1024
|
-
},
|
|
1025
|
-
const
|
|
1026
|
-
return
|
|
177
|
+
}, []), m = L(
|
|
178
|
+
(s) => c(s),
|
|
179
|
+
[c]
|
|
180
|
+
), k = L(
|
|
181
|
+
(s, x) => c({ message: s, severity: "success", ...x }),
|
|
182
|
+
[c]
|
|
183
|
+
), v = L(
|
|
184
|
+
(s, x) => c({ message: s, severity: "info", ...x }),
|
|
185
|
+
[c]
|
|
186
|
+
), W = L(
|
|
187
|
+
(s, x) => c({ message: s, severity: "warning", ...x }),
|
|
188
|
+
[c]
|
|
189
|
+
), d = L(
|
|
190
|
+
(s, x) => c({ message: s, severity: "error", ...x }),
|
|
191
|
+
[c]
|
|
192
|
+
), T = {
|
|
193
|
+
toast: m,
|
|
194
|
+
success: k,
|
|
195
|
+
info: v,
|
|
196
|
+
warning: W,
|
|
197
|
+
error: d,
|
|
198
|
+
dismiss: w,
|
|
199
|
+
dismissAll: g
|
|
200
|
+
}, S = n.reduce((s, x) => {
|
|
201
|
+
const p = x.position || i;
|
|
202
|
+
return s[p] || (s[p] = []), s[p].push(x), s;
|
|
1027
203
|
}, {});
|
|
1028
|
-
return /* @__PURE__ */
|
|
1029
|
-
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
|
|
204
|
+
return /* @__PURE__ */ a(Z.Provider, { value: T, children: [
|
|
205
|
+
o,
|
|
206
|
+
/* @__PURE__ */ t(X, { children: Object.entries(S).map(([s, x]) => /* @__PURE__ */ t(
|
|
207
|
+
b,
|
|
1032
208
|
{
|
|
1033
209
|
sx: {
|
|
1034
210
|
position: "fixed",
|
|
1035
|
-
zIndex:
|
|
1036
|
-
...
|
|
211
|
+
zIndex: (p) => pt(p, "toast"),
|
|
212
|
+
...Lt(s),
|
|
1037
213
|
display: "flex",
|
|
1038
214
|
flexDirection: "column",
|
|
1039
215
|
gap: 1,
|
|
@@ -1042,20 +218,20 @@ const Ae = M.forwardRef(function({
|
|
|
1042
218
|
pointerEvents: "auto"
|
|
1043
219
|
}
|
|
1044
220
|
},
|
|
1045
|
-
children:
|
|
221
|
+
children: x.map((p) => /* @__PURE__ */ t(vt, { ...p, onClose: () => w(p.id) }, p.id))
|
|
1046
222
|
},
|
|
1047
|
-
|
|
223
|
+
s
|
|
1048
224
|
)) })
|
|
1049
225
|
] });
|
|
1050
|
-
},
|
|
226
|
+
}, Lt = (o) => {
|
|
1051
227
|
const i = {};
|
|
1052
|
-
return
|
|
1053
|
-
},
|
|
1054
|
-
const
|
|
1055
|
-
if (!
|
|
228
|
+
return o.startsWith("top") && (i.top = 16), o.startsWith("bottom") && (i.bottom = 16), o.endsWith("left") && (i.left = 16), o.endsWith("right") && (i.right = 16), o.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
|
|
229
|
+
}, Ht = () => {
|
|
230
|
+
const o = dt(Z);
|
|
231
|
+
if (!o)
|
|
1056
232
|
throw new Error("useToast must be used within a ToastProvider");
|
|
1057
|
-
return
|
|
1058
|
-
},
|
|
233
|
+
return o;
|
|
234
|
+
}, P = {
|
|
1059
235
|
// Error/danger - Tailwind red-500
|
|
1060
236
|
error: {
|
|
1061
237
|
main: "#EF4444",
|
|
@@ -1075,7 +251,7 @@ const Ae = M.forwardRef(function({
|
|
|
1075
251
|
accent: {
|
|
1076
252
|
flame: "#FFD93D"
|
|
1077
253
|
}
|
|
1078
|
-
},
|
|
254
|
+
}, Ct = { small: 6, medium: 6, large: 5 }, R = {
|
|
1079
255
|
small: {
|
|
1080
256
|
illustrationSize: 120,
|
|
1081
257
|
titleVariant: "subtitle1",
|
|
@@ -1097,403 +273,432 @@ const Ae = M.forwardRef(function({
|
|
|
1097
273
|
spacing: 4,
|
|
1098
274
|
padding: 6
|
|
1099
275
|
}
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
})
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
/* @__PURE__ */
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
})
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
secondaryColor:
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
] })
|
|
1238
|
-
|
|
1239
|
-
size: r =
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
})
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
/* @__PURE__ */
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
"
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
"
|
|
1327
|
-
"
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
276
|
+
};
|
|
277
|
+
function y(o) {
|
|
278
|
+
const i = yt(), r = lt(i), e = i.palette.background.paper, l = gt(e) >= 0.5, n = (h) => ({
|
|
279
|
+
main: P[h].main,
|
|
280
|
+
tint: l ? P[h].light : r.status[h].background
|
|
281
|
+
});
|
|
282
|
+
return {
|
|
283
|
+
size: o.size ?? 180,
|
|
284
|
+
primaryColor: o.primaryColor ?? i.palette.primary.main,
|
|
285
|
+
secondaryColor: o.secondaryColor ?? r.border.subtle,
|
|
286
|
+
accentColor: o.accentColor ?? i.palette.secondary.main,
|
|
287
|
+
surface: e,
|
|
288
|
+
status: { error: n("error"), warning: n("warning"), success: n("success") }
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const Wt = (o) => {
|
|
292
|
+
const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
|
|
293
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
294
|
+
/* @__PURE__ */ t("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: e }),
|
|
295
|
+
/* @__PURE__ */ t("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: r, opacity: "0.2" }),
|
|
296
|
+
/* @__PURE__ */ t("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: e, opacity: "0.8" }),
|
|
297
|
+
/* @__PURE__ */ t("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: e, opacity: "0.6" }),
|
|
298
|
+
/* @__PURE__ */ t("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: e, opacity: "0.8" }),
|
|
299
|
+
/* @__PURE__ */ t("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: e, opacity: "0.6" }),
|
|
300
|
+
/* @__PURE__ */ t("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: e, opacity: "0.8" }),
|
|
301
|
+
/* @__PURE__ */ t("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: e, opacity: "0.6" }),
|
|
302
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "115", r: "35", fill: l, stroke: r, strokeWidth: "3", strokeDasharray: "6 4" }),
|
|
303
|
+
/* @__PURE__ */ t("text", { x: "100", y: "122", textAnchor: "middle", fill: r, fontSize: "32", fontWeight: "300", children: "?" })
|
|
304
|
+
] });
|
|
305
|
+
}, bt = (o) => {
|
|
306
|
+
const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
|
|
307
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
308
|
+
/* @__PURE__ */ t("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: e, transform: "rotate(-5 50 50)" }),
|
|
309
|
+
/* @__PURE__ */ t("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: n, stroke: e, strokeWidth: "2" }),
|
|
310
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: e }),
|
|
311
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: e, opacity: "0.6" }),
|
|
312
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: e, opacity: "0.4" }),
|
|
313
|
+
/* @__PURE__ */ a("g", { transform: "translate(120, 100) rotate(45)", children: [
|
|
314
|
+
/* @__PURE__ */ t("rect", { x: "0", y: "0", width: "50", height: "10", fill: l }),
|
|
315
|
+
/* @__PURE__ */ t("polygon", { points: "50,0 60,5 50,10", fill: l, opacity: "0.7" }),
|
|
316
|
+
/* @__PURE__ */ t("rect", { x: "-5", y: "2", width: "5", height: "6", fill: r })
|
|
317
|
+
] })
|
|
318
|
+
] });
|
|
319
|
+
}, It = (o) => {
|
|
320
|
+
const { size: i, primaryColor: r, accentColor: e, surface: l } = y(o);
|
|
321
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
322
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: r }),
|
|
323
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "85", r: "12", fill: l }),
|
|
324
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "85", r: "8", fill: e, opacity: "0.3" }),
|
|
325
|
+
/* @__PURE__ */ t("path", { d: "M70 120 L50 150 L70 140 Z", fill: e }),
|
|
326
|
+
/* @__PURE__ */ t("path", { d: "M130 120 L150 150 L130 140 Z", fill: e }),
|
|
327
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: e, opacity: "0.8" }),
|
|
328
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: P.accent.flame }),
|
|
329
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: l }),
|
|
330
|
+
/* @__PURE__ */ t("circle", { cx: "40", cy: "50", r: "3", fill: r, opacity: "0.5" }),
|
|
331
|
+
/* @__PURE__ */ t("circle", { cx: "160", cy: "40", r: "2", fill: r, opacity: "0.5" }),
|
|
332
|
+
/* @__PURE__ */ t("circle", { cx: "30", cy: "120", r: "2", fill: e, opacity: "0.5" }),
|
|
333
|
+
/* @__PURE__ */ t("circle", { cx: "170", cy: "100", r: "3", fill: e, opacity: "0.5" })
|
|
334
|
+
] });
|
|
335
|
+
}, zt = (o) => {
|
|
336
|
+
const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
|
|
337
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
338
|
+
/* @__PURE__ */ t("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: e }),
|
|
339
|
+
/* @__PURE__ */ t("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: l, stroke: e, strokeWidth: "2" }),
|
|
340
|
+
/* @__PURE__ */ t("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: l, stroke: r, strokeWidth: "2" }),
|
|
341
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: e }),
|
|
342
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: e, opacity: "0.6" }),
|
|
343
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: e, opacity: "0.4" }),
|
|
344
|
+
/* @__PURE__ */ t("circle", { cx: "140", cy: "130", r: "20", fill: r }),
|
|
345
|
+
/* @__PURE__ */ t("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: l }),
|
|
346
|
+
/* @__PURE__ */ t("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: l })
|
|
347
|
+
] });
|
|
348
|
+
}, St = (o) => {
|
|
349
|
+
const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
|
|
350
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
351
|
+
/* @__PURE__ */ t("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: n, stroke: e, strokeWidth: "2" }),
|
|
352
|
+
/* @__PURE__ */ t("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: e, strokeWidth: "1", strokeDasharray: "4" }),
|
|
353
|
+
/* @__PURE__ */ t("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: e, strokeWidth: "1", strokeDasharray: "4" }),
|
|
354
|
+
/* @__PURE__ */ t("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: e, opacity: "0.5" }),
|
|
355
|
+
/* @__PURE__ */ t("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: e, opacity: "0.5" }),
|
|
356
|
+
/* @__PURE__ */ t("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: e, opacity: "0.5" }),
|
|
357
|
+
/* @__PURE__ */ t("circle", { cx: "160", cy: "60", r: "25", fill: l, opacity: "0.2" }),
|
|
358
|
+
/* @__PURE__ */ t("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
|
|
359
|
+
/* @__PURE__ */ t("circle", { cx: "160", cy: "65", r: "10", fill: l }),
|
|
360
|
+
/* @__PURE__ */ t("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: r })
|
|
361
|
+
] });
|
|
362
|
+
}, Mt = (o) => {
|
|
363
|
+
const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
|
|
364
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
365
|
+
/* @__PURE__ */ t("circle", { cx: "85", cy: "85", r: "45", fill: l, stroke: r, strokeWidth: "4" }),
|
|
366
|
+
/* @__PURE__ */ t("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: r, strokeWidth: "8", strokeLinecap: "round" }),
|
|
367
|
+
/* @__PURE__ */ t("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: e, strokeWidth: "6", strokeLinecap: "round" }),
|
|
368
|
+
/* @__PURE__ */ t("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: e, strokeWidth: "6", strokeLinecap: "round" }),
|
|
369
|
+
/* @__PURE__ */ t("text", { x: "155", y: "50", fill: e, fontSize: "20", fontWeight: "bold", children: "?" }),
|
|
370
|
+
/* @__PURE__ */ t("text", { x: "40", y: "160", fill: e, fontSize: "16", fontWeight: "bold", children: "?" })
|
|
371
|
+
] });
|
|
372
|
+
}, Dt = (o) => {
|
|
373
|
+
const { size: i, secondaryColor: r, status: e } = y(o);
|
|
374
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
375
|
+
/* @__PURE__ */ t("path", { d: "M100 30 L170 150 L30 150 Z", fill: e.warning.tint, stroke: e.warning.main, strokeWidth: "3" }),
|
|
376
|
+
/* @__PURE__ */ t("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: e.warning.main }),
|
|
377
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "130", r: "7", fill: e.warning.main }),
|
|
378
|
+
/* @__PURE__ */ t("circle", { cx: "30", cy: "60", r: "8", fill: r, opacity: "0.5" }),
|
|
379
|
+
/* @__PURE__ */ t("circle", { cx: "170", cy: "80", r: "6", fill: r, opacity: "0.5" }),
|
|
380
|
+
/* @__PURE__ */ t("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: r, opacity: "0.3" }),
|
|
381
|
+
/* @__PURE__ */ t("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: r, opacity: "0.3" })
|
|
382
|
+
] });
|
|
383
|
+
}, Tt = (o) => {
|
|
384
|
+
const { size: i, primaryColor: r, secondaryColor: e, accentColor: l } = y(o);
|
|
385
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
386
|
+
/* @__PURE__ */ t("text", { x: "100", y: "100", textAnchor: "middle", fill: r, fontSize: "48", fontWeight: "bold", children: "404" }),
|
|
387
|
+
/* @__PURE__ */ t("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: e, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
388
|
+
/* @__PURE__ */ t("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: e, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
389
|
+
/* @__PURE__ */ t("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
|
|
390
|
+
/* @__PURE__ */ t("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
|
|
391
|
+
/* @__PURE__ */ t("circle", { cx: "75", cy: "60", r: "5", fill: r }),
|
|
392
|
+
/* @__PURE__ */ t("circle", { cx: "125", cy: "60", r: "5", fill: r }),
|
|
393
|
+
/* @__PURE__ */ t("path", { d: "M80 75 Q100 65 120 75", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
|
|
394
|
+
] });
|
|
395
|
+
}, Et = (o) => {
|
|
396
|
+
const { size: i, secondaryColor: r, accentColor: e, surface: l, status: n } = y(o);
|
|
397
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
398
|
+
/* @__PURE__ */ t("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: r }),
|
|
399
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: l }),
|
|
400
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: l }),
|
|
401
|
+
/* @__PURE__ */ t("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: l }),
|
|
402
|
+
/* @__PURE__ */ t("circle", { cx: "80", cy: "62", r: "4", fill: n.error.main }),
|
|
403
|
+
/* @__PURE__ */ t("circle", { cx: "92", cy: "62", r: "4", fill: n.error.main }),
|
|
404
|
+
/* @__PURE__ */ t("circle", { cx: "80", cy: "97", r: "4", fill: n.error.main }),
|
|
405
|
+
/* @__PURE__ */ t("circle", { cx: "92", cy: "97", r: "4", fill: e, opacity: "0.5" }),
|
|
406
|
+
/* @__PURE__ */ t("circle", { cx: "80", cy: "132", r: "4", fill: e, opacity: "0.5" }),
|
|
407
|
+
/* @__PURE__ */ t("circle", { cx: "92", cy: "132", r: "4", fill: e, opacity: "0.5" }),
|
|
408
|
+
/* @__PURE__ */ t("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: e }),
|
|
409
|
+
/* @__PURE__ */ a("g", { transform: "translate(40, 70)", children: [
|
|
410
|
+
/* @__PURE__ */ t("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: n.error.main, strokeWidth: "3", strokeLinecap: "round" }),
|
|
411
|
+
/* @__PURE__ */ t("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: n.error.main, strokeWidth: "3", strokeLinecap: "round" })
|
|
412
|
+
] })
|
|
413
|
+
] });
|
|
414
|
+
}, Bt = (o) => {
|
|
415
|
+
const { size: i, primaryColor: r, accentColor: e, surface: l, status: n } = y(o);
|
|
416
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
417
|
+
/* @__PURE__ */ t("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: r }),
|
|
418
|
+
/* @__PURE__ */ t("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: r, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
|
|
419
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "115", r: "12", fill: l }),
|
|
420
|
+
/* @__PURE__ */ t("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: l }),
|
|
421
|
+
/* @__PURE__ */ t("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: e, opacity: "0.15" }),
|
|
422
|
+
/* @__PURE__ */ t("circle", { cx: "155", cy: "65", r: "20", fill: n.error.tint, stroke: n.error.main, strokeWidth: "2" }),
|
|
423
|
+
/* @__PURE__ */ t("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: n.error.main })
|
|
424
|
+
] });
|
|
425
|
+
}, G = (o) => {
|
|
426
|
+
const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
|
|
427
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
428
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: e }),
|
|
429
|
+
/* @__PURE__ */ t("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: e }),
|
|
430
|
+
/* @__PURE__ */ t("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: e }),
|
|
431
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: e }),
|
|
432
|
+
/* @__PURE__ */ t("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: r }),
|
|
433
|
+
/* @__PURE__ */ t("polygon", { points: "100,85 75,120 125,120", fill: r }),
|
|
434
|
+
/* @__PURE__ */ t("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: n, stroke: l, strokeWidth: "2", strokeDasharray: "8 4" }),
|
|
435
|
+
/* @__PURE__ */ t("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: n, stroke: r, strokeWidth: "2" }),
|
|
436
|
+
/* @__PURE__ */ t("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: r, opacity: "0.2" })
|
|
437
|
+
] });
|
|
438
|
+
}, Pt = (o) => {
|
|
439
|
+
const { size: i, primaryColor: r, accentColor: e, surface: l, status: n } = y(o);
|
|
440
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
441
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "70", fill: n.success.tint }),
|
|
442
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "55", fill: n.success.main }),
|
|
443
|
+
/* @__PURE__ */ t("path", { d: "M65 100 L90 125 L135 75", stroke: l, strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
|
|
444
|
+
/* @__PURE__ */ t("circle", { cx: "40", cy: "50", r: "6", fill: e, opacity: "0.6" }),
|
|
445
|
+
/* @__PURE__ */ t("circle", { cx: "160", cy: "60", r: "4", fill: e, opacity: "0.6" }),
|
|
446
|
+
/* @__PURE__ */ t("circle", { cx: "170", cy: "130", r: "5", fill: r, opacity: "0.4" }),
|
|
447
|
+
/* @__PURE__ */ t("circle", { cx: "30", cy: "140", r: "4", fill: r, opacity: "0.4" }),
|
|
448
|
+
/* @__PURE__ */ t("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: e, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
|
|
449
|
+
/* @__PURE__ */ t("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: r, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
|
|
450
|
+
] });
|
|
451
|
+
}, Ft = (o) => {
|
|
452
|
+
const { size: i, primaryColor: r, secondaryColor: e } = y(o);
|
|
453
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
454
|
+
/* @__PURE__ */ t("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: e }),
|
|
455
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: e }),
|
|
456
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "145", r: "12", fill: e }),
|
|
457
|
+
/* @__PURE__ */ t("path", { d: "M100 40 L100 25", stroke: r, strokeWidth: "4", strokeLinecap: "round" }),
|
|
458
|
+
/* @__PURE__ */ t("text", { x: "145", y: "60", fill: r, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
|
|
459
|
+
/* @__PURE__ */ t("text", { x: "155", y: "45", fill: r, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
|
|
460
|
+
/* @__PURE__ */ t("text", { x: "165", y: "35", fill: r, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
|
|
461
|
+
] });
|
|
462
|
+
}, Nt = (o) => {
|
|
463
|
+
const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
|
|
464
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
465
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: e }),
|
|
466
|
+
/* @__PURE__ */ t("rect", { x: "50", y: "60", width: "100", height: "80", fill: e }),
|
|
467
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: e }),
|
|
468
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: l, stroke: r, strokeWidth: "2" }),
|
|
469
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: l, stroke: r, strokeWidth: "2" }),
|
|
470
|
+
/* @__PURE__ */ t("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: r, strokeWidth: "2" }),
|
|
471
|
+
/* @__PURE__ */ t("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: r, strokeWidth: "2" }),
|
|
472
|
+
/* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "25", fill: l, stroke: r, strokeWidth: "2", strokeDasharray: "5 3" }),
|
|
473
|
+
/* @__PURE__ */ t("text", { x: "100", y: "108", textAnchor: "middle", fill: r, fontSize: "24", fontWeight: "300", children: "0" })
|
|
474
|
+
] });
|
|
475
|
+
}, Qt = (o) => {
|
|
476
|
+
const { size: i, secondaryColor: r, status: e } = y(o);
|
|
477
|
+
return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
478
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: r }),
|
|
479
|
+
/* @__PURE__ */ t("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: r }),
|
|
480
|
+
/* @__PURE__ */ t("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: r }),
|
|
481
|
+
/* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: r }),
|
|
482
|
+
/* @__PURE__ */ t("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: e.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
483
|
+
/* @__PURE__ */ t("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: e.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
484
|
+
/* @__PURE__ */ t("path", { d: "M45 140 Q45 160 65 160", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
485
|
+
/* @__PURE__ */ t("path", { d: "M35 145 Q35 170 65 170", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
|
|
486
|
+
/* @__PURE__ */ t("path", { d: "M155 140 Q155 160 135 160", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
487
|
+
/* @__PURE__ */ t("path", { d: "M165 145 Q165 170 135 170", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
|
|
488
|
+
] });
|
|
489
|
+
}, Vt = {
|
|
490
|
+
"empty-table": Wt,
|
|
491
|
+
"empty-drafts": bt,
|
|
492
|
+
"getting-started": It,
|
|
493
|
+
"empty-documents": zt,
|
|
494
|
+
"empty-insights": St,
|
|
495
|
+
"no-results": Mt,
|
|
496
|
+
"error-generic": Dt,
|
|
497
|
+
"error-404": Tt,
|
|
498
|
+
"error-500": Et,
|
|
499
|
+
"error-permission": Bt,
|
|
500
|
+
upload: G,
|
|
501
|
+
success: Pt,
|
|
502
|
+
"no-notifications": Ft,
|
|
503
|
+
"no-data": Nt,
|
|
504
|
+
offline: Qt
|
|
505
|
+
}, Jt = /* @__PURE__ */ z.forwardRef(
|
|
506
|
+
function({
|
|
507
|
+
illustration: i,
|
|
508
|
+
title: r,
|
|
509
|
+
description: e,
|
|
510
|
+
primaryAction: l,
|
|
511
|
+
secondaryAction: n,
|
|
512
|
+
actions: h,
|
|
513
|
+
size: f = "medium",
|
|
514
|
+
headingLevel: u,
|
|
515
|
+
titleRef: c,
|
|
516
|
+
customIllustration: w,
|
|
517
|
+
slotProps: g,
|
|
518
|
+
className: m,
|
|
519
|
+
sx: k,
|
|
520
|
+
...v
|
|
521
|
+
}, W) {
|
|
522
|
+
const d = R[f], T = Vt[i], S = v, { id: s, ...x } = st({ rest: v, componentName: "IllustratedMessage" }), p = typeof S.id == "string" ? S.id : void 0, M = h !== void 0 && (l !== void 0 || n !== void 0);
|
|
523
|
+
z.useEffect(() => {
|
|
524
|
+
process.env.NODE_ENV !== "production" && M && ft(
|
|
525
|
+
"IllustratedMessage.actions",
|
|
526
|
+
"IllustratedMessage: `actions` replaces `primaryAction` and `secondaryAction`; pass one or the other. The built-in actions were not rendered."
|
|
527
|
+
);
|
|
528
|
+
}, [M]);
|
|
529
|
+
const I = E({ sx: { mb: 1, fontWeight: 600 } }, g?.title, {
|
|
530
|
+
componentName: "IllustratedMessage",
|
|
531
|
+
slotName: "title"
|
|
532
|
+
}), O = E({ sx: { mb: d.spacing } }, g?.description, {
|
|
533
|
+
componentName: "IllustratedMessage",
|
|
534
|
+
slotName: "description"
|
|
535
|
+
}), _ = E({ sx: { mt: d.spacing, alignItems: "center" } }, g?.actions, {
|
|
536
|
+
componentName: "IllustratedMessage",
|
|
537
|
+
slotName: "actions"
|
|
538
|
+
}), j = (l || n) && /* @__PURE__ */ a(A, { children: [
|
|
539
|
+
l && (l.href ? /* @__PURE__ */ t(
|
|
540
|
+
D,
|
|
541
|
+
{
|
|
542
|
+
variant: "contained",
|
|
543
|
+
href: l.href,
|
|
544
|
+
onClick: l.onClick,
|
|
545
|
+
children: l.label
|
|
546
|
+
}
|
|
547
|
+
) : /* @__PURE__ */ t(
|
|
548
|
+
D,
|
|
549
|
+
{
|
|
550
|
+
variant: "contained",
|
|
551
|
+
onClick: l.onClick,
|
|
552
|
+
children: l.label
|
|
553
|
+
}
|
|
554
|
+
)),
|
|
555
|
+
n && (n.href ? /* @__PURE__ */ t(
|
|
556
|
+
Q,
|
|
557
|
+
{
|
|
558
|
+
href: n.href,
|
|
559
|
+
onClick: n.onClick,
|
|
560
|
+
underline: "hover",
|
|
561
|
+
sx: { cursor: "pointer" },
|
|
562
|
+
children: n.label
|
|
563
|
+
}
|
|
564
|
+
) : /* @__PURE__ */ t(
|
|
565
|
+
Q,
|
|
566
|
+
{
|
|
567
|
+
component: "button",
|
|
568
|
+
onClick: n.onClick,
|
|
569
|
+
underline: "hover",
|
|
570
|
+
sx: { cursor: "pointer" },
|
|
571
|
+
children: n.label
|
|
572
|
+
}
|
|
573
|
+
))
|
|
574
|
+
] }), N = h ?? j;
|
|
575
|
+
return /* @__PURE__ */ a(
|
|
576
|
+
b,
|
|
1343
577
|
{
|
|
1344
|
-
ref:
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
578
|
+
ref: W,
|
|
579
|
+
...x,
|
|
580
|
+
id: p,
|
|
581
|
+
className: m,
|
|
582
|
+
sx: F(
|
|
583
|
+
{
|
|
584
|
+
textAlign: "center",
|
|
585
|
+
p: d.padding,
|
|
586
|
+
maxWidth: f === "small" ? 300 : f === "large" ? 500 : 400,
|
|
587
|
+
mx: "auto"
|
|
588
|
+
},
|
|
589
|
+
k
|
|
590
|
+
),
|
|
1352
591
|
children: [
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
|
|
592
|
+
/* @__PURE__ */ t(
|
|
593
|
+
b,
|
|
1355
594
|
{
|
|
1356
595
|
sx: {
|
|
1357
|
-
mb:
|
|
596
|
+
mb: d.spacing,
|
|
1358
597
|
display: "flex",
|
|
1359
598
|
justifyContent: "center",
|
|
1360
599
|
alignItems: "center"
|
|
1361
600
|
},
|
|
1362
|
-
role: "img",
|
|
1363
601
|
"aria-hidden": "true",
|
|
1364
|
-
children:
|
|
602
|
+
children: w || /* @__PURE__ */ t(T, { size: d.illustrationSize })
|
|
1365
603
|
}
|
|
1366
604
|
),
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
|
|
605
|
+
/* @__PURE__ */ t(
|
|
606
|
+
C,
|
|
1369
607
|
{
|
|
1370
|
-
variant:
|
|
1371
|
-
|
|
1372
|
-
|
|
608
|
+
variant: d.titleVariant,
|
|
609
|
+
component: ct(u ?? Ct[f]),
|
|
610
|
+
ref: c,
|
|
611
|
+
tabIndex: c ? -1 : void 0,
|
|
612
|
+
...I,
|
|
613
|
+
children: r
|
|
1373
614
|
}
|
|
1374
615
|
),
|
|
1375
|
-
|
|
1376
|
-
|
|
616
|
+
e && /* @__PURE__ */ t(
|
|
617
|
+
C,
|
|
1377
618
|
{
|
|
1378
|
-
variant:
|
|
1379
|
-
color: "
|
|
1380
|
-
|
|
1381
|
-
children:
|
|
619
|
+
variant: d.descriptionVariant,
|
|
620
|
+
color: "textSecondary",
|
|
621
|
+
...O,
|
|
622
|
+
children: e
|
|
1382
623
|
}
|
|
1383
624
|
),
|
|
1384
|
-
|
|
1385
|
-
P,
|
|
1386
|
-
{
|
|
1387
|
-
spacing: 1.5,
|
|
1388
|
-
sx: { mt: p.spacing, alignItems: "center" },
|
|
1389
|
-
children: [
|
|
1390
|
-
n && (n.href ? /* @__PURE__ */ e(
|
|
1391
|
-
E,
|
|
1392
|
-
{
|
|
1393
|
-
variant: "contained",
|
|
1394
|
-
href: n.href,
|
|
1395
|
-
onClick: n.onClick,
|
|
1396
|
-
children: n.label
|
|
1397
|
-
}
|
|
1398
|
-
) : /* @__PURE__ */ e(
|
|
1399
|
-
E,
|
|
1400
|
-
{
|
|
1401
|
-
variant: "contained",
|
|
1402
|
-
onClick: n.onClick,
|
|
1403
|
-
children: n.label
|
|
1404
|
-
}
|
|
1405
|
-
)),
|
|
1406
|
-
l && (l.href ? /* @__PURE__ */ e(
|
|
1407
|
-
U,
|
|
1408
|
-
{
|
|
1409
|
-
href: l.href,
|
|
1410
|
-
onClick: l.onClick,
|
|
1411
|
-
underline: "hover",
|
|
1412
|
-
sx: { cursor: "pointer" },
|
|
1413
|
-
children: l.label
|
|
1414
|
-
}
|
|
1415
|
-
) : /* @__PURE__ */ e(
|
|
1416
|
-
U,
|
|
1417
|
-
{
|
|
1418
|
-
component: "button",
|
|
1419
|
-
onClick: l.onClick,
|
|
1420
|
-
underline: "hover",
|
|
1421
|
-
sx: { cursor: "pointer" },
|
|
1422
|
-
children: l.label
|
|
1423
|
-
}
|
|
1424
|
-
))
|
|
1425
|
-
]
|
|
1426
|
-
}
|
|
1427
|
-
)
|
|
625
|
+
N && /* @__PURE__ */ t(B, { spacing: 1.5, ..._, children: N })
|
|
1428
626
|
]
|
|
1429
627
|
}
|
|
1430
628
|
);
|
|
1431
629
|
}
|
|
1432
|
-
),
|
|
630
|
+
), Xt = /* @__PURE__ */ z.forwardRef(
|
|
1433
631
|
function({
|
|
1434
632
|
title: i = "Drag and drop your file",
|
|
1435
|
-
description:
|
|
1436
|
-
acceptedTypes:
|
|
1437
|
-
browseLabel:
|
|
1438
|
-
onDrop:
|
|
1439
|
-
onBrowse:
|
|
1440
|
-
isDragging:
|
|
1441
|
-
size:
|
|
1442
|
-
sx:
|
|
1443
|
-
},
|
|
1444
|
-
const [
|
|
1445
|
-
|
|
633
|
+
description: r = "or click to browse from your computer",
|
|
634
|
+
acceptedTypes: e = "PNG, JPG, PDF up to 10MB",
|
|
635
|
+
browseLabel: l = "Browse Files",
|
|
636
|
+
onDrop: n,
|
|
637
|
+
onBrowse: h,
|
|
638
|
+
isDragging: f = !1,
|
|
639
|
+
size: u = "medium",
|
|
640
|
+
sx: c
|
|
641
|
+
}, w) {
|
|
642
|
+
const [g, m] = z.useState(f), k = R[u], v = (d) => {
|
|
643
|
+
d.preventDefault(), d.stopPropagation(), d.type === "dragenter" || d.type === "dragover" ? m(!0) : d.type === "dragleave" && m(!1);
|
|
1446
644
|
};
|
|
1447
|
-
return /* @__PURE__ */
|
|
1448
|
-
|
|
645
|
+
return /* @__PURE__ */ a(
|
|
646
|
+
b,
|
|
1449
647
|
{
|
|
1450
|
-
ref:
|
|
1451
|
-
onDragEnter:
|
|
1452
|
-
onDragLeave:
|
|
1453
|
-
onDragOver:
|
|
1454
|
-
onDrop: (
|
|
1455
|
-
|
|
648
|
+
ref: w,
|
|
649
|
+
onDragEnter: v,
|
|
650
|
+
onDragLeave: v,
|
|
651
|
+
onDragOver: v,
|
|
652
|
+
onDrop: (d) => {
|
|
653
|
+
d.preventDefault(), d.stopPropagation(), m(!1), d.dataTransfer.files && d.dataTransfer.files.length > 0 && n?.(d.dataTransfer.files);
|
|
1456
654
|
},
|
|
1457
|
-
sx:
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
655
|
+
sx: F(
|
|
656
|
+
{
|
|
657
|
+
p: k.padding,
|
|
658
|
+
border: "2px dashed",
|
|
659
|
+
borderColor: g ? "primary.main" : "grey.300",
|
|
660
|
+
borderRadius: 3,
|
|
661
|
+
// 12px - consistent with cards
|
|
662
|
+
// The page background: grey.50 in light (unchanged), and a dark surface in dark mode,
|
|
663
|
+
// where MUI's grey.50 put light text on a near-white fill (E-52+ axe, dark).
|
|
664
|
+
bgcolor: g ? "primary.50" : "background.default",
|
|
665
|
+
textAlign: "center",
|
|
666
|
+
cursor: "pointer",
|
|
667
|
+
transition: "all 0.2s ease",
|
|
668
|
+
"&:hover": {
|
|
669
|
+
borderColor: "primary.main",
|
|
670
|
+
bgcolor: "primary.50"
|
|
671
|
+
}
|
|
1470
672
|
},
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
onClick:
|
|
673
|
+
c
|
|
674
|
+
),
|
|
675
|
+
onClick: h,
|
|
1474
676
|
children: [
|
|
1475
|
-
/* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
|
|
677
|
+
/* @__PURE__ */ t(b, { sx: { mb: 2 }, children: /* @__PURE__ */ t(G, { size: k.illustrationSize * 0.7 }) }),
|
|
678
|
+
/* @__PURE__ */ t(C, { variant: k.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
|
|
679
|
+
/* @__PURE__ */ t(C, { variant: k.descriptionVariant, color: "textSecondary", sx: { mb: 2 }, children: r }),
|
|
680
|
+
/* @__PURE__ */ t(
|
|
681
|
+
D,
|
|
682
|
+
{
|
|
683
|
+
variant: "outlined",
|
|
684
|
+
size: u === "small" ? "small" : "medium",
|
|
685
|
+
onClick: (d) => {
|
|
686
|
+
d.stopPropagation(), h?.();
|
|
687
|
+
},
|
|
688
|
+
children: l
|
|
689
|
+
}
|
|
690
|
+
),
|
|
691
|
+
e && /* @__PURE__ */ t(C, { variant: "caption", color: "textSecondary", sx: { mt: 2, display: "block" }, children: e })
|
|
1480
692
|
]
|
|
1481
693
|
}
|
|
1482
694
|
);
|
|
1483
695
|
}
|
|
1484
696
|
);
|
|
1485
697
|
export {
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
Wi as a,
|
|
1493
|
-
Mi as b,
|
|
1494
|
-
qe as c,
|
|
1495
|
-
Li as d,
|
|
1496
|
-
Si as g,
|
|
1497
|
-
T as s,
|
|
1498
|
-
zi as u
|
|
698
|
+
Jt as I,
|
|
699
|
+
Ut as S,
|
|
700
|
+
vt as T,
|
|
701
|
+
Xt as U,
|
|
702
|
+
$t as a,
|
|
703
|
+
Ht as u
|
|
1499
704
|
};
|