@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.
- package/CHANGELOG.md +3 -0
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/activity-heatmap/activity-heatmap.js +17 -14
- package/dist/components/activity-log/activity-log.js +6 -6
- package/dist/components/agent-activity/agent-activity.js +8 -8
- package/dist/components/ai-artifact/ai-artifact.js +16 -16
- package/dist/components/ai-chat-input/ai-chat-input.js +3 -3
- package/dist/components/ai-message-bubble/ai-message-bubble.js +2 -2
- package/dist/components/ai-sidebar/ai-sidebar.js +8 -8
- package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
- package/dist/components/ai-tool-call-display/ai-tool-call-display.js +5 -5
- package/dist/components/animated-text/animated-text.js +7 -7
- package/dist/components/annotation/annotation.js +1 -1
- package/dist/components/auto-reload/auto-reload.js +14 -4
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar-group/avatar-group.js +5 -5
- package/dist/components/banner/banner.js +3 -3
- package/dist/components/blog-card/blog-card.js +4 -2
- package/dist/components/bottom-activity-strip/bottom-activity-strip.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +33 -26
- package/dist/components/button/button.js +1 -1
- package/dist/components/calendar/calendar.js +6 -6
- package/dist/components/callout/callout.js +1 -1
- package/dist/components/candlestick-chart/candlestick-chart.js +3 -2
- package/dist/components/canvas-shell/canvas-foundation-demo.js +5 -5
- package/dist/components/carousel/carousel.js +18 -10
- package/dist/components/category-filter/category-filter.js +1 -1
- package/dist/components/chat-dock-section/chat-dock-section.js +2 -2
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/checklist/checklist.js +38 -10
- package/dist/components/checklist/index.js +8 -2
- package/dist/components/chronological-timeline/chronological-timeline.js +8 -7
- package/dist/components/civilization-card/civilization-card.js +1 -1
- package/dist/components/code-block/code-block.js +2 -2
- package/dist/components/code-playground/code-playground.js +11 -9
- package/dist/components/combobox/combobox.js +3 -8
- package/dist/components/command/command.js +1 -1
- package/dist/components/comment-pin/comment-pin.js +3 -3
- package/dist/components/comparison/comparison.js +11 -10
- package/dist/components/completion-dialog/completion-dialog.js +20 -12
- package/dist/components/connector-edge/connector-edge.js +1 -1
- package/dist/components/content-intro/content-intro.js +25 -21
- package/dist/components/context-menu/context-menu.js +4 -4
- package/dist/components/conversation-thread/conversation-thread.js +9 -9
- package/dist/components/cookie-consent/cookie-consent.js +1 -1
- package/dist/components/copy-button/copy-button.js +3 -3
- package/dist/components/countdown-timer/countdown-timer.js +9 -8
- package/dist/components/credit-badge/credit-badge.js +1 -7
- package/dist/components/curriculum/curriculum.js +10 -10
- package/dist/components/data-list/data-list.js +1 -1
- package/dist/components/data-table/data-table.js +6 -5
- package/dist/components/date-picker/date-picker.js +2 -7
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/empty-state/empty-state.js +3 -3
- package/dist/components/exercise/exercise.js +15 -7
- package/dist/components/faq/faq.js +8 -4
- package/dist/components/file-upload/file-upload.js +4 -9
- package/dist/components/filter-bar/filter-bar.js +9 -8
- package/dist/components/flashcard/flashcard.js +2 -2
- package/dist/components/floating-action-button/floating-action-button.js +1 -1
- package/dist/components/floating-toolbar/floating-toolbar.js +3 -3
- package/dist/components/flow-diagram/flow-controls.js +9 -9
- package/dist/components/flow-diagram/flow-error-boundary.js +2 -2
- package/dist/components/flow-diagram/flow-fullscreen.js +2 -2
- package/dist/components/form/form.js +1 -1
- package/dist/components/gantt-chart/gantt-chart.js +22 -19
- package/dist/components/globe-3d/globe-3d.js +16 -4
- package/dist/components/handoff-beacon/handoff-beacon.js +1 -1
- package/dist/components/historic-timeline/historic-timeline.js +2 -2
- package/dist/components/historical-figure-card/historical-figure-card.js +4 -7
- package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +6 -5
- package/dist/components/inline-input/inline-input.js +1 -1
- package/dist/components/input-otp/input-otp.js +1 -1
- package/dist/components/interactive-timeline/interactive-timeline.js +12 -9
- package/dist/components/jarvis-dock/jarvis-dock.js +4 -4
- package/dist/components/key-concept/key-concept.js +6 -5
- package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +4 -3
- package/dist/components/knowledge-check/knowledge-check.js +5 -5
- package/dist/components/lang-provider/lang-provider.js +3 -3
- package/dist/components/learning-objectives/learning-objectives.js +14 -13
- package/dist/components/live-feed/live-feed.js +17 -15
- package/dist/components/map-2d/map-2d.js +3 -3
- package/dist/components/map-timeline/map-timeline.js +5 -5
- package/dist/components/market-treemap/market-treemap.js +3 -3
- package/dist/components/mdx-content/mdx-content.js +19 -9
- package/dist/components/menubar/menubar.js +4 -4
- package/dist/components/metric-cluster/metric-cluster.js +1 -1
- package/dist/components/metric-gauge/metric-gauge.js +2 -2
- package/dist/components/model-comparison/model-comparison.js +2 -2
- package/dist/components/model-selector/model-selector.js +3 -3
- package/dist/components/multi-select/multi-select.js +4 -4
- package/dist/components/navbar-saas/navbar-saas.js +8 -7
- package/dist/components/navigation-menu/navigation-menu.js +2 -2
- package/dist/components/newsletter-signup/newsletter-signup.js +3 -3
- package/dist/components/number-input/number-input.js +2 -2
- package/dist/components/number-ticker/number-ticker.js +11 -4
- package/dist/components/object-card/object-card.js +1 -1
- package/dist/components/object-inspector/object-inspector.js +1 -1
- package/dist/components/order-book/order-book.js +2 -2
- package/dist/components/overview-board/overview-board.js +1 -1
- package/dist/components/parallel-timeline/parallel-timeline.js +2 -2
- package/dist/components/password-input/password-input.js +1 -1
- package/dist/components/plan-badge/plan-badge.js +1 -7
- package/dist/components/policy-delivery-panel/policy-delivery-panel.js +2 -2
- package/dist/components/presence-stack/presence-stack.js +2 -2
- package/dist/components/presence-sync-indicator/presence-sync-indicator.js +1 -1
- package/dist/components/pricing-table/pricing-table.js +3 -3
- package/dist/components/pro-tip/pro-tip.js +6 -6
- package/dist/components/profile-section/profile-section.js +3 -2
- package/dist/components/progress-card/progress-card.js +5 -4
- package/dist/components/progress-tracker/progress-tracker.js +24 -14
- package/dist/components/prompt-templates/prompt-templates.js +4 -4
- package/dist/components/quiz/quiz.js +7 -6
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/rating/rating.js +3 -3
- package/dist/components/relationship-inspector/relationship-inspector.js +2 -2
- package/dist/components/resizable/resizable.js +1 -1
- package/dist/components/routing-assignment-panel/routing-assignment-panel.js +2 -2
- package/dist/components/run-timeline/run-timeline.js +2 -2
- package/dist/components/runtime-overview-panel/runtime-overview-panel.js +1 -1
- package/dist/components/scope-selector/scope-selector.js +8 -8
- package/dist/components/search-bar/search-bar.js +24 -2
- package/dist/components/search-dialog/search-dialog.js +484 -51
- package/dist/components/select/select.js +5 -5
- package/dist/components/selection-halo/selection-halo.js +1 -1
- package/dist/components/severity-badge/severity-badge.js +2 -2
- package/dist/components/share-dialog/share-dialog.js +2 -2
- package/dist/components/share-section/share-section.js +2 -1
- package/dist/components/sheet/sheet.js +1 -1
- package/dist/components/sidebar/sidebar.js +31 -26
- package/dist/components/sidebar-toggle/sidebar-toggle.js +3 -3
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slideshow/slideshow.js +15 -13
- package/dist/components/social-fab/social-fab.js +12 -11
- package/dist/components/sparkline-grid/sparkline-grid.js +1 -1
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/unicode-spinner.js +4 -2
- package/dist/components/stat-card/stat-card.js +5 -5
- package/dist/components/state-badge-overlay/state-badge-overlay.js +1 -1
- package/dist/components/status-board/status-board.js +14 -7
- package/dist/components/status-indicator/status-indicator.js +3 -3
- package/dist/components/step-by-step/step-by-step.js +10 -8
- package/dist/components/step-navigation/step-navigation.js +2 -2
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/sticky-metric/sticky-metric.js +1 -1
- package/dist/components/subscription-card/subscription-card.js +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/table-of-contents/table-of-contents.js +5 -2
- package/dist/components/table-of-contents-panel/table-of-contents-panel.js +8 -6
- package/dist/components/tabs/tabs.js +26 -8
- package/dist/components/tags-input/tags-input.js +12 -4
- package/dist/components/terminal/terminal.js +59 -37
- package/dist/components/theme-toggle/theme-toggle.js +2 -2
- package/dist/components/thinking-block/thinking-block.js +3 -3
- package/dist/components/ticker-tape/ticker-tape.js +4 -4
- package/dist/components/timeline/timeline.js +2 -2
- package/dist/components/timeline-scrubber/timeline-scrubber.js +2 -2
- package/dist/components/tldr-section/tldr-section.js +11 -9
- package/dist/components/tour/tour.js +2 -2
- package/dist/components/transaction-list/transaction-list.js +30 -9
- package/dist/components/tree-view/tree-view.js +2 -2
- package/dist/components/tutorial-card/tutorial-card.js +1 -1
- package/dist/components/tutorial-complete/tutorial-complete.js +16 -14
- package/dist/components/tutorial-filters/tutorial-filters.js +2 -2
- package/dist/components/tutorial-intro-content/tutorial-intro-content.js +5 -5
- package/dist/components/tutorial-mdx/tutorial-mdx.js +6 -6
- package/dist/components/usage-breakdown/usage-breakdown.js +10 -6
- package/dist/components/video-embed/video-embed.js +2 -2
- package/dist/components/viewport-bookmarks/viewport-bookmarks.js +3 -3
- package/dist/components/wallet-card/wallet-card.js +1 -1
- package/dist/components/watchlist/watchlist.js +7 -6
- package/dist/components/world-breadcrumbs/world-breadcrumbs.js +2 -2
- package/dist/components/world-clock-bar/world-clock-bar.js +35 -14
- package/dist/components/zoom-hud/zoom-hud.js +1 -1
- package/dist/index.d.ts +114 -30
- 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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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(
|
|
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
|
|
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: "
|
|
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: "
|
|
8
|
-
md: "
|
|
9
|
-
sm: "
|
|
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
|
|
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:
|
|
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: "
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
79
|
+
onClick: handleActivatePhase,
|
|
80
80
|
style: sharedStyle,
|
|
81
81
|
type: "button",
|
|
82
82
|
children: phase.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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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
|
|
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: "
|
|
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..."
|