@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.
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/activity-heatmap/activity-heatmap.js +15 -13
- package/dist/components/activity-log/activity-log.js +5 -5
- package/dist/components/agent-activity/agent-activity.js +8 -8
- package/dist/components/ai-artifact/ai-artifact.js +8 -8
- package/dist/components/ai-chat-input/ai-chat-input.js +2 -2
- package/dist/components/ai-message-bubble/ai-message-bubble.js +1 -1
- package/dist/components/ai-sidebar/ai-sidebar.js +4 -4
- package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
- package/dist/components/ai-tool-call-display/ai-tool-call-display.js +4 -4
- package/dist/components/animated-text/animated-text.js +1 -4
- 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 +4 -4
- package/dist/components/banner/banner.js +3 -3
- package/dist/components/bottom-activity-strip/bottom-activity-strip.js +1 -1
- 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 +1 -1
- package/dist/components/canvas-shell/canvas-foundation-demo.js +4 -4
- package/dist/components/carousel/carousel.js +4 -4
- package/dist/components/chat-dock-section/chat-dock-section.js +1 -1
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/checklist/checklist.js +3 -3
- package/dist/components/chronological-timeline/chronological-timeline.js +6 -5
- 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 +8 -7
- package/dist/components/combobox/combobox.js +2 -2
- package/dist/components/command/command.js +1 -1
- package/dist/components/comment-pin/comment-pin.js +1 -1
- package/dist/components/comparison/comparison.js +9 -9
- package/dist/components/completion-dialog/completion-dialog.js +1 -1
- package/dist/components/content-intro/content-intro.js +7 -6
- package/dist/components/context-menu/context-menu.js +4 -4
- package/dist/components/conversation-thread/conversation-thread.js +8 -8
- 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 +8 -7
- 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 +5 -4
- package/dist/components/date-picker/date-picker.js +1 -1
- 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 +4 -4
- package/dist/components/faq/faq.js +2 -2
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/filter-bar/filter-bar.js +2 -1
- package/dist/components/flashcard/flashcard.js +1 -1
- package/dist/components/floating-action-button/floating-action-button.js +1 -1
- package/dist/components/floating-toolbar/floating-toolbar.js +1 -1
- 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/gantt-chart/gantt-chart.js +15 -13
- 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 +4 -4
- package/dist/components/input-otp/input-otp.js +1 -1
- package/dist/components/interactive-timeline/interactive-timeline.js +4 -4
- package/dist/components/jarvis-dock/jarvis-dock.js +2 -2
- package/dist/components/key-concept/key-concept.js +4 -4
- package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +2 -2
- package/dist/components/knowledge-check/knowledge-check.js +3 -3
- package/dist/components/learning-objectives/learning-objectives.js +12 -12
- package/dist/components/live-feed/live-feed.js +15 -13
- package/dist/components/map-2d/map-2d.js +2 -2
- package/dist/components/market-treemap/market-treemap.js +1 -1
- package/dist/components/mdx-content/mdx-content.js +2 -1
- 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 +1 -1
- package/dist/components/model-comparison/model-comparison.js +2 -2
- package/dist/components/model-selector/model-selector.js +2 -2
- package/dist/components/multi-select/multi-select.js +3 -3
- package/dist/components/navbar-saas/navbar-saas.js +3 -2
- 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 +1 -1
- package/dist/components/number-ticker/number-ticker.js +11 -4
- package/dist/components/object-inspector/object-inspector.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/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 +1 -1
- package/dist/components/progress-card/progress-card.js +4 -3
- package/dist/components/progress-tracker/progress-tracker.js +7 -5
- package/dist/components/prompt-templates/prompt-templates.js +2 -2
- package/dist/components/quiz/quiz.js +5 -5
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/rating/rating.js +3 -3
- package/dist/components/resizable/resizable.js +1 -1
- package/dist/components/runtime-overview-panel/runtime-overview-panel.js +1 -1
- package/dist/components/scope-selector/scope-selector.js +7 -7
- package/dist/components/search-bar/search-bar.js +24 -2
- package/dist/components/search-dialog/search-dialog.js +1 -1
- 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/sheet/sheet.js +1 -1
- package/dist/components/sidebar/sidebar.js +1 -1
- package/dist/components/sidebar-toggle/sidebar-toggle.js +2 -2
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slideshow/slideshow.js +12 -11
- package/dist/components/social-fab/social-fab.js +2 -1
- package/dist/components/sparkline-grid/sparkline-grid.js +1 -1
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/stat-card/stat-card.js +3 -3
- package/dist/components/state-badge-overlay/state-badge-overlay.js +1 -1
- package/dist/components/status-board/status-board.js +1 -1
- package/dist/components/status-indicator/status-indicator.js +3 -3
- package/dist/components/step-by-step/step-by-step.js +8 -7
- 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-panel/table-of-contents-panel.js +5 -5
- package/dist/components/tags-input/tags-input.js +1 -1
- package/dist/components/terminal/terminal.js +48 -34
- package/dist/components/thinking-block/thinking-block.js +1 -1
- package/dist/components/ticker-tape/ticker-tape.js +3 -3
- package/dist/components/timeline/timeline.js +2 -2
- package/dist/components/tldr-section/tldr-section.js +2 -2
- package/dist/components/tour/tour.js +1 -1
- package/dist/components/transaction-list/transaction-list.js +30 -9
- package/dist/components/tree-view/tree-view.js +2 -2
- package/dist/components/tutorial-complete/tutorial-complete.js +8 -8
- package/dist/components/usage-breakdown/usage-breakdown.js +9 -5
- package/dist/components/video-embed/video-embed.js +2 -2
- package/dist/components/viewport-bookmarks/viewport-bookmarks.js +1 -1
- package/dist/components/wallet-card/wallet-card.js +1 -1
- package/dist/components/watchlist/watchlist.js +5 -5
- package/dist/components/world-clock-bar/world-clock-bar.js +32 -12
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -144,7 +144,7 @@ function Quiz({
|
|
|
144
144
|
/* @__PURE__ */ jsx(
|
|
145
145
|
"svg",
|
|
146
146
|
{
|
|
147
|
-
className: "
|
|
147
|
+
className: "size-5 text-primary flex-shrink-0 mt-0.5",
|
|
148
148
|
fill: "none",
|
|
149
149
|
stroke: "currentColor",
|
|
150
150
|
viewBox: "0 0 24 24",
|
|
@@ -172,7 +172,7 @@ function Quiz({
|
|
|
172
172
|
selectedIndex,
|
|
173
173
|
submitted
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
typeof opt === "string" ? opt : `quiz-option-${String(opt)}`
|
|
176
176
|
)) }),
|
|
177
177
|
hint && !submitted ? /* @__PURE__ */ jsx(
|
|
178
178
|
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,
|
|
@@ -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 {
|
|
@@ -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..."
|
|
@@ -65,7 +65,7 @@ function SearchDialog({
|
|
|
65
65
|
},
|
|
66
66
|
variant: "outline",
|
|
67
67
|
children: [
|
|
68
|
-
/* @__PURE__ */ jsx(Search, { className: "mr-2
|
|
68
|
+
/* @__PURE__ */ jsx(Search, { className: "mr-2 size-4" }),
|
|
69
69
|
/* @__PURE__ */ jsx("span", { className: "hidden lg:inline-flex", children: buttonText }),
|
|
70
70
|
/* @__PURE__ */ jsx("span", { className: "inline-flex lg:hidden", children: buttonTextMobile }),
|
|
71
71
|
/* @__PURE__ */ jsxs("kbd", { className: "pointer-events-none absolute right-1.5 top-1.5 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex", children: [
|
|
@@ -18,7 +18,7 @@ const SelectTrigger = forwardRef(({ children, className, ...props }, ref) => /*
|
|
|
18
18
|
...props,
|
|
19
19
|
children: [
|
|
20
20
|
children,
|
|
21
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "
|
|
21
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
));
|
|
@@ -32,7 +32,7 @@ const SelectScrollUpButton = forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
32
32
|
),
|
|
33
33
|
ref,
|
|
34
34
|
...props,
|
|
35
|
-
children: /* @__PURE__ */ jsx(ChevronUp, { className: "
|
|
35
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "size-4" })
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
@@ -45,7 +45,7 @@ const SelectScrollDownButton = forwardRef(({ className, ...props }, ref) => /* @
|
|
|
45
45
|
),
|
|
46
46
|
ref,
|
|
47
47
|
...props,
|
|
48
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { className: "
|
|
48
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "size-4" })
|
|
49
49
|
}
|
|
50
50
|
));
|
|
51
51
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
@@ -96,7 +96,7 @@ const SelectItem = forwardRef(({ children, className, ...props }, ref) => /* @__
|
|
|
96
96
|
ref,
|
|
97
97
|
...props,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex
|
|
99
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "size-4" }) }) }),
|
|
100
100
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
@@ -105,7 +105,7 @@ SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
|
105
105
|
const SelectSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
106
106
|
SelectPrimitive.Separator,
|
|
107
107
|
{
|
|
108
|
-
className: cn("-
|
|
108
|
+
className: cn("-m-1 h-px bg-muted", className),
|
|
109
109
|
ref,
|
|
110
110
|
...props
|
|
111
111
|
}
|
|
@@ -43,7 +43,7 @@ const SelectionHalo = forwardRef(
|
|
|
43
43
|
{
|
|
44
44
|
"aria-hidden": "true",
|
|
45
45
|
className: cn(
|
|
46
|
-
"absolute
|
|
46
|
+
"absolute size-2 rounded-sm border-2 border-primary bg-background",
|
|
47
47
|
corner === "nw" && "-left-1 -top-1",
|
|
48
48
|
corner === "ne" && "-right-1 -top-1",
|
|
49
49
|
corner === "se" && "-bottom-1 -right-1",
|
|
@@ -132,7 +132,7 @@ function SeverityBadge({
|
|
|
132
132
|
"data-level": level,
|
|
133
133
|
...props,
|
|
134
134
|
children: [
|
|
135
|
-
showDot ? /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", className: "relative flex
|
|
135
|
+
showDot ? /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", className: "relative flex size-2", children: [
|
|
136
136
|
pulse ? /* @__PURE__ */ jsx(
|
|
137
137
|
"span",
|
|
138
138
|
{
|
|
@@ -146,7 +146,7 @@ function SeverityBadge({
|
|
|
146
146
|
"span",
|
|
147
147
|
{
|
|
148
148
|
className: cn(
|
|
149
|
-
"relative inline-flex
|
|
149
|
+
"relative inline-flex size-2 rounded-full",
|
|
150
150
|
DOT_COLOR[level]
|
|
151
151
|
)
|
|
152
152
|
}
|
|
@@ -47,7 +47,7 @@ const SheetContent = forwardRef(({ children, className, side = "right", ...props
|
|
|
47
47
|
...props,
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ jsxs(SheetPrimitive.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-secondary", children: [
|
|
50
|
-
/* @__PURE__ */ jsx(X, { className: "
|
|
50
|
+
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
51
51
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
52
52
|
] }),
|
|
53
53
|
children
|
|
@@ -16,7 +16,7 @@ function SidebarToggle({
|
|
|
16
16
|
onClick: onToggle,
|
|
17
17
|
size: "icon",
|
|
18
18
|
variant: "ghost",
|
|
19
|
-
children: open ? /* @__PURE__ */ jsx(X, { className: "
|
|
19
|
+
children: open ? /* @__PURE__ */ jsx(X, { className: "size-5" }) : /* @__PURE__ */ jsx(Menu, { className: "size-5" })
|
|
20
20
|
}
|
|
21
21
|
),
|
|
22
22
|
/* @__PURE__ */ jsx(
|
|
@@ -26,7 +26,7 @@ function SidebarToggle({
|
|
|
26
26
|
onClick: onToggle,
|
|
27
27
|
size: "icon",
|
|
28
28
|
variant: "ghost",
|
|
29
|
-
children: /* @__PURE__ */ jsx(Menu, { className: "
|
|
29
|
+
children: /* @__PURE__ */ jsx(Menu, { className: "size-5" })
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] });
|
|
@@ -14,7 +14,7 @@ const Slider = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs
|
|
|
14
14
|
...props,
|
|
15
15
|
children: [
|
|
16
16
|
/* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
17
|
-
/* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block
|
|
17
|
+
/* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block size-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
));
|
|
@@ -15,11 +15,12 @@ const DEFAULT_LABELS = {
|
|
|
15
15
|
prevLabel: "Prev",
|
|
16
16
|
sectionsLabel: "Sections"
|
|
17
17
|
};
|
|
18
|
+
const EMPTY_SLIDESHOW_LABELS = {};
|
|
18
19
|
function SlideshowImpl({
|
|
19
20
|
completedSections,
|
|
20
21
|
completionDialogTitle = "Mark section as complete?",
|
|
21
22
|
currentIndex,
|
|
22
|
-
labels =
|
|
23
|
+
labels = EMPTY_SLIDESHOW_LABELS,
|
|
23
24
|
onComplete,
|
|
24
25
|
onExit,
|
|
25
26
|
onNavigate,
|
|
@@ -145,7 +146,7 @@ function SlideshowImpl({
|
|
|
145
146
|
children: isTocOpen ? /* @__PURE__ */ jsx(
|
|
146
147
|
"svg",
|
|
147
148
|
{
|
|
148
|
-
className: "
|
|
149
|
+
className: "size-5",
|
|
149
150
|
fill: "none",
|
|
150
151
|
stroke: "currentColor",
|
|
151
152
|
viewBox: "0 0 24 24",
|
|
@@ -162,7 +163,7 @@ function SlideshowImpl({
|
|
|
162
163
|
) : /* @__PURE__ */ jsx(
|
|
163
164
|
"svg",
|
|
164
165
|
{
|
|
165
|
-
className: "
|
|
166
|
+
className: "size-5",
|
|
166
167
|
fill: "none",
|
|
167
168
|
stroke: "currentColor",
|
|
168
169
|
viewBox: "0 0 24 24",
|
|
@@ -200,7 +201,7 @@ function SlideshowImpl({
|
|
|
200
201
|
children: /* @__PURE__ */ jsx(
|
|
201
202
|
"svg",
|
|
202
203
|
{
|
|
203
|
-
className: "
|
|
204
|
+
className: "size-5",
|
|
204
205
|
fill: "none",
|
|
205
206
|
stroke: "currentColor",
|
|
206
207
|
viewBox: "0 0 24 24",
|
|
@@ -261,7 +262,7 @@ function SlideshowImpl({
|
|
|
261
262
|
children: /* @__PURE__ */ jsx(
|
|
262
263
|
"svg",
|
|
263
264
|
{
|
|
264
|
-
className: "
|
|
265
|
+
className: "size-4",
|
|
265
266
|
fill: "none",
|
|
266
267
|
stroke: "currentColor",
|
|
267
268
|
viewBox: "0 0 24 24",
|
|
@@ -298,13 +299,13 @@ function SlideshowImpl({
|
|
|
298
299
|
"div",
|
|
299
300
|
{
|
|
300
301
|
className: cn(
|
|
301
|
-
"flex-shrink-0
|
|
302
|
+
"flex-shrink-0 size-5 rounded-full border-2 flex items-center justify-center",
|
|
302
303
|
isCompleted ? "bg-foreground border-foreground" : "border-muted-foreground"
|
|
303
304
|
),
|
|
304
305
|
children: isCompleted ? /* @__PURE__ */ jsx(
|
|
305
306
|
"svg",
|
|
306
307
|
{
|
|
307
|
-
className: "
|
|
308
|
+
className: "size-3 text-background",
|
|
308
309
|
fill: "none",
|
|
309
310
|
stroke: "currentColor",
|
|
310
311
|
viewBox: "0 0 24 24",
|
|
@@ -333,7 +334,7 @@ function SlideshowImpl({
|
|
|
333
334
|
)
|
|
334
335
|
]
|
|
335
336
|
},
|
|
336
|
-
|
|
337
|
+
section.id
|
|
337
338
|
);
|
|
338
339
|
}) })
|
|
339
340
|
]
|
|
@@ -355,7 +356,7 @@ function SlideshowImpl({
|
|
|
355
356
|
}
|
|
356
357
|
) }) })
|
|
357
358
|
] }),
|
|
358
|
-
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex items-center justify-between
|
|
359
|
+
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex items-center justify-between p-4 border-t border-border bg-background", children: [
|
|
359
360
|
/* @__PURE__ */ jsxs(
|
|
360
361
|
"button",
|
|
361
362
|
{
|
|
@@ -367,7 +368,7 @@ function SlideshowImpl({
|
|
|
367
368
|
/* @__PURE__ */ jsx(
|
|
368
369
|
"svg",
|
|
369
370
|
{
|
|
370
|
-
className: "
|
|
371
|
+
className: "size-4",
|
|
371
372
|
fill: "none",
|
|
372
373
|
stroke: "currentColor",
|
|
373
374
|
viewBox: "0 0 24 24",
|
|
@@ -397,7 +398,7 @@ function SlideshowImpl({
|
|
|
397
398
|
!isLastSection && /* @__PURE__ */ jsx(
|
|
398
399
|
"svg",
|
|
399
400
|
{
|
|
400
|
-
className: "
|
|
401
|
+
className: "size-4",
|
|
401
402
|
fill: "none",
|
|
402
403
|
stroke: "currentColor",
|
|
403
404
|
viewBox: "0 0 24 24",
|
|
@@ -140,6 +140,7 @@ function ExpandedPanel({
|
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
|
+
const EMPTY_SHARE_PLATFORMS = [];
|
|
143
144
|
function SocialFAB({
|
|
144
145
|
actions,
|
|
145
146
|
bottomOffset = 24,
|
|
@@ -150,7 +151,7 @@ function SocialFAB({
|
|
|
150
151
|
onClose,
|
|
151
152
|
onOpen,
|
|
152
153
|
rightOffset = 24,
|
|
153
|
-
sharePlatforms =
|
|
154
|
+
sharePlatforms = EMPTY_SHARE_PLATFORMS
|
|
154
155
|
}) {
|
|
155
156
|
const options = { onAction, onClose, onOpen };
|
|
156
157
|
const fab = useSocialFab(options);
|
|
@@ -49,7 +49,7 @@ const SparklineGrid = React.forwardRef(({ className, columns = 2, items, ...prop
|
|
|
49
49
|
isPositive ? "border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400" : "border-rose-500/30 bg-rose-500/10 text-rose-600 dark:text-rose-400"
|
|
50
50
|
),
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */ jsx(TrendIcon, { className: "
|
|
52
|
+
/* @__PURE__ */ jsx(TrendIcon, { className: "size-3.5" }),
|
|
53
53
|
item.change > 0 ? "+" : "",
|
|
54
54
|
item.change.toFixed(2),
|
|
55
55
|
"%"
|
|
@@ -7,9 +7,9 @@ function Spinner({ className, size = "md", ...props }) {
|
|
|
7
7
|
className: cn(
|
|
8
8
|
"animate-spin rounded-full border-2 border-current border-t-transparent",
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"size-4": size === "sm",
|
|
11
|
+
"size-6": size === "md",
|
|
12
|
+
"size-8": size === "lg"
|
|
13
13
|
},
|
|
14
14
|
className
|
|
15
15
|
),
|
|
@@ -47,12 +47,12 @@ const changeVariants = cva(
|
|
|
47
47
|
);
|
|
48
48
|
function TrendIcon({ trend }) {
|
|
49
49
|
if (trend === "up") {
|
|
50
|
-
return /* @__PURE__ */ jsx(ArrowUpRight, { className: "
|
|
50
|
+
return /* @__PURE__ */ jsx(ArrowUpRight, { className: "size-3.5" });
|
|
51
51
|
}
|
|
52
52
|
if (trend === "down") {
|
|
53
|
-
return /* @__PURE__ */ jsx(ArrowDownRight, { className: "
|
|
53
|
+
return /* @__PURE__ */ jsx(ArrowDownRight, { className: "size-3.5" });
|
|
54
54
|
}
|
|
55
|
-
return /* @__PURE__ */ jsx(ArrowRight, { className: "
|
|
55
|
+
return /* @__PURE__ */ jsx(ArrowRight, { className: "size-3.5" });
|
|
56
56
|
}
|
|
57
57
|
const StatCard = React.forwardRef(
|
|
58
58
|
({
|
|
@@ -75,7 +75,7 @@ const StateBadgeOverlay = forwardRef((props, ref) => {
|
|
|
75
75
|
"span",
|
|
76
76
|
{
|
|
77
77
|
"aria-hidden": "true",
|
|
78
|
-
className: cn("
|
|
78
|
+
className: cn("size-1.5 rounded-full", STATE_DOT[state]),
|
|
79
79
|
"data-state-badge-dot": true
|
|
80
80
|
}
|
|
81
81
|
),
|
|
@@ -96,7 +96,7 @@ function StatusBoardCard({ item }) {
|
|
|
96
96
|
"span",
|
|
97
97
|
{
|
|
98
98
|
"aria-hidden": "true",
|
|
99
|
-
className: cn("
|
|
99
|
+
className: cn("size-2.5 rounded-full", meta.dotClassName)
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
102
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-base leading-none", children: item.label })
|
|
@@ -10,7 +10,7 @@ function Step({
|
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex gap-4", className), children: [
|
|
12
12
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
13
|
-
/* @__PURE__ */ jsx("div", { className: "flex
|
|
13
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm font-bold", children: number }),
|
|
14
14
|
/* @__PURE__ */ jsx("div", { className: "w-px flex-1 bg-border mt-2" })
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 pb-8 last:pb-0", children: [
|
|
@@ -33,7 +33,7 @@ function InteractiveStep({
|
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
35
35
|
className: cn(
|
|
36
|
-
"flex
|
|
36
|
+
"flex size-8 items-center justify-center rounded-full text-sm font-bold transition-colors",
|
|
37
37
|
isCompleted ? "bg-green-500 text-white" : "bg-primary text-primary-foreground"
|
|
38
38
|
),
|
|
39
39
|
onClick: onToggle,
|
|
@@ -41,7 +41,7 @@ function InteractiveStep({
|
|
|
41
41
|
children: isCompleted ? /* @__PURE__ */ jsx(
|
|
42
42
|
"svg",
|
|
43
43
|
{
|
|
44
|
-
className: "
|
|
44
|
+
className: "size-4",
|
|
45
45
|
fill: "none",
|
|
46
46
|
stroke: "currentColor",
|
|
47
47
|
viewBox: "0 0 24 24",
|
|
@@ -112,7 +112,7 @@ function StepByStep({
|
|
|
112
112
|
/* @__PURE__ */ jsx(
|
|
113
113
|
"svg",
|
|
114
114
|
{
|
|
115
|
-
className: "
|
|
115
|
+
className: "size-5 text-primary",
|
|
116
116
|
fill: "none",
|
|
117
117
|
stroke: "currentColor",
|
|
118
118
|
viewBox: "0 0 24 24",
|
|
@@ -131,6 +131,7 @@ function StepByStep({
|
|
|
131
131
|
] }) : null,
|
|
132
132
|
/* @__PURE__ */ jsx("div", { className: "space-y-0", children: steps.map((step, index) => {
|
|
133
133
|
const stepElement = step;
|
|
134
|
+
const stepKey = `${stepElement.props.title}-${index + 1}`;
|
|
134
135
|
return /* @__PURE__ */ jsx(
|
|
135
136
|
Step,
|
|
136
137
|
{
|
|
@@ -138,7 +139,7 @@ function StepByStep({
|
|
|
138
139
|
title: stepElement.props.title,
|
|
139
140
|
children: stepElement.props.children
|
|
140
141
|
},
|
|
141
|
-
|
|
142
|
+
stepKey
|
|
142
143
|
);
|
|
143
144
|
}) })
|
|
144
145
|
] });
|
|
@@ -148,7 +149,7 @@ function StepByStep({
|
|
|
148
149
|
/* @__PURE__ */ jsx(
|
|
149
150
|
"svg",
|
|
150
151
|
{
|
|
151
|
-
className: "
|
|
152
|
+
className: "size-5 text-primary",
|
|
152
153
|
fill: "none",
|
|
153
154
|
stroke: "currentColor",
|
|
154
155
|
viewBox: "0 0 24 24",
|
|
@@ -183,7 +184,7 @@ function StepByStep({
|
|
|
183
184
|
title: step.props.title,
|
|
184
185
|
children: step.props.children
|
|
185
186
|
},
|
|
186
|
-
index
|
|
187
|
+
`${step.props.title}-${index + 1}`
|
|
187
188
|
)) })
|
|
188
189
|
] });
|
|
189
190
|
}
|
|
@@ -45,7 +45,7 @@ function StepNavigationImpl({
|
|
|
45
45
|
"svg",
|
|
46
46
|
{
|
|
47
47
|
"aria-hidden": "true",
|
|
48
|
-
className: "
|
|
48
|
+
className: "size-5",
|
|
49
49
|
fill: "none",
|
|
50
50
|
stroke: "currentColor",
|
|
51
51
|
viewBox: "0 0 24 24",
|
|
@@ -90,7 +90,7 @@ function StepNavigationImpl({
|
|
|
90
90
|
"svg",
|
|
91
91
|
{
|
|
92
92
|
"aria-hidden": "true",
|
|
93
|
-
className: "
|
|
93
|
+
className: "size-5",
|
|
94
94
|
fill: "none",
|
|
95
95
|
stroke: "currentColor",
|
|
96
96
|
viewBox: "0 0 24 24",
|
|
@@ -13,10 +13,10 @@ function StepIcon({
|
|
|
13
13
|
stepNumber
|
|
14
14
|
}) {
|
|
15
15
|
if (state === "complete") {
|
|
16
|
-
return /* @__PURE__ */ jsx(Check, { className: "
|
|
16
|
+
return /* @__PURE__ */ jsx(Check, { className: "size-4" });
|
|
17
17
|
}
|
|
18
18
|
if (!showNumbers) {
|
|
19
|
-
return /* @__PURE__ */ jsx(Circle, { className: "
|
|
19
|
+
return /* @__PURE__ */ jsx(Circle, { className: "size-3.5 fill-current stroke-none" });
|
|
20
20
|
}
|
|
21
21
|
return /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold", children: stepNumber });
|
|
22
22
|
}
|
|
@@ -52,7 +52,7 @@ function StepperItem({
|
|
|
52
52
|
{
|
|
53
53
|
"aria-current": stepState === "current" ? "step" : void 0,
|
|
54
54
|
className: cn(
|
|
55
|
-
"relative z-10 flex
|
|
55
|
+
"relative z-10 flex size-8 items-center justify-center rounded-full border text-sm transition-colors",
|
|
56
56
|
stepState === "complete" && "border-primary bg-primary text-primary-foreground",
|
|
57
57
|
stepState === "current" && "border-primary bg-primary/10 text-primary shadow-sm",
|
|
58
58
|
stepState === "upcoming" && "border-border bg-background text-muted-foreground"
|