@almadar/ui 6.55.0 → 6.57.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.
Files changed (59) hide show
  1. package/dist/{ArbitraryClassCompiler-DvzdeHxc.d.ts → ArbitraryClassCompiler-tChQ3nVq.d.ts} +15 -1
  2. package/dist/{FileTree-DUi7e7Z8.d.ts → FileTree-BSfgp-HH.d.ts} +29 -2
  3. package/dist/Typography-LZTP72Y4.js +5 -0
  4. package/dist/{UISlotRenderer-QTHFT6Z4.js → UISlotRenderer-NCGDIXN4.js} +8 -8
  5. package/dist/avl/index.cjs +4832 -4212
  6. package/dist/avl/index.d.ts +74 -5
  7. package/dist/avl/index.js +68 -711
  8. package/dist/{avl-schema-parser-C0wnAp5x.d.ts → avl-schema-parser-CH1QoZw1.d.ts} +1 -1
  9. package/dist/{chunk-HCSJHRC4.js → chunk-4ZGXIW3B.js} +1 -1
  10. package/dist/{chunk-RNY5LJXJ.js → chunk-723MJUU3.js} +1 -1
  11. package/dist/{chunk-6EV3OEBQ.js → chunk-CHNC4UYE.js} +3 -2
  12. package/dist/{chunk-SGJHVPHC.js → chunk-GZGDBS4S.js} +2 -2
  13. package/dist/{chunk-Y53Q55H5.js → chunk-HA7CJWQX.js} +1123 -1121
  14. package/dist/{chunk-JRW33U35.js → chunk-I5QOYW2Z.js} +1 -1
  15. package/dist/{chunk-KQXXO42S.js → chunk-KJGVLXEN.js} +78 -1
  16. package/dist/{chunk-HRCR53OW.js → chunk-LZRW6GXG.js} +18 -3
  17. package/dist/{chunk-2LFBQ4IS.js → chunk-MZIDOJMD.js} +2 -2
  18. package/dist/{chunk-QGH4NAQO.js → chunk-N7JIG57B.js} +9 -4
  19. package/dist/{chunk-XZKGRSIO.js → chunk-PYJ2UQWM.js} +2487 -1156
  20. package/dist/{chunk-FQM37C56.js → chunk-RHP5WL55.js} +61 -55
  21. package/dist/chunk-YYYHH5BA.js +2519 -0
  22. package/dist/{cn-ClXGlIOY.d.ts → cn-DIql5232.d.ts} +152 -24
  23. package/dist/components/index.cjs +6876 -3072
  24. package/dist/components/index.d.ts +45 -94
  25. package/dist/components/index.js +14 -16
  26. package/dist/context/index.cjs +23 -0
  27. package/dist/context/index.d.ts +2 -2
  28. package/dist/context/index.js +20 -1
  29. package/dist/hooks/index.cjs +2544 -7
  30. package/dist/hooks/index.d.ts +4 -1
  31. package/dist/hooks/index.js +7 -6
  32. package/dist/lib/drawable/three/index.cjs +22 -6
  33. package/dist/lib/drawable/three/index.d.ts +1 -1
  34. package/dist/lib/drawable/three/index.js +7 -7
  35. package/dist/lib/index.cjs +18 -3
  36. package/dist/lib/index.d.ts +1 -1
  37. package/dist/lib/index.js +3 -4
  38. package/dist/locales/index.cjs +54 -9
  39. package/dist/locales/index.js +2 -2489
  40. package/dist/providers/index.cjs +4035 -2382
  41. package/dist/providers/index.d.ts +2 -2
  42. package/dist/providers/index.js +24 -13
  43. package/dist/runtime/index.cjs +4092 -2447
  44. package/dist/runtime/index.d.ts +0 -13
  45. package/dist/runtime/index.js +11 -10
  46. package/dist/ssr/index.cjs +23 -6
  47. package/dist/ssr/index.js +23 -6
  48. package/dist/{useEventBus-JUAH3EFW.js → useEventBus-SWRN475O.js} +1 -1
  49. package/locales/ar.json +18 -3
  50. package/locales/en.json +18 -3
  51. package/locales/sl.json +18 -3
  52. package/package.json +6 -6
  53. package/tailwind-preset.cjs +6 -0
  54. package/themes/_fonts.css +1 -1
  55. package/themes/_presets.css +1 -0
  56. package/themes/kflow.css +299 -0
  57. package/dist/Typography-7PDT62PG.js +0 -5
  58. package/dist/chunk-F4ZTPKZL.js +0 -284
  59. package/dist/chunk-OKWD7LPO.js +0 -80
@@ -8,14 +8,14 @@ import { SExpr } from '@almadar/evaluator';
8
8
  import { U as UnitAnimationState, F as FacingDirection, S as SpriteSheetUrls, f as SpriteFrameDims, R as ResolvedFrame, g as CanvasLighting, h as CanvasPost, a as IsometricUnit, i as CameraState } from '../Canvas3DHost-DfAhg6EH.js';
9
9
  export { B as BoardTile, G as GameAction, j as GamePhase, k as GameState, l as GameUnit, b as IsometricFeature, I as IsometricTile, P as Position, m as UnitTrait, n as calculateAttackTargets, o as calculateValidMoves, p as createInitialGameState } from '../Canvas3DHost-DfAhg6EH.js';
10
10
  export { G as GameAudioContext, a as GameAudioContextValue, e as GameAudioControls, b as GameAudioProvider, c as GameAudioProviderProps, U as UseGameAudioOptions, f as useGameAudio, u as useGameAudioContext } from '../GameAudioProvider-DyBvYP2c.js';
11
- import { c as AvlStateMachineProps } from '../FileTree-DUi7e7Z8.js';
12
- export { B as BehaviorView, d as BehaviorViewProps, e as FileTree, F as FileTreeItem, f as FileTreeNode, g as FileTreeProps, M as ModuleCard, h as ModuleCardProps } from '../FileTree-DUi7e7Z8.js';
11
+ import { e as AvlStateMachineProps } from '../FileTree-BSfgp-HH.js';
12
+ export { B as BehaviorView, f as BehaviorViewProps, g as FileTree, F as FileTreeItem, h as FileTreeNode, i as FileTreeProps, M as ModuleCard, j as ModuleCardProps } from '../FileTree-BSfgp-HH.js';
13
13
  import { LucideIcon } from 'lucide-react';
14
- import { c as EditorMotion, d as EditorOperator, C as ContentSegment, L as LessonSegment, l as InteractiveOrbitalType } from '../cn-ClXGlIOY.js';
15
- export { B as BloomLevel, n as BloomQuizBlock, o as BloomQuizBlockProps, M as MixedSegment, g as cn, j as parseLessonSegments, q as parseMarkdownWithCodeBlocks } from '../cn-ClXGlIOY.js';
14
+ import { l as ContentAnnotation, c as EditorMotion, d as EditorOperator, C as ContentSegment, L as LessonSegment } from '../cn-DIql5232.js';
15
+ export { B as BloomLevel, n as BloomQuizBlock, o as BloomQuizBlockProps, q as CodeRunnerPanel, r as CodeRunnerPanelProps, s as CodeSimulationOutput, t as LessonUserProgress, S as SegmentRenderer, u as SegmentRendererProps, g as cn, j as parseLessonSegments } from '../cn-DIql5232.js';
16
16
  import { LanguageCode } from '@almadar/core/i18n';
17
17
  import { EmojiPickPayload, ItemActionPayload, SelectionChangePayload } from '@almadar/core/patterns';
18
- import { T as TraitLevelData } from '../avl-schema-parser-C0wnAp5x.js';
18
+ import { T as TraitLevelData } from '../avl-schema-parser-CH1QoZw1.js';
19
19
  import { a as SlotContent, c as SlotPropValue } from '../useUISlots-1dk2TR4j.js';
20
20
  export { D as DEFAULT_SLOTS, S as SlotChangeCallback, b as SlotRenderConfig, U as UISlotManager, u as useUISlotManager } from '../useUISlots-1dk2TR4j.js';
21
21
  import '../verificationRegistry-CD7Xb40L.js';
@@ -5401,6 +5401,28 @@ interface MarkdownContentProps extends A11yProps {
5401
5401
  content: string;
5402
5402
  /** Text direction (defaults to ltr; `ltr` is first so the generated config seeds it) */
5403
5403
  direction?: 'ltr' | 'rtl';
5404
+ /** Event emitted when the reader picks Ask on selected text (as `UI:<askEvent>`) */
5405
+ askEvent?: EventEmit<{
5406
+ selectedText: string;
5407
+ }>;
5408
+ /** Event emitted when the reader picks Note on selected text (as `UI:<noteEvent>`) */
5409
+ noteEvent?: EventEmit<{
5410
+ selectedText: string;
5411
+ }>;
5412
+ /** Ask action label (default: translated) */
5413
+ askLabel?: string;
5414
+ /** Note action label (default: translated) */
5415
+ noteLabel?: string;
5416
+ /**
5417
+ * Passages to highlight. Each `text` is matched exactly, first occurrence in
5418
+ * document order inside a single rendered text node (outside code); a passage
5419
+ * that spans formatting boundaries is not highlighted.
5420
+ */
5421
+ annotations?: ContentAnnotation[];
5422
+ /** Event emitted when a highlighted passage is clicked (as `UI:<annotationEvent>`) */
5423
+ annotationEvent?: EventEmit<{
5424
+ annotationId?: string;
5425
+ }>;
5404
5426
  /** Additional CSS classes */
5405
5427
  className?: string;
5406
5428
  }
@@ -7851,6 +7873,8 @@ interface UploadDropZoneProps extends A11yProps {
7851
7873
  icon?: IconInput;
7852
7874
  /** Disabled state */
7853
7875
  disabled?: boolean;
7876
+ /** How the file is read into `content`: a base64 data URL (default) or its UTF-8 text */
7877
+ readAs?: "dataUrl" | "text";
7854
7878
  /** Declarative event name for file selection */
7855
7879
  action?: EventEmit<{
7856
7880
  files: {
@@ -10954,94 +10978,20 @@ interface ConnectionBlockProps extends A11yProps {
10954
10978
  declare const ConnectionBlock: React__default.FC<ConnectionBlockProps>;
10955
10979
 
10956
10980
  /**
10957
- * CodeRunnerPanel Organism Component
10958
- *
10959
- * Editable code block with Run/Reset buttons and simulated terminal output.
10960
- * Real execution is a future concern; callers supply a simulation function via
10961
- * `onRun`. Emits `UI:RUN_CODE { language, exitCode }` on every run attempt.
10962
- *
10963
- * Event Contract:
10964
- * - Emits: UI:RUN_CODE { language, exitCode, error? }
10965
- * - entityAware: false
10981
+ * Utility for lesson-segment parsing: splits a markdown string into alternating
10982
+ * markdown and fenced-code-block segments. Exported so SegmentRenderer and
10983
+ * BloomQuizBlock can reuse without circular imports.
10966
10984
  */
10967
10985
 
10968
- interface CodeSimulationOutput {
10969
- stdout: string;
10970
- stderr: string;
10971
- exitCode: number;
10972
- testResults: Array<{
10973
- input: string;
10974
- expectedOutput: string;
10975
- actualOutput: string;
10976
- passed: boolean;
10977
- }>;
10978
- }
10979
- interface CodeRunnerPanelProps extends Omit<React__default.AriaAttributes, keyof A11yProps>, A11yProps {
10980
- /** Initial code content */
10981
- code: string;
10982
- /** Programming language for syntax highlighting */
10983
- language: string;
10984
- /** Whether the panel allows running (false = read-only code block) */
10985
- runnable?: boolean;
10986
- /**
10987
- * Simulate executing the code. Omit to render a read-only block.
10988
- * Real execution is a separate future track — this callback supplies
10989
- * deterministic simulated output for UI feedback.
10990
- */
10991
- onRun?: (code: string) => Promise<CodeSimulationOutput>;
10992
- /** Event name to emit on run (emitted as `UI:<runEvent>`). Defaults to 'RUN_CODE'. */
10993
- runEvent?: string;
10994
- /** Additional CSS classes */
10995
- className?: string;
10996
- }
10997
- declare const CodeRunnerPanel: React__default.FC<CodeRunnerPanelProps>;
10998
-
10999
- /**
11000
- * SegmentRenderer Organism Component
11001
- *
11002
- * Renders a parsed array of LessonSegments — markdown, code, quizzes,
11003
- * activation prompts, connections, reflections, Bloom questions.
11004
- * The `visualization` segment type is passed through as a no-op unless the
11005
- * caller provides `onRenderVisualization` (future extensibility hook).
11006
- *
11007
- * Event Contract:
11008
- * - Delegates to child molecules: UI:SAVE_ACTIVATION, UI:SAVE_REFLECTION, UI:ANSWER_BLOOM
11009
- * - entityAware: false
11010
- */
11011
-
11012
- /**
11013
- * User progress state passed into SegmentRenderer. Declared here (rather than
11014
- * alongside `LessonSegment` in `lib/parseLessonSegments.ts`) so the
11015
- * pattern-sync scanner — which only indexes types under `components/**` —
11016
- * can resolve it to a concrete `.lolo` object shape instead of `json`.
11017
- */
11018
- interface LessonUserProgress {
11019
- activationResponse?: string;
11020
- reflectionNotes?: string[];
11021
- bloomAnswered?: Record<number, boolean>;
11022
- }
11023
- interface SegmentRendererProps extends Omit<React__default.AriaAttributes, keyof A11yProps>, A11yProps {
11024
- /** Parsed lesson segments (see `parseLessonSegments`) */
11025
- segments: LessonSegment[];
11026
- /** Additional CSS classes for the root container */
11027
- className?: string;
11028
- /** CSS classes for the outer wrapping div */
11029
- containerClassName?: string;
11030
- /** User progress for restoring activation/reflection state */
11031
- userProgress?: LessonUserProgress;
11032
- /**
11033
- * Simulate executing runnable code blocks. Omit to render runnable blocks
11034
- * as read-only. Real execution is a future track.
11035
- */
11036
- onRunCodeSimulation?: (code: string, language: string) => Promise<CodeSimulationOutput>;
11037
- /**
11038
- * Optional render slot for `visualization` segment types. When not provided,
11039
- * visualization segments are silently skipped. Callers can wire this to any
11040
- * custom component or orbital generator.
11041
- */
11042
- onRenderVisualization?: (type: InteractiveOrbitalType, description: string, index: number) => React__default.ReactNode;
11043
- }
11044
- declare const SegmentRenderer: React__default.FC<SegmentRendererProps>;
10986
+ type MarkdownSegment = Extract<LessonSegment, {
10987
+ type: 'markdown';
10988
+ }>;
10989
+ type CodeSegment = Extract<LessonSegment, {
10990
+ type: 'code';
10991
+ }>;
10992
+ type MixedSegment = MarkdownSegment | CodeSegment;
10993
+ /** Splits markdown content into markdown and fenced-code-block segments. */
10994
+ declare function parseMarkdownWithCodeBlocks(content: string): MixedSegment[];
11045
10995
 
11046
10996
  /**
11047
10997
  * FloatingToolbar Molecule Component
@@ -12673,8 +12623,9 @@ interface DashboardLayoutProps {
12673
12623
  * - `sidebar`: Left sidebar nav + top header (classic dashboard)
12674
12624
  * - `topnav`: Horizontal nav in header, no sidebar
12675
12625
  * - `bottomnav`: Bottom tab bar, no sidebar
12676
- * - `minimal`: No nav chrome, content only */
12677
- layoutMode?: "sidebar" | "topnav" | "bottomnav" | "minimal";
12626
+ * - `minimal`: No nav chrome, content only
12627
+ * - `drawer`: Sidebar nav behind a menu button at every width; content gets the full width */
12628
+ layoutMode?: "sidebar" | "topnav" | "bottomnav" | "minimal" | "drawer";
12678
12629
  /** Page content rendered inside the main area */
12679
12630
  children?: React__default.ReactNode;
12680
12631
  }
@@ -12767,4 +12718,4 @@ interface GenericAppTemplateProps extends TemplateProps, Omit<React__default.Ari
12767
12718
  }
12768
12719
  declare const GenericAppTemplate: React__default.FC<GenericAppTemplateProps>;
12769
12720
 
12770
- export { ALL_PRESETS, Accordion, type AccordionItem, type AccordionProps, Card as ActionCard, type CardProps as ActionCardProps, ActionPalette, type ActionPaletteProps, ActionTile, type ActionTileProps, ActivationBlock, type ActivationBlockProps, AgentActivityFeed, type AgentActivityFeedProps, type AgentActivityJumpTarget, AgentActivityRow, type AgentActivityRowProps, AgentChatFeed, type AgentChatFeedProps, type AgentConversation, AgentThinkingRow, Alert, type AlertProps, type AlertVariant, AlgoGraphCanvas, type AlgoGraphCanvasProps, type AlgoGraphEdge, type AlgoGraphEdgeState, type AlgoGraphLayout, type AlgoGraphNode, type AlgoGraphNodeBadge, type AlgoGraphNodeState, type AlgorithmBar, AlgorithmCanvas, type AlgorithmCanvasProps, type AlgorithmCell, type AlgorithmPointer, AnimatedCounter, type AnimatedCounterProps, AnimatedGraphic, type AnimatedGraphicProps, AnimatedReveal, type AnimatedRevealProps, Aside, type AsideProps, AssetPicker, type AssetPickerProps, AtlasImage, type AtlasImageAsset, type AtlasImageProps, AtlasPanel, type AtlasPanelProps, AuthLayout, type AuthLayoutProps, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, BadgeVariant, BiologyCanvas, type BiologyCanvasProps, type BiologyEdge, type BiologyNode, Box, type BoxBg, type BoxMargin, type BoxPadding, type BoxProps, type BoxRounded, type BoxShadow, BranchingLogicBuilder, type BranchingLogicBuilderProps, type BranchingQuestion, type BranchingRule, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COMPACT_MEDIA_QUERY, CalendarGrid, type CalendarGridProps, type CameraMode, CameraState, Canvas, Canvas2D, type Canvas2DProps, type CanvasItemShape, type CanvasItemStatus, type CanvasMode, type CanvasProps, Card$1 as Card, type CardAction, CardBody, CardContent, CardFooter, CardHeader, type CardProps$1 as CardProps, CardTitle, Carousel, type CarouselProps, Center, type CenterProps, ChangeList, type ChangeListItem, type ChangeListProps, type ChangeType, Chart, type ChartDataPoint, ChartLegend, type ChartLegendItem, type ChartLegendProps, type ChartProps, type ChartSeries, type ChartType, ChatBar, type ChatBarProps, type ChatBarStatus, Checkbox, type CheckboxProps, type ChemistryArrow, type ChemistryAtom, type ChemistryBond, ChemistryCanvas, type ChemistryCanvasProps, ChoiceButton, type ChoiceButtonProps, Coachmark, type CoachmarkAnchor, type CoachmarkPlacement, type CoachmarkProps, type CodeAssistProvider, type CodeAssistRequest, type CodeAssistResult, CodeBlock, type CodeBlockProps, type CodeCompletion, type CodeCompletionProvider, type CodeCompletionResult, type CodeDiagnostic, type CodeLanguage, type CodeLanguageLoader, CodeRunnerPanel, type CodeRunnerPanelProps, type CodeSimulationOutput, type CodeSuggestion, type CodeViewerAction, type CodeViewerFile, type CodeViewerMode, CollapsibleSection, type CollapsibleSectionProps, CommandPalette, type CommandPaletteCommand, type CommandPaletteProps, type CommitKind, CommitRow, type CommitRowProps, type ConditionalContext, ConditionalWrapper, type ConditionalWrapperProps, ConfettiEffect, type ConfettiEffectProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ConnectionBlock, type ConnectionBlockProps, Container, type ContainerProps, ContentRenderer, type ContentRendererProps, ControlButton, type ControlButtonProps, ControlGrid, type ControlGridButton, type ControlGridKind, type ControlGridProps, type CounterSize, CounterTemplate, type CounterTemplateProps, type CounterVariant, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, type DPadDirection, DashboardGrid, type DashboardGridCell, type DashboardGridProps, DashboardLayout, type DashboardLayoutProps, DataGrid, type DataGridField, type DataGridItemAction, type DataGridProps, DataList, type DataListField, type DataListItemAction, type DataListProps, DateRangePicker, type DateRangePickerPreset, type DateRangePickerProps, DateRangeSelector, type DateRangeSelectorOption, type DateRangeSelectorProps, DayCell, type DayCellProps, type DetailField, DetailPanel, type DetailPanelProps, type DetailSection, Dialog, type DialogProps, DialogueBubble, type DialogueBubbleProps, type DiffHunk, type DiffLine$1 as DiffLine, type DiffLineType, type DiffRevision, type DispatchCommandPaletteCommandDeps, type DisplayStateProps, Divider, type DividerOrientation, type DividerProps, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, DocPagination, type DocPaginationLink, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, DockLayout, type DockLayoutContextValue, type DockLayoutProps, DocumentDetails, type DocumentDetailsField, type DocumentDetailsProps, DocumentPanel, type DocumentPanelAction, type DocumentPanelProps, type DocumentType, DocumentViewer, type DocumentViewerProps, StateMachineView as DomStateMachineVisualizer, type DotSize, type DotState, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, DrawerSlot, type DrawerSlotProps, ELEMENT_SELECTED_EVENT, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, EditorCheckbox, type EditorCheckboxProps, type EditorMode, EditorSelect, type EditorSelectProps, EditorSlider, type EditorSliderProps, EditorTextInput, type EditorTextInputProps, EditorToolbar, type EditorToolbarProps, EmojiPicker, type EmojiPickerPosition, type EmojiPickerProps, EmptyState, type EmptyStateProps, EntityDisplayEvents, ErrorBoundary, type ErrorBoundaryProps, ErrorState, type ErrorStateProps, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FacingDirection, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FilterDefinition, FilterGroup, type FilterGroupProps, type FilterPayload, FilterPill, type FilterPillProps, type FilterPillSize, type FilterPillVariant, Flex, type FlexProps, FlipCard, type FlipCardProps, FlipContainer, type FlipContainerProps, type FloatingAction, FloatingActionButton, type FloatingActionButtonProps, FloatingToolbar, type FloatingToolbarItem, type FloatingToolbarPosition, type FloatingToolbarProps, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, FormSection$1 as FormSection, FormSectionHeader, type FormSectionHeaderProps, type FormSectionProps, FxOverlay, FxOverlayItem, type FxOverlayProps, GameAudioCue, type GameAudioCueProps, GameAudioToggle, type GameAudioToggleProps, GameHud, type GameHudElement, type GameHudProps, type GameHudStat, GameIcon, type GameIconProps, GameMenu, type GameMenuProps, GameShell, type GameShellProps, Gantt, type GanttLink, type GanttProps, GenericAppTemplate, type GenericAppTemplateProps, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, GraphCanvas, type GraphCanvasProps, type GraphEdge, type GraphNode, type GraphSimilarity, GraphView, type GraphViewEdge, type GraphViewNode, type GraphViewProps, type GraphicAnimation, Grid, GridPicker, type GridPickerCellSize, type GridPickerProps, type GridProps, HStack, type HStackProps, Header, type HeaderProps, HealthBar, type HealthBarProps, type HighlightType, IconButton, type IconButtonProps, IconInput, IconPicker, type IconPickerProps, Image, type ImageAspect, type ImageFit, type ImageProps, type ImageRounded, type ImportEntityDisplay, ImportPreviewTree, type ImportPreviewTreeProps, type ImportPreviewUnit, ImportProgress, type ImportProgressCounts, type ImportProgressProps, type ImportProgressStep, type ImportSkippedElement, type ImportSourceOption, ImportSourcePicker, type ImportSourcePickerProps, InfiniteScrollSentinel, type InfiniteScrollSentinelProps, Input, InputGroup, type InputGroupProps, type InputProps, IsometricUnit, JazariStateMachine, type JazariStateMachineProps, JsonTreeEditor, type JsonTreeEditorProps, Label, type LabelProps, type LawReference, LawReferenceTooltip, type LawReferenceTooltipProps, type Learning3DPoint, LearningCanvas, type LearningCanvasProps, type LearningPhysicsBody, type LearningPhysicsConstraint, type LearningPoint, LearningScene3D, type LearningScene3DProps, type LearningShape, type LearningShapeType, LessonSegment, type LessonUserProgress, Lightbox, type LightboxImage, type LightboxProps, type LikertOption, LikertScale, type LikertScaleProps, LineChart, type LineChartProps, LoadingState, type LoadingStateProps, type MapMarkerData, type MapRouteData, type MapRouteWaypoint, MapView, type MapViewProps, MarkdownContent, type MarkdownContentProps, MasterDetailLayout, type MasterDetailLayoutProps, MathCanvas, type MathCanvasProps, type MathCurve, type MathPoint, type MathVector, type MatrixColumn, MatrixQuestion, type MatrixQuestionProps, type MatrixRow, MediaGallery, type MediaGalleryProps, type MediaItem, Menu, type MenuItem, type MenuOption, type MenuProps, type MeshSphereOpts, Meter, type MeterAction, type MeterProps, type MeterThreshold, type MeterVariant, Modal, type ModalProps, type ModalSize, ModalSlot, type ModalSlotProps, type NavItem, Navigation, type NavigationItem, type NavigationProps, NodeSlotEditor, type NodeSlotEditorProps, NumberStepper, type NumberStepperProps, type NumberStepperSize, OnboardingSpotlight, type OnboardingSpotlightProps, type OptionConstraint, OptionConstraintGroup, type OptionConstraintGroupProps, type OptionConstraintOption, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, type OrbitalVisualizationProps, Overlay, type OverlayProps, type PageBreadcrumb, PageHeader, type PageHeaderProps, PageTransition, type PageTransitionProps, type PaginatePayload, Pagination, type PaginationProps, PatternTile, type PatternTileProps, type PatternVariant, PhysicsCanvas, type PhysicsCanvasProps, type PickerItem, type Platform, Popover, type PopoverProps, PositionedCanvas, type PositionedCanvasProps, Presence, type PresenceAnimation, type PresenceProps, type PresenceResult, type PrismLanguageGrammar, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarVariant, ProgressDots, type ProgressDotsProps, type Projection, PropertyInspector, type PropertyInspectorProps, PullToRefresh, type PullToRefreshProps, type QrScanResult, QrScanner, type QrScannerProps, QuizBlock, type QuizBlockProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, type RangeSliderSize, ReflectionBlock, type ReflectionBlockProps, type RelationOption, RelationSelect, type RelationSelectProps, RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem, ReplyTree, type ReplyTreeProps, ResolvedFrame, type RevealAnimation, type RevealTrigger, RichTextEditor, type RichTextEditorProps, type RowFacts, type RuleDefinition, type RuleOption, RuntimeDebugger, type RuntimeDebuggerProps, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, type ScaledDiagramProps, ScoreDisplay, type ScoreDisplayProps, SearchInput, type SearchInputProps, type SearchPayload, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentRenderer, type SegmentRendererProps, Select, type SelectOption, type SelectOptionGroup, type SelectPayload, type SelectProps, SequenceBar, type SequenceBarProps, SidePanel, type SidePanelProps, type SidePlayer, Sidebar, type SidebarItem, type SidebarProps, SignaturePad, type SignaturePadProps, SimpleGrid, type SimpleGridProps, Skeleton, type SkeletonProps, SkeletonTree, SlotContent, SlotContentRenderer, type SlotItemData, SocialProof, type SocialProofItem, type SocialProofProps, type SortPayload, SortableList, type SortableListProps, Spacer, type SpacerProps, type SpacerSize, Sparkline, type SparklineColor, type SparklineProps, Spinner, type SpinnerProps, Split, SplitPane, type SplitPaneProps, type SplitProps, type SpotlightStep, SpriteFrameDims, SpriteSheetUrls, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StarRating, type StarRatingPrecision, type StarRatingProps, type StarRatingSize, StatBadge, type StatBadgeProps, StatCard, type StatCardProps, StatDisplay, type StatDisplayProps, StateGraph, type StateGraphProps, type StateGraphTransition, StateJsonView, type StateJsonViewProps, StateMachineView, type StateMachineViewProps, StatusBar, type StatusBarProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotStatus, SubagentTracePanel, type SubagentTracePanelProps, SvgBranch, type SvgBranchProps, SvgConnection, type SvgConnectionProps, SvgFlow, type SvgFlowProps, SvgGrid, type SvgGridProps, SvgLobe, type SvgLobeProps, SvgMesh, type SvgMeshProps, SvgMorph, type SvgMorphProps, SvgNode, type SvgNodeProps, SvgPulse, type SvgPulseProps, SvgRing, type SvgRingProps, SvgShield, type SvgShieldProps, SvgStack, type SvgStackProps, type SwipeAction, SwipeableRow, type SwipeableRowProps, Switch, type SwitchProps, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, type TabDefinition, type TabItem, TabbedContainer, type TabbedContainerProps, TableView, type TableViewColumn, type TableViewProps, Tabs, type TabsProps, TagInput, type TagInputProps, type TeamUnitTraits, type TemplateProps, TerrainPalette, type TerrainPaletteProps, TextHighlight, type TextHighlightProps, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, type TileCoord, type TileLayout, TimeSlotCell, type TimeSlotCellProps, Timeline, type TimelineItem, type TimelineItemStatus, type TimelineProps, TimerDisplay, type TimerDisplayProps, Toast, type ToastProps, ToastSlot, type ToastSlotProps, type ToastVariant, Tooltip, type TooltipProps, TopNavItem, type TopNavItemData, type TopNavItemProps, type TraceDisclosureLevel, TraitFrame, type TraitFrameProps, TraitSlot, type TraitSlotProps, type TraitStateMachineDefinition, TraitStateViewer, type TraitStateViewerProps, type TraitTransition, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type TrendIndicatorSize, TypewriterText, type TypewriterTextProps, Typography, type TypographyProps, type TypographyVariant, UISlotComponent, type UISlotComponentProps, UISlotRenderer, type UISlotRendererProps, UiError, UnitAnimationState, UploadDropZone, type UploadDropZoneProps, type UsePresenceOptions, VStack, type VStackProps, type Vec2, VersionDiff, type DiffLine as VersionDiffLine, type VersionDiffProps, ViolationAlert, type ViolationAlertProps, type ViolationRecord, VoteStack, type VoteStackProps, WizardContainer, type WizardContainerProps, WizardNavigation, type WizardNavigationProps, WizardProgress, type WizardProgressProps, type WizardProgressStep, type WizardStep, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAnchorRect, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useImageCache, usePresence, useUnitSpriteAtlas, vec2 };
12721
+ export { ALL_PRESETS, Accordion, type AccordionItem, type AccordionProps, Card as ActionCard, type CardProps as ActionCardProps, ActionPalette, type ActionPaletteProps, ActionTile, type ActionTileProps, ActivationBlock, type ActivationBlockProps, AgentActivityFeed, type AgentActivityFeedProps, type AgentActivityJumpTarget, AgentActivityRow, type AgentActivityRowProps, AgentChatFeed, type AgentChatFeedProps, type AgentConversation, AgentThinkingRow, Alert, type AlertProps, type AlertVariant, AlgoGraphCanvas, type AlgoGraphCanvasProps, type AlgoGraphEdge, type AlgoGraphEdgeState, type AlgoGraphLayout, type AlgoGraphNode, type AlgoGraphNodeBadge, type AlgoGraphNodeState, type AlgorithmBar, AlgorithmCanvas, type AlgorithmCanvasProps, type AlgorithmCell, type AlgorithmPointer, AnimatedCounter, type AnimatedCounterProps, AnimatedGraphic, type AnimatedGraphicProps, AnimatedReveal, type AnimatedRevealProps, Aside, type AsideProps, AssetPicker, type AssetPickerProps, AtlasImage, type AtlasImageAsset, type AtlasImageProps, AtlasPanel, type AtlasPanelProps, AuthLayout, type AuthLayoutProps, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, BadgeVariant, BiologyCanvas, type BiologyCanvasProps, type BiologyEdge, type BiologyNode, Box, type BoxBg, type BoxMargin, type BoxPadding, type BoxProps, type BoxRounded, type BoxShadow, BranchingLogicBuilder, type BranchingLogicBuilderProps, type BranchingQuestion, type BranchingRule, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COMPACT_MEDIA_QUERY, CalendarGrid, type CalendarGridProps, type CameraMode, CameraState, Canvas, Canvas2D, type Canvas2DProps, type CanvasItemShape, type CanvasItemStatus, type CanvasMode, type CanvasProps, Card$1 as Card, type CardAction, CardBody, CardContent, CardFooter, CardHeader, type CardProps$1 as CardProps, CardTitle, Carousel, type CarouselProps, Center, type CenterProps, ChangeList, type ChangeListItem, type ChangeListProps, type ChangeType, Chart, type ChartDataPoint, ChartLegend, type ChartLegendItem, type ChartLegendProps, type ChartProps, type ChartSeries, type ChartType, ChatBar, type ChatBarProps, type ChatBarStatus, Checkbox, type CheckboxProps, type ChemistryArrow, type ChemistryAtom, type ChemistryBond, ChemistryCanvas, type ChemistryCanvasProps, ChoiceButton, type ChoiceButtonProps, Coachmark, type CoachmarkAnchor, type CoachmarkPlacement, type CoachmarkProps, type CodeAssistProvider, type CodeAssistRequest, type CodeAssistResult, CodeBlock, type CodeBlockProps, type CodeCompletion, type CodeCompletionProvider, type CodeCompletionResult, type CodeDiagnostic, type CodeLanguage, type CodeLanguageLoader, type CodeSuggestion, type CodeViewerAction, type CodeViewerFile, type CodeViewerMode, CollapsibleSection, type CollapsibleSectionProps, CommandPalette, type CommandPaletteCommand, type CommandPaletteProps, type CommitKind, CommitRow, type CommitRowProps, type ConditionalContext, ConditionalWrapper, type ConditionalWrapperProps, ConfettiEffect, type ConfettiEffectProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ConnectionBlock, type ConnectionBlockProps, Container, type ContainerProps, ContentRenderer, type ContentRendererProps, ControlButton, type ControlButtonProps, ControlGrid, type ControlGridButton, type ControlGridKind, type ControlGridProps, type CounterSize, CounterTemplate, type CounterTemplateProps, type CounterVariant, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, type DPadDirection, DashboardGrid, type DashboardGridCell, type DashboardGridProps, DashboardLayout, type DashboardLayoutProps, DataGrid, type DataGridField, type DataGridItemAction, type DataGridProps, DataList, type DataListField, type DataListItemAction, type DataListProps, DateRangePicker, type DateRangePickerPreset, type DateRangePickerProps, DateRangeSelector, type DateRangeSelectorOption, type DateRangeSelectorProps, DayCell, type DayCellProps, type DetailField, DetailPanel, type DetailPanelProps, type DetailSection, Dialog, type DialogProps, DialogueBubble, type DialogueBubbleProps, type DiffHunk, type DiffLine$1 as DiffLine, type DiffLineType, type DiffRevision, type DispatchCommandPaletteCommandDeps, type DisplayStateProps, Divider, type DividerOrientation, type DividerProps, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, DocPagination, type DocPaginationLink, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, DockLayout, type DockLayoutContextValue, type DockLayoutProps, DocumentDetails, type DocumentDetailsField, type DocumentDetailsProps, DocumentPanel, type DocumentPanelAction, type DocumentPanelProps, type DocumentType, DocumentViewer, type DocumentViewerProps, StateMachineView as DomStateMachineVisualizer, type DotSize, type DotState, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, DrawerSlot, type DrawerSlotProps, ELEMENT_SELECTED_EVENT, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, EditorCheckbox, type EditorCheckboxProps, type EditorMode, EditorSelect, type EditorSelectProps, EditorSlider, type EditorSliderProps, EditorTextInput, type EditorTextInputProps, EditorToolbar, type EditorToolbarProps, EmojiPicker, type EmojiPickerPosition, type EmojiPickerProps, EmptyState, type EmptyStateProps, EntityDisplayEvents, ErrorBoundary, type ErrorBoundaryProps, ErrorState, type ErrorStateProps, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FacingDirection, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FilterDefinition, FilterGroup, type FilterGroupProps, type FilterPayload, FilterPill, type FilterPillProps, type FilterPillSize, type FilterPillVariant, Flex, type FlexProps, FlipCard, type FlipCardProps, FlipContainer, type FlipContainerProps, type FloatingAction, FloatingActionButton, type FloatingActionButtonProps, FloatingToolbar, type FloatingToolbarItem, type FloatingToolbarPosition, type FloatingToolbarProps, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, FormSection$1 as FormSection, FormSectionHeader, type FormSectionHeaderProps, type FormSectionProps, FxOverlay, FxOverlayItem, type FxOverlayProps, GameAudioCue, type GameAudioCueProps, GameAudioToggle, type GameAudioToggleProps, GameHud, type GameHudElement, type GameHudProps, type GameHudStat, GameIcon, type GameIconProps, GameMenu, type GameMenuProps, GameShell, type GameShellProps, Gantt, type GanttLink, type GanttProps, GenericAppTemplate, type GenericAppTemplateProps, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, GraphCanvas, type GraphCanvasProps, type GraphEdge, type GraphNode, type GraphSimilarity, GraphView, type GraphViewEdge, type GraphViewNode, type GraphViewProps, type GraphicAnimation, Grid, GridPicker, type GridPickerCellSize, type GridPickerProps, type GridProps, HStack, type HStackProps, Header, type HeaderProps, HealthBar, type HealthBarProps, type HighlightType, IconButton, type IconButtonProps, IconInput, IconPicker, type IconPickerProps, Image, type ImageAspect, type ImageFit, type ImageProps, type ImageRounded, type ImportEntityDisplay, ImportPreviewTree, type ImportPreviewTreeProps, type ImportPreviewUnit, ImportProgress, type ImportProgressCounts, type ImportProgressProps, type ImportProgressStep, type ImportSkippedElement, type ImportSourceOption, ImportSourcePicker, type ImportSourcePickerProps, InfiniteScrollSentinel, type InfiniteScrollSentinelProps, Input, InputGroup, type InputGroupProps, type InputProps, IsometricUnit, JazariStateMachine, type JazariStateMachineProps, JsonTreeEditor, type JsonTreeEditorProps, Label, type LabelProps, type LawReference, LawReferenceTooltip, type LawReferenceTooltipProps, type Learning3DPoint, LearningCanvas, type LearningCanvasProps, type LearningPhysicsBody, type LearningPhysicsConstraint, type LearningPoint, LearningScene3D, type LearningScene3DProps, type LearningShape, type LearningShapeType, LessonSegment, Lightbox, type LightboxImage, type LightboxProps, type LikertOption, LikertScale, type LikertScaleProps, LineChart, type LineChartProps, LoadingState, type LoadingStateProps, type MapMarkerData, type MapRouteData, type MapRouteWaypoint, MapView, type MapViewProps, MarkdownContent, type MarkdownContentProps, MasterDetailLayout, type MasterDetailLayoutProps, MathCanvas, type MathCanvasProps, type MathCurve, type MathPoint, type MathVector, type MatrixColumn, MatrixQuestion, type MatrixQuestionProps, type MatrixRow, MediaGallery, type MediaGalleryProps, type MediaItem, Menu, type MenuItem, type MenuOption, type MenuProps, type MeshSphereOpts, Meter, type MeterAction, type MeterProps, type MeterThreshold, type MeterVariant, type MixedSegment, Modal, type ModalProps, type ModalSize, ModalSlot, type ModalSlotProps, type NavItem, Navigation, type NavigationItem, type NavigationProps, NodeSlotEditor, type NodeSlotEditorProps, NumberStepper, type NumberStepperProps, type NumberStepperSize, OnboardingSpotlight, type OnboardingSpotlightProps, type OptionConstraint, OptionConstraintGroup, type OptionConstraintGroupProps, type OptionConstraintOption, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, type OrbitalVisualizationProps, Overlay, type OverlayProps, type PageBreadcrumb, PageHeader, type PageHeaderProps, PageTransition, type PageTransitionProps, type PaginatePayload, Pagination, type PaginationProps, PatternTile, type PatternTileProps, type PatternVariant, PhysicsCanvas, type PhysicsCanvasProps, type PickerItem, type Platform, Popover, type PopoverProps, PositionedCanvas, type PositionedCanvasProps, Presence, type PresenceAnimation, type PresenceProps, type PresenceResult, type PrismLanguageGrammar, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarVariant, ProgressDots, type ProgressDotsProps, type Projection, PropertyInspector, type PropertyInspectorProps, PullToRefresh, type PullToRefreshProps, type QrScanResult, QrScanner, type QrScannerProps, QuizBlock, type QuizBlockProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, type RangeSliderSize, ReflectionBlock, type ReflectionBlockProps, type RelationOption, RelationSelect, type RelationSelectProps, RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem, ReplyTree, type ReplyTreeProps, ResolvedFrame, type RevealAnimation, type RevealTrigger, RichTextEditor, type RichTextEditorProps, type RowFacts, type RuleDefinition, type RuleOption, RuntimeDebugger, type RuntimeDebuggerProps, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, type ScaledDiagramProps, ScoreDisplay, type ScoreDisplayProps, SearchInput, type SearchInputProps, type SearchPayload, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectOptionGroup, type SelectPayload, type SelectProps, SequenceBar, type SequenceBarProps, SidePanel, type SidePanelProps, type SidePlayer, Sidebar, type SidebarItem, type SidebarProps, SignaturePad, type SignaturePadProps, SimpleGrid, type SimpleGridProps, Skeleton, type SkeletonProps, SkeletonTree, SlotContent, SlotContentRenderer, type SlotItemData, SocialProof, type SocialProofItem, type SocialProofProps, type SortPayload, SortableList, type SortableListProps, Spacer, type SpacerProps, type SpacerSize, Sparkline, type SparklineColor, type SparklineProps, Spinner, type SpinnerProps, Split, SplitPane, type SplitPaneProps, type SplitProps, type SpotlightStep, SpriteFrameDims, SpriteSheetUrls, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StarRating, type StarRatingPrecision, type StarRatingProps, type StarRatingSize, StatBadge, type StatBadgeProps, StatCard, type StatCardProps, StatDisplay, type StatDisplayProps, StateGraph, type StateGraphProps, type StateGraphTransition, StateJsonView, type StateJsonViewProps, StateMachineView, type StateMachineViewProps, StatusBar, type StatusBarProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotStatus, SubagentTracePanel, type SubagentTracePanelProps, SvgBranch, type SvgBranchProps, SvgConnection, type SvgConnectionProps, SvgFlow, type SvgFlowProps, SvgGrid, type SvgGridProps, SvgLobe, type SvgLobeProps, SvgMesh, type SvgMeshProps, SvgMorph, type SvgMorphProps, SvgNode, type SvgNodeProps, SvgPulse, type SvgPulseProps, SvgRing, type SvgRingProps, SvgShield, type SvgShieldProps, SvgStack, type SvgStackProps, type SwipeAction, SwipeableRow, type SwipeableRowProps, Switch, type SwitchProps, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, type TabDefinition, type TabItem, TabbedContainer, type TabbedContainerProps, TableView, type TableViewColumn, type TableViewProps, Tabs, type TabsProps, TagInput, type TagInputProps, type TeamUnitTraits, type TemplateProps, TerrainPalette, type TerrainPaletteProps, TextHighlight, type TextHighlightProps, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, type TileCoord, type TileLayout, TimeSlotCell, type TimeSlotCellProps, Timeline, type TimelineItem, type TimelineItemStatus, type TimelineProps, TimerDisplay, type TimerDisplayProps, Toast, type ToastProps, ToastSlot, type ToastSlotProps, type ToastVariant, Tooltip, type TooltipProps, TopNavItem, type TopNavItemData, type TopNavItemProps, type TraceDisclosureLevel, TraitFrame, type TraitFrameProps, TraitSlot, type TraitSlotProps, type TraitStateMachineDefinition, TraitStateViewer, type TraitStateViewerProps, type TraitTransition, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type TrendIndicatorSize, TypewriterText, type TypewriterTextProps, Typography, type TypographyProps, type TypographyVariant, UISlotComponent, type UISlotComponentProps, UISlotRenderer, type UISlotRendererProps, UiError, UnitAnimationState, UploadDropZone, type UploadDropZoneProps, type UsePresenceOptions, VStack, type VStackProps, type Vec2, VersionDiff, type DiffLine as VersionDiffLine, type VersionDiffProps, ViolationAlert, type ViolationAlertProps, type ViolationRecord, VoteStack, type VoteStackProps, WizardContainer, type WizardContainerProps, WizardNavigation, type WizardNavigationProps, WizardProgress, type WizardProgressProps, type WizardProgressStep, type WizardStep, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, parseMarkdownWithCodeBlocks, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAnchorRect, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useImageCache, usePresence, useUnitSpriteAtlas, vec2 };
@@ -1,25 +1,23 @@
1
1
  export { assertUniqueSlotsPerHost } from '../chunk-O2EIWXWE.js';
2
- import { JsonTreeEditor } from '../chunk-F4ZTPKZL.js';
3
- export { JsonTreeEditor } from '../chunk-F4ZTPKZL.js';
4
- export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-2LFBQ4IS.js';
5
- export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-QGH4NAQO.js';
2
+ export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-MZIDOJMD.js';
3
+ export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-N7JIG57B.js';
6
4
  export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-VHTJRS2N.js';
7
- export { parseLessonSegments } from '../chunk-OKWD7LPO.js';
8
- import { GridPicker, Icon, Button, FormSection, Select, ThemedPortal, Switch, Input } from '../chunk-XZKGRSIO.js';
9
- export { ALL_PRESETS, Accordion, Card2 as ActionCard, ActionPalette, ActionTile, ActivationBlock, AgentActivityFeed, AgentActivityRow, AgentChatFeed, AgentThinkingRow, Alert, AlgoGraphCanvas, AlgorithmCanvas, AnimatedCounter, AnimatedGraphic, AnimatedReveal, Aside, AtlasImage, AtlasPanel, AuthLayout, Avatar, Badge, BehaviorView, BiologyCanvas, BloomQuizBlock, BranchingLogicBuilder, Breadcrumb, Button, ButtonGroup, COMPACT_MEDIA_QUERY, CalendarGrid, Canvas, Canvas2D, Card, CardBody, CardContent, CardFooter, CardHeader, CardTitle, Carousel, Center, ChangeList, Chart, ChartLegend, ChatBar, Checkbox, ChemistryCanvas, ChoiceButton, CodeBlock, CodeRunnerPanel, CollapsibleSection, CommandPalette, CommitRow, ConditionalWrapper, ConfettiEffect, ConfirmDialog, ConnectionBlock, Container, ContentRenderer, ControlButton, ControlGrid, CounterTemplate, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, DashboardGrid, DashboardLayout, DataGrid, DataList, DateRangePicker, DateRangeSelector, DayCell, DetailPanel, Dialog, DialogueBubble, Divider, DocBreadcrumb, DocPagination, DocSearch, DocSidebar, DocTOC, DockLayout, DocumentDetails, DocumentPanel, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, ELEMENT_SELECTED_EVENT, EdgeDecoration, EditorCheckbox, EditorSelect, EditorSlider, EditorTextInput, EditorToolbar, EmojiPicker, EmptyState, ErrorBoundary, ErrorState, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FeatureCard, FeatureGrid, FileTree, FilterGroup, FilterPill, Flex, FlipCard, FlipContainer, FloatingActionButton, FloatingToolbar, Form, FormActions, FormField, FormLayout, FormSection, FormSectionHeader, FxOverlay, GameAudioContext, GameAudioCue, GameAudioProvider, GameAudioToggle, GameHud, GameIcon, GameMenu, GameShell, Gantt, GenericAppTemplate, GeometricPattern, GradientDivider, GraphCanvas, GraphView, Grid, GridPicker, Header, HealthBar, Icon, IconButton, Image, ImportPreviewTree, ImportProgress, ImportSourcePicker, InfiniteScrollSentinel, Input, InputGroup, JazariStateMachine, Label, LawReferenceTooltip, LearningCanvas, LearningScene3D, Lightbox, LikertScale, LineChart, LoadingState, MapView, MarkdownContent, MasterDetailLayout, MathCanvas, MatrixQuestion, MediaGallery, Menu, Meter, Modal, ModalSlot, ModuleCard, Navigation, NumberStepper, OptionConstraintGroup, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, Overlay, PageHeader, PageTransition, Pagination, PatternTile, PhysicsCanvas, Popover, PositionedCanvas, ProgressBar, ProgressDots, PullToRefresh, QrScanner, QuizBlock, Radio, RangeSlider, ReflectionBlock, RelationSelect, RepeatableFormSection, ReplyTree, RichTextEditor, RuntimeDebugger, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, ScoreDisplay, SearchInput, Section, SectionHeader, SegmentRenderer, Select, SequenceBar, SidePanel, Sidebar, SignaturePad, SimpleGrid, Skeleton, SkeletonTree, SlotContentRenderer, SocialProof, SortableList, Spacer, Sparkline, Spinner, Split, SplitPane, StarRating, StatBadge, StatCard, StatDisplay, StateGraph, StateJsonView, StateMachineView, StatusBar, StatusDot, SubagentTracePanel, SvgBranch, SvgConnection, SvgFlow, SvgGrid, SvgLobe, SvgMesh, SvgMorph, SvgNode, SvgPulse, SvgRing, SvgShield, SvgStack, SwipeableRow, Switch, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, TableView, Tabs, TagInput, TerrainPalette, TextHighlight, Textarea, ThemeToggle, TimeSlotCell, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TopNavItem, TraitFrame, TraitSlot, TraitStateViewer, TrendIndicator, TypewriterText, UISlotComponent, UISlotRenderer, UploadDropZone, VersionDiff, ViolationAlert, VoteStack, WizardContainer, WizardNavigation, WizardProgress, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, calculateAttackTargets, calculateValidMoves, createInitialGameState, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useGameAudio, useGameAudioContext, useImageCache, useUnitSpriteAtlas, vec2 } from '../chunk-XZKGRSIO.js';
10
- import { VStack, HStack, Box } from '../chunk-Y53Q55H5.js';
11
- export { Box, HStack, Stack, VStack } from '../chunk-Y53Q55H5.js';
12
- import { Typography } from '../chunk-HCSJHRC4.js';
13
- export { Typography } from '../chunk-HCSJHRC4.js';
14
- export { ALMADAR_DND_MIME, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useDraggable, useDropZone, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-JRW33U35.js';
5
+ import '../chunk-YYYHH5BA.js';
6
+ import { GridPicker, Icon, Button, FormSection, Select, JsonTreeEditor, ThemedPortal, Switch, Input } from '../chunk-PYJ2UQWM.js';
7
+ export { ALL_PRESETS, Accordion, Card2 as ActionCard, ActionPalette, ActionTile, ActivationBlock, AgentActivityFeed, AgentActivityRow, AgentChatFeed, AgentThinkingRow, Alert, AlgoGraphCanvas, AlgorithmCanvas, AnimatedCounter, AnimatedGraphic, AnimatedReveal, Aside, AtlasImage, AtlasPanel, AuthLayout, Avatar, Badge, BehaviorView, BiologyCanvas, BloomQuizBlock, BranchingLogicBuilder, Breadcrumb, Button, ButtonGroup, COMPACT_MEDIA_QUERY, CalendarGrid, Canvas, Canvas2D, Card, CardBody, CardContent, CardFooter, CardHeader, CardTitle, Carousel, Center, ChangeList, Chart, ChartLegend, ChatBar, Checkbox, ChemistryCanvas, ChoiceButton, CodeBlock, CodeRunnerPanel, CollapsibleSection, CommandPalette, CommitRow, ConditionalWrapper, ConfettiEffect, ConfirmDialog, ConnectionBlock, Container, ContentRenderer, ControlButton, ControlGrid, CounterTemplate, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, DashboardGrid, DashboardLayout, DataGrid, DataList, DateRangePicker, DateRangeSelector, DayCell, DetailPanel, Dialog, DialogueBubble, Divider, DocBreadcrumb, DocPagination, DocSearch, DocSidebar, DocTOC, DockLayout, DocumentDetails, DocumentPanel, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, ELEMENT_SELECTED_EVENT, EdgeDecoration, EditorCheckbox, EditorSelect, EditorSlider, EditorTextInput, EditorToolbar, EmojiPicker, EmptyState, ErrorBoundary, ErrorState, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FeatureCard, FeatureGrid, FileTree, FilterGroup, FilterPill, Flex, FlipCard, FlipContainer, FloatingActionButton, FloatingToolbar, Form, FormActions, FormField, FormLayout, FormSection, FormSectionHeader, FxOverlay, GameAudioContext, GameAudioCue, GameAudioProvider, GameAudioToggle, GameHud, GameIcon, GameMenu, GameShell, Gantt, GenericAppTemplate, GeometricPattern, GradientDivider, GraphCanvas, GraphView, Grid, GridPicker, Header, HealthBar, Icon, IconButton, Image, ImportPreviewTree, ImportProgress, ImportSourcePicker, InfiniteScrollSentinel, Input, InputGroup, JazariStateMachine, JsonTreeEditor, Label, LawReferenceTooltip, LearningCanvas, LearningScene3D, Lightbox, LikertScale, LineChart, LoadingState, MapView, MarkdownContent, MasterDetailLayout, MathCanvas, MatrixQuestion, MediaGallery, Menu, Meter, Modal, ModalSlot, ModuleCard, Navigation, NumberStepper, OptionConstraintGroup, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, Overlay, PageHeader, PageTransition, Pagination, PatternTile, PhysicsCanvas, Popover, PositionedCanvas, ProgressBar, ProgressDots, PullToRefresh, QrScanner, QuizBlock, Radio, RangeSlider, ReflectionBlock, RelationSelect, RepeatableFormSection, ReplyTree, RichTextEditor, RuntimeDebugger, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, ScoreDisplay, SearchInput, Section, SectionHeader, SegmentRenderer, Select, SequenceBar, SidePanel, Sidebar, SignaturePad, SimpleGrid, Skeleton, SkeletonTree, SlotContentRenderer, SocialProof, SortableList, Spacer, Sparkline, Spinner, Split, SplitPane, StarRating, StatBadge, StatCard, StatDisplay, StateGraph, StateJsonView, StateMachineView, StatusBar, StatusDot, SubagentTracePanel, SvgBranch, SvgConnection, SvgFlow, SvgGrid, SvgLobe, SvgMesh, SvgMorph, SvgNode, SvgPulse, SvgRing, SvgShield, SvgStack, SwipeableRow, Switch, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, TableView, Tabs, TagInput, TerrainPalette, TextHighlight, Textarea, ThemeToggle, TimeSlotCell, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TopNavItem, TraitFrame, TraitSlot, TraitStateViewer, TrendIndicator, TypewriterText, UISlotComponent, UISlotRenderer, UploadDropZone, VersionDiff, ViolationAlert, VoteStack, WizardContainer, WizardNavigation, WizardProgress, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, calculateAttackTargets, calculateValidMoves, createInitialGameState, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useGameAudio, useGameAudioContext, useImageCache, useUnitSpriteAtlas, vec2 } from '../chunk-PYJ2UQWM.js';
8
+ import { VStack, HStack, Box } from '../chunk-HA7CJWQX.js';
9
+ export { Box, HStack, Stack, VStack } from '../chunk-HA7CJWQX.js';
10
+ import { Typography } from '../chunk-4ZGXIW3B.js';
11
+ export { Typography } from '../chunk-4ZGXIW3B.js';
12
+ export { ALMADAR_DND_MIME, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useDraggable, useDropZone, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-I5QOYW2Z.js';
15
13
  export { useTapReveal } from '../chunk-XJTHMW4G.js';
16
- export { useEmitEvent, useEventBus, useEventListener } from '../chunk-6EV3OEBQ.js';
17
- export { Presence, parseMarkdownWithCodeBlocks, usePresence } from '../chunk-KQXXO42S.js';
14
+ export { useEmitEvent, useEventBus, useEventListener } from '../chunk-CHNC4UYE.js';
15
+ export { Presence, parseLessonSegments, parseMarkdownWithCodeBlocks, usePresence } from '../chunk-KJGVLXEN.js';
18
16
  import '../chunk-Q47ZN2DW.js';
19
17
  import { cn, domPassthrough } from '../chunk-64WACXM7.js';
20
18
  export { cn } from '../chunk-64WACXM7.js';
21
- import '../chunk-RNY5LJXJ.js';
22
- import '../chunk-HRCR53OW.js';
19
+ import '../chunk-723MJUU3.js';
20
+ import '../chunk-LZRW6GXG.js';
23
21
  import { getKnownPatterns, getPatternDefinition } from '../chunk-PQKU62LK.js';
24
22
  import '../chunk-PEST66PN.js';
25
23
  import '../chunk-QPXIAUJD.js';
@@ -582,6 +582,7 @@ var BUILT_IN_THEMES = [
582
582
  { name: "gothic", displayName: "Gothic Manuscript", hasLightMode: true, hasDarkMode: true },
583
583
  { name: "ink-wash", displayName: "Ink Wash", hasLightMode: true, hasDarkMode: true },
584
584
  { name: "kawaii", displayName: "Kawaii", hasLightMode: true, hasDarkMode: true },
585
+ { name: "kflow", displayName: "KFlow", hasLightMode: true, hasDarkMode: true },
585
586
  { name: "kiosk", displayName: "Kiosk", hasLightMode: true, hasDarkMode: true },
586
587
  { name: "linear-clean", displayName: "Linear Clean", hasLightMode: true, hasDarkMode: true },
587
588
  { name: "luxury", displayName: "Haute Luxe", hasLightMode: true, hasDarkMode: true },
@@ -621,6 +622,24 @@ var ThemeScopeContext = React.createContext({});
621
622
  function useThemeScope() {
622
623
  return React.useContext(ThemeScopeContext);
623
624
  }
625
+ function registryKeyMode(key, themes) {
626
+ return registryKeyTheme(key, themes)?.mode;
627
+ }
628
+ function registryKeyTheme(key, themes) {
629
+ for (const t of themes) {
630
+ if (key === `${t.name}-light` && themeHasMode(t, "light")) return { theme: t, mode: "light" };
631
+ if (key === `${t.name}-dark` && themeHasMode(t, "dark")) return { theme: t, mode: "dark" };
632
+ }
633
+ return void 0;
634
+ }
635
+ function themeHasMode(theme, mode) {
636
+ return mode === "light" ? theme.hasLightMode !== false : theme.hasDarkMode !== false;
637
+ }
638
+ function useScopedMode() {
639
+ const scope = useThemeScope();
640
+ const { resolvedMode } = useTheme();
641
+ return scope.mode ?? resolvedMode;
642
+ }
624
643
  var THEME_STORAGE_KEY = "theme";
625
644
  var MODE_STORAGE_KEY = "theme-mode";
626
645
  function getSystemMode() {
@@ -1171,9 +1190,13 @@ exports.ThemeProvider = ThemeProvider;
1171
1190
  exports.ThemeScopeContext = ThemeScopeContext;
1172
1191
  exports.UISlotContext = UISlotContext;
1173
1192
  exports.UISlotProvider = UISlotProvider;
1193
+ exports.registryKeyMode = registryKeyMode;
1194
+ exports.registryKeyTheme = registryKeyTheme;
1174
1195
  exports.resolveThemeForRuntime = resolveThemeForRuntime;
1196
+ exports.themeHasMode = themeHasMode;
1175
1197
  exports.themeTokensToCssVars = themeTokensToCssVars;
1176
1198
  exports.useDesignTheme = useDesignTheme;
1199
+ exports.useScopedMode = useScopedMode;
1177
1200
  exports.useSlotContent = useSlotContent;
1178
1201
  exports.useSlotHasContent = useSlotHasContent;
1179
1202
  exports.useTheme = useTheme;
@@ -1,6 +1,6 @@
1
1
  export { U as UISlotContext, a as UISlotProvider, u as useSlotContent, b as useSlotHasContent, c as useUISlots } from '../UISlotContext-CS487Uoc.js';
2
- import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-DvzdeHxc.js';
3
- export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, C as ColorMode, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, D as DesignTheme, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, i as ThemeProvider, j as ThemeProviderProps, k as ThemeScope, l as ThemeScopeContext, u as useArbitraryClassStyles, m as useCurrentPagePath, n as useDesignTheme, o as useTheme, p as useThemeScope } from '../ArbitraryClassCompiler-DvzdeHxc.js';
2
+ import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-tChQ3nVq.js';
3
+ export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, C as ColorMode, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, D as DesignTheme, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, i as ThemeProvider, j as ThemeProviderProps, k as ThemeScope, l as ThemeScopeContext, r as registryKeyMode, m as registryKeyTheme, t as themeHasMode, u as useArbitraryClassStyles, n as useCurrentPagePath, o as useDesignTheme, p as useScopedMode, q as useTheme, s as useThemeScope } from '../ArbitraryClassCompiler-tChQ3nVq.js';
4
4
  export { T as ThemeMode, r as resolveThemeForRuntime, t as themeTokensToCssVars } from '../themeTokens-D6MFwKrC.js';
5
5
  export { U as UserContext, a as UserContextValue, b as UserData, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-D566nfWA.js';
6
6
  export { ANONYMOUS_USER, UISlot } from '@almadar/core';
@@ -60,6 +60,7 @@ var BUILT_IN_THEMES = [
60
60
  { name: "gothic", displayName: "Gothic Manuscript", hasLightMode: true, hasDarkMode: true },
61
61
  { name: "ink-wash", displayName: "Ink Wash", hasLightMode: true, hasDarkMode: true },
62
62
  { name: "kawaii", displayName: "Kawaii", hasLightMode: true, hasDarkMode: true },
63
+ { name: "kflow", displayName: "KFlow", hasLightMode: true, hasDarkMode: true },
63
64
  { name: "kiosk", displayName: "Kiosk", hasLightMode: true, hasDarkMode: true },
64
65
  { name: "linear-clean", displayName: "Linear Clean", hasLightMode: true, hasDarkMode: true },
65
66
  { name: "luxury", displayName: "Haute Luxe", hasLightMode: true, hasDarkMode: true },
@@ -99,6 +100,24 @@ var ThemeScopeContext = createContext({});
99
100
  function useThemeScope() {
100
101
  return useContext(ThemeScopeContext);
101
102
  }
103
+ function registryKeyMode(key, themes) {
104
+ return registryKeyTheme(key, themes)?.mode;
105
+ }
106
+ function registryKeyTheme(key, themes) {
107
+ for (const t of themes) {
108
+ if (key === `${t.name}-light` && themeHasMode(t, "light")) return { theme: t, mode: "light" };
109
+ if (key === `${t.name}-dark` && themeHasMode(t, "dark")) return { theme: t, mode: "dark" };
110
+ }
111
+ return void 0;
112
+ }
113
+ function themeHasMode(theme, mode) {
114
+ return mode === "light" ? theme.hasLightMode !== false : theme.hasDarkMode !== false;
115
+ }
116
+ function useScopedMode() {
117
+ const scope = useThemeScope();
118
+ const { resolvedMode } = useTheme();
119
+ return scope.mode ?? resolvedMode;
120
+ }
102
121
  var THEME_STORAGE_KEY = "theme";
103
122
  var MODE_STORAGE_KEY = "theme-mode";
104
123
  function getSystemMode() {
@@ -262,4 +281,4 @@ function useDesignTheme() {
262
281
  };
263
282
  }
264
283
 
265
- export { BUILT_IN_THEMES, DesignThemeProvider, ThemeContext_default as ThemeContext, ThemeProvider, ThemeScopeContext, UISlotContext, UISlotProvider, useDesignTheme, useSlotContent, useSlotHasContent, useTheme, useThemeScope, useUISlots };
284
+ export { BUILT_IN_THEMES, DesignThemeProvider, ThemeContext_default as ThemeContext, ThemeProvider, ThemeScopeContext, UISlotContext, UISlotProvider, registryKeyMode, registryKeyTheme, themeHasMode, useDesignTheme, useScopedMode, useSlotContent, useSlotHasContent, useTheme, useThemeScope, useUISlots };