@tangle-network/ui 11.41.0 → 11.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tangle-network/ui
2
2
 
3
+ ## 11.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1160d59: Add hand-rolled SVG chart primitives. `SeriesSparkline` and `MetricChart` (exported from `@tangle-network/ui/primitives`) draw viewBox-scaled line charts with `currentColor` against theme token classes — no chart dependency, no hardcoded hues, dark-mode correct. `MetricChart` adds y gridlines, x date ticks, dual-series (`value2`) support and dashed reference lines. The React-free series math (`normalizeSeries`, `seriesExtent`, `seriesScale`, `periodDelta`, `seriesMean`, path builders) lives in `src/lib/series.ts` and is re-exported from primitives; `chartPresentation` joins the shared presentation map. Period deltas are measured relative to the latest measurement, never the wall clock. Named `SeriesSparkline` to stay distinct from the sample-index `Sparkline` already exported by `@tangle-network/charts`.
8
+
3
9
  ## 11.41.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -102,6 +102,9 @@ import { Wizard, WizardProps, WizardStep, WizardStepProps } from "./primitives/w
102
102
  import { HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger } from "./primitives/hover-card.js";
103
103
  import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./primitives/breadcrumb.js";
104
104
  import { Metric, MetricProps, MetricStrip, MetricStripProps } from "./primitives/metric-strip.js";
105
+ import { PeriodDelta, SeriesExtent, SeriesPoint, SeriesPointInput, SeriesScale, normalizeSeries, periodDelta, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale } from "./lib/series.js";
106
+ import { SeriesSparkline, SeriesSparklineProps } from "./primitives/series-sparkline.js";
107
+ import { ChartReferenceLine, MetricChart, MetricChartProps } from "./primitives/metric-chart.js";
105
108
  import { FilterField, FilterFieldProps, Toolbar, ToolbarProps } from "./primitives/toolbar.js";
106
109
  import { Logo, LogoProps, TangleKnot } from "./primitives.js";
107
110
  import { RunGroup, RunGroupProps } from "./run/run-group.js";
@@ -139,4 +142,4 @@ import { QuestionPreview, QuestionPreviewProps } from "./tool-previews/question-
139
142
  import { DiffPreview, DiffPreviewProps } from "./tool-previews/diff-preview.js";
140
143
  import { RedactedDocSegment, RedactedDocument, RedactedDocumentData, RedactedDocumentProps, RevealResult } from "./redaction/redacted-document.js";
141
144
  import "./redaction.js";
142
- export { ActiveProjectActivity, ActiveSessionActivityOptions, ActiveSessionConnectionOptions, ActiveSessionConnectionState, ActiveSessionReconnectState, ActiveSessionRecord, ActiveSessionStatus, ActiveSessionTransportMode, ActiveSessionsState, AgentBranding, AgentStreamEvent, AgentTimeline, type AgentTimelineArtifactItem, type AgentTimelineCustomItem, type AgentTimelineItem, type AgentTimelineMessageItem, type AgentTimelineProps, type AgentTimelineStatusItem, type AgentTimelineTone, type AgentTimelineToolGroupItem, type AgentTimelineToolItem, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTone, ApiSchema, type ApiSchemaProps, AppendUserMessageOptions, ApplySdkEventOptions, ApprovalCard, type ApprovalCardProps, type ApprovalDiffFile, ApprovalDiffSummary, type ApprovalPlanStep, ArtifactPane, type ArtifactPaneProps, AuthHeader, type AuthHeaderProps, AuthUser, AutomationStreamEvent, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BeginAssistantMessageOptions, BotStreamEvent, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, Calendar, type CalendarDate, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CardTitleProps, type CategoryTone, ChatAuthor, ChatContainer, type ChatContainerProps, ChatMessage, type ChatMessageProps, Checkbox, Chip, type ChipProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandPreview, type CommandPreviewProps, CompleteAssistantMessageOptions, ConnectionState, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, CustomToolRenderer, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, type DiffPreviewProps, DisplayVariant, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ExpandedToolDetail, type ExpandedToolDetailProps, type FeedSegment, Field, type FieldProps, FileArtifactPane, type FileArtifactPaneProps, FileCard, type FileCardProps, type FileDetails, type FileFormat, FileList, type FileListItem, type FileListProps, type FileNode, FilePreview, type FilePreviewKind, type FilePreviewProps, type FileTabData, FileTabs, type FileTabsProps, FileTree, type FileTreeProps, type FileTreeVisibilityOptions, type FileUploader, FilterField, type FilterFieldProps, FinalTextPart, GitHubLoginButton, type GitHubLoginButtonProps, GlobResultsPreview, type GlobResultsPreviewProps, GrepResultsPreview, type GrepResultsPreviewProps, GroupedMessage, Heading, type HeadingProps, type HeadingVariant, HelpText, type HelpTextProps, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, type IconTileProps, InlineCode, type InlineCodeProps, InlineThinkingItem, type InlineThinkingItemProps, InlineToolItem, type InlineToolItemProps, Input, type InputProps, Label, LiveDuration, LoginLayout, type LoginLayoutProps, Logo, type LogoProps, Markdown, type MarkdownLinkChip, type MarkdownLinkChipResolver, type MarkdownProps, MessageAuthor, type MessageAuthorProps, MessageList, type MessageListProps, type MessageRole, MessageRun, MessageUser, Metric, type MetricProps, MetricStrip, type MetricStripProps, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, type OpenUIAction, type OpenUIActionsNode, OpenUIArtifactRenderer, type OpenUIArtifactRendererProps, type OpenUIBadgeNode, type OpenUICardNode, type OpenUICodeNode, type OpenUIComponentNode, type OpenUIGridNode, type OpenUIHeadingNode, type OpenUIKeyValueNode, type OpenUIMarkdownNode, type OpenUIPrimitive, type OpenUISchemaIssue, type OpenUISchemaValidation, type OpenUISeparatorNode, type OpenUIStackNode, type OpenUIStatNode, type OpenUITableNode, type OpenUITextNode, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pagination, type PaginationProps, PdfViewer, type PdfViewerConfig, type PdfViewerProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, QuestionPreview, type QuestionPreviewProps, RadioGroup, RadioGroupItem, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, ReasoningPart, type RedactedDocSegment, RedactedDocument, type RedactedDocumentData, type RedactedDocumentProps, RegisterActiveSessionOptions, type RevealResult, RichFileTree, type RichFileTreeGitEntry, type RichFileTreeGitStatus, type RichFileTreeProps, type RichFileTreeThemeVars, Run, RunGroup, type RunGroupProps, type RunPhase, RunPhaseList, RunRowShell, type RunRowShellProps, type RunRowStatus, RunRowStatusDot, RunStats, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SessionMessage, SessionPart, SessionProjectKey, type SessionUser, SettingsList, type SettingsListAction, type SettingsListColumns, SettingsListItem, type SettingsListItemProps, type SettingsListMenuItem, type SettingsListProps, SettingsRow, type SettingsRowLayout, type SettingsRowProps, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, type StatCardProps, StatusPill, type StatusPillProps, type StatusTone, Switch, TONE_CLASSES, TOOL_CATEGORY_ICONS, TRANSCRIPT_TEXT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TangleKnot, TaskList, type TaskListItem, type TaskListProps, type TaskStatus, TaskStreamEvent, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TerminalStreamEvent, TextPart, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThemeToggle, ThinkingIndicator, type ThinkingIndicatorProps, TimeSelect, type TimeSelectProps, type Toast, ToastContainer, ToastProvider, type Tone, type ToneClasses, type ToolCallData, ToolCallFeed, type ToolCallFeedProps, type ToolCallStatus, type ToolCallType, ToolCategory, ToolDisplayMetadata, ToolPart, ToolState, ToolStatus, ToolTime, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadFile, UploadProgress, type UploadProgressProps, UseAuthOptions, UseAuthResult, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, UserMenu, type UserMenuProps, UserMessage, type UserMessageProps, WebSearchPreview, type WebSearchPreviewProps, Wizard, type WizardProps, WizardStep, type WizardStepProps, WriteFilePreview, type WriteFilePreviewProps, activeSessionsAtom, addMessage, addParts, badgeVariants, bumpActiveSessionActivity, buttonVariants, clearChat, cn, codeBlockGrammar, configurePdfViewer, copyText, createAuthFetcher, detectFileFormat, fenceInfo, fieldMessageId, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatCalendarDate, formatDuration, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, isViewerMessage, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, localToday, messagesAtom, numericColumns, parseCalendarDate, parseCsv, parseToolEvent, partMapAtom, plainTextFromMarkdown, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, showsTaskPriority, tableCsv, taskProgress, taskStatus, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useProjectActivity, useProjectSessions, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionsByActivity, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
145
+ export { ActiveProjectActivity, ActiveSessionActivityOptions, ActiveSessionConnectionOptions, ActiveSessionConnectionState, ActiveSessionReconnectState, ActiveSessionRecord, ActiveSessionStatus, ActiveSessionTransportMode, ActiveSessionsState, AgentBranding, AgentStreamEvent, AgentTimeline, type AgentTimelineArtifactItem, type AgentTimelineCustomItem, type AgentTimelineItem, type AgentTimelineMessageItem, type AgentTimelineProps, type AgentTimelineStatusItem, type AgentTimelineTone, type AgentTimelineToolGroupItem, type AgentTimelineToolItem, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTone, ApiSchema, type ApiSchemaProps, AppendUserMessageOptions, ApplySdkEventOptions, ApprovalCard, type ApprovalCardProps, type ApprovalDiffFile, ApprovalDiffSummary, type ApprovalPlanStep, ArtifactPane, type ArtifactPaneProps, AuthHeader, type AuthHeaderProps, AuthUser, AutomationStreamEvent, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BeginAssistantMessageOptions, BotStreamEvent, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, Calendar, type CalendarDate, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CardTitleProps, type CategoryTone, type ChartReferenceLine, ChatAuthor, ChatContainer, type ChatContainerProps, ChatMessage, type ChatMessageProps, Checkbox, Chip, type ChipProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandPreview, type CommandPreviewProps, CompleteAssistantMessageOptions, ConnectionState, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, CustomToolRenderer, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, type DiffPreviewProps, DisplayVariant, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ExpandedToolDetail, type ExpandedToolDetailProps, type FeedSegment, Field, type FieldProps, FileArtifactPane, type FileArtifactPaneProps, FileCard, type FileCardProps, type FileDetails, type FileFormat, FileList, type FileListItem, type FileListProps, type FileNode, FilePreview, type FilePreviewKind, type FilePreviewProps, type FileTabData, FileTabs, type FileTabsProps, FileTree, type FileTreeProps, type FileTreeVisibilityOptions, type FileUploader, FilterField, type FilterFieldProps, FinalTextPart, GitHubLoginButton, type GitHubLoginButtonProps, GlobResultsPreview, type GlobResultsPreviewProps, GrepResultsPreview, type GrepResultsPreviewProps, GroupedMessage, Heading, type HeadingProps, type HeadingVariant, HelpText, type HelpTextProps, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, type IconTileProps, InlineCode, type InlineCodeProps, InlineThinkingItem, type InlineThinkingItemProps, InlineToolItem, type InlineToolItemProps, Input, type InputProps, Label, LiveDuration, LoginLayout, type LoginLayoutProps, Logo, type LogoProps, Markdown, type MarkdownLinkChip, type MarkdownLinkChipResolver, type MarkdownProps, MessageAuthor, type MessageAuthorProps, MessageList, type MessageListProps, type MessageRole, MessageRun, MessageUser, Metric, MetricChart, type MetricChartProps, type MetricProps, MetricStrip, type MetricStripProps, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, type OpenUIAction, type OpenUIActionsNode, OpenUIArtifactRenderer, type OpenUIArtifactRendererProps, type OpenUIBadgeNode, type OpenUICardNode, type OpenUICodeNode, type OpenUIComponentNode, type OpenUIGridNode, type OpenUIHeadingNode, type OpenUIKeyValueNode, type OpenUIMarkdownNode, type OpenUIPrimitive, type OpenUISchemaIssue, type OpenUISchemaValidation, type OpenUISeparatorNode, type OpenUIStackNode, type OpenUIStatNode, type OpenUITableNode, type OpenUITextNode, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pagination, type PaginationProps, PdfViewer, type PdfViewerConfig, type PdfViewerProps, type PeriodDelta, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, QuestionPreview, type QuestionPreviewProps, RadioGroup, RadioGroupItem, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, ReasoningPart, type RedactedDocSegment, RedactedDocument, type RedactedDocumentData, type RedactedDocumentProps, RegisterActiveSessionOptions, type RevealResult, RichFileTree, type RichFileTreeGitEntry, type RichFileTreeGitStatus, type RichFileTreeProps, type RichFileTreeThemeVars, Run, RunGroup, type RunGroupProps, type RunPhase, RunPhaseList, RunRowShell, type RunRowShellProps, type RunRowStatus, RunRowStatusDot, RunStats, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeriesExtent, type SeriesPoint, type SeriesPointInput, type SeriesScale, SeriesSparkline, type SeriesSparklineProps, SessionMessage, SessionPart, SessionProjectKey, type SessionUser, SettingsList, type SettingsListAction, type SettingsListColumns, SettingsListItem, type SettingsListItemProps, type SettingsListMenuItem, type SettingsListProps, SettingsRow, type SettingsRowLayout, type SettingsRowProps, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, type StatCardProps, StatusPill, type StatusPillProps, type StatusTone, Switch, TONE_CLASSES, TOOL_CATEGORY_ICONS, TRANSCRIPT_TEXT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TangleKnot, TaskList, type TaskListItem, type TaskListProps, type TaskStatus, TaskStreamEvent, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TerminalStreamEvent, TextPart, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThemeToggle, ThinkingIndicator, type ThinkingIndicatorProps, TimeSelect, type TimeSelectProps, type Toast, ToastContainer, ToastProvider, type Tone, type ToneClasses, type ToolCallData, ToolCallFeed, type ToolCallFeedProps, type ToolCallStatus, type ToolCallType, ToolCategory, ToolDisplayMetadata, ToolPart, ToolState, ToolStatus, ToolTime, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadFile, UploadProgress, type UploadProgressProps, UseAuthOptions, UseAuthResult, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, UserMenu, type UserMenuProps, UserMessage, type UserMessageProps, WebSearchPreview, type WebSearchPreviewProps, Wizard, type WizardProps, WizardStep, type WizardStepProps, WriteFilePreview, type WriteFilePreviewProps, activeSessionsAtom, addMessage, addParts, badgeVariants, bumpActiveSessionActivity, buttonVariants, clearChat, cn, codeBlockGrammar, configurePdfViewer, copyText, createAuthFetcher, detectFileFormat, fenceInfo, fieldMessageId, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatCalendarDate, formatDuration, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, isViewerMessage, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, localToday, messagesAtom, normalizeSeries, numericColumns, parseCalendarDate, parseCsv, parseToolEvent, partMapAtom, periodDelta, plainTextFromMarkdown, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, showsTaskPriority, tableCsv, taskProgress, taskStatus, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useProjectActivity, useProjectSessions, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionsByActivity, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
package/dist/index.js CHANGED
@@ -60,6 +60,9 @@ import { HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, Hov
60
60
  import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./primitives/breadcrumb.js";
61
61
  import { IconTile, initialsOf } from "./primitives/icon-tile.js";
62
62
  import { Metric, MetricStrip } from "./primitives/metric-strip.js";
63
+ import { normalizeSeries, periodDelta, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale } from "./lib/series.js";
64
+ import { SeriesSparkline } from "./primitives/series-sparkline.js";
65
+ import { MetricChart } from "./primitives/metric-chart.js";
63
66
  import { FilterField, Toolbar } from "./primitives/toolbar.js";
64
67
  import { Logo, TangleKnot } from "./primitives.js";
65
68
  import { TOOL_CATEGORY_ICONS, getToolCategory, getToolDisplayMetadata, getToolErrorText } from "./utils/tool-display.js";
@@ -123,4 +126,4 @@ import { addMessage, addParts, clearChat, isStreamingAtom, messagesAtom, partMap
123
126
  import { copyText } from "./utils/copy-text.js";
124
127
  import { timeAgo } from "./utils/time-ago.js";
125
128
  import { RedactedDocument } from "./redaction/redacted-document.js";
126
- export { AgentTimeline, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApiSchema, ApprovalCard, ApprovalDiffSummary, ArtifactPane, AuthHeader, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatContainer, ChatMessage, Checkbox, Chip, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandPreview, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, DropZone, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ExpandedToolDetail, Field, FileArtifactPane, FileCard, FileList, FilePreview, FileTabs, FileTree, FilterField, GitHubLoginButton, GlobResultsPreview, GrepResultsPreview, Heading, HelpText, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, InlineCode, InlineThinkingItem, InlineToolItem, Input, Label, LiveDuration, LoginLayout, Logo, Markdown, MessageAuthor, MessageList, Metric, MetricStrip, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, PageHeader, PageShell, Pagination, PdfViewer, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, QuestionPreview, RadioGroup, RadioGroupItem, RealtimeSessionRegistry, RedactedDocument, RichFileTree, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingsList, SettingsListItem, SettingsRow, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, StatusPill, Switch, TONE_CLASSES, TOOL_CATEGORY_ICONS, TRANSCRIPT_TEXT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TangleKnot, TaskList, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TextShimmer, Textarea, ThemeToggle, ThinkingIndicator, TimeSelect, ToastContainer, ToastProvider, ToolCallFeed, Toolbar, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UploadProgress, UserMenu, UserMessage, WebSearchPreview, Wizard, WizardStep, WriteFilePreview, activeSessionsAtom, addMessage, addParts, badgeVariants, bumpActiveSessionActivity, buttonVariants, clearChat, cn, codeBlockGrammar, configurePdfViewer, copyText, createAuthFetcher, detectFileFormat, fenceInfo, fieldMessageId, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatCalendarDate, formatDuration, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, isViewerMessage, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, localToday, messagesAtom, numericColumns, parseCalendarDate, parseCsv, parseToolEvent, partMapAtom, plainTextFromMarkdown, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, showsTaskPriority, tableCsv, taskProgress, taskStatus, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useProjectActivity, useProjectSessions, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionsByActivity, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
129
+ export { AgentTimeline, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApiSchema, ApprovalCard, ApprovalDiffSummary, ArtifactPane, AuthHeader, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatContainer, ChatMessage, Checkbox, Chip, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandPreview, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, DropZone, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ExpandedToolDetail, Field, FileArtifactPane, FileCard, FileList, FilePreview, FileTabs, FileTree, FilterField, GitHubLoginButton, GlobResultsPreview, GrepResultsPreview, Heading, HelpText, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, InlineCode, InlineThinkingItem, InlineToolItem, Input, Label, LiveDuration, LoginLayout, Logo, Markdown, MessageAuthor, MessageList, Metric, MetricChart, MetricStrip, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, PageHeader, PageShell, Pagination, PdfViewer, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, QuestionPreview, RadioGroup, RadioGroupItem, RealtimeSessionRegistry, RedactedDocument, RichFileTree, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeriesSparkline, SettingsList, SettingsListItem, SettingsRow, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, StatusPill, Switch, TONE_CLASSES, TOOL_CATEGORY_ICONS, TRANSCRIPT_TEXT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TangleKnot, TaskList, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TextShimmer, Textarea, ThemeToggle, ThinkingIndicator, TimeSelect, ToastContainer, ToastProvider, ToolCallFeed, Toolbar, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UploadProgress, UserMenu, UserMessage, WebSearchPreview, Wizard, WizardStep, WriteFilePreview, activeSessionsAtom, addMessage, addParts, badgeVariants, bumpActiveSessionActivity, buttonVariants, clearChat, cn, codeBlockGrammar, configurePdfViewer, copyText, createAuthFetcher, detectFileFormat, fenceInfo, fieldMessageId, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatCalendarDate, formatDuration, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, isViewerMessage, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, localToday, messagesAtom, normalizeSeries, numericColumns, parseCalendarDate, parseCsv, parseToolEvent, partMapAtom, periodDelta, plainTextFromMarkdown, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, showsTaskPriority, tableCsv, taskProgress, taskStatus, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useProjectActivity, useProjectSessions, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionsByActivity, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
@@ -0,0 +1,74 @@
1
+ //#region src/lib/series.d.ts
2
+ /**
3
+ * src/lib/series.ts — pure time-series math shared by the chart primitives.
4
+ * No React, no DOM: unit-tested directly. All periods are relative to the
5
+ * LATEST measurement in the series, never to the wall clock, so a seeded
6
+ * demo or a backfilled import never goes stale.
7
+ */
8
+ /** A point as callers supply it: `at` accepts epoch ms, ISO text or a Date. */
9
+ export interface SeriesPointInput {
10
+ at: number | string | Date;
11
+ value: number;
12
+ /** Second reading for dual series (diastolic next to systolic). */
13
+ value2?: number;
14
+ }
15
+ /** A normalized point: finite numbers, epoch-ms time, ascending order. */
16
+ export interface SeriesPoint {
17
+ at: number;
18
+ value: number;
19
+ value2?: number;
20
+ }
21
+ /** Drop non-finite readings and sort by measurement time. */
22
+ export declare function normalizeSeries(points: readonly SeriesPointInput[]): SeriesPoint[];
23
+ export interface SeriesExtent {
24
+ /** Padded value domain. */
25
+ lo: number;
26
+ hi: number;
27
+ /** Time domain, never degenerate. */
28
+ tLo: number;
29
+ tHi: number;
30
+ }
31
+ /**
32
+ * Value and time extents across both readings of every point. The value
33
+ * domain is padded by `padding` (fraction of the span, default 0.12) and
34
+ * widened to cover `include`d values (reference lines). Degenerate spans
35
+ * open up so a flat or single-reading series still centres.
36
+ */
37
+ export declare function seriesExtent(points: readonly SeriesPoint[], options?: {
38
+ padding?: number;
39
+ include?: readonly number[];
40
+ }): SeriesExtent;
41
+ export interface SeriesScale {
42
+ x: (at: number) => number;
43
+ y: (value: number) => number;
44
+ extent: SeriesExtent;
45
+ }
46
+ /** Project an extent into a `width` × `height` box with `pad` inset. */
47
+ export declare function seriesScale(extent: SeriesExtent, width: number, height: number, pad: number): SeriesScale;
48
+ export interface PeriodDelta {
49
+ /** Mean of the latest `windowMs` of data, ending at the last measurement. */
50
+ current: number;
51
+ /** Mean of the window before that, when such data exists. */
52
+ previous: number | null;
53
+ /** `current - previous`, or null without a populated prior window. */
54
+ delta: number | null;
55
+ }
56
+ /** Mean of finite values, or null when there is nothing to average. */
57
+ export declare function seriesMean(values: readonly number[]): number | null;
58
+ /**
59
+ * Compare the latest `windowMs` of primary readings against the window
60
+ * before it. Both windows end at the LATEST measurement, never the wall
61
+ * clock. Returns null for an empty series.
62
+ */
63
+ export declare function periodDelta(points: readonly SeriesPoint[], windowMs: number): PeriodDelta | null;
64
+ /** Polyline path data for already-projected points. */
65
+ export declare function seriesLinePath(points: ReadonlyArray<{
66
+ x: number;
67
+ y: number;
68
+ }>): string;
69
+ /** Closed area path down to `baseline`, empty for fewer than two points. */
70
+ export declare function seriesAreaPath(points: ReadonlyArray<{
71
+ x: number;
72
+ y: number;
73
+ }>, baseline: number): string;
74
+ //#endregion
@@ -0,0 +1,100 @@
1
+ //#region src/lib/series.ts
2
+ const asTime = (at) => {
3
+ const time = at instanceof Date ? at.getTime() : typeof at === "number" ? at : Date.parse(at);
4
+ return Number.isFinite(time) ? time : null;
5
+ };
6
+ /** Drop non-finite readings and sort by measurement time. */
7
+ function normalizeSeries(points) {
8
+ const normalized = [];
9
+ for (const point of points) {
10
+ const at = asTime(point.at);
11
+ if (at === null || !Number.isFinite(point.value)) continue;
12
+ const { value2 } = point;
13
+ normalized.push(value2 !== void 0 && Number.isFinite(value2) ? {
14
+ at,
15
+ value: point.value,
16
+ value2
17
+ } : {
18
+ at,
19
+ value: point.value
20
+ });
21
+ }
22
+ return normalized.sort((a, b) => a.at - b.at);
23
+ }
24
+ const TWELVE_HOURS_MS = 432e5;
25
+ /**
26
+ * Value and time extents across both readings of every point. The value
27
+ * domain is padded by `padding` (fraction of the span, default 0.12) and
28
+ * widened to cover `include`d values (reference lines). Degenerate spans
29
+ * open up so a flat or single-reading series still centres.
30
+ */
31
+ function seriesExtent(points, options = {}) {
32
+ const values = [...points.flatMap((point) => point.value2 === void 0 ? [point.value] : [point.value, point.value2]), ...options.include ?? []];
33
+ let lo = values.length > 0 ? Math.min(...values) : 0;
34
+ let hi = values.length > 0 ? Math.max(...values) : 1;
35
+ if (lo === hi) {
36
+ lo -= 1;
37
+ hi += 1;
38
+ }
39
+ const pad = (hi - lo) * (options.padding ?? .12);
40
+ lo -= pad;
41
+ hi += pad;
42
+ let tLo = points.length > 0 ? points[0].at : 0;
43
+ let tHi = points.length > 0 ? points[points.length - 1].at : 1;
44
+ if (tLo === tHi) {
45
+ tLo -= TWELVE_HOURS_MS;
46
+ tHi += TWELVE_HOURS_MS;
47
+ }
48
+ return {
49
+ lo,
50
+ hi,
51
+ tLo,
52
+ tHi
53
+ };
54
+ }
55
+ /** Project an extent into a `width` × `height` box with `pad` inset. */
56
+ function seriesScale(extent, width, height, pad) {
57
+ const { lo, hi, tLo, tHi } = extent;
58
+ return {
59
+ extent,
60
+ x: (at) => pad + (at - tLo) / (tHi - tLo) * (width - 2 * pad),
61
+ y: (value) => height - pad - (value - lo) / (hi - lo) * (height - 2 * pad)
62
+ };
63
+ }
64
+ /** Mean of finite values, or null when there is nothing to average. */
65
+ function seriesMean(values) {
66
+ const finite = values.filter((value) => Number.isFinite(value));
67
+ if (finite.length === 0) return null;
68
+ return finite.reduce((sum, value) => sum + value, 0) / finite.length;
69
+ }
70
+ /**
71
+ * Compare the latest `windowMs` of primary readings against the window
72
+ * before it. Both windows end at the LATEST measurement, never the wall
73
+ * clock. Returns null for an empty series.
74
+ */
75
+ function periodDelta(points, windowMs) {
76
+ if (points.length === 0) return null;
77
+ const latest = points[points.length - 1].at;
78
+ const recentStart = latest - windowMs;
79
+ const previousStart = latest - 2 * windowMs;
80
+ const recent = points.filter((point) => point.at > recentStart).map((point) => point.value);
81
+ const previous = points.filter((point) => point.at > previousStart && point.at <= recentStart).map((point) => point.value);
82
+ const current = seriesMean(recent);
83
+ const previousMean = seriesMean(previous);
84
+ return {
85
+ current,
86
+ previous: previousMean,
87
+ delta: previousMean !== null ? current - previousMean : null
88
+ };
89
+ }
90
+ /** Polyline path data for already-projected points. */
91
+ function seriesLinePath(points) {
92
+ return points.map((point, index) => `${index === 0 ? "M" : "L"}${point.x.toFixed(2)},${point.y.toFixed(2)}`).join(" ");
93
+ }
94
+ /** Closed area path down to `baseline`, empty for fewer than two points. */
95
+ function seriesAreaPath(points, baseline) {
96
+ if (points.length < 2) return "";
97
+ return `${seriesLinePath(points)}L${points[points.length - 1].x.toFixed(2)},${baseline}L${points[0].x.toFixed(2)},${baseline}Z`;
98
+ }
99
+ //#endregion
100
+ export { normalizeSeries, periodDelta, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale };
@@ -42,6 +42,19 @@ export declare const metricLayouts: {
42
42
  readonly 5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 max-sm:[&>div:not(:nth-child(2n+1))]:border-l sm:max-lg:[&>div:not(:nth-child(3n+1))]:border-l lg:[&>div:not(:nth-child(5n+1))]:border-l";
43
43
  readonly 6: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 max-sm:[&>div:not(:nth-child(2n+1))]:border-l sm:max-lg:[&>div:not(:nth-child(3n+1))]:border-l lg:[&>div:not(:nth-child(6n+1))]:border-l";
44
44
  };
45
+ /** Hand-rolled SVG charts: every stroke and fill is currentColor against a
46
+ * token class, so ink stays theme-aware with no hardcoded hues. Charts draw
47
+ * lines and text only; the grouping plane (border, surface) is caller-owned. */
48
+ export declare const chartPresentation: {
49
+ readonly sparkline: "h-9 w-full text-primary";
50
+ readonly root: "h-auto w-full";
51
+ readonly axis: "text-muted-foreground";
52
+ readonly gridLine: "opacity-20";
53
+ readonly referenceLine: "opacity-60";
54
+ readonly primarySeries: "text-primary";
55
+ readonly secondarySeries: "text-muted-foreground";
56
+ readonly area: "opacity-10";
57
+ };
45
58
  export declare const dialogPresentation: {
46
59
  readonly overlay: "fixed inset-0 z-50 bg-black/40";
47
60
  readonly transition: "data-[state=open]:[animation:tangle-surface-present_var(--motion-surface)_both] data-[state=delayed-open]:[animation:tangle-surface-present_var(--motion-surface)_both] data-[state=instant-open]:[animation:tangle-surface-present_var(--motion-surface)_both] data-[state=closed]:[animation:tangle-surface-absent_var(--motion-dismiss)_both] motion-reduce:animate-none!";
@@ -89,6 +89,19 @@ const metricLayouts = {
89
89
  5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 max-sm:[&>div:not(:nth-child(2n+1))]:border-l sm:max-lg:[&>div:not(:nth-child(3n+1))]:border-l lg:[&>div:not(:nth-child(5n+1))]:border-l",
90
90
  6: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 max-sm:[&>div:not(:nth-child(2n+1))]:border-l sm:max-lg:[&>div:not(:nth-child(3n+1))]:border-l lg:[&>div:not(:nth-child(6n+1))]:border-l"
91
91
  };
92
+ /** Hand-rolled SVG charts: every stroke and fill is currentColor against a
93
+ * token class, so ink stays theme-aware with no hardcoded hues. Charts draw
94
+ * lines and text only; the grouping plane (border, surface) is caller-owned. */
95
+ const chartPresentation = {
96
+ sparkline: "h-9 w-full text-primary",
97
+ root: "h-auto w-full",
98
+ axis: "text-muted-foreground",
99
+ gridLine: "opacity-20",
100
+ referenceLine: "opacity-60",
101
+ primarySeries: "text-primary",
102
+ secondarySeries: "text-muted-foreground",
103
+ area: "opacity-10"
104
+ };
92
105
  const dialogPresentation = {
93
106
  overlay: "fixed inset-0 z-50 bg-black/40",
94
107
  transition: surfaceMotion,
@@ -181,4 +194,4 @@ const tabsPresentation = {
181
194
  }
182
195
  };
183
196
  //#endregion
184
- export { bindDialog, buttonVariants, cardPresentation, controlHeight, controlMotion, controlRadius, controlSizes, controlText, dialogPresentation, emptyStatePresentation, fieldPresentation, fieldSizes, fieldTouchText, helpPresentation, inputVariants, ixControlSoft, ixSelected, ixTabUnderline, labelVariants, metricLayouts, metricPresentation, tablePresentation, tabsPresentation };
197
+ export { bindDialog, buttonVariants, cardPresentation, chartPresentation, controlHeight, controlMotion, controlRadius, controlSizes, controlText, dialogPresentation, emptyStatePresentation, fieldPresentation, fieldSizes, fieldTouchText, helpPresentation, inputVariants, ixControlSoft, ixSelected, ixTabUnderline, labelVariants, metricLayouts, metricPresentation, tablePresentation, tabsPresentation };
@@ -0,0 +1,47 @@
1
+ import { SeriesPointInput } from "../lib/series.js";
2
+ import * as React from "react";
3
+ //#region src/primitives/metric-chart.d.ts
4
+ export interface ChartReferenceLine {
5
+ value: number;
6
+ label?: string;
7
+ /** Which reading the line applies to for a dual series. A secondary line
8
+ * on a single-reading series is not drawn. */
9
+ series?: "primary" | "secondary";
10
+ }
11
+ export type MetricChartProps = Omit<React.SVGAttributes<SVGSVGElement>, "points"> & {
12
+ points: SeriesPointInput[];
13
+ /** Accessible name; also rendered as the svg title. */
14
+ title: string;
15
+ /** Unit noun for the generated description ("bpm", "ms"). */
16
+ unit?: string;
17
+ /** Fraction digits for tick labels and the description. Defaults to a
18
+ * maximum of two. */
19
+ decimals?: number;
20
+ referenceLines?: ChartReferenceLine[];
21
+ /** Overrides the generated <desc> summary. */
22
+ description?: string;
23
+ formatValue?: (value: number) => string;
24
+ formatTime?: (at: number) => string;
25
+ };
26
+ /**
27
+ * A labelled line chart: y gridlines, x date ticks, optional dashed
28
+ * reference lines and a dotted secondary series for dual readings
29
+ * (`value2`). Hand-rolled SVG, viewBox-scaled, currentColor throughout.
30
+ */
31
+ declare const MetricChart: React.ForwardRefExoticComponent<Omit<React.SVGAttributes<SVGSVGElement>, "points"> & {
32
+ points: SeriesPointInput[];
33
+ /** Accessible name; also rendered as the svg title. */
34
+ title: string;
35
+ /** Unit noun for the generated description ("bpm", "ms"). */
36
+ unit?: string;
37
+ /** Fraction digits for tick labels and the description. Defaults to a
38
+ * maximum of two. */
39
+ decimals?: number;
40
+ referenceLines?: ChartReferenceLine[];
41
+ /** Overrides the generated <desc> summary. */
42
+ description?: string;
43
+ formatValue?: (value: number) => string;
44
+ formatTime?: (at: number) => string;
45
+ } & React.RefAttributes<SVGSVGElement>>;
46
+ //#endregion
47
+ export { MetricChart };
@@ -0,0 +1,155 @@
1
+ import { cn } from "../lib/utils.js";
2
+ import { chartPresentation } from "../presentation.js";
3
+ import { normalizeSeries, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale } from "../lib/series.js";
4
+ import * as React from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/primitives/metric-chart.tsx
7
+ const defaultTimeLabel = (at) => new Date(at).toLocaleDateString(void 0, {
8
+ month: "short",
9
+ day: "numeric"
10
+ });
11
+ const defaultValueLabel = (decimals) => (value) => value.toLocaleString(void 0, decimals === void 0 ? { maximumFractionDigits: 2 } : {
12
+ minimumFractionDigits: decimals,
13
+ maximumFractionDigits: decimals
14
+ });
15
+ /**
16
+ * A labelled line chart: y gridlines, x date ticks, optional dashed
17
+ * reference lines and a dotted secondary series for dual readings
18
+ * (`value2`). Hand-rolled SVG, viewBox-scaled, currentColor throughout.
19
+ */
20
+ const MetricChart = React.forwardRef(({ points, title, unit, decimals, referenceLines, description, formatValue, formatTime, className, ...props }, ref) => {
21
+ const series = normalizeSeries(points);
22
+ const width = 680;
23
+ const height = 260;
24
+ const padX = 46;
25
+ const padY = 16;
26
+ const dual = series.some((point) => point.value2 !== void 0);
27
+ const lines = (referenceLines ?? []).filter((line) => line.series !== "secondary" || dual);
28
+ const extent = seriesExtent(series, { include: lines.map((line) => line.value) });
29
+ const plot = seriesScale(extent, 626, height, padY);
30
+ const xAt = (at) => padX + plot.x(at);
31
+ const yAt = plot.y;
32
+ const { lo, hi, tLo, tHi } = extent;
33
+ const primary = series.map((point) => ({
34
+ x: xAt(point.at),
35
+ y: yAt(point.value)
36
+ }));
37
+ const secondary = series.filter((point) => point.value2 !== void 0).map((point) => ({
38
+ x: xAt(point.at),
39
+ y: yAt(point.value2)
40
+ }));
41
+ const ticks = Array.from({ length: 4 }, (_, index) => lo + (hi - lo) * (index + 1) / 5);
42
+ const xTicks = [
43
+ tLo,
44
+ tLo + (tHi - tLo) / 2,
45
+ tHi
46
+ ];
47
+ const lastPrimary = primary[primary.length - 1];
48
+ const valueLabel = formatValue ?? defaultValueLabel(decimals);
49
+ const timeLabel = formatTime ?? defaultTimeLabel;
50
+ const values = series.map((point) => point.value);
51
+ const describe = description ?? `${title}: ${series.length} readings from ${timeLabel(tLo)} to ${timeLabel(tHi)}, min ${valueLabel(series.length > 0 ? Math.min(...values) : 0)}, max ${valueLabel(series.length > 0 ? Math.max(...values) : 0)}, average ${valueLabel(seriesMean(values) ?? 0)}${unit ? ` ${unit}` : ""}.`;
52
+ return /* @__PURE__ */ jsxs("svg", {
53
+ ref,
54
+ viewBox: `0 0 ${width} ${height}`,
55
+ role: "img",
56
+ "aria-label": title,
57
+ className: cn(chartPresentation.root, className),
58
+ ...props,
59
+ children: [
60
+ /* @__PURE__ */ jsx("title", { children: title }),
61
+ /* @__PURE__ */ jsx("desc", { children: describe }),
62
+ series.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
63
+ ticks.map((tick) => /* @__PURE__ */ jsxs("g", {
64
+ className: chartPresentation.axis,
65
+ children: [/* @__PURE__ */ jsx("line", {
66
+ x1: padX,
67
+ x2: 672,
68
+ y1: yAt(tick),
69
+ y2: yAt(tick),
70
+ stroke: "currentColor",
71
+ strokeWidth: "1",
72
+ className: chartPresentation.gridLine
73
+ }), /* @__PURE__ */ jsx("text", {
74
+ x: 38,
75
+ y: yAt(tick) + 4,
76
+ textAnchor: "end",
77
+ fontSize: "11",
78
+ fill: "currentColor",
79
+ children: valueLabel(tick)
80
+ })]
81
+ }, tick)),
82
+ xTicks.map((tick, index) => /* @__PURE__ */ jsx("text", {
83
+ className: chartPresentation.axis,
84
+ fontSize: "11",
85
+ fill: "currentColor",
86
+ x: xAt(tick),
87
+ y: 256,
88
+ textAnchor: index === 0 ? "start" : index === xTicks.length - 1 ? "end" : "middle",
89
+ children: timeLabel(tick)
90
+ }, tick)),
91
+ lines.map((line, index) => /* @__PURE__ */ jsxs("g", {
92
+ className: chartPresentation.axis,
93
+ children: [/* @__PURE__ */ jsx("line", {
94
+ x1: padX,
95
+ x2: 672,
96
+ y1: yAt(line.value),
97
+ y2: yAt(line.value),
98
+ stroke: "currentColor",
99
+ strokeWidth: "1.25",
100
+ strokeDasharray: "5 4",
101
+ className: chartPresentation.referenceLine
102
+ }), line.label && /* @__PURE__ */ jsx("text", {
103
+ x: 668,
104
+ y: yAt(line.value) - 5,
105
+ textAnchor: "end",
106
+ fontSize: "11",
107
+ fill: "currentColor",
108
+ children: line.label
109
+ })]
110
+ }, line.label ?? index)),
111
+ primary.length > 1 && /* @__PURE__ */ jsx("path", {
112
+ d: seriesAreaPath(primary, yAt(lo)),
113
+ fill: "currentColor",
114
+ stroke: "none",
115
+ className: cn(chartPresentation.primarySeries, chartPresentation.area)
116
+ }),
117
+ /* @__PURE__ */ jsx("path", {
118
+ d: seriesLinePath(primary),
119
+ fill: "none",
120
+ stroke: "currentColor",
121
+ strokeWidth: "2",
122
+ strokeLinejoin: "round",
123
+ strokeLinecap: "round",
124
+ className: chartPresentation.primarySeries
125
+ }),
126
+ secondary.length > 0 && /* @__PURE__ */ jsx("path", {
127
+ d: seriesLinePath(secondary),
128
+ fill: "none",
129
+ stroke: "currentColor",
130
+ strokeWidth: "2",
131
+ strokeLinejoin: "round",
132
+ strokeLinecap: "round",
133
+ strokeDasharray: "2 5",
134
+ className: chartPresentation.secondarySeries
135
+ }),
136
+ primary.length === 1 ? /* @__PURE__ */ jsx("circle", {
137
+ cx: primary[0].x,
138
+ cy: primary[0].y,
139
+ r: "4",
140
+ fill: "currentColor",
141
+ className: chartPresentation.primarySeries
142
+ }) : lastPrimary && /* @__PURE__ */ jsx("circle", {
143
+ cx: lastPrimary.x,
144
+ cy: lastPrimary.y,
145
+ r: "3.5",
146
+ fill: "currentColor",
147
+ className: chartPresentation.primarySeries
148
+ })
149
+ ] })
150
+ ]
151
+ });
152
+ });
153
+ MetricChart.displayName = "MetricChart";
154
+ //#endregion
155
+ export { MetricChart };
@@ -0,0 +1,16 @@
1
+ import { SeriesPointInput } from "../lib/series.js";
2
+ import * as React from "react";
3
+ //#region src/primitives/series-sparkline.d.ts
4
+ export type SeriesSparklineProps = Omit<React.SVGAttributes<SVGSVGElement>, "points"> & {
5
+ points: SeriesPointInput[];
6
+ /** Accessible name; also rendered as the svg title. */
7
+ label: string;
8
+ };
9
+ /** Inline trend glyph: viewBox-scaled, currentColor against `text-primary`. */
10
+ declare const SeriesSparkline: React.ForwardRefExoticComponent<Omit<React.SVGAttributes<SVGSVGElement>, "points"> & {
11
+ points: SeriesPointInput[];
12
+ /** Accessible name; also rendered as the svg title. */
13
+ label: string;
14
+ } & React.RefAttributes<SVGSVGElement>>;
15
+ //#endregion
16
+ export { SeriesSparkline };
@@ -0,0 +1,53 @@
1
+ import { cn } from "../lib/utils.js";
2
+ import { chartPresentation } from "../presentation.js";
3
+ import { normalizeSeries, seriesAreaPath, seriesExtent, seriesLinePath, seriesScale } from "../lib/series.js";
4
+ import * as React from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/primitives/series-sparkline.tsx
7
+ /** Inline trend glyph: viewBox-scaled, currentColor against `text-primary`. */
8
+ const SeriesSparkline = React.forwardRef(({ points, label, className, ...props }, ref) => {
9
+ const series = normalizeSeries(points);
10
+ const width = 120;
11
+ const height = 36;
12
+ const scale = seriesScale(seriesExtent(series), width, height, 3);
13
+ const placed = series.map((point) => ({
14
+ x: scale.x(point.at),
15
+ y: scale.y(point.value)
16
+ }));
17
+ const last = placed[placed.length - 1];
18
+ return /* @__PURE__ */ jsxs("svg", {
19
+ ref,
20
+ viewBox: `0 0 ${width} ${height}`,
21
+ preserveAspectRatio: "none",
22
+ role: "img",
23
+ "aria-label": label,
24
+ className: cn(chartPresentation.sparkline, className),
25
+ ...props,
26
+ children: [
27
+ /* @__PURE__ */ jsx("title", { children: label }),
28
+ placed.length > 1 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("path", {
29
+ d: seriesAreaPath(placed, 33),
30
+ fill: "currentColor",
31
+ className: chartPresentation.area,
32
+ stroke: "none"
33
+ }), /* @__PURE__ */ jsx("path", {
34
+ d: seriesLinePath(placed),
35
+ fill: "none",
36
+ stroke: "currentColor",
37
+ strokeWidth: "1.5",
38
+ strokeLinejoin: "round",
39
+ strokeLinecap: "round",
40
+ vectorEffect: "non-scaling-stroke"
41
+ })] }),
42
+ last && /* @__PURE__ */ jsx("circle", {
43
+ cx: last.x,
44
+ cy: last.y,
45
+ r: "2",
46
+ fill: "currentColor"
47
+ })
48
+ ]
49
+ });
50
+ });
51
+ SeriesSparkline.displayName = "SeriesSparkline";
52
+ //#endregion
53
+ export { SeriesSparkline };
@@ -56,6 +56,9 @@ import { Wizard, WizardProps, WizardStep, WizardStepProps } from "./primitives/w
56
56
  import { HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger } from "./primitives/hover-card.js";
57
57
  import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./primitives/breadcrumb.js";
58
58
  import { Metric, MetricProps, MetricStrip, MetricStripProps } from "./primitives/metric-strip.js";
59
+ import { PeriodDelta, SeriesExtent, SeriesPoint, SeriesPointInput, SeriesScale, normalizeSeries, periodDelta, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale } from "./lib/series.js";
60
+ import { SeriesSparkline, SeriesSparklineProps } from "./primitives/series-sparkline.js";
61
+ import { ChartReferenceLine, MetricChart, MetricChartProps } from "./primitives/metric-chart.js";
59
62
  import { FilterField, FilterFieldProps, Toolbar, ToolbarProps } from "./primitives/toolbar.js";
60
63
  import { Logo, LogoProps, TangleKnot } from "@tangle-network/brand";
61
- export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTone, ArtifactPane, type ArtifactPaneProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CATEGORY_TONES, Calendar, type CalendarDate, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CardTitleProps, type CategoryTone, Checkbox, Chip, type ChipProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Field, type FieldProps, FilterField, type FilterFieldProps, Heading, type HeadingProps, type HeadingVariant, HelpText, type HelpTextProps, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, type IconTileProps, InlineCode, type InlineCodeProps, Input, type InputProps, Label, Logo, type LogoProps, Metric, type MetricProps, MetricStrip, type MetricStripProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingsList, type SettingsListAction, type SettingsListColumns, SettingsListItem, type SettingsListItemProps, type SettingsListMenuItem, type SettingsListProps, SettingsRow, type SettingsRowLayout, type SettingsRowProps, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, type StatCardProps, StatusPill, type StatusPillProps, type StatusTone, Switch, TONE_CLASSES, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TangleKnot, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThemeToggle, TimeSelect, type TimeSelectProps, type Toast, ToastContainer, ToastProvider, type Tone, type ToneClasses, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadFile, UploadProgress, type UploadProgressProps, Wizard, type WizardProps, WizardStep, type WizardStepProps, badgeVariants, buttonVariants, fieldMessageId, formatCalendarDate, initialsOf, localToday, parseCalendarDate, toneFor, useTheme, useToast };
64
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTone, ArtifactPane, type ArtifactPaneProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CATEGORY_TONES, Calendar, type CalendarDate, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CardTitleProps, type CategoryTone, type ChartReferenceLine, Checkbox, Chip, type ChipProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Field, type FieldProps, FilterField, type FilterFieldProps, Heading, type HeadingProps, type HeadingVariant, HelpText, type HelpTextProps, HoverCard, HoverCardContent, HoverCardDescription, HoverCardHeader, HoverCardTitle, HoverCardTrigger, IconTile, type IconTileProps, InlineCode, type InlineCodeProps, Input, type InputProps, Label, Logo, type LogoProps, Metric, MetricChart, type MetricChartProps, type MetricProps, MetricStrip, type MetricStripProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pagination, type PaginationProps, type PeriodDelta, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeriesExtent, type SeriesPoint, type SeriesPointInput, type SeriesScale, SeriesSparkline, type SeriesSparklineProps, SettingsList, type SettingsListAction, type SettingsListColumns, SettingsListItem, type SettingsListItemProps, type SettingsListMenuItem, type SettingsListProps, SettingsRow, type SettingsRowLayout, type SettingsRowProps, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, Slider, StatCard, type StatCardProps, StatusPill, type StatusPillProps, type StatusTone, Switch, TONE_CLASSES, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TangleKnot, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThemeToggle, TimeSelect, type TimeSelectProps, type Toast, ToastContainer, ToastProvider, type Tone, type ToneClasses, Toolbar, type ToolbarProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadFile, UploadProgress, type UploadProgressProps, Wizard, type WizardProps, WizardStep, type WizardStepProps, badgeVariants, buttonVariants, fieldMessageId, formatCalendarDate, initialsOf, localToday, normalizeSeries, parseCalendarDate, periodDelta, seriesAreaPath, seriesExtent, seriesLinePath, seriesMean, seriesScale, toneFor, useTheme, useToast };