@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
@@ -14,7 +14,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
14
14
  data-slot="input-group"
15
15
  role="group"
16
16
  className={cn(
17
- "group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
17
+ "group/input-group border-gray-alpha-400 dark:bg-gray-alpha-400/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
18
18
  "h-9 min-w-0 has-[>textarea]:h-auto",
19
19
 
20
20
  // Variants based on alignment.
@@ -24,10 +24,10 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
24
24
  "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
25
25
 
26
26
  // Focus state.
27
- "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
27
+ "has-[[data-slot=input-group-control]:focus-visible]:border-gray-600 has-[[data-slot=input-group-control]:focus-visible]:ring-gray-600/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
28
28
 
29
29
  // Error state.
30
- "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
30
+ "has-[[data-slot][aria-invalid=true]]:ring-red-800/20 has-[[data-slot][aria-invalid=true]]:border-red-800 dark:has-[[data-slot][aria-invalid=true]]:ring-red-800/40",
31
31
 
32
32
  className
33
33
  )}
@@ -37,7 +37,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
37
37
  }
38
38
 
39
39
  const inputGroupAddonVariants = cva(
40
- "text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
40
+ "text-gray-800 flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
41
41
  {
42
42
  variants: {
43
43
  align: {
@@ -120,7 +120,7 @@ function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
120
120
  return (
121
121
  <span
122
122
  className={cn(
123
- "text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
123
+ "text-gray-800 flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
124
124
  className
125
125
  )}
126
126
  {...props}
@@ -8,9 +8,9 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
8
8
  type={type}
9
9
  data-slot="input"
10
10
  className={cn(
11
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
13
- "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
11
+ "file:text-gray-1000 placeholder:text-gray-800 selection:bg-gray-1000 selection:text-background-100 dark:bg-gray-alpha-400/30 border-gray-alpha-400 h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12
+ "focus-visible:border-gray-600 focus-visible:ring-gray-600/50 focus-visible:ring-[3px]",
13
+ "aria-invalid:ring-red-800/20 dark:aria-invalid:ring-red-800/40 aria-invalid:border-red-800",
14
14
  className
15
15
  )}
16
16
  {...props}
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui"
3
3
  import { cva } from "class-variance-authority"
4
- import { IconChevronDownSmall } from "@/components/geistcn-fallbacks/geistcn-assets/icons/icon-chevron-down-small"
4
+ import { IconChevronDownSmall } from "@vercel/geistdocs/assets/icons/icon-chevron-down-small"
5
5
 
6
6
  import { cn } from "@/lib/utils"
7
7
 
@@ -111,7 +111,7 @@ function NavigationMenuContent({
111
111
  data-slot="navigation-menu-content"
112
112
  className={cn(
113
113
  "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out md:absolute md:w-auto",
114
- "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
114
+ "group-data-[viewport=false]/navigation-menu:bg-background-100 group-data-[viewport=false]/navigation-menu:text-gray-1000 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
115
115
  className
116
116
  )}
117
117
  {...props}
@@ -30,7 +30,7 @@ function PopoverContent({
30
30
  align={align}
31
31
  sideOffset={sideOffset}
32
32
  className={cn(
33
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out 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 p-4 shadow-md outline-hidden",
33
+ "bg-background-100 text-gray-1000 data-[state=open]:animate-in data-[state=closed]:animate-out 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 p-4 shadow-md outline-hidden",
34
34
  className
35
35
  )}
36
36
  {...props}
@@ -17,7 +17,7 @@ function Separator({
17
17
  decorative={decorative}
18
18
  orientation={orientation}
19
19
  className={cn(
20
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
20
+ "bg-gray-alpha-400 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
21
21
  className
22
22
  )}
23
23
  {...props}
@@ -58,7 +58,7 @@ function SheetContent({
58
58
  <SheetPrimitive.Content
59
59
  data-slot="sheet-content"
60
60
  className={cn(
61
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
61
+ "bg-background-100 data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
62
62
  side === "right" &&
63
63
  "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",
64
64
  side === "left" &&
@@ -72,7 +72,7 @@ function SheetContent({
72
72
  {...props}
73
73
  >
74
74
  {children}
75
- <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
75
+ <SheetPrimitive.Close className="ring-offset-background-100 focus:ring-gray-600 data-[state=open]:bg-gray-100 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
76
76
  <XIcon className="size-4" />
77
77
  <span className="sr-only">Close</span>
78
78
  </SheetPrimitive.Close>
@@ -108,7 +108,7 @@ function SheetTitle({
108
108
  return (
109
109
  <SheetPrimitive.Title
110
110
  data-slot="sheet-title"
111
- className={cn("text-foreground font-semibold", className)}
111
+ className={cn("text-gray-1000 font-semibold", className)}
112
112
  {...props}
113
113
  />
114
114
  )
@@ -121,7 +121,7 @@ function SheetDescription({
121
121
  return (
122
122
  <SheetPrimitive.Description
123
123
  data-slot="sheet-description"
124
- className={cn("text-muted-foreground text-sm", className)}
124
+ className={cn("text-gray-800 text-sm", className)}
125
125
  {...props}
126
126
  />
127
127
  )
@@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
7
7
  <textarea
8
8
  data-slot="textarea"
9
9
  className={cn(
10
- "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
10
+ "border-gray-alpha-400 placeholder:text-gray-800 focus-visible:border-gray-600 focus-visible:ring-gray-600/50 aria-invalid:ring-red-800/20 dark:aria-invalid:ring-red-800/40 aria-invalid:border-red-800 dark:bg-gray-alpha-400/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11
11
  className
12
12
  )}
13
13
  {...props}
@@ -14,7 +14,7 @@
14
14
  "@ai-sdk/react": "^2.0.115",
15
15
  "@icons-pack/react-simple-icons": "^13.8.0",
16
16
  "@orama/tokenizers": "^3.1.16",
17
- "@vercel/geistdocs": "1.2.3-canary.48fea3c",
17
+ "@vercel/geistdocs": "1.2.3-canary.a12a9c6",
18
18
  "@streamdown/cjk": "^1.0.1",
19
19
  "@streamdown/code": "^1.0.1",
20
20
  "@vercel/agent-readability": "^0.2.1",
@@ -8,6 +8,119 @@ import {
8
8
  import lastModified from "fumadocs-mdx/plugins/last-modified";
9
9
  import { z } from "zod";
10
10
 
11
+ // Shiki css-variables theme inlined here (not imported from
12
+ // @vercel/geistdocs/shiki-theme) because fumadocs-mdx evaluates this file
13
+ // during `pnpm install`, before workspace packages are built. The same theme
14
+ // is also exported from @vercel/geistdocs/shiki-theme for runtime consumers.
15
+ // CSS variables are wired in geistdocs.css under :root.
16
+ const geistShikiTheme = {
17
+ name: "geist",
18
+ type: "dark" as const,
19
+ colors: {
20
+ "editor.foreground": "var(--shiki-color-text, inherit)",
21
+ "editor.background": "var(--shiki-color-background, transparent)",
22
+ },
23
+ tokenColors: [
24
+ {
25
+ scope: ["comment", "punctuation.definition.comment", "string.comment"],
26
+ settings: { foreground: "var(--shiki-token-comment)" },
27
+ },
28
+ {
29
+ scope: [
30
+ "constant",
31
+ "entity.name.constant",
32
+ "variable.other.constant",
33
+ "variable.other.enummember",
34
+ "variable.language",
35
+ "entity",
36
+ ],
37
+ settings: { foreground: "var(--shiki-token-constant)" },
38
+ },
39
+ {
40
+ scope: ["entity.name", "meta.export.default", "meta.definition.variable"],
41
+ settings: { foreground: "var(--shiki-token-function)" },
42
+ },
43
+ {
44
+ scope: [
45
+ "variable.parameter.function",
46
+ "meta.jsx.children",
47
+ "meta.block",
48
+ "meta.tag.attributes",
49
+ "entity.name.section",
50
+ "text",
51
+ "punctuation.definition.tag",
52
+ "punctuation.separator.inheritance.php",
53
+ "punctuation.definition.tag.html",
54
+ "punctuation.definition.tag.begin.html",
55
+ "punctuation.definition.tag.end.html",
56
+ "punctuation.section.embedded",
57
+ "variable.parameter",
58
+ ],
59
+ settings: { foreground: "var(--shiki-token-parameter)" },
60
+ },
61
+ {
62
+ scope: ["entity.name.tag", "support.class.component"],
63
+ settings: { foreground: "var(--shiki-token-function)" },
64
+ },
65
+ {
66
+ scope: "keyword",
67
+ settings: { foreground: "var(--shiki-token-keyword)" },
68
+ },
69
+ {
70
+ scope: ["storage", "storage.type", "storage.modifier"],
71
+ settings: { foreground: "var(--shiki-token-keyword)" },
72
+ },
73
+ {
74
+ scope: [
75
+ "string",
76
+ "string punctuation.section.embedded source",
77
+ "attribute.value",
78
+ ],
79
+ settings: { foreground: "var(--shiki-token-string)" },
80
+ },
81
+ {
82
+ scope: [
83
+ "punctuation",
84
+ "punctuation.definition.string",
85
+ "punctuation.definition.variable",
86
+ "punctuation.definition.string.begin",
87
+ "punctuation.definition.string.end",
88
+ "punctuation.section.embedded.begin",
89
+ "punctuation.section.embedded.end",
90
+ ],
91
+ settings: { foreground: "var(--shiki-token-punctuation)" },
92
+ },
93
+ {
94
+ scope: "string.regexp",
95
+ settings: { foreground: "var(--shiki-token-string-expression)" },
96
+ },
97
+ {
98
+ scope: [
99
+ "support.function",
100
+ "entity.name.function",
101
+ "meta.function-call.generic",
102
+ ],
103
+ settings: { foreground: "var(--shiki-token-function)" },
104
+ },
105
+ {
106
+ scope: "markup.underline.link",
107
+ settings: { foreground: "var(--shiki-token-link)" },
108
+ },
109
+ {
110
+ // Markdown list/task content. Shiki's markdown grammar tokenizes
111
+ // bracketed text (including the "x" in "[x]" task markers) as
112
+ // `string.other.link.title.markdown`; pin those to the surrounding
113
+ // list-item color so markdown blocks look uniform.
114
+ scope: [
115
+ "markup.list",
116
+ "string.other.link.title.markdown",
117
+ "string.other.link.description.markdown",
118
+ ],
119
+ settings: { foreground: "var(--shiki-token-parameter)" },
120
+ },
121
+ ],
122
+ };
123
+
11
124
  // You can customise Zod schemas for frontmatter and `meta.json` here
12
125
  // see https://fumadocs.dev/docs/mdx/collections
13
126
  export const docs = defineDocs({
@@ -57,6 +170,10 @@ export const docs = defineDocs({
57
170
  export default defineConfig({
58
171
  mdxOptions: {
59
172
  remarkPlugins: [remarkMdxMermaid],
173
+ rehypeCodeOptions: {
174
+ themes: { light: geistShikiTheme, dark: geistShikiTheme },
175
+ defaultColor: "light",
176
+ },
60
177
  },
61
178
  plugins: [lastModified()],
62
179
  });
@@ -1,35 +0,0 @@
1
- import type { SVGProps } from "react";
2
-
3
- interface IconProps
4
- extends Omit<
5
- SVGProps<SVGSVGElement>,
6
- "width" | "height" | "viewBox" | "fill"
7
- > {
8
- color?: string;
9
- size?: number | string;
10
- }
11
-
12
- export function IconArrowUpRightSmall({
13
- size = 16,
14
- color = "currentColor",
15
- ...props
16
- }: IconProps) {
17
- return (
18
- <svg
19
- aria-hidden="true"
20
- fill="none"
21
- height={size}
22
- role="img"
23
- viewBox="0 0 16 16"
24
- width={size}
25
- {...props}
26
- >
27
- <path
28
- clipRule="evenodd"
29
- d="M6.75 4H6v1.5h3.44L5.47 9.47l-.53.53L6 11.06l.53-.53 3.97-3.97V10H12V5a1 1 0 0 0-1-1z"
30
- fill={color}
31
- fillRule="evenodd"
32
- />
33
- </svg>
34
- );
35
- }
@@ -1,27 +0,0 @@
1
- export function IconArrowUpRight({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- clipRule="evenodd"
21
- d="M5.75001 2H5.00001V3.5H5.75001H11.4393L2.21968 12.7197L1.68935 13.25L2.75001 14.3107L3.28034 13.7803L12.4988 4.56182V10.25V11H13.9988V10.25V3C13.9988 2.44772 13.5511 2 12.9988 2H5.75001Z"
22
- fill="currentColor"
23
- fillRule="evenodd"
24
- />
25
- </svg>
26
- );
27
- }
@@ -1,27 +0,0 @@
1
- export function IconCheck({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- clipRule="evenodd"
21
- d="M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z"
22
- fill="currentColor"
23
- fillRule="evenodd"
24
- />
25
- </svg>
26
- );
27
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Temporary ChevronDownSmall icon fallback.
3
- */
4
- export function IconChevronDownSmall({
5
- size = 16,
6
- className,
7
- }: {
8
- size?: number;
9
- className?: string;
10
- }) {
11
- return (
12
- <svg
13
- aria-hidden="true"
14
- className={className}
15
- fill="none"
16
- height={size}
17
- role="img"
18
- viewBox="0 0 16 16"
19
- width={size}
20
- xmlns="http://www.w3.org/2000/svg"
21
- >
22
- <path
23
- clipRule="evenodd"
24
- d="M12.0607 6.74999L11.5303 7.28032L8.7071 10.1035C8.31657 10.4941 7.68341 10.4941 7.29288 10.1035L4.46966 7.28032L3.93933 6.74999L4.99999 5.68933L5.53032 6.21966L7.99999 8.68933L10.4697 6.21966L11 5.68933L12.0607 6.74999Z"
25
- fill="currentColor"
26
- fillRule="evenodd"
27
- />
28
- </svg>
29
- );
30
- }
@@ -1,27 +0,0 @@
1
- export function IconChevronRight({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- clipRule="evenodd"
21
- d="M5.50001 1.93933L6.03034 2.46966L10.8536 7.29288C11.2441 7.68341 11.2441 8.31657 10.8536 8.7071L6.03034 13.5303L5.50001 14.0607L4.43935 13L4.96968 12.4697L9.43935 7.99999L4.96968 3.53032L4.43935 2.99999L5.50001 1.93933Z"
22
- fill="currentColor"
23
- fillRule="evenodd"
24
- />
25
- </svg>
26
- );
27
- }
@@ -1,27 +0,0 @@
1
- export function IconCopy({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- clipRule="evenodd"
21
- d="M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z"
22
- fill="currentColor"
23
- fillRule="evenodd"
24
- />
25
- </svg>
26
- );
27
- }
@@ -1,25 +0,0 @@
1
- export function IconFileText({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- d="M9.18 0a1 1 0 0 1 .61.3l4.42 4.4a1 1 0 0 1 .29.71v8.09A2.5 2.5 0 0 1 12 16H4a2.5 2.5 0 0 1-2.5-2.5V0h7.69M3 13.5a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5.62L8.88 1.5H3zm8.63-1.25H4.5V11h7.13zm0-3H4.5V8h7.13zm-5-3H4.5V5h2.13z"
21
- fill="currentColor"
22
- />
23
- </svg>
24
- );
25
- }
@@ -1,27 +0,0 @@
1
- export function IconMenuAlt({
2
- size = 16,
3
- className,
4
- }: {
5
- size?: number;
6
- className?: string;
7
- }) {
8
- return (
9
- <svg
10
- aria-hidden="true"
11
- className={className}
12
- fill="none"
13
- height={size}
14
- role="img"
15
- viewBox="0 0 16 16"
16
- width={size}
17
- xmlns="http://www.w3.org/2000/svg"
18
- >
19
- <path
20
- clipRule="evenodd"
21
- d="M1 2h14v1.5H1zm0 10h14v1.5H1zm.75-5H1v1.5h14V7H1.75"
22
- fill="currentColor"
23
- fillRule="evenodd"
24
- />
25
- </svg>
26
- );
27
- }
@@ -1,36 +0,0 @@
1
- import type { SVGProps } from "react";
2
-
3
- interface IconProps
4
- extends Omit<
5
- SVGProps<SVGSVGElement>,
6
- "width" | "height" | "viewBox" | "fill"
7
- > {
8
- color?: string;
9
- size?: number | string;
10
- }
11
-
12
- export function IconSlashForward({
13
- size = 16,
14
- color = "currentColor",
15
- ...props
16
- }: IconProps) {
17
- return (
18
- <svg
19
- aria-hidden="true"
20
- fill="none"
21
- height={size}
22
- role="img"
23
- viewBox="0 0 16 16"
24
- width={size}
25
- {...props}
26
- >
27
- <title>Slash forward icon</title>
28
- <path
29
- clipRule="evenodd"
30
- d="m4.02 15.4.3-.7 6-14 .29-.68 1.37.59-.3.69-6 14-.29.68z"
31
- fill={color}
32
- fillRule="evenodd"
33
- />
34
- </svg>
35
- );
36
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * Temporary AI Elements logo fallback.
3
- */
4
- export function LogoAiElements({
5
- height = 13,
6
- className,
7
- }: {
8
- height?: number;
9
- className?: string;
10
- }) {
11
- const width = (101 / 13) * height;
12
- return (
13
- <svg
14
- aria-hidden="true"
15
- className={className}
16
- fill="none"
17
- height={height}
18
- role="img"
19
- viewBox="0 0 101 13"
20
- width={width}
21
- xmlns="http://www.w3.org/2000/svg"
22
- >
23
- <path
24
- d="M-6.24657e-05 12.78L4.60794 -1.90735e-06H7.30794L11.9159 12.78H9.57594L8.51394 9.684H3.40194L2.33994 12.78H-6.24657e-05ZM4.08594 7.722H7.82994L5.95794 2.25L4.08594 7.722ZM19.1161 -1.90735e-06V1.998H17.0461V10.782H19.2241V12.78H12.5821V10.782H14.7781V1.998H12.6901V-1.90735e-06H19.1161ZM24.7193 -1.90735e-06H33.2513V1.998H26.9873V5.382H33.0353V7.344H26.9873V10.782H33.3953V12.78H24.7193V-1.90735e-06ZM35.2535 -1.90735e-06H37.4855V10.35C37.4855 10.8 37.7195 11.016 38.1515 11.016H38.9075V12.78H37.5935C36.1895 12.78 35.2535 11.898 35.2535 10.44V-1.90735e-06ZM39.6365 8.01C39.6365 4.986 41.4905 3.024 44.3165 3.024C46.7285 3.024 48.6905 4.644 48.7625 8.028V8.622H41.9765C42.0845 10.242 42.9305 11.196 44.3165 11.196C45.1985 11.196 45.9905 10.692 46.3505 9.864L48.6365 10.026C48.0605 11.862 46.3505 12.996 44.3165 12.996C41.4905 12.996 39.6365 11.034 39.6365 8.01ZM41.9945 7.092H46.4585C46.2605 5.418 45.3425 4.806 44.3165 4.806C43.0205 4.806 42.1925 5.67 41.9945 7.092ZM50.2194 3.24H52.2354L52.2894 4.77C52.7574 3.654 53.7294 3.024 54.9894 3.024C56.3394 3.024 57.3114 3.744 57.7254 4.986C58.1934 3.69 59.1834 3.024 60.5694 3.024C62.4954 3.024 63.6834 4.302 63.6834 6.642V12.78H61.4514V7.344C61.4514 5.706 60.9294 4.842 59.9034 4.842C58.6614 4.842 57.9774 5.724 57.9774 7.344V12.78H55.9254V7.344C55.9254 5.724 55.3854 4.842 54.3774 4.842C53.1354 4.842 52.4514 5.76 52.4514 7.344V12.78H50.2194V3.24ZM64.9237 8.01C64.9237 4.986 66.7777 3.024 69.6037 3.024C72.0157 3.024 73.9777 4.644 74.0497 8.028V8.622H67.2637C67.3717 10.242 68.2177 11.196 69.6037 11.196C70.4857 11.196 71.2777 10.692 71.6377 9.864L73.9237 10.026C73.3477 11.862 71.6377 12.996 69.6037 12.996C66.7777 12.996 64.9237 11.034 64.9237 8.01ZM67.2817 7.092H71.7457C71.5477 5.418 70.6297 4.806 69.6037 4.806C68.3077 4.806 67.4797 5.67 67.2817 7.092ZM75.5066 3.24H77.5226L77.5946 4.806C78.0986 3.546 79.1786 3.024 80.4566 3.024C82.5806 3.024 83.7146 4.518 83.7146 6.642V12.78H81.4826V7.344C81.4826 5.724 81.0506 4.842 79.8086 4.842C78.5126 4.842 77.7386 5.724 77.7386 7.344V12.78H75.5066V3.24ZM86.4695 1.08H88.7015V3.24H91.2215V4.986H88.7015V9.882C88.7015 10.638 89.0615 11.016 89.7815 11.016H91.2215V12.78H89.4395C87.4955 12.78 86.4695 11.79 86.4695 9.882V4.986H84.9755V3.24H86.4695V1.08ZM97.8475 6.282C97.6675 5.31 96.7675 4.734 95.8675 4.734C94.9495 4.734 94.2295 5.202 94.2475 5.976C94.2655 6.786 95.2735 7.11 96.2095 7.29C98.7475 7.722 100.224 8.388 100.224 10.242C100.224 12.132 98.3695 12.996 96.1915 12.996C93.6175 12.996 91.8715 11.772 91.7095 9.756L93.9955 9.63C94.1755 10.638 94.9315 11.268 96.1555 11.268C96.9475 11.268 97.9195 10.98 97.9195 10.17C97.9015 9.234 96.8215 9.09 95.8315 8.874C93.5815 8.424 91.9435 7.83 91.9435 6.03C91.9435 4.158 93.4915 3.006 95.9935 3.006C98.1895 3.006 99.7915 4.23 100.098 6.174L97.8475 6.282Z"
25
- fill="currentColor"
26
- />
27
- </svg>
28
- );
29
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Temporary AI SDK logo fallback.
3
- */
4
- export function LogoAiSdk({
5
- height = 22,
6
- className,
7
- }: {
8
- height?: number;
9
- className?: string;
10
- }) {
11
- const width = (280 / 77) * height;
12
- return (
13
- <svg
14
- aria-hidden="true"
15
- className={className}
16
- fill="none"
17
- height={height}
18
- role="img"
19
- viewBox="0 0 280 77"
20
- width={width}
21
- xmlns="http://www.w3.org/2000/svg"
22
- >
23
- <path
24
- d="M.88 75.21 27.79.58h16.7l26.92 74.63h-14.3l-6.18-17.66H21.39l-6.21 17.66zm24.5-29.32h21.54L36.2 14.35zM116.8.58v11.87h-11.98v50.89h12.6v11.87h-39V63.34h12.73V12.45H79.06V.58z"
25
- fill="currentColor"
26
- />
27
- <path
28
- d="M242.4 4.08h-71.6a33.98 33.98 0 0 0 0 67.96h71.6a33.98 33.98 0 1 0 0-67.96Z"
29
- stroke="currentColor"
30
- strokeWidth="7.249"
31
- />
32
- <path
33
- d="M164.56 44.27c.72 4.18 3.7 6.94 8.6 6.94 3.74 0 6.28-1.49 6.22-4.35-.05-2.88-2.48-4.53-8.6-6.01-8.48-2.04-13.94-5.46-13.94-11.74 0-7.1 5.96-11.57 14.88-11.57 8.7 0 14.66 5.35 15.59 13.23l-8.37.44c-.44-4.13-3.31-6.73-7.43-6.73-3.65 0-6.24 1.88-6.07 4.74.11 3.31 3.96 4.4 8.15 5.46 8.76 1.93 14.33 5.67 14.33 11.9 0 7.43-6.55 11.62-14.98 11.62-9.53 0-16.26-5.29-16.81-13.55zm39.12-25.85c12.67 0 19.78 7.05 19.78 19.62 0 12.5-7 19.5-19.45 19.5h-13.83V18.42zm-5.12 32.07h5.12c7.6 0 11.23-4.02 11.23-12.5 0-8.5-3.62-12.5-11.23-12.5h-5.12zm26.55-32.07h8.38V35.5l14.22-17.08h9.74l-14.38 17.25 15.27 21.87h-9.52l-11.24-16.26-4.08 4.74v11.52h-8.38V18.42"
34
- fill="currentColor"
35
- />
36
- </svg>
37
- );
38
- }