fumadocs-ui 16.17.10 → 16.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/generated/glass.css +1 -1
- package/css/generated/shared.css +1 -1
- package/dist/.translations/index.d.ts +1 -0
- package/dist/.translations/keys.js +1 -0
- package/dist/components/heading.js +1 -1
- package/dist/components/sidebar/base.js +15 -0
- package/dist/components/tabs.js +1 -1
- package/dist/components/toc/clerk.js +3 -3
- package/dist/components/toc/default.js +5 -5
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +2 -2
- package/dist/layouts/docs/client.js +2 -1
- package/dist/layouts/glass/index.js +2 -1
- package/dist/layouts/glass/page/index.js +1 -0
- package/dist/layouts/notebook/client.js +2 -1
- package/dist/layouts/shared/client.js +10 -1
- package/dist/layouts/shared/page-actions.js +1 -1
- package/dist/layouts/shared/slots/language-select.js +2 -3
- package/dist/mdx.server.js +1 -1
- package/dist/page.js +1 -1
- package/dist/style.css +3 -0
- package/package.json +5 -5
package/css/generated/glass.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!footer --fd-header-height --fd-left-width --fd-main-width --fd-right-width --row --width -me-1.5 -mt-1.5 -mx-1 -translate-x-[280px] @default @sm:max-w-[200px] [--fd-left-width:0px] [--fd-main-width:900px] [--fd-right-width:0px] [--row:calc(3*var(--spacing))] [--row:calc(6*var(--spacing))] [grid-area:left-margin/left-margin/right/right] [grid-area:left] [grid-area:main] [grid-area:right/right-margin/right/right] [grid-area:right] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))] [mask-image:radial-gradient(circle_at_center_right,white,white_200px,transparent_500px)] aiChat article autoScroll available backdrop-blur-sm
|
|
1
|
+
@source inline("!footer --fd-header-height --fd-left-width --fd-main-width --fd-right-width --row --width -me-1.5 -mt-1.5 -mx-1 -translate-x-[280px] @default @sm:max-w-[200px] [--fd-left-width:0px] [--fd-main-width:900px] [--fd-right-width:0px] [--row:calc(3*var(--spacing))] [--row:calc(6*var(--spacing))] [grid-area:left-margin/left-margin/right/right] [grid-area:left] [grid-area:main] [grid-area:right/right-margin/right/right] [grid-area:right] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))] [mask-image:radial-gradient(circle_at_center_right,white,white_200px,transparent_500px)] aiChat article autoScroll available backdrop-blur-sm baseVariants bg-fd-muted-foreground/50 bg-fd-popover/80 clientX collapse contentProps data-[active=false]:hover:text-fd-accent-foreground data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-sidebar-in data-fd-full defaultSlots defaultTabs edit exitTimerRef fd-glass-layout first:mt-0 flex-row-reverse font-semibold footer footerList fumadocs-core/breadcrumb getBreadcrumbItemsFromPath grid-cols-1 gridTemplate gridTemplateRows h-0 h-6 h-8 h-[calc(100dvh---spacing(4))] handles hover hover:decoration-dashed hover:decoration-fd-muted-foreground hover:opacity-80 hover:underline hover:underline-offset-4 inAnimation including information innerWidth inset-e-0 isLayoutTabActive itemTriggerVariants items-start justify-end justify-self-end layout:[--fd-main-width:1200px] leaves left left-margin leftSpace lg linkItems longer max-md:bg-linear-to-t max-md:bottom-0 max-md:from-fd-background max-md:h-16 max-md:mt-auto max-md:pb-4 max-md:ps-[calc(--spacing(1.5)-1px)] max-md:w-4 max-w-[calc(100vw-3rem)] max-xl:-translate-y-1/2 max-xl:bg-fd-popover max-xl:end-1 max-xl:grid-cols-[calc(240px---spacing(6))] max-xl:mask-none max-xl:max-h-[calc(100dvh---spacing(32))] max-xl:overflow-clip max-xl:p-3 max-xl:ps-[calc(--spacing(2.5)-1px)] max-xl:rounded-xl max-xl:shadow-md max-xl:text-fd-popover-foreground max-xl:top-1/2 max-xl:w-6 max-xl:w-[240px] mb-8 md:bg-linear-to-b md:from-fd-background md:h-(--fd-header-height) md:layout:[--fd-header-height:--spacing(12)] md:layout:[--fd-left-width:0px] md:layout:[--fd-left-width:280px] md:layout:[--fd-right-width:12px] md:pb-8 md:pt-16 md:pt-2 md:px-2 md:py-1.5 md:top-0 min-h-dvh mobile mt-2 mt-2.5 mx-2 my-2 nd-page nd-toc nd-toc-title no onPointerDown opacity-100 overflow-x-clip overflow-y-hidden p-6 pagination pb-16 pb-4 pe-3 pe-3.5 pen pointer pointer-events-none prose-xs provided ps-2.5 ps-3 ps-4.5 pt-2 pt-4 reuse right right-margin rightIcon setDate setInAnimation setMobileOpen shadow-fd-background shouldOpen size-10 size-12 size-3.5! size-4! text-[1.75em] text-end text-fd-primary/80 timeout timezone top-2 transition-[background-color,width,height] transition-[grid-template-rows] transition-[opacity,height] transition-[width,padding] transitionTimerRef typography under unlisted updated useBaseSlots useFooterItems useGlassLayout w-(--width) w-[360px] w-[calc(280px---spacing(2))] we well xl:[@media(hover:none)]:[--row:calc(6*var(--spacing))] xl:[@media(hover:none)]:h-6 xl:[@media(hover:none)]:h-px xl:[@media(hover:none)]:opacity-100 xl:[@media(hover:none)]:pointer-events-auto xl:[@media(hover:none)]:w-(--width) xl:bg-fd-popover xl:border xl:flex-row-reverse xl:h-[calc(100dvh---spacing(10))] xl:h-[calc(100dvh-var(--fd-header-height)---spacing(4))] xl:hidden xl:items-center xl:items-end xl:layout:[--fd-right-width:240px] xl:me-2 xl:pe-4 xl:rounded-2xl xl:shadow-sm xl:sticky xl:text-end xl:top-10 xl:top-[calc(var(--fd-header-height)+--spacing(2))] z-10 z-20 z-30");
|
package/css/generated/shared.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex! *:flex-col *:flex-col! *:gap-0.5! *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --callout-color --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --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 -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 [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [clip-path:polygon(0_0,100%_0,100%_0,0_0)] [container-type:size] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allowedMode allows alphabet alt altKey always an anchor anchors and animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based became before behavior behaviour behind belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover 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 boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 boundaries boundary box buffer bundle button buttonVariants by cache cached callbacks called can canonical caption cards case cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code codeblock col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatible component components composedRef config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink createShikiHighlighter css ctx current currentColor currentSrc cursor-default cursor-zoom-out curve 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-highlight-ignore 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 desktop detect dialog dir direction disabled disabled:bg-fd-secondary disabled:opacity-50 disabled:pointer-events-none disabled:text-fd-secondary-foreground discard display displayName displayed div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 during each ease-in-out ease-out element else empty empty:hidden enabled encoded end end-2 endpoint env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed fallback false fd-lightbox fd-moving-banner fd-scroll-container fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus 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 forces forks formatter formatterOptions found 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 g gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground 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-(--fd-animated-height) h-(--radix-navigation-menu-viewport-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter highlights hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index infinite info infos initial inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-0 inset-x-2 inset-y-0 inside instance instanceof instant instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isTabActive isUp it item itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keeps key keyCode keydown keys l0 l1 l2 label lags lang language languageSelect languages large last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear link links list list-none listbox listener listeners loading locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 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)] maskComposite maskImage matches max-h-(--radix-popover-content-available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-[80svh] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto ms-px mt-1 mt-4 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto name names namespace naturalHeight naturalWidth 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 noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offset offsetDistance offsetHeight offsetPath offsetTop on onCancel onChange onClick onClose onCopy onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity opacity-0 open openFromHash opened option optional options or order origin-(--radix-popover-content-transform-origin) origin-[top_center] origin-center original other out outline outline-none output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parent parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please pointerType points polite populated pos position positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch present prev preventScroll previous primary primaryColor primaryTextColor production promise promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 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 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced region register registering rel relative remove render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see segment select-none selected separate separator server set setActive setCollapsed setHover setLoading setMounted setOpen setOpenSearch setSlides setTag setValue shadow-2xl shadow-black/50 shadow-lg shadow-md shadow-sm shiftKey shiki shortcuts should show showAlgolia showOrama showing shown shows 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 sized sizes slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start startViewTransition state static status stay step steps sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure suspending svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-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-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumb thumbBox tier timerRef tip title to toJsx toc tocInfo toolbar top top-0 top-1/2 top-2.5 top-3 top-3.25 top-4 touch tr track transform transition-[clip-path] transition-[height] transition-[opacity,offset-distance] transition-[width,height] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typeof types unchanged undefined underline underlying understand unknown unnecessarily until unused update updateAnchor updates url urls us usage use useAlgoliaSearch useCallback useCopyButton useDocsSearch useHotKey useI18n useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTabsGroups useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants viewBox viewRef viewTransitionName viewer viewportProps visible vite void w-(--fd-ai-chat-width) 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 wide width will window with without work would wrap wrap-anywhere wrapElement wrapInSuspense wrapped write x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
|
|
1
|
+
@source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex! *:flex-col *:flex-col! *:gap-0.5! *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --callout-color --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --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 -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 [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [clip-path:polygon(0_0,100%_0,100%_0,0_0)] [container-type:size] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allowedMode allows alphabet alt altKey always an anchor anchors and animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b back backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner base baseProps baseSlots baseUrl based became becomes before behavior behaviour behind belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover 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 boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 boundaries boundary box buffer bundle button buttonVariants by cache cached callbacks called came can canonical caption cards case cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code codeblock col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatible component components composedRef config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink createShikiHighlighter css ctx current currentColor currentSrc cursor-default cursor-zoom-out curve 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-highlight-ignore 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 desktop destructuring detect dialog dir direction disabled disabled:bg-fd-secondary disabled:opacity-50 disabled:pointer-events-none disabled:text-fd-secondary-foreground discard display displayName displayed div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 during each ease-in-out ease-out element else empty empty:hidden enabled encoded end end-2 endpoint entering env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed fallback false fd-lightbox fd-moving-banner fd-scroll-container fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus focus-visible:opacity-100 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 forces forks formatter formatterOptions found 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 g gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive ghost github-dark github-light githubUrl give given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground 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-(--fd-animated-height) h-(--radix-navigation-menu-viewport-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter highlights hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index infinite info infos initial inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-0 inset-x-2 inset-y-0 inside instance instanceof instant instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isTabActive isUp it item itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keeps key keyCode keydown keys l0 l1 l2 label lags lang language languageSelect languages large last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear link links list list-none listbox listener listeners loading locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 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)] maskComposite maskImage matches max-h-(--radix-popover-content-available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-[80svh] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message meta metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto ms-px mt-1 mt-4 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto name names namespace naturalHeight naturalWidth 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 noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offset offsetDistance offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onFocus onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity opacity-0 open openFromHash opened option optional options or order origin-(--radix-popover-content-transform-origin) origin-[top_center] origin-center original other out outline outline-none output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parent parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please point pointerType points polite populated pos position positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch present prev preventScroll previous primary primaryColor primaryTextColor primitive production promise promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 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 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced region register registering rel relatedTarget relative remove render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returnFocusRef returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see segment select-none selected separate separator server set setActive setCollapsed setHover setLoading setMounted setOpen setOpenSearch setSlides setTag setValue sha shadow-2xl shadow-black/50 shadow-lg shadow-md shadow-sm shiftKey shiki shortcuts should show showAlgolia showOrama showing shown shows 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 sized sizes skip slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start startViewTransition state static status stay step steps sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure suspending svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-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-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumb thumbBox tier timerRef tip title to toJsx toc tocInfo toolbar top top-0 top-1/2 top-2.5 top-3 top-3.25 top-4 touch tr track transform transition-[clip-path] transition-[height] transition-[opacity,offset-distance] transition-[width,height] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typed typeof types unchanged undefined underline underlying understand unknown unnecessarily until unused update updateAnchor updates url urls us usage use useAlgoliaSearch useCallback useCopyButton useDocsSearch useHotKey useI18n useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTabsGroups useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants viewBox viewRef viewTransitionName viewer viewportProps visible void w-(--fd-ai-chat-width) 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 whole wide width will window with without work would wrap wrap-anywhere wrapElement wrapInSuspense wrapped write x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
|
|
@@ -50,6 +50,7 @@ export type Translations = {
|
|
|
50
50
|
"Search(search dialog)": string;
|
|
51
51
|
"Search(search trigger)": string;
|
|
52
52
|
"Show Sidebar(sidebar)": string;
|
|
53
|
+
"Skip to Content(skip link)": string;
|
|
53
54
|
"System(theme switcher)(aria-label)": string;
|
|
54
55
|
"Table of Contents(inline table of contents)": string;
|
|
55
56
|
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)": string;
|
|
@@ -51,6 +51,7 @@ var keys_default = [
|
|
|
51
51
|
"Search(search dialog)",
|
|
52
52
|
"Search(search trigger)",
|
|
53
53
|
"Show Sidebar(sidebar)",
|
|
54
|
+
"Skip to Content(skip link)",
|
|
54
55
|
"System(theme switcher)(aria-label)",
|
|
55
56
|
"Table of Contents(inline table of contents)",
|
|
56
57
|
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)",
|
|
@@ -28,7 +28,7 @@ function Heading({ as, ...props }) {
|
|
|
28
28
|
className: cn(buttonVariants({
|
|
29
29
|
variant: "ghost",
|
|
30
30
|
size: "icon-xs"
|
|
31
|
-
}), "not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),
|
|
31
|
+
}), "not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100 focus-visible:opacity-100"),
|
|
32
32
|
onClick: onCopy,
|
|
33
33
|
children: [isChecked ? /* @__PURE__ */ jsx(CopyCheckIcon, {}) : /* @__PURE__ */ jsx(LinkIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
34
34
|
className: "sr-only",
|
|
@@ -55,6 +55,14 @@ function SidebarProvider({ defaultOpenLevel = 0, prefetch, collapsible = true, c
|
|
|
55
55
|
enabled: collapsible && mode === "full",
|
|
56
56
|
ignoreTyping: true
|
|
57
57
|
});
|
|
58
|
+
useHotKey((e) => {
|
|
59
|
+
if (e.key !== "Escape") return;
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
setOpen(false);
|
|
62
|
+
}, {
|
|
63
|
+
enabled: open && mode === "drawer",
|
|
64
|
+
ignoreTyping: true
|
|
65
|
+
});
|
|
58
66
|
return /* @__PURE__ */ jsx(SidebarContext, {
|
|
59
67
|
value: useMemo(() => ({
|
|
60
68
|
open,
|
|
@@ -150,6 +158,7 @@ function SidebarDrawerOverlay(props) {
|
|
|
150
158
|
function SidebarDrawerContent({ className, children, ...props }) {
|
|
151
159
|
const { open, mode } = useSidebar();
|
|
152
160
|
const state = open ? "open" : "closed";
|
|
161
|
+
const returnFocusRef = useRef(null);
|
|
153
162
|
if (mode !== "drawer") return;
|
|
154
163
|
return /* @__PURE__ */ jsx(Presence, {
|
|
155
164
|
present: open,
|
|
@@ -157,6 +166,12 @@ function SidebarDrawerContent({ className, children, ...props }) {
|
|
|
157
166
|
id: "nd-sidebar-mobile",
|
|
158
167
|
"data-state": state,
|
|
159
168
|
className: cn(!present && "invisible", className),
|
|
169
|
+
onFocus: (e) => {
|
|
170
|
+
if (!e.currentTarget.contains(e.relatedTarget)) returnFocusRef.current = e.relatedTarget instanceof HTMLElement ? e.relatedTarget : null;
|
|
171
|
+
},
|
|
172
|
+
onAnimationEnd: (e) => {
|
|
173
|
+
if (!open && e.currentTarget.contains(document.activeElement)) returnFocusRef.current?.focus();
|
|
174
|
+
},
|
|
160
175
|
...props,
|
|
161
176
|
children
|
|
162
177
|
})
|
package/dist/components/tabs.js
CHANGED
|
@@ -84,6 +84,6 @@ function useCollectionIndex() {
|
|
|
84
84
|
* only escape whitespaces in values in simple mode
|
|
85
85
|
*/
|
|
86
86
|
function escapeValue(v) {
|
|
87
|
-
return v.toLowerCase().replace(/\s
|
|
87
|
+
return v.toLowerCase().replace(/\s+/g, "-");
|
|
88
88
|
}
|
|
89
89
|
export { Tab, Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -78,7 +78,7 @@ function ThumbTrack({ items }) {
|
|
|
78
78
|
if (item._step === void 0) continue;
|
|
79
79
|
const position = positions.get(item.url);
|
|
80
80
|
const g = steps[step++];
|
|
81
|
-
if (position) g.setAttribute("transform", `translate(${position.x}, ${(position.top + position.bottom) / 2})`);
|
|
81
|
+
if (position && g) g.setAttribute("transform", `translate(${position.x}, ${(position.top + position.bottom) / 2})`);
|
|
82
82
|
}
|
|
83
83
|
path.setAttribute("d", d);
|
|
84
84
|
track.style.width = `${width}px`;
|
|
@@ -132,8 +132,8 @@ function TOCItem({ item, ...props }) {
|
|
|
132
132
|
const isFirst = index === 0;
|
|
133
133
|
const isLast = index === items.length - 1;
|
|
134
134
|
const l1 = getLineOffset(item.depth);
|
|
135
|
-
const l0 =
|
|
136
|
-
const l2 =
|
|
135
|
+
const l0 = getLineOffset(items[index - 1]?.depth ?? item.depth);
|
|
136
|
+
const l2 = getLineOffset(items[index + 1]?.depth ?? item.depth);
|
|
137
137
|
return {
|
|
138
138
|
isFirst,
|
|
139
139
|
isLast,
|
|
@@ -44,8 +44,8 @@ function ThumbTrack({ items, thumbBox }) {
|
|
|
44
44
|
const update = (infos) => {
|
|
45
45
|
let start = -1;
|
|
46
46
|
let end = -1;
|
|
47
|
-
for (
|
|
48
|
-
if (!
|
|
47
|
+
for (const [i, info] of infos.entries()) {
|
|
48
|
+
if (!info.active || !positions.has(info.original.url)) continue;
|
|
49
49
|
if (start === -1) start = i;
|
|
50
50
|
end = i;
|
|
51
51
|
}
|
|
@@ -104,7 +104,7 @@ function ThumbTrack({ items, thumbBox }) {
|
|
|
104
104
|
if (item._step === void 0) continue;
|
|
105
105
|
const position = positions.get(item.url);
|
|
106
106
|
const g = steps[step++];
|
|
107
|
-
if (position) g.setAttribute("transform", `translate(${position.x}, ${(position.top + position.bottom) / 2})`);
|
|
107
|
+
if (position && g) g.setAttribute("transform", `translate(${position.x}, ${(position.top + position.bottom) / 2})`);
|
|
108
108
|
}
|
|
109
109
|
path.setAttribute("d", d);
|
|
110
110
|
track.style.width = `${width}px`;
|
|
@@ -163,8 +163,8 @@ function TOCItem({ item, ...props }) {
|
|
|
163
163
|
const isFirst = index === 0;
|
|
164
164
|
const isLast = index === items.length - 1;
|
|
165
165
|
const l1 = getLineOffset(item.depth);
|
|
166
|
-
const l0 =
|
|
167
|
-
const l2 =
|
|
166
|
+
const l0 = getLineOffset(items[index - 1]?.depth ?? item.depth);
|
|
167
|
+
const l2 = getLineOffset(items[index + 1]?.depth ?? item.depth);
|
|
168
168
|
return {
|
|
169
169
|
isFirst,
|
|
170
170
|
isLast,
|
|
@@ -17,4 +17,4 @@ export interface TabsProps extends ComponentProps<typeof Primitive.Tabs> {
|
|
|
17
17
|
export declare const TabsList: import("react").ForwardRefExoticComponent<Primitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export declare function TabsTrigger({ value, ref, ...props }: ComponentProps<typeof Primitive.TabsTrigger>): import("react").JSX.Element;
|
|
19
19
|
export declare function Tabs({ ref, groupId, persist, updateAnchor, defaultValue, value: _value, onValueChange: _onValueChange, ...props }: TabsProps): import("react").JSX.Element;
|
|
20
|
-
export declare function TabsContent({ value, ref, ...props }: ComponentProps<typeof Primitive.TabsContent>): import("react").JSX.Element;
|
|
20
|
+
export declare function TabsContent({ value, id, ref, ...props }: ComponentProps<typeof Primitive.TabsContent>): import("react").JSX.Element;
|
|
@@ -96,9 +96,9 @@ function Tabs({ ref, groupId, persist = false, updateAnchor = false, defaultValu
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function TabsContent({ value, ref, ...props }) {
|
|
99
|
+
function TabsContent({ value, id, ref, ...props }) {
|
|
100
100
|
const { valueToIdMap, panels } = useTabContext();
|
|
101
|
-
if (
|
|
101
|
+
if (id) valueToIdMap.set(value, id);
|
|
102
102
|
return /* @__PURE__ */ jsx(Primitive.TabsContent, {
|
|
103
103
|
ref: mergeRefs(ref, (element) => {
|
|
104
104
|
if (element) panels.set(value, element);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
3
|
import { TreeContextProvider, useTabsGroups } from "../../contexts/tree.js";
|
|
4
|
-
import { AIChatPanel, baseSlots } from "../shared/client.js";
|
|
4
|
+
import { AIChatPanel, SkipToContent, baseSlots } from "../shared/client.js";
|
|
5
5
|
import { isLayoutTabActive, useLinkItems } from "../shared/index.js";
|
|
6
6
|
import { useIsScrollTop } from "../../utils/use-is-scroll-top.js";
|
|
7
7
|
import { Sidebar, SidebarProvider, SidebarTrigger, useSidebar } from "./slots/sidebar.js";
|
|
@@ -62,6 +62,7 @@ function LayoutBody(props) {
|
|
|
62
62
|
children: /* @__PURE__ */ jsxs(slots.container, {
|
|
63
63
|
...containerProps,
|
|
64
64
|
children: [
|
|
65
|
+
/* @__PURE__ */ jsx(SkipToContent, {}),
|
|
65
66
|
navEnabled && /* @__PURE__ */ jsx(slots.header, {}),
|
|
66
67
|
sidebarEnabled && /* @__PURE__ */ jsx(slots.sidebar.root, { ...sidebarProps }),
|
|
67
68
|
tabMode === "top" && tabs.length > 0 && /* @__PURE__ */ jsx(LayoutTabs, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
3
|
-
import { AIChatPanel, baseSlots } from "../shared/client.js";
|
|
3
|
+
import { AIChatPanel, SkipToContent, baseSlots } from "../shared/client.js";
|
|
4
4
|
import { getLayoutTabs, useLinkItems } from "../shared/index.js";
|
|
5
5
|
import { Sidebar, SidebarDrawer, SidebarProvider, useSidebar } from "./slots/sidebar.js";
|
|
6
6
|
import { Header } from "./slots/header.js";
|
|
@@ -58,6 +58,7 @@ function DocsLayout(props) {
|
|
|
58
58
|
className: "grid overflow-x-clip min-h-dvh [--fd-main-width:900px] [--fd-left-width:0px] [--fd-right-width:0px]",
|
|
59
59
|
style: { gridTemplate: `"left left-margin main right-margin right" 1fr / var(--fd-left-width) ${leftSpace} 1fr minmax(calc(50% - var(--fd-main-width)/2 - var(--fd-right-width) + min(${leftSpace}, 0px)), auto) var(--fd-right-width)` },
|
|
60
60
|
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(SkipToContent, {}),
|
|
61
62
|
/* @__PURE__ */ jsx(slots.sidebar.drawer, {}),
|
|
62
63
|
/* @__PURE__ */ jsx(slots.sidebar.main, {}),
|
|
63
64
|
/* @__PURE__ */ jsx(slots.header, {}),
|
|
@@ -23,6 +23,7 @@ function DocsPage({ full = false, toc = Empty, tableOfContent, children }) {
|
|
|
23
23
|
children: /* @__PURE__ */ jsxs(TOCProvider, {
|
|
24
24
|
toc,
|
|
25
25
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
26
|
+
id: "nd-page",
|
|
26
27
|
"data-fd-full": full,
|
|
27
28
|
className: cn("flex flex-col gap-2 p-6 pb-16 min-w-0 [grid-area:main] md:pt-16 md:pb-8", full && "layout:[--fd-main-width:1200px]"),
|
|
28
29
|
children: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
3
|
-
import { AIChatPanel, baseSlots } from "../shared/client.js";
|
|
3
|
+
import { AIChatPanel, SkipToContent, baseSlots } from "../shared/client.js";
|
|
4
4
|
import { useLinkItems } from "../shared/index.js";
|
|
5
5
|
import { useIsScrollTop } from "../../utils/use-is-scroll-top.js";
|
|
6
6
|
import { Container } from "./slots/container.js";
|
|
@@ -58,6 +58,7 @@ function LayoutBody(props) {
|
|
|
58
58
|
children: /* @__PURE__ */ jsxs(slots.container, {
|
|
59
59
|
...containerProps,
|
|
60
60
|
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(SkipToContent, {}),
|
|
61
62
|
navEnabled && /* @__PURE__ */ jsx(slots.header, {}),
|
|
62
63
|
/* @__PURE__ */ jsx(slots.sidebar.root, { ...sidebarProps }),
|
|
63
64
|
children,
|
|
@@ -9,6 +9,7 @@ import Link from "fumadocs-core/link";
|
|
|
9
9
|
import { usePathname } from "fumadocs-core/framework";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import { useState } from "react";
|
|
12
|
+
import { useTranslations } from "@fuma-translate/react";
|
|
12
13
|
// src/layouts/shared/client.tsx
|
|
13
14
|
function LinkItem({ ref, item, ...props }) {
|
|
14
15
|
const pathname = usePathname();
|
|
@@ -97,4 +98,12 @@ function baseSlots({ useProps }) {
|
|
|
97
98
|
};
|
|
98
99
|
} };
|
|
99
100
|
}
|
|
100
|
-
|
|
101
|
+
function SkipToContent() {
|
|
102
|
+
const t = useTranslations({ note: "skip link" });
|
|
103
|
+
return /* @__PURE__ */ jsx("a", {
|
|
104
|
+
href: "#nd-page",
|
|
105
|
+
className: "sr-only",
|
|
106
|
+
children: t("Skip to Content")
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export { AIChatPanel, LinkItem, SkipToContent, baseSlots };
|
|
@@ -199,6 +199,6 @@ function ViewOptionsPopover({ markdownUrl, githubUrl, pageUrl: pageUrlProp, ...p
|
|
|
199
199
|
}
|
|
200
200
|
function withBasePath(href) {
|
|
201
201
|
if (href.match(/^\w+:/) || href.startsWith("//")) return href;
|
|
202
|
-
return (
|
|
202
|
+
return (import.meta.env?.BASE_URL ?? "").replace(/\/$/, "") + href;
|
|
203
203
|
}
|
|
204
204
|
export { MarkdownCopyButton, ViewOptionsPopover };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
4
|
import { useI18n } from "../../../contexts/i18n.js";
|
|
5
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../../../components/ui/popover.js";
|
|
5
|
+
import { Popover, PopoverClose, PopoverContent, PopoverTrigger } from "../../../components/ui/popover.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useTranslations } from "@fuma-translate/react";
|
|
8
8
|
// src/layouts/shared/slots/language-select.tsx
|
|
@@ -21,8 +21,7 @@ function LanguageSelect({ className, variant = "ghost", children, ...rest }) {
|
|
|
21
21
|
children: [/* @__PURE__ */ jsx("p", {
|
|
22
22
|
className: "p-2 text-xs font-medium text-fd-muted-foreground",
|
|
23
23
|
children: chooseLanguage
|
|
24
|
-
}), context.locales.map((item) => /* @__PURE__ */ jsx(
|
|
25
|
-
type: "button",
|
|
24
|
+
}), context.locales.map((item) => /* @__PURE__ */ jsx(PopoverClose, {
|
|
26
25
|
className: cn("px-2 py-1.5 text-start text-sm rounded-lg transition-colors", item.locale === context.locale ? "bg-fd-primary/10 text-fd-primary" : "text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),
|
|
27
26
|
onClick: () => {
|
|
28
27
|
context.onChange?.(item.locale);
|
package/dist/mdx.server.js
CHANGED
|
@@ -9,7 +9,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* @param OverrideLink The component to override from
|
|
10
10
|
*/
|
|
11
11
|
function createRelativeLink(source, page, OverrideLink = defaultMdxComponents.a) {
|
|
12
|
-
return
|
|
12
|
+
return function RelativeLink({ href, ...props }) {
|
|
13
13
|
return /* @__PURE__ */ jsx(OverrideLink, {
|
|
14
14
|
href: href ? source.resolveHref(href, page) : href,
|
|
15
15
|
...props
|
package/dist/page.js
CHANGED
|
@@ -25,7 +25,7 @@ function DocsPage({ lastUpdate, editOnGithub, children, ...props }) {
|
|
|
25
25
|
...props,
|
|
26
26
|
children: [children, /* @__PURE__ */ jsxs("div", {
|
|
27
27
|
className: "flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",
|
|
28
|
-
children: [editOnGithub && /* @__PURE__ */ jsx(EditOnGitHub, { href: `https://github.com/${editOnGithub.owner}/${editOnGithub.repo}/blob/${editOnGithub.sha}/${editOnGithub.path.startsWith("/") ? editOnGithub.path.slice(1) : editOnGithub.path}` }), lastUpdate && /* @__PURE__ */ jsx(PageLastUpdate, { date: new Date(lastUpdate) })]
|
|
28
|
+
children: [editOnGithub && /* @__PURE__ */ jsx(EditOnGitHub, { href: `https://github.com/${editOnGithub.owner}/${editOnGithub.repo}/blob/${editOnGithub.sha ?? "main"}/${editOnGithub.path.startsWith("/") ? editOnGithub.path.slice(1) : editOnGithub.path}` }), lastUpdate && /* @__PURE__ */ jsx(PageLastUpdate, { date: new Date(lastUpdate) })]
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
31
31
|
}
|
package/dist/style.css
CHANGED
|
@@ -2549,6 +2549,9 @@
|
|
|
2549
2549
|
transition-property: none;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
+
.focus-visible\:opacity-100:focus-visible {
|
|
2553
|
+
opacity: 100%;
|
|
2554
|
+
}
|
|
2552
2555
|
.focus-visible\:ring-2:focus-visible {
|
|
2553
2556
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2554
2557
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.18.1",
|
|
4
4
|
"description": "The Radix UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
"shiki": "^4.5.0"
|
|
161
161
|
},
|
|
162
162
|
"devDependencies": {
|
|
163
|
-
"@fumadocs/base-ui": "16.
|
|
164
|
-
"@fumadocs/cli": "1.
|
|
163
|
+
"@fumadocs/base-ui": "16.18.1",
|
|
164
|
+
"@fumadocs/cli": "1.8.1",
|
|
165
165
|
"@tailwindcss/cli": "^4.3.3",
|
|
166
166
|
"@tailwindcss/oxide": "^4.3.3",
|
|
167
167
|
"@tsdown/css": "^0.23.1",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@types/react": "^19.3.0",
|
|
171
171
|
"@types/react-dom": "^19.3.0",
|
|
172
172
|
"fuma-cli": "^0.3.1",
|
|
173
|
-
"fumadocs-core": "16.
|
|
173
|
+
"fumadocs-core": "16.18.1",
|
|
174
174
|
"react-medium-image-zoom": "^5.4.9",
|
|
175
175
|
"tailwindcss": "^4.3.3",
|
|
176
176
|
"tsconfig": "0.0.0",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@types/mdx": "*",
|
|
181
181
|
"@types/react": "*",
|
|
182
|
-
"fumadocs-core": "16.
|
|
182
|
+
"fumadocs-core": "16.18.1",
|
|
183
183
|
"next": "16.x.x",
|
|
184
184
|
"react": "^19.2.0",
|
|
185
185
|
"react-dom": "^19.2.0",
|