@vllnt/ui 0.2.1-canary.06f0e84 → 0.2.1-canary.0aaaad2

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 (146) hide show
  1. package/dist/components/accordion/accordion.js +2 -2
  2. package/dist/components/activity-heatmap/activity-heatmap.js +15 -13
  3. package/dist/components/activity-log/activity-log.js +5 -5
  4. package/dist/components/agent-activity/agent-activity.js +8 -8
  5. package/dist/components/ai-artifact/ai-artifact.js +8 -8
  6. package/dist/components/ai-chat-input/ai-chat-input.js +2 -2
  7. package/dist/components/ai-message-bubble/ai-message-bubble.js +1 -1
  8. package/dist/components/ai-sidebar/ai-sidebar.js +4 -4
  9. package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
  10. package/dist/components/ai-tool-call-display/ai-tool-call-display.js +4 -4
  11. package/dist/components/animated-text/animated-text.js +1 -4
  12. package/dist/components/auto-reload/auto-reload.js +14 -4
  13. package/dist/components/avatar/avatar.js +1 -1
  14. package/dist/components/avatar-group/avatar-group.js +4 -4
  15. package/dist/components/banner/banner.js +3 -3
  16. package/dist/components/bottom-activity-strip/bottom-activity-strip.js +1 -1
  17. package/dist/components/breadcrumb/breadcrumb.js +33 -26
  18. package/dist/components/button/button.js +1 -1
  19. package/dist/components/calendar/calendar.js +6 -6
  20. package/dist/components/callout/callout.js +1 -1
  21. package/dist/components/candlestick-chart/candlestick-chart.js +1 -1
  22. package/dist/components/canvas-shell/canvas-foundation-demo.js +4 -4
  23. package/dist/components/carousel/carousel.js +4 -4
  24. package/dist/components/chat-dock-section/chat-dock-section.js +1 -1
  25. package/dist/components/checkbox/checkbox.js +2 -2
  26. package/dist/components/checklist/checklist.js +3 -3
  27. package/dist/components/chronological-timeline/chronological-timeline.js +6 -5
  28. package/dist/components/civilization-card/civilization-card.js +1 -1
  29. package/dist/components/code-block/code-block.js +2 -2
  30. package/dist/components/code-playground/code-playground.js +8 -7
  31. package/dist/components/combobox/combobox.js +2 -2
  32. package/dist/components/command/command.js +1 -1
  33. package/dist/components/comment-pin/comment-pin.js +1 -1
  34. package/dist/components/comparison/comparison.js +9 -9
  35. package/dist/components/completion-dialog/completion-dialog.js +1 -1
  36. package/dist/components/content-intro/content-intro.js +7 -6
  37. package/dist/components/context-menu/context-menu.js +4 -4
  38. package/dist/components/conversation-thread/conversation-thread.js +8 -8
  39. package/dist/components/cookie-consent/cookie-consent.js +1 -1
  40. package/dist/components/copy-button/copy-button.js +3 -3
  41. package/dist/components/countdown-timer/countdown-timer.js +8 -7
  42. package/dist/components/credit-badge/credit-badge.js +1 -7
  43. package/dist/components/curriculum/curriculum.js +10 -10
  44. package/dist/components/data-list/data-list.js +1 -1
  45. package/dist/components/data-table/data-table.js +5 -4
  46. package/dist/components/date-picker/date-picker.js +1 -1
  47. package/dist/components/dialog/dialog.js +1 -1
  48. package/dist/components/dropdown-menu/dropdown-menu.js +3 -3
  49. package/dist/components/empty-state/empty-state.js +3 -3
  50. package/dist/components/exercise/exercise.js +4 -4
  51. package/dist/components/faq/faq.js +2 -2
  52. package/dist/components/file-upload/file-upload.js +3 -3
  53. package/dist/components/filter-bar/filter-bar.js +2 -1
  54. package/dist/components/flashcard/flashcard.js +1 -1
  55. package/dist/components/floating-action-button/floating-action-button.js +1 -1
  56. package/dist/components/floating-toolbar/floating-toolbar.js +1 -1
  57. package/dist/components/flow-diagram/flow-controls.js +9 -9
  58. package/dist/components/flow-diagram/flow-error-boundary.js +2 -2
  59. package/dist/components/flow-diagram/flow-fullscreen.js +2 -2
  60. package/dist/components/gantt-chart/gantt-chart.js +15 -13
  61. package/dist/components/handoff-beacon/handoff-beacon.js +1 -1
  62. package/dist/components/historic-timeline/historic-timeline.js +2 -2
  63. package/dist/components/historical-figure-card/historical-figure-card.js +4 -7
  64. package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +4 -4
  65. package/dist/components/input-otp/input-otp.js +1 -1
  66. package/dist/components/interactive-timeline/interactive-timeline.js +4 -4
  67. package/dist/components/jarvis-dock/jarvis-dock.js +2 -2
  68. package/dist/components/key-concept/key-concept.js +4 -4
  69. package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +2 -2
  70. package/dist/components/knowledge-check/knowledge-check.js +3 -3
  71. package/dist/components/learning-objectives/learning-objectives.js +12 -12
  72. package/dist/components/live-feed/live-feed.js +15 -13
  73. package/dist/components/map-2d/map-2d.js +2 -2
  74. package/dist/components/market-treemap/market-treemap.js +1 -1
  75. package/dist/components/mdx-content/mdx-content.js +2 -1
  76. package/dist/components/menubar/menubar.js +4 -4
  77. package/dist/components/metric-cluster/metric-cluster.js +1 -1
  78. package/dist/components/metric-gauge/metric-gauge.js +1 -1
  79. package/dist/components/model-comparison/model-comparison.js +2 -2
  80. package/dist/components/model-selector/model-selector.js +2 -2
  81. package/dist/components/multi-select/multi-select.js +3 -3
  82. package/dist/components/navbar-saas/navbar-saas.js +3 -2
  83. package/dist/components/navigation-menu/navigation-menu.js +2 -2
  84. package/dist/components/newsletter-signup/newsletter-signup.js +3 -3
  85. package/dist/components/number-input/number-input.js +1 -1
  86. package/dist/components/number-ticker/number-ticker.js +11 -4
  87. package/dist/components/object-inspector/object-inspector.js +1 -1
  88. package/dist/components/parallel-timeline/parallel-timeline.js +2 -2
  89. package/dist/components/password-input/password-input.js +1 -1
  90. package/dist/components/plan-badge/plan-badge.js +1 -7
  91. package/dist/components/presence-stack/presence-stack.js +2 -2
  92. package/dist/components/presence-sync-indicator/presence-sync-indicator.js +1 -1
  93. package/dist/components/pricing-table/pricing-table.js +3 -3
  94. package/dist/components/pro-tip/pro-tip.js +6 -6
  95. package/dist/components/profile-section/profile-section.js +1 -1
  96. package/dist/components/progress-card/progress-card.js +4 -3
  97. package/dist/components/progress-tracker/progress-tracker.js +7 -5
  98. package/dist/components/prompt-templates/prompt-templates.js +2 -2
  99. package/dist/components/quiz/quiz.js +5 -5
  100. package/dist/components/radio-group/radio-group.js +2 -2
  101. package/dist/components/rating/rating.js +3 -3
  102. package/dist/components/resizable/resizable.js +1 -1
  103. package/dist/components/runtime-overview-panel/runtime-overview-panel.js +1 -1
  104. package/dist/components/scope-selector/scope-selector.js +7 -7
  105. package/dist/components/search-bar/search-bar.js +24 -2
  106. package/dist/components/search-dialog/search-dialog.js +1 -1
  107. package/dist/components/select/select.js +5 -5
  108. package/dist/components/selection-halo/selection-halo.js +1 -1
  109. package/dist/components/severity-badge/severity-badge.js +2 -2
  110. package/dist/components/sheet/sheet.js +1 -1
  111. package/dist/components/sidebar/sidebar.js +1 -1
  112. package/dist/components/sidebar-toggle/sidebar-toggle.js +2 -2
  113. package/dist/components/slider/slider.js +1 -1
  114. package/dist/components/slideshow/slideshow.js +12 -11
  115. package/dist/components/social-fab/social-fab.js +2 -1
  116. package/dist/components/sparkline-grid/sparkline-grid.js +1 -1
  117. package/dist/components/spinner/spinner.js +3 -3
  118. package/dist/components/stat-card/stat-card.js +3 -3
  119. package/dist/components/state-badge-overlay/state-badge-overlay.js +1 -1
  120. package/dist/components/status-board/status-board.js +1 -1
  121. package/dist/components/status-indicator/status-indicator.js +3 -3
  122. package/dist/components/step-by-step/step-by-step.js +8 -7
  123. package/dist/components/step-navigation/step-navigation.js +2 -2
  124. package/dist/components/stepper/stepper.js +3 -3
  125. package/dist/components/sticky-metric/sticky-metric.js +1 -1
  126. package/dist/components/subscription-card/subscription-card.js +1 -1
  127. package/dist/components/switch/switch.js +1 -1
  128. package/dist/components/table-of-contents-panel/table-of-contents-panel.js +5 -5
  129. package/dist/components/tags-input/tags-input.js +1 -1
  130. package/dist/components/terminal/terminal.js +48 -34
  131. package/dist/components/thinking-block/thinking-block.js +1 -1
  132. package/dist/components/ticker-tape/ticker-tape.js +3 -3
  133. package/dist/components/timeline/timeline.js +2 -2
  134. package/dist/components/tldr-section/tldr-section.js +2 -2
  135. package/dist/components/tour/tour.js +1 -1
  136. package/dist/components/transaction-list/transaction-list.js +30 -9
  137. package/dist/components/tree-view/tree-view.js +2 -2
  138. package/dist/components/tutorial-complete/tutorial-complete.js +8 -8
  139. package/dist/components/usage-breakdown/usage-breakdown.js +9 -5
  140. package/dist/components/video-embed/video-embed.js +2 -2
  141. package/dist/components/viewport-bookmarks/viewport-bookmarks.js +1 -1
  142. package/dist/components/wallet-card/wallet-card.js +1 -1
  143. package/dist/components/watchlist/watchlist.js +5 -5
  144. package/dist/components/world-clock-bar/world-clock-bar.js +32 -12
  145. package/dist/index.d.ts +1 -1
  146. package/package.json +1 -1
@@ -31,13 +31,14 @@ import {
31
31
  } from "../table";
32
32
  function SortIcon({ direction }) {
33
33
  if (direction === "asc") {
34
- return /* @__PURE__ */ jsx(ArrowUp, { className: "h-4 w-4" });
34
+ return /* @__PURE__ */ jsx(ArrowUp, { className: "size-4" });
35
35
  }
36
36
  if (direction === "desc") {
37
- return /* @__PURE__ */ jsx(ArrowDown, { className: "h-4 w-4" });
37
+ return /* @__PURE__ */ jsx(ArrowDown, { className: "size-4" });
38
38
  }
39
- return /* @__PURE__ */ jsx(ArrowUpDown, { className: "h-4 w-4" });
39
+ return /* @__PURE__ */ jsx(ArrowUpDown, { className: "size-4" });
40
40
  }
41
+ const EMPTY_FILTERABLE_COLUMNS = [];
41
42
  function DataTableComponent({
42
43
  caption,
43
44
  className,
@@ -47,7 +48,7 @@ function DataTableComponent({
47
48
  enableFiltering = true,
48
49
  enablePagination = true,
49
50
  enableSelection = false,
50
- filterableColumns = [],
51
+ filterableColumns = EMPTY_FILTERABLE_COLUMNS,
51
52
  getRowId,
52
53
  pageSize = 10,
53
54
  searchPlaceholder = "Search rows...",
@@ -51,7 +51,7 @@ const DatePicker = React.forwardRef(
51
51
  ref: reference,
52
52
  variant: "outline",
53
53
  children: [
54
- /* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }),
54
+ /* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 size-4" }),
55
55
  selectedDate ? defaultDateFormatter.format(selectedDate) : placeholder
56
56
  ]
57
57
  }
@@ -34,7 +34,7 @@ const DialogContent = React.forwardRef(({ children, className, ...props }, refer
34
34
  children: [
35
35
  children,
36
36
  /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
37
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
37
+ /* @__PURE__ */ jsx(X, { className: "size-4" }),
38
38
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
39
39
  ] })
40
40
  ]
@@ -75,7 +75,7 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ checked, children, classNam
75
75
  ref: reference,
76
76
  ...props,
77
77
  children: [
78
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx("span", { className: "text-xs", children: "\u2713" }) }) }),
78
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx("span", { className: "text-xs", children: "\u2713" }) }) }),
79
79
  children
80
80
  ]
81
81
  }
@@ -91,7 +91,7 @@ const DropdownMenuRadioItem = React.forwardRef(({ children, className, ...props
91
91
  ref: reference,
92
92
  ...props,
93
93
  children: [
94
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx("span", { className: "text-xs", children: "\u25CB" }) }) }),
94
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx("span", { className: "text-xs", children: "\u25CB" }) }) }),
95
95
  children
96
96
  ]
97
97
  }
@@ -113,7 +113,7 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
113
113
  const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, reference) => /* @__PURE__ */ jsx(
114
114
  DropdownMenuPrimitive.Separator,
115
115
  {
116
- className: cn("-mx-1 my-1 h-px bg-muted", className),
116
+ className: cn("-m-1 h-px bg-muted", className),
117
117
  ref: reference,
118
118
  ...props
119
119
  }
@@ -51,9 +51,9 @@ const iconVariants = cva(
51
51
  },
52
52
  variants: {
53
53
  size: {
54
- lg: "h-16 w-16",
55
- md: "h-12 w-12",
56
- sm: "h-8 w-8"
54
+ lg: "size-16",
55
+ md: "size-12",
56
+ sm: "size-8"
57
57
  }
58
58
  }
59
59
  }
@@ -12,7 +12,7 @@ const difficultyConfig = {
12
12
  function ExerciseHeader({ completed, config, onToggle, title }) {
13
13
  return /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 mb-4", children: [
14
14
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
15
- /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Dumbbell, { className: "h-5 w-5 text-primary" }) }),
15
+ /* @__PURE__ */ jsx("div", { className: "flex size-10 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Dumbbell, { className: "size-5 text-primary" }) }),
16
16
  /* @__PURE__ */ jsxs("div", { children: [
17
17
  /* @__PURE__ */ jsx("h4", { className: "font-semibold text-foreground", children: title }),
18
18
  /* @__PURE__ */ jsx("span", { className: cn("text-xs font-medium", config.className), children: config.label })
@@ -26,7 +26,7 @@ function ExerciseHeader({ completed, config, onToggle, title }) {
26
26
  size: "sm",
27
27
  variant: completed ? "default" : "outline",
28
28
  children: completed ? /* @__PURE__ */ jsxs(Fragment, { children: [
29
- /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 mr-1" }),
29
+ /* @__PURE__ */ jsx(Check, { className: "size-4 mr-1" }),
30
30
  "Done"
31
31
  ] }) : "Mark Complete"
32
32
  }
@@ -50,10 +50,10 @@ function ExerciseHint({ hint, onShow, showHint }) {
50
50
  function ExerciseSolution({ onToggle, showSolution, solution }) {
51
51
  return /* @__PURE__ */ jsxs("div", { children: [
52
52
  /* @__PURE__ */ jsx(Button, { className: "mb-3", onClick: onToggle, size: "sm", variant: "outline", children: showSolution ? /* @__PURE__ */ jsxs(Fragment, { children: [
53
- /* @__PURE__ */ jsx(EyeOff, { className: "h-4 w-4 mr-1" }),
53
+ /* @__PURE__ */ jsx(EyeOff, { className: "size-4 mr-1" }),
54
54
  "Hide Solution"
55
55
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
56
- /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4 mr-1" }),
56
+ /* @__PURE__ */ jsx(Eye, { className: "size-4 mr-1" }),
57
57
  "Show Solution"
58
58
  ] }) }),
59
59
  showSolution ? /* @__PURE__ */ jsxs("div", { className: "p-4 rounded-lg bg-card border text-sm [&>pre]:my-0", children: [
@@ -20,7 +20,7 @@ function FAQItem({ children, defaultOpen = false, question }) {
20
20
  ChevronDown,
21
21
  {
22
22
  className: cn(
23
- "h-4 w-4 flex-shrink-0 transition-transform duration-200",
23
+ "size-4 flex-shrink-0 transition-transform duration-200",
24
24
  isOpen && "rotate-180"
25
25
  )
26
26
  }
@@ -43,7 +43,7 @@ function FAQItem({ children, defaultOpen = false, question }) {
43
43
  function FAQ({ children, title = "Frequently Asked Questions" }) {
44
44
  return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-card", children: [
45
45
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-4 border-b border-border", children: [
46
- /* @__PURE__ */ jsx(HelpCircle, { className: "h-5 w-5 text-primary" }),
46
+ /* @__PURE__ */ jsx(HelpCircle, { className: "size-5 text-primary" }),
47
47
  /* @__PURE__ */ jsx("h4", { className: "font-semibold", children: title })
48
48
  ] }),
49
49
  /* @__PURE__ */ jsx("div", { className: "px-4", children })
@@ -73,7 +73,7 @@ function FileListItem({
73
73
  size: "icon",
74
74
  type: "button",
75
75
  variant: "ghost",
76
- children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
76
+ children: /* @__PURE__ */ jsx(X, { className: "size-4" })
77
77
  }
78
78
  )
79
79
  ] });
@@ -127,13 +127,13 @@ function FileUploadDropzone({
127
127
  role: "button",
128
128
  tabIndex: disabled ? -1 : 0,
129
129
  children: [
130
- /* @__PURE__ */ jsx(UploadCloud, { className: "mb-3 h-10 w-10 text-muted-foreground" }),
130
+ /* @__PURE__ */ jsx(UploadCloud, { className: "mb-3 size-10 text-muted-foreground" }),
131
131
  /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
132
132
  /* @__PURE__ */ jsx("p", { className: "font-medium", children: dropzoneText }),
133
133
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: helperText })
134
134
  ] }),
135
135
  /* @__PURE__ */ jsxs("span", { className: "mt-4 inline-flex h-10 items-center justify-center rounded-md border border-input bg-secondary px-4 py-2 text-sm font-medium text-secondary-foreground shadow-sm", children: [
136
- /* @__PURE__ */ jsx(FileUp, { className: "mr-2 h-4 w-4" }),
136
+ /* @__PURE__ */ jsx(FileUp, { className: "mr-2 size-4" }),
137
137
  browseLabel
138
138
  ] }),
139
139
  children
@@ -149,12 +149,13 @@ const DEFAULT_LABELS = {
149
149
  searchPlaceholder: "Search...",
150
150
  tagsLabel: "Tags:"
151
151
  };
152
+ const EMPTY_FILTER_BAR_LABELS = {};
152
153
  function FilterBarImpl({
153
154
  className,
154
155
  currentDifficulty,
155
156
  currentTags,
156
157
  difficultyOptions,
157
- labels = {},
158
+ labels = EMPTY_FILTER_BAR_LABELS,
158
159
  onFiltersChange,
159
160
  searchQuery,
160
161
  tags
@@ -39,7 +39,7 @@ function Flashcard({
39
39
  /* @__PURE__ */ jsx(CardTitle, { children: title })
40
40
  ] }),
41
41
  /* @__PURE__ */ jsxs(Button, { onClick: toggleFlipped, size: "sm", variant: "outline", children: [
42
- /* @__PURE__ */ jsx(RefreshCcw, { className: "mr-2 h-4 w-4" }),
42
+ /* @__PURE__ */ jsx(RefreshCcw, { className: "mr-2 size-4" }),
43
43
  "Flip"
44
44
  ] })
45
45
  ] }),
@@ -14,7 +14,7 @@ function FloatingActionButtonImpl({
14
14
  {
15
15
  "aria-label": ariaLabel,
16
16
  className: cn(
17
- "fixed z-40 flex h-12 w-12 items-center justify-center rounded-full",
17
+ "fixed z-40 flex size-12 items-center justify-center rounded-full",
18
18
  "bg-primary text-primary-foreground shadow-lg",
19
19
  "transition-transform hover:scale-110",
20
20
  "focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
@@ -49,7 +49,7 @@ const FloatingToolbar = forwardRef(
49
49
  onClick: handleClick,
50
50
  type: "button",
51
51
  children: [
52
- action.glyph ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "inline-flex h-3 w-3", children: action.glyph }) : null,
52
+ action.glyph ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "inline-flex size-3", children: action.glyph }) : null,
53
53
  /* @__PURE__ */ jsx("span", { children: action.label })
54
54
  ]
55
55
  },
@@ -12,7 +12,7 @@ import {
12
12
  X
13
13
  } from "lucide-react";
14
14
  import { cn } from "../../lib/utils";
15
- const BUTTON_CLASS = "flex h-8 w-8 items-center justify-center rounded hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed";
15
+ const BUTTON_CLASS = "flex size-8 items-center justify-center rounded hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed";
16
16
  function ControlButton({
17
17
  disabled,
18
18
  icon,
@@ -36,14 +36,14 @@ function ControlButton({
36
36
  function getCopyIcon(status) {
37
37
  switch (status) {
38
38
  case "copying":
39
- return /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" });
39
+ return /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin" });
40
40
  case "success":
41
- return /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-green-500" });
41
+ return /* @__PURE__ */ jsx(Check, { className: "size-4 text-green-500" });
42
42
  case "error":
43
- return /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-destructive" });
43
+ return /* @__PURE__ */ jsx(X, { className: "size-4 text-destructive" });
44
44
  case "idle":
45
45
  case void 0:
46
- return /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" });
46
+ return /* @__PURE__ */ jsx(Copy, { className: "size-4" });
47
47
  }
48
48
  }
49
49
  function getCopyTitle(status) {
@@ -81,7 +81,7 @@ const FlowControls = memo(function FlowControls2({
81
81
  /* @__PURE__ */ jsx(
82
82
  ControlButton,
83
83
  {
84
- icon: /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
84
+ icon: /* @__PURE__ */ jsx(Plus, { className: "size-4" }),
85
85
  label: "Zoom in",
86
86
  onClick: onZoomIn,
87
87
  title: "Zoom in"
@@ -90,7 +90,7 @@ const FlowControls = memo(function FlowControls2({
90
90
  /* @__PURE__ */ jsx(
91
91
  ControlButton,
92
92
  {
93
- icon: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" }),
93
+ icon: /* @__PURE__ */ jsx(Minus, { className: "size-4" }),
94
94
  label: "Zoom out",
95
95
  onClick: onZoomOut,
96
96
  title: "Zoom out"
@@ -100,7 +100,7 @@ const FlowControls = memo(function FlowControls2({
100
100
  /* @__PURE__ */ jsx(
101
101
  ControlButton,
102
102
  {
103
- icon: /* @__PURE__ */ jsx(Move, { className: "h-4 w-4" }),
103
+ icon: /* @__PURE__ */ jsx(Move, { className: "size-4" }),
104
104
  label: "Fit view",
105
105
  onClick: onFitView,
106
106
  title: "Fit view"
@@ -124,7 +124,7 @@ const FlowControls = memo(function FlowControls2({
124
124
  /* @__PURE__ */ jsx(
125
125
  ControlButton,
126
126
  {
127
- icon: /* @__PURE__ */ jsx(Maximize2, { className: "h-4 w-4" }),
127
+ icon: /* @__PURE__ */ jsx(Maximize2, { className: "size-4" }),
128
128
  label: "Fullscreen",
129
129
  onClick: onFullscreen,
130
130
  title: "Toggle fullscreen"
@@ -34,7 +34,7 @@ class FlowErrorBoundary extends Component {
34
34
  ),
35
35
  style: { height },
36
36
  children: [
37
- /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx(AlertTriangle, { className: "h-6 w-6 text-destructive" }) }),
37
+ /* @__PURE__ */ jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx(AlertTriangle, { className: "size-6 text-destructive" }) }),
38
38
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
39
39
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-medium text-foreground", children: "Failed to render diagram" }),
40
40
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: error?.message ?? "An unexpected error occurred while rendering the flow diagram." })
@@ -46,7 +46,7 @@ class FlowErrorBoundary extends Component {
46
46
  onClick: this.handleRetry,
47
47
  type: "button",
48
48
  children: [
49
- /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }),
49
+ /* @__PURE__ */ jsx(RefreshCw, { className: "size-4" }),
50
50
  "Try again"
51
51
  ]
52
52
  }
@@ -39,11 +39,11 @@ const FlowFullscreen = memo(function FlowFullscreen2({
39
39
  "button",
40
40
  {
41
41
  "aria-label": "Close fullscreen",
42
- className: "flex h-8 w-8 items-center justify-center rounded hover:bg-muted transition-colors",
42
+ className: "flex size-8 items-center justify-center rounded hover:bg-muted transition-colors",
43
43
  onClick: onClose,
44
44
  title: "Close fullscreen (Esc)",
45
45
  type: "button",
46
- children: /* @__PURE__ */ jsx(X, { className: "h-5 w-5" })
46
+ children: /* @__PURE__ */ jsx(X, { className: "size-5" })
47
47
  }
48
48
  ) }),
49
49
  /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-hidden", children })
@@ -50,23 +50,25 @@ function clamp(value, min, max) {
50
50
  function diffInDays(later, earlier) {
51
51
  return (later.getTime() - earlier.getTime()) / MS_PER_DAY;
52
52
  }
53
+ const TICK_FORMATTER_CACHE = /* @__PURE__ */ new Map();
54
+ function getTickDateTimeFormatter(locale, scale) {
55
+ const key = `${locale}|${scale}`;
56
+ let formatter = TICK_FORMATTER_CACHE.get(key);
57
+ if (!formatter) {
58
+ const options = scale === "month" ? { month: "short", year: "numeric" } : { day: "2-digit", month: "short" };
59
+ formatter = new Intl.DateTimeFormat(locale, options);
60
+ TICK_FORMATTER_CACHE.set(key, formatter);
61
+ }
62
+ return formatter;
63
+ }
53
64
  function buildTickFormatter(scale, locale) {
54
65
  switch (scale) {
55
66
  case "day":
56
- return new Intl.DateTimeFormat(locale, {
57
- day: "2-digit",
58
- month: "short"
59
- }).format;
67
+ return getTickDateTimeFormatter(locale, "day").format;
60
68
  case "week":
61
- return new Intl.DateTimeFormat(locale, {
62
- day: "2-digit",
63
- month: "short"
64
- }).format;
69
+ return getTickDateTimeFormatter(locale, "week").format;
65
70
  case "month":
66
- return new Intl.DateTimeFormat(locale, {
67
- month: "short",
68
- year: "numeric"
69
- }).format;
71
+ return getTickDateTimeFormatter(locale, "month").format;
70
72
  case "quarter":
71
73
  return (date) => {
72
74
  const quarter = Math.floor(date.getMonth() / 3) + 1;
@@ -175,7 +177,7 @@ function MilestoneMarker({
175
177
  "div",
176
178
  {
177
179
  "aria-hidden": "true",
178
- className: "h-3 w-3 rotate-45 bg-amber-500 ring-2 ring-background"
180
+ className: "size-3 rotate-45 bg-amber-500 ring-2 ring-background"
179
181
  }
180
182
  ),
181
183
  titleText ? /* @__PURE__ */ jsx("span", { className: "mt-0.5 whitespace-nowrap rounded bg-amber-500/20 px-1 text-[10px] font-medium text-amber-900 dark:text-amber-200", children: titleText }) : null
@@ -49,7 +49,7 @@ const HandoffBeacon = forwardRef(
49
49
  {
50
50
  "aria-hidden": "true",
51
51
  className: cn(
52
- "block h-3 w-3 rounded-full ring-2 ring-offset-2 ring-offset-background",
52
+ "block size-3 rounded-full ring-2 ring-offset-2 ring-offset-background",
53
53
  LEVEL_DOT[level],
54
54
  LEVEL_RING[level]
55
55
  )
@@ -201,7 +201,7 @@ function EventMarker({
201
201
  {
202
202
  "aria-hidden": "true",
203
203
  className: cn(
204
- "h-3 w-3 rounded-full border-2 ring-2 ring-background",
204
+ "size-3 rounded-full border-2 ring-2 ring-background",
205
205
  palette.marker
206
206
  )
207
207
  }
@@ -264,7 +264,7 @@ function Legend({ categories }) {
264
264
  "span",
265
265
  {
266
266
  "aria-hidden": "true",
267
- className: cn("h-2 w-2 rounded-full", palette.marker)
267
+ className: cn("size-2 rounded-full", palette.marker)
268
268
  }
269
269
  ),
270
270
  category.label
@@ -120,10 +120,7 @@ function FigureQuote({ quote }) {
120
120
  "\u201C",
121
121
  quote.text,
122
122
  "\u201D",
123
- quote.source ? /* @__PURE__ */ jsxs("footer", { className: "mt-1 text-xs not-italic text-muted-foreground/80", children: [
124
- "\u2014 ",
125
- quote.source
126
- ] }) : null
123
+ quote.source ? /* @__PURE__ */ jsx("footer", { className: "mt-1 text-xs not-italic text-muted-foreground/80", children: quote.source }) : null
127
124
  ] });
128
125
  }
129
126
  function FigureBio({
@@ -150,7 +147,7 @@ function FigureBio({
150
147
  {
151
148
  "aria-hidden": "true",
152
149
  className: cn(
153
- "h-4 w-4 transition-transform",
150
+ "size-4 transition-transform",
154
151
  open ? "rotate-180" : "rotate-0"
155
152
  )
156
153
  }
@@ -170,9 +167,9 @@ function FigureHeader({
170
167
  const initials = getInitials(name);
171
168
  const altName = typeof name === "string" ? name : void 0;
172
169
  return /* @__PURE__ */ jsxs("header", { className: "flex items-start gap-4", children: [
173
- /* @__PURE__ */ jsxs(Avatar, { className: "h-14 w-14 shrink-0 ring-2 ring-border", children: [
170
+ /* @__PURE__ */ jsxs(Avatar, { className: "size-14 shrink-0 ring-2 ring-border", children: [
174
171
  portrait ? /* @__PURE__ */ jsx(AvatarImage, { alt: altName, src: portrait }) : null,
175
- /* @__PURE__ */ jsx(AvatarFallback, { className: "text-sm", children: initials || /* @__PURE__ */ jsx(User, { "aria-hidden": "true", className: "h-5 w-5" }) })
172
+ /* @__PURE__ */ jsx(AvatarFallback, { className: "text-sm", children: initials || /* @__PURE__ */ jsx(User, { "aria-hidden": "true", className: "size-5" }) })
176
173
  ] }),
177
174
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
178
175
  /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold leading-tight tracking-tight", children: name }),
@@ -24,28 +24,28 @@ const HorizontalScrollRow = memo(function HorizontalScrollRow2({
24
24
  Button,
25
25
  {
26
26
  "aria-label": "Scroll left",
27
- className: "h-8 w-8",
27
+ className: "size-8",
28
28
  disabled: !canScrollLeft,
29
29
  onClick: () => {
30
30
  scroll("left");
31
31
  },
32
32
  size: "icon",
33
33
  variant: "outline",
34
- children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
34
+ children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
35
35
  }
36
36
  ),
37
37
  /* @__PURE__ */ jsx(
38
38
  Button,
39
39
  {
40
40
  "aria-label": "Scroll right",
41
- className: "h-8 w-8",
41
+ className: "size-8",
42
42
  disabled: !canScrollRight,
43
43
  onClick: () => {
44
44
  scroll("right");
45
45
  },
46
46
  size: "icon",
47
47
  variant: "outline",
48
- children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
48
+ children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
49
49
  }
50
50
  )
51
51
  ] }) : null
@@ -30,7 +30,7 @@ const InputOTPSlot = forwardRef(({ className, index, ...props }, ref) => {
30
30
  "div",
31
31
  {
32
32
  className: cn(
33
- "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
33
+ "relative flex size-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
34
34
  isActive && "z-10 ring-2 ring-ring ring-offset-background",
35
35
  className
36
36
  ),
@@ -256,7 +256,7 @@ function EventNode({
256
256
  "span",
257
257
  {
258
258
  className: cn(
259
- "block h-3 w-3 rounded-full border-2 ring-2 ring-background",
259
+ "block size-3 rounded-full border-2 ring-2 ring-background",
260
260
  palette.dot,
261
261
  active ? "ring-primary" : ""
262
262
  )
@@ -288,7 +288,7 @@ function TrackRow({
288
288
  "span",
289
289
  {
290
290
  "aria-hidden": "true",
291
- className: cn("h-2 w-2 rounded-full", palette.dot)
291
+ className: cn("size-2 rounded-full", palette.dot)
292
292
  }
293
293
  ),
294
294
  /* @__PURE__ */ jsx("span", { className: "truncate", children: track.label })
@@ -433,7 +433,7 @@ const InteractiveTimelineZoomIn = forwardRef(({ className, ...rest }, ref) => {
433
433
  {
434
434
  "aria-label": labels.zoomIn,
435
435
  className: cn(
436
- "inline-flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
436
+ "inline-flex size-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
437
437
  className
438
438
  ),
439
439
  onClick: zoomIn,
@@ -452,7 +452,7 @@ const InteractiveTimelineZoomOut = forwardRef(({ className, ...rest }, ref) => {
452
452
  {
453
453
  "aria-label": labels.zoomOut,
454
454
  className: cn(
455
- "inline-flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
455
+ "inline-flex size-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
456
456
  className
457
457
  ),
458
458
  onClick: zoomOut,
@@ -23,7 +23,7 @@ const ActionButton = (props) => {
23
23
  return /* @__PURE__ */ jsxs(
24
24
  "button",
25
25
  {
26
- className: "group relative flex h-12 w-12 flex-col items-center justify-center gap-0.5 rounded-md border border-transparent text-[10px] uppercase tracking-wide text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
26
+ className: "group relative flex size-12 flex-col items-center justify-center gap-0.5 rounded-md border border-transparent text-[10px] uppercase tracking-wide text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
27
27
  "data-jarvis-action": action.id,
28
28
  "data-jarvis-tone": tone,
29
29
  onClick: handleClick,
@@ -79,7 +79,7 @@ const JarvisDock = forwardRef(
79
79
  "button",
80
80
  {
81
81
  "aria-label": resolvedLabels.paletteTrigger,
82
- className: "flex h-12 w-12 items-center justify-center rounded-md border border-transparent text-base text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
82
+ className: "flex size-12 items-center justify-center rounded-md border border-transparent text-base text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
83
83
  "data-jarvis-palette-trigger": true,
84
84
  onClick: handlePalette,
85
85
  type: "button",
@@ -16,10 +16,10 @@ function KeyConcept({
16
16
  className
17
17
  ),
18
18
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
19
- icon ? /* @__PURE__ */ jsx("span", { className: "h-5 w-5 text-primary flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
19
+ icon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-primary flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
20
20
  "svg",
21
21
  {
22
- className: "h-5 w-5 text-primary flex-shrink-0 mt-0.5",
22
+ className: "size-5 text-primary flex-shrink-0 mt-0.5",
23
23
  fill: "none",
24
24
  stroke: "currentColor",
25
25
  viewBox: "0 0 24 24",
@@ -50,10 +50,10 @@ function Glossary({
50
50
  }) {
51
51
  return /* @__PURE__ */ jsxs("div", { className: cn("my-6", className), children: [
52
52
  /* @__PURE__ */ jsxs("h4", { className: "font-semibold mb-3 flex items-center gap-2", children: [
53
- icon ? /* @__PURE__ */ jsx("span", { className: "h-4 w-4", children: icon }) : /* @__PURE__ */ jsx(
53
+ icon ? /* @__PURE__ */ jsx("span", { className: "size-4", children: icon }) : /* @__PURE__ */ jsx(
54
54
  "svg",
55
55
  {
56
- className: "h-4 w-4",
56
+ className: "size-4",
57
57
  fill: "none",
58
58
  stroke: "currentColor",
59
59
  viewBox: "0 0 24 24",
@@ -63,14 +63,14 @@ function KeyboardShortcutsHelpImpl({
63
63
  "button",
64
64
  {
65
65
  "aria-label": "Close shortcuts help",
66
- className: "flex h-8 w-8 items-center justify-center rounded-md hover:bg-muted",
66
+ className: "flex size-8 items-center justify-center rounded-md hover:bg-muted",
67
67
  onClick: onClose,
68
68
  ref: closeButtonRef,
69
69
  type: "button",
70
70
  children: closeIcon ?? /* @__PURE__ */ jsx(
71
71
  "svg",
72
72
  {
73
- className: "h-5 w-5",
73
+ className: "size-5",
74
74
  fill: "none",
75
75
  stroke: "currentColor",
76
76
  viewBox: "0 0 24 24",
@@ -132,7 +132,7 @@ function Feedback({
132
132
  ),
133
133
  role: "status",
134
134
  children: [
135
- answer.correct ? /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5 h-4 w-4 shrink-0" }) : /* @__PURE__ */ jsx(XCircle, { "aria-hidden": "true", className: "mt-0.5 h-4 w-4 shrink-0" }),
135
+ answer.correct ? /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }) : /* @__PURE__ */ jsx(XCircle, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }),
136
136
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
137
137
  /* @__PURE__ */ jsx("span", { className: "font-medium", children: answer.correct ? correctLabel : incorrectLabel }),
138
138
  explanation ? /* @__PURE__ */ jsx("span", { className: "text-xs opacity-80", children: explanation }) : null
@@ -153,7 +153,7 @@ function MultipleChoiceOption({
153
153
  "input",
154
154
  {
155
155
  checked: value === option.value,
156
- className: "h-4 w-4",
156
+ className: "size-4",
157
157
  id,
158
158
  name: groupName,
159
159
  onChange,
@@ -302,7 +302,7 @@ function ScoreSummary({
302
302
  score.total
303
303
  ] }),
304
304
  /* @__PURE__ */ jsxs(Button, { onClick: onRetry, size: "sm", type: "button", variant: "outline", children: [
305
- /* @__PURE__ */ jsx(RotateCcw, { "aria-hidden": "true", className: "mr-2 h-4 w-4" }),
305
+ /* @__PURE__ */ jsx(RotateCcw, { "aria-hidden": "true", className: "mr-2 size-4" }),
306
306
  labels.retry
307
307
  ] })
308
308
  ] });