@zovaris/sephiro 1.0.0 → 1.2.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/index.d.ts CHANGED
@@ -68,7 +68,7 @@ import { TreeItem, TreeView, TreeViewProps } from "./tree-view.js";
68
68
  import { Carousel, CarouselProps, slideAfter } from "./carousel.js";
69
69
  import { DateField, DateFieldProps, formatDay } from "./date-field.js";
70
70
  import { DateRangeField, DateRangeFieldProps, dayFromSegments, orderRange, segmentsOf, stepSegment, typeSegment } from "./date-range-field.js";
71
- import { a as ToastViewportProps, c as SpringToastOptions, d as SpringToastRecord, f as SpringToastTone, h as springToast, i as ToastViewport, l as SpringToastPatch, m as SpringToasterProps, n as Toast, o as toast, p as SpringToaster, r as ToastProps, s as SpringToastAction, u as SpringToastPosition } from "./index-DRXUXEa8.js";
71
+ import { _ as ToastProgressProps, a as ToastViewportProps, c as SpringToastOptions, d as SpringToastRecord, f as SpringToastTone, g as ToastProgress, h as springToast, i as ToastViewport, l as SpringToastPatch, m as SpringToasterProps, n as Toast, o as toast, p as SpringToaster, r as ToastProps, s as SpringToastAction, u as SpringToastPosition } from "./index-oeGST-S6.js";
72
72
  import { Toolbar, ToolbarProps } from "./toolbar.js";
73
73
  import { Tooltip, TooltipGroup, TooltipGroupProps, TooltipProps } from "./tooltip.js";
74
74
  import { AlertDialog, AlertDialogProps } from "./alert-dialog.js";
@@ -120,4 +120,4 @@ import { ScheduleItem, ScheduleList, ScheduleListProps, ScheduleTone } from "./s
120
120
  import { ScoreBand, ScoreBandChart, ScoreBandChartProps, ScoreBandTone } from "./score-band-chart.js";
121
121
  import { DecayChart, DecayChartProps, DecayDose, DecayModel, DecayPeak, DecaySample, buildDecayChart, decayAmount, niceCeiling } from "./decay-chart.js";
122
122
  import { BudgetCategory, BudgetSummary, BudgetSummaryProps, BudgetTone, budgetPercent, budgetTone } from "./budget-summary.js";
123
- export { Accordion, type AccordionItem, type AccordionProps, ActivityHeatmap, type ActivityHeatmapProps, AlertDialog, type AlertDialogProps, AnimatedNumber, type AnimatedNumberProps, ApprovalCard, type ApprovalCardProps, type ApprovalState, ArtifactCard, type ArtifactCardProps, type ArtifactState, Attachment, type AttachmentFile, type AttachmentProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BudgetCategory, BudgetSummary, type BudgetSummaryProps, type BudgetTone, Button, type ButtonProps, Calendar, type CalendarProps, type CalendarRange, Card, type CardProps, Carousel, type CarouselProps, ChangeTimeline, type ChangeTimelineFile, type ChangeTimelinePoint, type ChangeTimelineProps, Chart, type ChartProps, type ChartSeries, ChatInput, type ChatInputMatch, type ChatInputMessage, type ChatInputProps, type ChatInputState, type ChatInputSuggestion, type ChatInputTrigger, ChatScroller, type ChatScrollerProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, Citation, type CitationProps, type CitationSource, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, ContextMenu, type ContextMenuProps, ContextMeter, type ContextMeterProps, type ControlDensity, type ControlSize, type Conversation, ConversationList, type ConversationListProps, CopyButton, type CopyButtonProps, type CopyController, type CopyState, DateField, type DateFieldProps, DateRangeField, type DateRangeFieldProps, DateTimeField, type DateTimeFieldProps, type DateTimeValue, DecayChart, type DecayChartProps, type DecayDose, type DecayModel, type DecayPeak, type DecaySample, Delta, type DeltaProps, Dialog, type DialogProps, type DiffHunk, type DiffLine, DiffView, type DiffViewProps, DonutChart, type DonutChartProps, type DonutSegment, type DonutTone, DotMatrixChart, type DotMatrixChartProps, type DotMatrixMarker, type DotMatrixPoint, type DotMatrixTone, DragToConfirm, type DragToConfirmPhase, type DragToConfirmProps, Drawer, type DrawerProps, type DrawerSide, type DropzoneRejectReason, type DropzoneValidation, type DropzoneValidationResult, EmptyState, type EmptyStateProps, EventSparkline, type EventSparklineMarker, type EventSparklineProps, type EventSparklineTone, Field, FieldMessage, type FieldMessageProps, type FieldProps, type FollowUpSuggestion, FollowUpSuggestions, type FollowUpSuggestionsProps, Gauge, type GaugeProps, type GaugeSegment, type GaugeTone, type HeatmapCell, type HeatmapDay, type HeatmapLevel, type HeatmapModel, type HeatmapMonthLabel, HoldButton, type HoldButtonProps, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, ImagePreview, type ImagePreviewProps, Input, type InputProps, Kbd, type KbdProps, Link, type LinkProps, MagneticDropzone, type MagneticDropzoneProps, Menu, type MenuItem, type MenuProps, Menubar, type MenubarMenu, type MenubarProps, Message, MessageActions, type MessageActionsLabels, type MessageActionsProps, type MessageFeedback, type MessageProps, type MessageState, type MetadataEntry, MetadataList, type MetadataListLayout, type MetadataListProps, Meter, type MeterProps, type MeterTone, MetricCard, type MetricCardProps, type MetricCardTone, MiddleTruncate, type MiddleTruncateProps, type ModelOption, ModelPicker, type ModelPickerProps, type MotionSpeed, Notice, type NoticeProps, NumberInput, type NumberInputProps, OTPInput, type OTPInputProps, type OTPPattern, type OTPState, OverflowList, type OverflowListProps, Pagination, type PaginationProps, PasswordField, type PasswordFieldProps, PlanCard, type PlanCardProps, type PlanCardState, type PlanStep, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, type Presence, Progress, type ProgressProps, QuestionCard, type QuestionCardProps, type QuestionOption, RUN_STATES, RadialProgress, type RadialProgressProps, RadioGroup, type RadioGroupProps, type RadioOption, RangeSlider, type RangeSliderProps, type RangeValue, type ReasoningStep, ReasoningSteps, type ReasoningStepsProps, type Renderable, type RenderableElement, Resizable, type ResizableProps, Reveal, type RevealProps, RunMatrix, type RunMatrixProps, type RunMatrixRow, type RunState, type ScheduleItem, ScheduleList, type ScheduleListProps, type ScheduleTone, type ScoreBand, ScoreBandChart, type ScoreBandChartProps, type ScoreBandTone, ScrollArea, type ScrollAreaProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, type ShortcutEntry, type ShortcutGroup, ShortcutSheet, type ShortcutSheetProps, SidePanel, type SidePanelProps, type SidePanelSide, type SidePanelState, Sidebar, type SidebarCollapsedMode, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarSide, Skeleton, type SkeletonProps, Slider, type SliderProps, SourcesPanel, type SourcesPanelProps, Sparkline, type SparklineProps, type SparklineTone, Spinner, type SpinnerProps, SplitButton, type SplitButtonProps, type SpringToastAction, type SpringToastOptions, type SpringToastPatch, type SpringToastPosition, type SpringToastRecord, type SpringToastTone, SpringToaster, type SpringToasterProps, Stat, StatGroup, type StatGroupProps, type StatProps, StatusMark, type StatusMarkProps, type StatusMarkState, Stepper, type StepperProps, type StepperStep, StreamingText, type StreamingTextProps, Surface, type SurfaceProps, type TabItem, Table, type TableColumn, type TableProps, type TableSort, type TableSortDirection, Tabs, type TabsProps, TagInput, type TagInputProps, TaskList, type TaskListItem, type TaskListProps, type TaskState, Terminal, type TerminalLine, type TerminalProps, type TerminalTone, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Timeline, type TimelineItem, type TimelineProps, Timestamp, type TimestampFormat, type TimestampProps, Toast, type ToastProps, ToastViewport, type ToastViewportProps, Toggle, type ToggleProps, type ToolCall, ToolCalls, type ToolCallsProps, Toolbar, type ToolbarProps, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipProps, type TreeItem, TreeView, type TreeViewProps, type UseCopyOptions, VirtualList, type VirtualListProps, addTag, budgetPercent, budgetTone, buildDecayChart, buildHeatmap, contextTone, copyStateLabel, dayFromSegments, decayAmount, describeDropzoneResult, filterChatInputSuggestions, findChatInputTrigger, formatDay, formatTime, formatTokenCount, gaugePercent, heatmapIso, heatmapMs, laneBounds, levelFor, matchChatInputSuggestions, meterPercent, motionDurationMs, niceCeiling, orderRange, parseDurationMs, performCopy, removeTag, replaceChatInputTrigger, runCounts, segmentsOf, shiftDay, slideAfter, splitMiddle, springToast, stepSegment, stepTimeSegment, timeFromSegments, timeSegments, toast, typeSegment, typeTimeSegment, useCopy, usePresence, validateDropzoneFiles, weekdayOf };
123
+ export { Accordion, type AccordionItem, type AccordionProps, ActivityHeatmap, type ActivityHeatmapProps, AlertDialog, type AlertDialogProps, AnimatedNumber, type AnimatedNumberProps, ApprovalCard, type ApprovalCardProps, type ApprovalState, ArtifactCard, type ArtifactCardProps, type ArtifactState, Attachment, type AttachmentFile, type AttachmentProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BudgetCategory, BudgetSummary, type BudgetSummaryProps, type BudgetTone, Button, type ButtonProps, Calendar, type CalendarProps, type CalendarRange, Card, type CardProps, Carousel, type CarouselProps, ChangeTimeline, type ChangeTimelineFile, type ChangeTimelinePoint, type ChangeTimelineProps, Chart, type ChartProps, type ChartSeries, ChatInput, type ChatInputMatch, type ChatInputMessage, type ChatInputProps, type ChatInputState, type ChatInputSuggestion, type ChatInputTrigger, ChatScroller, type ChatScrollerProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, Citation, type CitationProps, type CitationSource, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, ContextMenu, type ContextMenuProps, ContextMeter, type ContextMeterProps, type ControlDensity, type ControlSize, type Conversation, ConversationList, type ConversationListProps, CopyButton, type CopyButtonProps, type CopyController, type CopyState, DateField, type DateFieldProps, DateRangeField, type DateRangeFieldProps, DateTimeField, type DateTimeFieldProps, type DateTimeValue, DecayChart, type DecayChartProps, type DecayDose, type DecayModel, type DecayPeak, type DecaySample, Delta, type DeltaProps, Dialog, type DialogProps, type DiffHunk, type DiffLine, DiffView, type DiffViewProps, DonutChart, type DonutChartProps, type DonutSegment, type DonutTone, DotMatrixChart, type DotMatrixChartProps, type DotMatrixMarker, type DotMatrixPoint, type DotMatrixTone, DragToConfirm, type DragToConfirmPhase, type DragToConfirmProps, Drawer, type DrawerProps, type DrawerSide, type DropzoneRejectReason, type DropzoneValidation, type DropzoneValidationResult, EmptyState, type EmptyStateProps, EventSparkline, type EventSparklineMarker, type EventSparklineProps, type EventSparklineTone, Field, FieldMessage, type FieldMessageProps, type FieldProps, type FollowUpSuggestion, FollowUpSuggestions, type FollowUpSuggestionsProps, Gauge, type GaugeProps, type GaugeSegment, type GaugeTone, type HeatmapCell, type HeatmapDay, type HeatmapLevel, type HeatmapModel, type HeatmapMonthLabel, HoldButton, type HoldButtonProps, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, ImagePreview, type ImagePreviewProps, Input, type InputProps, Kbd, type KbdProps, Link, type LinkProps, MagneticDropzone, type MagneticDropzoneProps, Menu, type MenuItem, type MenuProps, Menubar, type MenubarMenu, type MenubarProps, Message, MessageActions, type MessageActionsLabels, type MessageActionsProps, type MessageFeedback, type MessageProps, type MessageState, type MetadataEntry, MetadataList, type MetadataListLayout, type MetadataListProps, Meter, type MeterProps, type MeterTone, MetricCard, type MetricCardProps, type MetricCardTone, MiddleTruncate, type MiddleTruncateProps, type ModelOption, ModelPicker, type ModelPickerProps, type MotionSpeed, Notice, type NoticeProps, NumberInput, type NumberInputProps, OTPInput, type OTPInputProps, type OTPPattern, type OTPState, OverflowList, type OverflowListProps, Pagination, type PaginationProps, PasswordField, type PasswordFieldProps, PlanCard, type PlanCardProps, type PlanCardState, type PlanStep, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, type Presence, Progress, type ProgressProps, QuestionCard, type QuestionCardProps, type QuestionOption, RUN_STATES, RadialProgress, type RadialProgressProps, RadioGroup, type RadioGroupProps, type RadioOption, RangeSlider, type RangeSliderProps, type RangeValue, type ReasoningStep, ReasoningSteps, type ReasoningStepsProps, type Renderable, type RenderableElement, Resizable, type ResizableProps, Reveal, type RevealProps, RunMatrix, type RunMatrixProps, type RunMatrixRow, type RunState, type ScheduleItem, ScheduleList, type ScheduleListProps, type ScheduleTone, type ScoreBand, ScoreBandChart, type ScoreBandChartProps, type ScoreBandTone, ScrollArea, type ScrollAreaProps, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, type ShortcutEntry, type ShortcutGroup, ShortcutSheet, type ShortcutSheetProps, SidePanel, type SidePanelProps, type SidePanelSide, type SidePanelState, Sidebar, type SidebarCollapsedMode, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarSide, Skeleton, type SkeletonProps, Slider, type SliderProps, SourcesPanel, type SourcesPanelProps, Sparkline, type SparklineProps, type SparklineTone, Spinner, type SpinnerProps, SplitButton, type SplitButtonProps, type SpringToastAction, type SpringToastOptions, type SpringToastPatch, type SpringToastPosition, type SpringToastRecord, type SpringToastTone, SpringToaster, type SpringToasterProps, Stat, StatGroup, type StatGroupProps, type StatProps, StatusMark, type StatusMarkProps, type StatusMarkState, Stepper, type StepperProps, type StepperStep, StreamingText, type StreamingTextProps, Surface, type SurfaceProps, type TabItem, Table, type TableColumn, type TableProps, type TableSort, type TableSortDirection, Tabs, type TabsProps, TagInput, type TagInputProps, TaskList, type TaskListItem, type TaskListProps, type TaskState, Terminal, type TerminalLine, type TerminalProps, type TerminalTone, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Timeline, type TimelineItem, type TimelineProps, Timestamp, type TimestampFormat, type TimestampProps, Toast, ToastProgress, type ToastProgressProps, type ToastProps, ToastViewport, type ToastViewportProps, Toggle, type ToggleProps, type ToolCall, ToolCalls, type ToolCallsProps, Toolbar, type ToolbarProps, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipProps, type TreeItem, TreeView, type TreeViewProps, type UseCopyOptions, VirtualList, type VirtualListProps, addTag, budgetPercent, budgetTone, buildDecayChart, buildHeatmap, contextTone, copyStateLabel, dayFromSegments, decayAmount, describeDropzoneResult, filterChatInputSuggestions, findChatInputTrigger, formatDay, formatTime, formatTokenCount, gaugePercent, heatmapIso, heatmapMs, laneBounds, levelFor, matchChatInputSuggestions, meterPercent, motionDurationMs, niceCeiling, orderRange, parseDurationMs, performCopy, removeTag, replaceChatInputTrigger, runCounts, segmentsOf, shiftDay, slideAfter, splitMiddle, springToast, stepSegment, stepTimeSegment, timeFromSegments, timeSegments, toast, typeSegment, typeTimeSegment, useCopy, usePresence, validateDropzoneFiles, weekdayOf };
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ import { TreeView } from "./tree-view.js";
56
56
  import { Carousel, slideAfter } from "./carousel.js";
57
57
  import { DateField, formatDay } from "./date-field.js";
58
58
  import { DateRangeField, dayFromSegments, orderRange, segmentsOf, stepSegment, typeSegment } from "./date-range-field.js";
59
- import { a as springToast, i as SpringToaster, n as ToastViewport, r as toast, t as Toast } from "./Toast-CGHWMJFI.js";
59
+ import { a as springToast, i as SpringToaster, n as ToastViewport, o as ToastProgress, r as toast, t as Toast } from "./Toast-CrL3aSID.js";
60
60
  import { Toolbar } from "./toolbar.js";
61
61
  import { n as TooltipGroup, t as Tooltip } from "./Tooltip-Clb5PoSN.js";
62
62
  import { AlertDialog } from "./alert-dialog.js";
@@ -118,4 +118,4 @@ import { ScheduleList } from "./schedule-list.js";
118
118
  import { ScoreBandChart } from "./score-band-chart.js";
119
119
  import { DecayChart, buildDecayChart, decayAmount, niceCeiling } from "./decay-chart.js";
120
120
  import { BudgetSummary, budgetPercent, budgetTone } from "./budget-summary.js";
121
- export { Accordion, ActivityHeatmap, AlertDialog, AnimatedNumber, ApprovalCard, ArtifactCard, Attachment, Avatar, AvatarGroup, Badge, Breadcrumb, BudgetSummary, Button, Calendar, Card, Carousel, ChangeTimeline, Chart, ChatInput, ChatScroller, Checkbox, CheckboxGroup, Citation, CodeBlock, Collapsible, Combobox, CommandPalette, ContextMenu, ContextMeter, ConversationList, CopyButton, DateField, DateRangeField, DateTimeField, DecayChart, Delta, Dialog, DiffView, DonutChart, DotMatrixChart, DragToConfirm, Drawer, EmptyState, EventSparkline, Field, FieldMessage, FollowUpSuggestions, Gauge, HoldButton, HoverCard, IconButton, ImagePreview, Input, Kbd, Link, MagneticDropzone, Menu, Menubar, Message, MessageActions, MetadataList, Meter, MetricCard, MiddleTruncate, ModelPicker, Notice, NumberInput, OTPInput, OverflowList, Pagination, PasswordField, PlanCard, Popconfirm, Popover, Progress, QuestionCard, RUN_STATES, RadialProgress, RadioGroup, RangeSlider, ReasoningSteps, Resizable, Reveal, RunMatrix, ScheduleList, ScoreBandChart, ScrollArea, SearchField, SegmentedControl, Select, Separator, ShortcutSheet, SidePanel, Sidebar, Skeleton, Slider, SourcesPanel, Sparkline, Spinner, SplitButton, SpringToaster, Stat, StatGroup, StatusMark, Stepper, StreamingText, Surface, Table, Tabs, TagInput, TaskList, Terminal, Textarea, TimeField, Timeline, Timestamp, Toast, ToastViewport, Toggle, ToolCalls, Toolbar, Tooltip, TooltipGroup, TreeView, VirtualList, addTag, budgetPercent, budgetTone, buildDecayChart, buildHeatmap, contextTone, copyStateLabel, dayFromSegments, decayAmount, describeDropzoneResult, filterChatInputSuggestions, findChatInputTrigger, formatDay, formatTime, formatTokenCount, gaugePercent, heatmapIso, heatmapMs, laneBounds, levelFor, matchChatInputSuggestions, meterPercent, motionDurationMs, niceCeiling, orderRange, parseDurationMs, performCopy, removeTag, replaceChatInputTrigger, runCounts, segmentsOf, shiftDay, slideAfter, splitMiddle, springToast, stepSegment, stepTimeSegment, timeFromSegments, timeSegments, toast, typeSegment, typeTimeSegment, useCopy, usePresence, validateDropzoneFiles, weekdayOf };
121
+ export { Accordion, ActivityHeatmap, AlertDialog, AnimatedNumber, ApprovalCard, ArtifactCard, Attachment, Avatar, AvatarGroup, Badge, Breadcrumb, BudgetSummary, Button, Calendar, Card, Carousel, ChangeTimeline, Chart, ChatInput, ChatScroller, Checkbox, CheckboxGroup, Citation, CodeBlock, Collapsible, Combobox, CommandPalette, ContextMenu, ContextMeter, ConversationList, CopyButton, DateField, DateRangeField, DateTimeField, DecayChart, Delta, Dialog, DiffView, DonutChart, DotMatrixChart, DragToConfirm, Drawer, EmptyState, EventSparkline, Field, FieldMessage, FollowUpSuggestions, Gauge, HoldButton, HoverCard, IconButton, ImagePreview, Input, Kbd, Link, MagneticDropzone, Menu, Menubar, Message, MessageActions, MetadataList, Meter, MetricCard, MiddleTruncate, ModelPicker, Notice, NumberInput, OTPInput, OverflowList, Pagination, PasswordField, PlanCard, Popconfirm, Popover, Progress, QuestionCard, RUN_STATES, RadialProgress, RadioGroup, RangeSlider, ReasoningSteps, Resizable, Reveal, RunMatrix, ScheduleList, ScoreBandChart, ScrollArea, SearchField, SegmentedControl, Select, Separator, ShortcutSheet, SidePanel, Sidebar, Skeleton, Slider, SourcesPanel, Sparkline, Spinner, SplitButton, SpringToaster, Stat, StatGroup, StatusMark, Stepper, StreamingText, Surface, Table, Tabs, TagInput, TaskList, Terminal, Textarea, TimeField, Timeline, Timestamp, Toast, ToastProgress, ToastViewport, Toggle, ToolCalls, Toolbar, Tooltip, TooltipGroup, TreeView, VirtualList, addTag, budgetPercent, budgetTone, buildDecayChart, buildHeatmap, contextTone, copyStateLabel, dayFromSegments, decayAmount, describeDropzoneResult, filterChatInputSuggestions, findChatInputTrigger, formatDay, formatTime, formatTokenCount, gaugePercent, heatmapIso, heatmapMs, laneBounds, levelFor, matchChatInputSuggestions, meterPercent, motionDurationMs, niceCeiling, orderRange, parseDurationMs, performCopy, removeTag, replaceChatInputTrigger, runCounts, segmentsOf, shiftDay, slideAfter, splitMiddle, springToast, stepSegment, stepTimeSegment, timeFromSegments, timeSegments, toast, typeSegment, typeTimeSegment, useCopy, usePresence, validateDropzoneFiles, weekdayOf };
package/dist/themes.css CHANGED
@@ -66,9 +66,9 @@
66
66
  --sph-border-strong: #9d6475;
67
67
  --sph-text: #f6edf0;
68
68
  --sph-text-muted: #cbb9be;
69
- --sph-accent: #b85c79;
70
- --sph-accent-hover: #c96c89;
71
- --sph-accent-pressed: #9f4c67;
69
+ --sph-accent: #a8506d;
70
+ --sph-accent-hover: #b0577a;
71
+ --sph-accent-pressed: #934360;
72
72
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
73
73
  --sph-accent-strong: #e39aae;
74
74
  --sph-on-accent: #ffffff;
@@ -178,7 +178,7 @@
178
178
  --sph-on-accent: #ffffff;
179
179
  --sph-success: #4a9e5c;
180
180
  --sph-warning: #d4a843;
181
- --sph-danger: #d71921;
181
+ --sph-danger: #ff6b70;
182
182
  --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
183
183
  color-scheme: dark;
184
184
  }
@@ -275,19 +275,19 @@
275
275
  --sph-border-strong: #3a3a3a;
276
276
  --sph-text: #f5f5f3;
277
277
  --sph-text-muted: #c4c4c0;
278
- --sph-accent: #d71921;
279
- --sph-accent-hover: #c4161d;
280
- --sph-accent-pressed: #a8141b;
281
- --sph-accent-strong: #ef4444;
278
+ --sph-accent: #d4a84a;
279
+ --sph-accent-hover: #dfb75e;
280
+ --sph-accent-pressed: #b8903a;
281
+ --sph-accent-strong: #e8c77a;
282
282
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 16%, transparent);
283
- --sph-on-accent: #ffffff;
283
+ --sph-on-accent: #0a0a0a;
284
284
  --sph-success: #84a07c;
285
285
  --sph-success-soft: color-mix(in srgb, var(--sph-success) 15%, transparent);
286
- --sph-warning: #d4a84a;
286
+ --sph-warning: #e8944a;
287
287
  --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 15%, transparent);
288
- --sph-danger: #c25c4f;
288
+ --sph-danger: #d0695b;
289
289
  --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 15%, transparent);
290
- --sph-focus: #ea343c;
290
+ --sph-focus: #dfb75e;
291
291
  --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 26%, transparent);
292
292
  --sph-font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
293
293
  --sph-font-mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;
@@ -308,24 +308,252 @@
308
308
  --sph-border-strong: #b8b4a9;
309
309
  --sph-text: #18181b;
310
310
  --sph-text-muted: #3f3f46;
311
- --sph-accent: #c2151c;
312
- --sph-accent-hover: #a8141b;
313
- --sph-accent-pressed: #8f1017;
314
- --sph-accent-strong: #a8141b;
311
+ --sph-accent: #7a5a1c;
312
+ --sph-accent-hover: #66491a;
313
+ --sph-accent-pressed: #523a12;
314
+ --sph-accent-strong: #66491a;
315
315
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 13%, transparent);
316
316
  --sph-on-accent: #fafaf8;
317
- --sph-success: #5a7a52;
317
+ --sph-success: #4b6a44;
318
318
  --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
319
- --sph-warning: #a88030;
319
+ --sph-warning: #9a5a12;
320
320
  --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
321
321
  --sph-danger: #a8443a;
322
322
  --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 12%, transparent);
323
- --sph-focus: #c2151c;
323
+ --sph-focus: #7a5a1c;
324
324
  --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 20%, transparent);
325
325
  --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.14);
326
326
  color-scheme: light;
327
327
  }
328
328
 
329
+ /* Tinta — Radix Sand and Indigo, dark and light.
330
+ *
331
+ * Written against the Sephiro token contract: `data-sephiro-theme="tinta"` is
332
+ * the dark variant and `data-theme="light"` on the same element switches to the
333
+ * light one, the shape Sephiro's own presets use. Surfaces are Radix Sand, a graphite with barely any warmth,
334
+ * so the chrome stays quiet. The only colour is Radix Indigo,
335
+ * ink blue, kept for the action that matters. Status colours
336
+ * are Radix Grass, Amber and Red at their text steps.
337
+ */
338
+
339
+ [data-sephiro-theme="tinta"] {
340
+ --sph-bg: #111110;
341
+ --sph-surface: #191918;
342
+ --sph-surface-elevated: #222221;
343
+ --sph-raised: #2a2a28;
344
+ --sph-border: #3b3a37;
345
+ --sph-border-strong: #494844;
346
+
347
+ --sph-text: #eeeeec;
348
+ --sph-text-muted: #b5b3ad;
349
+
350
+ --sph-accent: #3e63dd;
351
+ --sph-accent-hover: #4a6ae0;
352
+ --sph-accent-pressed: #3358d4;
353
+ --sph-accent-strong: #9eb1ff;
354
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
355
+ --sph-on-accent: #ffffff;
356
+
357
+ --sph-success: #71d083;
358
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
359
+ --sph-warning: #ffca16;
360
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
361
+ --sph-danger: #ff9592;
362
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
363
+
364
+ --sph-focus: #9eb1ff;
365
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
366
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
367
+
368
+ color-scheme: dark;
369
+ }
370
+
371
+ [data-sephiro-theme="tinta"][data-theme="light"],
372
+ [data-theme="light"] [data-sephiro-theme="tinta"] {
373
+ --sph-bg: #fdfdfc;
374
+ --sph-surface: #f9f9f8;
375
+ --sph-surface-elevated: #f1f0ef;
376
+ --sph-raised: #e9e8e6;
377
+ --sph-border: #dad9d6;
378
+ --sph-border-strong: #cfceca;
379
+
380
+ --sph-text: #21201c;
381
+ --sph-text-muted: #63635e;
382
+
383
+ --sph-accent: #3e63dd;
384
+ --sph-accent-hover: #3358d4;
385
+ --sph-accent-pressed: #2f4fbf;
386
+ --sph-accent-strong: #3a5bc7;
387
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
388
+ --sph-on-accent: #ffffff;
389
+
390
+ --sph-success: #2a7e3b;
391
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
392
+ --sph-warning: #985800;
393
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
394
+ --sph-danger: #ce2c31;
395
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
396
+
397
+ --sph-focus: #3a5bc7;
398
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
399
+ --sph-shadow-popover:
400
+ 0 8px 24px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.05);
401
+
402
+ color-scheme: light;
403
+ }
404
+
405
+ /* Flexoki — ink on paper, by Steph Ango (stephango.com/flexoki).
406
+ *
407
+ * Every value is from the published palette. Dark uses the black/950/900 base
408
+ * and the 400 accents, light uses paper/50/100 and the 600 accents, as the
409
+ * palette's own theme roles do. Cyan is the accent. Where a palette role misses
410
+ * AA against Sephiro's surfaces, a step of the same scale further from the background
411
+ * stands in: muted text is base 300 in dark and 700 in light (the palette's
412
+ * tx-2 is 500 and 600), success and danger are 300 in dark and green 700 in
413
+ * light, and the light warning is yellow 800.
414
+ */
415
+
416
+ [data-sephiro-theme="flexoki"] {
417
+ --sph-bg: #100f0f;
418
+ --sph-surface: #1c1b1a;
419
+ --sph-surface-elevated: #282726;
420
+ --sph-raised: #343331;
421
+ --sph-border: #403e3c;
422
+ --sph-border-strong: #575653;
423
+
424
+ --sph-text: #cecdc3;
425
+ --sph-text-muted: #b7b5ac;
426
+
427
+ --sph-accent: #3aa99f;
428
+ --sph-accent-hover: #5abdac;
429
+ --sph-accent-pressed: #2f968d;
430
+ --sph-accent-strong: #5abdac;
431
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
432
+ --sph-on-accent: #100f0f;
433
+
434
+ --sph-success: #a0af54;
435
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
436
+ --sph-warning: #dfb431;
437
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
438
+ --sph-danger: #e8705f;
439
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
440
+
441
+ --sph-focus: #5abdac;
442
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
443
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
444
+
445
+ color-scheme: dark;
446
+ }
447
+
448
+ [data-sephiro-theme="flexoki"][data-theme="light"],
449
+ [data-theme="light"] [data-sephiro-theme="flexoki"] {
450
+ --sph-bg: #fffcf0;
451
+ --sph-surface: #f2f0e5;
452
+ --sph-surface-elevated: #fffcf0;
453
+ --sph-raised: #e6e4d9;
454
+ --sph-border: #dad8ce;
455
+ --sph-border-strong: #b7b5ac;
456
+
457
+ --sph-text: #100f0f;
458
+ --sph-text-muted: #575653;
459
+
460
+ --sph-accent: #24837b;
461
+ --sph-accent-hover: #1c6c66;
462
+ --sph-accent-pressed: #164f4a;
463
+ --sph-accent-strong: #1c6c66;
464
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
465
+ --sph-on-accent: #ffffff;
466
+
467
+ --sph-success: #536907;
468
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
469
+ --sph-warning: #664d01;
470
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
471
+ --sph-danger: #af3029;
472
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
473
+
474
+ --sph-focus: #1c6c66;
475
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
476
+ --sph-shadow-popover:
477
+ 0 8px 24px rgb(16 15 15 / 0.08), 0 1px 2px rgb(16 15 15 / 0.05);
478
+
479
+ color-scheme: light;
480
+ }
481
+
482
+ /* Pizarra — slate and teal, from Radix Colors.
483
+ *
484
+ * Surfaces are Radix Slate, a cool blue-grey; the accent is Radix Teal. Steps
485
+ * follow Radix's roles: 1–2 backgrounds, 3–4 components, 6–7 borders, 11–12
486
+ * text. Teal 9 is too light for a white label, so dark mode puts Slate 1 on it
487
+ * and light mode uses Teal 11 as the solid. Status colours are Radix Grass,
488
+ * Amber and Red at their text steps, the same as Tinta.
489
+ */
490
+
491
+ [data-sephiro-theme="pizarra"] {
492
+ --sph-bg: #111113;
493
+ --sph-surface: #18191b;
494
+ --sph-surface-elevated: #212225;
495
+ --sph-raised: #272a2d;
496
+ --sph-border: #363a3f;
497
+ --sph-border-strong: #43484e;
498
+
499
+ --sph-text: #edeef0;
500
+ --sph-text-muted: #b0b4ba;
501
+
502
+ --sph-accent: #12a594;
503
+ --sph-accent-hover: #0eb39e;
504
+ --sph-accent-pressed: #1a9a8a;
505
+ --sph-accent-strong: #0bd8b6;
506
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
507
+ --sph-on-accent: #111113;
508
+
509
+ --sph-success: #71d083;
510
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
511
+ --sph-warning: #ffca16;
512
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
513
+ --sph-danger: #ff9592;
514
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
515
+
516
+ --sph-focus: #0bd8b6;
517
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
518
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
519
+
520
+ color-scheme: dark;
521
+ }
522
+
523
+ [data-sephiro-theme="pizarra"][data-theme="light"],
524
+ [data-theme="light"] [data-sephiro-theme="pizarra"] {
525
+ --sph-bg: #fcfcfd;
526
+ --sph-surface: #f9f9fb;
527
+ --sph-surface-elevated: #f0f0f3;
528
+ --sph-raised: #e0e1e6;
529
+ --sph-border: #d9d9e0;
530
+ --sph-border-strong: #cdced6;
531
+
532
+ --sph-text: #1c2024;
533
+ --sph-text-muted: #60646c;
534
+
535
+ --sph-accent: #008573;
536
+ --sph-accent-hover: #027c6c;
537
+ --sph-accent-pressed: #047162;
538
+ --sph-accent-strong: #0d3d38;
539
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
540
+ --sph-on-accent: #ffffff;
541
+
542
+ --sph-success: #2a7e3b;
543
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
544
+ --sph-warning: #985800;
545
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
546
+ --sph-danger: #ce2c31;
547
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
548
+
549
+ --sph-focus: #008573;
550
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
551
+ --sph-shadow-popover:
552
+ 0 8px 24px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.05);
553
+
554
+ color-scheme: light;
555
+ }
556
+
329
557
  @supports (animation-timing-function: linear(0, 1)) {
330
558
  :where(:root, [data-sephiro-theme="default"], [data-sephiro-theme="dark"]) {
331
559
  --sph-ease-spring: linear(
package/dist/toast.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ToastViewportProps, c as SpringToastOptions, d as SpringToastRecord, f as SpringToastTone, h as springToast, i as ToastViewport, l as SpringToastPatch, m as SpringToasterProps, n as Toast, o as toast, p as SpringToaster, r as ToastProps, s as SpringToastAction, t as ExternalToast, u as SpringToastPosition } from "./index-DRXUXEa8.js";
2
- export { type ExternalToast, type SpringToastAction, type SpringToastOptions, type SpringToastPatch, type SpringToastPosition, type SpringToastRecord, type SpringToastTone, SpringToaster, type SpringToasterProps, Toast, ToastProps, ToastViewport, ToastViewportProps, springToast, toast };
1
+ import { _ as ToastProgressProps, a as ToastViewportProps, c as SpringToastOptions, d as SpringToastRecord, f as SpringToastTone, g as ToastProgress, h as springToast, i as ToastViewport, l as SpringToastPatch, m as SpringToasterProps, n as Toast, o as toast, p as SpringToaster, r as ToastProps, s as SpringToastAction, t as ExternalToast, u as SpringToastPosition } from "./index-oeGST-S6.js";
2
+ export { type ExternalToast, type SpringToastAction, type SpringToastOptions, type SpringToastPatch, type SpringToastPosition, type SpringToastRecord, type SpringToastTone, SpringToaster, type SpringToasterProps, Toast, ToastProgress, type ToastProgressProps, ToastProps, ToastViewport, ToastViewportProps, springToast, toast };
package/dist/toast.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as springToast, i as SpringToaster, n as ToastViewport, r as toast, t as Toast } from "./Toast-CGHWMJFI.js";
2
- export { SpringToaster, Toast, ToastViewport, springToast, toast };
1
+ import { a as springToast, i as SpringToaster, n as ToastViewport, o as ToastProgress, r as toast, t as Toast } from "./Toast-CrL3aSID.js";
2
+ export { SpringToaster, Toast, ToastProgress, ToastViewport, springToast, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zovaris/sephiro",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Reusable desktop UI primitives for React and Preact applications.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toast-CGHWMJFI.js","names":["SonnerToaster"],"sources":["../src/molecules/Toast/spring.tsx","../src/molecules/Toast/index.tsx"],"sourcesContent":["import { CheckIcon, InfoIcon, WarningIcon, XIcon } from \"@phosphor-icons/react\";\nimport { Spinner } from \"@/atoms/Spinner/index.js\";\nimport { cn } from \"@/lib/cn.js\";\nimport { node, type Renderable } from \"@/lib/node.js\";\nimport {\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n useSyncExternalStore,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\n\nconst DEFAULT_DURATION = 5000;\nconst EXIT_MS = 180;\n\nexport type SpringToastPosition =\n | \"top-left\"\n | \"top-center\"\n | \"top-right\"\n | \"bottom-left\"\n | \"bottom-center\"\n | \"bottom-right\";\n\nexport type SpringToastTone =\n | \"neutral\"\n | \"success\"\n | \"warning\"\n | \"error\"\n | \"loading\";\n\nexport type SpringToastAction = {\n label: Renderable;\n /** Return a patch to morph the toast in place instead of closing it. */\n onClick?: () => SpringToastPatch | void;\n};\n\nexport type SpringToastPatch = {\n title?: Renderable;\n description?: Renderable;\n tone?: SpringToastTone;\n action?: SpringToastAction | null;\n progress?: number | null;\n meta?: Renderable;\n duration?: number;\n};\n\nexport type SpringToastOptions = SpringToastPatch & { id?: string };\n\nexport type SpringToastRecord = {\n id: string;\n title: Renderable;\n description?: Renderable;\n tone: SpringToastTone;\n action?: SpringToastAction;\n progress?: number;\n meta?: Renderable;\n duration: number;\n count: number;\n seq: number;\n};\n\n/**\n * One toast owns the screen, so a new call morphs the live record instead of\n * adding a second card. A new call *replaces* the content: a field it does not\n * send is gone, not inherited from whatever toast came before. Only `update`\n * patches, keeping the fields it leaves out.\n */\nexport function mergeSpringToast(\n current: SpringToastRecord | null,\n patch: SpringToastOptions,\n seq: number,\n mode: \"replace\" | \"patch\" = \"replace\",\n): SpringToastRecord {\n const previous = mode === \"patch\" ? current : null;\n const tone = patch.tone ?? previous?.tone ?? \"neutral\";\n const title = patch.title ?? previous?.title ?? \"\";\n const description =\n patch.description !== undefined ? patch.description : previous?.description;\n const action =\n patch.action === null ? undefined : (patch.action ?? previous?.action);\n const progress =\n patch.progress === null\n ? undefined\n : (patch.progress ?? previous?.progress);\n const meta = patch.meta !== undefined ? patch.meta : previous?.meta;\n const duration = patch.duration ?? previous?.duration ?? DEFAULT_DURATION;\n\n const repeat =\n current !== null &&\n title === current.title &&\n tone === current.tone &&\n description === current.description &&\n action === current.action &&\n progress === current.progress;\n\n return {\n // A new call owns a new id, so a delayed update from an older caller is\n // ignored instead of rewriting whatever toast is on screen by then. Only a\n // patch (or an explicit id) targets the card that is already live.\n id:\n mode === \"patch\"\n ? (current?.id ?? patch.id ?? `sph-spring-toast-${seq}`)\n : (patch.id ?? `sph-spring-toast-${seq}`),\n title,\n description,\n tone,\n action,\n progress,\n meta,\n duration,\n count: repeat ? current.count + 1 : 1,\n seq,\n };\n}\n\n/** Errors, loading and toasts with an action wait for the reader. */\nexport function springDuration(\n record: Pick<SpringToastRecord, \"tone\" | \"action\" | \"duration\">,\n): number {\n if (record.tone === \"error\" || record.tone === \"loading\" || record.action)\n return 0;\n return record.duration;\n}\n\nlet live: SpringToastRecord | null = null;\nlet seq = 0;\nconst listeners = new Set<() => void>();\nconst emit = () => {\n for (const listener of listeners) listener();\n};\nconst subscribe = (listener: () => void) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n};\nconst snapshot = () => live;\nconst serverSnapshot = () => null;\n\nfunction show(title: Renderable, options: SpringToastOptions = {}): string {\n seq += 1;\n live = mergeSpringToast(live, { ...options, title }, seq, \"replace\");\n emit();\n return live.id;\n}\n\nexport const springToast = Object.assign(show, {\n success: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"success\" }),\n error: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"error\" }),\n warning: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"warning\" }),\n info: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"neutral\" }),\n loading: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"loading\" }),\n update(id: string, patch: SpringToastPatch) {\n if (!live || live.id !== id) return;\n seq += 1;\n live = mergeSpringToast(live, patch, seq, \"patch\");\n emit();\n },\n dismiss(id?: string) {\n if (!live || (id !== undefined && live.id !== id)) return;\n live = null;\n emit();\n },\n async promise<T>(\n promise: Promise<T>,\n messages: {\n loading: Renderable;\n success: Renderable | ((value: T) => Renderable);\n error: Renderable | ((error: unknown) => Renderable);\n },\n ): Promise<T> {\n const id = show(messages.loading, { tone: \"loading\" });\n try {\n const value = await promise;\n springToast.update(id, {\n tone: \"success\",\n title:\n typeof messages.success === \"function\"\n ? messages.success(value)\n : messages.success,\n });\n return value;\n } catch (error) {\n springToast.update(id, {\n tone: \"error\",\n title:\n typeof messages.error === \"function\"\n ? messages.error(error)\n : messages.error,\n });\n throw error;\n }\n },\n});\n\nconst icons: Record<SpringToastTone, Renderable> = {\n neutral: <InfoIcon size={16} />,\n success: <CheckIcon size={16} />,\n warning: <WarningIcon size={16} />,\n error: <XIcon size={16} />,\n loading: <Spinner />,\n};\n\nexport type SpringToasterProps = {\n position?: SpringToastPosition;\n /** Distance from the viewport edge; raise it to clear a sticky header. */\n offset?: number;\n label?: string;\n className?: string;\n};\n\nexport function SpringToaster({\n position = \"top-center\",\n offset = 24,\n label = \"Notifications\",\n className,\n}: SpringToasterProps) {\n const record = useSyncExternalStore(subscribe, snapshot, serverSnapshot);\n const [portaled, setPortaled] = useState(false);\n const [exiting, setExiting] = useState<SpringToastRecord | null>(null);\n const [paused, setPaused] = useState(false);\n const last = useRef<SpringToastRecord | null>(null);\n const card = useRef<HTMLDivElement>(null);\n const height = useRef(0);\n\n useEffect(() => setPortaled(true), []);\n\n // Keep the closed card on screen long enough to play its exit.\n useEffect(() => {\n if (record) {\n last.current = record;\n setExiting(null);\n return;\n }\n const previous = last.current;\n if (!previous) return;\n setExiting(previous);\n const timer = window.setTimeout(() => {\n last.current = null;\n setExiting(null);\n }, EXIT_MS);\n return () => window.clearTimeout(timer);\n }, [record]);\n\n const active = record ?? exiting;\n const closing = record === null && exiting !== null;\n\n // Morph the card between records: start from the old height, land on the new\n // one, then hand control back to auto so the next change can measure again.\n useLayoutEffect(() => {\n const element = card.current;\n if (!element || closing) return;\n const next = element.offsetHeight;\n if (height.current && Math.abs(height.current - next) > 1) {\n element.style.height = `${height.current}px`;\n element.getBoundingClientRect();\n element.style.height = `${next}px`;\n window.setTimeout(() => {\n element.style.height = \"\";\n }, 260);\n }\n height.current = next;\n }, [active?.seq, active?.count, closing]);\n\n useEffect(() => {\n if (!record || paused) return;\n const ms = springDuration(record);\n if (!ms) return;\n const timer = window.setTimeout(() => springToast.dismiss(record.id), ms);\n return () => window.clearTimeout(timer);\n }, [record, paused]);\n\n useEffect(() => {\n if (!record) return;\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") springToast.dismiss();\n };\n document.addEventListener(\"keydown\", onKeyDown);\n return () => document.removeEventListener(\"keydown\", onKeyDown);\n }, [record]);\n\n if (!portaled || !active) return null;\n\n const action = active.action;\n\n return createPortal(\n <section\n className={cn(\"sph-spring-toast-region\", className)}\n data-position={position}\n aria-label={label}\n style={{\n top: position.startsWith(\"top\") ? offset : undefined,\n bottom: position.startsWith(\"bottom\") ? offset : undefined,\n }}\n >\n <div\n ref={card}\n className=\"sph-spring-toast\"\n data-tone={active.tone}\n data-closing={closing || undefined}\n role={active.tone === \"error\" ? \"alert\" : \"status\"}\n aria-atomic=\"true\"\n tabIndex={-1}\n onPointerEnter={() => setPaused(true)}\n onPointerLeave={() => setPaused(false)}\n onFocus={() => setPaused(true)}\n onBlur={() => setPaused(false)}\n >\n <span className=\"sph-spring-toast__icon\" aria-hidden=\"true\">\n {node(icons[active.tone])}\n </span>\n <span className=\"sph-spring-toast__body\">\n <span className=\"sph-spring-toast__title\">\n {node(active.title)}\n {active.count > 1 && (\n <span className=\"sph-spring-toast__count\">×{active.count}</span>\n )}\n </span>\n {active.description !== undefined && (\n <span className=\"sph-spring-toast__description\">\n {node(active.description)}\n </span>\n )}\n </span>\n {action && (\n <button\n type=\"button\"\n className=\"sph-spring-toast__action\"\n onClick={() => {\n const patch = action.onClick?.();\n if (patch) springToast.update(active.id, patch);\n else springToast.dismiss(active.id);\n }}\n >\n {node(action.label)}\n </button>\n )}\n <button\n type=\"button\"\n className=\"sph-spring-toast__close\"\n aria-label=\"Dismiss notification\"\n onClick={() => springToast.dismiss(active.id)}\n >\n <XIcon size={12} aria-hidden=\"true\" />\n </button>\n {active.progress !== undefined && (\n <span\n className=\"sph-spring-toast__progress\"\n aria-hidden=\"true\"\n style={{\n transform: `scaleX(${Math.min(1, Math.max(0, active.progress))})`,\n }}\n />\n )}\n </div>\n </section>,\n document.body,\n );\n}\n","import { CheckIcon, InfoIcon, WarningIcon, XIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"@/lib/cn.js\";\nimport { useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport {\n type ExternalToast,\n Toaster as SonnerToaster,\n type ToasterProps as SonnerToasterProps,\n toast,\n} from \"sonner\";\nimport { node, type Renderable } from \"@/lib/node.js\";\n\nexport type { ExternalToast } from \"sonner\";\nexport { toast };\nexport {\n SpringToaster,\n type SpringToasterProps,\n springToast,\n type SpringToastAction,\n type SpringToastOptions,\n type SpringToastPatch,\n type SpringToastPosition,\n type SpringToastRecord,\n type SpringToastTone,\n} from \"./spring\";\n\nconst toastIcons = {\n success: (\n <span className=\"sph-toast__status-icon\">\n <CheckIcon size={20} />\n </span>\n ),\n info: (\n <span className=\"sph-toast__status-icon\">\n <InfoIcon size={20} />\n </span>\n ),\n warning: (\n <span className=\"sph-toast__status-icon\">\n <WarningIcon size={20} />\n </span>\n ),\n error: (\n <span className=\"sph-toast__status-icon\">\n <XIcon size={20} />\n </span>\n ),\n};\n\nexport type ToastProps = {\n open?: boolean;\n id?: string | number;\n title: Renderable;\n description?: Renderable;\n variant?: \"neutral\" | \"success\" | \"warning\" | \"danger\";\n action?: ExternalToast[\"action\"];\n duration?: number;\n closeButton?: boolean;\n className?: string;\n};\n\nexport function Toast({\n open = true,\n id,\n title,\n description,\n variant = \"neutral\",\n action,\n duration,\n closeButton = true,\n className,\n}: ToastProps) {\n useEffect(() => {\n if (!open) return;\n const options: ExternalToast = {\n id,\n action,\n closeButton,\n description: node(description),\n duration,\n className: cn(\"sph-toast\", className),\n unstyled: true,\n };\n const toastId =\n variant === \"success\"\n ? toast.success(node(title), options)\n : variant === \"warning\"\n ? toast.warning(node(title), options)\n : variant === \"danger\"\n ? toast.error(node(title), options)\n : toast(node(title), options);\n\n return () => {\n toast.dismiss(toastId);\n };\n }, [open, id, action, closeButton, duration, title, description, variant]);\n\n return null;\n}\n\nexport type ToastViewportProps = Omit<\n SonnerToasterProps,\n \"className\" | \"containerAriaLabel\" | \"icons\" | \"toastOptions\"\n> & {\n label?: string;\n className?: string;\n toastOptions?: SonnerToasterProps[\"toastOptions\"];\n};\n\nexport function ToastViewport({\n label = \"Notifications\",\n className,\n toastOptions,\n theme = \"system\",\n position = \"top-right\",\n closeButton = true,\n expand = false,\n ...props\n}: ToastViewportProps) {\n const [portaled, setPortaled] = useState(false);\n useEffect(() => setPortaled(true), []);\n\n const toaster = (\n <SonnerToaster\n {...node(props)}\n theme={theme}\n position={position}\n closeButton={closeButton}\n icons={toastIcons}\n containerAriaLabel={label}\n expand={expand}\n className={cn(\"sph-toast-viewport\", className)}\n toastOptions={{\n ...toastOptions,\n closeButton: toastOptions?.closeButton ?? closeButton,\n closeButtonAriaLabel:\n toastOptions?.closeButtonAriaLabel ?? \"Dismiss notification\",\n className: cn(\"sph-toast\", toastOptions?.className),\n unstyled: true,\n }}\n />\n );\n\n // Sonner mounts where it is rendered, so an ancestor with `isolation` or a\n // transform traps it in that stacking context and the toast paints under a\n // sticky header however high its z-index is. Portal it to the document.\n return portaled ? createPortal(toaster, document.body) : toaster;\n}\n"],"mappings":";;;;;;;;;AAaA,MAAM,mBAAmB;AACzB,MAAM,UAAU;;;;;;;AAsDhB,SAAgB,iBACd,SACA,OACA,KACA,OAA4B,WACT;CACnB,MAAM,WAAW,SAAS,UAAU,UAAU;CAC9C,MAAM,OAAO,MAAM,QAAQ,UAAU,QAAQ;CAC7C,MAAM,QAAQ,MAAM,SAAS,UAAU,SAAS;CAChD,MAAM,cACJ,MAAM,gBAAgB,KAAA,IAAY,MAAM,cAAc,UAAU;CAClE,MAAM,SACJ,MAAM,WAAW,OAAO,KAAA,IAAa,MAAM,UAAU,UAAU;CACjE,MAAM,WACJ,MAAM,aAAa,OACf,KAAA,IACC,MAAM,YAAY,UAAU;CACnC,MAAM,OAAO,MAAM,SAAS,KAAA,IAAY,MAAM,OAAO,UAAU;CAC/D,MAAM,WAAW,MAAM,YAAY,UAAU,YAAY;CAEzD,MAAM,SACJ,YAAY,QACZ,UAAU,QAAQ,SAClB,SAAS,QAAQ,QACjB,gBAAgB,QAAQ,eACxB,WAAW,QAAQ,UACnB,aAAa,QAA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AO,CAAC;CAEzE,OAAO;AACT;AAWA,SAAgB,cAAc,EAC5B,QAAQ,iBACR,WACA,cACA,QAAQ,UACR,WAAW,aACX,cAAc,MACd,SAAS,OACT,GAAG,SACkB;CACrB,MAAM,CAAC,UAAU,eAAe,SAAS,KAAK;CAC9C,gBAAgB,YAAY,IAAI,GAAG,CAAC,CAAC;CAErC,MAAM,UACJ,oBAACA,SAAD;EACE,GAAI,KAAK,KAAK;EACP;EACG;EACG;EACb,OAAO;EACP,oBAAoB;EACZ;EACR,WAAW,GAAG,sBAAsB,SAAS;EAC7C,cAAc;GACZ,GAAG;GACH,aAAa,cAAc,eAAe;GAC1C,sBACE,cAAc,wBAAwB;GACxC,WAAW,GAAG,aAAa,cAAc,SAAS;GAClD,UAAU;EACZ;CACD,CAAA;CAMH,OAAO,WAAW,aAAa,SAAS,SAAS,IAAI,IAAI;AAC3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DRXUXEa8.d.ts","names":["SonnerToasterProps"],"sources":["../src/molecules/Toast/spring.tsx","../src/molecules/Toast/index.tsx"],"mappings":";;;KAgBY;KAQA;KAOA;EACV,OAAO;;EAEP,gBAAgB;;KAGN;EACV,QAAQ;EACR,cAAc;EACd,OAAO;EACP,SAAS;EACT;EACA,OAAO;EACP;;KAGU,qBAAqB;EAAqB;;KAE1C;EACV;EACA,OAAO;EACP,cAAc;EACd,MAAM;EACN,SAAS;EACT;EACA,OAAO;EACP;EACA;EACA;;iBAiFO,KAAK,OAAO,YAAY,UAAS;cAO7B,oBAAW;EACL,UAAA,OAAA,YAAU,UAAY;EAExB,QAAA,OAAA,YAAU,UAAY;EAEpB,UAAA,OAAA,YAAU,UAAY;EAEzB,OAAA,OAAA,YAAU,UAAY;EAEnB,UAAA,OAAA,YAAU,UAAY;EAE5B,OAAA,YAAM,OAAS;EAMb,QAAA;EAKC,QAAA,GAAC,SACJ,QAAQ,IAAE;IAEjB,SAAS;IACT,SAAS,eAAe,OAAO,MAAM;IACrC,OAAO,eAAe,mBAAmB;MAE1C,QAAQ;;KAiCD;EACV,WAAW;;EAEX;EACA;EACA;;iBAGc,gBACd,UACA,QACA,OACA,aACC,qCAAkB;;;KC7KT;EACV;EACA;EACA,OAAO;EACP,cAAc;EACd;EACA,SAAS;EACT;EACA;EACA;;iBAGc,QACd,MACA,IACA,OACA,aACA,SACA,QACA,UACA,aACA,aACC;KA6BS,qBAAqB,KAC/BA;EAGA;EACA;EACA,eAAeA;;iBAGD,gBACd,OACA,WACA,cACA,OACA,UACA,aACA,WACG,SACF,qCAAkB,IAAA"}