@vercel/geistdocs 1.2.3-canary.48fea3c → 1.2.3-canary.a12a9c6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/assets/icons/icon-arrow-up-right-small.d.ts +8 -0
  2. package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +1 -0
  3. package/dist/assets/icons/icon-arrow-up-right-small.js +4 -0
  4. package/dist/assets/icons/icon-arrow-up-right.d.ts +5 -0
  5. package/dist/assets/icons/icon-arrow-up-right.d.ts.map +1 -0
  6. package/dist/assets/icons/icon-arrow-up-right.js +4 -0
  7. package/dist/assets/icons/icon-check.d.ts +5 -0
  8. package/dist/assets/icons/icon-check.d.ts.map +1 -0
  9. package/dist/assets/icons/icon-check.js +4 -0
  10. package/dist/assets/icons/icon-chevron-down-small.d.ts +8 -0
  11. package/dist/assets/icons/icon-chevron-down-small.d.ts.map +1 -0
  12. package/dist/assets/icons/icon-chevron-down-small.js +7 -0
  13. package/dist/assets/icons/icon-chevron-right.d.ts +5 -0
  14. package/dist/assets/icons/icon-chevron-right.d.ts.map +1 -0
  15. package/dist/assets/icons/icon-chevron-right.js +4 -0
  16. package/dist/assets/icons/icon-copy.d.ts +5 -0
  17. package/dist/assets/icons/icon-copy.d.ts.map +1 -0
  18. package/dist/assets/icons/icon-copy.js +4 -0
  19. package/dist/assets/icons/icon-file-text.d.ts +5 -0
  20. package/dist/assets/icons/icon-file-text.d.ts.map +1 -0
  21. package/dist/assets/icons/icon-file-text.js +4 -0
  22. package/dist/assets/icons/icon-menu-alt.d.ts +5 -0
  23. package/dist/assets/icons/icon-menu-alt.d.ts.map +1 -0
  24. package/dist/assets/icons/icon-menu-alt.js +4 -0
  25. package/dist/assets/icons/icon-slash-forward.d.ts +8 -0
  26. package/dist/assets/icons/icon-slash-forward.d.ts.map +1 -0
  27. package/dist/assets/icons/icon-slash-forward.js +4 -0
  28. package/dist/assets/icons/index.d.ts +10 -0
  29. package/dist/assets/icons/index.d.ts.map +1 -0
  30. package/{template/components/geistcn-fallbacks/geistcn-assets/icons/index.tsx → dist/assets/icons/index.js} +0 -1
  31. package/dist/assets/logos/index.d.ts +13 -0
  32. package/dist/assets/logos/index.d.ts.map +1 -0
  33. package/{template/components/geistcn-fallbacks/geistcn-assets/logos/index.tsx → dist/assets/logos/index.js} +0 -1
  34. package/dist/assets/logos/logo-ai-elements.d.ts +8 -0
  35. package/dist/assets/logos/logo-ai-elements.d.ts.map +1 -0
  36. package/dist/assets/logos/logo-ai-elements.js +8 -0
  37. package/dist/assets/logos/logo-ai-sdk.d.ts +8 -0
  38. package/dist/assets/logos/logo-ai-sdk.d.ts.map +1 -0
  39. package/dist/assets/logos/logo-ai-sdk.js +8 -0
  40. package/dist/assets/logos/logo-chat-sdk.d.ts +8 -0
  41. package/dist/assets/logos/logo-chat-sdk.d.ts.map +1 -0
  42. package/dist/assets/logos/logo-chat-sdk.js +8 -0
  43. package/dist/assets/logos/logo-flags-sdk.d.ts +8 -0
  44. package/dist/assets/logos/logo-flags-sdk.d.ts.map +1 -0
  45. package/dist/assets/logos/logo-flags-sdk.js +8 -0
  46. package/dist/assets/logos/logo-icon-vercel.d.ts +9 -0
  47. package/dist/assets/logos/logo-icon-vercel.d.ts.map +1 -0
  48. package/dist/assets/logos/logo-icon-vercel.js +8 -0
  49. package/dist/assets/logos/logo-streamdown.d.ts +8 -0
  50. package/dist/assets/logos/logo-streamdown.d.ts.map +1 -0
  51. package/dist/assets/logos/logo-streamdown.js +8 -0
  52. package/dist/assets/logos/logo-vercel-oss.d.ts +8 -0
  53. package/dist/assets/logos/logo-vercel-oss.d.ts.map +1 -0
  54. package/dist/assets/logos/logo-vercel-oss.js +7 -0
  55. package/dist/assets/logos/logo-workflow-sdk.d.ts +8 -0
  56. package/dist/assets/logos/logo-workflow-sdk.d.ts.map +1 -0
  57. package/dist/assets/logos/logo-workflow-sdk.js +8 -0
  58. package/dist/cli/index.js +1 -1
  59. package/dist/components/code-block-tabs.js +3 -3
  60. package/dist/components/code-block.js +3 -3
  61. package/dist/components/copy-prompt.js +3 -3
  62. package/dist/controls.js +4 -4
  63. package/dist/internal/chat/conversation.js +1 -1
  64. package/dist/internal/chat/message.js +1 -1
  65. package/dist/internal/chat/prompt-input.js +1 -1
  66. package/dist/internal/chat/shell.js +4 -4
  67. package/dist/internal/chat/sources.js +1 -1
  68. package/dist/internal/page-actions-client.js +5 -5
  69. package/dist/internal/sidebar.js +2 -2
  70. package/dist/internal/ui/button-group.js +2 -2
  71. package/dist/internal/ui/button.d.ts.map +1 -1
  72. package/dist/internal/ui/button.js +7 -7
  73. package/dist/internal/ui/card.js +1 -1
  74. package/dist/internal/ui/drawer.js +1 -1
  75. package/dist/internal/ui/dropdown-menu.js +7 -7
  76. package/dist/internal/ui/input-group.js +2 -2
  77. package/dist/internal/ui/input.js +1 -1
  78. package/dist/internal/ui/kbd.js +1 -1
  79. package/dist/internal/ui/popover.js +1 -1
  80. package/dist/internal/ui/scroll-area.js +2 -2
  81. package/dist/internal/ui/separator.js +1 -1
  82. package/dist/internal/ui/sheet.js +4 -4
  83. package/dist/internal/ui/textarea.js +1 -1
  84. package/dist/internal/ui/tooltip.js +1 -1
  85. package/dist/mdx.d.ts +2 -2
  86. package/dist/mdx.d.ts.map +1 -1
  87. package/dist/mdx.js +7 -1
  88. package/dist/pages/docs.js +1 -1
  89. package/dist/shiki-theme.d.ts +20 -0
  90. package/dist/shiki-theme.d.ts.map +1 -0
  91. package/dist/shiki-theme.js +110 -0
  92. package/package.json +21 -1
  93. package/styles.css +465 -102
  94. package/template/app/[lang]/(home)/components/centered-section.tsx +1 -3
  95. package/template/app/[lang]/(home)/components/hero.tsx +2 -2
  96. package/template/app/[lang]/(home)/components/one-two-section.tsx +1 -3
  97. package/template/app/[lang]/(home)/components/templates.tsx +3 -5
  98. package/template/app/[lang]/(home)/components/text-grid-section.tsx +1 -1
  99. package/template/app/[lang]/(home)/page.tsx +2 -2
  100. package/template/app/styles/geistdocs.css +150 -109
  101. package/template/components/geistdocs/desktop-menu.tsx +1 -1
  102. package/template/components/geistdocs/feedback.tsx +6 -6
  103. package/template/components/geistdocs/footer.tsx +1 -1
  104. package/template/components/geistdocs/mobile-docs-bar.tsx +2 -2
  105. package/template/components/geistdocs/mobile-menu.tsx +1 -1
  106. package/template/components/geistdocs/navbar-logo.tsx +10 -10
  107. package/template/components/geistdocs/search.tsx +1 -1
  108. package/template/components/geistdocs/sidebar.tsx +3 -3
  109. package/template/components/ui/badge.tsx +5 -5
  110. package/template/components/ui/button.tsx +7 -7
  111. package/template/components/ui/card.tsx +2 -2
  112. package/template/components/ui/command-prompt.tsx +2 -2
  113. package/template/components/ui/dialog.tsx +3 -3
  114. package/template/components/ui/input-group.tsx +5 -5
  115. package/template/components/ui/input.tsx +3 -3
  116. package/template/components/ui/navigation-menu.tsx +2 -2
  117. package/template/components/ui/popover.tsx +1 -1
  118. package/template/components/ui/separator.tsx +1 -1
  119. package/template/components/ui/sheet.tsx +4 -4
  120. package/template/components/ui/textarea.tsx +1 -1
  121. package/template/package.json +1 -1
  122. package/template/source.config.ts +117 -0
  123. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-arrow-up-right-small.tsx +0 -35
  124. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-arrow-up-right.tsx +0 -27
  125. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-check.tsx +0 -27
  126. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-chevron-down-small.tsx +0 -30
  127. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-chevron-right.tsx +0 -27
  128. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-copy.tsx +0 -27
  129. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-file-text.tsx +0 -25
  130. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-menu-alt.tsx +0 -27
  131. package/template/components/geistcn-fallbacks/geistcn-assets/icons/icon-slash-forward.tsx +0 -36
  132. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-ai-elements.tsx +0 -29
  133. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-ai-sdk.tsx +0 -38
  134. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-chat-sdk.tsx +0 -42
  135. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-flags-sdk.tsx +0 -42
  136. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-icon-vercel.tsx +0 -31
  137. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-streamdown.tsx +0 -29
  138. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-vercel-oss.tsx +0 -24
  139. package/template/components/geistcn-fallbacks/geistcn-assets/logos/logo-workflow-sdk.tsx +0 -73
  140. package/template/components/geistdocs/callout.tsx +0 -40
  141. package/template/components/geistdocs/code-block-tabs.tsx +0 -61
  142. package/template/components/geistdocs/code-block.tsx +0 -134
  143. package/template/components/geistdocs/copy-page.tsx +0 -27
  144. package/template/components/geistdocs/docs-page.tsx +0 -35
  145. package/template/components/geistdocs/edit-source.tsx +0 -30
  146. package/template/components/geistdocs/icons.tsx +0 -13
  147. package/template/components/geistdocs/installer.tsx +0 -58
  148. package/template/components/geistdocs/mermaid.tsx +0 -68
  149. package/template/components/geistdocs/scroll-top.tsx +0 -21
  150. package/template/components/geistdocs/video.tsx +0 -16
  151. package/template/components/ui/button-group.tsx +0 -83
  152. package/template/components/ui/collapsible.tsx +0 -33
  153. package/template/components/ui/command.tsx +0 -184
  154. package/template/components/ui/drawer.tsx +0 -135
  155. package/template/components/ui/dropdown-menu.tsx +0 -257
  156. package/template/components/ui/hover-card.tsx +0 -44
  157. package/template/components/ui/kbd.tsx +0 -28
  158. package/template/components/ui/scroll-area.tsx +0 -58
  159. package/template/components/ui/select.tsx +0 -187
  160. package/template/components/ui/sonner.tsx +0 -40
  161. package/template/components/ui/spinner.tsx +0 -16
  162. package/template/components/ui/tooltip.tsx +0 -61
@@ -49,10 +49,10 @@ export const CopyPrompt = ({ children, className, projectOnly = false, text, tit
49
49
  ]),
50
50
  { icon: _jsx(CursorLogo, {}), label: "Open in Cursor", platform: "Cursor" },
51
51
  ];
52
- return (_jsx("div", { className: cn("not-prose my-4 mb-10 hidden w-full md:block", className), children: _jsxs("div", { className: "rounded-md border border-gray-400 bg-background-100", children: [_jsx("div", { className: "min-h-12 rounded-t-md border-gray-400 border-b bg-background-200 py-2 pr-2 pl-4", children: _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("div", { className: "flex items-center gap-2 text-gray-900 text-label-13", children: title }), _jsxs("div", { className: "inline-flex shrink-0 overflow-hidden rounded-md border bg-background shadow-xs", children: [_jsxs("button", { className: "inline-flex h-8 items-center gap-1.5 px-3 font-medium text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", onClick: copy, type: "button", children: [_jsxs("span", { className: "relative size-4", children: [_jsx(CopyPromptIcon, { className: cn("absolute inset-0 transition-all duration-200", isCopied ? "scale-75 opacity-0" : "scale-100 opacity-100") }), _jsx(CheckIcon, { className: cn("absolute inset-0 size-4 transition-all duration-200", isCopied ? "scale-100 opacity-100" : "scale-75 opacity-0") })] }), _jsx("span", { children: "Copy" })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx("button", { "aria-label": "Copy prompt actions", className: "inline-flex h-8 w-8 items-center justify-center border-l transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", type: "button", children: _jsx(ChevronDownIcon, { className: "size-4" }) }) }), _jsx(DropdownMenuContent, { align: "end", className: "w-60", children: menuItems.map((item, index) => (_jsxs("div", { children: [index === 1 ? _jsx(DropdownMenuSeparator, {}) : null, _jsxs(DropdownMenuItem, { onClick: () => openPlatform(item.platform), children: [item.icon, _jsx("span", { className: "flex-1", children: item.label }), _jsx(ExternalLinkIcon, { className: "size-4" })] })] }, item.platform))) })] })] })] }) }), _jsxs("div", { className: "relative isolate rounded-b-md bg-background-100 p-4 pb-5", children: [_jsxs("div", { className: "relative overflow-hidden", children: [_jsx("div", { className: cn("break-words text-gray-900 text-sm leading-relaxed [&_a]:font-normal [&_a]:text-primary [&_a]:no-underline hover:[&_a]:underline [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]", isExpanded ? "" : "line-clamp-2", isExpanded ? "whitespace-pre-wrap" : ""), children: children ?? text }), isExpanded ? null : (_jsx("div", { className: "pointer-events-none absolute inset-0 bg-linear-to-b from-transparent via-transparent to-background-100" }))] }), _jsx("div", { className: "absolute left-1/2 -translate-x-1/2 translate-y-1/5", children: _jsxs(Button, { className: "mt-0 h-7 rounded-full border bg-background px-2 text-muted-foreground text-xs shadow-sm hover:text-foreground", onClick: () => setIsExpanded((current) => !current), size: "sm", type: "button", variant: "secondary", children: [isExpanded ? (_jsx(ChevronUpIcon, { className: "size-3.5" })) : (_jsx(ChevronDownIcon, { className: "size-3.5" })), isExpanded ? "Show less" : "Show more"] }) })] })] }) }));
52
+ return (_jsx("div", { className: cn("not-prose my-4 mb-10 hidden w-full md:block", className), children: _jsxs("div", { className: "rounded-md border border-gray-400 bg-background-100", children: [_jsx("div", { className: "min-h-12 rounded-t-md border-gray-400 border-b bg-background-200 py-2 pr-2 pl-4", children: _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("div", { className: "flex items-center gap-2 text-gray-900 text-label-13", children: title }), _jsxs("div", { className: "inline-flex shrink-0 overflow-hidden rounded-md border bg-background-100 shadow-xs", children: [_jsxs("button", { className: "inline-flex h-8 items-center gap-1.5 px-3 font-medium text-sm transition-colors hover:bg-gray-100 hover:text-gray-1000 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-gray-600/50", onClick: copy, type: "button", children: [_jsxs("span", { className: "relative size-4", children: [_jsx(CopyPromptIcon, { className: cn("absolute inset-0 transition-all duration-200", isCopied ? "scale-75 opacity-0" : "scale-100 opacity-100") }), _jsx(CheckIcon, { className: cn("absolute inset-0 size-4 transition-all duration-200", isCopied ? "scale-100 opacity-100" : "scale-75 opacity-0") })] }), _jsx("span", { children: "Copy" })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx("button", { "aria-label": "Copy prompt actions", className: "inline-flex h-8 w-8 items-center justify-center border-l transition-colors hover:bg-gray-100 hover:text-gray-1000 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-gray-600/50", type: "button", children: _jsx(ChevronDownIcon, { className: "size-4" }) }) }), _jsx(DropdownMenuContent, { align: "end", className: "w-60", children: menuItems.map((item, index) => (_jsxs("div", { children: [index === 1 ? _jsx(DropdownMenuSeparator, {}) : null, _jsxs(DropdownMenuItem, { onClick: () => openPlatform(item.platform), children: [item.icon, _jsx("span", { className: "flex-1", children: item.label }), _jsx(ExternalLinkIcon, { className: "size-4" })] })] }, item.platform))) })] })] })] }) }), _jsxs("div", { className: "relative isolate rounded-b-md bg-background-100 p-4 pb-5", children: [_jsxs("div", { className: "relative overflow-hidden", children: [_jsx("div", { className: cn("break-words text-gray-900 text-sm leading-relaxed [&_a]:font-normal [&_a]:text-gray-1000 [&_a]:no-underline hover:[&_a]:underline [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]", isExpanded ? "" : "line-clamp-2", isExpanded ? "whitespace-pre-wrap" : ""), children: children ?? text }), isExpanded ? null : (_jsx("div", { className: "pointer-events-none absolute inset-0 bg-linear-to-b from-transparent via-transparent to-background-100" }))] }), _jsx("div", { className: "absolute left-1/2 -translate-x-1/2 translate-y-1/5", children: _jsxs(Button, { className: "mt-0 h-7 rounded-full bg-background-100 px-2 text-gray-800 text-xs shadow-(--ds-shadow-border-medium) hover:text-gray-1000", onClick: () => setIsExpanded((current) => !current), size: "sm", type: "button", variant: "secondary", children: [isExpanded ? (_jsx(ChevronUpIcon, { className: "size-3.5" })) : (_jsx(ChevronDownIcon, { className: "size-3.5" })), isExpanded ? "Show less" : "Show more"] }) })] })] }) }));
53
53
  };
54
54
  const CopyPromptIcon = ({ className }) => (_jsxs("svg", { "aria-hidden": true, className: className, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: [_jsx("title", { children: "Copy prompt" }), _jsx("path", { d: "M6.75 14a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.5-3.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m7.5 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5M8.25.5C9.22.5 10 1.28 10 2.25V3H8.5v-.75A.25.25 0 0 0 8.25 2h-5.5a.25.25 0 0 0-.25.25v7.5c0 .14.11.25.25.25H4.5v1.5H2.75C1.78 11.5 1 10.72 1 9.75v-7.5C1 1.28 1.78.5 2.75.5zm-1.5 7.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m7.5 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5M6.75 4.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.75 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5", fill: "currentColor" })] }));
55
- const V0Logo = () => _jsx("span", { className: "font-semibold text-xs", children: "v0" });
56
- const OpenAILogo = () => _jsx("span", { className: "font-semibold text-xs", children: "AI" });
55
+ const V0Logo = () => (_jsxs("svg", { "aria-hidden": true, className: "size-4", fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "v0" }), _jsx("path", { d: "M6.1 9.46V5.52h1.52v5.03c0 .59-.48 1.07-1.07 1.07-.28 0-.56-.11-.76-.31L0 5.52h2.15zM16 10.1h-1.52V6.6l-3.5 3.5h3.5v1.52h-3.96a2.14 2.14 0 0 1-2.14-2.14V5.52H9.9v3.5l3.5-3.5H9.9V4h3.96C15.04 4 16 4.96 16 6.14z", fill: "currentColor" })] }));
56
+ const OpenAILogo = () => (_jsxs("svg", { "aria-hidden": true, className: "size-4", fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "OpenAI" }), _jsx("path", { d: "M6.14 5.84v-1.5q-.01-.2.16-.29l3.02-1.74q.63-.35 1.42-.35c1.9 0 3.1 1.47 3.1 3.04l-.01.37-3.14-1.84a.5.5 0 0 0-.57 0zm7.07 5.87v-3.6q0-.32-.29-.5l-3.98-2.3 1.3-.75q.16-.09.32 0L13.6 6.3c.87.51 1.46 1.59 1.46 2.64 0 1.2-.71 2.31-1.84 2.77m-8-3.17-1.3-.76q-.17-.1-.17-.29V4c0-1.7 1.3-2.98 3.06-2.98q1.02.01 1.81.62L5.5 3.44a.5.5 0 0 0-.29.5zM8 10.16 6.14 9.1V6.89L8 5.84 9.86 6.9v2.22zm1.2 4.82q-1.02-.01-1.81-.62l3.12-1.8a.5.5 0 0 0 .29-.5v-4.6l1.31.76q.17.1.16.29V12c0 1.7-1.31 2.98-3.07 2.98m-3.76-3.54L2.4 9.7A3.1 3.1 0 0 1 .95 7.06c0-1.22.73-2.31 1.86-2.77V7.9q0 .34.28.5l3.97 2.3-1.3.74a.3.3 0 0 1-.32 0m-.18 2.6c-1.79 0-3.1-1.35-3.1-3.01q0-.19.03-.38l3.12 1.8q.3.18.57 0l3.98-2.3v1.51q.01.2-.16.29l-3.02 1.74q-.63.35-1.42.35m3.94 1.89a3.96 3.96 0 0 0 3.88-3.17 3.97 3.97 0 0 0 1.59-6.79q.12-.5.12-1a3.96 3.96 0 0 0-5.21-3.76 3.97 3.97 0 0 0-6.66 2.03 3.97 3.97 0 0 0-1.59 6.79q-.12.5-.12 1a3.96 3.96 0 0 0 5.21 3.76c.72.7 1.7 1.14 2.78 1.14", fill: "currentColor" })] }));
57
57
  const ClaudeLogo = () => (_jsxs("svg", { "aria-hidden": true, className: "size-4", fill: "none", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "Claude" }), _jsx("path", { clipRule: "evenodd", d: "M2.3545 7.9775L4.7145 6.654L4.7545 6.539L4.7145 6.475H4.6L4.205 6.451L2.856 6.4145L1.6865 6.366L0.5535 6.305L0.268 6.2445L0 5.892L0.0275 5.716L0.2675 5.5555L0.6105 5.5855L1.3705 5.637L2.5095 5.716L3.3355 5.7645L4.56 5.892H4.7545L4.782 5.8135L4.715 5.7645L4.6635 5.716L3.4845 4.918L2.2085 4.074L1.5405 3.588L1.1785 3.3425L0.9965 3.1115L0.9175 2.6075L1.2455 2.2465L1.686 2.2765L1.7985 2.307L2.245 2.65L3.199 3.388L4.4445 4.3045L4.627 4.4565L4.6995 4.405L4.709 4.3685L4.627 4.2315L3.9495 3.0085L3.2265 1.7635L2.9045 1.2475L2.8195 0.938C2.78711 0.819128 2.76965 0.696687 2.7675 0.5735L3.1415 0.067L3.348 0L3.846 0.067L4.056 0.249L4.366 0.956L4.867 2.0705L5.6445 3.5855L5.8725 4.0345L5.994 4.4505L6.0395 4.578H6.1185V4.505L6.1825 3.652L6.301 2.6045L6.416 1.257L6.456 0.877L6.644 0.422L7.0175 0.176L7.3095 0.316L7.5495 0.6585L7.516 0.8805L7.373 1.806L7.0935 3.2575L6.9115 4.2285H7.0175L7.139 4.1075L7.6315 3.4545L8.4575 2.4225L8.8225 2.0125L9.2475 1.5605L9.521 1.345H10.0375L10.4175 1.9095L10.2475 2.4925L9.7155 3.166L9.275 3.737L8.643 4.587L8.248 5.267L8.2845 5.322L8.3785 5.312L9.8065 5.009L10.578 4.869L11.4985 4.7115L11.915 4.9055L11.9605 5.103L11.7965 5.5065L10.812 5.7495L9.6575 5.9805L7.938 6.387L7.917 6.402L7.9415 6.4325L8.716 6.5055L9.047 6.5235H9.858L11.368 6.636L11.763 6.897L12 7.216L11.9605 7.4585L11.353 7.7685L10.533 7.574L8.6185 7.119L7.9625 6.9545H7.8715V7.0095L8.418 7.5435L9.421 8.4485L10.6755 9.6135L10.739 9.9025L10.578 10.13L10.408 10.1055L9.3055 9.277L8.88 8.9035L7.917 8.0935H7.853V8.1785L8.075 8.503L9.2475 10.2635L9.3085 10.8035L9.2235 10.98L8.9195 11.0865L8.5855 11.0255L7.8985 10.063L7.191 8.9795L6.6195 8.008L6.5495 8.048L6.2125 11.675L6.0545 11.86L5.69 12L5.3865 11.7695L5.2255 11.396L5.3865 10.658L5.581 9.696L5.7385 8.931L5.8815 7.981L5.9665 7.665L5.9605 7.644L5.8905 7.653L5.1735 8.6365L4.0835 10.109L3.2205 11.0315L3.0135 11.1135L2.655 10.9285L2.6885 10.5975L2.889 10.303L4.083 8.785L4.803 7.844L5.268 7.301L5.265 7.222H5.2375L2.066 9.28L1.501 9.353L1.2575 9.1105L1.288 8.737L1.4105 8.6095L2.3545 7.9775Z", fill: "currentColor", fillRule: "evenodd" })] }));
58
58
  const CursorLogo = () => (_jsxs("svg", { "aria-hidden": true, className: "size-4", fill: "none", viewBox: "0 0 21 22", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "Cursor" }), _jsx("path", { d: "M19.162 5.452 10.698.565a.88.88 0 0 0-.879 0L1.356 5.452a.74.74 0 0 0-.37.64v9.853a.74.74 0 0 0 .37.64l8.464 4.887a.879.879 0 0 0 .879 0l8.464-4.886a.74.74 0 0 0 .37-.64V6.091a.74.74 0 0 0-.37-.64Zm-.531 1.035L10.46 20.639c-.055.095-.201.056-.201-.055v-9.266a.52.52 0 0 0-.26-.45L1.975 6.237c-.096-.056-.057-.202.054-.202h16.34c.233 0 .378.252.262.453Z", fill: "currentColor" })] }));
package/dist/controls.js CHANGED
@@ -12,10 +12,10 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigge
12
12
  import { Kbd } from "./internal/ui/kbd";
13
13
  export const SearchButton = ({ className, onClick }) => {
14
14
  const { setOpenSearch } = useSearchContext();
15
- return (_jsxs(Button, { className: cn("justify-between gap-8 pr-1.5 font-normal text-muted-foreground shadow-none", className), onClick: () => {
15
+ return (_jsxs(Button, { className: cn("justify-between gap-8 pr-1.5 font-normal text-gray-800 shadow-none", className), onClick: () => {
16
16
  setOpenSearch(true);
17
17
  onClick?.();
18
- }, size: "sm", type: "button", variant: "outline", children: [_jsx("span", { children: "Search..." }), _jsx(Kbd, { className: "border bg-background font-medium", children: "\u2318K" })] }));
18
+ }, size: "sm", type: "button", variant: "outline", children: [_jsx("span", { children: "Search..." }), _jsx(Kbd, { className: "border bg-background-100 font-medium", children: "\u2318K" })] }));
19
19
  };
20
20
  export const ThemeToggle = () => {
21
21
  const { resolvedTheme, setTheme } = useTheme();
@@ -34,7 +34,7 @@ export const LanguageSelector = () => {
34
34
  if (!locales) {
35
35
  return null;
36
36
  }
37
- return (_jsxs(DropdownMenu, { children: [_jsxs(DropdownMenuTrigger, { "aria-label": "Select language", className: "flex items-center justify-center rounded-md p-2 hover:bg-muted", children: [_jsx(LanguagesIcon, { className: "size-4.5" }), _jsx("span", { className: "sr-only", children: "Select language" })] }), _jsx(DropdownMenuContent, { align: "end", children: locales.map((lang) => (_jsxs(DropdownMenuItem, { className: "flex cursor-pointer items-center justify-between", disabled: locale === lang.locale, onClick: () => onChange?.(lang.locale), children: [lang.name, locale === lang.locale && _jsx(CheckIcon, { className: "size-4" })] }, lang.locale))) })] }));
37
+ return (_jsxs(DropdownMenu, { children: [_jsxs(DropdownMenuTrigger, { "aria-label": "Select language", className: "flex items-center justify-center rounded-md p-2 hover:bg-gray-100", children: [_jsx(LanguagesIcon, { className: "size-4.5" }), _jsx("span", { className: "sr-only", children: "Select language" })] }), _jsx(DropdownMenuContent, { align: "end", children: locales.map((lang) => (_jsxs(DropdownMenuItem, { className: "flex cursor-pointer items-center justify-between", disabled: locale === lang.locale, onClick: () => onChange?.(lang.locale), children: [lang.name, locale === lang.locale && _jsx(CheckIcon, { className: "size-4" })] }, lang.locale))) })] }));
38
38
  };
39
39
  export const AskAIButton = ({ children, className, prompt, size = "sm", variant = "outline", ...props }) => {
40
40
  const { enabled, isOpen, setIsOpen, setPrompt } = useGeistdocsChat();
@@ -48,5 +48,5 @@ export const AskAIButton = ({ children, className, prompt, size = "sm", variant
48
48
  return;
49
49
  }
50
50
  setIsOpen(!isOpen);
51
- }, size: size, type: "button", variant: variant, ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(MessagesSquareIcon, { className: "size-3.5 text-muted-foreground" }), _jsx("span", { children: "Ask AI" })] })) }));
51
+ }, size: size, type: "button", variant: variant, ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(MessagesSquareIcon, { className: "size-3.5 text-gray-800" }), _jsx("span", { children: "Ask AI" })] })) }));
52
52
  };
@@ -12,5 +12,5 @@ export const ConversationScrollButton = ({ className, ...props }) => {
12
12
  const handleScrollToBottom = useCallback(() => {
13
13
  scrollToBottom();
14
14
  }, [scrollToBottom]);
15
- return isAtBottom ? null : (_jsx(Button, { className: cn("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full border-none bg-foreground text-background hover:bg-foreground/80 hover:text-background", className), onClick: handleScrollToBottom, size: "icon", type: "button", variant: "outline", ...props, children: _jsx(ArrowDownIcon, { className: "size-4" }) }));
15
+ return isAtBottom ? null : (_jsx(Button, { className: cn("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full border-none bg-gray-1000 text-background-100 hover:bg-gray-1000/80 hover:text-background-100", className), onClick: handleScrollToBottom, size: "icon", type: "button", variant: "outline", ...props, children: _jsx(ArrowDownIcon, { className: "size-4" }) }));
16
16
  };
@@ -6,6 +6,6 @@ import { memo } from "react";
6
6
  import { Streamdown } from "streamdown";
7
7
  import { cn } from "../cn";
8
8
  export const Message = ({ className, from, ...props }) => (_jsx("div", { className: cn("group flex w-full max-w-[95%] flex-col gap-2", from === "user" ? "is-user ml-auto justify-end" : "is-assistant", className), ...props }));
9
- export const MessageContent = ({ children, className, ...props }) => (_jsx("div", { className: cn("is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm", "group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground", "group-[.is-assistant]:text-foreground", className), ...props, children: children }));
9
+ export const MessageContent = ({ children, className, ...props }) => (_jsx("div", { className: cn("is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm", "group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-gray-100 group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-gray-1000", "group-[.is-assistant]:text-gray-1000", className), ...props, children: children }));
10
10
  export const MessageResponse = memo(({ className, ...props }) => (_jsx(Streamdown, { className: cn("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", className), plugins: { code, cjk }, ...props })), (prevProps, nextProps) => prevProps.children === nextProps.children);
11
11
  MessageResponse.displayName = "MessageResponse";
@@ -30,7 +30,7 @@ export const ChatPromptInput = ({ onChange, onStop, onSubmit, status, textareaRe
30
30
  else if (status === "error") {
31
31
  icon = _jsx(XIcon, { className: "size-4" });
32
32
  }
33
- return (_jsx("form", { onSubmit: onSubmit, children: _jsxs(InputGroup, { children: [_jsx(InputGroupTextarea, { className: cn("field-sizing-content max-h-48 min-h-16"), maxLength: 1000, name: "message", onChange: (event) => onChange(event.currentTarget.value), onCompositionEnd: () => setIsComposing(false), onCompositionStart: () => setIsComposing(true), onKeyDown: handleKeyDown, placeholder: "What would you like to know?", ref: textareaRef, value: value }), _jsxs(InputGroupAddon, { align: "block-end", className: "justify-between gap-1", children: [_jsxs("p", { className: "text-muted-foreground text-xs", children: [value.length, " / 1000"] }), _jsx(InputGroupButton, { "aria-label": isGenerating ? "Stop" : "Submit", onClick: isGenerating && onStop
33
+ return (_jsx("form", { onSubmit: onSubmit, children: _jsxs(InputGroup, { children: [_jsx(InputGroupTextarea, { className: cn("field-sizing-content max-h-48 min-h-16"), maxLength: 1000, name: "message", onChange: (event) => onChange(event.currentTarget.value), onCompositionEnd: () => setIsComposing(false), onCompositionStart: () => setIsComposing(true), onKeyDown: handleKeyDown, placeholder: "What would you like to know?", ref: textareaRef, value: value }), _jsxs(InputGroupAddon, { align: "block-end", className: "justify-between gap-1", children: [_jsxs("p", { className: "text-gray-800 text-xs", children: [value.length, " / 1000"] }), _jsx(InputGroupButton, { "aria-label": isGenerating ? "Stop" : "Submit", onClick: isGenerating && onStop
34
34
  ? (event) => {
35
35
  event.preventDefault();
36
36
  onStop();
@@ -160,11 +160,11 @@ const GeistdocsChatInner = ({ isOpen }) => {
160
160
  }
161
161
  };
162
162
  if (isLoading) {
163
- return (_jsx("div", { className: "flex size-full w-full flex-col items-center justify-center overflow-hidden whitespace-nowrap rounded-xl xl:max-w-md xl:border xl:bg-background", children: _jsx(Spinner, {}) }));
163
+ return (_jsx("div", { className: "flex size-full w-full flex-col items-center justify-center overflow-hidden whitespace-nowrap rounded-xl xl:max-w-md xl:border xl:bg-background-100", children: _jsx(Spinner, {}) }));
164
164
  }
165
- return (_jsxs("div", { className: "flex size-full w-full flex-col overflow-hidden whitespace-nowrap bg-background", children: [_jsxs("div", { className: "flex items-center justify-between px-4 py-2.5", children: [_jsx("h2", { className: "font-semibold text-sm", children: "Chat" }), _jsx("div", { className: "flex items-center gap-3", children: _jsxs(ButtonGroup, { children: [_jsx(CopyChat, { messages: messages }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { disabled: messages.length === 0, onClick: handleClearChat, size: "icon-sm", variant: "ghost", children: _jsx(Trash, { className: "size-3.5" }) }) }), _jsx(TooltipContent, { children: "Clear chat" })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { onClick: () => setIsOpen(false), size: "icon-sm", variant: "ghost", children: _jsx(ChevronRightIcon, { className: "size-3.5" }) }) }), _jsx(TooltipContent, { children: "Close chat" })] })] }) })] }), _jsxs(Conversation, { children: [_jsxs(ConversationContent, { children: [messages.map((message) => (_jsxs(Message, { className: "max-w-[90%]", from: message.role, children: [_jsx(MessageMetadata, { inProgress: status === "submitted" || status === "streaming", parts: message.parts }), message.parts
165
+ return (_jsxs("div", { className: "flex size-full w-full flex-col overflow-hidden whitespace-nowrap bg-background-100", children: [_jsxs("div", { className: "flex items-center justify-between px-4 py-2.5", children: [_jsx("h2", { className: "font-semibold text-sm", children: "Chat" }), _jsx("div", { className: "flex items-center gap-3", children: _jsxs(ButtonGroup, { children: [_jsx(CopyChat, { messages: messages }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { disabled: messages.length === 0, onClick: handleClearChat, size: "icon-sm", variant: "ghost", children: _jsx(Trash, { className: "size-3.5" }) }) }), _jsx(TooltipContent, { children: "Clear chat" })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { onClick: () => setIsOpen(false), size: "icon-sm", variant: "ghost", children: _jsx(ChevronRightIcon, { className: "size-3.5" }) }) }), _jsx(TooltipContent, { children: "Close chat" })] })] }) })] }), _jsxs(Conversation, { children: [_jsxs(ConversationContent, { children: [messages.map((message) => (_jsxs(Message, { className: "max-w-[90%]", from: message.role, children: [_jsx(MessageMetadata, { inProgress: status === "submitted" || status === "streaming", parts: message.parts }), message.parts
166
166
  .filter((part) => part.type === "text")
167
- .map((part) => (_jsx(MessageContent, { children: _jsx(MessageResponse, { className: "text-wrap", children: part.text }) }, `${message.id}-${part.type}-${part.text}`)))] }, message.id))), status === "submitted" ? (_jsx("div", { className: "size-12 text-muted-foreground text-sm", children: _jsx(Spinner, {}) })) : null] }), _jsx(ConversationScrollButton, {})] }), _jsxs("div", { className: "relative grid w-auto shrink-0 gap-4 p-4", children: [messages.length ? null : (_jsxs(_Fragment, { children: [_jsx(Suggestions, { className: "flex-col items-start gap-px", children: suggestions.map((text) => (_jsx(Suggestion, { className: "rounded-none p-0", onClick: handleSuggestionClick, suggestion: text, variant: "link" }, text))) }), _jsxs("p", { className: "text-muted-foreground text-sm", children: ["Tip: You can open and close chat with", " ", _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "border bg-transparent", children: "\u2318" }), _jsx(Kbd, { className: "border bg-transparent", children: "I" })] })] })] })), _jsx(ChatPromptInput, { onChange: setPrompt, onStop: stop, onSubmit: (event) => {
167
+ .map((part) => (_jsx(MessageContent, { children: _jsx(MessageResponse, { className: "text-wrap", children: part.text }) }, `${message.id}-${part.type}-${part.text}`)))] }, message.id))), status === "submitted" ? (_jsx("div", { className: "size-12 text-gray-800 text-sm", children: _jsx(Spinner, {}) })) : null] }), _jsx(ConversationScrollButton, {})] }), _jsxs("div", { className: "relative grid w-auto shrink-0 gap-4 p-4", children: [messages.length ? null : (_jsxs(_Fragment, { children: [_jsx(Suggestions, { className: "flex-col items-start gap-px", children: suggestions.map((text) => (_jsx(Suggestion, { className: "rounded-none p-0", onClick: handleSuggestionClick, suggestion: text, variant: "link" }, text))) }), _jsxs("p", { className: "text-gray-800 text-sm", children: ["Tip: You can open and close chat with", " ", _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "border bg-transparent", children: "\u2318" }), _jsx(Kbd, { className: "border bg-transparent", children: "I" })] })] })] })), _jsx(ChatPromptInput, { onChange: setPrompt, onStop: stop, onSubmit: (event) => {
168
168
  event.preventDefault();
169
169
  handleSubmit().catch((error) => {
170
170
  console.error("Failed to submit chat message:", error);
@@ -190,5 +190,5 @@ export const GeistdocsChatShell = () => {
190
190
  if (!enabled) {
191
191
  return null;
192
192
  }
193
- return (_jsxs(_Fragment, { children: [_jsx(Portal.Root, { className: "hidden md:block", children: _jsx("div", { className: cn("fixed inset-y-0 right-0 z-50 flex h-full w-3/4 max-w-sm flex-col gap-4 border-l bg-background transition-all", "translate-x-full data-[state=open]:translate-x-0"), "data-state": isOpen ? "open" : "closed", children: _jsx(GeistdocsChatInner, { isOpen: isOpen }) }) }), _jsx("div", { className: "md:hidden", children: _jsx(Drawer, { onOpenChange: isMobile ? setIsOpen : undefined, open: isMobile ? isOpen : false, children: _jsx(DrawerContent, { className: "h-[80dvh]", children: _jsx(GeistdocsChatInner, { isOpen: isOpen }) }) }) })] }));
193
+ return (_jsxs(_Fragment, { children: [_jsx(Portal.Root, { className: "hidden md:block", children: _jsx("div", { className: cn("fixed inset-y-0 right-0 z-50 flex h-full w-3/4 max-w-sm flex-col gap-4 border-l bg-background-100 transition-all", "translate-x-full data-[state=open]:translate-x-0"), "data-state": isOpen ? "open" : "closed", children: _jsx(GeistdocsChatInner, { isOpen: isOpen }) }) }), _jsx("div", { className: "md:hidden", children: _jsx(Drawer, { onOpenChange: isMobile ? setIsOpen : undefined, open: isMobile ? isOpen : false, children: _jsx(DrawerContent, { className: "h-[80dvh]", children: _jsx(GeistdocsChatInner, { isOpen: isOpen }) }) }) })] }));
194
194
  };
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
3
3
  import { BookIcon, ChevronDownIcon } from "lucide-react";
4
4
  import { cn } from "../cn";
5
5
  import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "../ui/collapsible";
6
- export const Sources = ({ className, ...props }) => (_jsx(Collapsible, { className: cn("not-prose mb-4 text-primary text-xs", className), ...props }));
6
+ export const Sources = ({ className, ...props }) => (_jsx(Collapsible, { className: cn("not-prose mb-4 text-gray-1000 text-xs", className), ...props }));
7
7
  export const SourcesTrigger = ({ className, count, children, ...props }) => (_jsx(CollapsibleTrigger, { className: cn("flex items-center gap-2", className), ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsxs("p", { className: "font-medium", children: ["Used ", count, " sources"] }), _jsx(ChevronDownIcon, { className: "h-4 w-4" })] })) }));
8
8
  export const SourcesContent = ({ className, ...props }) => (_jsx(CollapsibleContent, { className: cn("mt-3 flex w-fit flex-col gap-2", "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in", className), ...props }));
9
9
  export const Source = ({ href, title, children, ...props }) => (_jsx("a", { className: "flex items-center gap-2", href: href, rel: "noreferrer", target: "_blank", ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(BookIcon, { className: "h-4 w-4" }), _jsx("span", { className: "block font-medium", children: title })] })) }));
@@ -11,7 +11,7 @@ import { Button } from "./ui/button";
11
11
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "./ui/dropdown-menu";
12
12
  import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";
13
13
  import { Textarea } from "./ui/textarea";
14
- const actionClassName = "group flex min-h-7 w-full min-w-0 items-center gap-2 rounded-md text-left text-muted-foreground text-sm leading-5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background [&_svg]:size-3.5 [&_svg]:shrink-0 [&_span]:min-w-0 [&_span]:truncate";
14
+ const actionClassName = "group flex min-h-7 w-full min-w-0 items-center gap-2 rounded-md text-left text-gray-800 text-sm leading-5 transition-colors hover:text-gray-1000 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-100 [&_svg]:size-3.5 [&_svg]:shrink-0 [&_span]:min-w-0 [&_span]:truncate";
15
15
  const feedbackEmotions = [
16
16
  { name: "cry", emoji: "😭" },
17
17
  { name: "sad", emoji: "😕" },
@@ -128,13 +128,13 @@ const FeedbackAction = ({ siteId }) => {
128
128
  });
129
129
  });
130
130
  };
131
- return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { className: actionClassName, type: "button", children: [_jsx(ThumbsUpIcon, { className: "size-3.5" }), _jsx("span", { children: "Give feedback" })] }) }), _jsx(PopoverContent, { className: "overflow-hidden p-0", children: _jsx("div", { className: "overflow-visible", children: submitted ? (_jsx("div", { className: "flex flex-col items-center gap-3 rounded-xl bg-sidebar px-3 py-6 text-center text-sm", children: _jsx("p", { children: "Thank you for your feedback!" }) })) : (_jsxs("form", { className: "flex flex-col", onSubmit: submit, children: [_jsx("div", { className: "p-2", children: _jsx(Textarea, { autoFocus: true, className: "max-h-48 min-h-24 shadow-none", onChange: (event) => setMessage(event.target.value), onKeyDown: (event) => {
131
+ return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { className: actionClassName, type: "button", children: [_jsx(ThumbsUpIcon, { className: "size-3.5" }), _jsx("span", { children: "Give feedback" })] }) }), _jsx(PopoverContent, { className: "overflow-hidden p-0", children: _jsx("div", { className: "overflow-visible", children: submitted ? (_jsx("div", { className: "flex flex-col items-center gap-3 rounded-xl bg-background-200 px-3 py-6 text-center text-sm", children: _jsx("p", { children: "Thank you for your feedback!" }) })) : (_jsxs("form", { className: "flex flex-col", onSubmit: submit, children: [_jsx("div", { className: "p-2", children: _jsx(Textarea, { autoFocus: true, className: "max-h-48 min-h-24 shadow-none", onChange: (event) => setMessage(event.target.value), onKeyDown: (event) => {
132
132
  if (!event.shiftKey && event.key === "Enter") {
133
133
  event.currentTarget.form?.requestSubmit();
134
134
  }
135
- }, placeholder: "Leave your feedback...", required: true, value: message }) }), _jsxs("div", { className: "flex items-center justify-end gap-1 px-2 text-muted-foreground", children: [_jsx(SiMarkdown, { className: "inline size-3" }), _jsx("p", { className: "text-xs", children: " supported" })] }), _jsxs("div", { className: "mt-2 flex items-center justify-between border-t bg-sidebar p-2", children: [_jsx("div", { className: "flex items-center gap-px", children: feedbackEmotions.map((entry) => (_jsxs(Button, { className: emotion === entry.name
136
- ? "bg-accent text-foreground"
137
- : "text-muted-foreground hover:text-foreground", onClick: () => setEmotion(entry.name), size: "sm", type: "button", variant: "ghost", children: [entry.emoji, _jsx("span", { className: "sr-only", children: entry.name })] }, entry.name))) }), _jsx(Button, { disabled: isPending || !emotion || !message, size: "sm", type: "submit", variant: "default", children: "Send" })] })] })) }) })] }));
135
+ }, placeholder: "Leave your feedback...", required: true, value: message }) }), _jsxs("div", { className: "flex items-center justify-end gap-1 px-2 text-gray-800", children: [_jsx(SiMarkdown, { className: "inline size-3" }), _jsx("p", { className: "text-xs", children: " supported" })] }), _jsxs("div", { className: "mt-2 flex items-center justify-between border-t bg-background-200 p-2", children: [_jsx("div", { className: "flex items-center gap-px", children: feedbackEmotions.map((entry) => (_jsxs(Button, { className: emotion === entry.name
136
+ ? "bg-gray-100 text-gray-1000"
137
+ : "text-gray-800 hover:text-gray-1000", onClick: () => setEmotion(entry.name), size: "sm", type: "button", variant: "ghost", children: [entry.emoji, _jsx("span", { className: "sr-only", children: entry.name })] }, entry.name))) }), _jsx(Button, { disabled: isPending || !emotion || !message, size: "sm", type: "submit", variant: "default", children: "Send" })] })] })) }) })] }));
138
138
  };
139
139
  export const GeistdocsPageActions = ({ config, extraActions, page, }) => {
140
140
  const actions = [];
@@ -32,7 +32,7 @@ export const GeistdocsSidebar = ({ top }) => {
32
32
  export const GeistdocsSidebarFolder = ({ children, item, }) => {
33
33
  const path = useTreePath();
34
34
  const defaultOpen = item.defaultOpen ?? path.includes(item);
35
- return (_jsxs(SidebarFolder, { defaultOpen: defaultOpen, children: [item.index ? (_jsxs(SidebarFolderLink, { className: "flex items-center gap-2 text-pretty py-1.5 text-muted-foreground text-sm transition-colors hover:text-foreground data-[active=true]:text-foreground [&_svg]:size-3.5", external: item.index.external, href: item.index.url, children: [item.icon, item.name] })) : (_jsxs(SidebarFolderTrigger, { className: "flex items-center gap-2 text-pretty py-1.5 text-muted-foreground text-sm transition-colors hover:text-foreground [&_svg]:size-3.5", children: [item.icon, item.name] })), _jsx(SidebarFolderContent, { className: "ml-2", children: children })] }));
35
+ return (_jsxs(SidebarFolder, { defaultOpen: defaultOpen, children: [item.index ? (_jsxs(SidebarFolderLink, { className: "flex items-center gap-2 text-pretty py-1.5 text-gray-800 text-sm transition-colors hover:text-gray-1000 data-[active=true]:text-gray-1000 [&_svg]:size-3.5", external: item.index.external, href: item.index.url, children: [item.icon, item.name] })) : (_jsxs(SidebarFolderTrigger, { className: "flex items-center gap-2 text-pretty py-1.5 text-gray-800 text-sm transition-colors hover:text-gray-1000 [&_svg]:size-3.5", children: [item.icon, item.name] })), _jsx(SidebarFolderContent, { className: "ml-2", children: children })] }));
36
36
  };
37
- export const GeistdocsSidebarItem = ({ item, }) => (_jsx(SidebarItem, { className: "block w-full truncate text-pretty py-1.5 text-muted-foreground text-sm transition-colors hover:text-foreground data-[active=true]:text-foreground", external: item.external, href: item.url, icon: item.icon, children: item.name }));
37
+ export const GeistdocsSidebarItem = ({ item, }) => (_jsx(SidebarItem, { className: "block w-full truncate text-pretty py-1.5 text-gray-800 text-sm transition-colors hover:text-gray-1000 data-[active=true]:text-gray-1000", external: item.external, href: item.url, icon: item.icon, children: item.name }));
38
38
  export const GeistdocsSidebarSeparator = ({ item }) => (_jsxs(SidebarSeparator, { className: "mt-4 mb-2 flex items-center gap-2 px-0 font-medium text-sm first-child:mt-0", children: [item.icon, item.name] }));
@@ -19,8 +19,8 @@ export function ButtonGroup({ className, orientation, ...props }) {
19
19
  }
20
20
  export function ButtonGroupText({ className, asChild = false, ...props }) {
21
21
  const Comp = asChild ? SlotPrimitive.Slot : "div";
22
- return (_jsx(Comp, { className: cn("flex items-center gap-2 rounded-md border bg-muted px-4 font-medium text-sm shadow-xs [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className), ...props }));
22
+ return (_jsx(Comp, { className: cn("flex items-center gap-2 rounded-md border bg-gray-100 px-4 font-medium text-sm shadow-xs [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className), ...props }));
23
23
  }
24
24
  export function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
25
- return (_jsx(Separator, { className: cn("!m-0 relative self-stretch bg-input data-[orientation=vertical]:h-auto", className), "data-slot": "button-group-separator", orientation: orientation, ...props }));
25
+ return (_jsx(Separator, { className: cn("!m-0 relative self-stretch bg-gray-alpha-400 data-[orientation=vertical]:h-auto", className), "data-slot": "button-group-separator", orientation: orientation, ...props }));
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,QAAA,MAAM,cAAc;;;8EA8BnB,CAAC;AAEF,KAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,GACzC,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,2CAUb;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,QAAA,MAAM,cAAc;;;8EA6BnB,CAAC;AAEF,KAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,GACzC,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,2CAUb;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -2,15 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cva } from "class-variance-authority";
3
3
  import { Slot as SlotPrimitive } from "radix-ui";
4
4
  import { cn } from "../cn";
5
- const buttonVariants = cva("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
5
+ const buttonVariants = cva("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-gray-600 focus-visible:ring-[3px] focus-visible:ring-gray-600/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-red-800 aria-invalid:ring-red-800/20 dark:aria-invalid:ring-red-800/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
6
6
  variants: {
7
7
  variant: {
8
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
9
- destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
10
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
11
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
12
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
13
- link: "text-primary underline-offset-4 hover:underline",
8
+ default: "bg-gray-1000 text-background-100 hover:bg-gray-1000/90",
9
+ destructive: "bg-red-800 text-white hover:bg-red-800/90 focus-visible:ring-red-800/20 dark:bg-red-800/60 dark:focus-visible:ring-red-800/40",
10
+ outline: "border bg-background-100 shadow-xs hover:bg-gray-100 hover:text-gray-1000 dark:border-gray-alpha-400 dark:bg-gray-alpha-400/30 dark:hover:bg-gray-alpha-400/50",
11
+ secondary: "bg-gray-100 text-gray-1000 hover:bg-gray-100/80",
12
+ ghost: "hover:bg-gray-100 hover:text-gray-1000 dark:hover:bg-gray-100/50",
13
+ link: "text-gray-1000 underline-offset-4 hover:underline",
14
14
  },
15
15
  size: {
16
16
  default: "h-9 px-4 py-2 has-[>svg]:px-3",
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../cn";
3
3
  export function Card({ className, ...props }) {
4
- return (_jsx("div", { className: cn("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm", className), "data-slot": "card", ...props }));
4
+ return (_jsx("div", { className: cn("flex flex-col gap-6 rounded-xl border bg-background-100 py-6 text-gray-1000 shadow-sm", className), "data-slot": "card", ...props }));
5
5
  }
6
6
  export function CardHeader({ className, ...props }) {
7
7
  return (_jsx("div", { className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className), "data-slot": "card-header", ...props }));
@@ -9,5 +9,5 @@ export function DrawerTrigger(props) {
9
9
  return _jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
10
10
  }
11
11
  export function DrawerContent({ className, children, ...props }) {
12
- return (_jsxs(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", children: [_jsx(DrawerPrimitive.Overlay, { className: "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", "data-slot": "drawer-overlay" }), _jsxs(DrawerPrimitive.Content, { className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-background", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", className), "data-slot": "drawer-content", ...props, children: [_jsx("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children] })] }));
12
+ return (_jsxs(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", children: [_jsx(DrawerPrimitive.Overlay, { className: "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", "data-slot": "drawer-overlay" }), _jsxs(DrawerPrimitive.Content, { className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-background-100", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", className), "data-slot": "drawer-content", ...props, children: [_jsx("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-gray-100 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children] })] }));
13
13
  }
@@ -10,32 +10,32 @@ export function DropdownMenuTrigger(props) {
10
10
  return (_jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props }));
11
11
  }
12
12
  export function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
13
- return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "dropdown-menu-content", sideOffset: sideOffset, ...props }) }));
13
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-background-100 p-1 text-gray-1000 shadow-(--ds-shadow-menu) data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "dropdown-menu-content", sideOffset: sideOffset, ...props }) }));
14
14
  }
15
15
  export function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
16
- return (_jsx(DropdownMenuPrimitive.Item, { className: cn("data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-item", "data-variant": variant, ...props }));
16
+ return (_jsx(DropdownMenuPrimitive.Item, { className: cn("data-[variant=destructive]:*:[svg]:!text-red-800 relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-800 data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-red-800/10 data-[variant=destructive]:focus:text-red-800 dark:data-[variant=destructive]:focus:bg-red-800/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-800 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-item", "data-variant": variant, ...props }));
17
17
  }
18
18
  export function DropdownMenuLabel({ className, inset, ...props }) {
19
19
  return (_jsx(DropdownMenuPrimitive.Label, { className: cn("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8", className), "data-inset": inset, "data-slot": "dropdown-menu-label", ...props }));
20
20
  }
21
21
  export function DropdownMenuSeparator({ className, ...props }) {
22
- return (_jsx(DropdownMenuPrimitive.Separator, { className: cn("-mx-1 my-1 h-px bg-border", className), "data-slot": "dropdown-menu-separator", ...props }));
22
+ return (_jsx(DropdownMenuPrimitive.Separator, { className: cn("-mx-1 my-1 h-px bg-gray-alpha-400", className), "data-slot": "dropdown-menu-separator", ...props }));
23
23
  }
24
24
  export function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
25
- return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { checked: checked, className: cn("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "dropdown-menu-checkbox-item", ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
25
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { checked: checked, className: cn("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "dropdown-menu-checkbox-item", ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
26
26
  }
27
27
  export function DropdownMenuRadioGroup(props) {
28
28
  return (_jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props }));
29
29
  }
30
30
  export function DropdownMenuRadioItem({ className, children, ...props }) {
31
- return (_jsxs(DropdownMenuPrimitive.RadioItem, { className: cn("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "dropdown-menu-radio-item", ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
31
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { className: cn("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "dropdown-menu-radio-item", ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
32
32
  }
33
33
  export function DropdownMenuSub(props) {
34
34
  return _jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
35
35
  }
36
36
  export function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
37
- return (_jsxs(DropdownMenuPrimitive.SubTrigger, { className: cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[inset]:pl-8 data-[state=open]:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
37
+ return (_jsxs(DropdownMenuPrimitive.SubTrigger, { className: cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-gray-100 focus:text-gray-1000 data-[state=open]:bg-gray-100 data-[inset]:pl-8 data-[state=open]:text-gray-1000 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-800 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "dropdown-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
38
38
  }
39
39
  export function DropdownMenuSubContent({ className, ...props }) {
40
- return (_jsx(DropdownMenuPrimitive.SubContent, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "dropdown-menu-sub-content", ...props }));
40
+ return (_jsx(DropdownMenuPrimitive.SubContent, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-background-100 p-1 text-gray-1000 shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "dropdown-menu-sub-content", ...props }));
41
41
  }
@@ -5,9 +5,9 @@ import { cn } from "../cn";
5
5
  import { Button } from "./button";
6
6
  import { Textarea } from "./textarea";
7
7
  export function InputGroup({ className, ...props }) {
8
- return (_jsx("div", { className: cn("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] dark:bg-input/30", "h-9 min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", className), "data-slot": "input-group", ...props }));
8
+ return (_jsx("div", { className: cn("group/input-group relative flex w-full items-center rounded-md border border-gray-alpha-400 shadow-xs outline-none transition-[color,box-shadow] dark:bg-gray-alpha-400/30", "h-9 min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-gray-600 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-gray-600/50", "has-[[data-slot][aria-invalid=true]]:border-red-800 has-[[data-slot][aria-invalid=true]]:ring-red-800/20 dark:has-[[data-slot][aria-invalid=true]]:ring-red-800/40", className), "data-slot": "input-group", ...props }));
9
9
  }
10
- const inputGroupAddonVariants = cva("flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium text-muted-foreground text-sm group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
10
+ const inputGroupAddonVariants = cva("flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium text-gray-800 text-sm group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
11
11
  variants: {
12
12
  align: {
13
13
  "inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../cn";
3
3
  export function Input({ className, type, ...props }) {
4
- return (_jsx("input", { className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", className), "data-slot": "input", type: type, ...props }));
4
+ return (_jsx("input", { className: cn("h-9 w-full min-w-0 rounded-md border border-gray-alpha-400 bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-gray-1000 selection:text-background-100 file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-gray-1000 file:text-sm placeholder:text-gray-800 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-gray-alpha-400/30", "focus-visible:border-gray-600 focus-visible:ring-[3px] focus-visible:ring-gray-600/50", "aria-invalid:border-red-800 aria-invalid:ring-red-800/20 dark:aria-invalid:ring-red-800/40", className), "data-slot": "input", type: type, ...props }));
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../cn";
3
3
  export function Kbd({ className, ...props }) {
4
- return (_jsx("kbd", { className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-muted px-1 font-medium font-sans text-muted-foreground text-xs", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className), "data-slot": "kbd", ...props }));
4
+ return (_jsx("kbd", { className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-gray-100 px-1 font-medium font-sans text-gray-800 text-xs", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background-100/20 [[data-slot=tooltip-content]_&]:text-background-100 dark:[[data-slot=tooltip-content]_&]:bg-background-100/10", className), "data-slot": "kbd", ...props }));
5
5
  }
6
6
  export function KbdGroup({ className, ...props }) {
7
7
  return (_jsx("kbd", { className: cn("inline-flex items-center gap-1", className), "data-slot": "kbd-group", ...props }));
@@ -9,5 +9,5 @@ export function PopoverTrigger(props) {
9
9
  return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
10
10
  }
11
11
  export function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
12
- return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "popover-content", sideOffset: sideOffset, ...props }) }));
12
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-background-100 p-4 text-gray-1000 shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in", className), "data-slot": "popover-content", sideOffset: sideOffset, ...props }) }));
13
13
  }
@@ -3,10 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
4
4
  import { cn } from "../cn";
5
5
  export function ScrollArea({ className, children, ...props }) {
6
- return (_jsxs(ScrollAreaPrimitive.Root, { className: cn("relative", className), "data-slot": "scroll-area", ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { className: "size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50", "data-slot": "scroll-area-viewport", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] }));
6
+ return (_jsxs(ScrollAreaPrimitive.Root, { className: cn("relative", className), "data-slot": "scroll-area", ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { className: "size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-gray-600/50", "data-slot": "scroll-area-viewport", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] }));
7
7
  }
8
8
  export function ScrollBar({ className, orientation = "vertical", ...props }) {
9
9
  return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, { className: cn("flex touch-none select-none p-px transition-colors", orientation === "vertical" &&
10
10
  "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" &&
11
- "h-2.5 flex-col border-t border-t-transparent", className), "data-slot": "scroll-area-scrollbar", orientation: orientation, ...props, children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border", "data-slot": "scroll-area-thumb" }) }));
11
+ "h-2.5 flex-col border-t border-t-transparent", className), "data-slot": "scroll-area-scrollbar", orientation: orientation, ...props, children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-gray-alpha-400", "data-slot": "scroll-area-thumb" }) }));
12
12
  }
@@ -3,5 +3,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Separator as SeparatorPrimitive } from "radix-ui";
4
4
  import { cn } from "../cn";
5
5
  export function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
6
- return (_jsx(SeparatorPrimitive.Root, { className: cn("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px", className), "data-slot": "separator", decorative: decorative, orientation: orientation, ...props }));
6
+ return (_jsx(SeparatorPrimitive.Root, { className: cn("shrink-0 bg-gray-alpha-400 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px", className), "data-slot": "separator", decorative: decorative, orientation: orientation, ...props }));
7
7
  }
@@ -7,18 +7,18 @@ export function Sheet(props) {
7
7
  return _jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
8
8
  }
9
9
  export function SheetContent({ className, children, side = "right", ...props }) {
10
- return (_jsxs(SheetPrimitive.Portal, { "data-slot": "sheet-portal", children: [_jsx(SheetPrimitive.Overlay, { className: "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", "data-slot": "sheet-overlay" }), _jsxs(SheetPrimitive.Content, { className: cn("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" &&
10
+ return (_jsxs(SheetPrimitive.Portal, { "data-slot": "sheet-portal", children: [_jsx(SheetPrimitive.Overlay, { className: "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", "data-slot": "sheet-overlay" }), _jsxs(SheetPrimitive.Content, { className: cn("fixed z-50 flex flex-col gap-4 bg-background-100 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" &&
11
11
  "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" &&
12
12
  "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" &&
13
13
  "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" &&
14
- "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className), "data-slot": "sheet-content", ...props, children: [children, _jsxs(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [_jsx(XIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] }));
14
+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className), "data-slot": "sheet-content", ...props, children: [children, _jsxs(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background-100 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-gray-600 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [_jsx(XIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] }));
15
15
  }
16
16
  export function SheetHeader({ className, ...props }) {
17
17
  return (_jsx("div", { className: cn("flex flex-col gap-1.5 p-4", className), "data-slot": "sheet-header", ...props }));
18
18
  }
19
19
  export function SheetTitle({ className, ...props }) {
20
- return (_jsx(SheetPrimitive.Title, { className: cn("font-semibold text-foreground", className), "data-slot": "sheet-title", ...props }));
20
+ return (_jsx(SheetPrimitive.Title, { className: cn("font-semibold text-gray-1000", className), "data-slot": "sheet-title", ...props }));
21
21
  }
22
22
  export function SheetDescription({ className, ...props }) {
23
- return (_jsx(SheetPrimitive.Description, { className: cn("text-muted-foreground text-sm", className), "data-slot": "sheet-description", ...props }));
23
+ return (_jsx(SheetPrimitive.Description, { className: cn("text-gray-800 text-sm", className), "data-slot": "sheet-description", ...props }));
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../cn";
3
3
  export function Textarea({ className, ...props }) {
4
- return (_jsx("textarea", { className: cn("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", className), "data-slot": "textarea", ...props }));
4
+ return (_jsx("textarea", { className: cn("field-sizing-content flex min-h-16 w-full rounded-md border border-gray-alpha-400 bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-gray-800 focus-visible:border-gray-600 focus-visible:ring-[3px] focus-visible:ring-gray-600/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-red-800 aria-invalid:ring-red-800/20 md:text-sm dark:bg-gray-alpha-400/30 dark:aria-invalid:ring-red-800/40", className), "data-slot": "textarea", ...props }));
5
5
  }
@@ -12,5 +12,5 @@ export function TooltipTrigger(props) {
12
12
  return _jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
13
13
  }
14
14
  export function TooltipContent({ className, sideOffset = 0, children, ...props }) {
15
- return (_jsx(TooltipPrimitive.Portal, { children: _jsxs(TooltipPrimitive.Content, { className: cn("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out", className), "data-slot": "tooltip-content", sideOffset: sideOffset, ...props, children: [children, _jsx(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })] }) }));
15
+ return (_jsx(TooltipPrimitive.Portal, { children: _jsxs(TooltipPrimitive.Content, { className: cn("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-gray-1000 px-3 py-1.5 text-background-100 text-xs data-[state=closed]:animate-out", className), "data-slot": "tooltip-content", sideOffset: sideOffset, ...props, children: [children, _jsx(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-gray-1000 fill-gray-1000" })] }) }));
16
16
  }
package/dist/mdx.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { defineConfig as defineFumadocsConfig } from "fumadocs-mdx/config";
1
+ import { type DefaultMDXOptions, defineConfig as defineFumadocsConfig } from "fumadocs-mdx/config";
2
2
  import type { MDXComponents } from "mdx/types";
3
3
  import { z } from "zod";
4
4
  type FumadocsConfigInput = NonNullable<Parameters<typeof defineFumadocsConfig>[0]>;
5
- type FumadocsMDXOptions = Exclude<NonNullable<FumadocsConfigInput["mdxOptions"]>, (...args: never[]) => unknown>;
5
+ type FumadocsMDXOptions = DefaultMDXOptions;
6
6
  interface GeistdocsSourceConfigOptions {
7
7
  mdxOptions?: FumadocsMDXOptions;
8
8
  plugins?: FumadocsConfigInput["plugins"];
package/dist/mdx.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,IAAI,oBAAoB,EAErC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,KAAK,mBAAmB,GAAG,WAAW,CACpC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAC3C,CAAC;AACF,KAAK,kBAAkB,GAAG,OAAO,CAC/B,WAAW,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,EAC9C,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAC9B,CAAC;AAEF,UAAU,4BAA4B;IACpC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBA6BrC,CAAC;AAEH,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBA8BD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,sBAAsB,KAClC,sBAA+D,CAAC;AAEnE,eAAO,MAAM,2BAA2B,GACtC,GAAG,eAAe,KAAK,CAAC,sBAAsB,GAAG,SAAS,CAAC,KAC1D,sBACkD,CAAC;AAEtD,eAAO,MAAM,2BAA2B,GACtC,SAAQ,4BAAiC,+CAe1C,CAAC"}
1
+ {"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EACtB,YAAY,IAAI,oBAAoB,EAErC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,KAAK,mBAAmB,GAAG,WAAW,CACpC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAC3C,CAAC;AACF,KAAK,kBAAkB,GAAG,iBAAiB,CAAC;AAE5C,UAAU,4BAA4B;IACpC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBA6BrC,CAAC;AAEH,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBA8BD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,sBAAsB,KAClC,sBAA+D,CAAC;AAEnE,eAAO,MAAM,2BAA2B,GACtC,GAAG,eAAe,KAAK,CAAC,sBAAsB,GAAG,SAAS,CAAC,KAC1D,sBACkD,CAAC;AAEtD,eAAO,MAAM,2BAA2B,GACtC,SAAQ,4BAAiC,+CAoB1C,CAAC"}
package/dist/mdx.js CHANGED
@@ -12,6 +12,7 @@ import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, }
12
12
  import { CopyPrompt } from "./components/copy-prompt";
13
13
  import { Mermaid } from "./components/mermaid";
14
14
  import { Video } from "./components/video";
15
+ import { geistShikiTheme } from "./shiki-theme";
15
16
  export const geistdocsFrontmatterSchema = frontmatterSchema.extend({
16
17
  product: z.string().optional(),
17
18
  url: z
@@ -41,7 +42,7 @@ export const geistdocsFrontmatterSchema = frontmatterSchema.extend({
41
42
  export const getGeistdocsMDXComponents = (components) => ({
42
43
  ...defaultMdxComponents,
43
44
  pre: CodeBlock,
44
- a: ({ href, ...props }) => typeof href === "string" && href.startsWith("/") ? (_jsx(DynamicLink, { className: "font-normal text-primary no-underline", href: `/[lang]${href}`, ...props })) : (_jsx("a", { href: href, ...props, className: "font-normal text-primary no-underline" })),
45
+ a: ({ href, ...props }) => typeof href === "string" && href.startsWith("/") ? (_jsx(DynamicLink, { className: "font-normal text-gray-1000 no-underline", href: `/[lang]${href}`, ...props })) : (_jsx("a", { href: href, ...props, className: "font-normal text-gray-1000 no-underline" })),
45
46
  CodeBlockTabs,
46
47
  CodeBlockTabsList,
47
48
  CodeBlockTabsTrigger,
@@ -68,6 +69,11 @@ export const defineGeistdocsSourceConfig = (config = {}) => {
68
69
  mdxOptions: {
69
70
  ...config.mdxOptions,
70
71
  remarkPlugins: [remarkMdxMermaid, ...existingRemarkPlugins],
72
+ rehypeCodeOptions: {
73
+ ...config.mdxOptions?.rehypeCodeOptions,
74
+ themes: { light: geistShikiTheme, dark: geistShikiTheme },
75
+ defaultColor: "light",
76
+ },
71
77
  },
72
78
  plugins: [lastModified(), ...existingPlugins],
73
79
  });
@@ -38,7 +38,7 @@ export const createDocsPage = ({ config, source, mdx, pageActions = createIntern
38
38
  },
39
39
  }) ?? [])
40
40
  : [];
41
- const tocFooter = (_jsx("div", { className: "mt-3 border-border border-t pt-3", children: _jsx("nav", { "aria-label": "Page actions", className: "flex min-w-0 flex-col gap-1", children: _jsx(GeistdocsPageActions, { config: pageActions.config, extraActions: footerActions, page: {
41
+ const tocFooter = (_jsx("div", { className: "mt-3 border-gray-alpha-400 border-t pt-3", children: _jsx("nav", { "aria-label": "Page actions", className: "flex min-w-0 flex-col gap-1", children: _jsx(GeistdocsPageActions, { config: pageActions.config, extraActions: footerActions, page: {
42
42
  path: page.path,
43
43
  url: pageUrl,
44
44
  } }) }) }));
@@ -0,0 +1,20 @@
1
+ export declare const geistShikiTheme: {
2
+ name: string;
3
+ type: "dark";
4
+ colors: {
5
+ "editor.foreground": string;
6
+ "editor.background": string;
7
+ };
8
+ tokenColors: ({
9
+ scope: string[];
10
+ settings: {
11
+ foreground: string;
12
+ };
13
+ } | {
14
+ scope: string;
15
+ settings: {
16
+ foreground: string;
17
+ };
18
+ })[];
19
+ };
20
+ //# sourceMappingURL=shiki-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shiki-theme.d.ts","sourceRoot":"","sources":["../src/shiki-theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CA0G3B,CAAC"}