@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
|
@@ -30,7 +30,7 @@ const InputOTPSlot = forwardRef(({ className, index, ...props }, ref) => {
|
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
className: cn(
|
|
33
|
-
"relative flex
|
|
33
|
+
"relative flex size-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
34
34
|
isActive && "z-10 ring-2 ring-ring ring-offset-background",
|
|
35
35
|
className
|
|
36
36
|
),
|
|
@@ -219,7 +219,7 @@ function EventNode({
|
|
|
219
219
|
if (!visible) return null;
|
|
220
220
|
const titleText = typeof event.title === "string" ? event.title : "Event";
|
|
221
221
|
const tooltipId = `${event.id}-tooltip`;
|
|
222
|
-
const
|
|
222
|
+
const handleSelectTimelineEvent = (mouseEvent) => {
|
|
223
223
|
mouseEvent.stopPropagation();
|
|
224
224
|
onSelect(event);
|
|
225
225
|
};
|
|
@@ -236,7 +236,7 @@ function EventNode({
|
|
|
236
236
|
"data-event-id": event.id,
|
|
237
237
|
"data-event-track": event.track ?? "",
|
|
238
238
|
"data-selected": active ? "true" : void 0,
|
|
239
|
-
onClick:
|
|
239
|
+
onClick: handleSelectTimelineEvent,
|
|
240
240
|
style: {
|
|
241
241
|
left: `${(left * 100).toString()}%`,
|
|
242
242
|
width: isDuration ? `${(width * 100).toString()}%` : void 0
|
|
@@ -256,7 +256,7 @@ function EventNode({
|
|
|
256
256
|
"span",
|
|
257
257
|
{
|
|
258
258
|
className: cn(
|
|
259
|
-
"block
|
|
259
|
+
"block size-3 rounded-full border-2 ring-2 ring-background",
|
|
260
260
|
palette.dot,
|
|
261
261
|
active ? "ring-primary" : ""
|
|
262
262
|
)
|
|
@@ -288,7 +288,7 @@ function TrackRow({
|
|
|
288
288
|
"span",
|
|
289
289
|
{
|
|
290
290
|
"aria-hidden": "true",
|
|
291
|
-
className: cn("
|
|
291
|
+
className: cn("size-2 rounded-full", palette.dot)
|
|
292
292
|
}
|
|
293
293
|
),
|
|
294
294
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: track.label })
|
|
@@ -433,7 +433,7 @@ const InteractiveTimelineZoomIn = forwardRef(({ className, ...rest }, ref) => {
|
|
|
433
433
|
{
|
|
434
434
|
"aria-label": labels.zoomIn,
|
|
435
435
|
className: cn(
|
|
436
|
-
"inline-flex
|
|
436
|
+
"inline-flex size-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
437
437
|
className
|
|
438
438
|
),
|
|
439
439
|
onClick: zoomIn,
|
|
@@ -452,7 +452,7 @@ const InteractiveTimelineZoomOut = forwardRef(({ className, ...rest }, ref) => {
|
|
|
452
452
|
{
|
|
453
453
|
"aria-label": labels.zoomOut,
|
|
454
454
|
className: cn(
|
|
455
|
-
"inline-flex
|
|
455
|
+
"inline-flex size-8 items-center justify-center rounded-md border border-border bg-background text-sm font-medium hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
456
456
|
className
|
|
457
457
|
),
|
|
458
458
|
onClick: zoomOut,
|
|
@@ -607,9 +607,12 @@ function useTimelineContextValue(arguments_) {
|
|
|
607
607
|
function useTimelineFilter(categories, events) {
|
|
608
608
|
const [hidden, setHidden] = useState(() => /* @__PURE__ */ new Set());
|
|
609
609
|
const visibleCategories = useMemo(
|
|
610
|
-
() =>
|
|
611
|
-
|
|
612
|
-
|
|
610
|
+
() => categories.reduce((visible, category) => {
|
|
611
|
+
if (!hidden.has(category.id)) {
|
|
612
|
+
visible.add(category.id);
|
|
613
|
+
}
|
|
614
|
+
return visible;
|
|
615
|
+
}, /* @__PURE__ */ new Set()),
|
|
613
616
|
[categories, hidden]
|
|
614
617
|
);
|
|
615
618
|
const toggleCategory = useCallback((id) => {
|
|
@@ -17,16 +17,16 @@ const DEFAULT_LABELS = {
|
|
|
17
17
|
const ActionButton = (props) => {
|
|
18
18
|
const { action } = props;
|
|
19
19
|
const tone = action.tone ?? "neutral";
|
|
20
|
-
const
|
|
20
|
+
const handleActivateAction = () => {
|
|
21
21
|
action.onActivate();
|
|
22
22
|
};
|
|
23
23
|
return /* @__PURE__ */ jsxs(
|
|
24
24
|
"button",
|
|
25
25
|
{
|
|
26
|
-
className: "group relative flex
|
|
26
|
+
className: "group relative flex size-12 flex-col items-center justify-center gap-0.5 rounded-md border border-transparent text-[10px] uppercase tracking-wide text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
27
27
|
"data-jarvis-action": action.id,
|
|
28
28
|
"data-jarvis-tone": tone,
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: handleActivateAction,
|
|
30
30
|
type: "button",
|
|
31
31
|
children: [
|
|
32
32
|
/* @__PURE__ */ jsx(
|
|
@@ -79,7 +79,7 @@ const JarvisDock = forwardRef(
|
|
|
79
79
|
"button",
|
|
80
80
|
{
|
|
81
81
|
"aria-label": resolvedLabels.paletteTrigger,
|
|
82
|
-
className: "flex
|
|
82
|
+
className: "flex size-12 items-center justify-center rounded-md border border-transparent text-base text-muted-foreground transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
83
83
|
"data-jarvis-palette-trigger": true,
|
|
84
84
|
onClick: handlePalette,
|
|
85
85
|
type: "button",
|
|
@@ -16,10 +16,10 @@ function KeyConcept({
|
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
19
|
-
icon ? /* @__PURE__ */ jsx("span", { className: "
|
|
19
|
+
icon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-primary flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
22
|
-
className: "
|
|
22
|
+
className: "size-5 text-primary flex-shrink-0 mt-0.5",
|
|
23
23
|
fill: "none",
|
|
24
24
|
stroke: "currentColor",
|
|
25
25
|
viewBox: "0 0 24 24",
|
|
@@ -43,17 +43,18 @@ function KeyConcept({
|
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
45
|
function Glossary({
|
|
46
|
+
as: Heading = "h4",
|
|
46
47
|
children,
|
|
47
48
|
className,
|
|
48
49
|
icon,
|
|
49
50
|
title = "Key Terms"
|
|
50
51
|
}) {
|
|
51
52
|
return /* @__PURE__ */ jsxs("div", { className: cn("my-6", className), children: [
|
|
52
|
-
/* @__PURE__ */ jsxs(
|
|
53
|
-
icon ? /* @__PURE__ */ jsx("span", { className: "
|
|
53
|
+
/* @__PURE__ */ jsxs(Heading, { className: "font-semibold mb-3 flex items-center gap-2", children: [
|
|
54
|
+
icon ? /* @__PURE__ */ jsx("span", { className: "size-4", children: icon }) : /* @__PURE__ */ jsx(
|
|
54
55
|
"svg",
|
|
55
56
|
{
|
|
56
|
-
className: "
|
|
57
|
+
className: "size-4",
|
|
57
58
|
fill: "none",
|
|
58
59
|
stroke: "currentColor",
|
|
59
60
|
viewBox: "0 0 24 24",
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { memo, useEffect, useRef } from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
function KeyboardShortcutsHelpImpl({
|
|
6
|
+
as: Heading = "h2",
|
|
6
7
|
className,
|
|
7
8
|
closeIcon,
|
|
8
9
|
footer,
|
|
@@ -58,19 +59,19 @@ function KeyboardShortcutsHelpImpl({
|
|
|
58
59
|
),
|
|
59
60
|
children: [
|
|
60
61
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
+
/* @__PURE__ */ jsx(Heading, { className: "text-lg font-semibold", id: "shortcuts-title", children: title }),
|
|
62
63
|
/* @__PURE__ */ jsx(
|
|
63
64
|
"button",
|
|
64
65
|
{
|
|
65
66
|
"aria-label": "Close shortcuts help",
|
|
66
|
-
className: "flex
|
|
67
|
+
className: "flex size-8 items-center justify-center rounded-md hover:bg-muted",
|
|
67
68
|
onClick: onClose,
|
|
68
69
|
ref: closeButtonRef,
|
|
69
70
|
type: "button",
|
|
70
71
|
children: closeIcon ?? /* @__PURE__ */ jsx(
|
|
71
72
|
"svg",
|
|
72
73
|
{
|
|
73
|
-
className: "
|
|
74
|
+
className: "size-5",
|
|
74
75
|
fill: "none",
|
|
75
76
|
stroke: "currentColor",
|
|
76
77
|
viewBox: "0 0 24 24",
|
|
@@ -132,7 +132,7 @@ function Feedback({
|
|
|
132
132
|
),
|
|
133
133
|
role: "status",
|
|
134
134
|
children: [
|
|
135
|
-
answer.correct ? /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5
|
|
135
|
+
answer.correct ? /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }) : /* @__PURE__ */ jsx(XCircle, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0" }),
|
|
136
136
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
137
137
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: answer.correct ? correctLabel : incorrectLabel }),
|
|
138
138
|
explanation ? /* @__PURE__ */ jsx("span", { className: "text-xs opacity-80", children: explanation }) : null
|
|
@@ -153,7 +153,7 @@ function MultipleChoiceOption({
|
|
|
153
153
|
"input",
|
|
154
154
|
{
|
|
155
155
|
checked: value === option.value,
|
|
156
|
-
className: "
|
|
156
|
+
className: "size-4",
|
|
157
157
|
id,
|
|
158
158
|
name: groupName,
|
|
159
159
|
onChange,
|
|
@@ -238,13 +238,13 @@ function FillBlankField({
|
|
|
238
238
|
onChange,
|
|
239
239
|
value
|
|
240
240
|
}) {
|
|
241
|
-
const
|
|
241
|
+
const handleBlankValueChange = useCallback(
|
|
242
242
|
(event) => {
|
|
243
243
|
onChange(event.target.value);
|
|
244
244
|
},
|
|
245
245
|
[onChange]
|
|
246
246
|
);
|
|
247
|
-
return /* @__PURE__ */ jsx(Input, { id: inputId, onChange:
|
|
247
|
+
return /* @__PURE__ */ jsx(Input, { id: inputId, onChange: handleBlankValueChange, value });
|
|
248
248
|
}
|
|
249
249
|
function QuestionField({
|
|
250
250
|
groupName,
|
|
@@ -302,7 +302,7 @@ function ScoreSummary({
|
|
|
302
302
|
score.total
|
|
303
303
|
] }),
|
|
304
304
|
/* @__PURE__ */ jsxs(Button, { onClick: onRetry, size: "sm", type: "button", variant: "outline", children: [
|
|
305
|
-
/* @__PURE__ */ jsx(RotateCcw, { "aria-hidden": "true", className: "mr-2
|
|
305
|
+
/* @__PURE__ */ jsx(RotateCcw, { "aria-hidden": "true", className: "mr-2 size-4" }),
|
|
306
306
|
labels.retry
|
|
307
307
|
] })
|
|
308
308
|
] });
|
|
@@ -6,11 +6,11 @@ function LangProvider({
|
|
|
6
6
|
supportedLanguages = ["en", "fr"]
|
|
7
7
|
}) {
|
|
8
8
|
const pathname = usePathname();
|
|
9
|
+
const langMatch = /^\/([a-z]{2})(?:\/|$)/.exec(pathname);
|
|
10
|
+
const lang = langMatch && supportedLanguages.includes(langMatch[1]) ? langMatch[1] : defaultLanguage;
|
|
9
11
|
useEffect(() => {
|
|
10
|
-
const langMatch = /^\/([a-z]{2})(?:\/|$)/.exec(pathname);
|
|
11
|
-
const lang = langMatch && supportedLanguages.includes(langMatch[1]) ? langMatch[1] : defaultLanguage;
|
|
12
12
|
document.documentElement.setAttribute("lang", lang);
|
|
13
|
-
}, [
|
|
13
|
+
}, [lang]);
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CheckCircle2, Clock, GraduationCap, Target } from "lucide-react";
|
|
4
4
|
function LearningObjectives({
|
|
5
|
+
as: Heading = "h4",
|
|
5
6
|
estimatedTime,
|
|
6
7
|
objectives,
|
|
7
8
|
title = "What you'll learn"
|
|
@@ -9,18 +10,18 @@ function LearningObjectives({
|
|
|
9
10
|
return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-gradient-to-br from-primary/5 to-primary/10 p-6", children: [
|
|
10
11
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
11
12
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
12
|
-
/* @__PURE__ */ jsx(Target, { className: "
|
|
13
|
-
/* @__PURE__ */ jsx(
|
|
13
|
+
/* @__PURE__ */ jsx(Target, { className: "size-5 text-primary" }),
|
|
14
|
+
/* @__PURE__ */ jsx(Heading, { className: "font-semibold text-foreground", children: title })
|
|
14
15
|
] }),
|
|
15
16
|
estimatedTime ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-sm text-muted-foreground", children: [
|
|
16
|
-
/* @__PURE__ */ jsx(Clock, { className: "
|
|
17
|
+
/* @__PURE__ */ jsx(Clock, { className: "size-4" }),
|
|
17
18
|
/* @__PURE__ */ jsx("span", { children: estimatedTime })
|
|
18
19
|
] }) : null
|
|
19
20
|
] }),
|
|
20
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-2", children: objectives.map((objective
|
|
21
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "
|
|
21
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-2", children: objectives.map((objective) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "size-4 text-primary flex-shrink-0 mt-0.5" }),
|
|
22
23
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: objective })
|
|
23
|
-
] },
|
|
24
|
+
] }, objective)) })
|
|
24
25
|
] });
|
|
25
26
|
}
|
|
26
27
|
function Prerequisites({
|
|
@@ -31,12 +32,12 @@ function Prerequisites({
|
|
|
31
32
|
return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-muted/30 p-6", children: [
|
|
32
33
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
33
34
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
34
|
-
/* @__PURE__ */ jsx(GraduationCap, { className: "
|
|
35
|
+
/* @__PURE__ */ jsx(GraduationCap, { className: "size-5 text-muted-foreground" }),
|
|
35
36
|
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-foreground", children: title })
|
|
36
37
|
] }),
|
|
37
38
|
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
39
|
] }),
|
|
39
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-2", children: items.map((item
|
|
40
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-2", children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
40
41
|
"li",
|
|
41
42
|
{
|
|
42
43
|
className: "flex items-start gap-2 text-sm text-muted-foreground",
|
|
@@ -45,7 +46,7 @@ function Prerequisites({
|
|
|
45
46
|
item
|
|
46
47
|
]
|
|
47
48
|
},
|
|
48
|
-
|
|
49
|
+
item
|
|
49
50
|
)) })
|
|
50
51
|
] });
|
|
51
52
|
}
|
|
@@ -56,16 +57,16 @@ function Summary({
|
|
|
56
57
|
}) {
|
|
57
58
|
return /* @__PURE__ */ jsxs("div", { className: "my-6 rounded-lg border bg-muted/30 p-6", children: [
|
|
58
59
|
/* @__PURE__ */ jsxs("h4", { className: "font-semibold text-foreground mb-3 flex items-center gap-2", children: [
|
|
59
|
-
/* @__PURE__ */ jsx(GraduationCap, { className: "
|
|
60
|
+
/* @__PURE__ */ jsx(GraduationCap, { className: "size-5" }),
|
|
60
61
|
title
|
|
61
62
|
] }),
|
|
62
63
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground [&>p]:mb-2", children }),
|
|
63
64
|
keyTakeaways && keyTakeaways.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "mt-4 pt-4 border-t border-border", children: [
|
|
64
65
|
/* @__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
|
|
66
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "
|
|
66
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-1", children: keyTakeaways.map((takeaway) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-sm", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "size-4 text-green-500 flex-shrink-0 mt-0.5" }),
|
|
67
68
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: takeaway })
|
|
68
|
-
] },
|
|
69
|
+
] }, takeaway)) })
|
|
69
70
|
] }) : null
|
|
70
71
|
] });
|
|
71
72
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Badge } from "../badge";
|
|
5
|
+
import { Badge } from "../badge/badge";
|
|
6
6
|
import {
|
|
7
7
|
Card,
|
|
8
8
|
CardContent,
|
|
@@ -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
|
|
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
|
|
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(
|
|
@@ -129,7 +131,7 @@ const LiveFeed = React.forwardRef(
|
|
|
129
131
|
[events, maxItems]
|
|
130
132
|
);
|
|
131
133
|
return /* @__PURE__ */ jsxs(Card, { className: cn("shadow-sm", className), ref, ...props, children: [
|
|
132
|
-
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between gap-3
|
|
134
|
+
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between gap-3 gap-y-0 pb-3", children: [
|
|
133
135
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
134
136
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-base", children: title }),
|
|
135
137
|
description ? /* @__PURE__ */ jsx(CardDescription, { children: description }) : null
|
|
@@ -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
|
|
144
|
+
className: "relative mr-1.5 inline-flex size-2",
|
|
143
145
|
children: [
|
|
144
|
-
/* @__PURE__ */ jsx("span", { className: "absolute inline-flex
|
|
145
|
-
/* @__PURE__ */ jsx("span", { className: "relative inline-flex
|
|
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
|
),
|
|
@@ -53,7 +53,7 @@ function useMapState(arguments_) {
|
|
|
53
53
|
}, [center]);
|
|
54
54
|
const [pan, setPan] = useState(initialPan);
|
|
55
55
|
const [zoom, setZoom] = useState(
|
|
56
|
-
clamp(initialZoom, MIN_ZOOM, MAX_ZOOM)
|
|
56
|
+
() => clamp(initialZoom, MIN_ZOOM, MAX_ZOOM)
|
|
57
57
|
);
|
|
58
58
|
const zoomIn = useCallback(() => {
|
|
59
59
|
setZoom((current) => clamp(current * ZOOM_STEP, MIN_ZOOM, MAX_ZOOM));
|
|
@@ -100,7 +100,7 @@ const ControlButton = forwardRef(
|
|
|
100
100
|
{
|
|
101
101
|
"aria-label": ariaLabel,
|
|
102
102
|
className: cn(
|
|
103
|
-
"inline-flex
|
|
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
|
|
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
|
}
|
|
@@ -214,7 +214,7 @@ MapTimelineControls.displayName = "MapTimelineControls";
|
|
|
214
214
|
const MapTimelineSlider = forwardRef(({ className, ...rest }, ref) => {
|
|
215
215
|
const { endYear, labels, setYear, startYear, year } = useTimelineContext();
|
|
216
216
|
const sliderId = useId();
|
|
217
|
-
const
|
|
217
|
+
const handleYearChange = (event) => {
|
|
218
218
|
setYear(Number.parseInt(event.target.value, 10));
|
|
219
219
|
};
|
|
220
220
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2 text-xs font-medium text-muted-foreground", children: [
|
|
@@ -230,7 +230,7 @@ const MapTimelineSlider = forwardRef(({ className, ...rest }, ref) => {
|
|
|
230
230
|
id: sliderId,
|
|
231
231
|
max: endYear,
|
|
232
232
|
min: startYear,
|
|
233
|
-
onChange:
|
|
233
|
+
onChange: handleYearChange,
|
|
234
234
|
ref,
|
|
235
235
|
type: "range",
|
|
236
236
|
value: year,
|
|
@@ -251,7 +251,7 @@ const MapTimelineSlider = forwardRef(({ className, ...rest }, ref) => {
|
|
|
251
251
|
MapTimelineSlider.displayName = "MapTimelineSlider";
|
|
252
252
|
const MapTimelinePlayButton = forwardRef(({ className, ...rest }, ref) => {
|
|
253
253
|
const { isPlaying, labels, setIsPlaying } = useTimelineContext();
|
|
254
|
-
const
|
|
254
|
+
const handleTogglePlayback = () => {
|
|
255
255
|
setIsPlaying(!isPlaying);
|
|
256
256
|
};
|
|
257
257
|
return /* @__PURE__ */ jsx(
|
|
@@ -264,7 +264,7 @@ const MapTimelinePlayButton = forwardRef(({ className, ...rest }, ref) => {
|
|
|
264
264
|
className
|
|
265
265
|
),
|
|
266
266
|
"data-playing": isPlaying ? "true" : void 0,
|
|
267
|
-
onClick:
|
|
267
|
+
onClick: handleTogglePlayback,
|
|
268
268
|
ref,
|
|
269
269
|
type: "button",
|
|
270
270
|
...rest,
|
|
@@ -301,7 +301,7 @@ function useTimelineCtx(arguments_) {
|
|
|
301
301
|
function useTimelineState(arguments_) {
|
|
302
302
|
const { endYear, initialYear, onYearChange, startYear } = arguments_;
|
|
303
303
|
const [year, setYear] = useState(
|
|
304
|
-
clamp(initialYear ?? startYear, startYear, endYear)
|
|
304
|
+
() => clamp(initialYear ?? startYear, startYear, endYear)
|
|
305
305
|
);
|
|
306
306
|
const [isPlaying, setIsPlaying] = useState(false);
|
|
307
307
|
const updateYear = useCallback(
|
|
@@ -48,7 +48,7 @@ function MarketTreemapTile({
|
|
|
48
48
|
tone.trendClassName
|
|
49
49
|
),
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ jsx(TrendIcon, { className: "
|
|
51
|
+
/* @__PURE__ */ jsx(TrendIcon, { className: "size-4" }),
|
|
52
52
|
item.change > 0 ? "+" : "",
|
|
53
53
|
item.change.toFixed(2),
|
|
54
54
|
"%"
|
|
@@ -67,7 +67,7 @@ function MarketTreemapTile({
|
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
const MarketTreemap = React.forwardRef(({ className, items, ...props }, reference) => {
|
|
70
|
+
const MarketTreemap = React.forwardRef(({ as: Heading = "h2", className, items, ...props }, reference) => {
|
|
71
71
|
if (items.length === 0) {
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
@@ -85,7 +85,7 @@ const MarketTreemap = React.forwardRef(({ className, items, ...props }, referenc
|
|
|
85
85
|
/* @__PURE__ */ jsxs("div", { className: "mb-4 flex flex-wrap items-center justify-between gap-3", children: [
|
|
86
86
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
87
87
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-[0.28em] text-muted-foreground", children: "Sector heatmap" }),
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(Heading, { className: "text-lg font-semibold text-foreground", children: "Market treemap" })
|
|
89
89
|
] }),
|
|
90
90
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Tile size maps market cap proxy; color reflects session change." })
|
|
91
91
|
] }),
|
|
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { evaluate } from "@mdx-js/mdx";
|
|
3
3
|
import * as runtime from "react/jsx-runtime";
|
|
4
4
|
import ReactMarkdown from "react-markdown";
|
|
5
|
+
import remarkGfm from "remark-gfm";
|
|
5
6
|
import { CodeBlock } from "../code-block/code-block";
|
|
6
7
|
const MDXComponents = {
|
|
7
8
|
a: ({ children, href, ...props }) => /* @__PURE__ */ jsx(
|
|
@@ -16,7 +17,7 @@ const MDXComponents = {
|
|
|
16
17
|
blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
17
18
|
"blockquote",
|
|
18
19
|
{
|
|
19
|
-
className: "border-l
|
|
20
|
+
className: "border-l border-primary pl-4 italic text-muted-foreground my-6 py-2 text-sm",
|
|
20
21
|
...props,
|
|
21
22
|
children
|
|
22
23
|
}
|
|
@@ -37,9 +38,9 @@ const MDXComponents = {
|
|
|
37
38
|
);
|
|
38
39
|
},
|
|
39
40
|
em: ({ children, ...props }) => /* @__PURE__ */ jsx("em", { className: "italic", ...props, children }),
|
|
40
|
-
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-
|
|
41
|
-
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-
|
|
42
|
-
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-
|
|
41
|
+
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold mt-8 mb-4", ...props, children }),
|
|
42
|
+
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mt-6 mb-3", ...props, children }),
|
|
43
|
+
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mt-4 mb-2", ...props, children }),
|
|
43
44
|
hr: ({ ...props }) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
44
45
|
li: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
45
46
|
"li",
|
|
@@ -89,14 +90,15 @@ const proseClasses = [
|
|
|
89
90
|
"prose-strong:font-semibold prose-em:italic",
|
|
90
91
|
"prose-a:text-primary prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-primary/80",
|
|
91
92
|
"prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono",
|
|
92
|
-
"prose-pre:my-6 prose-pre:overflow-x-auto prose-pre:rounded-lg prose-pre:border prose-pre:bg-
|
|
93
|
-
"prose-blockquote:border-l
|
|
93
|
+
"prose-pre:my-6 prose-pre:overflow-x-auto prose-pre:rounded-lg prose-pre:border prose-pre:bg-zinc-950 prose-pre:py-4 prose-pre:font-mono prose-pre:text-sm prose-pre:text-white prose-pre:shadow-lg dark:prose-pre:bg-zinc-900",
|
|
94
|
+
"prose-blockquote:border-l prose-blockquote:border-primary prose-blockquote:pl-4 prose-blockquote:italic prose-blockquote:text-muted-foreground prose-blockquote:my-6 prose-blockquote:py-2",
|
|
94
95
|
"prose-hr:my-8 prose-hr:border-border",
|
|
95
96
|
"prose-table:w-full prose-table:border-collapse prose-table:border prose-table:border-border",
|
|
96
97
|
"prose-th:border prose-th:border-border prose-th:bg-muted prose-th:p-2 prose-th:text-left prose-th:font-medium",
|
|
97
98
|
"prose-td:border prose-td:border-border prose-td:p-2",
|
|
98
99
|
"prose-img:rounded-lg prose-img:border prose-img:border-border prose-img:shadow-lg"
|
|
99
100
|
].join(" ");
|
|
101
|
+
const markdownPlugins = [remarkGfm];
|
|
100
102
|
function removeImportStatements(content, componentNames) {
|
|
101
103
|
let processed = content.replaceAll(/^import\s+.*CodeBlock.*from.*$/gm, "");
|
|
102
104
|
componentNames.forEach((name) => {
|
|
@@ -114,8 +116,9 @@ function buildCustomComponents(injectedComponents) {
|
|
|
114
116
|
...injectedComponents
|
|
115
117
|
};
|
|
116
118
|
}
|
|
119
|
+
const EMPTY_MDX_COMPONENTS = {};
|
|
117
120
|
async function MDXContent({
|
|
118
|
-
components =
|
|
121
|
+
components = EMPTY_MDX_COMPONENTS,
|
|
119
122
|
content,
|
|
120
123
|
enableMDX = true
|
|
121
124
|
}) {
|
|
@@ -142,9 +145,16 @@ async function MDXContent({
|
|
|
142
145
|
if (Component) {
|
|
143
146
|
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(Component, { components: allComponents }) });
|
|
144
147
|
}
|
|
145
|
-
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(
|
|
148
|
+
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(
|
|
149
|
+
ReactMarkdown,
|
|
150
|
+
{
|
|
151
|
+
components: allComponents,
|
|
152
|
+
remarkPlugins: markdownPlugins,
|
|
153
|
+
children: content
|
|
154
|
+
}
|
|
155
|
+
) });
|
|
146
156
|
}
|
|
147
|
-
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, children: content }) });
|
|
157
|
+
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, remarkPlugins: markdownPlugins, children: content }) });
|
|
148
158
|
}
|
|
149
159
|
export {
|
|
150
160
|
MDXContent
|
|
@@ -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
|
|
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
|
|
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
|
|
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("-
|
|
144
|
+
className: cn("-m-1 h-px bg-muted", className),
|
|
145
145
|
ref,
|
|
146
146
|
...props
|
|
147
147
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
|
-
import { Badge } from "../badge";
|
|
4
|
+
import { Badge } from "../badge/badge";
|
|
5
5
|
import {
|
|
6
6
|
Card,
|
|
7
7
|
CardContent,
|
|
@@ -148,7 +148,7 @@ function GaugeLegend({ thresholds }) {
|
|
|
148
148
|
{
|
|
149
149
|
"aria-hidden": "true",
|
|
150
150
|
className: cn(
|
|
151
|
-
"
|
|
151
|
+
"size-2 rounded-full bg-current",
|
|
152
152
|
threshold.colorClassName
|
|
153
153
|
)
|
|
154
154
|
}
|