@togo-framework/ui 0.1.5 → 0.1.7

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/index.d.ts CHANGED
@@ -4088,4 +4088,41 @@ declare namespace CommandPalette {
4088
4088
  var displayName: string;
4089
4089
  }
4090
4090
 
4091
- export { type A2UIActionItem, type A2UIActionsData, type A2UIArtifact$1 as A2UIArtifact, type A2UICardData, type A2UICardField, type A2UIChartData, type A2UIChartSeries, type A2UIClientCandidate, type A2UIClientCandidatesData, type A2UIClientDiffConfirmData, type A2UIClientDiffRow, type A2UIClientField, type A2UIClientFieldPickerData, type A2UIKind, type A2UIMarkdownData, type A2UIPersonaStarter, type A2UIPersonaStartersData, type A2UITableColumn, type A2UITableData, type ActivityBucket, AdminLayout, type AdminLayoutProps, type AdminSubNavItem, AgentSteps, type AlertMapItem, type AlertSeverity, type AppBrand, AppHeader, type AppHeaderProps, AppLayout, type AppLayoutProps, type AppNavGroup, type AppNavItem, AppPageShell, type AppPageShellProps, AppSidebar, type AppSidebarProps, type AppearanceMode, ArtifactActions, type ArtifactActionsProps, ArtifactCard, type ArtifactCardProps, ArtifactChart, type ArtifactChartProps, ArtifactClientCandidates, type ArtifactClientCandidatesProps, ArtifactClientDiffConfirm, type ArtifactClientDiffConfirmProps, ArtifactClientFieldPicker, type ArtifactClientFieldPickerProps, type ArtifactInteraction, ArtifactMarkdown, type ArtifactMarkdownProps, ArtifactPersonaStarters, type ArtifactPersonaStartersProps, ArtifactRenderer, type ArtifactRendererProps, ArtifactTable, type ArtifactTableProps, ArtifactViewer, AuroraBackground, type AuroraBackgroundProps, AuthCard, type AuthCardBrand, type AuthClient, AuthErrorAlert, AuthFlow, type AuthLayout, AuthStepHeader, type BarPoint, Callout, type CardFilter, CardGrid, type CardGridLabels, ChatThread, CodeBlock, CodeShowcase, type CodeShowcaseProps, type CodeShowcaseTab, ColorPicker, type ColorPickerProps, CommandPalette, ContextualSkeleton, type CopilotClient, type CopilotEvent, CopilotLauncher, CopilotProvider, type CopilotQuickAction, type CopilotRequest, CopilotSelectionTrigger, type CopilotSelectionTriggerProps, DEFAULT_LAYERS, DEFAULT_LEGEND_GROUPS, DEFAULT_REGION_PRESETS, DataState, type DataStateLabels, type DataStateProps, DataTable, type DataTableBulkAction, type DataTableColumnFilter, type DataTableColumnMeta, type DataTableDensity, type DataTableFilterType, type DataTableLanguage, type DataTableProps, type DataTableSelectOption, type DataTableServerCallbacks, type DataTableServerState, type DockPosition, DocsLayout, type DocsLayoutProps, type DocsNavGroup, type DocsNavItem, DocsSidebar, DocsTOC, DynamicIcon, DynamicSection, type DynamicSectionProps, EmptyState, type EmptyStateProps, EntityNetworkGraph, type EntityNetworkGraphProps, type ErrorFilter, ErrorTrackingPage, type ErrorTrackingPageProps, EventMapPanel, type EventMapPanelProps, Eyebrow, type EyebrowProps, FeatureCard, type FeatureCardProps, type FeedbackAttachment, FeedbackButton, type FeedbackButtonProps, FeedbackHub, type FeedbackHubProps, type FeedbackItem, type FeedbackKind, FeedbackWidget, type FeedbackWidgetProps, FilterBar, type FilterBarProps, type FilterChip, ForgotForm, GlassCard, type GlassCardProps, type GraphLink, type GraphNode, IconPicker, type IconPickerProps, type Issue$1 as Issue, type IssueAssignee, type IssueBreadcrumb, IssueDetail, type IssueDetailProps, type IssueLevel, type IssueSort, type IssueTag, IssuesList, type IssuesListProps, LANG_COOKIE_NAME, type LanguageContextValue, LanguageProvider, type LanguageProviderProps, type LegendGroup, type LegendItem, type LegendShapeType, LockScreen, type LockScreenProps, type LockScreenUser, type LogLevel, LoginForm, type LoginResult, Logo, type LogoProps, type LogoTone, type LogoVariant, type LogsFilter, LogsView, type LogsViewProps, MARKER_COLORS, MARKER_LABELS, type MapLayer, MapLayersPanel, type MapLayersPanelProps, MapLegend, type MapLegendProps, type MapMarker$1 as MapMarker, type MapMarkerType, MapPanel, type MapPanelProps, type MapRegionPreset, MapView, type MapViewProps, MarkdownContent, MarkdownEditor, type MarkdownEditorProps, MarkdownRenderer, type MarkdownRendererProps, MarkdownTable, type MarkdownView, MarketplaceCard, type MarketplaceCardProps, MiniBarChart, MockupWindow, type MockupWindowProps, type ModelOption, MotorFeedbackLauncher, type MotorFeedbackLauncherProps, NestedStepsEditor, type NestedStepsEditorProps, NetworkGraph, type NetworkGraphProps, type NewFeedback, OTPBoxGroup, type OtpResult, PIPELINE_STAGES, PageHeader, type PageHeaderProps, Pager, type PaletteItem, PasswordInput, PasswordLockScreen, type PasswordLockScreenProps, type PasswordLockScreenUser, type PasswordRule, PasswordStrengthMeter, type PickedLocation, PillButton, type PillButtonProps, type PipelineCard, type PipelineLane, type PipelineModel, type PluginActivitySummary, type PluginAppearanceFields, PluginAppearanceSection, type PluginAppearanceSectionProps, PluginCard, type PluginCatalogEntry, type PluginDetailIdentity, PluginDetailLayout, type PluginDetailLayoutProps, type PluginDetailTab, PluginHero, PluginHeroSkeleton, PluginPageHeader, PluginSectionCard, PluginSparkline, type ProfileSession, ProfileView, type ProfileViewProps, type RenderMapContext, ResetForm, type ResolvedIcon, Reveal, type RevealProps, RouteProgress, type RouteProgressProps, STEP_FIELD_REGISTRY, SectionBoard, type SectionBoardProps, SectionHeading, type SectionHeadingProps, type SectionModel, SectionSkeleton, SentraLoading, type ServiceLogRow, ServiceUnavailable, type ServiceUnavailableProps, SessionExpired, type SessionExpiredProps, SeverityChip, type SidebarConversation, type SidebarUser, SourceBadge, type SparklinePoint, type StackFrame, type StackFrameContextLine, StatCard, type StatCardProps, type StatTile, StatsRow, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, type Step, type StepFieldDef, type StepFieldType, type StepMetrics7d, StepOptionsDialog, type StepOptionsDialogProps, StreamingMessage, type TestRunCallbacks, type TestRunCompletePayload, TestRunPanel, type TestRunPanelProps, type TestRunSavedItem, type TestRunStep, type TocItem, TwoFAForm, UnifiedCopilotDock, type UnlockCredentials, type Verify2FAResult, type View, ViewToggle, type ViewToggleProps, Wordmark, type WordmarkProps, Workflow, WorkflowEditor, type WorkflowEditorProps, type WorkflowPalette, WorkflowPipeline, type WorkflowPipelineProps, type WorkflowProps, type WorkflowSource, type WorkflowStep, type WorkflowStepLike, WorkflowStepNode, type WorkflowStepNodeProps, type WorkflowView, cn, computeRules, computeScore, feedbackButtonVariants, levelTone, resolveIcon, statValueVariants, statusBadgeVariants, useCopilot, useLanguage, useT };
4091
+ interface TerminalStep {
4092
+ /** Command typed at the prompt (without the leading ❯). */
4093
+ cmd: string;
4094
+ /** Output lines streamed after the command. */
4095
+ out?: string[];
4096
+ }
4097
+ interface TypingTerminalProps {
4098
+ steps: TerminalStep[];
4099
+ /** Revealed after the last step finishes (e.g. an app screenshot/mock). */
4100
+ endSlot?: React$1.ReactNode;
4101
+ title?: string;
4102
+ className?: string;
4103
+ /** ms per typed character. */
4104
+ typeMs?: number;
4105
+ /** ms between streamed output lines. */
4106
+ lineMs?: number;
4107
+ /** Loop the playback. Default false — plays once, then offers Replay. */
4108
+ loop?: boolean;
4109
+ /** Fixed body height (px). The window never grows/jumps while typing. */
4110
+ height?: number;
4111
+ }
4112
+ declare function TypingTerminal({ steps, endSlot, title, className, typeMs, lineMs, loop, height }: TypingTerminalProps): React$1.JSX.Element;
4113
+ declare namespace TypingTerminal {
4114
+ var displayName: string;
4115
+ }
4116
+
4117
+ interface MascotMarkProps {
4118
+ /** Source of the head mark SVG (defaults to /togo-mark.svg). */
4119
+ src?: string;
4120
+ alt?: string;
4121
+ className?: string;
4122
+ }
4123
+ declare function MascotMark({ src, alt, className }: MascotMarkProps): React$1.JSX.Element;
4124
+ declare namespace MascotMark {
4125
+ var displayName: string;
4126
+ }
4127
+
4128
+ export { type A2UIActionItem, type A2UIActionsData, type A2UIArtifact$1 as A2UIArtifact, type A2UICardData, type A2UICardField, type A2UIChartData, type A2UIChartSeries, type A2UIClientCandidate, type A2UIClientCandidatesData, type A2UIClientDiffConfirmData, type A2UIClientDiffRow, type A2UIClientField, type A2UIClientFieldPickerData, type A2UIKind, type A2UIMarkdownData, type A2UIPersonaStarter, type A2UIPersonaStartersData, type A2UITableColumn, type A2UITableData, type ActivityBucket, AdminLayout, type AdminLayoutProps, type AdminSubNavItem, AgentSteps, type AlertMapItem, type AlertSeverity, type AppBrand, AppHeader, type AppHeaderProps, AppLayout, type AppLayoutProps, type AppNavGroup, type AppNavItem, AppPageShell, type AppPageShellProps, AppSidebar, type AppSidebarProps, type AppearanceMode, ArtifactActions, type ArtifactActionsProps, ArtifactCard, type ArtifactCardProps, ArtifactChart, type ArtifactChartProps, ArtifactClientCandidates, type ArtifactClientCandidatesProps, ArtifactClientDiffConfirm, type ArtifactClientDiffConfirmProps, ArtifactClientFieldPicker, type ArtifactClientFieldPickerProps, type ArtifactInteraction, ArtifactMarkdown, type ArtifactMarkdownProps, ArtifactPersonaStarters, type ArtifactPersonaStartersProps, ArtifactRenderer, type ArtifactRendererProps, ArtifactTable, type ArtifactTableProps, ArtifactViewer, AuroraBackground, type AuroraBackgroundProps, AuthCard, type AuthCardBrand, type AuthClient, AuthErrorAlert, AuthFlow, type AuthLayout, AuthStepHeader, type BarPoint, Callout, type CardFilter, CardGrid, type CardGridLabels, ChatThread, CodeBlock, CodeShowcase, type CodeShowcaseProps, type CodeShowcaseTab, ColorPicker, type ColorPickerProps, CommandPalette, ContextualSkeleton, type CopilotClient, type CopilotEvent, CopilotLauncher, CopilotProvider, type CopilotQuickAction, type CopilotRequest, CopilotSelectionTrigger, type CopilotSelectionTriggerProps, DEFAULT_LAYERS, DEFAULT_LEGEND_GROUPS, DEFAULT_REGION_PRESETS, DataState, type DataStateLabels, type DataStateProps, DataTable, type DataTableBulkAction, type DataTableColumnFilter, type DataTableColumnMeta, type DataTableDensity, type DataTableFilterType, type DataTableLanguage, type DataTableProps, type DataTableSelectOption, type DataTableServerCallbacks, type DataTableServerState, type DockPosition, DocsLayout, type DocsLayoutProps, type DocsNavGroup, type DocsNavItem, DocsSidebar, DocsTOC, DynamicIcon, DynamicSection, type DynamicSectionProps, EmptyState, type EmptyStateProps, EntityNetworkGraph, type EntityNetworkGraphProps, type ErrorFilter, ErrorTrackingPage, type ErrorTrackingPageProps, EventMapPanel, type EventMapPanelProps, Eyebrow, type EyebrowProps, FeatureCard, type FeatureCardProps, type FeedbackAttachment, FeedbackButton, type FeedbackButtonProps, FeedbackHub, type FeedbackHubProps, type FeedbackItem, type FeedbackKind, FeedbackWidget, type FeedbackWidgetProps, FilterBar, type FilterBarProps, type FilterChip, ForgotForm, GlassCard, type GlassCardProps, type GraphLink, type GraphNode, IconPicker, type IconPickerProps, type Issue$1 as Issue, type IssueAssignee, type IssueBreadcrumb, IssueDetail, type IssueDetailProps, type IssueLevel, type IssueSort, type IssueTag, IssuesList, type IssuesListProps, LANG_COOKIE_NAME, type LanguageContextValue, LanguageProvider, type LanguageProviderProps, type LegendGroup, type LegendItem, type LegendShapeType, LockScreen, type LockScreenProps, type LockScreenUser, type LogLevel, LoginForm, type LoginResult, Logo, type LogoProps, type LogoTone, type LogoVariant, type LogsFilter, LogsView, type LogsViewProps, MARKER_COLORS, MARKER_LABELS, type MapLayer, MapLayersPanel, type MapLayersPanelProps, MapLegend, type MapLegendProps, type MapMarker$1 as MapMarker, type MapMarkerType, MapPanel, type MapPanelProps, type MapRegionPreset, MapView, type MapViewProps, MarkdownContent, MarkdownEditor, type MarkdownEditorProps, MarkdownRenderer, type MarkdownRendererProps, MarkdownTable, type MarkdownView, MarketplaceCard, type MarketplaceCardProps, MascotMark, type MascotMarkProps, MiniBarChart, MockupWindow, type MockupWindowProps, type ModelOption, MotorFeedbackLauncher, type MotorFeedbackLauncherProps, NestedStepsEditor, type NestedStepsEditorProps, NetworkGraph, type NetworkGraphProps, type NewFeedback, OTPBoxGroup, type OtpResult, PIPELINE_STAGES, PageHeader, type PageHeaderProps, Pager, type PaletteItem, PasswordInput, PasswordLockScreen, type PasswordLockScreenProps, type PasswordLockScreenUser, type PasswordRule, PasswordStrengthMeter, type PickedLocation, PillButton, type PillButtonProps, type PipelineCard, type PipelineLane, type PipelineModel, type PluginActivitySummary, type PluginAppearanceFields, PluginAppearanceSection, type PluginAppearanceSectionProps, PluginCard, type PluginCatalogEntry, type PluginDetailIdentity, PluginDetailLayout, type PluginDetailLayoutProps, type PluginDetailTab, PluginHero, PluginHeroSkeleton, PluginPageHeader, PluginSectionCard, PluginSparkline, type ProfileSession, ProfileView, type ProfileViewProps, type RenderMapContext, ResetForm, type ResolvedIcon, Reveal, type RevealProps, RouteProgress, type RouteProgressProps, STEP_FIELD_REGISTRY, SectionBoard, type SectionBoardProps, SectionHeading, type SectionHeadingProps, type SectionModel, SectionSkeleton, SentraLoading, type ServiceLogRow, ServiceUnavailable, type ServiceUnavailableProps, SessionExpired, type SessionExpiredProps, SeverityChip, type SidebarConversation, type SidebarUser, SourceBadge, type SparklinePoint, type StackFrame, type StackFrameContextLine, StatCard, type StatCardProps, type StatTile, StatsRow, StatusBadge, type StatusBadgeProps, type StatusBadgeTone, type Step, type StepFieldDef, type StepFieldType, type StepMetrics7d, StepOptionsDialog, type StepOptionsDialogProps, StreamingMessage, type TerminalStep, type TestRunCallbacks, type TestRunCompletePayload, TestRunPanel, type TestRunPanelProps, type TestRunSavedItem, type TestRunStep, type TocItem, TwoFAForm, TypingTerminal, type TypingTerminalProps, UnifiedCopilotDock, type UnlockCredentials, type Verify2FAResult, type View, ViewToggle, type ViewToggleProps, Wordmark, type WordmarkProps, Workflow, WorkflowEditor, type WorkflowEditorProps, type WorkflowPalette, WorkflowPipeline, type WorkflowPipelineProps, type WorkflowProps, type WorkflowSource, type WorkflowStep, type WorkflowStepLike, WorkflowStepNode, type WorkflowStepNodeProps, type WorkflowView, cn, computeRules, computeScore, feedbackButtonVariants, levelTone, resolveIcon, statValueVariants, statusBadgeVariants, useCopilot, useLanguage, useT };
package/dist/index.js CHANGED
@@ -1427,8 +1427,8 @@ var BrandCrest = ({
1427
1427
  const crestChrome = cn(
1428
1428
  "flex items-center justify-center rounded-2xl",
1429
1429
  box,
1430
- onPanel ? "border-2 border-primary-foreground/30 bg-primary-foreground/10" : "bg-primary/10",
1431
- onPanel ? "text-primary-foreground" : "text-primary"
1430
+ onPanel ? "border-2 border-white/30 bg-white/10" : "bg-primary/10",
1431
+ onPanel ? "text-white" : "text-primary"
1432
1432
  );
1433
1433
  if (brand.icon !== null && brand.icon !== void 0) {
1434
1434
  return /* @__PURE__ */ jsx11("div", { className: crestChrome, "aria-hidden": "true", children: brand.icon });
@@ -1436,36 +1436,36 @@ var BrandCrest = ({
1436
1436
  return /* @__PURE__ */ jsx11("div", { className: crestChrome, children: /* @__PURE__ */ jsx11("span", { className: cn("font-bold tracking-tight", text), children: brand.initial }) });
1437
1437
  };
1438
1438
  BrandCrest.displayName = "BrandCrest";
1439
- var BrandPanel = ({ brand, ar }) => /* @__PURE__ */ jsxs10("div", { className: "relative hidden lg:flex lg:w-1/2 flex-col items-center justify-center overflow-hidden px-12 py-16 bg-primary", children: [
1439
+ var BrandPanel = ({ brand, ar }) => /* @__PURE__ */ jsxs10("div", { className: "relative hidden lg:flex lg:w-1/2 flex-col items-center justify-center overflow-hidden px-12 py-16 bg-gradient-to-br from-[#1FC7DC] via-[#2D8CE6] to-[#1659C8]", children: [
1440
1440
  /* @__PURE__ */ jsx11(
1441
1441
  "div",
1442
1442
  {
1443
1443
  className: "absolute inset-0 opacity-[0.08]",
1444
1444
  style: {
1445
- backgroundImage: "radial-gradient(circle, hsl(var(--primary-foreground)) 1px, transparent 1px)",
1445
+ backgroundImage: "radial-gradient(circle, #ffffff 1px, transparent 1px)",
1446
1446
  backgroundSize: "24px 24px"
1447
1447
  },
1448
1448
  "aria-hidden": "true"
1449
1449
  }
1450
1450
  ),
1451
- /* @__PURE__ */ jsxs10("div", { className: "relative z-10 flex w-full max-w-sm flex-col items-center gap-7 text-center text-primary-foreground", children: [
1451
+ /* @__PURE__ */ jsxs10("div", { className: "relative z-10 flex w-full max-w-sm flex-col items-center gap-7 text-center text-white", children: [
1452
1452
  /* @__PURE__ */ jsx11(BrandCrest, { brand, size: "lg", onPanel: true }),
1453
1453
  /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2.5", children: [
1454
1454
  /* @__PURE__ */ jsx11("h1", { className: "text-[2rem] font-bold leading-tight tracking-tight", children: brandName(brand, ar) }),
1455
- /* @__PURE__ */ jsx11("p", { className: "text-sm leading-relaxed text-primary-foreground/75", children: ar ? brand.tagline.ar : brand.tagline.en })
1455
+ /* @__PURE__ */ jsx11("p", { className: "text-sm leading-relaxed text-white/75", children: ar ? brand.tagline.ar : brand.tagline.en })
1456
1456
  ] }),
1457
- brand.bullets.length > 0 && /* @__PURE__ */ jsx11("ul", { className: "mt-1 flex w-full flex-col items-center gap-3.5 text-center text-sm text-primary-foreground/85", children: brand.bullets.map((bullet, i) => /* @__PURE__ */ jsxs10("li", { className: "flex items-center justify-center gap-2.5", children: [
1457
+ brand.bullets.length > 0 && /* @__PURE__ */ jsx11("ul", { className: "mt-1 flex w-full flex-col items-center gap-3.5 text-center text-sm text-white/85", children: brand.bullets.map((bullet, i) => /* @__PURE__ */ jsxs10("li", { className: "flex items-center justify-center gap-2.5", children: [
1458
1458
  /* @__PURE__ */ jsx11(
1459
1459
  "span",
1460
1460
  {
1461
- className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-primary-foreground/15",
1461
+ className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-white/15",
1462
1462
  "aria-hidden": "true",
1463
1463
  children: /* @__PURE__ */ jsx11("svg", { className: "h-2.5 w-2.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: /* @__PURE__ */ jsx11("path", { d: "M20 6 9 17l-5-5" }) })
1464
1464
  }
1465
1465
  ),
1466
1466
  /* @__PURE__ */ jsx11("span", { className: "leading-snug", children: ar ? bullet.ar : bullet.en })
1467
1467
  ] }, i)) }),
1468
- /* @__PURE__ */ jsxs10("div", { className: "mt-3 flex items-center gap-2 text-xs text-primary-foreground/55", children: [
1468
+ /* @__PURE__ */ jsxs10("div", { className: "mt-3 flex items-center gap-2 text-xs text-white/55", children: [
1469
1469
  /* @__PURE__ */ jsxs10("svg", { className: "h-3.5 w-3.5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
1470
1470
  /* @__PURE__ */ jsx11("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
1471
1471
  /* @__PURE__ */ jsx11("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
@@ -16266,6 +16266,218 @@ function CommandPalette({ items, placeholder = "Search docs & plugins\u2026", cl
16266
16266
  ] });
16267
16267
  }
16268
16268
  CommandPalette.displayName = "CommandPalette";
16269
+
16270
+ // src/components/marketing/Terminal.tsx
16271
+ import * as React32 from "react";
16272
+ import { RotateCcw as RotateCcw3 } from "lucide-react";
16273
+ import { jsx as jsx101, jsxs as jsxs89 } from "react/jsx-runtime";
16274
+ function fullFrame(steps) {
16275
+ const lines = [];
16276
+ steps.forEach((s, i) => {
16277
+ lines.push(
16278
+ /* @__PURE__ */ jsxs89("div", { className: "whitespace-pre-wrap break-words", children: [
16279
+ /* @__PURE__ */ jsx101("span", { className: "text-[#5CDDEC]", children: "\u276F " }),
16280
+ /* @__PURE__ */ jsx101("span", { className: "text-foreground", children: s.cmd })
16281
+ ] }, `c${i}`)
16282
+ );
16283
+ (s.out || []).forEach((l, j) => lines.push(/* @__PURE__ */ jsx101("div", { className: "whitespace-pre-wrap break-words text-muted-foreground", children: l }, `o${i}-${j}`)));
16284
+ });
16285
+ return { lines, showEnd: true };
16286
+ }
16287
+ var keepStaticFrame = () => typeof window !== "undefined" && (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches || navigator?.webdriver === true);
16288
+ function TypingTerminal({ steps, endSlot, title = "~/myapp \u2014 togo", className, typeMs = 26, lineMs = 110, loop = false, height = 360 }) {
16289
+ const [frame, setFrame] = React32.useState(() => fullFrame(steps));
16290
+ const [done, setDone] = React32.useState(false);
16291
+ const [runId, setRunId] = React32.useState(0);
16292
+ const scrollRef = React32.useRef(null);
16293
+ React32.useEffect(() => {
16294
+ if (keepStaticFrame()) {
16295
+ setDone(true);
16296
+ return;
16297
+ }
16298
+ let alive = true;
16299
+ const timers = [];
16300
+ const wait = (ms) => new Promise((res) => timers.push(setTimeout(res, ms)));
16301
+ const toBottom = () => {
16302
+ if (scrollRef.current) scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
16303
+ };
16304
+ async function run() {
16305
+ setDone(false);
16306
+ do {
16307
+ const lines = [];
16308
+ setFrame({ lines: [], showEnd: false });
16309
+ for (let i = 0; i < steps.length && alive; i++) {
16310
+ const s = steps[i];
16311
+ for (let c = 1; c <= s.cmd.length && alive; c++) {
16312
+ const typed = s.cmd.slice(0, c);
16313
+ setFrame({
16314
+ lines: [...lines, /* @__PURE__ */ jsxs89("div", { className: "whitespace-pre-wrap break-words", children: [
16315
+ /* @__PURE__ */ jsx101("span", { className: "text-[#5CDDEC]", children: "\u276F " }),
16316
+ /* @__PURE__ */ jsx101("span", { className: "text-foreground", children: typed }),
16317
+ /* @__PURE__ */ jsx101("span", { className: "ml-0.5 inline-block w-2 -mb-0.5 h-4 bg-[#5CDDEC] animate-pulse" })
16318
+ ] }, `c${i}`)],
16319
+ showEnd: false
16320
+ });
16321
+ toBottom();
16322
+ await wait(typeMs);
16323
+ }
16324
+ lines.push(/* @__PURE__ */ jsxs89("div", { className: "whitespace-pre-wrap break-words", children: [
16325
+ /* @__PURE__ */ jsx101("span", { className: "text-[#5CDDEC]", children: "\u276F " }),
16326
+ /* @__PURE__ */ jsx101("span", { className: "text-foreground", children: s.cmd })
16327
+ ] }, `c${i}`));
16328
+ await wait(220);
16329
+ for (let j = 0; j < (s.out?.length || 0) && alive; j++) {
16330
+ lines.push(/* @__PURE__ */ jsx101("div", { className: "whitespace-pre-wrap break-words text-muted-foreground", children: s.out[j] }, `o${i}-${j}`));
16331
+ setFrame({ lines: [...lines], showEnd: false });
16332
+ toBottom();
16333
+ await wait(lineMs);
16334
+ }
16335
+ }
16336
+ if (!alive) return;
16337
+ setFrame({ lines: [...lines], showEnd: true });
16338
+ toBottom();
16339
+ if (!loop) {
16340
+ setDone(true);
16341
+ return;
16342
+ }
16343
+ await wait(4200);
16344
+ } while (alive);
16345
+ }
16346
+ run();
16347
+ return () => {
16348
+ alive = false;
16349
+ timers.forEach(clearTimeout);
16350
+ };
16351
+ }, [steps, typeMs, lineMs, loop, runId]);
16352
+ return /* @__PURE__ */ jsxs89("div", { className: cn("rounded-2xl border border-border overflow-hidden bg-[#080b0f] shadow-2xl", className), children: [
16353
+ /* @__PURE__ */ jsxs89("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-border", children: [
16354
+ /* @__PURE__ */ jsx101("span", { className: "w-3 h-3 rounded-full bg-[#ff5f57]" }),
16355
+ /* @__PURE__ */ jsx101("span", { className: "w-3 h-3 rounded-full bg-[#febc2e]" }),
16356
+ /* @__PURE__ */ jsx101("span", { className: "w-3 h-3 rounded-full bg-[#28c840]" }),
16357
+ /* @__PURE__ */ jsx101("span", { className: "ms-2 font-mono text-xs text-muted-foreground", children: title }),
16358
+ done && !loop && /* @__PURE__ */ jsxs89(
16359
+ "button",
16360
+ {
16361
+ type: "button",
16362
+ onClick: () => setRunId((n) => n + 1),
16363
+ className: "ms-auto inline-flex items-center gap-1.5 rounded-md border border-white/12 bg-white/[0.04] px-2.5 py-1 font-mono text-[11px] text-muted-foreground hover:text-foreground hover:bg-white/[0.08] transition-colors",
16364
+ "aria-label": "Replay the terminal demo",
16365
+ children: [
16366
+ /* @__PURE__ */ jsx101(RotateCcw3, { size: 12 }),
16367
+ " Replay"
16368
+ ]
16369
+ }
16370
+ )
16371
+ ] }),
16372
+ /* @__PURE__ */ jsxs89("div", { ref: scrollRef, className: "p-5 font-mono text-[12.5px] sm:text-[13px] leading-[1.9] overflow-auto", style: { height }, children: [
16373
+ frame.lines,
16374
+ frame.showEnd && endSlot ? /* @__PURE__ */ jsx101("div", { className: "mt-4 pt-4 border-t border-white/10", children: endSlot }) : null
16375
+ ] })
16376
+ ] });
16377
+ }
16378
+ TypingTerminal.displayName = "TypingTerminal";
16379
+
16380
+ // src/components/marketing/MascotMark.tsx
16381
+ import * as React33 from "react";
16382
+ import { jsx as jsx102, jsxs as jsxs90 } from "react/jsx-runtime";
16383
+ var EYES = [
16384
+ { x: 0.405, y: 0.45 },
16385
+ { x: 0.595, y: 0.45 }
16386
+ ];
16387
+ var EYE_W = 0.085;
16388
+ var PUPIL_RATIO = 0.52;
16389
+ var MAX_OFF = (1 - PUPIL_RATIO) / 2 * 100;
16390
+ var KEYFRAMES = `
16391
+ @keyframes tgMascotFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
16392
+ .tg-mascot { will-change: transform; animation: tgMascotFloat 6s ease-in-out infinite; }
16393
+ @media (prefers-reduced-motion: reduce) { .tg-mascot { animation: none !important; } }`;
16394
+ function MascotMark({ src = "/togo-mark.svg", alt = "ToGO", className }) {
16395
+ const ref = React33.useRef(null);
16396
+ const [active, setActive] = React33.useState(false);
16397
+ const [look, setLook] = React33.useState({ dx: 0, dy: 0 });
16398
+ React33.useEffect(() => {
16399
+ if (typeof window === "undefined" || !window.matchMedia) return;
16400
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
16401
+ if (!window.matchMedia("(hover: hover) and (pointer: fine)").matches) return;
16402
+ setActive(true);
16403
+ let raf = 0;
16404
+ const onMove = (e) => {
16405
+ const el = ref.current;
16406
+ if (!el) return;
16407
+ const r = el.getBoundingClientRect();
16408
+ const cx = r.left + r.width / 2;
16409
+ const cy = r.top + r.height * 0.45;
16410
+ const dx = Math.max(-1, Math.min(1, (e.clientX - cx) / (r.width * 0.85)));
16411
+ const dy = Math.max(-1, Math.min(1, (e.clientY - cy) / (r.height * 0.85)));
16412
+ cancelAnimationFrame(raf);
16413
+ raf = requestAnimationFrame(() => setLook({ dx, dy }));
16414
+ };
16415
+ const recenter = () => setLook({ dx: 0, dy: 0 });
16416
+ window.addEventListener("pointermove", onMove, { passive: true });
16417
+ window.addEventListener("pointerleave", recenter);
16418
+ document.addEventListener("mouseleave", recenter);
16419
+ return () => {
16420
+ window.removeEventListener("pointermove", onMove);
16421
+ window.removeEventListener("pointerleave", recenter);
16422
+ document.removeEventListener("mouseleave", recenter);
16423
+ cancelAnimationFrame(raf);
16424
+ };
16425
+ }, []);
16426
+ const tilt = active ? look.dx * 4 : 0;
16427
+ return /* @__PURE__ */ jsxs90("div", { ref, className: cn("tg-mascot", className), style: { position: "relative", display: "inline-block" }, children: [
16428
+ /* @__PURE__ */ jsx102("style", { children: KEYFRAMES }),
16429
+ /* @__PURE__ */ jsxs90(
16430
+ "div",
16431
+ {
16432
+ style: {
16433
+ position: "relative",
16434
+ transform: active ? `rotate(${tilt}deg)` : void 0,
16435
+ transformOrigin: "50% 75%",
16436
+ transition: "transform .25s ease-out"
16437
+ },
16438
+ children: [
16439
+ /* @__PURE__ */ jsx102("img", { src, alt, draggable: false, style: { display: "block", width: "100%", height: "100%" } }),
16440
+ active && EYES.map((eye, i) => /* @__PURE__ */ jsx102(
16441
+ "span",
16442
+ {
16443
+ "aria-hidden": "true",
16444
+ style: {
16445
+ position: "absolute",
16446
+ left: `${eye.x * 100}%`,
16447
+ top: `${eye.y * 100}%`,
16448
+ width: `${EYE_W * 100}%`,
16449
+ aspectRatio: "1",
16450
+ transform: "translate(-50%,-50%)",
16451
+ borderRadius: "9999px",
16452
+ background: "rgba(255,255,255,.94)",
16453
+ boxShadow: "inset 0 2px 4px rgba(8,16,40,.28)"
16454
+ },
16455
+ children: /* @__PURE__ */ jsx102(
16456
+ "span",
16457
+ {
16458
+ style: {
16459
+ position: "absolute",
16460
+ left: `${50 + look.dx * MAX_OFF}%`,
16461
+ top: `${50 + look.dy * MAX_OFF}%`,
16462
+ width: `${PUPIL_RATIO * 100}%`,
16463
+ aspectRatio: "1",
16464
+ transform: "translate(-50%,-50%)",
16465
+ borderRadius: "9999px",
16466
+ background: "#0a1733",
16467
+ boxShadow: "inset 1.5px -1.5px 2px rgba(255,255,255,.35)",
16468
+ transition: "left .12s ease-out, top .12s ease-out"
16469
+ }
16470
+ }
16471
+ )
16472
+ },
16473
+ i
16474
+ ))
16475
+ ]
16476
+ }
16477
+ )
16478
+ ] });
16479
+ }
16480
+ MascotMark.displayName = "MascotMark";
16269
16481
  export {
16270
16482
  Accordion,
16271
16483
  AccordionContent,
@@ -16474,6 +16686,7 @@ export {
16474
16686
  MarkdownRenderer,
16475
16687
  MarkdownTable,
16476
16688
  MarketplaceCard,
16689
+ MascotMark,
16477
16690
  Menubar,
16478
16691
  MenubarCheckboxItem,
16479
16692
  MenubarContent,
@@ -16629,6 +16842,7 @@ export {
16629
16842
  TooltipProvider,
16630
16843
  TooltipTrigger,
16631
16844
  TwoFAForm_default as TwoFAForm,
16845
+ TypingTerminal,
16632
16846
  UnifiedCopilotDock_default as UnifiedCopilotDock,
16633
16847
  ViewToggle,
16634
16848
  Wordmark,