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

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 (177) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/components/accordion/accordion.js +2 -2
  3. package/dist/components/activity-heatmap/activity-heatmap.js +17 -14
  4. package/dist/components/activity-log/activity-log.js +6 -6
  5. package/dist/components/agent-activity/agent-activity.js +8 -8
  6. package/dist/components/ai-artifact/ai-artifact.js +16 -16
  7. package/dist/components/ai-chat-input/ai-chat-input.js +3 -3
  8. package/dist/components/ai-message-bubble/ai-message-bubble.js +2 -2
  9. package/dist/components/ai-sidebar/ai-sidebar.js +8 -8
  10. package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
  11. package/dist/components/ai-tool-call-display/ai-tool-call-display.js +5 -5
  12. package/dist/components/animated-text/animated-text.js +7 -7
  13. package/dist/components/annotation/annotation.js +1 -1
  14. package/dist/components/auto-reload/auto-reload.js +14 -4
  15. package/dist/components/avatar/avatar.js +1 -1
  16. package/dist/components/avatar-group/avatar-group.js +5 -5
  17. package/dist/components/banner/banner.js +3 -3
  18. package/dist/components/blog-card/blog-card.js +4 -2
  19. package/dist/components/bottom-activity-strip/bottom-activity-strip.js +3 -3
  20. package/dist/components/breadcrumb/breadcrumb.js +33 -26
  21. package/dist/components/button/button.js +1 -1
  22. package/dist/components/calendar/calendar.js +6 -6
  23. package/dist/components/callout/callout.js +1 -1
  24. package/dist/components/candlestick-chart/candlestick-chart.js +3 -2
  25. package/dist/components/canvas-shell/canvas-foundation-demo.js +5 -5
  26. package/dist/components/carousel/carousel.js +18 -10
  27. package/dist/components/category-filter/category-filter.js +1 -1
  28. package/dist/components/chat-dock-section/chat-dock-section.js +2 -2
  29. package/dist/components/checkbox/checkbox.js +2 -2
  30. package/dist/components/checklist/checklist.js +38 -10
  31. package/dist/components/checklist/index.js +8 -2
  32. package/dist/components/chronological-timeline/chronological-timeline.js +8 -7
  33. package/dist/components/civilization-card/civilization-card.js +1 -1
  34. package/dist/components/code-block/code-block.js +2 -2
  35. package/dist/components/code-playground/code-playground.js +11 -9
  36. package/dist/components/combobox/combobox.js +3 -8
  37. package/dist/components/command/command.js +1 -1
  38. package/dist/components/comment-pin/comment-pin.js +3 -3
  39. package/dist/components/comparison/comparison.js +11 -10
  40. package/dist/components/completion-dialog/completion-dialog.js +20 -12
  41. package/dist/components/connector-edge/connector-edge.js +1 -1
  42. package/dist/components/content-intro/content-intro.js +25 -21
  43. package/dist/components/context-menu/context-menu.js +4 -4
  44. package/dist/components/conversation-thread/conversation-thread.js +9 -9
  45. package/dist/components/cookie-consent/cookie-consent.js +1 -1
  46. package/dist/components/copy-button/copy-button.js +3 -3
  47. package/dist/components/countdown-timer/countdown-timer.js +9 -8
  48. package/dist/components/credit-badge/credit-badge.js +1 -7
  49. package/dist/components/curriculum/curriculum.js +10 -10
  50. package/dist/components/data-list/data-list.js +1 -1
  51. package/dist/components/data-table/data-table.js +6 -5
  52. package/dist/components/date-picker/date-picker.js +2 -7
  53. package/dist/components/dialog/dialog.js +1 -1
  54. package/dist/components/dropdown-menu/dropdown-menu.js +3 -3
  55. package/dist/components/empty-state/empty-state.js +3 -3
  56. package/dist/components/exercise/exercise.js +15 -7
  57. package/dist/components/faq/faq.js +8 -4
  58. package/dist/components/file-upload/file-upload.js +4 -9
  59. package/dist/components/filter-bar/filter-bar.js +9 -8
  60. package/dist/components/flashcard/flashcard.js +2 -2
  61. package/dist/components/floating-action-button/floating-action-button.js +1 -1
  62. package/dist/components/floating-toolbar/floating-toolbar.js +3 -3
  63. package/dist/components/flow-diagram/flow-controls.js +9 -9
  64. package/dist/components/flow-diagram/flow-error-boundary.js +2 -2
  65. package/dist/components/flow-diagram/flow-fullscreen.js +2 -2
  66. package/dist/components/form/form.js +1 -1
  67. package/dist/components/gantt-chart/gantt-chart.js +22 -19
  68. package/dist/components/globe-3d/globe-3d.js +16 -4
  69. package/dist/components/handoff-beacon/handoff-beacon.js +1 -1
  70. package/dist/components/historic-timeline/historic-timeline.js +2 -2
  71. package/dist/components/historical-figure-card/historical-figure-card.js +4 -7
  72. package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +6 -5
  73. package/dist/components/inline-input/inline-input.js +1 -1
  74. package/dist/components/input-otp/input-otp.js +1 -1
  75. package/dist/components/interactive-timeline/interactive-timeline.js +12 -9
  76. package/dist/components/jarvis-dock/jarvis-dock.js +4 -4
  77. package/dist/components/key-concept/key-concept.js +6 -5
  78. package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +4 -3
  79. package/dist/components/knowledge-check/knowledge-check.js +5 -5
  80. package/dist/components/lang-provider/lang-provider.js +3 -3
  81. package/dist/components/learning-objectives/learning-objectives.js +14 -13
  82. package/dist/components/live-feed/live-feed.js +17 -15
  83. package/dist/components/map-2d/map-2d.js +3 -3
  84. package/dist/components/map-timeline/map-timeline.js +5 -5
  85. package/dist/components/market-treemap/market-treemap.js +3 -3
  86. package/dist/components/mdx-content/mdx-content.js +19 -9
  87. package/dist/components/menubar/menubar.js +4 -4
  88. package/dist/components/metric-cluster/metric-cluster.js +1 -1
  89. package/dist/components/metric-gauge/metric-gauge.js +2 -2
  90. package/dist/components/model-comparison/model-comparison.js +2 -2
  91. package/dist/components/model-selector/model-selector.js +3 -3
  92. package/dist/components/multi-select/multi-select.js +4 -4
  93. package/dist/components/navbar-saas/navbar-saas.js +8 -7
  94. package/dist/components/navigation-menu/navigation-menu.js +2 -2
  95. package/dist/components/newsletter-signup/newsletter-signup.js +3 -3
  96. package/dist/components/number-input/number-input.js +2 -2
  97. package/dist/components/number-ticker/number-ticker.js +11 -4
  98. package/dist/components/object-card/object-card.js +1 -1
  99. package/dist/components/object-inspector/object-inspector.js +1 -1
  100. package/dist/components/order-book/order-book.js +2 -2
  101. package/dist/components/overview-board/overview-board.js +1 -1
  102. package/dist/components/parallel-timeline/parallel-timeline.js +2 -2
  103. package/dist/components/password-input/password-input.js +1 -1
  104. package/dist/components/plan-badge/plan-badge.js +1 -7
  105. package/dist/components/policy-delivery-panel/policy-delivery-panel.js +2 -2
  106. package/dist/components/presence-stack/presence-stack.js +2 -2
  107. package/dist/components/presence-sync-indicator/presence-sync-indicator.js +1 -1
  108. package/dist/components/pricing-table/pricing-table.js +3 -3
  109. package/dist/components/pro-tip/pro-tip.js +6 -6
  110. package/dist/components/profile-section/profile-section.js +3 -2
  111. package/dist/components/progress-card/progress-card.js +5 -4
  112. package/dist/components/progress-tracker/progress-tracker.js +24 -14
  113. package/dist/components/prompt-templates/prompt-templates.js +4 -4
  114. package/dist/components/quiz/quiz.js +7 -6
  115. package/dist/components/radio-group/radio-group.js +2 -2
  116. package/dist/components/rating/rating.js +3 -3
  117. package/dist/components/relationship-inspector/relationship-inspector.js +2 -2
  118. package/dist/components/resizable/resizable.js +1 -1
  119. package/dist/components/routing-assignment-panel/routing-assignment-panel.js +2 -2
  120. package/dist/components/run-timeline/run-timeline.js +2 -2
  121. package/dist/components/runtime-overview-panel/runtime-overview-panel.js +1 -1
  122. package/dist/components/scope-selector/scope-selector.js +8 -8
  123. package/dist/components/search-bar/search-bar.js +24 -2
  124. package/dist/components/search-dialog/search-dialog.js +484 -51
  125. package/dist/components/select/select.js +5 -5
  126. package/dist/components/selection-halo/selection-halo.js +1 -1
  127. package/dist/components/severity-badge/severity-badge.js +2 -2
  128. package/dist/components/share-dialog/share-dialog.js +2 -2
  129. package/dist/components/share-section/share-section.js +2 -1
  130. package/dist/components/sheet/sheet.js +1 -1
  131. package/dist/components/sidebar/sidebar.js +31 -26
  132. package/dist/components/sidebar-toggle/sidebar-toggle.js +3 -3
  133. package/dist/components/slider/slider.js +1 -1
  134. package/dist/components/slideshow/slideshow.js +15 -13
  135. package/dist/components/social-fab/social-fab.js +12 -11
  136. package/dist/components/sparkline-grid/sparkline-grid.js +1 -1
  137. package/dist/components/spinner/spinner.js +4 -4
  138. package/dist/components/spinner/unicode-spinner.js +4 -2
  139. package/dist/components/stat-card/stat-card.js +5 -5
  140. package/dist/components/state-badge-overlay/state-badge-overlay.js +1 -1
  141. package/dist/components/status-board/status-board.js +14 -7
  142. package/dist/components/status-indicator/status-indicator.js +3 -3
  143. package/dist/components/step-by-step/step-by-step.js +10 -8
  144. package/dist/components/step-navigation/step-navigation.js +2 -2
  145. package/dist/components/stepper/stepper.js +3 -3
  146. package/dist/components/sticky-metric/sticky-metric.js +1 -1
  147. package/dist/components/subscription-card/subscription-card.js +1 -1
  148. package/dist/components/switch/switch.js +1 -1
  149. package/dist/components/table-of-contents/table-of-contents.js +5 -2
  150. package/dist/components/table-of-contents-panel/table-of-contents-panel.js +8 -6
  151. package/dist/components/tabs/tabs.js +26 -8
  152. package/dist/components/tags-input/tags-input.js +12 -4
  153. package/dist/components/terminal/terminal.js +59 -37
  154. package/dist/components/theme-toggle/theme-toggle.js +2 -2
  155. package/dist/components/thinking-block/thinking-block.js +3 -3
  156. package/dist/components/ticker-tape/ticker-tape.js +4 -4
  157. package/dist/components/timeline/timeline.js +2 -2
  158. package/dist/components/timeline-scrubber/timeline-scrubber.js +2 -2
  159. package/dist/components/tldr-section/tldr-section.js +11 -9
  160. package/dist/components/tour/tour.js +2 -2
  161. package/dist/components/transaction-list/transaction-list.js +30 -9
  162. package/dist/components/tree-view/tree-view.js +2 -2
  163. package/dist/components/tutorial-card/tutorial-card.js +1 -1
  164. package/dist/components/tutorial-complete/tutorial-complete.js +16 -14
  165. package/dist/components/tutorial-filters/tutorial-filters.js +2 -2
  166. package/dist/components/tutorial-intro-content/tutorial-intro-content.js +5 -5
  167. package/dist/components/tutorial-mdx/tutorial-mdx.js +6 -6
  168. package/dist/components/usage-breakdown/usage-breakdown.js +10 -6
  169. package/dist/components/video-embed/video-embed.js +2 -2
  170. package/dist/components/viewport-bookmarks/viewport-bookmarks.js +3 -3
  171. package/dist/components/wallet-card/wallet-card.js +1 -1
  172. package/dist/components/watchlist/watchlist.js +7 -6
  173. package/dist/components/world-breadcrumbs/world-breadcrumbs.js +2 -2
  174. package/dist/components/world-clock-bar/world-clock-bar.js +35 -14
  175. package/dist/components/zoom-hud/zoom-hud.js +1 -1
  176. package/dist/index.d.ts +114 -30
  177. package/package.json +3 -3
@@ -32,7 +32,7 @@ function QuizOptionButton({
32
32
  showResult ? option.correct ? /* @__PURE__ */ jsx(
33
33
  "svg",
34
34
  {
35
- className: "h-4 w-4 text-green-500",
35
+ className: "size-4 text-green-500",
36
36
  fill: "none",
37
37
  stroke: "currentColor",
38
38
  viewBox: "0 0 24 24",
@@ -49,7 +49,7 @@ function QuizOptionButton({
49
49
  ) : /* @__PURE__ */ jsx(
50
50
  "svg",
51
51
  {
52
- className: "h-4 w-4 text-red-500",
52
+ className: "size-4 text-red-500",
53
53
  fill: "none",
54
54
  stroke: "currentColor",
55
55
  viewBox: "0 0 24 24",
@@ -67,7 +67,7 @@ function QuizOptionButton({
67
67
  submitted && !isSelected && option.correct ? /* @__PURE__ */ jsx(
68
68
  "svg",
69
69
  {
70
- className: "h-4 w-4 text-green-500/50",
70
+ className: "size-4 text-green-500/50",
71
71
  fill: "none",
72
72
  stroke: "currentColor",
73
73
  viewBox: "0 0 24 24",
@@ -118,6 +118,7 @@ function QuizResult({
118
118
  );
119
119
  }
120
120
  function Quiz({
121
+ as: Heading = "h4",
121
122
  className,
122
123
  explanation,
123
124
  hint,
@@ -144,7 +145,7 @@ function Quiz({
144
145
  /* @__PURE__ */ jsx(
145
146
  "svg",
146
147
  {
147
- className: "h-5 w-5 text-primary flex-shrink-0 mt-0.5",
148
+ className: "size-5 text-primary flex-shrink-0 mt-0.5",
148
149
  fill: "none",
149
150
  stroke: "currentColor",
150
151
  viewBox: "0 0 24 24",
@@ -159,7 +160,7 @@ function Quiz({
159
160
  )
160
161
  }
161
162
  ),
162
- /* @__PURE__ */ jsx("h4", { className: "font-semibold text-foreground", children: question })
163
+ /* @__PURE__ */ jsx(Heading, { className: "font-semibold text-foreground", children: question })
163
164
  ] }),
164
165
  /* @__PURE__ */ jsx("div", { className: "space-y-2 mb-4", children: options.map((opt, index) => /* @__PURE__ */ jsx(
165
166
  QuizOptionButton,
@@ -172,7 +173,7 @@ function Quiz({
172
173
  selectedIndex,
173
174
  submitted
174
175
  },
175
- index
176
+ `quiz-option-${index}-${opt.label}`
176
177
  )) }),
177
178
  hint && !submitted ? /* @__PURE__ */ jsx(
178
179
  QuizHint,
@@ -20,12 +20,12 @@ const RadioGroupItem = forwardRef(({ className, ...props }, ref) => {
20
20
  RadioGroupPrimitive.Item,
21
21
  {
22
22
  className: cn(
23
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
23
+ "aspect-square size-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
24
24
  className
25
25
  ),
26
26
  ref,
27
27
  ...props,
28
- children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
28
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "size-2.5 fill-current text-current" }) })
29
29
  }
30
30
  );
31
31
  });
@@ -4,9 +4,9 @@ import { useMemo, useState } from "react";
4
4
  import { Star } from "lucide-react";
5
5
  import { cn } from "../../lib/utils";
6
6
  const sizeClasses = {
7
- lg: "h-6 w-6",
8
- md: "h-5 w-5",
9
- sm: "h-4 w-4"
7
+ lg: "size-6",
8
+ md: "size-5",
9
+ sm: "size-4"
10
10
  };
11
11
  function RatingStars({
12
12
  activeValue,
@@ -28,7 +28,7 @@ const RowBody = (props) => {
28
28
  const Row = (props) => {
29
29
  const { edge } = props;
30
30
  if (edge.onActivate) {
31
- const handleClick = () => {
31
+ const handleActivateRelationship = () => {
32
32
  edge.onActivate?.();
33
33
  };
34
34
  return /* @__PURE__ */ jsx(
@@ -37,7 +37,7 @@ const Row = (props) => {
37
37
  className: "flex w-full items-center gap-2 rounded-md border border-transparent px-2 py-1.5 text-left transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
38
38
  "data-relationship-direction": edge.direction,
39
39
  "data-relationship-row": true,
40
- onClick: handleClick,
40
+ onClick: handleActivateRelationship,
41
41
  type: "button",
42
42
  children: /* @__PURE__ */ jsx(RowBody, { edge })
43
43
  }
@@ -29,7 +29,7 @@ const ResizableHandle = ({
29
29
  className
30
30
  ),
31
31
  ...props,
32
- children: withHandle ? /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" }) }) : null
32
+ children: withHandle ? /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "size-2.5" }) }) : null
33
33
  }
34
34
  );
35
35
  export {
@@ -63,7 +63,7 @@ const RowBody = (props) => {
63
63
  const Row = (props) => {
64
64
  const { assignment } = props;
65
65
  if (assignment.onActivate) {
66
- const handleClick = () => {
66
+ const handleActivateAssignment = () => {
67
67
  assignment.onActivate?.();
68
68
  };
69
69
  return /* @__PURE__ */ jsx(
@@ -72,7 +72,7 @@ const Row = (props) => {
72
72
  className: "flex w-full items-center gap-2 rounded-md border border-transparent px-2 py-1.5 text-left transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
73
73
  "data-routing-assignment": assignment.id,
74
74
  "data-routing-role": assignment.role,
75
- onClick: handleClick,
75
+ onClick: handleActivateAssignment,
76
76
  type: "button",
77
77
  children: /* @__PURE__ */ jsx(RowBody, { assignment })
78
78
  }
@@ -63,7 +63,7 @@ const PhaseBar = (props) => {
63
63
  };
64
64
  const ariaLabel = `${STATE_LABEL[state]} ${phase.start} \u2192 ${phase.end}`;
65
65
  if (phase.onActivate) {
66
- const handleClick = () => {
66
+ const handleActivatePhase = () => {
67
67
  phase.onActivate?.();
68
68
  };
69
69
  return /* @__PURE__ */ jsx(
@@ -76,7 +76,7 @@ const PhaseBar = (props) => {
76
76
  ),
77
77
  "data-run-phase": phase.id,
78
78
  "data-run-phase-state": state,
79
- onClick: handleClick,
79
+ onClick: handleActivatePhase,
80
80
  style: sharedStyle,
81
81
  type: "button",
82
82
  children: phase.label
@@ -34,7 +34,7 @@ const Tile = (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
  metric.label
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useMemo, useState } from "react";
4
4
  import { Check, ChevronRight, Search } from "lucide-react";
5
5
  import { cn } from "../../lib/utils";
6
- import { Badge } from "../badge";
6
+ import { Badge } from "../badge/badge";
7
7
  import { Button } from "../button";
8
8
  import { Input } from "../input";
9
9
  import { Popover, PopoverContent, PopoverTrigger } from "../popover";
@@ -57,7 +57,7 @@ function ScopeOptionButton({
57
57
  "button",
58
58
  {
59
59
  className: cn(
60
- "flex w-full items-start justify-between rounded-md border px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground",
60
+ "flex w-full items-start justify-between rounded-md border p-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground",
61
61
  selectedValue === node.id && "border-primary bg-accent",
62
62
  node.disabled && "cursor-not-allowed opacity-50"
63
63
  ),
@@ -79,7 +79,7 @@ function ScopeOptionButton({
79
79
  showPathLabel ? /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: getPathLabel(path) }) : null,
80
80
  node.description ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: node.description }) : null
81
81
  ] }),
82
- selectedValue === node.id ? /* @__PURE__ */ jsx(Check, { className: "mt-0.5 h-4 w-4 shrink-0 text-primary" }) : node.children && node.children.length > 0 ? /* @__PURE__ */ jsx(ChevronRight, { className: "mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" }) : null
82
+ selectedValue === node.id ? /* @__PURE__ */ jsx(Check, { className: "mt-0.5 size-4 shrink-0 text-primary" }) : node.children && node.children.length > 0 ? /* @__PURE__ */ jsx(ChevronRight, { className: "mt-0.5 size-4 shrink-0 text-muted-foreground" }) : null
83
83
  ]
84
84
  },
85
85
  node.id
@@ -91,7 +91,7 @@ function ScopeSearchResults({
91
91
  results,
92
92
  selectedValue
93
93
  }) {
94
- return /* @__PURE__ */ jsx("div", { className: "space-y-2 px-1 py-1", children: results.map(({ node, path }) => /* @__PURE__ */ jsx(
94
+ return /* @__PURE__ */ jsx("div", { className: "space-y-2 p-1", children: results.map(({ node, path }) => /* @__PURE__ */ jsx(
95
95
  ScopeOptionButton,
96
96
  {
97
97
  node,
@@ -111,7 +111,7 @@ function ScopeCurrentLevel({
111
111
  onSelect,
112
112
  selectedValue
113
113
  }) {
114
- return /* @__PURE__ */ jsx("div", { className: "space-y-2 px-1 py-1", children: nodes.map((node) => /* @__PURE__ */ jsx(
114
+ return /* @__PURE__ */ jsx("div", { className: "space-y-2 p-1", children: nodes.map((node) => /* @__PURE__ */ jsx(
115
115
  ScopeOptionButton,
116
116
  {
117
117
  node,
@@ -169,7 +169,7 @@ function ScopeSelectorBreadcrumb({
169
169
  if (currentPath.length === 0) return null;
170
170
  return /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 text-xs text-muted-foreground", children: [
171
171
  /* @__PURE__ */ jsxs(Button, { className: "h-7 px-2", onClick: onBack, size: "sm", variant: "ghost", children: [
172
- /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5 rotate-180" }),
172
+ /* @__PURE__ */ jsx(ChevronRight, { className: "size-3.5 rotate-180" }),
173
173
  "Back"
174
174
  ] }),
175
175
  /* @__PURE__ */ jsx("span", { className: "truncate", children: getPathLabel(currentPath) })
@@ -183,7 +183,7 @@ function ScopeSelectorPopoverBody({
183
183
  return /* @__PURE__ */ jsxs(PopoverContent, { align: "start", className: "w-[380px] p-0", sideOffset: 8, children: [
184
184
  /* @__PURE__ */ jsxs("div", { className: "border-b p-3", children: [
185
185
  /* @__PURE__ */ jsxs("div", { className: "relative", children: [
186
- /* @__PURE__ */ jsx(Search, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
186
+ /* @__PURE__ */ jsx(Search, { className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }),
187
187
  /* @__PURE__ */ jsx(
188
188
  Input,
189
189
  {
@@ -315,7 +315,7 @@ const ScopeSelector = forwardRef(
315
315
  variant: "outline",
316
316
  children: [
317
317
  /* @__PURE__ */ jsx("span", { className: "truncate text-left", children: state.selectedPathLabel ?? placeholder }),
318
- /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 shrink-0 rotate-90 text-muted-foreground" })
318
+ /* @__PURE__ */ jsx(ChevronRight, { className: "size-4 shrink-0 rotate-90 text-muted-foreground" })
319
319
  ]
320
320
  }
321
321
  ) }),
@@ -1,11 +1,33 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useEffect, useRef, useState } from "react";
3
+ import { Suspense, useEffect, useRef, useState } from "react";
4
4
  import { useRouter, useSearchParams } from "next/navigation";
5
5
  import { useDebounce } from "../../lib/use-debounce";
6
6
  import { Button } from "../button/button";
7
7
  import { Input } from "../input/input";
8
- function SearchBar({
8
+ function SearchBar(props) {
9
+ return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(SearchBarFallback, { ...props }), children: /* @__PURE__ */ jsx(SearchBarInner, { ...props }) });
10
+ }
11
+ function SearchBarFallback({
12
+ className,
13
+ placeholder = "Search posts..."
14
+ }) {
15
+ return /* @__PURE__ */ jsxs("form", { className: `flex gap-2 ${className}`, children: [
16
+ /* @__PURE__ */ jsx(
17
+ Input,
18
+ {
19
+ "aria-label": placeholder,
20
+ className: "flex-1",
21
+ disabled: true,
22
+ placeholder,
23
+ type: "text",
24
+ value: ""
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsx(Button, { disabled: true, type: "submit", variant: "outline", children: "Search" })
28
+ ] });
29
+ }
30
+ function SearchBarInner({
9
31
  className,
10
32
  onSearch,
11
33
  placeholder = "Search posts..."