@lincyaw/aegis-ui 0.6.0 → 0.8.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/dist/agent/ask/AskOverlay.cjs +2 -0
- package/dist/agent/ask/AskOverlay.cjs.map +1 -0
- package/dist/agent/ask/AskOverlay.js +83 -0
- package/dist/agent/ask/AskOverlay.js.map +1 -0
- package/dist/agent/ask/AskPanel.cjs +2 -0
- package/dist/agent/ask/AskPanel.cjs.map +1 -0
- package/dist/agent/{AskPanel.d.ts → ask/AskPanel.d.ts} +1 -1
- package/dist/agent/ask/AskPanel.js +174 -0
- package/dist/agent/ask/AskPanel.js.map +1 -0
- package/dist/agent/ask/buildAskContext.cjs +2 -0
- package/dist/agent/ask/buildAskContext.cjs.map +1 -0
- package/dist/agent/{buildAskContext.d.ts → ask/buildAskContext.d.ts} +2 -2
- package/dist/agent/ask/buildAskContext.js +22 -0
- package/dist/agent/ask/buildAskContext.js.map +1 -0
- package/dist/agent/chat/AgentChatProvider.cjs +2 -0
- package/dist/agent/chat/AgentChatProvider.cjs.map +1 -0
- package/dist/agent/{AgentProvider.d.ts → chat/AgentChatProvider.d.ts} +4 -4
- package/dist/agent/chat/AgentChatProvider.js +26 -0
- package/dist/agent/chat/AgentChatProvider.js.map +1 -0
- package/dist/agent/chat/chat.cjs +2 -0
- package/dist/agent/chat/chat.cjs.map +1 -0
- package/dist/agent/{agentContext.d.ts → chat/chat.d.ts} +5 -6
- package/dist/agent/chat/chat.js +14 -0
- package/dist/agent/chat/chat.js.map +1 -0
- package/dist/agent/chat/useAgentChat.cjs +2 -0
- package/dist/agent/chat/useAgentChat.cjs.map +1 -0
- package/dist/agent/chat/useAgentChat.d.ts +7 -0
- package/dist/agent/chat/useAgentChat.js +9 -0
- package/dist/agent/chat/useAgentChat.js.map +1 -0
- package/dist/agent/core/AegisRuntimeProvider.cjs +2 -0
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -0
- package/dist/agent/core/AegisRuntimeProvider.d.ts +32 -0
- package/dist/agent/core/AegisRuntimeProvider.js +35 -0
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -0
- package/dist/agent/core/aegisRuntimeContext.cjs +2 -0
- package/dist/agent/core/aegisRuntimeContext.cjs.map +1 -0
- package/dist/agent/core/aegisRuntimeContext.d.ts +6 -0
- package/dist/agent/core/aegisRuntimeContext.js +6 -0
- package/dist/agent/core/aegisRuntimeContext.js.map +1 -0
- package/dist/agent/core/hooks.cjs +2 -0
- package/dist/agent/core/hooks.cjs.map +1 -0
- package/dist/agent/core/hooks.js +83 -0
- package/dist/agent/core/hooks.js.map +1 -0
- package/dist/agent/core/mcpToolCatalogue.cjs +2 -0
- package/dist/agent/core/mcpToolCatalogue.cjs.map +1 -0
- package/dist/agent/core/mcpToolCatalogue.js +101 -0
- package/dist/agent/core/mcpToolCatalogue.js.map +1 -0
- package/dist/agent/core/runtime.cjs +2 -0
- package/dist/agent/core/runtime.cjs.map +1 -0
- package/dist/agent/{runtime.d.ts → core/runtime.d.ts} +3 -7
- package/dist/agent/core/runtime.js +391 -0
- package/dist/agent/core/runtime.js.map +1 -0
- package/dist/agent/core/usePrimitiveSurface.cjs +2 -0
- package/dist/agent/core/usePrimitiveSurface.cjs.map +1 -0
- package/dist/agent/core/usePrimitiveSurface.js +21 -0
- package/dist/agent/core/usePrimitiveSurface.js.map +1 -0
- package/dist/agent/index.d.ts +14 -17
- package/dist/auth/AuthProvider.cjs +2 -0
- package/dist/auth/AuthProvider.cjs.map +1 -0
- package/dist/auth/AuthProvider.js +12 -0
- package/dist/auth/AuthProvider.js.map +1 -0
- package/dist/auth/RequireAuth.cjs +2 -0
- package/dist/auth/RequireAuth.cjs.map +1 -0
- package/dist/auth/RequireAuth.js +15 -0
- package/dist/auth/RequireAuth.js.map +1 -0
- package/dist/auth/authContext.cjs +2 -0
- package/dist/auth/authContext.cjs.map +1 -0
- package/dist/auth/authContext.js +12 -0
- package/dist/auth/authContext.js.map +1 -0
- package/dist/auth/useAuth.cjs +2 -0
- package/dist/auth/useAuth.cjs.map +1 -0
- package/dist/auth/useAuth.js +9 -0
- package/dist/auth/useAuth.js.map +1 -0
- package/dist/commands/CommandProvider.cjs +2 -0
- package/dist/commands/CommandProvider.cjs.map +1 -0
- package/dist/commands/CommandProvider.js +76 -0
- package/dist/commands/CommandProvider.js.map +1 -0
- package/dist/commands/commandContext.cjs +2 -0
- package/dist/commands/commandContext.cjs.map +1 -0
- package/dist/commands/commandContext.d.ts +1 -1
- package/dist/commands/commandContext.js +20 -0
- package/dist/commands/commandContext.js.map +1 -0
- package/dist/commands/shortcut.cjs +2 -0
- package/dist/commands/shortcut.cjs.map +1 -0
- package/dist/commands/shortcut.js +62 -0
- package/dist/commands/shortcut.js.map +1 -0
- package/dist/commands/useCommands.cjs +2 -0
- package/dist/commands/useCommands.cjs.map +1 -0
- package/dist/commands/useCommands.js +9 -0
- package/dist/commands/useCommands.js.map +1 -0
- package/dist/commands/useRegisterCommands.cjs +2 -0
- package/dist/commands/useRegisterCommands.cjs.map +1 -0
- package/dist/commands/useRegisterCommands.js +12 -0
- package/dist/commands/useRegisterCommands.js.map +1 -0
- package/dist/components/ui/AgentPanel.cjs +2 -0
- package/dist/components/ui/AgentPanel.cjs.map +1 -0
- package/dist/components/ui/AgentPanel.d.ts +1 -1
- package/dist/components/ui/AgentPanel.js +35 -0
- package/dist/components/ui/AgentPanel.js.map +1 -0
- package/dist/components/ui/Alert.cjs +2 -0
- package/dist/components/ui/Alert.cjs.map +1 -0
- package/dist/components/ui/Alert.js +29 -0
- package/dist/components/ui/Alert.js.map +1 -0
- package/dist/components/ui/AmbientBackground.cjs +2 -0
- package/dist/components/ui/AmbientBackground.cjs.map +1 -0
- package/dist/components/ui/AmbientBackground.js +24 -0
- package/dist/components/ui/AmbientBackground.js.map +1 -0
- package/dist/components/ui/AuthLayout.cjs +2 -0
- package/dist/components/ui/AuthLayout.cjs.map +1 -0
- package/dist/components/ui/AuthLayout.js +27 -0
- package/dist/components/ui/AuthLayout.js.map +1 -0
- package/dist/components/ui/Avatar.cjs +2 -0
- package/dist/components/ui/Avatar.cjs.map +1 -0
- package/dist/components/ui/Avatar.d.ts +1 -1
- package/dist/components/ui/Avatar.js +55 -0
- package/dist/components/ui/Avatar.js.map +1 -0
- package/dist/components/ui/BlastRadiusBar.cjs +2 -0
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -0
- package/dist/components/ui/BlastRadiusBar.d.ts +1 -1
- package/dist/components/ui/BlastRadiusBar.js +46 -0
- package/dist/components/ui/BlastRadiusBar.js.map +1 -0
- package/dist/components/ui/Breadcrumb.cjs +2 -0
- package/dist/components/ui/Breadcrumb.cjs.map +1 -0
- package/dist/components/ui/Breadcrumb.js +29 -0
- package/dist/components/ui/Breadcrumb.js.map +1 -0
- package/dist/components/ui/BucketCard.cjs +2 -0
- package/dist/components/ui/BucketCard.cjs.map +1 -0
- package/dist/components/ui/BucketCard.js +73 -0
- package/dist/components/ui/BucketCard.js.map +1 -0
- package/dist/components/ui/Button.cjs +2 -0
- package/dist/components/ui/Button.cjs.map +1 -0
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js +73 -0
- package/dist/components/ui/Button.js.map +1 -0
- package/dist/components/ui/Carousel.cjs +2 -0
- package/dist/components/ui/Carousel.cjs.map +1 -0
- package/dist/components/ui/Carousel.js +112 -0
- package/dist/components/ui/Carousel.js.map +1 -0
- package/dist/components/ui/ChartLegend.cjs +2 -0
- package/dist/components/ui/ChartLegend.cjs.map +1 -0
- package/dist/components/ui/ChartLegend.d.ts +15 -0
- package/dist/components/ui/ChartLegend.js +36 -0
- package/dist/components/ui/ChartLegend.js.map +1 -0
- package/dist/components/ui/ChatComposer.cjs +2 -0
- package/dist/components/ui/ChatComposer.cjs.map +1 -0
- package/dist/components/ui/ChatComposer.js +63 -0
- package/dist/components/ui/ChatComposer.js.map +1 -0
- package/dist/components/ui/ChatMessage.cjs +2 -0
- package/dist/components/ui/ChatMessage.cjs.map +1 -0
- package/dist/components/ui/ChatMessage.d.ts +2 -2
- package/dist/components/ui/ChatMessage.js +36 -0
- package/dist/components/ui/ChatMessage.js.map +1 -0
- package/dist/components/ui/ChatMessageList.cjs +2 -0
- package/dist/components/ui/ChatMessageList.cjs.map +1 -0
- package/dist/components/ui/ChatMessageList.d.ts +1 -1
- package/dist/components/ui/ChatMessageList.js +35 -0
- package/dist/components/ui/ChatMessageList.js.map +1 -0
- package/dist/components/ui/ChatSessionList.cjs +2 -0
- package/dist/components/ui/ChatSessionList.cjs.map +1 -0
- package/dist/components/ui/ChatSessionList.js +232 -0
- package/dist/components/ui/ChatSessionList.js.map +1 -0
- package/dist/components/ui/CheckGrid.cjs +2 -0
- package/dist/components/ui/CheckGrid.cjs.map +1 -0
- package/dist/components/ui/CheckGrid.js +69 -0
- package/dist/components/ui/CheckGrid.js.map +1 -0
- package/dist/components/ui/Checkbox.cjs +2 -0
- package/dist/components/ui/Checkbox.cjs.map +1 -0
- package/dist/components/ui/Checkbox.js +41 -0
- package/dist/components/ui/Checkbox.js.map +1 -0
- package/dist/components/ui/Chip.cjs +2 -0
- package/dist/components/ui/Chip.cjs.map +1 -0
- package/dist/components/ui/Chip.d.ts +1 -1
- package/dist/components/ui/Chip.js +55 -0
- package/dist/components/ui/Chip.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +3 -0
- package/dist/components/ui/CodeBlock.cjs.map +1 -0
- package/dist/components/ui/CodeBlock.d.ts +1 -1
- package/dist/components/ui/CodeBlock.js +54 -0
- package/dist/components/ui/CodeBlock.js.map +1 -0
- package/dist/components/ui/CodeEditor.cjs +2 -0
- package/dist/components/ui/CodeEditor.cjs.map +1 -0
- package/dist/components/ui/CodeEditor.d.ts +1 -1
- package/dist/components/ui/CodeEditor.js +119 -0
- package/dist/components/ui/CodeEditor.js.map +1 -0
- package/dist/components/ui/Collapse.cjs +2 -0
- package/dist/components/ui/Collapse.cjs.map +1 -0
- package/dist/components/ui/Collapse.js +52 -0
- package/dist/components/ui/Collapse.js.map +1 -0
- package/dist/components/ui/ColumnLayout.cjs +2 -0
- package/dist/components/ui/ColumnLayout.cjs.map +1 -0
- package/dist/components/ui/ColumnLayout.js +26 -0
- package/dist/components/ui/ColumnLayout.js.map +1 -0
- package/dist/components/ui/CommandInvocationCard.cjs +2 -0
- package/dist/components/ui/CommandInvocationCard.cjs.map +1 -0
- package/dist/components/ui/CommandInvocationCard.d.ts +1 -1
- package/dist/components/ui/CommandInvocationCard.js +65 -0
- package/dist/components/ui/CommandInvocationCard.js.map +1 -0
- package/dist/components/ui/CommandPalette.cjs +2 -0
- package/dist/components/ui/CommandPalette.cjs.map +1 -0
- package/dist/components/ui/CommandPalette.js +147 -0
- package/dist/components/ui/CommandPalette.js.map +1 -0
- package/dist/components/ui/ContentInspectorContent.cjs +5 -0
- package/dist/components/ui/ContentInspectorContent.cjs.map +1 -0
- package/dist/components/ui/ContentInspectorContent.js +101 -0
- package/dist/components/ui/ContentInspectorContent.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +4 -0
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.js +211 -0
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -0
- package/dist/components/ui/ControlListItem.cjs +2 -0
- package/dist/components/ui/ControlListItem.cjs.map +1 -0
- package/dist/components/ui/ControlListItem.d.ts +1 -1
- package/dist/components/ui/ControlListItem.js +48 -0
- package/dist/components/ui/ControlListItem.js.map +1 -0
- package/dist/components/ui/DangerZone.cjs +2 -0
- package/dist/components/ui/DangerZone.cjs.map +1 -0
- package/dist/components/ui/DangerZone.js +23 -0
- package/dist/components/ui/DangerZone.js.map +1 -0
- package/dist/components/ui/DataList.cjs +2 -0
- package/dist/components/ui/DataList.cjs.map +1 -0
- package/dist/components/ui/DataList.d.ts +1 -1
- package/dist/components/ui/DataList.js +41 -0
- package/dist/components/ui/DataList.js.map +1 -0
- package/dist/components/ui/DataTable.cjs +2 -0
- package/dist/components/ui/DataTable.cjs.map +1 -0
- package/dist/components/ui/DataTable.d.ts +26 -2
- package/dist/components/ui/DataTable.js +493 -0
- package/dist/components/ui/DataTable.js.map +1 -0
- package/dist/components/ui/Dialog.cjs +2 -0
- package/dist/components/ui/Dialog.cjs.map +1 -0
- package/dist/components/ui/Dialog.js +110 -0
- package/dist/components/ui/Dialog.js.map +1 -0
- package/dist/components/ui/DiffViewer.cjs +2 -0
- package/dist/components/ui/DiffViewer.cjs.map +1 -0
- package/dist/components/ui/DiffViewer.d.ts +1 -1
- package/dist/components/ui/DiffViewer.js +83 -0
- package/dist/components/ui/DiffViewer.js.map +1 -0
- package/dist/components/ui/DropdownMenu.cjs +2 -0
- package/dist/components/ui/DropdownMenu.cjs.map +1 -0
- package/dist/components/ui/DropdownMenu.d.ts +1 -1
- package/dist/components/ui/DropdownMenu.js +104 -0
- package/dist/components/ui/DropdownMenu.js.map +1 -0
- package/dist/components/ui/EmptyState.cjs +2 -0
- package/dist/components/ui/EmptyState.cjs.map +1 -0
- package/dist/components/ui/EmptyState.js +21 -0
- package/dist/components/ui/EmptyState.js.map +1 -0
- package/dist/components/ui/EnvironmentSwitcher.cjs +2 -0
- package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -0
- package/dist/components/ui/EnvironmentSwitcher.d.ts +1 -1
- package/dist/components/ui/EnvironmentSwitcher.js +115 -0
- package/dist/components/ui/EnvironmentSwitcher.js.map +1 -0
- package/dist/components/ui/ErrorState.cjs +2 -0
- package/dist/components/ui/ErrorState.cjs.map +1 -0
- package/dist/components/ui/ErrorState.js +28 -0
- package/dist/components/ui/ErrorState.js.map +1 -0
- package/dist/components/ui/EventTable.cjs +2 -0
- package/dist/components/ui/EventTable.cjs.map +1 -0
- package/dist/components/ui/EventTable.js +184 -0
- package/dist/components/ui/EventTable.js.map +1 -0
- package/dist/components/ui/FileDropzone.cjs +2 -0
- package/dist/components/ui/FileDropzone.cjs.map +1 -0
- package/dist/components/ui/FileDropzone.js +84 -0
- package/dist/components/ui/FileDropzone.js.map +1 -0
- package/dist/components/ui/FilePreview.cjs +2 -0
- package/dist/components/ui/FilePreview.cjs.map +1 -0
- package/dist/components/ui/FilePreview.d.ts +2 -2
- package/dist/components/ui/FilePreview.js +102 -0
- package/dist/components/ui/FilePreview.js.map +1 -0
- package/dist/components/ui/FileTree.cjs +2 -0
- package/dist/components/ui/FileTree.cjs.map +1 -0
- package/dist/components/ui/FileTree.js +159 -0
- package/dist/components/ui/FileTree.js.map +1 -0
- package/dist/components/ui/FolderDropzone.cjs +2 -0
- package/dist/components/ui/FolderDropzone.cjs.map +1 -0
- package/dist/components/ui/FolderDropzone.js +158 -0
- package/dist/components/ui/FolderDropzone.js.map +1 -0
- package/dist/components/ui/ForgotPasswordForm.cjs +2 -0
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +47 -0
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -0
- package/dist/components/ui/FormRow.cjs +2 -0
- package/dist/components/ui/FormRow.cjs.map +1 -0
- package/dist/components/ui/FormRow.js +21 -0
- package/dist/components/ui/FormRow.js.map +1 -0
- package/dist/components/ui/IdentityCell.cjs +2 -0
- package/dist/components/ui/IdentityCell.cjs.map +1 -0
- package/dist/components/ui/IdentityCell.js +47 -0
- package/dist/components/ui/IdentityCell.js.map +1 -0
- package/dist/components/ui/InboxPage.cjs +2 -0
- package/dist/components/ui/InboxPage.cjs.map +1 -0
- package/dist/components/ui/InboxPage.d.ts +1 -1
- package/dist/components/ui/InboxPage.js +102 -0
- package/dist/components/ui/InboxPage.js.map +1 -0
- package/dist/components/ui/KeyValueList.cjs +2 -0
- package/dist/components/ui/KeyValueList.cjs.map +1 -0
- package/dist/components/ui/KeyValueList.d.ts +1 -1
- package/dist/components/ui/KeyValueList.js +23 -0
- package/dist/components/ui/KeyValueList.js.map +1 -0
- package/dist/components/ui/LoginForm.cjs +2 -0
- package/dist/components/ui/LoginForm.cjs.map +1 -0
- package/dist/components/ui/LoginForm.js +100 -0
- package/dist/components/ui/LoginForm.js.map +1 -0
- package/dist/components/ui/Markdown.cjs +2 -0
- package/dist/components/ui/Markdown.cjs.map +1 -0
- package/dist/components/ui/Markdown.js +82 -0
- package/dist/components/ui/Markdown.js.map +1 -0
- package/dist/components/ui/MdxDocument.cjs +2 -0
- package/dist/components/ui/MdxDocument.cjs.map +1 -0
- package/dist/components/ui/MdxDocument.js +66 -0
- package/dist/components/ui/MdxDocument.js.map +1 -0
- package/dist/components/ui/MetadataList.cjs +2 -0
- package/dist/components/ui/MetadataList.cjs.map +1 -0
- package/dist/components/ui/MetadataList.js +36 -0
- package/dist/components/ui/MetadataList.js.map +1 -0
- package/dist/components/ui/MetricCard.cjs +2 -0
- package/dist/components/ui/MetricCard.cjs.map +1 -0
- package/dist/components/ui/MetricCard.d.ts +1 -1
- package/dist/components/ui/MetricCard.js +63 -0
- package/dist/components/ui/MetricCard.js.map +1 -0
- package/dist/components/ui/MetricLabel.cjs +2 -0
- package/dist/components/ui/MetricLabel.cjs.map +1 -0
- package/dist/components/ui/MetricLabel.js +22 -0
- package/dist/components/ui/MetricLabel.js.map +1 -0
- package/dist/components/ui/MonoValue.cjs +2 -0
- package/dist/components/ui/MonoValue.cjs.map +1 -0
- package/dist/components/ui/MonoValue.d.ts +1 -1
- package/dist/components/ui/MonoValue.js +29 -0
- package/dist/components/ui/MonoValue.js.map +1 -0
- package/dist/components/ui/NotificationBell.cjs +2 -0
- package/dist/components/ui/NotificationBell.cjs.map +1 -0
- package/dist/components/ui/NotificationBell.d.ts +1 -1
- package/dist/components/ui/NotificationBell.js +98 -0
- package/dist/components/ui/NotificationBell.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +2 -0
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -0
- package/dist/components/ui/ObjectBrowser.js +116 -0
- package/dist/components/ui/ObjectBrowser.js.map +1 -0
- package/dist/components/ui/ObjectInspector.cjs +2 -0
- package/dist/components/ui/ObjectInspector.cjs.map +1 -0
- package/dist/components/ui/ObjectInspector.js +117 -0
- package/dist/components/ui/ObjectInspector.js.map +1 -0
- package/dist/components/ui/PageHeader.cjs +2 -0
- package/dist/components/ui/PageHeader.cjs.map +1 -0
- package/dist/components/ui/PageHeader.js +29 -0
- package/dist/components/ui/PageHeader.js.map +1 -0
- package/dist/components/ui/PageSizeSelect.cjs +2 -0
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -0
- package/dist/components/ui/PageSizeSelect.js +88 -0
- package/dist/components/ui/PageSizeSelect.js.map +1 -0
- package/dist/components/ui/Pagination.cjs +2 -0
- package/dist/components/ui/Pagination.cjs.map +1 -0
- package/dist/components/ui/Pagination.js +56 -0
- package/dist/components/ui/Pagination.js.map +1 -0
- package/dist/components/ui/Panel.cjs +2 -0
- package/dist/components/ui/Panel.cjs.map +1 -0
- package/dist/components/ui/Panel.d.ts +1 -1
- package/dist/components/ui/Panel.js +47 -0
- package/dist/components/ui/Panel.js.map +1 -0
- package/dist/components/ui/PanelTitle.cjs +2 -0
- package/dist/components/ui/PanelTitle.cjs.map +1 -0
- package/dist/components/ui/PanelTitle.js +21 -0
- package/dist/components/ui/PanelTitle.js.map +1 -0
- package/dist/components/ui/ParetoChart.cjs +2 -0
- package/dist/components/ui/ParetoChart.cjs.map +1 -0
- package/dist/components/ui/ParetoChart.d.ts +11 -4
- package/dist/components/ui/ParetoChart.js +292 -0
- package/dist/components/ui/ParetoChart.js.map +1 -0
- package/dist/components/ui/ParquetViewer.cjs +2 -0
- package/dist/components/ui/ParquetViewer.cjs.map +1 -0
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +210 -0
- package/dist/components/ui/ParquetViewer.js.map +1 -0
- package/dist/components/ui/PasswordField.cjs +2 -0
- package/dist/components/ui/PasswordField.cjs.map +1 -0
- package/dist/components/ui/PasswordField.js +37 -0
- package/dist/components/ui/PasswordField.js.map +1 -0
- package/dist/components/ui/PickerField.cjs +2 -0
- package/dist/components/ui/PickerField.cjs.map +1 -0
- package/dist/components/ui/PickerField.js +45 -0
- package/dist/components/ui/PickerField.js.map +1 -0
- package/dist/components/ui/ProjectSelector.cjs +2 -0
- package/dist/components/ui/ProjectSelector.cjs.map +1 -0
- package/dist/components/ui/ProjectSelector.d.ts +1 -1
- package/dist/components/ui/ProjectSelector.js +74 -0
- package/dist/components/ui/ProjectSelector.js.map +1 -0
- package/dist/components/ui/QueryAutocomplete.cjs +2 -0
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -0
- package/dist/components/ui/QueryAutocomplete.js +235 -0
- package/dist/components/ui/QueryAutocomplete.js.map +1 -0
- package/dist/components/ui/RankBar.cjs +2 -0
- package/dist/components/ui/RankBar.cjs.map +1 -0
- package/dist/components/ui/RankBar.d.ts +17 -2
- package/dist/components/ui/RankBar.js +105 -0
- package/dist/components/ui/RankBar.js.map +1 -0
- package/dist/components/ui/RegisterForm.cjs +2 -0
- package/dist/components/ui/RegisterForm.cjs.map +1 -0
- package/dist/components/ui/RegisterForm.js +72 -0
- package/dist/components/ui/RegisterForm.js.map +1 -0
- package/dist/components/ui/ReplayScrubber.cjs +2 -0
- package/dist/components/ui/ReplayScrubber.cjs.map +1 -0
- package/dist/components/ui/ReplayScrubber.d.ts +35 -0
- package/dist/components/ui/ReplayScrubber.js +119 -0
- package/dist/components/ui/ReplayScrubber.js.map +1 -0
- package/dist/components/ui/ReplayStepStrip.cjs +2 -0
- package/dist/components/ui/ReplayStepStrip.cjs.map +1 -0
- package/dist/components/ui/ReplayStepStrip.d.ts +33 -0
- package/dist/components/ui/ReplayStepStrip.js +119 -0
- package/dist/components/ui/ReplayStepStrip.js.map +1 -0
- package/dist/components/ui/ReplayTransport.cjs +2 -0
- package/dist/components/ui/ReplayTransport.cjs.map +1 -0
- package/dist/components/ui/ReplayTransport.d.ts +25 -0
- package/dist/components/ui/ReplayTransport.js +103 -0
- package/dist/components/ui/ReplayTransport.js.map +1 -0
- package/dist/components/ui/ResizableSidePanel.cjs +2 -0
- package/dist/components/ui/ResizableSidePanel.cjs.map +1 -0
- package/dist/components/ui/ResizableSidePanel.js +79 -0
- package/dist/components/ui/ResizableSidePanel.js.map +1 -0
- package/dist/components/ui/Reveal.cjs +2 -0
- package/dist/components/ui/Reveal.cjs.map +1 -0
- package/dist/components/ui/Reveal.js +37 -0
- package/dist/components/ui/Reveal.js.map +1 -0
- package/dist/components/ui/RunPips.cjs +2 -0
- package/dist/components/ui/RunPips.cjs.map +1 -0
- package/dist/components/ui/RunPips.js +53 -0
- package/dist/components/ui/RunPips.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +2 -0
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -0
- package/dist/components/ui/SavedQueryBar.js +390 -0
- package/dist/components/ui/SavedQueryBar.js.map +1 -0
- package/dist/components/ui/ScoreBar.cjs +2 -0
- package/dist/components/ui/ScoreBar.cjs.map +1 -0
- package/dist/components/ui/ScoreBar.js +44 -0
- package/dist/components/ui/ScoreBar.js.map +1 -0
- package/dist/components/ui/ScrollStory.cjs +3 -0
- package/dist/components/ui/ScrollStory.cjs.map +1 -0
- package/dist/components/ui/ScrollStory.d.ts +33 -0
- package/dist/components/ui/ScrollStory.js +116 -0
- package/dist/components/ui/ScrollStory.js.map +1 -0
- package/dist/components/ui/SearchInput.cjs +2 -0
- package/dist/components/ui/SearchInput.cjs.map +1 -0
- package/dist/components/ui/SearchInput.js +48 -0
- package/dist/components/ui/SearchInput.js.map +1 -0
- package/dist/components/ui/SectionDivider.cjs +2 -0
- package/dist/components/ui/SectionDivider.cjs.map +1 -0
- package/dist/components/ui/SectionDivider.js +22 -0
- package/dist/components/ui/SectionDivider.js.map +1 -0
- package/dist/components/ui/Select.cjs +2 -0
- package/dist/components/ui/Select.cjs.map +1 -0
- package/dist/components/ui/Select.js +70 -0
- package/dist/components/ui/Select.js.map +1 -0
- package/dist/components/ui/ServiceMap.cjs +2 -0
- package/dist/components/ui/ServiceMap.cjs.map +1 -0
- package/dist/components/ui/ServiceMap.js +187 -0
- package/dist/components/ui/ServiceMap.js.map +1 -0
- package/dist/components/ui/SettingsSection.cjs +2 -0
- package/dist/components/ui/SettingsSection.cjs.map +1 -0
- package/dist/components/ui/SettingsSection.js +23 -0
- package/dist/components/ui/SettingsSection.js.map +1 -0
- package/dist/components/ui/ShareLinkDialog.cjs +2 -0
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -0
- package/dist/components/ui/ShareLinkDialog.js +133 -0
- package/dist/components/ui/ShareLinkDialog.js.map +1 -0
- package/dist/components/ui/Skeleton.cjs +2 -0
- package/dist/components/ui/Skeleton.cjs.map +1 -0
- package/dist/components/ui/Skeleton.js +42 -0
- package/dist/components/ui/Skeleton.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +2 -0
- package/dist/components/ui/SparkLine.cjs.map +1 -0
- package/dist/components/ui/SparkLine.d.ts +1 -1
- package/dist/components/ui/SparkLine.js +61 -0
- package/dist/components/ui/SparkLine.js.map +1 -0
- package/dist/components/ui/StackedBar.cjs +2 -0
- package/dist/components/ui/StackedBar.cjs.map +1 -0
- package/dist/components/ui/StackedBar.d.ts +9 -8
- package/dist/components/ui/StackedBar.js +125 -0
- package/dist/components/ui/StackedBar.js.map +1 -0
- package/dist/components/ui/StatBlock.cjs +2 -0
- package/dist/components/ui/StatBlock.cjs.map +1 -0
- package/dist/components/ui/StatBlock.d.ts +1 -1
- package/dist/components/ui/StatBlock.js +67 -0
- package/dist/components/ui/StatBlock.js.map +1 -0
- package/dist/components/ui/StatusDot.cjs +2 -0
- package/dist/components/ui/StatusDot.cjs.map +1 -0
- package/dist/components/ui/StatusDot.js +27 -0
- package/dist/components/ui/StatusDot.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +2 -0
- package/dist/components/ui/TableOfContents.cjs.map +1 -0
- package/dist/components/ui/TableOfContents.js +104 -0
- package/dist/components/ui/TableOfContents.js.map +1 -0
- package/dist/components/ui/Tabs.cjs +3 -0
- package/dist/components/ui/Tabs.cjs.map +1 -0
- package/dist/components/ui/Tabs.d.ts +1 -1
- package/dist/components/ui/Tabs.js +144 -0
- package/dist/components/ui/Tabs.js.map +1 -0
- package/dist/components/ui/Terminal.cjs +2 -0
- package/dist/components/ui/Terminal.cjs.map +1 -0
- package/dist/components/ui/Terminal.d.ts +1 -1
- package/dist/components/ui/Terminal.js +42 -0
- package/dist/components/ui/Terminal.js.map +1 -0
- package/dist/components/ui/TextField.cjs +2 -0
- package/dist/components/ui/TextField.cjs.map +1 -0
- package/dist/components/ui/TextField.js +56 -0
- package/dist/components/ui/TextField.js.map +1 -0
- package/dist/components/ui/ThemeToggle.cjs +2 -0
- package/dist/components/ui/ThemeToggle.cjs.map +1 -0
- package/dist/components/ui/ThemeToggle.d.ts +1 -1
- package/dist/components/ui/ThemeToggle.js +37 -0
- package/dist/components/ui/ThemeToggle.js.map +1 -0
- package/dist/components/ui/TimeDisplay.cjs +2 -0
- package/dist/components/ui/TimeDisplay.cjs.map +1 -0
- package/dist/components/ui/TimeDisplay.js +56 -0
- package/dist/components/ui/TimeDisplay.js.map +1 -0
- package/dist/components/ui/TimeRangePicker.cjs +2 -0
- package/dist/components/ui/TimeRangePicker.cjs.map +1 -0
- package/dist/components/ui/TimeRangePicker.js +152 -0
- package/dist/components/ui/TimeRangePicker.js.map +1 -0
- package/dist/components/ui/Timeline.cjs +2 -0
- package/dist/components/ui/Timeline.cjs.map +1 -0
- package/dist/components/ui/Timeline.d.ts +1 -1
- package/dist/components/ui/Timeline.js +54 -0
- package/dist/components/ui/Timeline.js.map +1 -0
- package/dist/components/ui/TimelineChart.cjs +2 -0
- package/dist/components/ui/TimelineChart.cjs.map +1 -0
- package/dist/components/ui/TimelineChart.d.ts +12 -15
- package/dist/components/ui/TimelineChart.js +291 -0
- package/dist/components/ui/TimelineChart.js.map +1 -0
- package/dist/components/ui/ToolCallCard.cjs +4 -0
- package/dist/components/ui/ToolCallCard.cjs.map +1 -0
- package/dist/components/ui/ToolCallCard.d.ts +1 -2
- package/dist/components/ui/ToolCallCard.js +56 -0
- package/dist/components/ui/ToolCallCard.js.map +1 -0
- package/dist/components/ui/Toolbar.cjs +2 -0
- package/dist/components/ui/Toolbar.cjs.map +1 -0
- package/dist/components/ui/Toolbar.js +68 -0
- package/dist/components/ui/Toolbar.js.map +1 -0
- package/dist/components/ui/TraceSpanInspector.cjs +2 -0
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -0
- package/dist/components/ui/TraceSpanInspector.js +148 -0
- package/dist/components/ui/TraceSpanInspector.js.map +1 -0
- package/dist/components/ui/TraceTree.cjs +2 -0
- package/dist/components/ui/TraceTree.cjs.map +1 -0
- package/dist/components/ui/TraceTree.d.ts +14 -3
- package/dist/components/ui/TraceTree.js +195 -0
- package/dist/components/ui/TraceTree.js.map +1 -0
- package/dist/components/ui/TrajectoryStep.cjs +2 -0
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -0
- package/dist/components/ui/TrajectoryStep.d.ts +1 -1
- package/dist/components/ui/TrajectoryStep.js +74 -0
- package/dist/components/ui/TrajectoryStep.js.map +1 -0
- package/dist/components/ui/TrajectoryTimeline.cjs +2 -0
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -0
- package/dist/components/ui/TrajectoryTimeline.d.ts +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +51 -0
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -0
- package/dist/components/ui/UploadQueue.cjs +2 -0
- package/dist/components/ui/UploadQueue.cjs.map +1 -0
- package/dist/components/ui/UploadQueue.js +146 -0
- package/dist/components/ui/UploadQueue.js.map +1 -0
- package/dist/components/ui/codeFence.cjs +2 -0
- package/dist/components/ui/codeFence.cjs.map +1 -0
- package/dist/components/ui/codeFence.js +16 -0
- package/dist/components/ui/codeFence.js.map +1 -0
- package/dist/components/ui/index.d.ts +13 -5
- package/dist/components/ui/linkComponent.cjs +2 -0
- package/dist/components/ui/linkComponent.cjs.map +1 -0
- package/dist/components/ui/linkComponent.d.ts +4 -1
- package/dist/components/ui/linkComponent.js +11 -0
- package/dist/components/ui/linkComponent.js.map +1 -0
- package/dist/components/ui/mdxTableOfContents.cjs +2 -0
- package/dist/components/ui/mdxTableOfContents.cjs.map +1 -0
- package/dist/components/ui/mdxTableOfContents.js +13 -0
- package/dist/components/ui/mdxTableOfContents.js.map +1 -0
- package/dist/components/ui/relativeTime.cjs +2 -0
- package/dist/components/ui/relativeTime.cjs.map +1 -0
- package/dist/components/ui/relativeTime.js +11 -0
- package/dist/components/ui/relativeTime.js.map +1 -0
- package/dist/components/ui/tablistKeyboard.cjs +2 -0
- package/dist/components/ui/tablistKeyboard.cjs.map +1 -0
- package/dist/components/ui/tablistKeyboard.js +18 -0
- package/dist/components/ui/tablistKeyboard.js.map +1 -0
- package/dist/components/ui/traceFormat.cjs +2 -0
- package/dist/components/ui/traceFormat.cjs.map +1 -0
- package/dist/components/ui/traceFormat.d.ts +0 -2
- package/dist/components/ui/traceFormat.js +11 -0
- package/dist/components/ui/traceFormat.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useCopyToClipboard.cjs +2 -0
- package/dist/hooks/useCopyToClipboard.cjs.map +1 -0
- package/dist/hooks/useCopyToClipboard.js +24 -0
- package/dist/hooks/useCopyToClipboard.js.map +1 -0
- package/dist/hooks/useElementWidth.cjs +2 -0
- package/dist/hooks/useElementWidth.cjs.map +1 -0
- package/dist/hooks/useElementWidth.js +22 -0
- package/dist/hooks/useElementWidth.js.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/hooks/useMediaQuery.cjs +2 -0
- package/dist/hooks/useMediaQuery.cjs.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +4 -1
- package/dist/hooks/useMediaQuery.js +23 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/useMenuPopover.cjs +2 -0
- package/dist/hooks/useMenuPopover.cjs.map +1 -0
- package/dist/hooks/useMenuPopover.js +64 -0
- package/dist/hooks/useMenuPopover.js.map +1 -0
- package/dist/hooks/usePageHidden.cjs +2 -0
- package/dist/hooks/usePageHidden.cjs.map +1 -0
- package/dist/hooks/usePageHidden.js +23 -0
- package/dist/hooks/usePageHidden.js.map +1 -0
- package/dist/hooks/useReplayPlayback.cjs +2 -0
- package/dist/hooks/useReplayPlayback.cjs.map +1 -0
- package/dist/hooks/useReplayPlayback.d.ts +44 -0
- package/dist/hooks/useReplayPlayback.js +73 -0
- package/dist/hooks/useReplayPlayback.js.map +1 -0
- package/dist/hooks/useResizable.cjs +2 -0
- package/dist/hooks/useResizable.cjs.map +1 -0
- package/dist/hooks/useResizable.js +99 -0
- package/dist/hooks/useResizable.js.map +1 -0
- package/dist/hooks/useSavedQueries.cjs +2 -0
- package/dist/hooks/useSavedQueries.cjs.map +1 -0
- package/dist/hooks/useSavedQueries.js +93 -0
- package/dist/hooks/useSavedQueries.js.map +1 -0
- package/dist/hooks/useScrollProgress.cjs +2 -0
- package/dist/hooks/useScrollProgress.cjs.map +1 -0
- package/dist/hooks/useScrollProgress.d.ts +36 -0
- package/dist/hooks/useScrollProgress.js +64 -0
- package/dist/hooks/useScrollProgress.js.map +1 -0
- package/dist/hooks/useWindowScrolled.cjs +2 -0
- package/dist/hooks/useWindowScrolled.cjs.map +1 -0
- package/dist/hooks/useWindowScrolled.d.ts +2 -0
- package/dist/hooks/useWindowScrolled.js +19 -0
- package/dist/hooks/useWindowScrolled.js.map +1 -0
- package/dist/index.cjs +1 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -8
- package/dist/index.js +319 -12124
- package/dist/index.js.map +1 -1
- package/dist/layouts/PageWrapper.cjs +2 -0
- package/dist/layouts/PageWrapper.cjs.map +1 -0
- package/dist/layouts/PageWrapper.js +14 -0
- package/dist/layouts/PageWrapper.js.map +1 -0
- package/dist/layouts/SkipLink.cjs +2 -0
- package/dist/layouts/SkipLink.cjs.map +1 -0
- package/dist/layouts/SkipLink.d.ts +13 -0
- package/dist/layouts/SkipLink.js +21 -0
- package/dist/layouts/SkipLink.js.map +1 -0
- package/dist/layouts/shell/AegisShell.cjs +2 -0
- package/dist/layouts/shell/AegisShell.cjs.map +1 -0
- package/dist/layouts/shell/AegisShell.d.ts +1 -1
- package/dist/layouts/shell/AegisShell.js +292 -0
- package/dist/layouts/shell/AegisShell.js.map +1 -0
- package/dist/layouts/shell/AppSwitcher.cjs +2 -0
- package/dist/layouts/shell/AppSwitcher.cjs.map +1 -0
- package/dist/layouts/shell/AppSwitcher.js +81 -0
- package/dist/layouts/shell/AppSwitcher.js.map +1 -0
- package/dist/layouts/shell/AuthRequiredCard.cjs +2 -0
- package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -0
- package/dist/layouts/shell/AuthRequiredCard.js +33 -0
- package/dist/layouts/shell/AuthRequiredCard.js.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs +2 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.js +38 -0
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +2 -0
- package/dist/layouts/shell/Sidebar.cjs.map +1 -0
- package/dist/layouts/shell/Sidebar.js +34 -0
- package/dist/layouts/shell/Sidebar.js.map +1 -0
- package/dist/layouts/shell/TopHeader.cjs +2 -0
- package/dist/layouts/shell/TopHeader.cjs.map +1 -0
- package/dist/layouts/shell/TopHeader.js +201 -0
- package/dist/layouts/shell/TopHeader.js.map +1 -0
- package/dist/layouts/shell/activeAppContext.cjs +2 -0
- package/dist/layouts/shell/activeAppContext.cjs.map +1 -0
- package/dist/layouts/shell/activeAppContext.js +17 -0
- package/dist/layouts/shell/activeAppContext.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentContext.js +94 -0
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/context.cjs +2 -0
- package/dist/layouts/shell/environments/context.cjs.map +1 -0
- package/dist/layouts/shell/environments/context.js +6 -0
- package/dist/layouts/shell/environments/context.js.map +1 -0
- package/dist/layouts/shell/environments/hooks.cjs +2 -0
- package/dist/layouts/shell/environments/hooks.cjs.map +1 -0
- package/dist/layouts/shell/environments/hooks.js +24 -0
- package/dist/layouts/shell/environments/hooks.js.map +1 -0
- package/dist/layouts/shell/environments/manifest.cjs +2 -0
- package/dist/layouts/shell/environments/manifest.cjs.map +1 -0
- package/dist/layouts/shell/environments/manifest.js +82 -0
- package/dist/layouts/shell/environments/manifest.js.map +1 -0
- package/dist/layouts/shell/environments/types.cjs +2 -0
- package/dist/layouts/shell/environments/types.cjs.map +1 -0
- package/dist/layouts/shell/environments/types.js +5 -0
- package/dist/layouts/shell/environments/types.js.map +1 -0
- package/dist/layouts/shell/paths.cjs +2 -0
- package/dist/layouts/shell/paths.cjs.map +1 -0
- package/dist/layouts/shell/paths.js +17 -0
- package/dist/layouts/shell/paths.js.map +1 -0
- package/dist/layouts/shell/types.d.ts +10 -2
- package/dist/layouts/shell/useAppNavigate.cjs +2 -0
- package/dist/layouts/shell/useAppNavigate.cjs.map +1 -0
- package/dist/layouts/shell/useAppNavigate.js +25 -0
- package/dist/layouts/shell/useAppNavigate.js.map +1 -0
- package/dist/layouts/site/SiteFooter.cjs +2 -0
- package/dist/layouts/site/SiteFooter.cjs.map +1 -0
- package/dist/layouts/site/SiteFooter.d.ts +27 -0
- package/dist/layouts/site/SiteFooter.js +58 -0
- package/dist/layouts/site/SiteFooter.js.map +1 -0
- package/dist/layouts/site/SiteLayout.cjs +2 -0
- package/dist/layouts/site/SiteLayout.cjs.map +1 -0
- package/dist/layouts/site/SiteLayout.d.ts +18 -0
- package/dist/layouts/site/SiteLayout.js +34 -0
- package/dist/layouts/site/SiteLayout.js.map +1 -0
- package/dist/layouts/site/SiteNav.cjs +2 -0
- package/dist/layouts/site/SiteNav.cjs.map +1 -0
- package/dist/layouts/site/SiteNav.d.ts +31 -0
- package/dist/layouts/site/SiteNav.js +115 -0
- package/dist/layouts/site/SiteNav.js.map +1 -0
- package/dist/layouts/site/SiteSection.cjs +2 -0
- package/dist/layouts/site/SiteSection.cjs.map +1 -0
- package/dist/layouts/site/SiteSection.d.ts +20 -0
- package/dist/layouts/site/SiteSection.js +27 -0
- package/dist/layouts/site/SiteSection.js.map +1 -0
- package/dist/layouts/site/index.d.ts +8 -0
- package/dist/lib/chart.cjs +2 -0
- package/dist/lib/chart.cjs.map +1 -0
- package/dist/lib/chart.d.ts +33 -0
- package/dist/lib/chart.js +47 -0
- package/dist/lib/chart.js.map +1 -0
- package/dist/lib/format.cjs +2 -0
- package/dist/lib/format.cjs.map +1 -0
- package/dist/lib/format.js +13 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/id.cjs +2 -0
- package/dist/lib/id.cjs.map +1 -0
- package/dist/lib/id.js +7 -0
- package/dist/lib/id.js.map +1 -0
- package/dist/lib/luceneQuery/index.d.ts +0 -2
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +3 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +58 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -0
- package/dist/lib/scrollView.cjs +2 -0
- package/dist/lib/scrollView.cjs.map +1 -0
- package/dist/lib/scrollView.d.ts +16 -0
- package/dist/lib/scrollView.js +27 -0
- package/dist/lib/scrollView.js.map +1 -0
- package/dist/lib/storage.cjs +2 -0
- package/dist/lib/storage.cjs.map +1 -0
- package/dist/lib/storage.js +35 -0
- package/dist/lib/storage.js.map +1 -0
- package/dist/lib/timeRange.cjs +2 -0
- package/dist/lib/timeRange.cjs.map +1 -0
- package/dist/lib/timeRange.js +70 -0
- package/dist/lib/timeRange.js.map +1 -0
- package/dist/locale/LocaleProvider.cjs +2 -0
- package/dist/locale/LocaleProvider.cjs.map +1 -0
- package/dist/locale/LocaleProvider.js +9 -0
- package/dist/locale/LocaleProvider.js.map +1 -0
- package/dist/locale/localeContext.cjs +2 -0
- package/dist/locale/localeContext.cjs.map +1 -0
- package/dist/locale/localeContext.js +7 -0
- package/dist/locale/localeContext.js.map +1 -0
- package/dist/locale/strings.cjs +2 -0
- package/dist/locale/strings.cjs.map +1 -0
- package/dist/locale/strings.d.ts +13 -8
- package/dist/locale/strings.js +204 -0
- package/dist/locale/strings.js.map +1 -0
- package/dist/locale/useStrings.cjs +2 -0
- package/dist/locale/useStrings.cjs.map +1 -0
- package/dist/locale/useStrings.js +9 -0
- package/dist/locale/useStrings.js.map +1 -0
- package/dist/notifications/NotificationProvider.cjs +2 -0
- package/dist/notifications/NotificationProvider.cjs.map +1 -0
- package/dist/notifications/NotificationProvider.js +18 -0
- package/dist/notifications/NotificationProvider.js.map +1 -0
- package/dist/notifications/notificationContext.cjs +2 -0
- package/dist/notifications/notificationContext.cjs.map +1 -0
- package/dist/notifications/notificationContext.js +11 -0
- package/dist/notifications/notificationContext.js.map +1 -0
- package/dist/notifications/useNotifications.cjs +2 -0
- package/dist/notifications/useNotifications.cjs.map +1 -0
- package/dist/notifications/useNotifications.js +9 -0
- package/dist/notifications/useNotifications.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +2 -0
- package/dist/theme/ThemeProvider.cjs.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -1
- package/dist/theme/ThemeProvider.js +62 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/antdTheme.cjs +2 -0
- package/dist/theme/antdTheme.cjs.map +1 -0
- package/dist/theme/antdTheme.js +230 -0
- package/dist/theme/antdTheme.js.map +1 -0
- package/dist/theme/themeContext.cjs +2 -0
- package/dist/theme/themeContext.cjs.map +1 -0
- package/dist/theme/themeContext.js +6 -0
- package/dist/theme/themeContext.js.map +1 -0
- package/dist/theme/themeInitScript.cjs +2 -0
- package/dist/theme/themeInitScript.cjs.map +1 -0
- package/dist/theme/themeInitScript.d.ts +10 -0
- package/dist/theme/themeInitScript.js +16 -0
- package/dist/theme/themeInitScript.js.map +1 -0
- package/dist/theme/useTheme.cjs +2 -0
- package/dist/theme/useTheme.cjs.map +1 -0
- package/dist/theme/useTheme.js +12 -0
- package/dist/theme/useTheme.js.map +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.cjs +2 -0
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -0
- package/dist/{agent → transports/agentm}/AgentmChannelProvider.d.ts +2 -2
- package/dist/transports/agentm/AgentmChannelProvider.js +193 -0
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -0
- package/dist/transports/agentm/agentmChannelClient.cjs +2 -0
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -0
- package/dist/transports/agentm/agentmChannelClient.js +279 -0
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -0
- package/dist/transports/bridge.cjs +2 -0
- package/dist/transports/bridge.cjs.map +1 -0
- package/dist/transports/bridge.d.ts +17 -0
- package/dist/transports/bridge.js +143 -0
- package/dist/transports/bridge.js.map +1 -0
- package/dist/transports/index.d.ts +5 -0
- package/dist/transports.cjs +2 -0
- package/dist/transports.cjs.map +1 -0
- package/dist/transports.js +10 -0
- package/dist/transports.js.map +1 -0
- package/package.json +6 -2
- package/dist/agent/AegisAgentProvider.d.ts +0 -35
- package/dist/agent/aegisAgentContext.d.ts +0 -6
- package/dist/agent/useAgent.d.ts +0 -7
- package/dist/components/ui/SessionRunView.d.ts +0 -50
- package/dist/lib/luceneQuery/compile.d.ts +0 -29
- package/dist/lib/luceneQuery/lucene.d.ts +0 -63
- /package/dist/agent/{AskOverlay.d.ts → ask/AskOverlay.d.ts} +0 -0
- /package/dist/agent/{hooks.d.ts → core/hooks.d.ts} +0 -0
- /package/dist/agent/{mcpToolCatalogue.d.ts → core/mcpToolCatalogue.d.ts} +0 -0
- /package/dist/agent/{types.d.ts → core/types.d.ts} +0 -0
- /package/dist/agent/{usePrimitiveSurface.d.ts → core/usePrimitiveSurface.d.ts} +0 -0
- /package/dist/{agent → transports/agentm}/agentmChannelClient.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageSizeSelect.cjs","sources":["../../../src/components/ui/PageSizeSelect.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { DownOutlined } from '@ant-design/icons';\nimport { Popover } from 'antd';\n\nimport { MENU_OVERFLOW, useMenuPopover } from '../../hooks/useMenuPopover';\nimport { useStrings } from '../../locale';\nimport './PageSizeSelect.css';\n\nexport interface PageSizeSelectProps {\n value: number;\n onChange: (next: number) => void;\n options?: number[];\n disabled?: boolean;\n /** Defaults to the locale's \"rows per page\"; pass '' to hide the caption. */\n label?: string;\n className?: string;\n /**\n * Preferred side for the options panel. Default is 'top' because the\n * primitive was originally used as a pagination footer where the table\n * content is above; use 'bottom' when the trigger sits at the top of a\n * section. The panel flips when the preferred side has no room.\n */\n placement?: 'top' | 'bottom';\n}\n\nconst DEFAULT_OPTIONS: readonly number[] = [10, 20, 50, 100];\n\nexport function PageSizeSelect({\n value,\n onChange,\n options = DEFAULT_OPTIONS as number[],\n disabled = false,\n label: labelProp,\n className,\n placement = 'top',\n}: PageSizeSelectProps): ReactElement {\n const strings = useStrings();\n const label = labelProp ?? strings.rowsPerPage;\n const labelId = useId();\n const menu = useMenuPopover<HTMLUListElement>();\n\n const cls = ['aegis-page-size-select', className ?? '']\n .filter(Boolean)\n .join(' ');\n\n const pickOption = (next: number): void => {\n menu.close();\n if (next !== value) {\n onChange(next);\n }\n };\n\n const panel = (\n <ul\n ref={menu.panelRef}\n className=\"aegis-page-size-select__panel\"\n role=\"listbox\"\n tabIndex={-1}\n onKeyDown={menu.onPanelKeyDown}\n >\n {options.map((opt) => {\n const selected = opt === value;\n return (\n <li key={opt} role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n aria-selected={selected}\n className={[\n 'aegis-page-size-select__item',\n selected ? 'aegis-page-size-select__item--selected' : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => {\n pickOption(opt);\n }}\n >\n <span className=\"aegis-page-size-select__item-value\">{opt}</span>\n </button>\n </li>\n );\n })}\n </ul>\n );\n\n return (\n <div className={cls}>\n {label && (\n <span className=\"aegis-page-size-select__label\" id={labelId}>\n {label}\n </span>\n )}\n <Popover\n content={panel}\n trigger=\"click\"\n open={disabled ? false : menu.open}\n onOpenChange={menu.setOpen}\n placement={placement === 'top' ? 'topRight' : 'bottomRight'}\n autoAdjustOverflow={MENU_OVERFLOW}\n arrow={false}\n classNames={{ root: 'aegis-page-size-select__overlay' }}\n destroyOnHidden\n >\n <button\n ref={menu.triggerRef}\n type=\"button\"\n className=\"aegis-page-size-select__trigger\"\n aria-haspopup=\"listbox\"\n aria-expanded={menu.open}\n aria-labelledby={label ? labelId : undefined}\n aria-label={!label ? 'Page size' : undefined}\n disabled={disabled}\n onKeyDown={menu.onTriggerKeyDown}\n >\n <span className=\"aegis-page-size-select__value\">{value}</span>\n <DownOutlined className=\"aegis-page-size-select__caret\" aria-hidden />\n </button>\n </Popover>\n </div>\n );\n}\n"],"names":["DEFAULT_OPTIONS","PageSizeSelect","value","onChange","options","disabled","labelProp","className","placement","strings","useStrings","label","labelId","useId","menu","useMenuPopover","cls","pickOption","next","panel","jsx","opt","selected","jsxs","Popover","MENU_OVERFLOW","DownOutlined"],"mappings":"wTA0BMA,EAAqC,CAAC,GAAI,GAAI,GAAI,GAAG,EAEpD,SAASC,EAAe,CAC7B,MAAAC,EACA,SAAAC,EACA,QAAAC,EAAUJ,EACV,SAAAK,EAAW,GACX,MAAOC,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V,KAAK,SACL,UAAU,kCACV,gBAAc,UACd,gBAAeA,EAAK,KACpB,kBAAiBH,EAAQC,EAAU,OACnC,aAAaD,EAAsB,OAAd,YACrB,SAAAN,EACA,UAAWS,EAAK,iBAEhB,SAAA,CAAAM,EAAAA,IAAC,OAAA,CAAK,UAAU,gCAAiC,SAAAlB,EAAM,EACvDkB,EAAAA,IAACM,EAAAA,aAAA,CAAa,UAAU,gCAAgC,cAAW,EAAA,CAAC,CAAA,CAAA,CAAA,CACtE,CAAA,CACF,EACF,CAEJ"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as s, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useId as h } from "react";
|
|
3
|
+
import { DownOutlined as z } from "@ant-design/icons";
|
|
4
|
+
import { Popover as N } from "antd";
|
|
5
|
+
import { useMenuPopover as O, MENU_OVERFLOW as y } from "../../hooks/useMenuPopover.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { useStrings as w } from "../../locale/useStrings.js";
|
|
8
|
+
const P = [10, 20, 50, 100];
|
|
9
|
+
function S({
|
|
10
|
+
value: o,
|
|
11
|
+
onChange: c,
|
|
12
|
+
options: p = P,
|
|
13
|
+
disabled: t = !1,
|
|
14
|
+
label: g,
|
|
15
|
+
className: m,
|
|
16
|
+
placement: d = "top"
|
|
17
|
+
}) {
|
|
18
|
+
const _ = w(), i = g ?? _.rowsPerPage, l = h(), e = O(), u = ["aegis-page-size-select", m ?? ""].filter(Boolean).join(" "), f = (a) => {
|
|
19
|
+
e.close(), a !== o && c(a);
|
|
20
|
+
}, b = /* @__PURE__ */ s(
|
|
21
|
+
"ul",
|
|
22
|
+
{
|
|
23
|
+
ref: e.panelRef,
|
|
24
|
+
className: "aegis-page-size-select__panel",
|
|
25
|
+
role: "listbox",
|
|
26
|
+
tabIndex: -1,
|
|
27
|
+
onKeyDown: e.onPanelKeyDown,
|
|
28
|
+
children: p.map((a) => {
|
|
29
|
+
const n = a === o;
|
|
30
|
+
return /* @__PURE__ */ s("li", { role: "presentation", children: /* @__PURE__ */ s(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
type: "button",
|
|
34
|
+
role: "option",
|
|
35
|
+
"aria-selected": n,
|
|
36
|
+
className: [
|
|
37
|
+
"aegis-page-size-select__item",
|
|
38
|
+
n ? "aegis-page-size-select__item--selected" : ""
|
|
39
|
+
].filter(Boolean).join(" "),
|
|
40
|
+
onClick: () => {
|
|
41
|
+
f(a);
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ s("span", { className: "aegis-page-size-select__item-value", children: a })
|
|
44
|
+
}
|
|
45
|
+
) }, a);
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
return /* @__PURE__ */ r("div", { className: u, children: [
|
|
50
|
+
i && /* @__PURE__ */ s("span", { className: "aegis-page-size-select__label", id: l, children: i }),
|
|
51
|
+
/* @__PURE__ */ s(
|
|
52
|
+
N,
|
|
53
|
+
{
|
|
54
|
+
content: b,
|
|
55
|
+
trigger: "click",
|
|
56
|
+
open: t ? !1 : e.open,
|
|
57
|
+
onOpenChange: e.setOpen,
|
|
58
|
+
placement: d === "top" ? "topRight" : "bottomRight",
|
|
59
|
+
autoAdjustOverflow: y,
|
|
60
|
+
arrow: !1,
|
|
61
|
+
classNames: { root: "aegis-page-size-select__overlay" },
|
|
62
|
+
destroyOnHidden: !0,
|
|
63
|
+
children: /* @__PURE__ */ r(
|
|
64
|
+
"button",
|
|
65
|
+
{
|
|
66
|
+
ref: e.triggerRef,
|
|
67
|
+
type: "button",
|
|
68
|
+
className: "aegis-page-size-select__trigger",
|
|
69
|
+
"aria-haspopup": "listbox",
|
|
70
|
+
"aria-expanded": e.open,
|
|
71
|
+
"aria-labelledby": i ? l : void 0,
|
|
72
|
+
"aria-label": i ? void 0 : "Page size",
|
|
73
|
+
disabled: t,
|
|
74
|
+
onKeyDown: e.onTriggerKeyDown,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ s("span", { className: "aegis-page-size-select__value", children: o }),
|
|
77
|
+
/* @__PURE__ */ s(z, { className: "aegis-page-size-select__caret", "aria-hidden": !0 })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
S as PageSizeSelect
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=PageSizeSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageSizeSelect.js","sources":["../../../src/components/ui/PageSizeSelect.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { DownOutlined } from '@ant-design/icons';\nimport { Popover } from 'antd';\n\nimport { MENU_OVERFLOW, useMenuPopover } from '../../hooks/useMenuPopover';\nimport { useStrings } from '../../locale';\nimport './PageSizeSelect.css';\n\nexport interface PageSizeSelectProps {\n value: number;\n onChange: (next: number) => void;\n options?: number[];\n disabled?: boolean;\n /** Defaults to the locale's \"rows per page\"; pass '' to hide the caption. */\n label?: string;\n className?: string;\n /**\n * Preferred side for the options panel. Default is 'top' because the\n * primitive was originally used as a pagination footer where the table\n * content is above; use 'bottom' when the trigger sits at the top of a\n * section. The panel flips when the preferred side has no room.\n */\n placement?: 'top' | 'bottom';\n}\n\nconst DEFAULT_OPTIONS: readonly number[] = [10, 20, 50, 100];\n\nexport function PageSizeSelect({\n value,\n onChange,\n options = DEFAULT_OPTIONS as number[],\n disabled = false,\n label: labelProp,\n className,\n placement = 'top',\n}: PageSizeSelectProps): ReactElement {\n const strings = useStrings();\n const label = labelProp ?? strings.rowsPerPage;\n const labelId = useId();\n const menu = useMenuPopover<HTMLUListElement>();\n\n const cls = ['aegis-page-size-select', className ?? '']\n .filter(Boolean)\n .join(' ');\n\n const pickOption = (next: number): void => {\n menu.close();\n if (next !== value) {\n onChange(next);\n }\n };\n\n const panel = (\n <ul\n ref={menu.panelRef}\n className=\"aegis-page-size-select__panel\"\n role=\"listbox\"\n tabIndex={-1}\n onKeyDown={menu.onPanelKeyDown}\n >\n {options.map((opt) => {\n const selected = opt === value;\n return (\n <li key={opt} role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n aria-selected={selected}\n className={[\n 'aegis-page-size-select__item',\n selected ? 'aegis-page-size-select__item--selected' : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => {\n pickOption(opt);\n }}\n >\n <span className=\"aegis-page-size-select__item-value\">{opt}</span>\n </button>\n </li>\n );\n })}\n </ul>\n );\n\n return (\n <div className={cls}>\n {label && (\n <span className=\"aegis-page-size-select__label\" id={labelId}>\n {label}\n </span>\n )}\n <Popover\n content={panel}\n trigger=\"click\"\n open={disabled ? false : menu.open}\n onOpenChange={menu.setOpen}\n placement={placement === 'top' ? 'topRight' : 'bottomRight'}\n autoAdjustOverflow={MENU_OVERFLOW}\n arrow={false}\n classNames={{ root: 'aegis-page-size-select__overlay' }}\n destroyOnHidden\n >\n <button\n ref={menu.triggerRef}\n type=\"button\"\n className=\"aegis-page-size-select__trigger\"\n aria-haspopup=\"listbox\"\n aria-expanded={menu.open}\n aria-labelledby={label ? labelId : undefined}\n aria-label={!label ? 'Page size' : undefined}\n disabled={disabled}\n onKeyDown={menu.onTriggerKeyDown}\n >\n <span className=\"aegis-page-size-select__value\">{value}</span>\n <DownOutlined className=\"aegis-page-size-select__caret\" aria-hidden />\n </button>\n </Popover>\n </div>\n );\n}\n"],"names":["DEFAULT_OPTIONS","PageSizeSelect","value","onChange","options","disabled","labelProp","className","placement","strings","useStrings","label","labelId","useId","menu","useMenuPopover","cls","pickOption","next","panel","jsx","opt","selected","jsxs","Popover","MENU_OVERFLOW","DownOutlined"],"mappings":";;;;;;;AA0BA,MAAMA,IAAqC,CAAC,IAAI,IAAI,IAAI,GAAG;AAEpD,SAASC,EAAe;AAAA,EAC7B,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAUJ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,SAASL;AAAA,QACT,SAAQ;AAAA,QACR,MAAMd,IAAW,KAAQS,EAAK;AAAA,QAC9B,cAAcA,EAAK;AAAA,QACnB,WAAWN,MAAc,QAAQ,aAAa;AAAA,QAC9C,oBAAoBiB;AAAA,QACpB,OAAO;AAAA,QACP,YAAY,EAAE,MAAM,kCAAA;AAAA,QACpB,iBAAe;AAAA,QAEf,UAAA,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAKT,EAAK;AAAA,YACV,MAAK;AAAA,YACL,WAAU;AAAA,YACV,iBAAc;AAAA,YACd,iBAAeA,EAAK;AAAA,YACpB,mBAAiBH,IAAQC,IAAU;AAAA,YACnC,cAAaD,IAAsB,SAAd;AAAA,YACrB,UAAAN;AAAA,YACA,WAAWS,EAAK;AAAA,YAEhB,UAAA;AAAA,cAAA,gBAAAM,EAAC,QAAA,EAAK,WAAU,iCAAiC,UAAAlB,GAAM;AAAA,cACvD,gBAAAkB,EAACM,GAAA,EAAa,WAAU,iCAAgC,eAAW,GAAA,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACtE;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("./Button.cjs"),j=require("./PageSizeSelect.cjs");;/* empty css */const x=require("../../locale/useStrings.cjs");function P({page:e,pageSize:t,total:o=0,onChange:s,pageSizeOptions:c,unit:l,className:u}){const i=x.useStrings(),r=Math.max(1,Math.ceil(o/t)),d=["aegis-pagination",u??""].filter(Boolean).join(" ");return n.jsxs("div",{className:d,children:[n.jsx("span",{className:"aegis-pagination__count",children:i.totalCount(o,l??i.recordsUnit)}),n.jsx(j.PageSizeSelect,{value:t,options:c,onChange:g=>{s(1,g)}}),n.jsx(a.Button,{tone:"secondary",disabled:e<=1,onClick:()=>{s(e-1,t)},children:i.previousPage}),n.jsx("span",{className:"aegis-pagination__page",children:`${String(e)} / ${String(r)}`}),n.jsx(a.Button,{tone:"secondary",disabled:e>=r,onClick:()=>{s(e+1,t)},children:i.nextPage})]})}exports.Pagination=P;
|
|
2
|
+
//# sourceMappingURL=Pagination.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.cjs","sources":["../../../src/components/ui/Pagination.tsx"],"sourcesContent":["import { useStrings } from '../../locale';\nimport { Button } from './Button';\nimport { PageSizeSelect } from './PageSizeSelect';\nimport './Pagination.css';\n\ninterface PaginationProps {\n page: number;\n pageSize: number;\n /** Optional so a `DataTablePagination` can be spread straight in. */\n total?: number;\n onChange: (page: number, pageSize: number) => void;\n pageSizeOptions?: number[];\n /** Noun used in the total count, e.g. \"steps\"; defaults to the locale's records unit. */\n unit?: string;\n className?: string;\n}\n\nexport function Pagination({\n page,\n pageSize,\n total = 0,\n onChange,\n pageSizeOptions,\n unit,\n className,\n}: PaginationProps) {\n const strings = useStrings();\n const pages = Math.max(1, Math.ceil(total / pageSize));\n const cls = ['aegis-pagination', className ?? ''].filter(Boolean).join(' ');\n return (\n <div className={cls}>\n <span className=\"aegis-pagination__count\">\n {strings.totalCount(total, unit ?? strings.recordsUnit)}\n </span>\n <PageSizeSelect\n value={pageSize}\n options={pageSizeOptions}\n onChange={(size) => {\n onChange(1, size);\n }}\n />\n <Button\n tone=\"secondary\"\n disabled={page <= 1}\n onClick={() => {\n onChange(page - 1, pageSize);\n }}\n >\n {strings.previousPage}\n </Button>\n <span className=\"aegis-pagination__page\">{`${String(page)} / ${String(pages)}`}</span>\n <Button\n tone=\"secondary\"\n disabled={page >= pages}\n onClick={() => {\n onChange(page + 1, pageSize);\n }}\n >\n {strings.nextPage}\n </Button>\n </div>\n );\n}\n"],"names":["Pagination","page","pageSize","total","onChange","pageSizeOptions","unit","className","strings","useStrings","pages","cls","jsxs","jsx","PageSizeSelect","size","Button"],"mappings":"gQAiBO,SAASA,EAAW,CACzB,KAAAC,EACA,SAAAC,EACA,MAAAC,EAAQ,EACR,SAAAC,EACA,gBAAAC,EACA,KAAAC,EACA,UAAAC,CACF,EAAoB,CAClB,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EAAQ,KAAK,IAAI,EAAG,KAAK,KAAKP,EAAQD,CAAQ,CAAC,EAC/CS,EAAM,CAAC,mBAAoBJ,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAC1E,OACEK,EAAAA,KAAC,MAAA,CAAI,UAAWD,EACd,SAAA,CAAAE,EAAAA,IAAC,OAAA,CAAK,UAAU,0BACb,SAAAL,EAAQ,WAAWL,EAAOG,GAAQE,EAAQ,WAAW,CAAA,CACxD,EACAK,EAAAA,IAACC,EAAAA,eAAA,CACC,MAAOZ,EACP,QAASG,EACT,SAAWU,GAAS,CAClBX,EAAS,EAAGW,CAAI,CAClB,CAAA,CAAA,EAEFF,EAAAA,IAACG,EAAAA,OAAA,CACC,KAAK,YACL,SAAUf,GAAQ,EAClB,QAAS,IAAM,CACbG,EAASH,EAAO,EAAGC,CAAQ,CAC7B,EAEC,SAAAM,EAAQ,YAAA,CAAA,EAEXK,EAAAA,IAAC,OAAA,CAAK,UAAU,yBAA0B,SAAA,GAAG,OAAOZ,CAAI,CAAC,MAAM,OAAOS,CAAK,CAAC,EAAA,CAAG,EAC/EG,EAAAA,IAACG,EAAAA,OAAA,CACC,KAAK,YACL,SAAUf,GAAQS,EAClB,QAAS,IAAM,CACbN,EAASH,EAAO,EAAGC,CAAQ,CAC7B,EAEC,SAAAM,EAAQ,QAAA,CAAA,CACX,EACF,CAEJ"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Button as e } from "./Button.js";
|
|
3
|
+
import { PageSizeSelect as u } from "./PageSizeSelect.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { useStrings as f } from "../../locale/useStrings.js";
|
|
6
|
+
function v({
|
|
7
|
+
page: n,
|
|
8
|
+
pageSize: o,
|
|
9
|
+
total: r = 0,
|
|
10
|
+
onChange: s,
|
|
11
|
+
pageSizeOptions: c,
|
|
12
|
+
unit: l,
|
|
13
|
+
className: d
|
|
14
|
+
}) {
|
|
15
|
+
const t = f(), a = Math.max(1, Math.ceil(r / o)), m = ["aegis-pagination", d ?? ""].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ p("div", { className: m, children: [
|
|
17
|
+
/* @__PURE__ */ i("span", { className: "aegis-pagination__count", children: t.totalCount(r, l ?? t.recordsUnit) }),
|
|
18
|
+
/* @__PURE__ */ i(
|
|
19
|
+
u,
|
|
20
|
+
{
|
|
21
|
+
value: o,
|
|
22
|
+
options: c,
|
|
23
|
+
onChange: (g) => {
|
|
24
|
+
s(1, g);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ i(
|
|
29
|
+
e,
|
|
30
|
+
{
|
|
31
|
+
tone: "secondary",
|
|
32
|
+
disabled: n <= 1,
|
|
33
|
+
onClick: () => {
|
|
34
|
+
s(n - 1, o);
|
|
35
|
+
},
|
|
36
|
+
children: t.previousPage
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ i("span", { className: "aegis-pagination__page", children: `${String(n)} / ${String(a)}` }),
|
|
40
|
+
/* @__PURE__ */ i(
|
|
41
|
+
e,
|
|
42
|
+
{
|
|
43
|
+
tone: "secondary",
|
|
44
|
+
disabled: n >= a,
|
|
45
|
+
onClick: () => {
|
|
46
|
+
s(n + 1, o);
|
|
47
|
+
},
|
|
48
|
+
children: t.nextPage
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] });
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
v as Pagination
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=Pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.js","sources":["../../../src/components/ui/Pagination.tsx"],"sourcesContent":["import { useStrings } from '../../locale';\nimport { Button } from './Button';\nimport { PageSizeSelect } from './PageSizeSelect';\nimport './Pagination.css';\n\ninterface PaginationProps {\n page: number;\n pageSize: number;\n /** Optional so a `DataTablePagination` can be spread straight in. */\n total?: number;\n onChange: (page: number, pageSize: number) => void;\n pageSizeOptions?: number[];\n /** Noun used in the total count, e.g. \"steps\"; defaults to the locale's records unit. */\n unit?: string;\n className?: string;\n}\n\nexport function Pagination({\n page,\n pageSize,\n total = 0,\n onChange,\n pageSizeOptions,\n unit,\n className,\n}: PaginationProps) {\n const strings = useStrings();\n const pages = Math.max(1, Math.ceil(total / pageSize));\n const cls = ['aegis-pagination', className ?? ''].filter(Boolean).join(' ');\n return (\n <div className={cls}>\n <span className=\"aegis-pagination__count\">\n {strings.totalCount(total, unit ?? strings.recordsUnit)}\n </span>\n <PageSizeSelect\n value={pageSize}\n options={pageSizeOptions}\n onChange={(size) => {\n onChange(1, size);\n }}\n />\n <Button\n tone=\"secondary\"\n disabled={page <= 1}\n onClick={() => {\n onChange(page - 1, pageSize);\n }}\n >\n {strings.previousPage}\n </Button>\n <span className=\"aegis-pagination__page\">{`${String(page)} / ${String(pages)}`}</span>\n <Button\n tone=\"secondary\"\n disabled={page >= pages}\n onClick={() => {\n onChange(page + 1, pageSize);\n }}\n >\n {strings.nextPage}\n </Button>\n </div>\n );\n}\n"],"names":["Pagination","page","pageSize","total","onChange","pageSizeOptions","unit","className","strings","useStrings","pages","cls","jsxs","jsx","PageSizeSelect","size","Button"],"mappings":";;;;;AAiBO,SAASA,EAAW;AAAA,EACzB,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AACF,GAAoB;AAClB,QAAMC,IAAUC,EAAA,GACVC,IAAQ,KAAK,IAAI,GAAG,KAAK,KAAKP,IAAQD,CAAQ,CAAC,GAC/CS,IAAM,CAAC,oBAAoBJ,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC1E,SACE,gBAAAK,EAAC,OAAA,EAAI,WAAWD,GACd,UAAA;AAAA,IAAA,gBAAAE,EAAC,QAAA,EAAK,WAAU,2BACb,UAAAL,EAAQ,WAAWL,GAAOG,KAAQE,EAAQ,WAAW,EAAA,CACxD;AAAA,IACA,gBAAAK;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAOZ;AAAA,QACP,SAASG;AAAA,QACT,UAAU,CAACU,MAAS;AAClB,UAAAX,EAAS,GAAGW,CAAI;AAAA,QAClB;AAAA,MAAA;AAAA,IAAA;AAAA,IAEF,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAUf,KAAQ;AAAA,QAClB,SAAS,MAAM;AACb,UAAAG,EAASH,IAAO,GAAGC,CAAQ;AAAA,QAC7B;AAAA,QAEC,UAAAM,EAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,IAEX,gBAAAK,EAAC,QAAA,EAAK,WAAU,0BAA0B,UAAA,GAAG,OAAOZ,CAAI,CAAC,MAAM,OAAOS,CAAK,CAAC,GAAA,CAAG;AAAA,IAC/E,gBAAAG;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAUf,KAAQS;AAAA,QAClB,SAAS,MAAM;AACb,UAAAN,EAASH,IAAO,GAAGC,CAAQ;AAAA,QAC7B;AAAA,QAEC,UAAAM,EAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EACX,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),N=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */const k=require("./linkComponent.cjs");function q({title:s,description:a,extra:n,variant:t="solid",elevation:c="rest",padded:d=!0,to:i,linkComponent:p,className:u,style:g,children:_,surface:m}){const l=x.useRef(null),h=N.usePrimitiveSurface(m,null,"panel",l),j=p??k.DefaultLink,f=["aegis-panel",`aegis-panel--${t}`,`aegis-panel--${c}`,i===void 0?"":"aegis-panel--link",u??""].filter(Boolean).join(" "),v=!!(s??n??a),r=typeof s=="string"?e.jsx("span",{className:"aegis-panel__title",children:s}):s,o=i===void 0?r:e.jsx(j,{to:i,className:"aegis-panel__link",children:r});return e.jsxs("section",{ref:l,className:f,style:g,...h,children:[v&&e.jsxs("header",{className:"aegis-panel__header",children:[a===void 0?o:e.jsxs("div",{className:"aegis-panel__heading",children:[o,e.jsx("span",{className:"aegis-panel__description",children:a})]}),n&&e.jsx("div",{className:"aegis-panel__extra",children:n})]}),e.jsx("div",{className:`aegis-panel__body${d?" aegis-panel__body--padded":""}`,children:_})]})}exports.Panel=q;
|
|
2
|
+
//# sourceMappingURL=Panel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.cjs","sources":["../../../src/components/ui/Panel.tsx"],"sourcesContent":["import { type CSSProperties, type ReactNode, useRef } from 'react';\n\nimport {\n type ContainerSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './Panel.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\n\nexport type PanelSurface = ContainerSurface;\n\n/**\n * `tint` for showcase blocks on overview and article pages, `brand` for\n * featured content, `glass` for a panel laid over a gradient or image.\n */\nexport type PanelVariant = 'solid' | 'tint' | 'brand' | 'glass';\n\n/** `raised` lifts featured and hero cards above the resting cards. */\nexport type PanelElevation = 'rest' | 'raised';\n\ninterface PanelBaseProps {\n /** Muted line under the title, e.g. a chart's metric and direction. */\n description?: ReactNode;\n extra?: ReactNode;\n variant?: PanelVariant;\n elevation?: PanelElevation;\n /** False drops the body padding, e.g. for a table that fills the panel. */\n padded?: boolean;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n surface?: PanelSurface;\n}\n\ninterface PanelStaticProps extends PanelBaseProps {\n title?: ReactNode;\n to?: undefined;\n linkComponent?: undefined;\n}\n\ninterface PanelLinkProps extends PanelBaseProps {\n /** The link's text; the link covers the whole panel. */\n title: ReactNode;\n /**\n * Destination; the panel lifts on hover. Controls belong in `extra`,\n * which stays clickable above the link; the body is part of the link.\n */\n to: string;\n /** Renders the link. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n}\n\ntype PanelProps = PanelStaticProps | PanelLinkProps;\n\nexport function Panel({\n title,\n description,\n extra,\n variant = 'solid',\n elevation = 'rest',\n padded = true,\n to,\n linkComponent,\n className,\n style,\n children,\n surface,\n}: PanelProps) {\n const wrapRef = useRef<HTMLElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, null, 'panel', wrapRef);\n const LinkImpl = linkComponent ?? DefaultLink;\n const rootClass = [\n 'aegis-panel',\n `aegis-panel--${variant}`,\n `aegis-panel--${elevation}`,\n to === undefined ? '' : 'aegis-panel--link',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const showHeader = Boolean(title ?? extra ?? description);\n const titleText =\n typeof title === 'string' ? (\n <span className=\"aegis-panel__title\">{title}</span>\n ) : (\n title\n );\n const titleNode =\n to === undefined ? (\n titleText\n ) : (\n <LinkImpl to={to} className=\"aegis-panel__link\">\n {titleText}\n </LinkImpl>\n );\n\n return (\n <section ref={wrapRef} className={rootClass} style={style} {...agentAttrs}>\n {showHeader && (\n <header className=\"aegis-panel__header\">\n {description === undefined ? (\n titleNode\n ) : (\n <div className=\"aegis-panel__heading\">\n {titleNode}\n <span className=\"aegis-panel__description\">{description}</span>\n </div>\n )}\n {extra && <div className=\"aegis-panel__extra\">{extra}</div>}\n </header>\n )}\n <div\n className={`aegis-panel__body${padded ? ' aegis-panel__body--padded' : ''}`}\n >\n {children}\n </div>\n </section>\n );\n}\n"],"names":["Panel","title","description","extra","variant","elevation","padded","to","linkComponent","className","style","children","surface","wrapRef","useRef","agentAttrs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AA,CACH,EACF,CAEJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { ContainerSurface } from '../../agent/usePrimitiveSurface';
|
|
2
|
+
import { ContainerSurface } from '../../agent/core/usePrimitiveSurface';
|
|
3
3
|
import { LinkComponent } from './linkComponent';
|
|
4
4
|
export type PanelSurface = ContainerSurface;
|
|
5
5
|
/**
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as j } from "react";
|
|
3
|
+
import { usePrimitiveSurface as x } from "../../agent/core/usePrimitiveSurface.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { DefaultLink as y } from "./linkComponent.js";
|
|
6
|
+
function P({
|
|
7
|
+
title: a,
|
|
8
|
+
description: s,
|
|
9
|
+
extra: n,
|
|
10
|
+
variant: p = "solid",
|
|
11
|
+
elevation: t = "rest",
|
|
12
|
+
padded: d = !0,
|
|
13
|
+
to: i,
|
|
14
|
+
linkComponent: m,
|
|
15
|
+
className: _,
|
|
16
|
+
style: g,
|
|
17
|
+
children: f,
|
|
18
|
+
surface: h
|
|
19
|
+
}) {
|
|
20
|
+
const o = j(null), u = x(h, null, "panel", o), N = m ?? y, v = [
|
|
21
|
+
"aegis-panel",
|
|
22
|
+
`aegis-panel--${p}`,
|
|
23
|
+
`aegis-panel--${t}`,
|
|
24
|
+
i === void 0 ? "" : "aegis-panel--link",
|
|
25
|
+
_ ?? ""
|
|
26
|
+
].filter(Boolean).join(" "), k = !!(a ?? n ?? s), r = typeof a == "string" ? /* @__PURE__ */ e("span", { className: "aegis-panel__title", children: a }) : a, c = i === void 0 ? r : /* @__PURE__ */ e(N, { to: i, className: "aegis-panel__link", children: r });
|
|
27
|
+
return /* @__PURE__ */ l("section", { ref: o, className: v, style: g, ...u, children: [
|
|
28
|
+
k && /* @__PURE__ */ l("header", { className: "aegis-panel__header", children: [
|
|
29
|
+
s === void 0 ? c : /* @__PURE__ */ l("div", { className: "aegis-panel__heading", children: [
|
|
30
|
+
c,
|
|
31
|
+
/* @__PURE__ */ e("span", { className: "aegis-panel__description", children: s })
|
|
32
|
+
] }),
|
|
33
|
+
n && /* @__PURE__ */ e("div", { className: "aegis-panel__extra", children: n })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: `aegis-panel__body${d ? " aegis-panel__body--padded" : ""}`,
|
|
39
|
+
children: f
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
P as Panel
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../src/components/ui/Panel.tsx"],"sourcesContent":["import { type CSSProperties, type ReactNode, useRef } from 'react';\n\nimport {\n type ContainerSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './Panel.css';\nimport { DefaultLink, type LinkComponent } from './linkComponent';\n\nexport type PanelSurface = ContainerSurface;\n\n/**\n * `tint` for showcase blocks on overview and article pages, `brand` for\n * featured content, `glass` for a panel laid over a gradient or image.\n */\nexport type PanelVariant = 'solid' | 'tint' | 'brand' | 'glass';\n\n/** `raised` lifts featured and hero cards above the resting cards. */\nexport type PanelElevation = 'rest' | 'raised';\n\ninterface PanelBaseProps {\n /** Muted line under the title, e.g. a chart's metric and direction. */\n description?: ReactNode;\n extra?: ReactNode;\n variant?: PanelVariant;\n elevation?: PanelElevation;\n /** False drops the body padding, e.g. for a table that fills the panel. */\n padded?: boolean;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n surface?: PanelSurface;\n}\n\ninterface PanelStaticProps extends PanelBaseProps {\n title?: ReactNode;\n to?: undefined;\n linkComponent?: undefined;\n}\n\ninterface PanelLinkProps extends PanelBaseProps {\n /** The link's text; the link covers the whole panel. */\n title: ReactNode;\n /**\n * Destination; the panel lifts on hover. Controls belong in `extra`,\n * which stays clickable above the link; the body is part of the link.\n */\n to: string;\n /** Renders the link. Defaults to an `<a href>`; routed apps pass their Link adapter. */\n linkComponent?: LinkComponent;\n}\n\ntype PanelProps = PanelStaticProps | PanelLinkProps;\n\nexport function Panel({\n title,\n description,\n extra,\n variant = 'solid',\n elevation = 'rest',\n padded = true,\n to,\n linkComponent,\n className,\n style,\n children,\n surface,\n}: PanelProps) {\n const wrapRef = useRef<HTMLElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, null, 'panel', wrapRef);\n const LinkImpl = linkComponent ?? DefaultLink;\n const rootClass = [\n 'aegis-panel',\n `aegis-panel--${variant}`,\n `aegis-panel--${elevation}`,\n to === undefined ? '' : 'aegis-panel--link',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const showHeader = Boolean(title ?? extra ?? description);\n const titleText =\n typeof title === 'string' ? (\n <span className=\"aegis-panel__title\">{title}</span>\n ) : (\n title\n );\n const titleNode =\n to === undefined ? (\n titleText\n ) : (\n <LinkImpl to={to} className=\"aegis-panel__link\">\n {titleText}\n </LinkImpl>\n );\n\n return (\n <section ref={wrapRef} className={rootClass} style={style} {...agentAttrs}>\n {showHeader && (\n <header className=\"aegis-panel__header\">\n {description === undefined ? (\n titleNode\n ) : (\n <div className=\"aegis-panel__heading\">\n {titleNode}\n <span className=\"aegis-panel__description\">{description}</span>\n </div>\n )}\n {extra && <div className=\"aegis-panel__extra\">{extra}</div>}\n </header>\n )}\n <div\n className={`aegis-panel__body${padded ? ' aegis-panel__body--padded' : ''}`}\n >\n {children}\n </div>\n </section>\n );\n}\n"],"names":["Panel","title","description","extra","variant","elevation","padded","to","linkComponent","className","style","children","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","LinkImpl","DefaultLink","rootClass","showHeader","titleText","titleNode","jsxs","jsx"],"mappings":";;;;;AAsDO,SAAS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MAAA;AAAA,QACC,WAAW,oBAAoBlB,IAAS,+BAA+B,EAAE;AAAA,QAExE,UAAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");;/* empty css */const n={sm:"aegis-panel-title--sm",base:"aegis-panel-title--base",lg:"aegis-panel-title--lg",hero:"aegis-panel-title--hero"};function o({children:e,as:s="span",size:t="base",className:l}){const a=["aegis-panel-title",n[t],l??""].filter(Boolean).join(" ");return i.jsx(s,{className:a,children:e})}exports.PanelTitle=o;
|
|
2
|
+
//# sourceMappingURL=PanelTitle.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelTitle.cjs","sources":["../../../src/components/ui/PanelTitle.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './PanelTitle.css';\n\ninterface PanelTitleProps {\n children: ReactNode;\n as?: 'span' | 'h1' | 'h2' | 'h3' | 'h4';\n /** Type roles: sm Strong, base Heading, lg Title, hero Display. */\n size?: 'sm' | 'base' | 'lg' | 'hero';\n className?: string;\n}\n\nconst sizeClass: Record<NonNullable<PanelTitleProps['size']>, string> = {\n sm: 'aegis-panel-title--sm',\n base: 'aegis-panel-title--base',\n lg: 'aegis-panel-title--lg',\n hero: 'aegis-panel-title--hero',\n};\n\nexport function PanelTitle({\n children,\n as: Tag = 'span',\n size = 'base',\n className,\n}: PanelTitleProps) {\n const cls = ['aegis-panel-title', sizeClass[size], className ?? '']\n .filter(Boolean)\n .join(' ');\n\n return <Tag className={cls}>{children}</Tag>;\n}\n"],"names":["sizeClass","PanelTitle","children","Tag","size","className","cls","jsx"],"mappings":"qJAYA,MAAMA,EAAkE,CACtE,GAAI,wBACJ,KAAM,0BACN,GAAI,wBACJ,KAAM,yBACR,EAEO,SAASC,EAAW,CACzB,SAAAC,EACA,GAAIC,EAAM,OACV,KAAAC,EAAO,OACP,UAAAC,CACF,EAAoB,CAClB,MAAMC,EAAM,CAAC,oBAAqBN,EAAUI,CAAI,EAAGC,GAAa,EAAE,EAC/D,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,OAAOE,EAAAA,IAACJ,EAAA,CAAI,UAAWG,EAAM,SAAAJ,CAAA,CAAS,CACxC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const n = {
|
|
4
|
+
sm: "aegis-panel-title--sm",
|
|
5
|
+
base: "aegis-panel-title--base",
|
|
6
|
+
lg: "aegis-panel-title--lg",
|
|
7
|
+
hero: "aegis-panel-title--hero"
|
|
8
|
+
};
|
|
9
|
+
function r({
|
|
10
|
+
children: e,
|
|
11
|
+
as: s = "span",
|
|
12
|
+
size: a = "base",
|
|
13
|
+
className: l
|
|
14
|
+
}) {
|
|
15
|
+
const t = ["aegis-panel-title", n[a], l ?? ""].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ i(s, { className: t, children: e });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
r as PanelTitle
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=PanelTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelTitle.js","sources":["../../../src/components/ui/PanelTitle.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './PanelTitle.css';\n\ninterface PanelTitleProps {\n children: ReactNode;\n as?: 'span' | 'h1' | 'h2' | 'h3' | 'h4';\n /** Type roles: sm Strong, base Heading, lg Title, hero Display. */\n size?: 'sm' | 'base' | 'lg' | 'hero';\n className?: string;\n}\n\nconst sizeClass: Record<NonNullable<PanelTitleProps['size']>, string> = {\n sm: 'aegis-panel-title--sm',\n base: 'aegis-panel-title--base',\n lg: 'aegis-panel-title--lg',\n hero: 'aegis-panel-title--hero',\n};\n\nexport function PanelTitle({\n children,\n as: Tag = 'span',\n size = 'base',\n className,\n}: PanelTitleProps) {\n const cls = ['aegis-panel-title', sizeClass[size], className ?? '']\n .filter(Boolean)\n .join(' ');\n\n return <Tag className={cls}>{children}</Tag>;\n}\n"],"names":["sizeClass","PanelTitle","children","Tag","size","className","cls","jsx"],"mappings":";;AAYA,MAAMA,IAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AACR;AAEO,SAASC,EAAW;AAAA,EACzB,UAAAC;AAAA,EACA,IAAIC,IAAM;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,WAAAC;AACF,GAAoB;AAClB,QAAMC,IAAM,CAAC,qBAAqBN,EAAUI,CAAI,GAAGC,KAAa,EAAE,EAC/D,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SAAO,gBAAAE,EAACJ,GAAA,EAAI,WAAWG,GAAM,UAAAJ,EAAA,CAAS;AACxC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),K=require("react"),Q=require("../../hooks/useElementWidth.cjs"),p=require("../../lib/chart.cjs"),Z=require("./ChartLegend.cjs"),ee=require("./EmptyState.cjs");;/* empty css */const te=require("../../locale/useStrings.cjs"),se=320,z=220,re=56,ae=16,oe=28,ie=44,le=5,i=8,W=4;function N(r,m,f){return f==="lower"?r<m:r>m}function ne({points:r,xLabel:m,yLabel:f,xDirection:k="lower",yDirection:b="higher",formatX:I=String,formatY:L=String,onSelect:n,legend:A,empty:$,emptyTitle:X,emptyDescription:F,progress:h,className:U}){const B=te.useStrings(),j=K.useRef(null),d=Q.useElementWidth(j),P=["aegis-pareto",h===void 0?"":"aegis-pareto--scroll",U??""].filter(Boolean).join(" "),c=K.useMemo(()=>{if(r.length===0||d===0)return null;const e=Math.round(Math.min(se,Math.max(z,d/2))),[o,x]=p.zeroAnchoredDomain(r.map(t=>t.x)),[g,M]=p.zeroAnchoredDomain(r.map(t=>t.y)),q=re,C=d-ae,D=oe,w=e-ie,v=t=>q+(t-o)/(x-o)*(C-q),O=t=>w-(t-g)/(M-g)*(w-D),R=r.filter(t=>!r.some(a=>a.key!==t.key&&(N(a.x,t.x,k)||a.x===t.x)&&(N(a.y,t.y,b)||a.y===t.y)&&(N(a.x,t.x,k)||N(a.y,t.y,b)))).sort((t,a)=>t.x-a.x),G=Array.from({length:W},(t,a)=>(a+1)/W),J=new Map([...r].sort((t,a)=>v(t.x)-v(a.x)).map((t,a)=>[t.key,a]));return{height:e,order:J,left:q,right:C,top:D,bottom:w,sx:v,sy:O,front:R,frontKeys:new Set(R.map(t=>t.key)),gridX:G.map(t=>v(o+(x-o)*t)),gridY:G.map(t=>O(g+(M-g)*t)),xLo:o,xHi:x,yLo:g,yHi:M}},[r,d,k,b]);if(r.length===0)return s.jsx("div",{ref:j,className:P,children:$===void 0?s.jsx(ee.EmptyState,{title:X??B.paretoEmptyTitle,description:F}):s.jsx("div",{className:"aegis-pareto__empty",style:{"--aegis-pareto-min-height":`${z.toString()}px`},children:$})});if(!c)return s.jsx("div",{ref:j,className:P});const{height:E,left:l,right:_,top:u,bottom:y,sx:S,sy:T,front:H,frontKeys:V}=c,Y=(e,o)=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),n?.(o))};return s.jsxs("div",{ref:j,className:P,children:[s.jsxs("svg",{className:"aegis-pareto__svg",width:d,height:E,viewBox:`0 0 ${d.toString()} ${E.toString()}`,role:n?"group":"img","aria-label":B.paretoChartLabel(m,f),style:{"--aegis-pareto-count":r.length,...h===void 0?{}:{"--aegis-pareto-front-progress":p.staggeredProgress(h,r.length,r.length+1)}},children:[c.gridY.map(e=>s.jsx("line",{className:"aegis-pareto__grid",x1:l,y1:e,x2:_,y2:e},`gy-${e.toString()}`)),c.gridX.map(e=>s.jsx("line",{className:"aegis-pareto__grid",x1:e,y1:u,x2:e,y2:y},`gx-${e.toString()}`)),s.jsx("line",{className:"aegis-pareto__axis",x1:l,y1:y,x2:_,y2:y}),s.jsx("line",{className:"aegis-pareto__axis",x1:l,y1:u,x2:l,y2:y}),H.length>1&&s.jsx("polyline",{className:"aegis-pareto__front",points:H.map(e=>`${S(e.x).toString()},${T(e.y).toString()}`).join(" ")}),r.map((e,o)=>s.jsx("circle",{className:["aegis-pareto__point",V.has(e.key)?"":"aegis-pareto__point--dominated",n?"aegis-pareto__point--interactive":""].filter(Boolean).join(" "),style:{fill:e.color===void 0?void 0:p.chartColorValue(e.color),"--aegis-pareto-index":o,...h===void 0?{}:{"--aegis-pareto-point-progress":p.staggeredProgress(h,c.order.get(e.key)??o,r.length+1)}},cx:S(e.x),cy:T(e.y),r:le,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-label":n?e.label:void 0,onClick:n?()=>{n(e.key)}:void 0,onKeyDown:n?x=>{Y(x,e.key)}:void 0,children:s.jsx("title",{children:e.label})},e.key)),H.map(e=>{const o=S(e.x),x=T(e.y),g=o>l+(_-l)*.7;return s.jsx("text",{className:"aegis-pareto__point-label",x:g?o-i:o+i,y:x<u+i*2?x+i*2:x-i,textAnchor:g?"end":"start",children:e.label},`label-${e.key}`)}),s.jsx("text",{className:"aegis-pareto__tick",x:l,y:y+i*2,textAnchor:"middle",children:I(c.xLo)}),s.jsx("text",{className:"aegis-pareto__tick",x:_,y:y+i*2,textAnchor:"end",children:I(c.xHi)}),s.jsx("text",{className:"aegis-pareto__tick",x:l-i,y,textAnchor:"end",dominantBaseline:"middle",children:L(c.yLo)}),s.jsx("text",{className:"aegis-pareto__tick",x:l-i,y:u,textAnchor:"end",dominantBaseline:"middle",children:L(c.yHi)}),s.jsx("text",{className:"aegis-pareto__axis-label",x:_,y:E-i,textAnchor:"end",children:m}),s.jsx("text",{className:"aegis-pareto__axis-label",x:l-i,y:u-i*2,textAnchor:"start",children:f})]}),A!==void 0&&A.length>0?s.jsx(Z.ChartLegend,{className:"aegis-pareto__legend",shape:"dot",items:A.map(e=>({key:e.key,label:e.label,color:e.color??"var(--bg-inverted)"}))}):null]})}exports.ParetoChart=ne;
|
|
2
|
+
//# sourceMappingURL=ParetoChart.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParetoChart.cjs","sources":["../../../src/components/ui/ParetoChart.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type KeyboardEvent,\n type ReactNode,\n useMemo,\n useRef,\n} from 'react';\n\nimport { useElementWidth } from '../../hooks/useElementWidth';\nimport {\n type ChartColor,\n chartColorValue,\n staggeredProgress,\n zeroAnchoredDomain,\n} from '../../lib/chart';\nimport { useStrings } from '../../locale';\nimport { ChartLegend } from './ChartLegend';\nimport { EmptyState } from './EmptyState';\nimport './ParetoChart.css';\n\nexport interface ParetoPoint {\n key: string;\n label: string;\n x: number;\n y: number;\n /** Point fill, e.g. `cat-2` or a series token, to match the series elsewhere. */\n color?: ChartColor;\n}\n\n/** One series in the legend under the plot, e.g. a model and its colour. */\nexport interface ParetoLegendItem {\n key: string;\n label: ReactNode;\n /** Swatch fill; the same value its points use. */\n color?: ChartColor;\n}\n\ninterface ParetoChartProps {\n points: ParetoPoint[];\n xLabel: string;\n yLabel: string;\n /** Which direction counts as better on each axis. */\n xDirection?: 'lower' | 'higher';\n yDirection?: 'lower' | 'higher';\n /** Formats the 0 and maximum labels of each axis. */\n formatX?: (value: number) => string;\n formatY?: (value: number) => string;\n onSelect?: (key: string) => void;\n /** Series swatches with labels, listed under the plot. */\n legend?: ParetoLegendItem[];\n /**\n * Shown in place of the plot, at its minimum height, while there are no\n * points — e.g. an EmptyState with an icon asking for both axes. Replaces\n * the default empty state built from `emptyTitle`.\n */\n empty?: ReactNode;\n emptyTitle?: string;\n emptyDescription?: string;\n /**\n * How far the chart is drawn, 0 to 1, for a chart that draws as its\n * section scrolls in (`useScrollProgress`): points fade in from left to\n * right, then the frontier. Omitted, they fade in once on mount.\n */\n progress?: number;\n className?: string;\n}\n\n// The SVG is drawn at its measured CSS width, so these are true px.\nconst MAX_HEIGHT = 320;\nconst MIN_HEIGHT = 220;\nconst PAD_LEFT = 56;\nconst PAD_RIGHT = 16;\nconst PAD_TOP = 28;\nconst PAD_BOTTOM = 44;\nconst POINT_RADIUS = 5;\nconst LABEL_GAP = 8;\nconst GRID_STEPS = 4;\n\ntype Direction = 'lower' | 'higher';\n\nfunction better(a: number, b: number, direction: Direction): boolean {\n return direction === 'lower' ? a < b : a > b;\n}\n\nexport function ParetoChart({\n points,\n xLabel,\n yLabel,\n xDirection = 'lower',\n yDirection = 'higher',\n formatX = String,\n formatY = String,\n onSelect,\n legend,\n empty,\n emptyTitle,\n emptyDescription,\n progress,\n className,\n}: ParetoChartProps) {\n const strings = useStrings();\n const wrapRef = useRef<HTMLDivElement>(null);\n const width = useElementWidth(wrapRef);\n const cls = [\n 'aegis-pareto',\n progress === undefined ? '' : 'aegis-pareto--scroll',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const geometry = useMemo(() => {\n if (points.length === 0 || width === 0) {\n return null;\n }\n const height = Math.round(\n Math.min(MAX_HEIGHT, Math.max(MIN_HEIGHT, width / 2)),\n );\n const [xLo, xHi] = zeroAnchoredDomain(points.map((point) => point.x));\n const [yLo, yHi] = zeroAnchoredDomain(points.map((point) => point.y));\n const left = PAD_LEFT;\n const right = width - PAD_RIGHT;\n const top = PAD_TOP;\n const bottom = height - PAD_BOTTOM;\n const sx = (value: number): number =>\n left + ((value - xLo) / (xHi - xLo)) * (right - left);\n const sy = (value: number): number =>\n bottom - ((value - yLo) / (yHi - yLo)) * (bottom - top);\n const front = points\n .filter(\n (candidate) =>\n !points.some(\n (other) =>\n other.key !== candidate.key &&\n (better(other.x, candidate.x, xDirection) ||\n other.x === candidate.x) &&\n (better(other.y, candidate.y, yDirection) ||\n other.y === candidate.y) &&\n (better(other.x, candidate.x, xDirection) ||\n better(other.y, candidate.y, yDirection)),\n ),\n )\n .sort((a, b) => a.x - b.x);\n const steps = Array.from(\n { length: GRID_STEPS },\n (_, i) => (i + 1) / GRID_STEPS,\n );\n // Points draw in from left to right; the frontier comes last.\n const order = new Map(\n [...points]\n .sort((a, b) => sx(a.x) - sx(b.x))\n .map((point, rank) => [point.key, rank]),\n );\n return {\n height,\n order,\n left,\n right,\n top,\n bottom,\n sx,\n sy,\n front,\n frontKeys: new Set(front.map((point) => point.key)),\n gridX: steps.map((t) => sx(xLo + (xHi - xLo) * t)),\n gridY: steps.map((t) => sy(yLo + (yHi - yLo) * t)),\n xLo,\n xHi,\n yLo,\n yHi,\n };\n }, [points, width, xDirection, yDirection]);\n\n if (points.length === 0) {\n return (\n <div ref={wrapRef} className={cls}>\n {empty === undefined ? (\n <EmptyState\n title={emptyTitle ?? strings.paretoEmptyTitle}\n description={emptyDescription}\n />\n ) : (\n <div\n className=\"aegis-pareto__empty\"\n style={\n {\n '--aegis-pareto-min-height': `${MIN_HEIGHT.toString()}px`,\n } as CSSProperties\n }\n >\n {empty}\n </div>\n )}\n </div>\n );\n }\n\n if (!geometry) {\n return <div ref={wrapRef} className={cls} />;\n }\n\n const { height, left, right, top, bottom, sx, sy, front, frontKeys } =\n geometry;\n const selectOnKey = (event: KeyboardEvent<SVGCircleElement>, key: string) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onSelect?.(key);\n }\n };\n\n return (\n <div ref={wrapRef} className={cls}>\n <svg\n className=\"aegis-pareto__svg\"\n width={width}\n height={height}\n viewBox={`0 0 ${width.toString()} ${height.toString()}`}\n role={onSelect ? 'group' : 'img'}\n aria-label={strings.paretoChartLabel(xLabel, yLabel)}\n style={\n {\n '--aegis-pareto-count': points.length,\n ...(progress === undefined\n ? {}\n : {\n '--aegis-pareto-front-progress': staggeredProgress(\n progress,\n points.length,\n points.length + 1,\n ),\n }),\n } as CSSProperties\n }\n >\n {geometry.gridY.map((y) => (\n <line\n key={`gy-${y.toString()}`}\n className=\"aegis-pareto__grid\"\n x1={left}\n y1={y}\n x2={right}\n y2={y}\n />\n ))}\n {geometry.gridX.map((x) => (\n <line\n key={`gx-${x.toString()}`}\n className=\"aegis-pareto__grid\"\n x1={x}\n y1={top}\n x2={x}\n y2={bottom}\n />\n ))}\n <line\n className=\"aegis-pareto__axis\"\n x1={left}\n y1={bottom}\n x2={right}\n y2={bottom}\n />\n <line\n className=\"aegis-pareto__axis\"\n x1={left}\n y1={top}\n x2={left}\n y2={bottom}\n />\n {front.length > 1 && (\n <polyline\n className=\"aegis-pareto__front\"\n points={front\n .map(\n (point) =>\n `${sx(point.x).toString()},${sy(point.y).toString()}`,\n )\n .join(' ')}\n />\n )}\n {points.map((point, index) => (\n <circle\n key={point.key}\n className={[\n 'aegis-pareto__point',\n frontKeys.has(point.key) ? '' : 'aegis-pareto__point--dominated',\n onSelect ? 'aegis-pareto__point--interactive' : '',\n ]\n .filter(Boolean)\n .join(' ')}\n style={\n {\n fill:\n point.color === undefined\n ? undefined\n : chartColorValue(point.color),\n '--aegis-pareto-index': index,\n ...(progress === undefined\n ? {}\n : {\n '--aegis-pareto-point-progress': staggeredProgress(\n progress,\n geometry.order.get(point.key) ?? index,\n points.length + 1,\n ),\n }),\n } as CSSProperties\n }\n cx={sx(point.x)}\n cy={sy(point.y)}\n r={POINT_RADIUS}\n role={onSelect ? 'button' : undefined}\n tabIndex={onSelect ? 0 : undefined}\n aria-label={onSelect ? point.label : undefined}\n onClick={\n onSelect\n ? () => {\n onSelect(point.key);\n }\n : undefined\n }\n onKeyDown={\n onSelect\n ? (event) => {\n selectOnKey(event, point.key);\n }\n : undefined\n }\n >\n <title>{point.label}</title>\n </circle>\n ))}\n {front.map((point) => {\n const x = sx(point.x);\n const y = sy(point.y);\n const flip = x > left + (right - left) * 0.7;\n return (\n <text\n key={`label-${point.key}`}\n className=\"aegis-pareto__point-label\"\n x={flip ? x - LABEL_GAP : x + LABEL_GAP}\n y={y < top + LABEL_GAP * 2 ? y + LABEL_GAP * 2 : y - LABEL_GAP}\n textAnchor={flip ? 'end' : 'start'}\n >\n {point.label}\n </text>\n );\n })}\n <text\n className=\"aegis-pareto__tick\"\n x={left}\n y={bottom + LABEL_GAP * 2}\n textAnchor=\"middle\"\n >\n {formatX(geometry.xLo)}\n </text>\n <text\n className=\"aegis-pareto__tick\"\n x={right}\n y={bottom + LABEL_GAP * 2}\n textAnchor=\"end\"\n >\n {formatX(geometry.xHi)}\n </text>\n <text\n className=\"aegis-pareto__tick\"\n x={left - LABEL_GAP}\n y={bottom}\n textAnchor=\"end\"\n dominantBaseline=\"middle\"\n >\n {formatY(geometry.yLo)}\n </text>\n <text\n className=\"aegis-pareto__tick\"\n x={left - LABEL_GAP}\n y={top}\n textAnchor=\"end\"\n dominantBaseline=\"middle\"\n >\n {formatY(geometry.yHi)}\n </text>\n <text\n className=\"aegis-pareto__axis-label\"\n x={right}\n y={height - LABEL_GAP}\n textAnchor=\"end\"\n >\n {xLabel}\n </text>\n <text\n className=\"aegis-pareto__axis-label\"\n x={left - LABEL_GAP}\n y={top - LABEL_GAP * 2}\n textAnchor=\"start\"\n >\n {yLabel}\n </text>\n </svg>\n {legend !== undefined && legend.length > 0 ? (\n <ChartLegend\n className=\"aegis-pareto__legend\"\n shape=\"dot\"\n items={legend.map((item) => ({\n key: item.key,\n label: item.label,\n color: item.color ?? 'var(--bg-inverted)',\n }))}\n />\n ) : null}\n </div>\n );\n}\n"],"names":["MAX_HEIGHT","MIN_HEIGHT","PAD_LEFT","PAD_RIGHT","PAD_TOP","PAD_BOTTOM","POINT_RADIUS","LABEL_GAP","GRID_STEPS","better","a","b","direction","ParetoChart","points","xLabel","yLabel","xDirection","yDirection","formatX","formatY","onSelect","legend","empty","emptyTitle","emptyDescription","progress","className","strings","useStrings","wrapRef","useRef","width","useElementWidth","cls","geometry","useMemo","height","xLo","xHi","zeroAnchoredDomain","point","yLo","yHi","left","right","top","bottom","sx","value","sy","front","candidate","other","steps","_","i","order","rank","jsx","EmptyState","frontKeys","selectOnKey","event","key","jsxs","staggeredProgress","y","x","index","chartColorValue","flip","ChartLeg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C,EAAMvC,EAAY,EACrB,WAAW,QAEV,SAAAS,CAAA,CAAA,CACH,CAAA,CAAA,EAEDM,IAAW,QAAaA,EAAO,OAAS,EACvCqC,EAAAA,IAACa,EAAAA,YAAA,CACC,UAAU,uBACV,MAAM,MACN,MAAOlD,EAAO,IAAKmD,IAAU,CAC3B,IAAKA,EAAK,IACV,MAAOA,EAAK,MACZ,MAAOA,EAAK,OAAS,oBAAA,EACrB,CAAA,CAAA,EAEF,IAAA,EACN,CAEJ"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ChartColor } from '../../lib/chart';
|
|
2
3
|
export interface ParetoPoint {
|
|
3
4
|
key: string;
|
|
4
5
|
label: string;
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
7
|
-
/** Point fill, e.g. `
|
|
8
|
-
color?:
|
|
8
|
+
/** Point fill, e.g. `cat-2` or a series token, to match the series elsewhere. */
|
|
9
|
+
color?: ChartColor;
|
|
9
10
|
}
|
|
10
11
|
/** One series in the legend under the plot, e.g. a model and its colour. */
|
|
11
12
|
export interface ParetoLegendItem {
|
|
12
13
|
key: string;
|
|
13
14
|
label: ReactNode;
|
|
14
15
|
/** Swatch fill; the same value its points use. */
|
|
15
|
-
color?:
|
|
16
|
+
color?: ChartColor;
|
|
16
17
|
}
|
|
17
18
|
interface ParetoChartProps {
|
|
18
19
|
points: ParetoPoint[];
|
|
@@ -35,7 +36,13 @@ interface ParetoChartProps {
|
|
|
35
36
|
empty?: ReactNode;
|
|
36
37
|
emptyTitle?: string;
|
|
37
38
|
emptyDescription?: string;
|
|
39
|
+
/**
|
|
40
|
+
* How far the chart is drawn, 0 to 1, for a chart that draws as its
|
|
41
|
+
* section scrolls in (`useScrollProgress`): points fade in from left to
|
|
42
|
+
* right, then the frontier. Omitted, they fade in once on mount.
|
|
43
|
+
*/
|
|
44
|
+
progress?: number;
|
|
38
45
|
className?: string;
|
|
39
46
|
}
|
|
40
|
-
export declare function ParetoChart({ points, xLabel, yLabel, xDirection, yDirection, formatX, formatY, onSelect, legend, empty, emptyTitle, emptyDescription, className, }: ParetoChartProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare function ParetoChart({ points, xLabel, yLabel, xDirection, yDirection, formatX, formatY, onSelect, legend, empty, emptyTitle, emptyDescription, progress, className, }: ParetoChartProps): import("react/jsx-runtime").JSX.Element;
|
|
41
48
|
export {};
|