@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
@@ -9,18 +9,18 @@ function LearningObjectives({
9
9
  return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-gradient-to-br from-primary/5 to-primary/10 p-6", children: [
10
10
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
11
11
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
12
- /* @__PURE__ */ jsx(Target, { className: "h-5 w-5 text-primary" }),
12
+ /* @__PURE__ */ jsx(Target, { className: "size-5 text-primary" }),
13
13
  /* @__PURE__ */ jsx("h4", { className: "font-semibold text-foreground", children: title })
14
14
  ] }),
15
15
  estimatedTime ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-sm text-muted-foreground", children: [
16
- /* @__PURE__ */ jsx(Clock, { className: "h-4 w-4" }),
16
+ /* @__PURE__ */ jsx(Clock, { className: "size-4" }),
17
17
  /* @__PURE__ */ jsx("span", { children: estimatedTime })
18
18
  ] }) : null
19
19
  ] }),
20
- /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: objectives.map((objective, index) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2", children: [
21
- /* @__PURE__ */ jsx(CheckCircle2, { className: "h-4 w-4 text-primary flex-shrink-0 mt-0.5" }),
20
+ /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: objectives.map((objective) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2", children: [
21
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "size-4 text-primary flex-shrink-0 mt-0.5" }),
22
22
  /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: objective })
23
- ] }, index)) })
23
+ ] }, objective)) })
24
24
  ] });
25
25
  }
26
26
  function Prerequisites({
@@ -31,12 +31,12 @@ function Prerequisites({
31
31
  return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-muted/30 p-6", children: [
32
32
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
33
33
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
34
- /* @__PURE__ */ jsx(GraduationCap, { className: "h-5 w-5 text-muted-foreground" }),
34
+ /* @__PURE__ */ jsx(GraduationCap, { className: "size-5 text-muted-foreground" }),
35
35
  /* @__PURE__ */ jsx("h4", { className: "font-semibold text-foreground", children: title })
36
36
  ] }),
37
37
  level ? /* @__PURE__ */ jsx("span", { className: "text-xs font-medium px-2 py-1 rounded-full bg-primary/10 text-primary capitalize", children: level }) : null
38
38
  ] }),
39
- /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: items.map((item, index) => /* @__PURE__ */ jsxs(
39
+ /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: items.map((item) => /* @__PURE__ */ jsxs(
40
40
  "li",
41
41
  {
42
42
  className: "flex items-start gap-2 text-sm text-muted-foreground",
@@ -45,7 +45,7 @@ function Prerequisites({
45
45
  item
46
46
  ]
47
47
  },
48
- index
48
+ item
49
49
  )) })
50
50
  ] });
51
51
  }
@@ -56,16 +56,16 @@ function Summary({
56
56
  }) {
57
57
  return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-muted/30 p-6", children: [
58
58
  /* @__PURE__ */ jsxs("h4", { className: "font-semibold text-foreground mb-3 flex items-center gap-2", children: [
59
- /* @__PURE__ */ jsx(GraduationCap, { className: "h-5 w-5" }),
59
+ /* @__PURE__ */ jsx(GraduationCap, { className: "size-5" }),
60
60
  title
61
61
  ] }),
62
62
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground [&>p]:mb-2", children }),
63
63
  keyTakeaways && keyTakeaways.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "mt-4 pt-4 border-t border-border", children: [
64
64
  /* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-wider text-muted-foreground mb-2", children: "Key Takeaways" }),
65
- /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: keyTakeaways.map((takeaway, index) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-sm", children: [
66
- /* @__PURE__ */ jsx(CheckCircle2, { className: "h-4 w-4 text-green-500 flex-shrink-0 mt-0.5" }),
65
+ /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: keyTakeaways.map((takeaway) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-sm", children: [
66
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "size-4 text-green-500 flex-shrink-0 mt-0.5" }),
67
67
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: takeaway })
68
- ] }, index)) })
68
+ ] }, takeaway)) })
69
69
  ] }) : null
70
70
  ] });
71
71
  }
@@ -60,18 +60,20 @@ function formatRelative(eventDate, now) {
60
60
  if (deltaMs < 7 * DAY_MS) {
61
61
  return `${Math.floor(deltaMs / DAY_MS)}d ago`;
62
62
  }
63
- return new Intl.DateTimeFormat("en-US", {
64
- day: "numeric",
65
- month: "short"
66
- }).format(eventDate);
63
+ return SHORT_DATE_FORMATTER.format(eventDate);
67
64
  }
65
+ const SHORT_DATE_FORMATTER = new Intl.DateTimeFormat("en-US", {
66
+ day: "numeric",
67
+ month: "short"
68
+ });
69
+ const ABSOLUTE_FORMATTER = new Intl.DateTimeFormat("en-US", {
70
+ hour: "numeric",
71
+ minute: "2-digit",
72
+ month: "short",
73
+ second: "2-digit"
74
+ });
68
75
  function formatAbsolute(eventDate) {
69
- return new Intl.DateTimeFormat("en-US", {
70
- hour: "numeric",
71
- minute: "2-digit",
72
- month: "short",
73
- second: "2-digit"
74
- }).format(eventDate);
76
+ return ABSOLUTE_FORMATTER.format(eventDate);
75
77
  }
76
78
  function sortEventsDesc(events) {
77
79
  return [...events].sort(
@@ -139,10 +141,10 @@ const LiveFeed = React.forwardRef(
139
141
  "span",
140
142
  {
141
143
  "aria-hidden": "true",
142
- className: "relative mr-1.5 inline-flex h-2 w-2",
144
+ className: "relative mr-1.5 inline-flex size-2",
143
145
  children: [
144
- /* @__PURE__ */ jsx("span", { className: "absolute inline-flex h-2 w-2 animate-ping rounded-full bg-emerald-500 opacity-70" }),
145
- /* @__PURE__ */ jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-emerald-500" })
146
+ /* @__PURE__ */ jsx("span", { className: "absolute inline-flex size-2 animate-ping rounded-full bg-emerald-500 opacity-70" }),
147
+ /* @__PURE__ */ jsx("span", { className: "relative inline-flex size-2 rounded-full bg-emerald-500" })
146
148
  ]
147
149
  }
148
150
  ),
@@ -100,7 +100,7 @@ const ControlButton = forwardRef(
100
100
  {
101
101
  "aria-label": ariaLabel,
102
102
  className: cn(
103
- "inline-flex h-7 w-7 items-center justify-center rounded text-sm font-semibold hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
103
+ "inline-flex size-7 items-center justify-center rounded text-sm font-semibold hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
104
104
  className
105
105
  ),
106
106
  onClick: onActivate,
@@ -184,7 +184,7 @@ const MapMarker = forwardRef(
184
184
  /* @__PURE__ */ jsx(
185
185
  "svg",
186
186
  {
187
- className: "pointer-events-none h-6 w-6 overflow-visible",
187
+ className: "pointer-events-none size-6 overflow-visible",
188
188
  viewBox: "-10 -10 20 20",
189
189
  children: /* @__PURE__ */ jsx(MarkerVisual, { children })
190
190
  }
@@ -48,7 +48,7 @@ function MarketTreemapTile({
48
48
  tone.trendClassName
49
49
  ),
50
50
  children: [
51
- /* @__PURE__ */ jsx(TrendIcon, { className: "h-4 w-4" }),
51
+ /* @__PURE__ */ jsx(TrendIcon, { className: "size-4" }),
52
52
  item.change > 0 ? "+" : "",
53
53
  item.change.toFixed(2),
54
54
  "%"
@@ -114,8 +114,9 @@ function buildCustomComponents(injectedComponents) {
114
114
  ...injectedComponents
115
115
  };
116
116
  }
117
+ const EMPTY_MDX_COMPONENTS = {};
117
118
  async function MDXContent({
118
- components = {},
119
+ components = EMPTY_MDX_COMPONENTS,
119
120
  content,
120
121
  enableMDX = true
121
122
  }) {
@@ -45,7 +45,7 @@ const MenubarSubTrigger = forwardRef(({ children, className, inset, ...props },
45
45
  ...props,
46
46
  children: [
47
47
  children,
48
- /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
48
+ /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto size-4" })
49
49
  ]
50
50
  }
51
51
  ));
@@ -103,7 +103,7 @@ const MenubarCheckboxItem = forwardRef(({ checked, children, className, ...props
103
103
  ref,
104
104
  ...props,
105
105
  children: [
106
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
106
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "size-4" }) }) }),
107
107
  children
108
108
  ]
109
109
  }
@@ -119,7 +119,7 @@ const MenubarRadioItem = forwardRef(({ children, className, ...props }, ref) =>
119
119
  ref,
120
120
  ...props,
121
121
  children: [
122
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
122
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "size-2 fill-current" }) }) }),
123
123
  children
124
124
  ]
125
125
  }
@@ -141,7 +141,7 @@ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
141
141
  const MenubarSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
142
142
  MenubarPrimitive.Separator,
143
143
  {
144
- className: cn("-mx-1 my-1 h-px bg-muted", className),
144
+ className: cn("-m-1 h-px bg-muted", className),
145
145
  ref,
146
146
  ...props
147
147
  }
@@ -34,7 +34,7 @@ const Row = (props) => {
34
34
  "span",
35
35
  {
36
36
  "aria-hidden": "true",
37
- className: cn("h-1.5 w-1.5 rounded-full", TONE_DOT[tone])
37
+ className: cn("size-1.5 rounded-full", TONE_DOT[tone])
38
38
  }
39
39
  ),
40
40
  entry.label
@@ -148,7 +148,7 @@ function GaugeLegend({ thresholds }) {
148
148
  {
149
149
  "aria-hidden": "true",
150
150
  className: cn(
151
- "h-2 w-2 rounded-full bg-current",
151
+ "size-2 rounded-full bg-current",
152
152
  threshold.colorClassName
153
153
  )
154
154
  }
@@ -51,10 +51,10 @@ function ComparisonHeader({
51
51
  type: "button",
52
52
  variant: "outline",
53
53
  children: blind ? /* @__PURE__ */ jsxs(Fragment, { children: [
54
- /* @__PURE__ */ jsx(Eye, { "aria-hidden": "true", className: "mr-2 h-4 w-4" }),
54
+ /* @__PURE__ */ jsx(Eye, { "aria-hidden": "true", className: "mr-2 size-4" }),
55
55
  labels.reveal
56
56
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
57
- /* @__PURE__ */ jsx(EyeOff, { "aria-hidden": "true", className: "mr-2 h-4 w-4" }),
57
+ /* @__PURE__ */ jsx(EyeOff, { "aria-hidden": "true", className: "mr-2 size-4" }),
58
58
  labels.hide
59
59
  ] })
60
60
  }
@@ -198,7 +198,7 @@ function ProviderFilterMenu({
198
198
  }) {
199
199
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
200
200
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { className: "h-9 gap-2", size: "sm", variant: "outline", children: [
201
- /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
201
+ /* @__PURE__ */ jsx(Filter, { className: "size-4" }),
202
202
  providerFilter === "all" ? "All Providers" : providerFilter
203
203
  ] }) }),
204
204
  /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-48", children: [
@@ -214,7 +214,7 @@ function ProviderFilterMenu({
214
214
  function SortMenu({ onChange, sortBy }) {
215
215
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
216
216
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { className: "h-9 gap-2", size: "sm", variant: "outline", children: [
217
- /* @__PURE__ */ jsx(ArrowUpDown, { className: "h-4 w-4" }),
217
+ /* @__PURE__ */ jsx(ArrowUpDown, { className: "size-4" }),
218
218
  "Sort"
219
219
  ] }) }),
220
220
  /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-48", children: [
@@ -58,10 +58,10 @@ function OptionList({
58
58
  "span",
59
59
  {
60
60
  className: cn(
61
- "flex h-4 w-4 items-center justify-center rounded-sm border border-input bg-background text-primary transition-opacity",
61
+ "flex size-4 items-center justify-center rounded-sm border border-input bg-background text-primary transition-opacity",
62
62
  isSelected ? "opacity-100" : "opacity-50"
63
63
  ),
64
- children: isSelected ? /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5" }) : null
64
+ children: isSelected ? /* @__PURE__ */ jsx(Check, { className: "size-3.5" }) : null
65
65
  }
66
66
  ),
67
67
  /* @__PURE__ */ jsx("span", { className: "flex-1", children: option.label })
@@ -179,7 +179,7 @@ const MultiSelectTrigger = React.forwardRef(
179
179
  selectedOptions
180
180
  }
181
181
  ) }),
182
- /* @__PURE__ */ jsx(ChevronDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
182
+ /* @__PURE__ */ jsx(ChevronDown, { className: "ml-2 size-4 shrink-0 opacity-50" })
183
183
  ]
184
184
  }
185
185
  )
@@ -8,9 +8,10 @@ import { Button } from "../button";
8
8
  import { useSidebar } from "../sidebar-provider";
9
9
  import { ThemeToggle } from "../theme-toggle";
10
10
  import { useMobile } from "./use-mobile";
11
+ const EMPTY_NAV_ITEMS = [];
11
12
  function NavbarSaas({
12
13
  brand,
13
- navItems = [],
14
+ navItems = EMPTY_NAV_ITEMS,
14
15
  rightSlot,
15
16
  showMobileMenu = true
16
17
  }) {
@@ -28,7 +29,7 @@ function NavbarSaas({
28
29
  },
29
30
  size: "icon",
30
31
  variant: "ghost",
31
- children: open ? /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Menu, { className: "h-4 w-4" })
32
+ children: open ? /* @__PURE__ */ jsx(X, { className: "size-4" }) : /* @__PURE__ */ jsx(Menu, { className: "size-4" })
32
33
  }
33
34
  ) : null,
34
35
  brand ? typeof brand === "string" ? /* @__PURE__ */ jsx(Link, { className: "text-xl font-bold truncate", href: "/", children: brand }) : brand : null,
@@ -50,7 +50,7 @@ const NavigationMenuTrigger = forwardRef(({ children, className, ...props }, ref
50
50
  ChevronDown,
51
51
  {
52
52
  "aria-hidden": "true",
53
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
53
+ className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180"
54
54
  }
55
55
  )
56
56
  ]
@@ -91,7 +91,7 @@ const NavigationMenuIndicator = forwardRef(({ className, ...props }, ref) => /*
91
91
  ),
92
92
  ref,
93
93
  ...props,
94
- children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
94
+ children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
95
95
  }
96
96
  ));
97
97
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
@@ -65,12 +65,12 @@ function SubmitButton({
65
65
  let content;
66
66
  if (status === "sending") {
67
67
  content = /* @__PURE__ */ jsxs(Fragment, { children: [
68
- /* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: "mr-2 h-4 w-4 animate-spin" }),
68
+ /* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: "mr-2 size-4 animate-spin" }),
69
69
  labels.sending
70
70
  ] });
71
71
  } else if (status === "error") {
72
72
  content = /* @__PURE__ */ jsxs(Fragment, { children: [
73
- /* @__PURE__ */ jsx(XCircle, { "aria-hidden": "true", className: "mr-2 h-4 w-4" }),
73
+ /* @__PURE__ */ jsx(XCircle, { "aria-hidden": "true", className: "mr-2 size-4" }),
74
74
  labels.tryAgain
75
75
  ] });
76
76
  } else {
@@ -97,7 +97,7 @@ function SuccessPanel({ className, message }) {
97
97
  ),
98
98
  role: "status",
99
99
  children: [
100
- /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5 h-4 w-4 shrink-0" }),
100
+ /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }),
101
101
  /* @__PURE__ */ jsx("span", { children: message })
102
102
  ]
103
103
  }
@@ -51,7 +51,7 @@ function StepButton({
51
51
  tabIndex: -1,
52
52
  type: "button",
53
53
  variant: "ghost",
54
- children: direction === "decrement" ? /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" })
54
+ children: direction === "decrement" ? /* @__PURE__ */ jsx(Minus, { className: "size-4" }) : /* @__PURE__ */ jsx(Plus, { className: "size-4" })
55
55
  }
56
56
  );
57
57
  }
@@ -2,6 +2,16 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { cn } from "../../lib/utils";
5
+ const NUMBER_FORMATTER_CACHE = /* @__PURE__ */ new Map();
6
+ function getNumberTickerFormatter(locale, formatOptions) {
7
+ const key = `${locale ?? ""}|${formatOptions ? JSON.stringify(formatOptions) : ""}`;
8
+ let formatter = NUMBER_FORMATTER_CACHE.get(key);
9
+ if (!formatter) {
10
+ formatter = new Intl.NumberFormat(locale, formatOptions);
11
+ NUMBER_FORMATTER_CACHE.set(key, formatter);
12
+ }
13
+ return formatter;
14
+ }
5
15
  const NumberTicker = React.forwardRef(
6
16
  ({
7
17
  className,
@@ -42,10 +52,7 @@ const NumberTicker = React.forwardRef(
42
52
  window.cancelAnimationFrame(animationFrame);
43
53
  };
44
54
  }, [delay, duration, from, value]);
45
- const formatter = React.useMemo(
46
- () => new Intl.NumberFormat(locale, formatOptions),
47
- [formatOptions, locale]
48
- );
55
+ const formatter = getNumberTickerFormatter(locale, formatOptions);
49
56
  return /* @__PURE__ */ jsx(
50
57
  "span",
51
58
  {
@@ -59,7 +59,7 @@ const StatusDot = (props) => /* @__PURE__ */ jsxs(
59
59
  "span",
60
60
  {
61
61
  "aria-hidden": "true",
62
- className: cn("h-1.5 w-1.5 rounded-full", STATUS_DOT[props.status])
62
+ className: cn("size-1.5 rounded-full", STATUS_DOT[props.status])
63
63
  }
64
64
  ),
65
65
  STATUS_LABEL[props.status]
@@ -136,7 +136,7 @@ function EventMarker({
136
136
  {
137
137
  "aria-hidden": "true",
138
138
  className: cn(
139
- "h-3 w-3 rounded-full border-2 ring-2 ring-background",
139
+ "size-3 rounded-full border-2 ring-2 ring-background",
140
140
  palette.marker
141
141
  )
142
142
  }
@@ -159,7 +159,7 @@ function TrackRow({ endYear, startYear, track }) {
159
159
  const color = track.color ?? "neutral";
160
160
  const palette = COLOR_CLASSES[color];
161
161
  return /* @__PURE__ */ jsxs("div", { className: "relative flex items-stretch gap-3 border-t border-border first:border-t-0", children: [
162
- /* @__PURE__ */ jsxs("div", { className: "flex w-32 shrink-0 flex-col gap-1 border-r border-border bg-muted/20 px-3 py-3", children: [
162
+ /* @__PURE__ */ jsxs("div", { className: "flex w-32 shrink-0 flex-col gap-1 border-r border-border bg-muted/20 p-3", children: [
163
163
  /* @__PURE__ */ jsx(
164
164
  "span",
165
165
  {
@@ -33,7 +33,7 @@ const PasswordInput = React.forwardRef(
33
33
  setVisible((previous) => !previous);
34
34
  },
35
35
  type: "button",
36
- children: visible ? /* @__PURE__ */ jsx(EyeOff, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" })
36
+ children: visible ? /* @__PURE__ */ jsx(EyeOff, { className: "size-4" }) : /* @__PURE__ */ jsx(Eye, { className: "size-4" })
37
37
  }
38
38
  )
39
39
  ] });
@@ -46,13 +46,7 @@ const PlanBadge = React.forwardRef(
46
46
  ref: reference,
47
47
  ...props,
48
48
  children: [
49
- /* @__PURE__ */ jsx(
50
- "span",
51
- {
52
- "aria-hidden": "true",
53
- className: "h-1.5 w-1.5 rounded-full bg-current"
54
- }
55
- ),
49
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "size-1.5 rounded-full bg-current" }),
56
50
  /* @__PURE__ */ jsx("span", { children: label ?? getPlanLabel(tier) }),
57
51
  state === "trial" ? /* @__PURE__ */ jsx("span", { className: "text-current/80", children: "Trial" }) : null,
58
52
  state === "legacy" ? /* @__PURE__ */ jsx("span", { className: "text-current/80", children: "Legacy" }) : null
@@ -20,7 +20,7 @@ const Avatar = (props) => {
20
20
  return /* @__PURE__ */ jsxs(
21
21
  "span",
22
22
  {
23
- className: "relative -ml-2 inline-flex h-7 w-7 items-center justify-center rounded-full border-2 border-background text-[11px] font-semibold text-white shadow-sm first:ml-0",
23
+ className: "relative -ml-2 inline-flex size-7 items-center justify-center rounded-full border-2 border-background text-[11px] font-semibold text-white shadow-sm first:ml-0",
24
24
  "data-presence-stack-status": status,
25
25
  "data-presence-stack-user": user.id,
26
26
  style: { backgroundColor: user.color ?? "var(--foreground)" },
@@ -32,7 +32,7 @@ const Avatar = (props) => {
32
32
  {
33
33
  "aria-hidden": "true",
34
34
  className: cn(
35
- "absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full border border-background",
35
+ "absolute -bottom-0.5 -right-0.5 size-2 rounded-full border border-background",
36
36
  STATUS_DOT[status]
37
37
  ),
38
38
  "data-presence-stack-dot": true
@@ -50,7 +50,7 @@ const PresenceSyncIndicator = forwardRef((props, ref) => {
50
50
  "span",
51
51
  {
52
52
  "aria-hidden": "true",
53
- className: cn("h-1.5 w-1.5 rounded-full", STATE_DOT[state]),
53
+ className: cn("size-1.5 rounded-full", STATE_DOT[state]),
54
54
  "data-presence-sync-dot": true
55
55
  }
56
56
  ),
@@ -16,7 +16,7 @@ function FeatureIndicator({
16
16
  "span",
17
17
  {
18
18
  "aria-hidden": "true",
19
- className: "mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-primary/15 text-[10px] font-semibold text-primary",
19
+ className: "mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-primary/15 text-[10px] font-semibold text-primary",
20
20
  children: "\u2713"
21
21
  }
22
22
  );
@@ -26,7 +26,7 @@ function FeatureIndicator({
26
26
  Check,
27
27
  {
28
28
  "aria-hidden": "true",
29
- className: "mt-0.5 h-4 w-4 shrink-0 text-primary"
29
+ className: "mt-0.5 size-4 shrink-0 text-primary"
30
30
  }
31
31
  );
32
32
  }
@@ -34,7 +34,7 @@ function FeatureIndicator({
34
34
  X,
35
35
  {
36
36
  "aria-hidden": "true",
37
- className: "mt-0.5 h-4 w-4 shrink-0 text-muted-foreground/60"
37
+ className: "mt-0.5 size-4 shrink-0 text-muted-foreground/60"
38
38
  }
39
39
  );
40
40
  }
@@ -39,10 +39,10 @@ function ProTip({
39
39
  {
40
40
  className: cn("my-6 rounded-lg border p-4", config.className, className),
41
41
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
42
- /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-full bg-current/10 flex-shrink-0", children: icon ? /* @__PURE__ */ jsx("span", { className: "h-4 w-4", children: icon }) : /* @__PURE__ */ jsx(
42
+ /* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-full bg-current/10 flex-shrink-0", children: icon ? /* @__PURE__ */ jsx("span", { className: "size-4", children: icon }) : /* @__PURE__ */ jsx(
43
43
  "svg",
44
44
  {
45
- className: "h-4 w-4",
45
+ className: "size-4",
46
46
  fill: "none",
47
47
  stroke: "currentColor",
48
48
  viewBox: "0 0 24 24",
@@ -82,10 +82,10 @@ function CommonMistake({
82
82
  ),
83
83
  children: [
84
84
  /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
85
- icon ? /* @__PURE__ */ jsx("span", { className: "h-5 w-5 text-red-500 flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
85
+ icon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-red-500 flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
86
86
  "svg",
87
87
  {
88
- className: "h-5 w-5 text-red-500 flex-shrink-0 mt-0.5",
88
+ className: "size-5 text-red-500 flex-shrink-0 mt-0.5",
89
89
  fill: "none",
90
90
  stroke: "currentColor",
91
91
  viewBox: "0 0 24 24",
@@ -106,10 +106,10 @@ function CommonMistake({
106
106
  ] })
107
107
  ] }) }),
108
108
  fix ? /* @__PURE__ */ jsx("div", { className: "border-t border-red-500/30 bg-green-500/5 p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
109
- fixIcon ? /* @__PURE__ */ jsx("span", { className: "h-5 w-5 text-green-500 flex-shrink-0 mt-0.5", children: fixIcon }) : /* @__PURE__ */ jsx(
109
+ fixIcon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-green-500 flex-shrink-0 mt-0.5", children: fixIcon }) : /* @__PURE__ */ jsx(
110
110
  "svg",
111
111
  {
112
- className: "h-5 w-5 text-green-500 flex-shrink-0 mt-0.5",
112
+ className: "size-5 text-green-500 flex-shrink-0 mt-0.5",
113
113
  fill: "none",
114
114
  stroke: "currentColor",
115
115
  viewBox: "0 0 24 24",
@@ -13,7 +13,7 @@ function ProfileSection({
13
13
  const showImage = !compact && Boolean(imageSource);
14
14
  const showSocialLinks = !compact && Boolean(socialLinks && socialLinks.length > 0);
15
15
  return /* @__PURE__ */ jsxs("div", { className: "text-center space-y-4", children: [
16
- showImage ? /* @__PURE__ */ jsx("div", { className: "relative w-24 h-24 mx-auto overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
16
+ showImage ? /* @__PURE__ */ jsx("div", { className: "relative size-24 mx-auto overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
17
17
  Image,
18
18
  {
19
19
  alt: displayImageAlt,
@@ -17,6 +17,7 @@ function DefaultLink({
17
17
  }) {
18
18
  return /* @__PURE__ */ jsx("a", { className, href, children });
19
19
  }
20
+ const EMPTY_PROGRESS_CARD_LIST = [];
20
21
  function ContentCardImpl({
21
22
  badgeLabel,
22
23
  badgeVariant = "default",
@@ -24,9 +25,9 @@ function ContentCardImpl({
24
25
  getProgress,
25
26
  href,
26
27
  linkComponent: LinkComponent = DefaultLink,
27
- metadata = [],
28
+ metadata = EMPTY_PROGRESS_CARD_LIST,
28
29
  progressLabel = "completed",
29
- tags = [],
30
+ tags = EMPTY_PROGRESS_CARD_LIST,
30
31
  title
31
32
  }) {
32
33
  const [progress, setProgress] = useState(null);
@@ -59,7 +60,7 @@ function ContentCardImpl({
59
60
  metadata.length > 0 ? /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 text-xs text-muted-foreground", children: metadata.map((item, index) => /* @__PURE__ */ jsxs("span", { children: [
60
61
  index > 0 ? /* @__PURE__ */ jsx("span", { className: "mr-2", children: "\u2022" }) : null,
61
62
  item
62
- ] }, index)) }) : null,
63
+ ] }, item)) }) : null,
63
64
  tags.length > 0 ? /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: tags.map((tag) => /* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: tag }, tag)) }) : null
64
65
  ] })
65
66
  ] }) });
@@ -124,10 +124,12 @@ function useProgressTrackerContext() {
124
124
  }
125
125
  return context;
126
126
  }
127
+ const EMPTY_PROGRESS_TRACKER_MODULES = [];
128
+ const EMPTY_PROGRESS_TRACKER_SKILLS = [];
127
129
  function ProgressTrackerRoot({
128
130
  children,
129
131
  className,
130
- modules = [],
132
+ modules = EMPTY_PROGRESS_TRACKER_MODULES,
131
133
  overallProgress,
132
134
  streak = 0,
133
135
  title = "Learning progress",
@@ -226,7 +228,7 @@ function ProgressTrackerOverview({
226
228
  "span",
227
229
  {
228
230
  "aria-hidden": "true",
229
- className: "inline-flex h-2.5 w-2.5 rounded-full bg-primary"
231
+ className: "inline-flex size-2.5 rounded-full bg-primary"
230
232
  }
231
233
  ),
232
234
  /* @__PURE__ */ jsxs("span", { children: [
@@ -239,8 +241,8 @@ function ProgressTrackerOverview({
239
241
  ] }),
240
242
  /* @__PURE__ */ jsxs(CardContent, { className: "grid gap-6 lg:grid-cols-[auto,1fr] lg:items-center", children: [
241
243
  /* @__PURE__ */ jsxs("div", { className: "mx-auto flex flex-col items-center gap-3 text-center", children: [
242
- /* @__PURE__ */ jsxs("div", { className: "relative flex h-36 w-36 items-center justify-center", children: [
243
- /* @__PURE__ */ jsxs("svg", { className: "h-36 w-36 -rotate-90", viewBox: "0 0 120 120", children: [
244
+ /* @__PURE__ */ jsxs("div", { className: "relative flex size-36 items-center justify-center", children: [
245
+ /* @__PURE__ */ jsxs("svg", { className: "size-36 -rotate-90", viewBox: "0 0 120 120", children: [
244
246
  /* @__PURE__ */ jsx(
245
247
  "circle",
246
248
  {
@@ -352,7 +354,7 @@ function ProgressTrackerModule({
352
354
  lessons,
353
355
  persistKey,
354
356
  progress,
355
- skills = [],
357
+ skills = EMPTY_PROGRESS_TRACKER_SKILLS,
356
358
  status,
357
359
  timeSpent,
358
360
  title,
@@ -71,7 +71,7 @@ function FilterBar({
71
71
  Search,
72
72
  {
73
73
  "aria-hidden": "true",
74
- className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"
74
+ className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"
75
75
  }
76
76
  ),
77
77
  /* @__PURE__ */ jsx(
@@ -171,7 +171,7 @@ function CardActions({
171
171
  type: "button",
172
172
  variant: variableCount > 0 ? "outline" : "default",
173
173
  children: [
174
- /* @__PURE__ */ jsx(Sparkles, { "aria-hidden": "true", className: "mr-2 h-3.5 w-3.5" }),
174
+ /* @__PURE__ */ jsx(Sparkles, { "aria-hidden": "true", className: "mr-2 size-3.5" }),
175
175
  useLabel
176
176
  ]
177
177
  }