fumadocs-ui 16.15.10 → 16.15.12

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 (52) hide show
  1. package/css/generated/shared.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/banner.js +1 -1
  4. package/dist/components/dialog/search.js +1 -1
  5. package/dist/components/image-zoom.d.ts +2 -2
  6. package/dist/components/image-zoom.js +1 -1
  7. package/dist/components/sidebar/base.d.ts +3 -3
  8. package/dist/components/sidebar/base.js +16 -8
  9. package/dist/components/ui/button.d.ts +2 -2
  10. package/dist/components/ui/button.js +3 -1
  11. package/dist/layouts/docs/page/index.js +1 -1
  12. package/dist/layouts/docs/page/slots/toc.js +0 -1
  13. package/dist/layouts/docs/slots/container.js +0 -1
  14. package/dist/layouts/docs/slots/header.js +1 -1
  15. package/dist/layouts/docs/slots/sidebar.js +5 -6
  16. package/dist/layouts/flux/index.js +1 -1
  17. package/dist/layouts/flux/page/index.js +1 -1
  18. package/dist/layouts/glass/page/index.js +1 -1
  19. package/dist/layouts/glass/slots/header.js +1 -1
  20. package/dist/layouts/glass/slots/sidebar.js +15 -7
  21. package/dist/layouts/home/not-found.js +1 -1
  22. package/dist/layouts/home/slots/header.js +5 -6
  23. package/dist/layouts/notebook/page/index.js +1 -1
  24. package/dist/layouts/notebook/slots/header.js +4 -4
  25. package/dist/layouts/notebook/slots/sidebar.js +4 -5
  26. package/dist/layouts/shared/page-actions.js +2 -2
  27. package/dist/layouts/shared/slots/search-trigger.d.ts +1 -1
  28. package/dist/layouts/shared/slots/search-trigger.js +2 -2
  29. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +1 -1
  30. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/controlled.js +1 -1
  31. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
  32. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -1
  33. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -1
  34. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -1
  35. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -1
  36. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -1
  37. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -1
  38. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -1
  39. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -1
  40. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -1
  41. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -1
  42. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -1
  43. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -1
  44. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -1
  45. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -1
  46. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -1
  47. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -1
  48. package/dist/style.css +0 -3
  49. package/package.json +19 -16
  50. package/dist/components/ui/scroll-area.d.ts +0 -8
  51. package/dist/components/ui/scroll-area.js +0 -34
  52. /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
@@ -1 +1 @@
1
- @source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:flex *:flex! *:flex-col *:flex-col! *:gap-0.5! *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:rounded-full --callout-color --color-fd- --color-fd-muted --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --radix-navigation-menu-viewport-height --radix-popover-content-available-height --radix-popover-content-transform-origin --radix-popover-trigger-width --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top -mb-px -me-0.5 -me-2 -mx-px -rotate-90 -top-1.5 -translate-x-1/2 -translate-y-1/2 -z-1 @container @defaultValue @deprecated @fuma-translate/react @keyframes @max-lg:col-span-full @max-xl:hidden @param @radix-ui/react-accordion @radix-ui/react-collapsible @radix-ui/react-dialog @radix-ui/react-navigation-menu @radix-ui/react-popover @radix-ui/react-presence @radix-ui/react-scroll-area @radix-ui/react-tabs @ts-expect-error @typescript-eslint/no-namespace [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about absolute accordion action actions active add advanced algoliaClient align alignItems alignmentBaseline all allowClear allowCopy allowDangerousHtml allowedMode allows alphabet always an anchor and animate-pulse animation another application/json areaRef aria-controls aria-describedby aria-expanded aria-label aria-selected as aside ask assume assumes async at auto await backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based behaviour belongs between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-transparent bind binded bitsLeft black block blocks boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 boundary buffer bundle button buttonVariants by cache cached can case center central change changeLayout checked child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clipPath clone close closeOnRedirect closed cn code col-span-full collapsed collapsible collection color colors column com compact compat compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createMarkdownRenderer createRelativeLink css ctx current currentColor custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary data-[state=closed]:animate-fd-accordion-up data-[state=closed]:animate-fd-collapsible-up data-[state=closed]:animate-fd-dialog-out data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-nav-menu-out data-[state=closed]:animate-fd-popover-out data-[state=hidden]:animate-fd-fade-out data-[state=inactive]:hidden data-[state=open]:animate-fd-accordion-down data-[state=open]:animate-fd-collapsible-down data-[state=open]:animate-fd-dialog-in data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-nav-menu-in data-[state=open]:animate-fd-popover-in data-[state=open]:bg-fd-accent data-[state=open]:bg-fd-accent/50 data-[state=open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-collapsed data-empty data-icon data-line-numbers data-line-numbers-start data-search data-search-full data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description detect dialog dir disabled disabled:bg-fd-secondary disabled:opacity-50 disabled:pointer-events-none disabled:text-fd-secondary-foreground display displayName displayed distance div divide-fd-border divide-x divide-y documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 each element else empty empty:hidden enabled encoded end-2 endIdx endpoint env environment equal error escape eslint-disable-next-line event export extends external extraProps false fd-moving-banner fd-scroll-container fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters finally fixed flex flex-1 flex-col flex-row flex-wrap flexDirection flushSync focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight for forceMount forks formatter formatterOptions found fragment free from full fumadocs fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-y-4 generated ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] group group-data-[state=active]:bg-fd-primary group-data-[state=open]:rotate-180 group-data-[state=open]:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--fd-animated-height) h-(--radix-navigation-menu-viewport-height) h-1.5 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 handle handleThemeChange has-focus-visible:bg-fd-accent hash hashchange hast have header headers heading height hidden hideLocale highlight highlighter hints horizontal hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered href html i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore img import in inPre inTab index infinite info inline inline-flex input inputType inset-0 inset-e-2 inset-s-0 inset-s-3 inset-s-6 inset-x-0 inset-x-2 inset-y-0 inside instanceof instead integration interface intersect invisible is isActive isComposing isFirst isLast isLoading isTabActive isUp it item itemLineLengths itemVariants items items-center js justify-between justify-center keepBackground key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last:rounded-b-xl layer layout leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system line line-through linear link links list list-none listener listeners locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] maskComposite maskImage max-h-(--radix-popover-content-available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-[80svh] max-md:bg-fd-secondary max-md:border max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-screen-sm max-width maximumFractionDigits mb-1 mb-2 md:hidden md:mb-auto md:size-5 md:top-[calc(50%-250px)] mdComponents mdRenderer mdx/types.js me-1 me-2 me-auto menu menuItems mergeRefs message middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module mounted mouse ms-2 ms-auto ms-px mt-1 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto n name namespace nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noopener noreferrer normal normalize not not-last:mb-2 not-prose notation note now null number numbers object observer of offsetPath offsetTop on onChange onClick onCopy onKey onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onPrint onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity-(--opacity,0) opacity-0 open openFromHash option optional options or oramaCloudClient order orientation origin-(--radix-popover-content-transform-origin) origin-[top_center] origin-center original other out outline outline-none output overflow-auto overflow-hidden overflow-x-auto overflow-y-auto override overscroll-contain own owner oxlint-disable-next-line p p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl panel panels parameters params parentId pass passed path pathname paths pb-0 pb-2 pe-2 per performing persist persistent placeholder placeholder:text-fd-muted-foreground please pointerType points populated positions possible powered pre pre-rendering prefetch present prev previous previousRef primary primaryColor primaryTextColor promise promises prompt prop props prose prose-no-margin provide provider ps-1 ps-2 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 px-px py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query questions rainbow rainbowColors raw re-create react react-dom react-hooks/exhaustive-deps react-hooks/rules-of-hooks react-medium-image-zoom ref referenced region registering rehype-raw rehypeCustomElements rehypePlugins rehypeRaw rel relative remarkRehypeOptions remove render renderHighlights renderMarkdown repo repository required resolve resolved resolvedTheme response rest result results return revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rtl:-scale-x-100 rtl:rotate-180 rtl:rotate-90 s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see select-none selected separate separator server set setActive setCollapsed setHover setLoading setMounted setOpen setOpenSearch setSvg setTag setValue shadow-2xl shadow-black/50 shadow-lg shadow-md shadow-sm shiki shikiOptions shortcuts show showAlgolia showOrama shrink-0 side sideOffset sidebar signature simple since single site size size-1 size-3 size-3.5 size-4 size-5 size-6.5 size-9 size-full sizes slots sm solid some source space span specific src stars startIdx state static stay sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth strong style styles success supported supposed sure svg switch switcher system t tab tabIndex table tabs tabsRef tag tagName tags target text text-(--callout-color) text-[0.8125rem] text-[0.9375rem] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-foreground/80 text-fd-muted-foreground text-fd-muted-foreground/50 text-fd-popover-foreground text-fd-popover-foreground/80 text-fd-primary text-fd-primary-foreground text-fd-primary/50 text-fd-secondary-foreground text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent that the their theme themeAriaLabels themeSwitch themeSwitchEnabled themes then this throw thumbBox tier timerRef tip title to toc tocInfo toolbar top top-0 top-1/2 top-2.5 top-3 top-4 touch transform transition-[clip-path] transition-[height] transition-[opacity,offset-distance] transition-[width,height] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger true truncate try type typeof types unchanged undefined underline underlying understand unified unist-util-visit unknown unnecessarily updateAnchor updates upperX url urls us usage use useCopyButton useDocsSearch useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange usePathname useProps useRef useRouter useSearchContext useSidebar useState useTOCItems useTabsGroups useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewport viewportProps visit vite void w w-(--radix-popover-trigger-width) w-0 w-0.5 w-1.5 w-1/4 w-[calc(100%-1rem)] w-fit w-full w-max w-px want warn warning what when where which while white whitespace-nowrap whitespaces width will window with work wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xmlns y y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomMargin");
1
+ @source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:flex *:flex! *:flex-col *:flex-col! *:gap-0.5! *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:rounded-full --callout-color --color-fd- --color-fd-muted --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --radix-navigation-menu-viewport-height --radix-popover-content-available-height --radix-popover-content-transform-origin --radix-popover-trigger-width --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top -mb-px -me-0.5 -me-2 -mx-px -rotate-90 -top-1.5 -translate-x-1/2 -translate-y-1/2 -z-1 @container @defaultValue @deprecated @fuma-translate/react @keyframes @max-lg:col-span-full @max-xl:hidden @param @radix-ui/react-accordion @radix-ui/react-collapsible @radix-ui/react-dialog @radix-ui/react-navigation-menu @radix-ui/react-popover @radix-ui/react-presence @radix-ui/react-scroll-area @radix-ui/react-tabs @ts-expect-error @typescript-eslint/no-namespace [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about absolute accordion action actions active add advanced algoliaClient align alignItems alignmentBaseline all allowClear allowCopy allowDangerousHtml allowedMode allows alphabet always an anchor and animate-pulse animation another application/json areaRef aria-controls aria-describedby aria-expanded aria-label aria-selected as aside ask assume assumes async at auto await backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based behaviour belongs between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-transparent bind binded bitsLeft black block blocks boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 boundary buffer bundle button buttonVariants by cache cached can case center central change changeLayout checked child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clipPath clone close closeOnRedirect closed cn code col-span-full collapsed collapsible collection color colors column com compact compat compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createMarkdownRenderer createRelativeLink css ctx current currentColor custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary data-[state=closed]:animate-fd-accordion-up data-[state=closed]:animate-fd-collapsible-up data-[state=closed]:animate-fd-dialog-out data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-nav-menu-out data-[state=closed]:animate-fd-popover-out data-[state=hidden]:animate-fd-fade-out data-[state=inactive]:hidden data-[state=open]:animate-fd-accordion-down data-[state=open]:animate-fd-collapsible-down data-[state=open]:animate-fd-dialog-in data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-nav-menu-in data-[state=open]:animate-fd-popover-in data-[state=open]:bg-fd-accent data-[state=open]:bg-fd-accent/50 data-[state=open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-collapsed data-empty data-icon data-line-numbers data-line-numbers-start data-search data-search-full data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description detect dialog dir disabled disabled:bg-fd-secondary disabled:opacity-50 disabled:pointer-events-none disabled:text-fd-secondary-foreground display displayName displayed distance div divide-fd-border divide-x divide-y documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 each element else empty empty:hidden enabled encoded end-2 endIdx endpoint env environment equal error escape eslint-disable-next-line event export extends external extraProps false fd-moving-banner fd-scroll-container fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters finally fixed flex flex-1 flex-col flex-row flex-wrap flexDirection flushSync focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight for forceMount forks formatter formatterOptions found fragment free from full fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-y-4 generated ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] group group-data-[state=active]:bg-fd-primary group-data-[state=open]:rotate-180 group-data-[state=open]:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--fd-animated-height) h-(--radix-navigation-menu-viewport-height) h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 handle handleThemeChange has-focus-visible:bg-fd-accent hash hashchange hast have header headers heading height hidden hideLocale highlight highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered href html i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore img import in inPre inTab index infinite info inline inline-flex input inputType inset-0 inset-e-2 inset-s-0 inset-s-3 inset-s-6 inset-x-0 inset-x-2 inset-y-0 inside instanceof instead integration interface intersect invisible is isActive isComposing isFirst isLast isLoading isTabActive isUp it item itemLineLengths itemVariants items items-center js justify-between justify-center keepBackground key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last:rounded-b-xl layer layout leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system line line-through linear link links list list-none listener listeners locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] maskComposite maskImage max-h-(--radix-popover-content-available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-[80svh] max-md:bg-fd-secondary max-md:border max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-screen-sm max-width maximumFractionDigits mb-1 mb-2 md:hidden md:mb-auto md:size-5 md:top-[calc(50%-250px)] mdComponents mdRenderer mdx/types.js me-1 me-2 me-auto menu menuItems mergeRefs message middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module mounted mouse ms-2 ms-auto ms-px mt-1 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto n name names namespace nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noopener noreferrer normal normalize not not-last:mb-2 not-prose notation note now null number numbers object observer of offsetPath offsetTop on onChange onClick onCopy onKey onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onPrint onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity-(--opacity,0) opacity-0 open openFromHash option optional options or oramaCloudClient order origin-(--radix-popover-content-transform-origin) origin-[top_center] origin-center original other out outline outline-none output overflow-auto overflow-hidden overflow-x-auto overflow-y-auto override overscroll-contain own owner oxlint-disable-next-line p p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl panel panels parameters params parentId pass passed path pathname paths pb-0 pb-2 pe-2 per performing persist persistent placeholder placeholder:text-fd-muted-foreground please pointerType points populated positions possible powered pre pre-rendering predate prefetch present prev previous previousRef primary primaryColor primaryTextColor promise promises prompt prop props prose prose-no-margin provide provider ps-1 ps-2 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 px-px py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query questions rainbow rainbowColors raw re-create react react-dom react-hooks/exhaustive-deps react-hooks/rules-of-hooks react-medium-image-zoom ref referenced region registering rehype-raw rehypeCustomElements rehypePlugins rehypeRaw rel relative remarkRehypeOptions remove render renderHighlights renderMarkdown repo repository required resolve resolved resolvedTheme response rest result results return revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rtl:-scale-x-100 rtl:rotate-180 rtl:rotate-90 s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see select-none selected separate separator server set setActive setCollapsed setHover setLoading setMounted setOpen setOpenSearch setSvg setTag setValue shadow-2xl shadow-black/50 shadow-lg shadow-md shadow-sm shiki shikiOptions shortcuts show showAlgolia showOrama shrink-0 side sideOffset sidebar signature simple since single site size size-1 size-3 size-3.5 size-4 size-5 size-6.5 size-9 size-full sizes slots sm solid some source space span specific src stars startIdx state static stay sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth strong style styles success supported supposed sure svg switch switcher system t tab tabIndex table tabs tabsRef tag tagName tags target text text-(--callout-color) text-[0.8125rem] text-[0.9375rem] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-foreground/80 text-fd-muted-foreground text-fd-muted-foreground/50 text-fd-popover-foreground text-fd-popover-foreground/80 text-fd-primary text-fd-primary-foreground text-fd-primary/50 text-fd-secondary-foreground text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent that the their theme themeAriaLabels themeSwitch themeSwitchEnabled themes then this throw thumbBox tier timerRef tip title to toc tocInfo toolbar top top-0 top-1/2 top-2.5 top-3 top-4 touch transform transition-[clip-path] transition-[height] transition-[opacity,offset-distance] transition-[width,height] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger true truncate try type typeof types unchanged undefined underline underlying understand unified unist-util-visit unknown unnecessarily updateAnchor updates upperX url urls us usage use useCopyButton useDocsSearch useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange usePathname useProps useRef useRouter useSearchContext useSidebar useState useTOCItems useTabsGroups useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewport viewportProps visit vite void w w-(--radix-popover-trigger-width) w-0 w-0.5 w-1.5 w-1/4 w-[calc(100%-1rem)] w-fit w-full w-max w-px want warn warning what when where which while white whitespace-nowrap whitespaces width will window with work wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xmlns y y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomMargin");
@@ -57,7 +57,7 @@ function CopyButton({ id }) {
57
57
  type: "button",
58
58
  "aria-label": t("Copy Link", { note: "aria-label" }),
59
59
  className: cn(buttonVariants({
60
- color: "ghost",
60
+ variant: "ghost",
61
61
  className: "text-fd-muted-foreground me-2"
62
62
  })),
63
63
  onClick,
@@ -39,7 +39,7 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
39
39
  "aria-label": t("Close Banner", { note: "aria-label" }),
40
40
  onClick: onClose,
41
41
  className: cn(buttonVariants({
42
- color: "ghost",
42
+ variant: "ghost",
43
43
  className: "absolute inset-e-2 top-1/2 -translate-y-1/2 text-fd-muted-foreground/50",
44
44
  size: "icon-sm"
45
45
  })),
@@ -158,7 +158,7 @@ function SearchDialogClose({ children = "ESC", className, ...props }) {
158
158
  "aria-label": t("Close Search", { note: "aria-label" }),
159
159
  onClick: () => onOpenChange(false),
160
160
  className: cn(buttonVariants({
161
- color: "outline",
161
+ variant: "outline",
162
162
  size: "sm",
163
163
  className: "font-mono text-fd-muted-foreground"
164
164
  }), className),
@@ -1,5 +1,5 @@
1
- import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
- import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/index.js";
1
+ import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
+ import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/index.js";
3
3
  import { ImageProps } from "fumadocs-core/framework";
4
4
  import { ComponentProps } from "react";
5
5
  //#region src/components/image-zoom.d.ts
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
+ import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
3
3
  import "./image-zoom2.css";
4
4
  import { Image } from "fumadocs-core/framework";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { CollapsibleContentProps, CollapsibleTriggerProps } from "../ui/collapsible.js";
2
- import { ScrollArea, ScrollViewport } from "../ui/scroll-area.js";
3
2
  import { LinkProps } from "fumadocs-core/link";
4
3
  import { ComponentProps, PointerEvent, ReactNode, RefObject } from "react";
4
+ import * as ScrollArea from "@radix-ui/react-scroll-area";
5
5
  declare namespace base_d_exports {
6
6
  export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarProviderProps, SidebarSeparator, SidebarTrigger, SidebarViewport, useAutoScroll, useFolder, useFolderDepth, useSidebar };
7
7
  }
@@ -54,8 +54,8 @@ export declare function SidebarContent({ mode: allowedMode, children }: {
54
54
  }) => ReactNode;
55
55
  }): ReactNode;
56
56
  export declare function SidebarViewport({ area, viewport, children }: {
57
- area?: ComponentProps<typeof ScrollArea>;
58
- viewport?: ComponentProps<typeof ScrollViewport>;
57
+ area?: ComponentProps<typeof ScrollArea.Root>;
58
+ viewport?: ComponentProps<typeof ScrollArea.Viewport>;
59
59
  children: ReactNode;
60
60
  }): import("react").JSX.Element;
61
61
  export declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): import("react").JSX.Element | undefined;
@@ -2,7 +2,6 @@
2
2
  import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { cn } from "../../utils/cn.js";
4
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
5
- import { ScrollArea, ScrollViewport } from "../ui/scroll-area.js";
6
5
  import Link from "fumadocs-core/link";
7
6
  import { usePathname } from "fumadocs-core/framework";
8
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -13,6 +12,7 @@ import { useOnChange } from "fumadocs-core/utils/use-on-change";
13
12
  import { useMediaQuery } from "fumadocs-core/utils/use-media-query";
14
13
  import { Presence } from "@radix-ui/react-presence";
15
14
  import scrollIntoView from "scroll-into-view-if-needed";
15
+ import * as ScrollArea from "@radix-ui/react-scroll-area";
16
16
  //#region src/components/sidebar/base.tsx
17
17
  var base_exports = /* @__PURE__ */ __exportAll({
18
18
  SidebarCollapseTrigger: () => SidebarCollapseTrigger,
@@ -107,14 +107,22 @@ function SidebarContent({ mode: allowedMode = "full", children }) {
107
107
  });
108
108
  }
109
109
  function SidebarViewport({ area, viewport, children }) {
110
- return /* @__PURE__ */ jsx(ScrollArea, {
110
+ return /* @__PURE__ */ jsxs(ScrollArea.Root, {
111
+ type: "scroll",
111
112
  ...area,
112
- className: cn("min-h-0 flex-1", area?.className),
113
- children: /* @__PURE__ */ jsx(ScrollViewport, {
114
- ...viewport,
115
- className: cn("*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]", viewport?.className),
116
- children
117
- })
113
+ className: cn("overflow-hidden min-h-0 flex-1", area?.className),
114
+ children: [
115
+ /* @__PURE__ */ jsx(ScrollArea.Viewport, {
116
+ ...viewport,
117
+ className: cn("size-full rounded-[inherit] *:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]", viewport?.className),
118
+ children
119
+ }),
120
+ /* @__PURE__ */ jsx(ScrollArea.Corner, {}),
121
+ /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
122
+ className: "flex h-full w-1.5 select-none data-[state=hidden]:animate-fd-fade-out",
123
+ children: /* @__PURE__ */ jsx(ScrollArea.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-fd-border" })
124
+ })
125
+ ]
118
126
  });
119
127
  }
120
128
  function SidebarDrawerOverlay(props) {
@@ -1,8 +1,8 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  //#region src/components/ui/button.d.ts
3
3
  export declare const buttonVariants: (props?: ({
4
- variant?: "ghost" | "outline" | "primary" | "secondary" | null | undefined;
5
- color?: "ghost" | "outline" | "primary" | "secondary" | null | undefined;
4
+ variant?: "default" | "ghost" | "outline" | "primary" | "secondary" | null | undefined;
5
+ color?: "default" | "ghost" | "outline" | "primary" | "secondary" | null | undefined;
6
6
  size?: "icon" | "icon-sm" | "icon-xs" | "sm" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export type ButtonProps = VariantProps<typeof buttonVariants>;
@@ -1,7 +1,9 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  //#region src/components/ui/button.tsx
3
+ const primary = "bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground";
3
4
  const variants = {
4
- primary: "bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",
5
+ default: primary,
6
+ primary,
5
7
  outline: "border hover:bg-fd-accent hover:text-fd-accent-foreground",
6
8
  ghost: "hover:bg-fd-accent hover:text-fd-accent-foreground",
7
9
  secondary: "border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"
@@ -73,7 +73,7 @@ function EditOnGitHub(props) {
73
73
  rel: "noreferrer noopener",
74
74
  ...props,
75
75
  className: cn(buttonVariants({
76
- color: "secondary",
76
+ variant: "secondary",
77
77
  size: "sm"
78
78
  }), "gap-1.5 not-prose", props.className),
79
79
  children: props.children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Edit, { className: "size-3.5" }), t("Edit on GitHub")] })
@@ -6,7 +6,6 @@ import { clerk_exports } from "../../../../components/toc/clerk.js";
6
6
  import { useTreePath } from "../../../../contexts/tree.js";
7
7
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../../components/ui/collapsible.js";
8
8
  import { useDocsLayout } from "../../client.js";
9
- import "../../index.js";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { ChevronDown, Text } from "lucide-react";
12
11
  import { createContext, use, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "../../../utils/cn.js";
3
3
  import { useDocsLayout } from "../client.js";
4
- import "../index.js";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  import { useEffect, useState } from "react";
7
6
  //#region src/layouts/docs/slots/container.tsx
@@ -25,7 +25,7 @@ function Header(props) {
25
25
  }),
26
26
  slots.sidebar && /* @__PURE__ */ jsx(slots.sidebar.trigger, {
27
27
  className: cn(buttonVariants({
28
- color: "ghost",
28
+ variant: "ghost",
29
29
  size: "icon-sm",
30
30
  className: "p-2"
31
31
  })),
@@ -4,7 +4,6 @@ import { buttonVariants } from "../../../components/ui/button.js";
4
4
  import { mergeRefs } from "../../../utils/merge-refs.js";
5
5
  import { SearchTrigger } from "../../shared/slots/search-trigger.js";
6
6
  import { LinkItem } from "../../shared/client.js";
7
- import "../../shared/index.js";
8
7
  import { SidebarCollapseTrigger as SidebarCollapseTrigger$1, SidebarContent as SidebarContent$1, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, SidebarTrigger as SidebarTrigger$1, SidebarViewport, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
9
8
  import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
10
9
  import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
@@ -46,7 +45,7 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
46
45
  nav?.children,
47
46
  collapsible && /* @__PURE__ */ jsx(SidebarCollapseTrigger, {
48
47
  className: cn(buttonVariants({
49
- color: "ghost",
48
+ variant: "ghost",
50
49
  size: "icon-sm",
51
50
  className: "mb-auto text-fd-muted-foreground"
52
51
  })),
@@ -78,7 +77,7 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
78
77
  item,
79
78
  className: cn(buttonVariants({
80
79
  size: "icon-sm",
81
- color: "ghost"
80
+ variant: "ghost"
82
81
  })),
83
82
  "aria-label": item.label,
84
83
  children: item.icon
@@ -101,7 +100,7 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
101
100
  item,
102
101
  className: cn(buttonVariants({
103
102
  size: "icon-sm",
104
- color: "ghost",
103
+ variant: "ghost",
105
104
  className: "p-2"
106
105
  })),
107
106
  "aria-label": item.label,
@@ -112,7 +111,7 @@ function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
112
111
  slots.themeSwitch && /* @__PURE__ */ jsx(slots.themeSwitch, { className: "p-0" }),
113
112
  /* @__PURE__ */ jsx(SidebarTrigger, {
114
113
  className: cn(buttonVariants({
115
- color: "ghost",
114
+ variant: "ghost",
116
115
  size: "icon-sm",
117
116
  className: "p-2"
118
117
  })),
@@ -163,7 +162,7 @@ function SidebarContent({ ref: refProp, className, children, ...props }) {
163
162
  className: cn("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] inset-s-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10", (!collapsed || hovered) && "pointer-events-none opacity-0"),
164
163
  children: [/* @__PURE__ */ jsx(SidebarCollapseTrigger$1, {
165
164
  className: cn(buttonVariants({
166
- color: "ghost",
165
+ variant: "ghost",
167
166
  size: "icon-sm",
168
167
  className: "rounded-lg"
169
168
  })),
@@ -82,7 +82,7 @@ function DocsLayout(props) {
82
82
  item,
83
83
  className: cn(buttonVariants({
84
84
  size: "icon-sm",
85
- color: "ghost"
85
+ variant: "ghost"
86
86
  })),
87
87
  "aria-label": item.label,
88
88
  children: item.icon
@@ -53,7 +53,7 @@ function EditOnGitHub(props) {
53
53
  rel: "noreferrer noopener",
54
54
  ...props,
55
55
  className: cn(buttonVariants({
56
- color: "secondary",
56
+ variant: "secondary",
57
57
  size: "sm"
58
58
  }), "gap-1.5 not-prose", props.className),
59
59
  children: props.children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Edit, { className: "size-3.5" }), t("Edit on GitHub")] })
@@ -41,7 +41,7 @@ function EditOnGitHub(props) {
41
41
  rel: "noreferrer noopener",
42
42
  ...props,
43
43
  className: cn(buttonVariants({
44
- color: "secondary",
44
+ variant: "secondary",
45
45
  size: "sm"
46
46
  }), "gap-1.5 not-prose", props.className),
47
47
  children: props.children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Edit, { className: "size-3.5" }), t("Edit on GitHub")] })
@@ -27,7 +27,7 @@ function Header({ className, ...props }) {
27
27
  children: /* @__PURE__ */ jsx(SidebarIcon, {})
28
28
  }),
29
29
  slots.searchTrigger && /* @__PURE__ */ jsx(slots.searchTrigger.sm, {
30
- color: "secondary",
30
+ variant: "secondary",
31
31
  size: "icon",
32
32
  className: cn(baseVariants, "size-12 shrink-0 md:hidden")
33
33
  }),
@@ -4,7 +4,6 @@ import { buttonVariants } from "../../../components/ui/button.js";
4
4
  import { useTreeContext, useTreePath } from "../../../contexts/tree.js";
5
5
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../components/ui/collapsible.js";
6
6
  import { isLinkItemActive } from "../../shared/index.js";
7
- import { ScrollArea, ScrollViewport } from "../../../components/ui/scroll-area.js";
8
7
  import { SidebarDrawerContent, SidebarDrawerOverlay, SidebarProvider as SidebarProvider$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
9
8
  import { LayoutTabsDropdown } from "../layout-tabs.js";
10
9
  import { useGlassLayout } from "../index.js";
@@ -16,6 +15,7 @@ import { cva } from "class-variance-authority";
16
15
  import { cloneElement, createContext, use, useState } from "react";
17
16
  import { useTranslations } from "@fuma-translate/react";
18
17
  import { useOnChange } from "fumadocs-core/utils/use-on-change";
18
+ import * as ScrollArea from "@radix-ui/react-scroll-area";
19
19
  //#region src/layouts/glass/slots/sidebar.tsx
20
20
  const itemTriggerVariants = cva("inline-flex text-sm items-center gap-2 rounded-lg px-2.5 py-2 md:py-1.5 [&_svg]:size-4 outline-none focus-visible:ring-2 focus-visible:ring-fd-ring", { variants: { active: {
21
21
  true: "bg-fd-primary/10 text-fd-primary",
@@ -128,12 +128,20 @@ function Sidebar({ className, children, ...props }) {
128
128
  tabs,
129
129
  className: "min-w-0 bg-fd-secondary text-fd-secondary-foreground rounded-xl px-2.5 py-2 [&_svg]:size-4 border rounded-xl shadow-sm mx-2 mt-2.5 empty:hidden"
130
130
  }),
131
- /* @__PURE__ */ jsx(ScrollArea, {
132
- className: "min-h-0 flex-1",
133
- children: /* @__PURE__ */ jsxs(ScrollViewport, {
134
- className: "flex flex-col p-2 [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))]",
135
- children: [menuItems.map((item, i) => item.type !== "icon" && /* @__PURE__ */ jsx(SidebarLinkItem, { item }, i)), root.children.map((item, i) => cloneElement(renderNode(item), { key: i }))]
136
- })
131
+ /* @__PURE__ */ jsxs(ScrollArea.Root, {
132
+ type: "scroll",
133
+ className: "overflow-hidden min-h-0 flex-1",
134
+ children: [
135
+ /* @__PURE__ */ jsxs(ScrollArea.Viewport, {
136
+ className: "size-full rounded-[inherit] flex flex-col p-2 [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))]",
137
+ children: [menuItems.map((item, i) => item.type !== "icon" && /* @__PURE__ */ jsx(SidebarLinkItem, { item }, i)), root.children.map((item, i) => cloneElement(renderNode(item), { key: i }))]
138
+ }),
139
+ /* @__PURE__ */ jsx(ScrollArea.Corner, {}),
140
+ /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
141
+ className: "flex h-full w-1.5 select-none data-[state=hidden]:animate-fd-fade-out",
142
+ children: /* @__PURE__ */ jsx(ScrollArea.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-fd-border" })
143
+ })
144
+ ]
137
145
  }),
138
146
  children
139
147
  ]
@@ -30,7 +30,7 @@ function DefaultNotFound() {
30
30
  href: "/",
31
31
  className: cn(buttonVariants({
32
32
  className: "mt-4 gap-1.5",
33
- variant: "primary"
33
+ variant: "default"
34
34
  })),
35
35
  children: [/* @__PURE__ */ jsx(HomeIcon, { className: "size-4" }), t("Back to Home")]
36
36
  })
@@ -2,7 +2,6 @@
2
2
  import { cn } from "../../../utils/cn.js";
3
3
  import { buttonVariants } from "../../../components/ui/button.js";
4
4
  import { LinkItem } from "../../shared/client.js";
5
- import "../../shared/index.js";
6
5
  import { useIsScrollTop } from "../../../utils/use-is-scroll-top.js";
7
6
  import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport } from "../../../components/ui/navigation-menu.js";
8
7
  import { useHomeLayout } from "../index.js";
@@ -17,11 +16,11 @@ const navItemVariants = cva("[&_svg]:size-4", {
17
16
  variants: { variant: {
18
17
  main: "inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",
19
18
  button: buttonVariants({
20
- color: "secondary",
19
+ variant: "secondary",
21
20
  className: "gap-1.5"
22
21
  }),
23
22
  icon: buttonVariants({
24
- color: "ghost",
23
+ variant: "ghost",
25
24
  size: "icon"
26
25
  })
27
26
  } },
@@ -73,7 +72,7 @@ function Header(props) {
73
72
  "aria-label": t("Toggle Menu", { note: "aria-label" }),
74
73
  className: cn(buttonVariants({
75
74
  size: "icon",
76
- color: "ghost",
75
+ variant: "ghost",
77
76
  className: "group [&_svg]:size-5.5"
78
77
  })),
79
78
  onPointerMove: nav?.enableHoverToOpen ? void 0 : (e) => e.preventDefault(),
@@ -223,10 +222,10 @@ function MobileNavigationMenuLinkItem({ item, ...props }) {
223
222
  main: "inline-flex items-center gap-2 py-1.5 transition-colors hover:text-fd-popover-foreground/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",
224
223
  icon: buttonVariants({
225
224
  size: "icon",
226
- color: "ghost"
225
+ variant: "ghost"
227
226
  }),
228
227
  button: buttonVariants({
229
- color: "secondary",
228
+ variant: "secondary",
230
229
  className: "gap-1.5 [&_svg]:size-4"
231
230
  })
232
231
  }[item.type ?? "main"], props.className),
@@ -73,7 +73,7 @@ function EditOnGitHub(props) {
73
73
  rel: "noreferrer noopener",
74
74
  ...props,
75
75
  className: cn(buttonVariants({
76
- color: "secondary",
76
+ variant: "secondary",
77
77
  size: "sm"
78
78
  }), "gap-1.5 not-prose", props.className),
79
79
  children: props.children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Edit, { className: "size-3.5" }), t("Edit on GitHub")] })
@@ -35,7 +35,7 @@ function Header(props) {
35
35
  children: [
36
36
  sidebarCollapsible && slots.sidebar && navMode === "auto" && /* @__PURE__ */ jsx(slots.sidebar.collapseTrigger, {
37
37
  className: cn(buttonVariants({
38
- color: "ghost",
38
+ variant: "ghost",
39
39
  size: "icon-sm"
40
40
  }), "-ms-1.5 text-fd-muted-foreground data-[collapsed=false]:hidden max-md:hidden"),
41
41
  children: /* @__PURE__ */ jsx(Sidebar, {})
@@ -59,7 +59,7 @@ function Header(props) {
59
59
  item,
60
60
  className: cn(buttonVariants({
61
61
  size: "icon-sm",
62
- color: "ghost"
62
+ variant: "ghost"
63
63
  }), "text-fd-muted-foreground max-lg:hidden"),
64
64
  "aria-label": item.label,
65
65
  children: item.icon
@@ -71,7 +71,7 @@ function Header(props) {
71
71
  className: "p-2"
72
72
  }), slots.sidebar && /* @__PURE__ */ jsx(slots.sidebar.trigger, {
73
73
  className: cn(buttonVariants({
74
- color: "ghost",
74
+ variant: "ghost",
75
75
  size: "icon-sm",
76
76
  className: "p-2 -me-1.5"
77
77
  })),
@@ -85,7 +85,7 @@ function Header(props) {
85
85
  slots.themeSwitch && /* @__PURE__ */ jsx(slots.themeSwitch, {}),
86
86
  sidebarCollapsible && slots.sidebar && navMode === "top" && /* @__PURE__ */ jsx(slots.sidebar.collapseTrigger, {
87
87
  className: cn(buttonVariants({
88
- color: "secondary",
88
+ variant: "secondary",
89
89
  size: "icon-sm"
90
90
  }), "text-fd-muted-foreground rounded-full -me-1.5"),
91
91
  children: /* @__PURE__ */ jsx(Sidebar, {})
@@ -3,7 +3,6 @@ import { cn } from "../../../utils/cn.js";
3
3
  import { buttonVariants } from "../../../components/ui/button.js";
4
4
  import { mergeRefs } from "../../../utils/merge-refs.js";
5
5
  import { LinkItem } from "../../shared/client.js";
6
- import "../../shared/index.js";
7
6
  import { SidebarCollapseTrigger as SidebarCollapseTrigger$1, SidebarContent as SidebarContent$1, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, SidebarTrigger as SidebarTrigger$1, SidebarViewport, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
8
7
  import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
9
8
  import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
@@ -179,7 +178,7 @@ function Sidebar({ banner, footer, components, collapsible = true, ...rest }) {
179
178
  nav?.children,
180
179
  collapsible && /* @__PURE__ */ jsx(SidebarCollapseTrigger, {
181
180
  className: cn(buttonVariants({
182
- color: "ghost",
181
+ variant: "ghost",
183
182
  size: "icon-sm",
184
183
  className: "mt-px mb-auto text-fd-muted-foreground"
185
184
  })),
@@ -197,7 +196,7 @@ function Sidebar({ banner, footer, components, collapsible = true, ...rest }) {
197
196
  item,
198
197
  className: cn(buttonVariants({
199
198
  size: "icon-sm",
200
- color: "ghost",
199
+ variant: "ghost",
201
200
  className: "lg:hidden"
202
201
  })),
203
202
  "aria-label": item.label,
@@ -211,7 +210,7 @@ function Sidebar({ banner, footer, components, collapsible = true, ...rest }) {
211
210
  renderHeader({ children: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SidebarTrigger, {
212
211
  className: cn(buttonVariants({
213
212
  size: "icon-sm",
214
- color: "ghost",
213
+ variant: "ghost",
215
214
  className: "ms-auto text-fd-muted-foreground"
216
215
  })),
217
216
  children: /* @__PURE__ */ jsx(X, {})
@@ -224,7 +223,7 @@ function Sidebar({ banner, footer, components, collapsible = true, ...rest }) {
224
223
  item,
225
224
  className: cn(buttonVariants({
226
225
  size: "icon-sm",
227
- color: "ghost"
226
+ variant: "ghost"
228
227
  }), "text-fd-muted-foreground lg:hidden", i === iconLinks.length - 1 && "me-auto"),
229
228
  "aria-label": item.label,
230
229
  children: item.icon
@@ -33,7 +33,7 @@ function MarkdownCopyButton({ markdownUrl, ...props }) {
33
33
  onClick,
34
34
  ...props,
35
35
  className: cn(buttonVariants({
36
- color: "secondary",
36
+ variant: "secondary",
37
37
  size: "sm",
38
38
  className: "gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"
39
39
  }), props.className),
@@ -172,7 +172,7 @@ function ViewOptionsPopover({ markdownUrl, githubUrl, ...props }) {
172
172
  return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsxs(PopoverTrigger, {
173
173
  ...props,
174
174
  className: cn(buttonVariants({
175
- color: "secondary",
175
+ variant: "secondary",
176
176
  size: "sm"
177
177
  }), "gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground", props.className),
178
178
  children: [props.children ?? t("Open"), /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 text-fd-muted-foreground" })]
@@ -4,7 +4,7 @@ import { ComponentProps } from "react";
4
4
  export interface SearchTriggerProps extends Omit<ComponentProps<'button'>, 'color'>, ButtonProps {
5
5
  hideIfDisabled?: boolean;
6
6
  }
7
- export declare function SearchTrigger({ hideIfDisabled, size, color, ...props }: SearchTriggerProps): import("react").JSX.Element | null;
7
+ export declare function SearchTrigger({ hideIfDisabled, size, color, variant, ...props }: SearchTriggerProps): import("react").JSX.Element | null;
8
8
  export interface FullSearchTriggerProps extends ComponentProps<'button'> {
9
9
  hideIfDisabled?: boolean;
10
10
  }
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Search } from "lucide-react";
7
7
  import { useTranslations } from "@fuma-translate/react";
8
8
  //#region src/layouts/shared/slots/search-trigger.tsx
9
- function SearchTrigger({ hideIfDisabled, size = "icon-sm", color = "ghost", ...props }) {
9
+ function SearchTrigger({ hideIfDisabled, size = "icon-sm", color, variant = color ?? "ghost", ...props }) {
10
10
  const { setOpenSearch, enabled } = useSearchContext();
11
11
  const t = useTranslations({ note: "search trigger" });
12
12
  if (hideIfDisabled && !enabled) return null;
@@ -14,7 +14,7 @@ function SearchTrigger({ hideIfDisabled, size = "icon-sm", color = "ghost", ...p
14
14
  type: "button",
15
15
  className: cn(buttonVariants({
16
16
  size,
17
- color
17
+ variant
18
18
  }), props.className),
19
19
  "data-search": "",
20
20
  "aria-label": t("Open Search", { note: "aria-label" }),
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.d.ts
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/controlled.d.ts
3
3
  type ModalState = 'LOADED' | 'LOADING' | 'UNLOADED' | 'UNLOADING';
4
4
  export interface ControlledProps {
5
5
  a11yNameButtonUnzoom?: string;
@@ -6,7 +6,7 @@ import { getStyleGhost } from "./utils/get-style-ghost.js";
6
6
  import { getStyleModalImg } from "./utils/get-style-modal-img.js";
7
7
  import React from "react";
8
8
  import ReactDOM from "react-dom";
9
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.js
9
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/controlled.js
10
10
  const IMAGE_QUERY = [
11
11
  "img",
12
12
  "svg",
@@ -1,5 +1,5 @@
1
1
  import { ControlledProps } from "./controlled.js";
2
2
  import React from "react";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
4
4
  export type UncontrolledProps = Omit<ControlledProps, 'isZoomed'>;
5
5
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { Controlled } from "./controlled.js";
2
2
  import React from "react";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js
4
4
  function Uncontrolled({ onZoomChange, ...props }) {
5
5
  const [isZoomed, setIsZoomed] = React.useState(false);
6
6
  const handleZoomChange = React.useCallback((value, { event }) => {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
2
2
  const adjustSvgIDs = (svgEl) => {
3
3
  const newIdSuffix = "-zoom";
4
4
  const attrs = [
@@ -1,6 +1,6 @@
1
1
  import { getScale } from "./get-scale.js";
2
2
  import { parsePosition } from "./parse-position.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
4
4
  const computePositionedStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, position, targetHeight, targetWidth, visibleHeight, visibleWidth }) => {
5
5
  const [posLeft = "50%", posTop = "50%"] = position.split(" ");
6
6
  const posX = parsePosition(posLeft, containerWidth - visibleWidth);
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
2
2
  function isElement(el) {
3
3
  if (typeof Element === "undefined") return false;
4
4
  return el instanceof Element;
@@ -1,6 +1,6 @@
1
1
  import { parsePosition } from "./parse-position.js";
2
2
  import { computePositionedStyle } from "./compute-positioned-style.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
4
4
  const getDivImgStyle = ({ backgroundPosition, backgroundSize, containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
5
5
  const base = {
6
6
  containerHeight,
@@ -1,5 +1,5 @@
1
1
  import { testImg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
3
3
  const getImgAlt = (imgEl) => {
4
4
  if (imgEl !== null) {
5
5
  if (testImg(imgEl)) return imgEl.alt;
@@ -1,6 +1,6 @@
1
1
  import { getScale } from "./get-scale.js";
2
2
  import { computePositionedStyle } from "./compute-positioned-style.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
4
4
  const getImgObjectFitStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, objectFit: objectFitParam, objectPosition, offset, targetHeight, targetWidth }) => {
5
5
  let resolvedObjectFit = objectFitParam;
6
6
  if (resolvedObjectFit === "scale-down") {
@@ -1,5 +1,5 @@
1
1
  import { getScale } from "./get-scale.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
3
3
  const getImgRegularStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
4
4
  const scale = getScale({
5
5
  containerHeight,
@@ -1,5 +1,5 @@
1
1
  import { testDiv, testImg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
3
3
  const URL_REGEX = /url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/;
4
4
  const getImgSrc = (imgEl) => {
5
5
  if (imgEl !== null) {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
2
2
  const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, userTransform, width }) => {
3
3
  let centeredUserTransform = "";
4
4
  if (userTransform !== "none" && userTransform !== "") {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
2
2
  const getScaleToWindow = ({ height, offset, width }) => Math.min((window.innerWidth - offset * 2) / width, (window.innerHeight - offset * 2) / height);
3
3
  const getScaleToWindowMax = ({ containerHeight, containerWidth, offset, targetHeight, targetWidth }) => {
4
4
  const scale = getScaleToWindow({
@@ -1,5 +1,5 @@
1
1
  import { testSvg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
3
3
  const getStyleGhost = (imgEl) => {
4
4
  if (imgEl == null) return {};
5
5
  if (testSvg(imgEl)) {
@@ -5,7 +5,7 @@ import { getDivImgStyle } from "./get-div-img-style.js";
5
5
  import { getModalImgTransform } from "./get-modal-img-transform.js";
6
6
  import { getTargetDimension } from "./get-target-dimension.js";
7
7
  import { testHasScalableSrc } from "./test-has-scalable-src.js";
8
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
8
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
9
9
  const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, offset, shouldRefresh, targetEl }) => {
10
10
  const hasScalableSrc = testHasScalableSrc({
11
11
  hasZoomImg,
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
2
2
  const getTargetDimension = ({ fallback, natural }) => natural !== void 0 && natural !== 0 ? natural : fallback;
3
3
  //#endregion
4
4
  export { getTargetDimension };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
2
2
  const parsePosition = (position, relativeNum) => {
3
3
  const positionNum = parseFloat(position);
4
4
  return position.endsWith("%") ? relativeNum * positionNum / 100 : positionNum;
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
2
2
  const SRC_SVG_REGEX = /\.svg$/i;
3
3
  const testHasScalableSrc = ({ hasZoomImg, imgSrc, isSvg }) => isSvg || imgSrc?.slice(0, 18) === "data:image/svg+xml" || hasZoomImg || imgSrc !== void 0 && SRC_SVG_REGEX.test(imgSrc);
4
4
  //#endregion
package/dist/style.css CHANGED
@@ -1017,9 +1017,6 @@
1017
1017
  .h-0 {
1018
1018
  height: 0px;
1019
1019
  }
1020
- .h-1\.5 {
1021
- height: calc(var(--spacing) * 1.5);
1022
- }
1023
1020
  .h-6 {
1024
1021
  height: calc(var(--spacing) * 6);
1025
1022
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "16.15.10",
3
+ "version": "16.15.12",
4
4
  "description": "The Radix UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -21,6 +21,10 @@
21
21
  "dist"
22
22
  ],
23
23
  "type": "module",
24
+ "sideEffects": [
25
+ "./css/**/*.css",
26
+ "./dist/**/*.css"
27
+ ],
24
28
  "exports": {
25
29
  "./components/accordion": "./dist/components/accordion.js",
26
30
  "./components/banner": "./dist/components/banner.js",
@@ -55,7 +59,6 @@
55
59
  "./components/ui/collapsible": "./dist/components/ui/collapsible.js",
56
60
  "./components/ui/navigation-menu": "./dist/components/ui/navigation-menu.js",
57
61
  "./components/ui/popover": "./dist/components/ui/popover.js",
58
- "./components/ui/scroll-area": "./dist/components/ui/scroll-area.js",
59
62
  "./components/ui/tabs": "./dist/components/ui/tabs.js",
60
63
  "./contexts/i18n": "./dist/contexts/i18n.js",
61
64
  "./contexts/search": "./dist/contexts/search.js",
@@ -135,6 +138,7 @@
135
138
  },
136
139
  "dependencies": {
137
140
  "@fuma-translate/react": "^1.0.2",
141
+ "@fumadocs/tailwind": "0.1.2",
138
142
  "@radix-ui/react-accordion": "^1.2.20",
139
143
  "@radix-ui/react-collapsible": "^1.1.20",
140
144
  "@radix-ui/react-dialog": "^1.1.23",
@@ -146,43 +150,42 @@
146
150
  "@radix-ui/react-slot": "^1.3.3",
147
151
  "@radix-ui/react-tabs": "^1.1.21",
148
152
  "class-variance-authority": "^0.7.1",
149
- "cn": "^0.2.6",
150
- "lucide-react": "^1.43.0",
151
- "motion": "^13.2.0",
153
+ "cn": "^0.3.0",
154
+ "lucide-react": "^1.47.0",
155
+ "motion": "^13.4.0",
152
156
  "next-themes": "^0.4.6",
153
157
  "react-remove-scroll": "^2.7.2",
154
158
  "rehype-raw": "^7.0.0",
155
159
  "scroll-into-view-if-needed": "^3.1.0",
156
160
  "shiki": "^4.4.3",
157
- "unist-util-visit": "^5.1.0",
158
- "@fumadocs/tailwind": "0.1.1"
161
+ "unist-util-visit": "^5.1.0"
159
162
  },
160
163
  "devDependencies": {
164
+ "@fumadocs/cli": "1.6.1",
161
165
  "@tailwindcss/cli": "^4.3.3",
162
166
  "@tailwindcss/oxide": "^4.3.3",
163
167
  "@tsdown/css": "^0.23.0",
164
168
  "@types/hast": "^3.0.5",
165
169
  "@types/mdx": "^2.0.14",
166
- "@types/node": "^26.5.0",
167
- "@types/react": "^19.2.18",
168
- "@types/react-dom": "^19.2.7",
170
+ "@types/node": "^26.6.1",
171
+ "@types/react": "^19.3.0",
172
+ "@types/react-dom": "^19.3.0",
169
173
  "fuma-cli": "^0.1.1",
174
+ "fumadocs-core": "16.15.12",
170
175
  "react-medium-image-zoom": "^5.4.9",
171
176
  "tailwindcss": "^4.3.3",
177
+ "tsconfig": "0.0.0",
172
178
  "tsdown": "0.23.0",
173
- "unified": "^11.0.5",
174
- "@fumadocs/cli": "1.6.0",
175
- "fumadocs-core": "16.15.10",
176
- "tsconfig": "0.0.0"
179
+ "unified": "^11.0.5"
177
180
  },
178
181
  "peerDependencies": {
179
182
  "@types/mdx": "*",
180
183
  "@types/react": "*",
184
+ "fumadocs-core": "16.15.12",
181
185
  "next": "16.x.x",
182
186
  "react": "^19.2.0",
183
187
  "react-dom": "^19.2.0",
184
- "takumi-js": "*",
185
- "fumadocs-core": "16.15.10"
188
+ "takumi-js": "*"
186
189
  },
187
190
  "peerDependenciesMeta": {
188
191
  "next": {
@@ -1,8 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as Primitive from "@radix-ui/react-scroll-area";
3
- //#region src/components/ui/scroll-area.d.ts
4
- export declare function ScrollArea({ className, children, ...props }: React$1.ComponentProps<typeof Primitive.Root>): React$1.JSX.Element;
5
- export declare function ScrollViewport({ className, children, ...props }: React$1.ComponentProps<typeof Primitive.Viewport>): React$1.JSX.Element;
6
- export declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof Primitive.Scrollbar>): React$1.JSX.Element;
7
- export type ScrollAreaProps = Primitive.ScrollAreaProps;
8
- //#endregion
@@ -1,34 +0,0 @@
1
- import { cn } from "../../utils/cn.js";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import "react";
4
- import * as Primitive from "@radix-ui/react-scroll-area";
5
- //#region src/components/ui/scroll-area.tsx
6
- function ScrollArea({ className, children, ...props }) {
7
- return /* @__PURE__ */ jsxs(Primitive.Root, {
8
- type: "scroll",
9
- className: cn("overflow-hidden", className),
10
- ...props,
11
- children: [
12
- children,
13
- /* @__PURE__ */ jsx(Primitive.Corner, {}),
14
- /* @__PURE__ */ jsx(ScrollBar, { orientation: "vertical" })
15
- ]
16
- });
17
- }
18
- function ScrollViewport({ className, children, ...props }) {
19
- return /* @__PURE__ */ jsx(Primitive.Viewport, {
20
- className: cn("size-full rounded-[inherit]", className),
21
- ...props,
22
- children
23
- });
24
- }
25
- function ScrollBar({ className, orientation = "vertical", ...props }) {
26
- return /* @__PURE__ */ jsx(Primitive.Scrollbar, {
27
- orientation,
28
- className: cn("flex select-none data-[state=hidden]:animate-fd-fade-out", orientation === "vertical" && "h-full w-1.5", orientation === "horizontal" && "h-1.5 flex-col", className),
29
- ...props,
30
- children: /* @__PURE__ */ jsx(Primitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-fd-border" })
31
- });
32
- }
33
- //#endregion
34
- export { ScrollArea, ScrollBar, ScrollViewport };