@fumadocs/base-ui 16.17.1 → 16.17.3
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/docs.css +1 -1
- package/css/generated/flux.css +1 -1
- package/css/generated/glass.css +1 -1
- package/css/generated/home.css +1 -1
- package/css/generated/notebook.css +1 -1
- package/css/generated/shared.css +1 -1
- package/css/generated/spacious.css +1 -1
- package/dist/.translations/index.d.ts +6 -0
- package/dist/.translations/keys.js +6 -0
- package/dist/components/dialog/search.d.ts +4 -1
- package/dist/components/dialog/search.js +33 -13
- package/dist/components/image-zoom.d.ts +15 -3
- package/dist/components/image-zoom.js +237 -12
- package/dist/components/image-zoom2.css +5 -0
- package/dist/layouts/docs/client.js +1 -1
- package/dist/layouts/docs/slots/container.js +1 -0
- package/dist/layouts/glass/index.js +5 -3
- package/dist/layouts/glass/layout-tabs.js +1 -1
- package/dist/layouts/glass/slots/sidebar.js +1 -1
- package/dist/style.css +112 -0
- package/package.json +3 -3
package/css/generated/docs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!header !showItem *:col-start-1 *:my-auto *:pointer-events-auto *:rounded-md *:row-start-1 *:w-(--fd-sidebar-width) --fd-docs-height --fd-docs-row-1 --fd-docs-row-2 --fd-docs-row-3 --fd-header-height --fd-layout-width --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width -mx-1 -translate-x-(--fd-sidebar-width) -translate-y-full [&_svg]:shrink-0 [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-sidebar-width:0px] [--fd-toc-popover-height:0px] [--fd-toc-width:0px] [grid-area:header] [grid-area:main] [grid-area:sidebar] [grid-area:toc-popover] [grid-area:toc] aiChat aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-sm before
|
|
1
|
+
@source inline("!header !showItem *:col-start-1 *:my-auto *:pointer-events-auto *:rounded-md *:row-start-1 *:w-(--fd-sidebar-width) --fd-docs-height --fd-docs-row-1 --fd-docs-row-2 --fd-docs-row-3 --fd-header-height --fd-layout-width --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width -mx-1 -translate-x-(--fd-sidebar-width) -translate-y-full [&_svg]:shrink-0 [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-sidebar-width:0px] [--fd-toc-popover-height:0px] [--fd-toc-width:0px] [grid-area:header] [grid-area:main] [grid-area:sidebar] [grid-area:tabs] [grid-area:toc-popover] [grid-area:toc] aiChat aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-sm before:absolute before:bg-fd-border before:content-[''] before:inset-s-2.5 before:inset-y-1 before:w-px bg-fd-background/80 border-b-2 border-e border-e-0 border-fd-primary border-y-0 breadcrumb breadcrumbEnabled circleProps circumference clerk click containerProps createLinkItemRenderer data-[active=true]:before:absolute data-[active=true]:before:bg-fd-primary data-[active=true]:before:content-[''] data-[active=true]:before:inset-s-2.5 data-[active=true]:before:inset-y-2.5 data-[active=true]:before:w-px data-[active=true]:bg-fd-primary/10 data-[active=true]:hover:transition-colors data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-[transparent=false]:bg-fd-background/80 data-full data-hovered data-layout-content data-layout-main data-sidebar-collapsed data-sidebar-panel data-sidebar-placeholder data-toc-popover data-toc-popover-content data-toc-popover-trigger data-transparent defaultSlots duration-250 edit flex-row-reverse font-semibold footer footerEnabled footerList fumadocs-core/breadcrumb gap-2.5 gap-6 getBreadcrumbItemsFromPath grid-cols-1 gridTemplate h-(--fd-header-height) h-(--fd-toc-popover-height) h-10 h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] hideIfDisabled hover:bg-fd-accent/50 hover:opacity-80 hover:text-fd-accent-foreground/80 hover:transition-none iconLinks including inert information inset-e-0 inset-s-4 inset-y-2 isNavTransparent isTop items-end justify-items-center justify-self-end justify-start layout-level layoutTabs linkItems max max-h-[50vh] max-md:layout:[--fd-header-height:--spacing(14)] max-w-[1168px] max-w-[380px] max-w-[900px] max-xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)] mb-4 mb-8 mb-auto md:in-data-[sidebar-collapsed=true]:pt-16 md:layout:[--fd-sidebar-width:268px] md:pt-8 md:px-6 min min-h-(--fd-docs-height) ms-px mx-0.5 navEnabled navTransparentMode nd-docs-layout nd-page nd-subnav nd-toc nd-toc-placeholder no normalizedValue onClickItem onClickOutside pagination pb-1.5 pe-0 pe-4 pointer-events-none popover progress progressbar provided pt-0.5 pt-12 pt-2 pt-3 px-6 py-0 py-6 radius restSvgProps rotate-180 rounded-none rtl:-translate-x-2 rtl:translate-x-full selectedIdx setDate showItem sidebarEnabled sidebarProps single size-4.5 stroke-current/25 strokeDasharray strokeDashoffset tabMode tableOfContent tableOfContentPopover takes text-[1.75em] text-end timezone toc-popover toc-title tocEnabled tocPopover tocPopoverEnabled tocPopoverProps tocProps top-(--fd-docs-row-1) top-(--fd-docs-row-2) top-[calc(--spacing(4)+var(--fd-docs-row-3))] transition-[--fd-sidebar-col] transition-[opacity,translate,color] transition-[opacity,translate] transition-[opacity,visibility] transition-[width,inset-block,translate,background-color] translate-x-2 translate-y-full transparentMode typography under unlisted updated useBaseSlots useDocsLayout useDocsPage useFooterItems useIsScrollTop useTreeContext viewport w-(--fd-sidebar-width) w-(--fd-toc-width) w-4 w-[85%] xl:border-s xl:h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] xl:hidden xl:in-data-[sidebar-collapsed=true]:pt-14 xl:layout:[--fd-toc-width:268px] xl:pt-14 xl:px-8 xl:sticky xl:top-(--fd-docs-row-1) z-10 z-20 z-30");
|
package/css/generated/flux.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!enabled !header *:rounded-lg --removed-body-scroll-bar-size -mx-1 [&_svg]:shrink-0 [grid-area:main] animate-fd-fade-in aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-md backdrop-blur-sm before
|
|
1
|
+
@source inline("!enabled !header *:rounded-lg --removed-body-scroll-bar-size -mx-1 [&_svg]:shrink-0 [grid-area:main] animate-fd-fade-in aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-md backdrop-blur-sm before:absolute before:bg-fd-border before:content-[''] before:inset-y-1 before:start-2.5 before:w-px bg-fd-background/60 bg-fd-popover/80 border-x bottom-26 breadcrumb breadcrumbEnabled circleProps circumference clerk click containerProps createLinkItemRenderer createPortal data-[active=true]:before:absolute data-[active=true]:before:bg-fd-primary data-[active=true]:before:content-[''] data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5 data-[active=true]:before:w-px data-[active=true]:bg-fd-primary/10 data-[active=true]:hover:transition-colors data-full data-layout-content data-layout-main data-toc-popover data-toc-popover-content data-toc-popover-trigger defaultChildren defaultSlots defaultTabs duration ease edit exit flex-row-reverse flux-layout-slot font-semibold footer footerEnabled footerList fumadocs-core/breadcrumb gap-2.5 getBreadcrumbItemsFromPath grid-cols-1 h-8.5 h-9 head hide hideIfDisabled hover:bg-fd-accent/50 hover:opacity-80 hover:text-fd-accent-foreground/80 hover:transition-none including information initial inset-x-0 justify-items-center layout-level lg:text-sm linkItems mask-[linear-gradient(to_bottom,transparent,white_--spacing(14),white_calc(100%---spacing(14)),transparent)] max max-h-[50vh] max-w-[1200px] max-w-[900px] max-w-svw mb-4 mb-8 mb-auto md:pt-8 md:px-6 min min-h-11 motion motion/react ms-1 ms-px nd-flux-layout nd-page no normalizedValue onAnimationComplete opacity overflow-y-hidden pagination pb-24 pointer-events-none popLayout pr-(--removed-body-scroll-bar-size,0) progress progressbar provided ps-2.5 py-10 py-16 py-6 radius react-remove-scroll renderNavigationPanel replace restSvgProps rotate-180 scale selectedIdx setBlockScroll setContainer setDate sidebarEnabled sidebarProps single size-4.5 sm:border sm:bottom-6 sm:max-w-[380px] sm:max-w-[400px] sm:p-1 sm:rounded-2xl spanProps stroke-current/25 strokeDasharray strokeDashoffset tabDropdown tableOfContent text-[1.75em] text-end timezone tocEnabled tocProps tool transition translate-x-[calc(-50%-var(--removed-body-scroll-bar-size,0px)/2)] translateY typography under updated useBaseSlots useDocsPage useFluxLayout useFooterItems w-[calc(100%-var(--removed-body-scroll-bar-size,0px))] wait xl:pt-14 xl:px-8 z-30");
|
package/css/generated/glass.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!footer --bleed --drawer-swipe-movement-x --drawer-swipe-progress --drawer-swipe-strength --fd-header-height --fd-left-width --fd-main-width --fd-right-width --row --viewport-padding --width -me-1.5 -mr-(--bleed) -mt-1.5 -mx-1 -translate-x-[280px] @base-ui/react @default @sm:max-w-[200px] [--bleed:3rem] [--fd-left-width:0px] [--fd-main-width:900px] [--fd-right-width:0px] [--row:calc(3*var(--spacing))] [--row:calc(6*var(--spacing))] [--viewport-padding:0px] [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)] [transform:translateX(var(--drawer-swipe-movement-x))] aiChat article autoScroll available backdrop-blur-sm bar baseVariants be because
|
|
1
|
+
@source inline("!footer --bleed --drawer-swipe-movement-x --drawer-swipe-progress --drawer-swipe-strength --fd-header-height --fd-left-width --fd-main-width --fd-right-width --row --viewport-padding --width -me-1.5 -mr-(--bleed) -mt-1.5 -mx-1 -translate-x-[280px] @base-ui/react @default @sm:max-w-[200px] [--bleed:3rem] [--fd-left-width:0px] [--fd-main-width:900px] [--fd-right-width:0px] [--row:calc(3*var(--spacing))] [--row:calc(6*var(--spacing))] [--viewport-padding:0px] [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)] [transform:translateX(var(--drawer-swipe-movement-x))] aiChat article autoScroll available backdrop-blur-sm bar baseVariants be because behind bg-fd-muted-foreground/50 bg-fd-popover/80 bleed bug but clientX contentProps could data-[active=false]:hover:text-fd-accent-foreground data-ending-style:[transform:translateX(calc(100%-var(--bleed)+var(--viewport-padding)+2px))] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-fd-full data-popup-open:bg-fd-accent data-starting-style:[transform:translateX(calc(100%-var(--bleed)+var(--viewport-padding)+2px))] data-swiping:duration-0 data-swiping:select-none defaultSlots defaultTabs drawerHandle duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] edit exitTimerRef fact fd-glass-layout flex-row-reverse font-semibold footer footerList fumadocs-core/breadcrumb get getBreadcrumbItemsFromPath grid-cols-1 gridTemplate gridTemplateRows h-0 h-6 h-8 h-[calc(100dvh---spacing(4))] hover hover:decoration-dashed hover:decoration-fd-muted-foreground hover:opacity-80 hover:underline hover:underline-offset-4 inAnimation including information innerWidth interrupted isLayoutTabActive itemTriggerVariants items-start items-stretch 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+var(--bleed))] 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 min-h-full mt-2 mt-2.5 mx-2 my-2 nd-mobile-sidebar nd-toc nd-toc-title no onPointerDown opacity-100 opacity-[calc(1-var(--drawer-swipe-progress))] overflow-y-hidden p-(--viewport-padding) p-6 pagination pb-16 pb-4 pe-3 pe-3.5 pen pointer pointer-events-none pr-(--bleed) provided ps-2.5 ps-3 ps-4.5 pt-2 pt-4 push reason right right-margin rightIcon scrollbar scrollbar-width scrolling setDate setInAnimation setMobileOpen shadow-fd-background shouldOpen simplest size-10 size-12 size-3.5! size-4! somehow supports-[-webkit-touch-callout:none]:[--bleed:0px] supports-[-webkit-touch-callout:none]:[--viewport-padding:0.625rem] supports-[-webkit-touch-callout:none]:absolute supports-[-webkit-touch-callout:none]:border supports-[-webkit-touch-callout:none]:rounded-xl swipeDirection text-[1.75em] text-end text-fd-primary/80 timeout timezone touch-auto transition-[background-color,width,height] transition-[grid-template-rows] transition-[opacity,height] transition-[width,height] transition-[width,padding] transitionTimerRef typography under unlisted updated useBaseSlots useFooterItems useGlassLayout viewport w-(--width) w-[360px] w-[calc(280px---spacing(2))] workaround 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 zero");
|
package/css/generated/home.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!isNavTransparent --available-width --duration --easing --fd-layout-width --popup-height --positioner-height -me-1.5 -ms-1.5 -mx-1 [--fd-layout-width:1400px] asChild backdrop-blur-md been before:absolute before:content-[''] bg-fd-background/80 bg-fd-popover/80 box-border but click collisionPadding data-[active=true]:font-medium data-[side=bottom]:before:h-2.5 data-[side=bottom]:before:left-0 data-[side=bottom]:before:right-0 data-[side=bottom]:before:top-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:top-0 data-[side=left]:before:w-2.5 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:top-0 data-[side=right]:before:w-2.5 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:h-2.5 data-[side=top]:before:left-0 data-[side=top]:before:right-0 data-ending-style:data-[activation-direction=left]:translate-x-1/2 data-ending-style:data-[activation-direction=right]:-translate-x-1/2 data-ending-style:duration-150 data-instant:transition-none data-starting-style:data-[activation-direction=left]:-translate-x-1/2 data-starting-style:data-[activation-direction=right]:translate-x-1/2 defaultVariants defaults does duration-(--duration) ease-(--easing) enableHoverToOpen first:ms-0 font-bold font-semibold gap-2.5 grid-cols-1 h-(--popup-height) h-(--positioner-height)
|
|
1
|
+
@source inline("!isNavTransparent --available-width --duration --easing --fd-layout-width --popup-height --positioner-height -me-1.5 -ms-1.5 -mx-1 [--fd-layout-width:1400px] asChild backdrop-blur-md been before:absolute before:content-[''] bg-fd-background/80 bg-fd-popover/80 box-border but click collisionPadding data-[active=true]:font-medium data-[side=bottom]:before:h-2.5 data-[side=bottom]:before:left-0 data-[side=bottom]:before:right-0 data-[side=bottom]:before:top-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:top-0 data-[side=left]:before:w-2.5 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:top-0 data-[side=right]:before:w-2.5 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:h-2.5 data-[side=top]:before:left-0 data-[side=top]:before:right-0 data-ending-style:data-[activation-direction=left]:translate-x-1/2 data-ending-style:data-[activation-direction=right]:-translate-x-1/2 data-ending-style:duration-150 data-instant:transition-none data-starting-style:data-[activation-direction=left]:-translate-x-1/2 data-starting-style:data-[activation-direction=right]:translate-x-1/2 defaultVariants defaults does duration-(--duration) ease-(--easing) enableHoverToOpen first:ms-0 font-bold font-semibold gap-2.5 grid-cols-1 h-(--popup-height) h-(--positioner-height) had headerRef hideIfDisabled home hover:text-fd-popover-foreground/50 isNavTransparent isTop justify-end last:me-0 lg:grid-cols-3 lg:hidden linkItems list-none listRef looking max-lg:hidden max-lg:rounded-b-2xl max-lg:shadow-lg max-sm:hidden max-sm:mt-2 max-w-(--available-width) max-w-(--fd-layout-width) max-w-[240px] max-w-md mb-4 md:grid-cols-2 might mobile navEnabled navItemVariants nd-home-layout nd-nav ps-2.5 pt-2 px-6 px-8 rotate-180 sm:flex-row sm:hidden sm:items-center sm:justify-end temporarily text-2xl text-6xl text-base transition-[box-shadow,background-color,border-radius] transition-[opacity,transform,translate] transition-[opacity,width,height] transparentMode under useBaseSlots useHomeLayout useIsScrollTop valid");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!footer !isSelected !showItem *:col-start-1 *:max-w-[1285px] *:max-w-[900px] *:my-auto *:pointer-events-auto *:row-start-1 *:w-(--fd-sidebar-width) --fd-ai-chat-col --fd-ai-chat-col_300ms_ease-in-out --fd-docs-height --fd-docs-row-1 --fd-docs-row-2 --fd-docs-row-3 --fd-header-height --fd-layout-width --fd-sidebar-col --fd-sidebar-col_150ms --fd-sidebar-width --fd-toc-col --fd-toc-popover-height --fd-toc-width -me-1.5 -ms-1.5 -mx-1 -translate-x-(--fd-sidebar-width) -translate-y-full [&_svg]:shrink-0 [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-sidebar-width:0px] [--fd-toc-col:max(var(--fd-toc-width),var(--fd-ai-chat-col))] [--fd-toc-popover-height:0px] [--fd-toc-width:0px] [grid-area:header] [grid-area:main] [grid-area:sidebar] [grid-area:toc-popover] [grid-area:toc] [transition:--fd-sidebar-col_150ms,--fd-ai-chat-col_300ms_ease-in-out] aiChat aiChatOpen aria-valuemax aria-valuemin aria-valuenow article auto-cols-auto auto-rows-auto available backdrop-blur-sm before
|
|
1
|
+
@source inline("!footer !isSelected !showItem *:col-start-1 *:max-w-[1285px] *:max-w-[900px] *:my-auto *:pointer-events-auto *:row-start-1 *:w-(--fd-sidebar-width) --fd-ai-chat-col --fd-ai-chat-col_300ms_ease-in-out --fd-docs-height --fd-docs-row-1 --fd-docs-row-2 --fd-docs-row-3 --fd-header-height --fd-layout-width --fd-sidebar-col --fd-sidebar-col_150ms --fd-sidebar-width --fd-toc-col --fd-toc-popover-height --fd-toc-width -me-1.5 -ms-1.5 -mx-1 -translate-x-(--fd-sidebar-width) -translate-y-full [&_svg]:shrink-0 [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-sidebar-width:0px] [--fd-toc-col:max(var(--fd-toc-width),var(--fd-ai-chat-col))] [--fd-toc-popover-height:0px] [--fd-toc-width:0px] [grid-area:header] [grid-area:main] [grid-area:sidebar] [grid-area:toc-popover] [grid-area:toc] [transition:--fd-sidebar-col_150ms,--fd-ai-chat-col_300ms_ease-in-out] aiChat aiChatOpen aria-valuemax aria-valuemin aria-valuenow article auto-cols-auto auto-rows-auto available backdrop-blur-sm before:absolute before:bg-fd-border before:content-[''] before:inset-y-1 before:start-2.5 before:w-px bg-fd-background/80 border-b-2 border-e border-fd-primary breadcrumb breadcrumbEnabled circleProps circumference clerk click collapseTrigger containerProps createLinkItemRenderer data-[active=true]:before:absolute data-[active=true]:before:bg-fd-primary data-[active=true]:before:content-[''] data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5 data-[active=true]:before:w-px data-[active=true]:bg-fd-primary/10 data-[active=true]:hover:transition-colors data-[collapsed=false]:hidden data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-[transparent=false]:bg-fd-background/80 data-full data-header-body data-header-tabs data-hovered data-layout-content data-layout-main data-sidebar-collapsed data-sidebar-placeholder data-toc-popover data-toc-popover-content data-toc-popover-trigger data-transparent defaultSlots delaySetOpen duration-250 edit end-0 flex-row-reverse font-semibold footer footerEnabled footerList freezeUntil fumadocs-core/breadcrumb gap-2.5 gap-6 getBreadcrumbItemsFromPath grid-cols-1 gridTemplate h-(--fd-toc-popover-height) h-10 h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-2))] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] has-data-[active=true]:text-fd-primary has-data-[collapsed=true]:md:flex hideIfDisabled hover:bg-fd-accent/50 hover:opacity-80 hover:text-fd-accent-foreground/80 hover:transition-none hoverDelay iconLinks including information inset-y-2 isLayoutTabActive isNavTransparent isSelected isTop items-end justify-end justify-self-end layout-level layout:[--fd-header-height:--spacing(14)] lg:hidden lg:layout:[--fd-header-height:--spacing(24)] linkItems max max-h-[50vh] max-lg:flex max-lg:hidden max-md:flex max-w-[240px] max-w-[380px] max-w-sm max-xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)] maxTouchPoints mb-4 mb-8 mb-auto md:gap-2 md:layout:[--fd-sidebar-width:268px] md:pt-8 md:px-6 min min-h-(--fd-docs-height) ms-px mt-px mx-0.5 navEnabled navMode navTransparentMode navbar nd-notebook-layout nd-page nd-subnav nd-toc nd-toc-placeholder no normalizedValue onClickItem onClickOutside ontouchstart pageCol pagination pb-1.5 pe-4 pointer-events-none popover progress progressbar provided ps-2.5 pt-0.5 pt-12 pt-2 px-6 py-6 radius resolvedTabs restSvgProps rotate-180 rtl:-translate-x-2 rtl:translate-x-full selectedIdx setDate showItem showLayoutTabs sidebarCollapsible sidebarProps single size-4.5 start-0 stroke-current/25 strokeDasharray strokeDashoffset tabMode tableOfContent tableOfContentPopover takes text-[1.75em] text-end timeoutRef timezone toc-popover toc-title tocEnabled tocPopover tocPopoverEnabled tocPopoverProps tocProps top-(--fd-docs-row-1) top-(--fd-docs-row-2) top-(--fd-docs-row-3) transition-[opacity,translate,color] transition-[opacity,translate] transition-[opacity,visibility] transition-[width,inset-block,translate,background-color] translate-x-2 translate-y-full transparentMode typedTabs typography under unlisted updated useBaseSlots useDocsPage useFooterItems useIsScrollTop useNotebookLayout viewport w-(--fd-sidebar-width) w-(--fd-toc-width) w-4 w-[85%] xl:[--fd-ai-chat-col:var(--fd-ai-chat-width)] xl:border-s xl:h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] xl:hidden xl:layout:[--fd-toc-width:268px] xl:max-w-full xl:pt-14 xl:px-8 xl:sticky xl:top-(--fd-docs-row-3) z-10 z-20");
|
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-col *: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 --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top --transform-origin -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 @ts-expect-error @typescript-eslint/no-namespace [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&[hidden]:not([hidden='until-found'])]:hidden [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_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%)] [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about absolute accordion action actions active activeItem add addEventListener advanced after align align-text-bottom alignItems alignmentBaseline all allowClear allowCopy allows alphabet altKey always an anchor and animate animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask 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 behaviour belongs beside 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-linear-to-r bg-transparent bind bitsLeft black block blockRef boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bound boundary buffer bundle button buttonVariants by cache cached can canonical 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 col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink css ctx current currentColor cursor-default custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 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 development dialog dialogHandle dir disabled disabled:opacity-50 disabled:pointer-events-none display displayName displayed distance 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 empty:mb-0 enabled encoded endIdx endpoint env environment equal error escape eslint-disable-next-line event export expose extends external extraProps false fd-moving-banner fd-scroll-container fd-search-dialog-content fd-search-list 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 first:mt-0 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 forks formatter formatterOptions found free from from-fd-primary/10 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-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-[open]:rotate-180 group-data-active:bg-fd-primary group-data-open:rotate-180 group-data-panel-open:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has-focus-visible:bg-fd-accent hash hashchange hast-util-to-jsx-runtime hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping img import in inTab index infinite info initialFocus inline inline-flex input inputType inset-0 inset-e-2 inset-s-0 inset-s-3 inset-s-6 inset-x-2 inset-y-0 inside instanceof instantly instead integration interface intersect invisible is isActive isComposing isFirst isLast isLoading isUp it item itemLineLengths itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] lays leading-5 leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system like line line-through linear link links list listbox listener listeners localRef 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)] maskComposite maskImage max-h-(--available-height) max-h-20 max-h-[460px] max-h-[600px] 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 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-1.5 mb-2 md:hidden md:mb-auto 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 motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto mt-1 mt-6 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 noop noopener noreferrer normal normalize not not-first:border-t not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offsetHeight offsetPath offsetTop on onAnimationEnd 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 opened option optional options or order origin-(--transform-origin) origin-center original other out outline outline-none output over overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip overflow-y-auto override overscroll-contain own owner p p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parentId pass passed path pathname paths pb-0 pb-2 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please pointerType points polite populated pos positions possible powered pre pre-rendering predate prefetch prev preventScroll previous previousRef primary primaryColor primaryTextColor production 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 raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom react/jsx-runtime read reader ref referenced region registering rel relative remove removeEventListener render renderOptions repo repository required resize resizing 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 rowRenderOptions rows rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] 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 setHidden setHover setLoading setMounted setOpen setSvg setTag setValue shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shikiOptions shortcuts should show showAlgolia showOrama shown shows shrink-0 side sideOffset sidebar signature simple since site size size-1 size-3 size-3.5 size-4 size-5 size-6.5 size-9 size-full sizes slots sm smaller so solid some source space span specific sr-only src stars startIdx state static status stay sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef 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-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 thumbBox tier timerRef tip title to toJsxRuntime toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-4 touch tr transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] 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 type typeof types unchanged undefined underline underlying understand unknown unnecessarily update updateAnchor updates upperX url urls us usage use useAlgoliaSearch useCopyButton useDocsSearch useHotKey useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewport viewportProps visible vite void w w-(--anchor-width) w-(--fd-ai-chat-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 wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xl:w-(--fd-ai-chat-width) 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 *:first:font-medium *:first:text-fd-primary *:flex *:flex-col *: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 --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top --transform-origin -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 @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 [&[hidden]:not([hidden='until-found'])]:hidden [&_::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%)] [container-type:size] [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add addEventListener advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allows alphabet alt altKey always an anchor and animate 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 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-linear-to-r bg-transparent bind bitsLeft black block blockRef boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bound boundary box buffer bundle button buttonVariants by cache cached callbacks 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 col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink css ctx current currentColor currentSrc cursor-default cursor-zoom-out custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 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 development dialog dialogHandle dir direction disabled disabled:opacity-50 disabled:pointer-events-none display displayName displayed distance 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 empty:mb-0 enabled encoded endIdx endpoint env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed false fd-lightbox fd-moving-banner fd-scroll-container fd-search-dialog-content 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:mt-0 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 forks formatter formatterOptions found free from from-fd-primary/10 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-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-[open]:rotate-180 group-data-active:bg-fd-primary group-data-open:rotate-180 group-data-panel-open:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hast-util-to-jsx-runtime hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering 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 initialFocus 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-2 inset-y-0 inside instanceof instant instantly instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isUp it item itemLineLengths itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted key keyCode keydown keys l l0 l1 l2 label lang language languageSelect 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-5 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 listbox listener listeners loading localRef 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-(--available-height) max-h-20 max-h-[460px] max-h-[600px] 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-1.5 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 mt-1 mt-4 mt-6 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto n 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 offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onPrint onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity-(--opacity,0) opacity-0 open openFromHash opened option optional options or order origin-(--transform-origin) origin-center original other out outline outline-none output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip 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 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 positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch prev preventScroll previous previousRef primary primaryColor primaryTextColor production 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 react/jsx-runtime read reader ref referenced region register registering rel relative remove removeEventListener 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 select-none selected separate separator server set setActive setCollapsed setHidden setHover setLoading setMounted setOpen setSlides setSvg setTag setValue shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shikiOptions shortcuts should show showAlgolia showOrama showing shown shows shrink-0 side sideOffset sidebar signature simple since 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 startIdx startViewTransition state static status stay step sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure 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 thumbBox tier timerRef tip title to toJsxRuntime toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-3.25 top-4 touch tr transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] 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 unused update updateAnchor updates upperX url urls us usage use useAlgoliaSearch useCopyButton useDocsSearch useHotKey useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewTransitionName viewer viewportProps visible vite void w w-(--anchor-width) w-(--fd-ai-chat-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 wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover]
|
|
1
|
+
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar bars bg-clip-content bg-fd-accent/60 bg-linear-to-b bg-origin-border border-x breadcrumb breadcrumbEnabled circle circumference clerk click closeOnClick col-start-2 collapse comes coming controller createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit end fade fallback fd-spacious-layout first:mt-1 focusin focusout font-semibold footer footerEnabled footerList from-50% from-fd-background fumadocs-core/breadcrumb gap-2.5 gaps getBreadcrumbItemsFromPath glide glides gliding gridTemplate group-hover:-translate-x-0.5 group-hover:translate-x-0.5 gutter h-(--fd-header-height) h-10 h-7.5 h-8 h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including inert information initial inset inset-e-0 inset-x-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:border md:h-(--fd-layout-height) md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:min-h-0 md:ms-0 md:my-2 md:overflow-clip md:overflow-y-auto md:overscroll-y-contain md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:rounded-2xl md:scrollbar-gutter-stable md:scrollbar-thin md:shadow-sm min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc opacity origin outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass position positionMethod print:h-auto print:overflow-visible progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling selectProgress selectTopmost selectors self-start separators setShown setTheme shadow-xl shorter signal single size-3.5! size-4.5 size-7 size-8 soft start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] top-full transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[width,padding,opacity,visibility] transitionProperty translate translate-x-[calc(var(--index)*100%)] turn turns typography under unlisted updated useBaseSlots useBreadcrumbItems useFooterItems useSpaciousLayout useTOCSelector used viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-30");
|
|
@@ -8,6 +8,7 @@ export type Translations = {
|
|
|
8
8
|
"Close Search(search dialog)(aria-label)": string;
|
|
9
9
|
"Close Sidebar(aria-label)": string;
|
|
10
10
|
"Close Sidebar(sidebar)(aria-label)": string;
|
|
11
|
+
"Close(image zoom)(aria-label)": string;
|
|
11
12
|
"Collapse Sidebar(sidebar)(aria-label)": string;
|
|
12
13
|
"Copied Anchor Link(heading anchor)(aria-label)": string;
|
|
13
14
|
"Copied Link(accordion)(aria-label)": string;
|
|
@@ -21,10 +22,12 @@ export type Translations = {
|
|
|
21
22
|
"Default(type table)": string;
|
|
22
23
|
"Edit on GitHub(edit page)": string;
|
|
23
24
|
"Hide Sidebar(sidebar)": string;
|
|
25
|
+
"Image Viewer(image zoom)(aria-label)": string;
|
|
24
26
|
"Language(language switcher)": string;
|
|
25
27
|
"Last updated on(page footer)": string;
|
|
26
28
|
"Layout Tab(layout tab trigger)": string;
|
|
27
29
|
"Light(theme switcher)(aria-label)": string;
|
|
30
|
+
"Next Image(image zoom)(aria-label)": string;
|
|
28
31
|
"Next Page(pagination)": string;
|
|
29
32
|
"No Headings(table of contents)": string;
|
|
30
33
|
"No results found(search dialog)": string;
|
|
@@ -41,10 +44,13 @@ export type Translations = {
|
|
|
41
44
|
"Options(aria-label)": string;
|
|
42
45
|
"Page Not Found(404 not found page)": string;
|
|
43
46
|
"Parameters(type table)": string;
|
|
47
|
+
"Previous Image(image zoom)(aria-label)": string;
|
|
44
48
|
"Previous Page(pagination)": string;
|
|
45
49
|
"Prop(type table)": string;
|
|
46
50
|
"Read {url}, I want to ask questions about it.(page actions)": string;
|
|
47
51
|
"Returns(type table)": string;
|
|
52
|
+
"Search failed(search dialog)": string;
|
|
53
|
+
"Search failed, showing results for {query}(search dialog)": string;
|
|
48
54
|
"Search(search dialog)": string;
|
|
49
55
|
"Search(search trigger)": string;
|
|
50
56
|
"Show Sidebar(sidebar)": string;
|
|
@@ -8,6 +8,7 @@ var keys_default = [
|
|
|
8
8
|
"Close Search(search dialog)(aria-label)",
|
|
9
9
|
"Close Sidebar(aria-label)",
|
|
10
10
|
"Close Sidebar(sidebar)(aria-label)",
|
|
11
|
+
"Close(image zoom)(aria-label)",
|
|
11
12
|
"Collapse Sidebar(sidebar)(aria-label)",
|
|
12
13
|
"Copied Anchor Link(heading anchor)(aria-label)",
|
|
13
14
|
"Copied Link(accordion)(aria-label)",
|
|
@@ -21,10 +22,12 @@ var keys_default = [
|
|
|
21
22
|
"Default(type table)",
|
|
22
23
|
"Edit on GitHub(edit page)",
|
|
23
24
|
"Hide Sidebar(sidebar)",
|
|
25
|
+
"Image Viewer(image zoom)(aria-label)",
|
|
24
26
|
"Language(language switcher)",
|
|
25
27
|
"Last updated on(page footer)",
|
|
26
28
|
"Layout Tab(layout tab trigger)",
|
|
27
29
|
"Light(theme switcher)(aria-label)",
|
|
30
|
+
"Next Image(image zoom)(aria-label)",
|
|
28
31
|
"Next Page(pagination)",
|
|
29
32
|
"No Headings(table of contents)",
|
|
30
33
|
"No results found(search dialog)",
|
|
@@ -41,10 +44,13 @@ var keys_default = [
|
|
|
41
44
|
"Options(aria-label)",
|
|
42
45
|
"Page Not Found(404 not found page)",
|
|
43
46
|
"Parameters(type table)",
|
|
47
|
+
"Previous Image(image zoom)(aria-label)",
|
|
44
48
|
"Previous Page(pagination)",
|
|
45
49
|
"Prop(type table)",
|
|
46
50
|
"Read {url}, I want to ask questions about it.(page actions)",
|
|
47
51
|
"Returns(type table)",
|
|
52
|
+
"Search failed(search dialog)",
|
|
53
|
+
"Search failed, showing results for {query}(search dialog)",
|
|
48
54
|
"Search(search dialog)",
|
|
49
55
|
"Search(search trigger)",
|
|
50
56
|
"Show Sidebar(sidebar)",
|
|
@@ -30,9 +30,11 @@ export interface SearchDialogProps extends SharedProps {
|
|
|
30
30
|
isLoading?: boolean;
|
|
31
31
|
/** the last successful search, `<SearchDialogList />` shows its results */
|
|
32
32
|
data?: SearchResult;
|
|
33
|
+
/** the last search failed, `<SearchDialogList />` shows it above the results of `data` */
|
|
34
|
+
error?: Error;
|
|
33
35
|
children: ReactNode;
|
|
34
36
|
}
|
|
35
|
-
export declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, data, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): JsxRuntime.JSX.Element;
|
|
37
|
+
export declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, data, error, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): JsxRuntime.JSX.Element;
|
|
36
38
|
export declare function SearchDialogHeader(props: ComponentProps<'div'>): JsxRuntime.JSX.Element;
|
|
37
39
|
export declare function SearchDialogInput(props: ComponentProps<'input'>): JsxRuntime.JSX.Element;
|
|
38
40
|
export declare function SearchDialogClose({ children, className, ...props }: ComponentProps<'button'>): JsxRuntime.JSX.Element;
|
|
@@ -83,6 +85,7 @@ export declare function useSearch(): {
|
|
|
83
85
|
onSelect: (item: SearchItemType) => void;
|
|
84
86
|
isLoading: boolean;
|
|
85
87
|
data?: SearchResult;
|
|
88
|
+
error?: Error;
|
|
86
89
|
/** the query to highlight */
|
|
87
90
|
query: string;
|
|
88
91
|
/** the id of the active item */
|
|
@@ -5,7 +5,7 @@ import { mergeRefs } from "../../utils/merge-refs.js";
|
|
|
5
5
|
import { useRouter } from "fumadocs-core/framework";
|
|
6
6
|
import * as JsxRuntime from "react/jsx-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { ChevronRight, Hash, SearchIcon } from "lucide-react";
|
|
8
|
+
import { ChevronRight, CircleAlert, Hash, SearchIcon } from "lucide-react";
|
|
9
9
|
import { cva } from "class-variance-authority";
|
|
10
10
|
import { Fragment as Fragment$1, createContext, use, useCallback, useEffect, useEffectEvent, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
11
11
|
import { T, useTranslations } from "@fuma-translate/react";
|
|
@@ -97,7 +97,7 @@ const rowRenderOptions = {
|
|
|
97
97
|
thead: () => null
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading = false, data, onSelect: onSelectProp, children, dialogHandle }) {
|
|
100
|
+
function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading = false, data, error, onSelect: onSelectProp, children, dialogHandle }) {
|
|
101
101
|
const router = useRouter();
|
|
102
102
|
const onOpenChangeCallback = useRef(onOpenChange);
|
|
103
103
|
onOpenChangeCallback.current = onOpenChange;
|
|
@@ -138,6 +138,7 @@ function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading =
|
|
|
138
138
|
search,
|
|
139
139
|
isLoading,
|
|
140
140
|
data,
|
|
141
|
+
error,
|
|
141
142
|
query: data ? data.query : search,
|
|
142
143
|
onOpenChange: (v) => onOpenChangeCallback.current(v),
|
|
143
144
|
onSearchChange: (v) => onSearchChangeCallback.current(v),
|
|
@@ -147,7 +148,8 @@ function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading =
|
|
|
147
148
|
isLoading,
|
|
148
149
|
open,
|
|
149
150
|
search,
|
|
150
|
-
data
|
|
151
|
+
data,
|
|
152
|
+
error
|
|
151
153
|
]),
|
|
152
154
|
children
|
|
153
155
|
})
|
|
@@ -239,9 +241,13 @@ function SearchDialogList({ items: itemsProp, defaultItems = null, Empty = () =>
|
|
|
239
241
|
}), Item = (props) => /* @__PURE__ */ jsx(SearchDialogListItem, { ...props }), Table = (props) => /* @__PURE__ */ jsx(SearchDialogListTable, { ...props }), ...props }) {
|
|
240
242
|
const ref = useRef(null);
|
|
241
243
|
const t = useTranslations({ note: "search dialog" });
|
|
242
|
-
const { onSelect, data, getActive, setActive } = useSearch();
|
|
244
|
+
const { onSelect, data, error, getActive, setActive } = useSearch();
|
|
243
245
|
const items = itemsProp === void 0 ? data?.items ?? defaultItems : itemsProp;
|
|
244
|
-
useLayoutEffect(() => setActive(items?.[0]?.id ?? null), [
|
|
246
|
+
useLayoutEffect(() => setActive(error ? null : items?.[0]?.id ?? null), [
|
|
247
|
+
setActive,
|
|
248
|
+
items,
|
|
249
|
+
error
|
|
250
|
+
]);
|
|
245
251
|
const onKey = useEffectEvent((e) => {
|
|
246
252
|
if (!items || e.isComposing || e.keyCode === 229) return;
|
|
247
253
|
const list = flattenItems(items);
|
|
@@ -263,11 +269,11 @@ function SearchDialogList({ items: itemsProp, defaultItems = null, Empty = () =>
|
|
|
263
269
|
const element = ref.current;
|
|
264
270
|
if (!element) return;
|
|
265
271
|
const observer = new ResizeObserver(() => {
|
|
266
|
-
|
|
267
|
-
element.
|
|
272
|
+
let height = 0;
|
|
273
|
+
for (const child of element.children) height += child.offsetHeight;
|
|
274
|
+
element.style.setProperty("--fd-animated-height", `${height}px`);
|
|
268
275
|
});
|
|
269
|
-
const
|
|
270
|
-
if (viewport) observer.observe(viewport);
|
|
276
|
+
for (const child of element.children) observer.observe(child);
|
|
271
277
|
const content = document.getElementById("fd-search-dialog-content") ?? window;
|
|
272
278
|
content.addEventListener("keydown", onKey);
|
|
273
279
|
return () => {
|
|
@@ -275,12 +281,26 @@ function SearchDialogList({ items: itemsProp, defaultItems = null, Empty = () =>
|
|
|
275
281
|
content.removeEventListener("keydown", onKey);
|
|
276
282
|
};
|
|
277
283
|
}, []);
|
|
278
|
-
return /* @__PURE__ */
|
|
284
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
279
285
|
...props,
|
|
280
286
|
ref,
|
|
281
|
-
"data-empty": items === null,
|
|
287
|
+
"data-empty": items === null && !error,
|
|
282
288
|
className: cn("overflow-hidden h-(--fd-animated-height) transition-[height] [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline", props.className),
|
|
283
|
-
children: /* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
290
|
+
role: "status",
|
|
291
|
+
className: cn("truncate text-sm not-empty:p-3", items && "not-empty:border-b"),
|
|
292
|
+
children: error && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CircleAlert, { className: "inline size-5 me-2 align-top text-fd-error" }), data ? /* @__PURE__ */ jsx(T, {
|
|
293
|
+
text: "Search failed, showing results for {query}",
|
|
294
|
+
note: "search dialog",
|
|
295
|
+
variables: { query: /* @__PURE__ */ jsx("span", {
|
|
296
|
+
className: "font-medium",
|
|
297
|
+
children: data.query
|
|
298
|
+
}) }
|
|
299
|
+
}) : /* @__PURE__ */ jsx(T, {
|
|
300
|
+
text: "Search failed",
|
|
301
|
+
note: "search dialog"
|
|
302
|
+
})] })
|
|
303
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
284
304
|
id: "fd-search-list",
|
|
285
305
|
role: items?.length ? "listbox" : void 0,
|
|
286
306
|
"aria-label": items?.length ? t("Search") : void 0,
|
|
@@ -293,7 +313,7 @@ function SearchDialogList({ items: itemsProp, defaultItems = null, Empty = () =>
|
|
|
293
313
|
item,
|
|
294
314
|
onClick: () => onSelect(item)
|
|
295
315
|
}) }, item.id))]
|
|
296
|
-
})
|
|
316
|
+
})]
|
|
297
317
|
});
|
|
298
318
|
}
|
|
299
319
|
function flattenItems(items) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
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
|
-
import { ComponentProps } from "react";
|
|
4
|
+
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
//#region src/components/image-zoom.d.ts
|
|
6
6
|
export type ImageZoomProps = ImageProps & {
|
|
7
7
|
/**
|
|
@@ -9,9 +9,21 @@ export type ImageZoomProps = ImageProps & {
|
|
|
9
9
|
*/
|
|
10
10
|
zoomInProps?: ComponentProps<'img'>;
|
|
11
11
|
/**
|
|
12
|
-
* Props for `react-medium-image-zoom
|
|
12
|
+
* Props for `react-medium-image-zoom`, unused inside `<Lightbox />`
|
|
13
13
|
*/
|
|
14
14
|
rmiz?: UncontrolledProps;
|
|
15
|
+
/**
|
|
16
|
+
* Caption in `<Lightbox />`
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue `title`
|
|
19
|
+
*/
|
|
20
|
+
caption?: ReactNode;
|
|
15
21
|
};
|
|
16
|
-
export declare function ImageZoom({ zoomInProps, children, rmiz, ...props }: ImageZoomProps): import("react").JSX.Element;
|
|
22
|
+
export declare function ImageZoom({ zoomInProps, children, rmiz, caption, ...props }: ImageZoomProps): import("react").JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Browse the zoomable images inside in one viewer
|
|
25
|
+
*/
|
|
26
|
+
export declare function Lightbox({ children }: {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
17
29
|
//#endregion
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { cn } from "../utils/cn.js";
|
|
3
|
+
import { buttonVariants } from "./ui/button.js";
|
|
2
4
|
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
5
|
import "./image-zoom2.css";
|
|
4
6
|
import { Image } from "fumadocs-core/framework";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { ChevronLeft, ChevronRight, X } from "lucide-react";
|
|
9
|
+
import { createContext, use, useRef, useState } from "react";
|
|
10
|
+
import { useTranslations } from "@fuma-translate/react";
|
|
11
|
+
import { createPortal, flushSync } from "react-dom";
|
|
6
12
|
//#region src/components/image-zoom.tsx
|
|
13
|
+
const LightboxContext = createContext(null);
|
|
7
14
|
function getImageSrc(src) {
|
|
8
15
|
if (typeof src === "string") return src;
|
|
9
16
|
if (typeof src === "object") {
|
|
@@ -12,21 +19,239 @@ function getImageSrc(src) {
|
|
|
12
19
|
}
|
|
13
20
|
return "";
|
|
14
21
|
}
|
|
15
|
-
function ImageZoom({ zoomInProps, children, rmiz, ...props }) {
|
|
22
|
+
function ImageZoom({ zoomInProps, children, rmiz, caption, ...props }) {
|
|
23
|
+
const lightbox = use(LightboxContext);
|
|
24
|
+
const zoomImg = {
|
|
25
|
+
src: getImageSrc(props.src),
|
|
26
|
+
sizes: void 0,
|
|
27
|
+
...zoomInProps
|
|
28
|
+
};
|
|
29
|
+
const image = children ?? /* @__PURE__ */ jsx(Image, {
|
|
30
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
if (lightbox) return /* @__PURE__ */ jsx("span", {
|
|
34
|
+
role: "button",
|
|
35
|
+
tabIndex: 0,
|
|
36
|
+
"aria-haspopup": "dialog",
|
|
37
|
+
ref: (element) => {
|
|
38
|
+
if (!element) return;
|
|
39
|
+
return lightbox.register({
|
|
40
|
+
element,
|
|
41
|
+
image: {
|
|
42
|
+
alt: props.alt,
|
|
43
|
+
...zoomImg
|
|
44
|
+
},
|
|
45
|
+
caption: caption ?? props.title
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
onClick: (e) => {
|
|
49
|
+
if (e.target !== e.currentTarget) lightbox.open(e.currentTarget);
|
|
50
|
+
},
|
|
51
|
+
onKeyDown: (e) => {
|
|
52
|
+
if (e.key !== "Enter" && e.key !== " ") return;
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
lightbox.open(e.currentTarget);
|
|
55
|
+
},
|
|
56
|
+
className: "block outline-none [&_img]:cursor-zoom-in [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring",
|
|
57
|
+
children: image
|
|
58
|
+
});
|
|
16
59
|
return /* @__PURE__ */ jsx(Uncontrolled, {
|
|
17
60
|
zoomMargin: 20,
|
|
18
61
|
wrapElement: "span",
|
|
19
62
|
...rmiz,
|
|
20
|
-
zoomImg
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
63
|
+
zoomImg,
|
|
64
|
+
children: image
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Browse the zoomable images inside in one viewer
|
|
69
|
+
*/
|
|
70
|
+
function Lightbox({ children }) {
|
|
71
|
+
const t = useTranslations({ note: "image zoom" });
|
|
72
|
+
const [slides, setSlides] = useState(null);
|
|
73
|
+
const scrollerRef = useRef(null);
|
|
74
|
+
const [context] = useState(() => {
|
|
75
|
+
const items = /* @__PURE__ */ new Set();
|
|
76
|
+
return {
|
|
77
|
+
register(item) {
|
|
78
|
+
items.add(item);
|
|
79
|
+
return () => void items.delete(item);
|
|
80
|
+
},
|
|
81
|
+
open(element) {
|
|
82
|
+
const list = [];
|
|
83
|
+
for (const item of items) {
|
|
84
|
+
if (!item.element.checkVisibility()) continue;
|
|
85
|
+
const img = item.element.querySelector("img");
|
|
86
|
+
list.push({
|
|
87
|
+
...item,
|
|
88
|
+
style: img ? getSlideStyle(img) : void 0
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
list.sort((a, b) => a.element.compareDocumentPosition(b.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
92
|
+
const index = list.findIndex((slide) => slide.element === element);
|
|
93
|
+
transition(getImage(element), () => {
|
|
94
|
+
flushSync(() => setSlides(list));
|
|
95
|
+
const slide = scrollerRef.current.children[index];
|
|
96
|
+
slide.scrollIntoView({
|
|
97
|
+
block: "nearest",
|
|
98
|
+
inline: "start",
|
|
99
|
+
behavior: "instant"
|
|
100
|
+
});
|
|
101
|
+
return slide.querySelector("img");
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
function close() {
|
|
107
|
+
const scroller = scrollerRef.current;
|
|
108
|
+
if (!scroller || !slides) return;
|
|
109
|
+
const index = getIndex(scroller);
|
|
110
|
+
const { element } = slides[index];
|
|
111
|
+
transition(scroller.children[index].querySelector("img"), () => {
|
|
112
|
+
flushSync(() => setSlides(null));
|
|
113
|
+
element.focus({ preventScroll: true });
|
|
114
|
+
const image = getImage(element);
|
|
115
|
+
image.scrollIntoView({
|
|
116
|
+
block: "nearest",
|
|
117
|
+
behavior: "instant"
|
|
118
|
+
});
|
|
119
|
+
return image;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function navigate(step) {
|
|
123
|
+
const scroller = scrollerRef.current;
|
|
124
|
+
scroller.children[getIndex(scroller) + step]?.scrollIntoView({
|
|
125
|
+
block: "nearest",
|
|
126
|
+
inline: "start",
|
|
127
|
+
behavior: "smooth"
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
return /* @__PURE__ */ jsxs(LightboxContext, {
|
|
131
|
+
value: context,
|
|
132
|
+
children: [children, slides && createPortal(/* @__PURE__ */ jsxs("dialog", {
|
|
133
|
+
ref: initDialog,
|
|
134
|
+
tabIndex: -1,
|
|
135
|
+
"aria-label": t("Image Viewer", { note: "aria-label" }),
|
|
136
|
+
onCancel: (e) => {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
close();
|
|
139
|
+
},
|
|
140
|
+
onClose: () => setSlides(null),
|
|
141
|
+
onKeyDown: (e) => {
|
|
142
|
+
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
143
|
+
e.preventDefault();
|
|
144
|
+
const rtl = getComputedStyle(e.currentTarget).direction === "rtl";
|
|
145
|
+
navigate(e.key === "ArrowRight" !== rtl ? 1 : -1);
|
|
146
|
+
},
|
|
147
|
+
className: "m-0 size-full max-h-none max-w-none overflow-hidden border-none bg-fd-background p-0 text-fd-foreground outline-none",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsx("button", {
|
|
150
|
+
type: "button",
|
|
151
|
+
"aria-label": t("Close", { note: "aria-label" }),
|
|
152
|
+
onClick: close,
|
|
153
|
+
className: cn(buttonVariants({
|
|
154
|
+
variant: "ghost",
|
|
155
|
+
size: "icon-sm",
|
|
156
|
+
className: "absolute top-3.25 inset-e-2.5"
|
|
157
|
+
})),
|
|
158
|
+
children: /* @__PURE__ */ jsx(X, {})
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ jsx("div", {
|
|
161
|
+
ref: scrollerRef,
|
|
162
|
+
onClick: (e) => {
|
|
163
|
+
if (!e.target.closest("figcaption")) close();
|
|
164
|
+
},
|
|
165
|
+
className: "flex size-full snap-x snap-mandatory overflow-x-auto overscroll-x-contain [scrollbar-width:none]",
|
|
166
|
+
children: slides.map((slide, i) => /* @__PURE__ */ jsxs("figure", {
|
|
167
|
+
className: "flex w-full shrink-0 snap-start snap-always flex-col items-center pb-6",
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ jsx("p", {
|
|
170
|
+
className: "flex h-14 w-full items-center px-4 text-sm text-fd-muted-foreground tabular-nums",
|
|
171
|
+
children: slides.length > 1 && `${i + 1} / ${slides.length}`
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsx("div", {
|
|
174
|
+
className: "flex min-h-0 w-full flex-1 items-center justify-center px-4 [container-type:size] md:px-16",
|
|
175
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
176
|
+
loading: "lazy",
|
|
177
|
+
...slide.image,
|
|
178
|
+
style: slide.style,
|
|
179
|
+
className: cn("max-h-full cursor-zoom-out bg-cover", slide.image.className)
|
|
180
|
+
})
|
|
181
|
+
}),
|
|
182
|
+
slide.caption && /* @__PURE__ */ jsx("figcaption", {
|
|
183
|
+
className: "prose prose-sm mt-4 px-4 text-center text-fd-muted-foreground md:px-16",
|
|
184
|
+
children: slide.caption
|
|
185
|
+
})
|
|
186
|
+
]
|
|
187
|
+
}, i))
|
|
188
|
+
}),
|
|
189
|
+
slides.length > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
|
|
190
|
+
type: "button",
|
|
191
|
+
"aria-label": t("Previous Image", { note: "aria-label" }),
|
|
192
|
+
onClick: () => navigate(-1),
|
|
193
|
+
className: cn(buttonVariants({
|
|
194
|
+
variant: "ghost",
|
|
195
|
+
size: "icon",
|
|
196
|
+
className: "absolute top-1/2 inset-s-2.5 -translate-y-1/2 max-md:hidden"
|
|
197
|
+
})),
|
|
198
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "rtl:-scale-x-100" })
|
|
199
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
200
|
+
type: "button",
|
|
201
|
+
"aria-label": t("Next Image", { note: "aria-label" }),
|
|
202
|
+
onClick: () => navigate(1),
|
|
203
|
+
className: cn(buttonVariants({
|
|
204
|
+
variant: "ghost",
|
|
205
|
+
size: "icon",
|
|
206
|
+
className: "absolute top-1/2 inset-e-2.5 -translate-y-1/2 max-md:hidden"
|
|
207
|
+
})),
|
|
208
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "rtl:-scale-x-100" })
|
|
209
|
+
})] })
|
|
210
|
+
]
|
|
211
|
+
}), document.body)]
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
function initDialog(element) {
|
|
215
|
+
if (!element.open) element.showModal();
|
|
216
|
+
element.focus();
|
|
217
|
+
const { style } = document.documentElement;
|
|
218
|
+
const overflow = style.overflow;
|
|
219
|
+
style.overflow = "hidden";
|
|
220
|
+
return () => {
|
|
221
|
+
style.overflow = overflow;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function getIndex(scroller) {
|
|
225
|
+
return Math.round(Math.abs(scroller.scrollLeft) / scroller.clientWidth);
|
|
226
|
+
}
|
|
227
|
+
function getImage(element) {
|
|
228
|
+
return element.querySelector("img") ?? element;
|
|
229
|
+
}
|
|
230
|
+
function getSlideStyle(img) {
|
|
231
|
+
const ratio = (img.naturalWidth || img.width) / (img.naturalHeight || img.height);
|
|
232
|
+
return {
|
|
233
|
+
width: ratio ? `min(100cqw, ${ratio} * 100cqh)` : void 0,
|
|
234
|
+
aspectRatio: ratio ? `auto ${ratio}` : void 0,
|
|
235
|
+
backgroundImage: img.currentSrc ? `url(${JSON.stringify(img.currentSrc)})` : void 0
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* morph `from` into the element returned by `update`
|
|
240
|
+
*/
|
|
241
|
+
function transition(from, update) {
|
|
242
|
+
if (!("startViewTransition" in document) || matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
243
|
+
update();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
let to;
|
|
247
|
+
from.style.viewTransitionName = "fd-lightbox";
|
|
248
|
+
document.startViewTransition(() => {
|
|
249
|
+
from.style.viewTransitionName = "";
|
|
250
|
+
to = update();
|
|
251
|
+
to.style.viewTransitionName = "fd-lightbox";
|
|
252
|
+
}).finished.finally(() => {
|
|
253
|
+
if (to) to.style.viewTransitionName = "";
|
|
29
254
|
});
|
|
30
255
|
}
|
|
31
256
|
//#endregion
|
|
32
|
-
export { ImageZoom };
|
|
257
|
+
export { ImageZoom, Lightbox };
|
|
@@ -94,7 +94,7 @@ function LayoutTabs({ tabs: allTabs, ...props }) {
|
|
|
94
94
|
if (!group) return;
|
|
95
95
|
return /* @__PURE__ */ jsx("div", {
|
|
96
96
|
...props,
|
|
97
|
-
className: cn("flex flex-row items-end gap-6 overflow-auto [grid-area:
|
|
97
|
+
className: cn("flex flex-row items-end gap-6 overflow-auto [grid-area:tabs]", props.className),
|
|
98
98
|
children: group.options.map((tab, i) => /* @__PURE__ */ jsx(Link, {
|
|
99
99
|
href: tab.url,
|
|
100
100
|
className: cn("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground", tab.unlisted && selected !== tab && "hidden", selected === tab && "border-fd-primary text-fd-primary"),
|
|
@@ -13,6 +13,7 @@ function Container(props) {
|
|
|
13
13
|
style: {
|
|
14
14
|
gridTemplate: `"sidebar sidebar header toc toc"
|
|
15
15
|
"sidebar sidebar toc-popover toc toc"
|
|
16
|
+
"sidebar sidebar tabs toc toc"
|
|
16
17
|
"sidebar sidebar main toc toc" 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-width))) var(--fd-toc-width) minmax(min-content, 1fr)`,
|
|
17
18
|
"--fd-docs-row-1": "var(--fd-banner-height, 0px)",
|
|
18
19
|
"--fd-docs-row-2": "calc(var(--fd-docs-row-1) + var(--fd-header-height))",
|
|
@@ -22,9 +22,11 @@ function DocsLayout(props) {
|
|
|
22
22
|
const { baseSlots, baseProps } = useBaseSlots(props);
|
|
23
23
|
const tabs = useMemo(() => {
|
|
24
24
|
if (Array.isArray(defaultTabs)) return defaultTabs;
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
if (defaultTabs === false) return [];
|
|
26
|
+
return getLayoutTabs(tree, {
|
|
27
|
+
transform: (option) => option,
|
|
28
|
+
...defaultTabs
|
|
29
|
+
});
|
|
28
30
|
}, [tree, defaultTabs]);
|
|
29
31
|
const slots = {
|
|
30
32
|
...baseSlots,
|
|
@@ -21,7 +21,7 @@ function LayoutTabsDropdown({ tabs: allTabs, className, size = "default", ...pro
|
|
|
21
21
|
open,
|
|
22
22
|
onOpenChange: setOpen,
|
|
23
23
|
children: [/* @__PURE__ */ jsxs(PopoverTrigger, {
|
|
24
|
-
className: cn("inline-flex items-center gap-2 text-sm font-medium rounded-full transition-colors hover:bg-fd-accent data-popup-open:bg-fd-accent", size === "lg" && "text-[0.9375rem]", className),
|
|
24
|
+
className: cn("inline-flex items-center gap-2 text-sm font-medium rounded-full transition-colors [&_svg]:size-4 hover:bg-fd-accent data-popup-open:bg-fd-accent", size === "lg" && "text-[0.9375rem]", className),
|
|
25
25
|
...props,
|
|
26
26
|
children: [selected ? /* @__PURE__ */ jsxs(Fragment, { children: [selected.icon, /* @__PURE__ */ jsx("span", {
|
|
27
27
|
className: "truncate",
|
|
@@ -304,7 +304,7 @@ function SidebarFolder({ folder }) {
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
function isNodeInPath(node, path) {
|
|
307
|
-
return path.some((other) => other
|
|
307
|
+
return path.some((other) => other === node || node.$id !== void 0 && other.$id === node.$id);
|
|
308
308
|
}
|
|
309
309
|
//#endregion
|
|
310
310
|
export { Sidebar, SidebarDrawer, SidebarProvider, drawerHandle, useSidebar };
|
package/dist/style.css
CHANGED
|
@@ -233,6 +233,9 @@
|
|
|
233
233
|
.\@container {
|
|
234
234
|
container-type: inline-size;
|
|
235
235
|
}
|
|
236
|
+
.\[container-type\:size\] {
|
|
237
|
+
container-type: size;
|
|
238
|
+
}
|
|
236
239
|
.pointer-events-none {
|
|
237
240
|
pointer-events: none;
|
|
238
241
|
}
|
|
@@ -325,6 +328,9 @@
|
|
|
325
328
|
.inset-s-0 {
|
|
326
329
|
inset-inline-start: 0px;
|
|
327
330
|
}
|
|
331
|
+
.inset-s-2\.5 {
|
|
332
|
+
inset-inline-start: calc(var(--spacing) * 2.5);
|
|
333
|
+
}
|
|
328
334
|
.inset-s-3 {
|
|
329
335
|
inset-inline-start: calc(var(--spacing) * 3);
|
|
330
336
|
}
|
|
@@ -349,6 +355,9 @@
|
|
|
349
355
|
.inset-e-2 {
|
|
350
356
|
inset-inline-end: calc(var(--spacing) * 2);
|
|
351
357
|
}
|
|
358
|
+
.inset-e-2\.5 {
|
|
359
|
+
inset-inline-end: calc(var(--spacing) * 2.5);
|
|
360
|
+
}
|
|
352
361
|
.-top-1\.5 {
|
|
353
362
|
top: calc(var(--spacing) * -1.5);
|
|
354
363
|
}
|
|
@@ -379,6 +388,9 @@
|
|
|
379
388
|
.top-2\.5 {
|
|
380
389
|
top: calc(var(--spacing) * 2.5);
|
|
381
390
|
}
|
|
391
|
+
.top-3\.25 {
|
|
392
|
+
top: calc(var(--spacing) * 3.25);
|
|
393
|
+
}
|
|
382
394
|
.top-4 {
|
|
383
395
|
top: calc(var(--spacing) * 4);
|
|
384
396
|
}
|
|
@@ -454,6 +466,9 @@
|
|
|
454
466
|
max-width: 96rem;
|
|
455
467
|
}
|
|
456
468
|
}
|
|
469
|
+
.m-0 {
|
|
470
|
+
margin: 0px;
|
|
471
|
+
}
|
|
457
472
|
.-mx-1 {
|
|
458
473
|
margin-inline: calc(var(--spacing) * -1);
|
|
459
474
|
}
|
|
@@ -1157,6 +1172,12 @@
|
|
|
1157
1172
|
.max-h-\[min\(28rem\,var\(--available-height\)\)\] {
|
|
1158
1173
|
max-height: min(28rem, var(--available-height));
|
|
1159
1174
|
}
|
|
1175
|
+
.max-h-full {
|
|
1176
|
+
max-height: 100%;
|
|
1177
|
+
}
|
|
1178
|
+
.max-h-none {
|
|
1179
|
+
max-height: none;
|
|
1180
|
+
}
|
|
1160
1181
|
.min-h-\(--fd-docs-height\) {
|
|
1161
1182
|
min-height: var(--fd-docs-height);
|
|
1162
1183
|
}
|
|
@@ -1286,6 +1307,9 @@
|
|
|
1286
1307
|
.max-w-md {
|
|
1287
1308
|
max-width: var(--container-md);
|
|
1288
1309
|
}
|
|
1310
|
+
.max-w-none {
|
|
1311
|
+
max-width: none;
|
|
1312
|
+
}
|
|
1289
1313
|
.max-w-screen-sm {
|
|
1290
1314
|
max-width: var(--breakpoint-sm);
|
|
1291
1315
|
}
|
|
@@ -1383,12 +1407,27 @@
|
|
|
1383
1407
|
.cursor-default {
|
|
1384
1408
|
cursor: default;
|
|
1385
1409
|
}
|
|
1410
|
+
.cursor-zoom-out {
|
|
1411
|
+
cursor: zoom-out;
|
|
1412
|
+
}
|
|
1386
1413
|
.touch-auto {
|
|
1387
1414
|
touch-action: auto;
|
|
1388
1415
|
}
|
|
1389
1416
|
.resize {
|
|
1390
1417
|
resize: both;
|
|
1391
1418
|
}
|
|
1419
|
+
.snap-x {
|
|
1420
|
+
scroll-snap-type: x var(--tw-scroll-snap-strictness);
|
|
1421
|
+
}
|
|
1422
|
+
.snap-mandatory {
|
|
1423
|
+
--tw-scroll-snap-strictness: mandatory;
|
|
1424
|
+
}
|
|
1425
|
+
.snap-start {
|
|
1426
|
+
scroll-snap-align: start;
|
|
1427
|
+
}
|
|
1428
|
+
.snap-always {
|
|
1429
|
+
scroll-snap-stop: always;
|
|
1430
|
+
}
|
|
1392
1431
|
.scroll-m-4 {
|
|
1393
1432
|
scroll-margin: calc(var(--spacing) * 4);
|
|
1394
1433
|
}
|
|
@@ -1551,6 +1590,9 @@
|
|
|
1551
1590
|
.overscroll-contain {
|
|
1552
1591
|
overscroll-behavior: contain;
|
|
1553
1592
|
}
|
|
1593
|
+
.overscroll-x-contain {
|
|
1594
|
+
overscroll-behavior-x: contain;
|
|
1595
|
+
}
|
|
1554
1596
|
.rounded {
|
|
1555
1597
|
border-radius: 0.25rem;
|
|
1556
1598
|
}
|
|
@@ -1786,6 +1828,9 @@
|
|
|
1786
1828
|
.mask-\[linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\] {
|
|
1787
1829
|
mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
|
|
1788
1830
|
}
|
|
1831
|
+
.bg-cover {
|
|
1832
|
+
background-size: cover;
|
|
1833
|
+
}
|
|
1789
1834
|
.bg-clip-content {
|
|
1790
1835
|
background-clip: content-box;
|
|
1791
1836
|
}
|
|
@@ -2020,6 +2065,9 @@
|
|
|
2020
2065
|
.pb-4 {
|
|
2021
2066
|
padding-bottom: calc(var(--spacing) * 4);
|
|
2022
2067
|
}
|
|
2068
|
+
.pb-6 {
|
|
2069
|
+
padding-bottom: calc(var(--spacing) * 6);
|
|
2070
|
+
}
|
|
2023
2071
|
.pb-8 {
|
|
2024
2072
|
padding-bottom: calc(var(--spacing) * 8);
|
|
2025
2073
|
}
|
|
@@ -2041,6 +2089,9 @@
|
|
|
2041
2089
|
.align-text-bottom {
|
|
2042
2090
|
vertical-align: text-bottom;
|
|
2043
2091
|
}
|
|
2092
|
+
.align-top {
|
|
2093
|
+
vertical-align: top;
|
|
2094
|
+
}
|
|
2044
2095
|
.font-mono {
|
|
2045
2096
|
font-family: var(--font-mono);
|
|
2046
2097
|
}
|
|
@@ -2131,6 +2182,9 @@
|
|
|
2131
2182
|
.text-fd-card-foreground {
|
|
2132
2183
|
color: var(--color-fd-card-foreground);
|
|
2133
2184
|
}
|
|
2185
|
+
.text-fd-error {
|
|
2186
|
+
color: var(--color-fd-error);
|
|
2187
|
+
}
|
|
2134
2188
|
.text-fd-foreground {
|
|
2135
2189
|
color: var(--color-fd-foreground);
|
|
2136
2190
|
}
|
|
@@ -2182,6 +2236,10 @@
|
|
|
2182
2236
|
.text-inherit {
|
|
2183
2237
|
color: inherit;
|
|
2184
2238
|
}
|
|
2239
|
+
.tabular-nums {
|
|
2240
|
+
--tw-numeric-spacing: tabular-nums;
|
|
2241
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
2242
|
+
}
|
|
2185
2243
|
.line-through {
|
|
2186
2244
|
text-decoration-line: line-through;
|
|
2187
2245
|
}
|
|
@@ -2548,6 +2606,9 @@
|
|
|
2548
2606
|
.\[grid-area\:sidebar\] {
|
|
2549
2607
|
grid-area: sidebar;
|
|
2550
2608
|
}
|
|
2609
|
+
.\[grid-area\:tabs\] {
|
|
2610
|
+
grid-area: tabs;
|
|
2611
|
+
}
|
|
2551
2612
|
.\[grid-area\:toc-popover\] {
|
|
2552
2613
|
grid-area: toc-popover;
|
|
2553
2614
|
}
|
|
@@ -2625,6 +2686,13 @@
|
|
|
2625
2686
|
text-overflow: ellipsis;
|
|
2626
2687
|
white-space: nowrap;
|
|
2627
2688
|
}
|
|
2689
|
+
.not-empty\:border-b:not(:empty) {
|
|
2690
|
+
border-bottom-style: var(--tw-border-style);
|
|
2691
|
+
border-bottom-width: 1px;
|
|
2692
|
+
}
|
|
2693
|
+
.not-empty\:p-3:not(:empty) {
|
|
2694
|
+
padding: calc(var(--spacing) * 3);
|
|
2695
|
+
}
|
|
2628
2696
|
@media (hover: hover) {
|
|
2629
2697
|
.group-hover\:-translate-x-0\.5:is(:where(.group):hover *) {
|
|
2630
2698
|
--tw-translate-x: calc(var(--spacing) * -0.5);
|
|
@@ -3428,6 +3496,9 @@
|
|
|
3428
3496
|
.md\:px-6 {
|
|
3429
3497
|
padding-inline: calc(var(--spacing) * 6);
|
|
3430
3498
|
}
|
|
3499
|
+
.md\:px-16 {
|
|
3500
|
+
padding-inline: calc(var(--spacing) * 16);
|
|
3501
|
+
}
|
|
3431
3502
|
.md\:px-\[max\(--spacing\(6\)\,calc\(\(100\%-var\(--fd-page-width\)-var\(--fd-toc-width\)\)\/2\)\)\] {
|
|
3432
3503
|
padding-inline: max(calc(var(--spacing) * 6), calc((100% - var(--fd-page-width) - var(--fd-toc-width)) / 2));
|
|
3433
3504
|
}
|
|
@@ -3717,6 +3788,9 @@
|
|
|
3717
3788
|
.\[\&_\:\:highlight\(fd-search\)\]\:underline ::highlight(fd-search) {
|
|
3718
3789
|
text-decoration-line: underline;
|
|
3719
3790
|
}
|
|
3791
|
+
.\[\&_img\]\:cursor-zoom-in img {
|
|
3792
|
+
cursor: zoom-in;
|
|
3793
|
+
}
|
|
3720
3794
|
.\[\&_svg\]\:size-3\.5 svg {
|
|
3721
3795
|
width: calc(var(--spacing) * 3.5);
|
|
3722
3796
|
height: calc(var(--spacing) * 3.5);
|
|
@@ -3743,6 +3817,13 @@
|
|
|
3743
3817
|
.\[\&_svg\]\:text-fd-muted-foreground svg {
|
|
3744
3818
|
color: var(--color-fd-muted-foreground);
|
|
3745
3819
|
}
|
|
3820
|
+
.\[\&\:focus-visible_img\]\:ring-2:focus-visible img {
|
|
3821
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
3822
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3823
|
+
}
|
|
3824
|
+
.\[\&\:focus-visible_img\]\:ring-fd-ring:focus-visible img {
|
|
3825
|
+
--tw-ring-color: var(--color-fd-ring);
|
|
3826
|
+
}
|
|
3746
3827
|
.\[\&\>\[data-icon\]\]\:size-3\.5 > [data-icon] {
|
|
3747
3828
|
width: calc(var(--spacing) * 3.5);
|
|
3748
3829
|
height: calc(var(--spacing) * 3.5);
|
|
@@ -3993,6 +4074,11 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
3993
4074
|
syntax: "*";
|
|
3994
4075
|
inherits: false;
|
|
3995
4076
|
}
|
|
4077
|
+
@property --tw-scroll-snap-strictness {
|
|
4078
|
+
syntax: "*";
|
|
4079
|
+
inherits: false;
|
|
4080
|
+
initial-value: proximity;
|
|
4081
|
+
}
|
|
3996
4082
|
@property --tw-divide-x-reverse {
|
|
3997
4083
|
syntax: "*";
|
|
3998
4084
|
inherits: false;
|
|
@@ -4128,6 +4214,26 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
4128
4214
|
syntax: "*";
|
|
4129
4215
|
inherits: false;
|
|
4130
4216
|
}
|
|
4217
|
+
@property --tw-ordinal {
|
|
4218
|
+
syntax: "*";
|
|
4219
|
+
inherits: false;
|
|
4220
|
+
}
|
|
4221
|
+
@property --tw-slashed-zero {
|
|
4222
|
+
syntax: "*";
|
|
4223
|
+
inherits: false;
|
|
4224
|
+
}
|
|
4225
|
+
@property --tw-numeric-figure {
|
|
4226
|
+
syntax: "*";
|
|
4227
|
+
inherits: false;
|
|
4228
|
+
}
|
|
4229
|
+
@property --tw-numeric-spacing {
|
|
4230
|
+
syntax: "*";
|
|
4231
|
+
inherits: false;
|
|
4232
|
+
}
|
|
4233
|
+
@property --tw-numeric-fraction {
|
|
4234
|
+
syntax: "*";
|
|
4235
|
+
inherits: false;
|
|
4236
|
+
}
|
|
4131
4237
|
@property --tw-shadow {
|
|
4132
4238
|
syntax: "*";
|
|
4133
4239
|
inherits: false;
|
|
@@ -4399,6 +4505,7 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
4399
4505
|
--tw-rotate-z: initial;
|
|
4400
4506
|
--tw-skew-x: initial;
|
|
4401
4507
|
--tw-skew-y: initial;
|
|
4508
|
+
--tw-scroll-snap-strictness: proximity;
|
|
4402
4509
|
--tw-divide-x-reverse: 0;
|
|
4403
4510
|
--tw-divide-y-reverse: 0;
|
|
4404
4511
|
--tw-gradient-position: initial;
|
|
@@ -4427,6 +4534,11 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
4427
4534
|
--tw-mask-bottom-to-color: transparent;
|
|
4428
4535
|
--tw-leading: initial;
|
|
4429
4536
|
--tw-font-weight: initial;
|
|
4537
|
+
--tw-ordinal: initial;
|
|
4538
|
+
--tw-slashed-zero: initial;
|
|
4539
|
+
--tw-numeric-figure: initial;
|
|
4540
|
+
--tw-numeric-spacing: initial;
|
|
4541
|
+
--tw-numeric-fraction: initial;
|
|
4430
4542
|
--tw-shadow: 0 0 #0000;
|
|
4431
4543
|
--tw-shadow-color: initial;
|
|
4432
4544
|
--tw-shadow-alpha: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.17.
|
|
3
|
+
"version": "16.17.3",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"@types/react": "^19.3.0",
|
|
162
162
|
"@types/react-dom": "^19.3.0",
|
|
163
163
|
"fuma-cli": "^0.3.1",
|
|
164
|
-
"fumadocs-core": "16.17.
|
|
164
|
+
"fumadocs-core": "16.17.3",
|
|
165
165
|
"react-medium-image-zoom": "^5.4.9",
|
|
166
166
|
"tailwindcss": "^4.3.3",
|
|
167
167
|
"tsconfig": "0.0.0",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@types/mdx": "*",
|
|
172
172
|
"@types/react": "*",
|
|
173
|
-
"fumadocs-core": "16.17.
|
|
173
|
+
"fumadocs-core": "16.17.3",
|
|
174
174
|
"next": "16.x.x",
|
|
175
175
|
"react": "^19.2.0",
|
|
176
176
|
"react-dom": "^19.2.0",
|