@fumadocs/base-ui 16.16.1 → 16.16.2

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.
@@ -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 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 collapsing 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 desktop 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:hidden 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 p-0 pagination pb-1.5 pe-0 pe-2.5 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 text-fd-foreground 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 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");
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 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:hidden 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 p-0 pagination pb-1.5 pe-0 pe-2.5 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 text-fd-foreground 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 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");
@@ -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] are 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) h-14 had headerRef hideIfDisabled home hover:text-fd-popover-foreground/50 isNavTransparent isTop justify-end last:me-0 lg:grid-cols-3 lg:hidden like 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 mt-4 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
+ @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) h-14 had headerRef hideIfDisabled home hover:text-fd-popover-foreground/50 isNavTransparent isTop justify-end last:me-0 lg:grid-cols-3 lg:hidden like 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 mt-4 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 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 collapsing 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 desktop 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-14 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-md:hidden 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 text-fd-foreground 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 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");
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 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-14 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-md:hidden 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 text-fd-foreground 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 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");
@@ -1 +1 @@
1
- @source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:flex *:flex-col *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *: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 [&_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 add addEventListener advanced after algoliaClient align align-text-bottom alignItems alignmentBaseline all allowClear allowCopy allowDangerousHtml allows alphabet always an anchor and animate animate-pulse animation another application/json areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-label aria-live aria-selected as aside ask assume assumes async at auto await backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based 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 blocks 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 case center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clipPath clone close closeOnRedirect closed cn code col-span-full collapsed collapsible collection color colors column com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createMarkdownRenderer createRelativeLink css ctx current currentColor custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[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-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 detect 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 fragment 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-y-4 generated ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] 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 have header headers heading height here hidden hideLocale highlight highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore img import in inPre 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-center its js justify-between justify-center keepBackground keepMounted key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system line line-through linear link links list 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)] mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] 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 mdRenderer mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message 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-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-last:mb-2 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 oramaCloudClient 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 oxlint-disable-next-line 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 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 provide provider ps-1 ps-2 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 px-px py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors raw re-create react react-dom react-hooks/exhaustive-deps react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced region registering rehype-raw rehypeCustomElements rehypePlugins rehypeRaw rel relative remarkRehypeOptions remove removeEventListener render renderHighlights renderMarkdown 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 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 shiki shikiOptions shortcuts should show showAlgolia showOrama 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 strong style styles success supported supposed sure svg switch switcher sync system t tab tabIndex table tabs tabsRef tag tagName tags target 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-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent that the their theme themeAriaLabels themeSwitch themeSwitchEnabled themes then this throw thumbBox tier timerRef tip title to toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-4 touch transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] transition-[width,margin,translate,visibility] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger true truncate try type typeof types unchanged undefined underline underlying understand unified unist-util-visit unknown unnecessarily update updateAnchor updates upperX url urls us usage use useCopyButton useDocsSearch useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange 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 visit 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 *:flex *:flex-col *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *: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 [&_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 add addEventListener advanced after algoliaClient align align-text-bottom alignItems alignmentBaseline all allowClear allowCopy allowDangerousHtml 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-label 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 blocks 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 case center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clipPath clone close closeOnRedirect closed closing cn code col-span-full collapsed collapsible collapsing collection color colors column com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createMarkdownRenderer createRelativeLink css ctx current currentColor custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[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-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 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 fragment 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-y-4 generated ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] 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 have header headers heading height here hidden hideLocale highlight highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping img import in inPre 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-center its js justify-between justify-center keepBackground keepMounted key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system line line-through linear link links list 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)] mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] 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 mdRenderer 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-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-last:mb-2 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 oramaCloudClient 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 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 provide provider ps-1 ps-2 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 px-px py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors raw re-create react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced region registering rehype-raw rehypeCustomElements rehypePlugins rehypeRaw rel relative remarkRehypeOptions remove removeEventListener render renderHighlights renderMarkdown 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 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 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 strong style styles success supported supposed sure svg switch switcher sync system t tab tabIndex table tabs tabsRef tag tagName tags take target 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-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent that the their theme themeAriaLabels themeSwitch themeSwitchEnabled themes then this throw thumbBox tier timerRef tip title to toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-4 touch 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 unified unist-util-visit unknown unnecessarily update updateAnchor updates upperX url urls us usage use useCopyButton useDocsSearch useHotKey useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange 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 visit 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 +1 @@
1
- @source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --a_bottom --color-fd-background --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 --fd-top-bar --fd-top-bar_bottom --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] [anchor-name:--fd-top-bar] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] above activeClassName activeLine aiChat alignOffset along angle apart appear area aria-hidden aria-pressed aria-valuemax aria-valuemin aria-valuenow article available bar bars before below bg-[linear-gradient(var(--color-fd-background),transparent_16px)] 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-[0.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 direction docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit end expand 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-(--fd-toc-popover-height) h-10 h-7.5 h-8 has 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 into itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden like linkItems mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-32px),transparent)] 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:hidden max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--fd-page-width) max-w-[380px] may mb-6 mb-8 md:[&_[id]]:scroll-mt-2 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:pb-16 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:scroll-pt-(--fd-header-height) 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 ms-3 mt-0.5 mt-2 mt-4 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 p-0 pagination pb-4 pb-8 pe-1 pe-2.5 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass position positionMethod prefers-reduced-motion 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 px-[calc(--spacing(2.5)-1px)] queries re-render 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 separators setShown setTheme shadow-xl shorter signal single size-3.5! size-4.5 size-7 size-8 soft start start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset subscribe supports-[top:anchor(--a_bottom)]:top-[anchor(--fd-top-bar_bottom)] tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end text-fd-foreground timezone to-40% to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-(--fd-docs-row-3) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[translate] 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-[85%] w-[calc(var(--anchor-width)+--spacing(2))] w-[min(22rem,calc(100vw-1rem))] wider xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-20 z-30");
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] above activeClassName activeLine aiChat alignOffset along angle apart appear area aria-hidden aria-valuemax aria-valuemin aria-valuenow article available bar bars before 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 direction 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%)] has 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 into itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden like 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:hidden 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 ms-3 mt-0.5 mt-2 mt-4 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 p-0 pagination pb-4 pb-8 pe-1 pe-2.5 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass position positionMethod prefers-reduced-motion 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 re-render 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 start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset subscribe tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end text-fd-foreground 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");
@@ -30,11 +30,17 @@ export interface SidebarProviderProps {
30
30
  * Prefetch links, default behaviour depends on your React.js framework.
31
31
  */
32
32
  prefetch?: boolean;
33
+ /**
34
+ * Support collapsing the sidebar on desktop mode
35
+ *
36
+ * @defaultValue true
37
+ */
38
+ collapsible?: boolean;
33
39
  children?: ReactNode;
34
40
  }
35
41
  type Mode = 'drawer' | 'full';
36
42
  declare const SidebarContext: import("react").Context<SidebarContext | null>;
37
- export declare function SidebarProvider({ defaultOpenLevel, prefetch, children }: SidebarProviderProps): import("react").JSX.Element;
43
+ export declare function SidebarProvider({ defaultOpenLevel, prefetch, collapsible, children }: SidebarProviderProps): import("react").JSX.Element;
38
44
  export declare function useSidebar(): SidebarContext;
39
45
  export declare function useFolder(): {
40
46
  open: boolean;
@@ -2,6 +2,7 @@
2
2
  import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { cn } from "../../utils/cn.js";
4
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
5
+ import { useHotKey } from "../../utils/hotkey.js";
5
6
  import Link from "fumadocs-core/link";
6
7
  import { usePathname } from "fumadocs-core/framework";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -35,7 +36,7 @@ var base_exports = /* @__PURE__ */ __exportAll({
35
36
  });
36
37
  const SidebarContext = createContext(null);
37
38
  const FolderContext = createContext(null);
38
- function SidebarProvider({ defaultOpenLevel = 0, prefetch, children }) {
39
+ function SidebarProvider({ defaultOpenLevel = 0, prefetch, collapsible = true, children }) {
39
40
  const closeOnRedirect = useRef(true);
40
41
  const [open, setOpen] = useState(false);
41
42
  const [collapsed, setCollapsed] = useState(false);
@@ -45,6 +46,14 @@ function SidebarProvider({ defaultOpenLevel = 0, prefetch, children }) {
45
46
  if (closeOnRedirect.current) setOpen(false);
46
47
  closeOnRedirect.current = true;
47
48
  });
49
+ useHotKey((e) => {
50
+ if (!(e.metaKey || e.ctrlKey) || e.shiftKey || e.altKey || e.key !== "b") return;
51
+ e.preventDefault();
52
+ setCollapsed((prev) => !prev);
53
+ }, {
54
+ enabled: collapsible && mode === "full",
55
+ ignoreTyping: true
56
+ });
48
57
  return /* @__PURE__ */ jsx(SidebarContext, {
49
58
  value: useMemo(() => ({
50
59
  open,
@@ -2,7 +2,7 @@
2
2
  import { cn } from "../utils/cn.js";
3
3
  import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { createContext, useContext, useEffect, useId, useMemo, useState } from "react";
5
+ import { createContext, useContext, useEffect, useId, useMemo } from "react";
6
6
  //#region src/components/tabs.tsx
7
7
  const TabsContext = createContext(null);
8
8
  function useTabContext() {
@@ -23,16 +23,11 @@ function TabsTrigger({ className, ...props }) {
23
23
  });
24
24
  }
25
25
  function Tabs({ ref, className, items, label, defaultIndex = 0, defaultValue = items ? escapeValue(items[defaultIndex]) : void 0, ...props }) {
26
- const [value, setValue] = useState(defaultValue);
27
26
  const collection = useMemo(() => [], []);
28
27
  return /* @__PURE__ */ jsxs(Tabs$1, {
29
28
  ref,
30
29
  className: (s) => cn("flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4", typeof className === "function" ? className(s) : className),
31
- value,
32
- onValueChange: (v) => {
33
- if (items && !items.some((item) => escapeValue(item) === v)) return;
34
- setValue(v);
35
- },
30
+ defaultValue,
36
31
  ...props,
37
32
  children: [items && /* @__PURE__ */ jsxs(TabsList, { children: [label && /* @__PURE__ */ jsx("span", {
38
33
  className: "text-sm font-medium my-auto me-auto",
@@ -19,7 +19,7 @@ export interface TabsProps extends ComponentProps<typeof Tabs$1.Root> {
19
19
  onValueChange?: (value: string) => void;
20
20
  }
21
21
  export declare const TabsList: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").TabsListProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
22
- export declare const TabsTrigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").TabsTabProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
22
+ export declare function TabsTrigger({ value, ref, ...props }: ComponentProps<typeof Tabs$1.Tab>): import("react").JSX.Element;
23
23
  export declare function Tabs({ ref, groupId, persist, updateAnchor, defaultValue, value: _value, onValueChange: _onValueChange, ...props }: TabsProps): import("react").JSX.Element;
24
24
  export declare function TabsContent({ value, ref, ...props }: ComponentProps<typeof Tabs$1.Panel>): import("react").JSX.Element;
25
25
  //#endregion
@@ -12,46 +12,60 @@ function useTabContext() {
12
12
  return ctx;
13
13
  }
14
14
  const TabsList = Tabs$1.List;
15
- const TabsTrigger = Tabs$1.Tab;
15
+ function TabsTrigger({ value, ref, ...props }) {
16
+ const { triggers } = useTabContext();
17
+ return /* @__PURE__ */ jsx(Tabs$1.Tab, {
18
+ ref: mergeRefs(ref, (element) => {
19
+ if (element) triggers.add(value);
20
+ else triggers.delete(value);
21
+ }),
22
+ value,
23
+ ...props
24
+ });
25
+ }
16
26
  function Tabs({ ref, groupId, persist = false, updateAnchor = false, defaultValue, value: _value, onValueChange: _onValueChange, ...props }) {
17
27
  const tabsRef = useRef(null);
18
28
  const valueToIdMap = useMemo(() => /* @__PURE__ */ new Map(), []);
19
29
  const panels = useMemo(() => /* @__PURE__ */ new Map(), []);
20
- const [value, setValue] = _value === void 0 ? useState(defaultValue) : [_value, useEffectEvent((v) => _onValueChange?.(v))];
30
+ const triggers = useMemo(() => /* @__PURE__ */ new Set(), []);
31
+ const [value, setValue] = _value === void 0 ? useState(defaultValue) : [_value, (v) => _onValueChange?.(v)];
32
+ const onChange = useEffectEvent((v) => {
33
+ if (triggers.has(v)) setValue(v);
34
+ });
35
+ const openFromHash = useEffectEvent(() => {
36
+ const hash = window.location.hash.slice(1);
37
+ if (!hash) return;
38
+ for (const [value, id] of valueToIdMap.entries()) if (id === hash) {
39
+ setValue(value);
40
+ tabsRef.current?.scrollIntoView();
41
+ return;
42
+ }
43
+ const target = document.getElementById(hash);
44
+ if (!target) return;
45
+ for (const [value, panel] of panels.entries()) {
46
+ if (!panel.contains(target)) continue;
47
+ setValue(value);
48
+ requestAnimationFrame(() => target.scrollIntoView());
49
+ return;
50
+ }
51
+ });
21
52
  useLayoutEffect(() => {
22
53
  if (!groupId) return;
23
54
  let previous = sessionStorage.getItem(groupId);
24
55
  if (persist) previous ??= localStorage.getItem(groupId);
25
- if (previous) setValue(previous);
56
+ if (previous) onChange(previous);
26
57
  const groupListeners = listeners.get(groupId) ?? /* @__PURE__ */ new Set();
27
- groupListeners.add(setValue);
58
+ groupListeners.add(onChange);
28
59
  listeners.set(groupId, groupListeners);
29
60
  return () => {
30
- groupListeners.delete(setValue);
61
+ groupListeners.delete(onChange);
31
62
  };
32
63
  }, [groupId, persist]);
33
64
  useLayoutEffect(() => {
34
- const openFromHash = () => {
35
- const hash = window.location.hash.slice(1);
36
- if (!hash) return;
37
- for (const [value, id] of valueToIdMap.entries()) if (id === hash) {
38
- setValue(value);
39
- tabsRef.current?.scrollIntoView();
40
- return;
41
- }
42
- const target = document.getElementById(hash);
43
- if (!target) return;
44
- for (const [value, panel] of panels.entries()) {
45
- if (!panel.contains(target)) continue;
46
- setValue(value);
47
- requestAnimationFrame(() => target.scrollIntoView());
48
- return;
49
- }
50
- };
51
65
  openFromHash();
52
66
  window.addEventListener("hashchange", openFromHash);
53
67
  return () => window.removeEventListener("hashchange", openFromHash);
54
- }, [valueToIdMap, panels]);
68
+ }, []);
55
69
  return /* @__PURE__ */ jsx(Tabs$1.Root, {
56
70
  ref: mergeRefs(ref, tabsRef),
57
71
  value,
@@ -71,8 +85,13 @@ function Tabs({ ref, groupId, persist = false, updateAnchor = false, defaultValu
71
85
  children: /* @__PURE__ */ jsx(TabsContext, {
72
86
  value: useMemo(() => ({
73
87
  valueToIdMap,
74
- panels
75
- }), [valueToIdMap, panels]),
88
+ panels,
89
+ triggers
90
+ }), [
91
+ valueToIdMap,
92
+ panels,
93
+ triggers
94
+ ]),
76
95
  children: props.children
77
96
  })
78
97
  });
@@ -1,6 +1,7 @@
1
1
  "use client";
2
+ import { useHotKey } from "../utils/hotkey.js";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Suspense, createContext, lazy, use, useEffect, useEffectEvent, useMemo, useState, useSyncExternalStore } from "react";
4
+ import { Suspense, createContext, lazy, use, useMemo, useState, useSyncExternalStore } from "react";
4
5
  import { Dialog } from "@base-ui/react/dialog";
5
6
  //#region src/contexts/search.tsx
6
7
  /** built-in Base UI Dialog handle */
@@ -29,18 +30,12 @@ const DEFAULT_HOT_KEYS = [{
29
30
  const DefaultSearchDialog = lazy(() => import("../components/dialog/search-default.js"));
30
31
  function SearchProvider({ SearchDialog = DefaultSearchDialog, children, options, hotKey = DEFAULT_HOT_KEYS, links }) {
31
32
  const [isOpen, setIsOpen] = useState(false);
32
- const onKeyDown = useEffectEvent((e) => {
33
+ useHotKey((e) => {
33
34
  if (hotKey.every((v) => typeof v.key === "string" ? e.key === v.key : v.key(e))) {
34
35
  setIsOpen((open) => !open);
35
36
  e.preventDefault();
36
37
  }
37
38
  });
38
- useEffect(() => {
39
- window.addEventListener("keydown", onKeyDown);
40
- return () => {
41
- window.removeEventListener("keydown", onKeyDown);
42
- };
43
- }, []);
44
39
  return /* @__PURE__ */ jsxs(SearchContext, {
45
40
  value: useMemo(() => ({
46
41
  enabled: true,
@@ -58,6 +58,7 @@ function LayoutBody(props) {
58
58
  children: /* @__PURE__ */ jsx(slots.sidebar.provider, {
59
59
  defaultOpenLevel,
60
60
  prefetch,
61
+ collapsible: sidebarEnabled && sidebarProps.collapsible,
61
62
  children: /* @__PURE__ */ jsxs(slots.container, {
62
63
  ...containerProps,
63
64
  children: [
@@ -7,7 +7,7 @@ export interface SidebarProps extends ComponentProps<'aside'> {
7
7
  banner?: ReactNode;
8
8
  footer?: ReactNode;
9
9
  }
10
- export type SidebarProviderProps = SidebarProviderProps$1;
10
+ export type SidebarProviderProps = Omit<SidebarProviderProps$1, 'collapsible'>;
11
11
  export declare const useSidebar: typeof useSidebar$1;
12
12
  export declare function SidebarProvider(props: SidebarProviderProps): import("react").JSX.Element;
13
13
  export declare function Sidebar({ footer, banner, components, ...rest }: SidebarProps): import("react").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../../../utils/cn.js";
3
3
  import { mergeRefs } from "../../../utils/merge-refs.js";
4
+ import { useHotKey } from "../../../utils/hotkey.js";
4
5
  import { SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
5
6
  import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
6
7
  import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
@@ -8,7 +9,7 @@ import { useFluxLayout } from "../index.js";
8
9
  import { jsx, jsxs } from "react/jsx-runtime";
9
10
  import { SidebarIcon, XIcon } from "lucide-react";
10
11
  import { cva } from "class-variance-authority";
11
- import { useEffect, useEffectEvent, useRef, useState } from "react";
12
+ import { useRef, useState } from "react";
12
13
  import { useTranslations } from "@fuma-translate/react";
13
14
  import { AnimatePresence, motion } from "motion/react";
14
15
  import { RemoveScroll } from "react-remove-scroll";
@@ -29,7 +30,10 @@ function getItemOffset(depth) {
29
30
  }
30
31
  const { useSidebar } = base_exports;
31
32
  function SidebarProvider(props) {
32
- return /* @__PURE__ */ jsx(SidebarProvider$1, { ...props });
33
+ return /* @__PURE__ */ jsx(SidebarProvider$1, {
34
+ ...props,
35
+ collapsible: false
36
+ });
33
37
  }
34
38
  function Sidebar({ footer, banner, components, ...rest }) {
35
39
  const { menuItems } = useFluxLayout();
@@ -86,18 +90,12 @@ function SidebarContent({ ref: refProp, className, children, ...props }) {
86
90
  const ref = useRef(null);
87
91
  const [blockScroll, setBlockScroll] = useState(false);
88
92
  const { open, setOpen } = useSidebar();
89
- const listener = useEffectEvent((e) => {
90
- if (open && e.key === "Escape") {
93
+ useHotKey((e) => {
94
+ if (e.key === "Escape") {
91
95
  setOpen(false);
92
96
  e.preventDefault();
93
97
  }
94
- });
95
- useEffect(() => {
96
- window.addEventListener("keydown", listener);
97
- return () => {
98
- window.removeEventListener("keydown", listener);
99
- };
100
- }, []);
98
+ }, { enabled: open });
101
99
  if (open && !blockScroll) setBlockScroll(true);
102
100
  return /* @__PURE__ */ jsx(RemoveScroll, {
103
101
  enabled: blockScroll,
@@ -3,6 +3,7 @@ import { cn } from "../../../utils/cn.js";
3
3
  import { buttonVariants } from "../../../components/ui/button.js";
4
4
  import { useTreeContext, useTreePath } from "../../../contexts/tree.js";
5
5
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../components/ui/collapsible.js";
6
+ import { useHotKey } from "../../../utils/hotkey.js";
6
7
  import { isLinkItemActive } from "../../shared/index.js";
7
8
  import { LayoutTabsDropdown } from "../layout-tabs.js";
8
9
  import { useGlassLayout } from "../index.js";
@@ -25,6 +26,14 @@ const itemTriggerVariants = cva("inline-flex items-center gap-2 rounded-lg px-2.
25
26
  const Context = createContext(null);
26
27
  function SidebarProvider({ children, collapsible = true }) {
27
28
  const [collapsed, setCollapsed] = useState(false);
29
+ useHotKey((e) => {
30
+ if (!(e.metaKey || e.ctrlKey) || e.shiftKey || e.altKey || e.key !== "b") return;
31
+ e.preventDefault();
32
+ setCollapsed((prev) => !prev);
33
+ }, {
34
+ enabled: collapsible,
35
+ ignoreTyping: true
36
+ });
28
37
  return /* @__PURE__ */ jsx(Context, {
29
38
  value: useMemo(() => ({
30
39
  collapsible,
@@ -54,6 +54,7 @@ function LayoutBody(props) {
54
54
  children: /* @__PURE__ */ jsx(slots.sidebar.provider, {
55
55
  defaultOpenLevel,
56
56
  prefetch,
57
+ collapsible: sidebarProps.collapsible,
57
58
  children: /* @__PURE__ */ jsxs(slots.container, {
58
59
  ...containerProps,
59
60
  children: [
@@ -29,7 +29,7 @@ function AIChatPanel({ open, className, children }) {
29
29
  const [mounted, setMounted] = useState(open);
30
30
  if (open && !mounted) setMounted(true);
31
31
  return /* @__PURE__ */ jsx("aside", {
32
- className: cn("z-40 overflow-clip bg-fd-card text-fd-card-foreground layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] transition-[width,margin,translate,visibility] duration-300 ease-in-out motion-reduce:transition-none max-xl:fixed max-xl:inset-y-2 max-xl:end-2 max-xl:w-(--fd-ai-chat-width) max-xl:rounded-2xl max-xl:border max-xl:shadow-xl", open ? "w-(--fd-ai-chat-width)" : "invisible w-0 max-xl:translate-x-[calc(100%+--spacing(2))] rtl:max-xl:-translate-x-[calc(100%+--spacing(2))]", className),
32
+ className: cn("z-40 overflow-clip bg-fd-card text-fd-card-foreground layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] transition-[width,margin,translate] duration-300 ease-in-out motion-reduce:transition-none max-xl:fixed max-xl:inset-y-2 max-xl:end-2 max-xl:w-(--fd-ai-chat-width) max-xl:rounded-2xl max-xl:border max-xl:shadow-xl", open ? "w-(--fd-ai-chat-width)" : "invisible w-0 transition-[width,margin,translate,visibility] max-xl:translate-x-[calc(100%+--spacing(2))] rtl:max-xl:-translate-x-[calc(100%+--spacing(2))]", className),
33
33
  children: /* @__PURE__ */ jsx("div", {
34
34
  className: "flex flex-col size-full xl:w-(--fd-ai-chat-width)",
35
35
  children: mounted && children
@@ -58,7 +58,7 @@ function DocsLayout(props) {
58
58
  id: "fd-spacious-layout",
59
59
  className: "relative grid min-h-(--fd-layout-height) bg-fd-card transition-[grid-template-columns] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-header-height:--spacing(14)] [--fd-page-width:760px] [--fd-sidebar-width:0px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-toc-width:0px] max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] md:h-(--fd-layout-height) md:overflow-clip print:h-auto print:overflow-visible",
60
60
  style: { gridTemplate: `"sidebar header right" auto
61
- "sidebar toc-popover right" auto
61
+ "sidebar toc-popover right" var(--fd-toc-popover-height, 0px)
62
62
  "sidebar main right" 1fr / var(--fd-sidebar-col) minmax(0, 1fr) auto` },
63
63
  children: [
64
64
  /* @__PURE__ */ jsx(slots.sidebar.main, {}),
@@ -43,45 +43,44 @@ function DocsPage({ full = false, toc = [], tableOfContent: { enabled: tocEnable
43
43
  children: /* @__PURE__ */ jsxs(slots.toc.provider, {
44
44
  single,
45
45
  toc: tocEnabled || tocPopoverEnabled ? toc : [],
46
- children: [
47
- tocPopoverEnabled && /* @__PURE__ */ jsx(slots.toc.popover, { ...tocPopoverProps }),
48
- /* @__PURE__ */ jsxs("div", {
49
- id: "nd-page-panel",
50
- className: "@container relative flex flex-col min-w-0 min-h-0 [grid-area:main] mx-2 bg-fd-background md:ms-0 md:my-2 md:overflow-clip md:rounded-2xl md:border md:shadow-sm print:overflow-visible",
51
- children: [/* @__PURE__ */ jsxs("header", {
52
- className: cn("absolute inset-x-0 top-0 z-10 flex items-center gap-1.5 h-(--fd-header-height) ps-6 pe-4 bg-linear-to-b from-fd-background to-transparent pointer-events-none *:pointer-events-auto max-md:hidden", hasFolders || tocPopoverEnabled ? "from-50%" : "to-40%"),
46
+ children: [/* @__PURE__ */ jsxs("div", {
47
+ className: "sticky top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] z-30 [grid-area:toc-popover] self-start md:hidden",
48
+ children: [tocPopoverEnabled && /* @__PURE__ */ jsx(slots.toc.popover, { ...tocPopoverProps }), /* @__PURE__ */ jsx("div", { className: "absolute inset-x-2 top-full h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] rounded-t-2xl border-x border-t outline-8 outline-fd-card [clip-path:inset(0_-8px_-8px)] bg-origin-border bg-linear-to-b from-fd-background to-transparent to-[16px] pointer-events-none" })]
49
+ }), /* @__PURE__ */ jsxs("div", {
50
+ id: "nd-page-panel",
51
+ className: "@container relative flex flex-col min-w-0 min-h-0 [grid-area:main] mx-2 bg-fd-background md:ms-0 md:my-2 md:overflow-clip md:rounded-2xl md:border md:shadow-sm print:overflow-visible",
52
+ children: [/* @__PURE__ */ jsxs("header", {
53
+ className: cn("absolute inset-x-0 top-0 z-10 flex items-center gap-1.5 h-(--fd-header-height) ps-6 pe-4 bg-linear-to-b from-fd-background to-transparent pointer-events-none *:pointer-events-auto max-md:hidden", hasFolders || tocPopoverEnabled ? "from-50%" : "to-40%"),
54
+ children: [
55
+ /* @__PURE__ */ jsx(ExpandSidebar, {}),
56
+ breadcrumbEnabled && /* @__PURE__ */ jsx(slots.breadcrumb, { ...breadcrumb }),
57
+ tocPopoverEnabled && /* @__PURE__ */ jsxs("div", {
58
+ className: cn("flex items-center gap-1.5 min-w-0 transition-[opacity,visibility] duration-300 motion-reduce:transition-none", tocEnabled && !(aiChat?.open && aiChat.panel) && "invisible opacity-0 @max-5xl:visible @max-5xl:opacity-100 @max-5xl:transition-none"),
59
+ children: [hasFolders && /* @__PURE__ */ jsx("span", {
60
+ className: "text-sm text-fd-muted-foreground/50",
61
+ children: "/"
62
+ }), /* @__PURE__ */ jsx(slots.toc.dropdown, { ...tocPopoverProps })]
63
+ }),
64
+ /* @__PURE__ */ jsx(layout.slots.actions, { className: "ms-auto" })
65
+ ]
66
+ }), /* @__PURE__ */ jsxs("div", {
67
+ className: "flex flex-1 items-start px-4 md:min-h-0 md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:overflow-y-auto md:overscroll-y-contain md:scrollbar-thin md:scrollbar-gutter-stable",
68
+ children: [/* @__PURE__ */ jsxs("article", {
69
+ id: "nd-page",
70
+ "data-full": full,
71
+ className: cn("flex flex-col gap-4 w-full min-w-0 max-w-(--fd-page-width) pt-6 pb-8", full && "layout:[--fd-page-width:1200px]", className),
72
+ ...props,
53
73
  children: [
54
- /* @__PURE__ */ jsx(ExpandSidebar, {}),
55
- breadcrumbEnabled && /* @__PURE__ */ jsx(slots.breadcrumb, { ...breadcrumb }),
56
- tocPopoverEnabled && /* @__PURE__ */ jsxs("div", {
57
- className: cn("flex items-center gap-1.5 min-w-0 transition-[opacity,visibility] duration-300 motion-reduce:transition-none", tocEnabled && !(aiChat?.open && aiChat.panel) && "invisible opacity-0 @max-5xl:visible @max-5xl:opacity-100 @max-5xl:transition-none"),
58
- children: [hasFolders && /* @__PURE__ */ jsx("span", {
59
- className: "text-sm text-fd-muted-foreground/50",
60
- children: "/"
61
- }), /* @__PURE__ */ jsx(slots.toc.dropdown, { ...tocPopoverProps })]
74
+ breadcrumbEnabled && /* @__PURE__ */ jsx(slots.breadcrumb, {
75
+ ...breadcrumb,
76
+ className: cn("md:hidden", breadcrumb.className)
62
77
  }),
63
- /* @__PURE__ */ jsx(layout.slots.actions, { className: "ms-auto" })
78
+ children,
79
+ footerEnabled && /* @__PURE__ */ jsx(slots.footer, { ...footer })
64
80
  ]
65
- }), /* @__PURE__ */ jsxs("div", {
66
- className: "flex flex-1 items-start px-4 md:min-h-0 md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:overflow-y-auto md:overscroll-y-contain md:scrollbar-thin md:scrollbar-gutter-stable md:scroll-pt-(--fd-header-height) md:[&_[id]]:scroll-mt-2",
67
- children: [/* @__PURE__ */ jsxs("article", {
68
- id: "nd-page",
69
- "data-full": full,
70
- className: cn("flex flex-col gap-4 w-full min-w-0 max-w-(--fd-page-width) pt-6 pb-8 md:pb-16", full && "layout:[--fd-page-width:1200px]", className),
71
- ...props,
72
- children: [
73
- breadcrumbEnabled && /* @__PURE__ */ jsx(slots.breadcrumb, {
74
- ...breadcrumb,
75
- className: cn("md:hidden", breadcrumb.className)
76
- }),
77
- children,
78
- footerEnabled && /* @__PURE__ */ jsx(slots.footer, { ...footer })
79
- ]
80
- }), tocEnabled && /* @__PURE__ */ jsx(slots.toc.main, { ...tocProps })]
81
- })]
82
- }, pathname),
83
- /* @__PURE__ */ jsx("div", { className: "fixed inset-x-2 bottom-0 top-(--fd-docs-row-3) supports-[top:anchor(--a_bottom)]:top-[anchor(--fd-top-bar_bottom)] z-20 rounded-t-2xl border-x border-t outline-8 outline-fd-card bg-origin-border bg-[linear-gradient(var(--color-fd-background),transparent_16px)] pointer-events-none md:hidden" })
84
- ]
81
+ }), tocEnabled && /* @__PURE__ */ jsx(slots.toc.main, { ...tocProps })]
82
+ })]
83
+ }, pathname)]
85
84
  })
86
85
  });
87
86
  }
@@ -32,7 +32,7 @@ function TOC({ container, header, footer, ...props }) {
32
32
  return /* @__PURE__ */ jsxs("div", {
33
33
  id: "nd-toc",
34
34
  ...container,
35
- className: cn("sticky top-0 flex flex-col shrink-0 w-(--fd-toc-width) h-full ps-16 pt-6 pb-4 overflow-clip *:min-w-[calc(var(--fd-toc-width)---spacing(16))] layout:[--fd-toc-width:--spacing(76)] transition-[width,padding,opacity,visibility] duration-300 ease-in-out motion-reduce:transition-none max-md:hidden", aiChat?.open && aiChat.panel ? "invisible w-0 ps-0 opacity-0" : "@max-5xl:invisible @max-5xl:w-0 @max-5xl:ps-0 @max-5xl:opacity-0 @max-5xl:transition-none", container?.className),
35
+ className: cn("sticky top-0 flex flex-col shrink-0 w-(--fd-toc-width) h-full ps-16 pt-8 pb-4 overflow-clip *:min-w-[calc(var(--fd-toc-width)---spacing(16))] layout:[--fd-toc-width:--spacing(76)] transition-[width,padding,opacity,visibility] duration-300 ease-in-out motion-reduce:transition-none max-md:hidden", aiChat?.open && aiChat.panel ? "invisible w-0 ps-0 opacity-0" : "@max-5xl:invisible @max-5xl:w-0 @max-5xl:ps-0 @max-5xl:opacity-0 @max-5xl:transition-none", container?.className),
36
36
  children: [
37
37
  header,
38
38
  /* @__PURE__ */ jsxs("h3", {
@@ -62,10 +62,10 @@ function TOCPopover({ container, trigger, content, header, footer, ...props }) {
62
62
  open,
63
63
  onOpenChange: setOpen,
64
64
  ...container,
65
- className: cn("sticky top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] z-30 [grid-area:toc-popover] h-(--fd-toc-popover-height) md:hidden max-md:layout:[--fd-toc-popover-height:--spacing(10)]", container?.className),
65
+ className: cn("max-md:layout:[--fd-toc-popover-height:--spacing(10)]", container?.className),
66
66
  children: /* @__PURE__ */ jsxs("header", {
67
67
  ref,
68
- className: "bg-fd-card [anchor-name:--fd-top-bar]",
68
+ className: "bg-fd-card",
69
69
  children: [/* @__PURE__ */ jsxs(CollapsibleTrigger, {
70
70
  ...trigger,
71
71
  className: cn("flex w-full h-10 items-center gap-2.5 px-4 text-start text-sm text-fd-muted-foreground focus-visible:outline-none", trigger?.className),
@@ -122,7 +122,7 @@ function TOCDropdown({ trigger, content, header, footer, ...props }) {
122
122
  className: "z-50",
123
123
  children: /* @__PURE__ */ jsxs(Popover.Popup, {
124
124
  ...content,
125
- className: cn("flex flex-col w-[min(22rem,calc(100vw-1rem))] max-h-[min(28rem,var(--available-height))] p-3 rounded-2xl border bg-fd-popover text-fd-popover-foreground shadow-xl outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 motion-reduce:transition-none", content?.className),
125
+ className: cn("flex flex-col w-88 max-w-(--available-width) max-h-[min(28rem,var(--available-height))] p-3 rounded-2xl border bg-fd-popover text-fd-popover-foreground shadow-xl outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 motion-reduce:transition-none", content?.className),
126
126
  children: [
127
127
  header,
128
128
  /* @__PURE__ */ jsx(TOCList, {
@@ -12,7 +12,7 @@ import { useTheme } from "next-themes";
12
12
  import { flushSync } from "react-dom";
13
13
  import { Menu } from "@base-ui/react/menu";
14
14
  //#region src/layouts/spacious/slots/actions.tsx
15
- const popupClass = "flex flex-col max-h-(--available-height) overflow-y-auto rounded-2xl border bg-fd-popover text-sm text-fd-popover-foreground shadow-lg outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-[0.97] data-ending-style:duration-100 motion-reduce:transition-none";
15
+ const popupClass = "flex flex-col max-h-(--available-height) overflow-y-auto rounded-2xl border bg-fd-popover text-sm text-fd-popover-foreground shadow-lg outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-97 data-ending-style:duration-100 motion-reduce:transition-none";
16
16
  const itemClass = "flex w-full min-h-9 items-center gap-3 rounded-lg px-2.5 py-1.5 text-start outline-none transition-colors duration-100 data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0";
17
17
  function IconLinks({ className }) {
18
18
  const { menuItems } = useSpaciousLayout();
@@ -34,11 +34,10 @@ function HeaderActions({ className, ...props }) {
34
34
  className: cn("flex items-center gap-0.5 rounded-lg bg-fd-background", className),
35
35
  ...props,
36
36
  children: [
37
- aiChat && /* @__PURE__ */ jsxs("button", {
37
+ aiChat && !aiChat.open && /* @__PURE__ */ jsxs("button", {
38
38
  type: "button",
39
- "aria-pressed": aiChat.open,
40
- className: cn(buttonVariants({ variant: "ghost" }), "h-7.5 gap-1.5 px-2 max-lg:hidden", aiChat.open ? "bg-fd-accent text-fd-accent-foreground" : "text-fd-muted-foreground"),
41
- onClick: () => aiChat.onOpenChange(!aiChat.open),
39
+ className: cn(buttonVariants({ variant: "ghost" }), "h-7.5 gap-1.5 px-2 text-fd-muted-foreground max-lg:hidden"),
40
+ onClick: () => aiChat.onOpenChange(true),
42
41
  children: [/* @__PURE__ */ jsx(MessageCircleIcon, { className: "size-4" }), t("Ask AI")]
43
42
  }),
44
43
  slots.languageSelect && /* @__PURE__ */ jsxs(slots.languageSelect.root, {
@@ -209,7 +208,7 @@ function ThemeSegments() {
209
208
  className: "relative flex rounded-full border bg-fd-secondary p-0.5",
210
209
  children: [index !== -1 && /* @__PURE__ */ jsx("span", {
211
210
  "aria-hidden": true,
212
- className: "absolute top-0.5 start-0.5 size-7 rounded-full bg-fd-background shadow-sm ring-1 ring-fd-border translate-x-[calc(var(--index)*100%)] rtl:-translate-x-[calc(var(--index)*100%)] transition-[translate] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none",
211
+ className: "absolute top-0.5 start-0.5 size-7 rounded-full bg-fd-background shadow-sm ring-1 ring-fd-border translate-x-[calc(var(--index)*100%)] rtl:-translate-x-[calc(var(--index)*100%)] transition-transform duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none",
213
212
  style: { "--index": index }
214
213
  }), themes.map(([key, Icon, turn]) => /* @__PURE__ */ jsx(Menu.RadioItem, {
215
214
  value: key,
@@ -11,7 +11,7 @@ function Header({ className, ...props }) {
11
11
  const { slots } = useSpaciousLayout();
12
12
  return /* @__PURE__ */ jsxs("header", {
13
13
  id: "nd-subnav",
14
- className: cn("sticky top-(--fd-banner-height,0px) z-30 [grid-area:header] flex items-center h-(--fd-header-height) ps-4 pe-2.5 bg-fd-card [anchor-name:--fd-top-bar] md:hidden", className),
14
+ className: cn("sticky top-(--fd-banner-height,0px) z-30 [grid-area:header] flex items-center h-(--fd-header-height) ps-4 pe-2.5 bg-fd-card md:hidden", className),
15
15
  ...props,
16
16
  children: [
17
17
  /* @__PURE__ */ jsx(slots.navTitle, { className: "inline-flex items-center gap-2.5 me-auto font-semibold" }),
@@ -1,7 +1,7 @@
1
1
  import { SidebarProviderProps as SidebarProviderProps$1, base_d_exports } from "../../../components/sidebar/base.js";
2
2
  import { ComponentProps } from "react";
3
3
  //#region src/layouts/spacious/slots/sidebar.d.ts
4
- export type SidebarProviderProps = SidebarProviderProps$1;
4
+ export type SidebarProviderProps = Omit<SidebarProviderProps$1, 'collapsible'>;
5
5
  export type SidebarProps = ComponentProps<'aside'>;
6
6
  export declare function SidebarProvider(props: SidebarProviderProps): import("react").JSX.Element;
7
7
  export declare function Sidebar({ className, ...props }: SidebarProps): import("react").JSX.Element | undefined;
@@ -69,7 +69,7 @@ function SidebarDrawer() {
69
69
  const { slots, menuItems, props: { aiChat } } = useSpaciousLayout();
70
70
  const t = useTranslations({ note: "AI chat button" });
71
71
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SidebarDrawerOverlay, { className: "fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out" }), /* @__PURE__ */ jsxs(SidebarDrawerContent, {
72
- className: "fixed z-40 inset-e-0 inset-y-0 flex flex-col w-[85%] max-w-[380px] text-[0.9375rem] bg-fd-background border-s shadow-lg data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",
72
+ className: "fixed z-40 inset-e-0 inset-y-0 flex flex-col w-[85%] max-w-95 text-[0.9375rem] bg-fd-background border-s shadow-lg data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",
73
73
  children: [
74
74
  /* @__PURE__ */ jsxs("div", {
75
75
  className: "flex items-center gap-1.5 h-(--fd-header-height) ps-3.5 pe-2.5 text-fd-muted-foreground",
@@ -140,7 +140,7 @@ function TabsMenu() {
140
140
  positionMethod: "fixed",
141
141
  className: "z-50",
142
142
  children: /* @__PURE__ */ jsx(Menu.Popup, {
143
- className: "flex flex-col w-[calc(var(--anchor-width)+--spacing(2))] max-h-(--available-height) overflow-y-auto p-1 rounded-2xl border bg-fd-popover text-sm text-fd-popover-foreground shadow-lg outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-[0.97] data-ending-style:duration-100 motion-reduce:transition-none",
143
+ className: "flex flex-col w-[calc(var(--anchor-width)+--spacing(2))] max-h-(--available-height) overflow-y-auto p-1 rounded-2xl border bg-fd-popover text-sm text-fd-popover-foreground shadow-lg outline-none origin-(--transform-origin) transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-97 data-ending-style:duration-100 motion-reduce:transition-none",
144
144
  children: options.map((tab, i) => {
145
145
  if (tab.unlisted && tab !== selected) return;
146
146
  return /* @__PURE__ */ jsxs(Menu.LinkItem, {
@@ -182,7 +182,7 @@ function SidebarViewport() {
182
182
  return /* @__PURE__ */ jsxs(ScrollArea.Root, {
183
183
  className: "min-h-0 flex-1 mt-2",
184
184
  children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, {
185
- className: "size-full overscroll-contain px-3 pt-4 pb-8 mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-32px),transparent)]",
185
+ className: "size-full overscroll-contain px-3 pt-4 pb-8 mask-t-from-[calc(100%-16px)] mask-b-from-[calc(100%-32px)]",
186
186
  children: /* @__PURE__ */ jsx(SidebarItems, {})
187
187
  }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
188
188
  className: (s) => cn("flex w-1.5 py-2 select-none transition-opacity", !s.hovering && "opacity-0"),
@@ -1,46 +1,24 @@
1
1
  "use client";
2
2
  import { I18nProvider } from "../contexts/i18n.js";
3
+ import { useHotKey } from "../utils/hotkey.js";
3
4
  import { SearchProvider } from "../contexts/search.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { useEffect, useEffectEvent } from "react";
6
6
  import { ThemeProvider, useTheme, useTheme as useTheme$1 } from "next-themes";
7
7
  import { flushSync } from "react-dom";
8
8
  import { DirectionProvider } from "@base-ui/react/direction-provider";
9
9
  //#region src/provider/base.tsx
10
10
  /**
11
- * Whether the event should be ignored because the user is interacting with an editable element,
12
- * or an opened dialog (e.g. the search dialog).
13
- */
14
- function isTypingTarget(target) {
15
- if (!(target instanceof HTMLElement)) return false;
16
- if (target.isContentEditable) return true;
17
- if ([
18
- "INPUT",
19
- "TEXTAREA",
20
- "SELECT"
21
- ].includes(target.tagName)) return true;
22
- return target.closest("[role=\"dialog\"]") !== null;
23
- }
24
- /**
25
11
  * Toggle between light/dark mode with a hotkey, must be placed under `next-themes` provider.
26
12
  */
27
13
  function ThemeHotKey({ hotKey }) {
28
14
  const { setTheme, resolvedTheme } = useTheme$1();
29
- const onKeyDown = useEffectEvent((e) => {
30
- if (e.defaultPrevented || e.isComposing || e.keyCode === 229) return;
31
- if (isTypingTarget(e.target)) return;
15
+ useHotKey((e) => {
32
16
  if (!(typeof hotKey === "string" ? !e.metaKey && !e.ctrlKey && !e.altKey && e.key.toLowerCase() === hotKey.toLowerCase() : hotKey(e))) return;
33
17
  e.preventDefault();
34
18
  const next = resolvedTheme === "dark" ? "light" : "dark";
35
19
  if (document?.startViewTransition) document.startViewTransition(() => flushSync(() => setTheme(next)));
36
20
  else setTheme(next);
37
- });
38
- useEffect(() => {
39
- window.addEventListener("keydown", onKeyDown);
40
- return () => {
41
- window.removeEventListener("keydown", onKeyDown);
42
- };
43
- }, []);
21
+ }, { ignoreTyping: true });
44
22
  return null;
45
23
  }
46
24
  function RootProvider({ children, dir = "ltr", theme = {}, search, i18n }) {
package/dist/style.css CHANGED
@@ -388,6 +388,9 @@
388
388
  .top-\[calc\(var\(--fd-banner-height\,0px\)\+var\(--fd-header-height\)\)\] {
389
389
  top: calc(var(--fd-banner-height,0px) + var(--fd-header-height));
390
390
  }
391
+ .top-full {
392
+ top: 100%;
393
+ }
391
394
  .right-2 {
392
395
  right: calc(var(--spacing) * 2);
393
396
  }
@@ -1121,6 +1124,9 @@
1121
1124
  .h-\[calc\(var\(--fd-docs-height\)-var\(--fd-docs-row-3\)\)\] {
1122
1125
  height: calc(var(--fd-docs-height) - var(--fd-docs-row-3));
1123
1126
  }
1127
+ .h-\[calc\(var\(--fd-layout-height\)-var\(--fd-header-height\)-100\%\)\] {
1128
+ height: calc(var(--fd-layout-height) - var(--fd-header-height) - 100%);
1129
+ }
1124
1130
  .h-full {
1125
1131
  height: 100%;
1126
1132
  }
@@ -1199,6 +1205,9 @@
1199
1205
  .w-64 {
1200
1206
  width: calc(var(--spacing) * 64);
1201
1207
  }
1208
+ .w-88 {
1209
+ width: calc(var(--spacing) * 88);
1210
+ }
1202
1211
  .w-\[85\%\] {
1203
1212
  width: 85%;
1204
1213
  }
@@ -1217,9 +1226,6 @@
1217
1226
  .w-\[calc\(var\(--anchor-width\)\+--spacing\(2\)\)\] {
1218
1227
  width: calc(var(--anchor-width) + calc(var(--spacing) * 2));
1219
1228
  }
1220
- .w-\[min\(22rem\,calc\(100vw-1rem\)\)\] {
1221
- width: min(22rem, calc(100vw - 1rem));
1222
- }
1223
1229
  .w-fit {
1224
1230
  width: fit-content;
1225
1231
  }
@@ -1241,6 +1247,9 @@
1241
1247
  .max-w-\(--fd-page-width\) {
1242
1248
  max-width: var(--fd-page-width);
1243
1249
  }
1250
+ .max-w-95 {
1251
+ max-width: calc(var(--spacing) * 95);
1252
+ }
1244
1253
  .max-w-\[98vw\] {
1245
1254
  max-width: 98vw;
1246
1255
  }
@@ -1489,6 +1498,9 @@
1489
1498
  :where(.divide-fd-border > :not(:last-child)) {
1490
1499
  border-color: var(--color-fd-border);
1491
1500
  }
1501
+ .self-start {
1502
+ align-self: flex-start;
1503
+ }
1492
1504
  .justify-self-end {
1493
1505
  justify-self: flex-end;
1494
1506
  }
@@ -1703,9 +1715,6 @@
1703
1715
  }
1704
1716
  background-image: linear-gradient(var(--tw-gradient-stops));
1705
1717
  }
1706
- .bg-\[linear-gradient\(var\(--color-fd-background\)\,transparent_16px\)\] {
1707
- background-image: linear-gradient(var(--color-fd-background),transparent 16px);
1708
- }
1709
1718
  .from-fd-background {
1710
1719
  --tw-gradient-from: var(--color-fd-background);
1711
1720
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -1727,6 +1736,23 @@
1727
1736
  .to-40\% {
1728
1737
  --tw-gradient-to-position: 40%;
1729
1738
  }
1739
+ .to-\[16px\] {
1740
+ --tw-gradient-to-position: 16px;
1741
+ }
1742
+ .mask-t-from-\[calc\(100\%-16px\)\] {
1743
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1744
+ mask-composite: intersect;
1745
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1746
+ --tw-mask-top: linear-gradient(to top, var(--tw-mask-top-from-color) var(--tw-mask-top-from-position), var(--tw-mask-top-to-color) var(--tw-mask-top-to-position));
1747
+ --tw-mask-top-from-position: calc(100% - 16px);
1748
+ }
1749
+ .mask-b-from-\[calc\(100\%-32px\)\] {
1750
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1751
+ mask-composite: intersect;
1752
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1753
+ --tw-mask-bottom: linear-gradient(to bottom, var(--tw-mask-bottom-from-color) var(--tw-mask-bottom-from-position), var(--tw-mask-bottom-to-color) var(--tw-mask-bottom-to-position));
1754
+ --tw-mask-bottom-from-position: calc(100% - 32px);
1755
+ }
1730
1756
  .\[mask-image\:linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\)\] {
1731
1757
  mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
1732
1758
  }
@@ -1742,9 +1768,6 @@
1742
1768
  .mask-\[linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\] {
1743
1769
  mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
1744
1770
  }
1745
- .mask-\[linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-32px\)\,transparent\)\] {
1746
- mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 32px),transparent);
1747
- }
1748
1771
  .mask-\[linear-gradient\(to_bottom\,white\,white_30px\,transparent_80px\)\] {
1749
1772
  mask-image: linear-gradient(to bottom,white,white 30px,transparent 80px);
1750
1773
  }
@@ -1958,6 +1981,9 @@
1958
1981
  .pt-6 {
1959
1982
  padding-top: calc(var(--spacing) * 6);
1960
1983
  }
1984
+ .pt-8 {
1985
+ padding-top: calc(var(--spacing) * 8);
1986
+ }
1961
1987
  .pt-12 {
1962
1988
  padding-top: calc(var(--spacing) * 12);
1963
1989
  }
@@ -2309,11 +2335,6 @@
2309
2335
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
2310
2336
  transition-duration: var(--tw-duration, var(--default-transition-duration));
2311
2337
  }
2312
- .transition-\[translate\] {
2313
- transition-property: translate;
2314
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
2315
- transition-duration: var(--tw-duration, var(--default-transition-duration));
2316
- }
2317
2338
  .transition-\[width\,height\] {
2318
2339
  transition-property: width,height;
2319
2340
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -2329,6 +2350,11 @@
2329
2350
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
2330
2351
  transition-duration: var(--tw-duration, var(--default-transition-duration));
2331
2352
  }
2353
+ .transition-\[width\,margin\,translate\] {
2354
+ transition-property: width,margin,translate;
2355
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
2356
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
2357
+ }
2332
2358
  .transition-\[width\,padding\,opacity\,visibility\] {
2333
2359
  transition-property: width,padding,opacity,visibility;
2334
2360
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -2473,8 +2499,8 @@
2473
2499
  .\[--viewport-padding\:0px\] {
2474
2500
  --viewport-padding: 0px;
2475
2501
  }
2476
- .\[anchor-name\:--fd-top-bar\] {
2477
- anchor-name: --fd-top-bar;
2502
+ .\[clip-path\:inset\(0_-8px_-8px\)\] {
2503
+ clip-path: inset(0 -8px -8px);
2478
2504
  }
2479
2505
  .\[clip-path\:inset\(0_0_100\%\)\] {
2480
2506
  clip-path: inset(0 0 100%);
@@ -2789,8 +2815,11 @@
2789
2815
  --tw-scale-z: 95%;
2790
2816
  scale: var(--tw-scale-x) var(--tw-scale-y);
2791
2817
  }
2792
- .data-ending-style\:scale-\[0\.97\][data-ending-style] {
2793
- scale: 0.97;
2818
+ .data-ending-style\:scale-97[data-ending-style] {
2819
+ --tw-scale-x: 97%;
2820
+ --tw-scale-y: 97%;
2821
+ --tw-scale-z: 97%;
2822
+ scale: var(--tw-scale-x) var(--tw-scale-y);
2794
2823
  }
2795
2824
  .data-ending-style\:\[transform\:translateX\(calc\(100\%-var\(--bleed\)\+var\(--viewport-padding\)\+2px\)\)\][data-ending-style] {
2796
2825
  transform: translateX(calc(100% - var(--bleed) + var(--viewport-padding) + 2px));
@@ -3056,11 +3085,6 @@
3056
3085
  --viewport-padding: 0.625rem;
3057
3086
  }
3058
3087
  }
3059
- @supports (top:anchor(--a bottom)) {
3060
- .supports-\[top\:anchor\(--a_bottom\)\]\:top-\[anchor\(--fd-top-bar_bottom\)\] {
3061
- top: anchor(--fd-top-bar bottom);
3062
- }
3063
- }
3064
3088
  @media (prefers-reduced-motion: no-preference) {
3065
3089
  .motion-safe\:animate-fd-roll-in {
3066
3090
  animation: var(--animate-fd-roll-in);
@@ -3301,9 +3325,6 @@
3301
3325
  .md\:min-h-0 {
3302
3326
  min-height: 0px;
3303
3327
  }
3304
- .md\:scroll-pt-\(--fd-header-height\) {
3305
- scroll-padding-top: var(--fd-header-height);
3306
- }
3307
3328
  .md\:scrollbar-thin {
3308
3329
  scrollbar-width: thin;
3309
3330
  }
@@ -3374,9 +3395,6 @@
3374
3395
  .md\:pb-8 {
3375
3396
  padding-bottom: calc(var(--spacing) * 8);
3376
3397
  }
3377
- .md\:pb-16 {
3378
- padding-bottom: calc(var(--spacing) * 16);
3379
- }
3380
3398
  .md\:shadow-sm {
3381
3399
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
3382
3400
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -3639,11 +3657,6 @@
3639
3657
  --fd-toc-width: 268px;
3640
3658
  }
3641
3659
  }
3642
- @media (width >= 48rem) {
3643
- .md\:\[\&_\[id\]\]\:scroll-mt-2 [id] {
3644
- scroll-margin-top: calc(var(--spacing) * 2);
3645
- }
3646
- }
3647
3660
  .\[\&_svg\]\:size-3\.5 svg {
3648
3661
  width: calc(var(--spacing) * 3.5);
3649
3662
  height: calc(var(--spacing) * 3.5);
@@ -3972,6 +3985,81 @@ code.shiki:not(.not-fumadocs-code *) span {
3972
3985
  inherits: false;
3973
3986
  initial-value: 100%;
3974
3987
  }
3988
+ @property --tw-mask-linear {
3989
+ syntax: "*";
3990
+ inherits: false;
3991
+ initial-value: linear-gradient(#fff, #fff);
3992
+ }
3993
+ @property --tw-mask-radial {
3994
+ syntax: "*";
3995
+ inherits: false;
3996
+ initial-value: linear-gradient(#fff, #fff);
3997
+ }
3998
+ @property --tw-mask-conic {
3999
+ syntax: "*";
4000
+ inherits: false;
4001
+ initial-value: linear-gradient(#fff, #fff);
4002
+ }
4003
+ @property --tw-mask-left {
4004
+ syntax: "*";
4005
+ inherits: false;
4006
+ initial-value: linear-gradient(#fff, #fff);
4007
+ }
4008
+ @property --tw-mask-right {
4009
+ syntax: "*";
4010
+ inherits: false;
4011
+ initial-value: linear-gradient(#fff, #fff);
4012
+ }
4013
+ @property --tw-mask-bottom {
4014
+ syntax: "*";
4015
+ inherits: false;
4016
+ initial-value: linear-gradient(#fff, #fff);
4017
+ }
4018
+ @property --tw-mask-top {
4019
+ syntax: "*";
4020
+ inherits: false;
4021
+ initial-value: linear-gradient(#fff, #fff);
4022
+ }
4023
+ @property --tw-mask-top-from-position {
4024
+ syntax: "*";
4025
+ inherits: false;
4026
+ initial-value: 0%;
4027
+ }
4028
+ @property --tw-mask-top-to-position {
4029
+ syntax: "*";
4030
+ inherits: false;
4031
+ initial-value: 100%;
4032
+ }
4033
+ @property --tw-mask-top-from-color {
4034
+ syntax: "*";
4035
+ inherits: false;
4036
+ initial-value: black;
4037
+ }
4038
+ @property --tw-mask-top-to-color {
4039
+ syntax: "*";
4040
+ inherits: false;
4041
+ initial-value: transparent;
4042
+ }
4043
+ @property --tw-mask-bottom-from-position {
4044
+ syntax: "*";
4045
+ inherits: false;
4046
+ initial-value: 0%;
4047
+ }
4048
+ @property --tw-mask-bottom-to-position {
4049
+ syntax: "*";
4050
+ inherits: false;
4051
+ initial-value: 100%;
4052
+ }
4053
+ @property --tw-mask-bottom-from-color {
4054
+ syntax: "*";
4055
+ inherits: false;
4056
+ initial-value: black;
4057
+ }
4058
+ @property --tw-mask-bottom-to-color {
4059
+ syntax: "*";
4060
+ inherits: false;
4061
+ initial-value: transparent;
4062
+ }
3975
4063
  @property --tw-leading {
3976
4064
  syntax: "*";
3977
4065
  inherits: false;
@@ -4262,6 +4350,21 @@ code.shiki:not(.not-fumadocs-code *) span {
4262
4350
  --tw-gradient-from-position: 0%;
4263
4351
  --tw-gradient-via-position: 50%;
4264
4352
  --tw-gradient-to-position: 100%;
4353
+ --tw-mask-linear: linear-gradient(#fff, #fff);
4354
+ --tw-mask-radial: linear-gradient(#fff, #fff);
4355
+ --tw-mask-conic: linear-gradient(#fff, #fff);
4356
+ --tw-mask-left: linear-gradient(#fff, #fff);
4357
+ --tw-mask-right: linear-gradient(#fff, #fff);
4358
+ --tw-mask-bottom: linear-gradient(#fff, #fff);
4359
+ --tw-mask-top: linear-gradient(#fff, #fff);
4360
+ --tw-mask-top-from-position: 0%;
4361
+ --tw-mask-top-to-position: 100%;
4362
+ --tw-mask-top-from-color: black;
4363
+ --tw-mask-top-to-color: transparent;
4364
+ --tw-mask-bottom-from-position: 0%;
4365
+ --tw-mask-bottom-to-position: 100%;
4366
+ --tw-mask-bottom-from-color: black;
4367
+ --tw-mask-bottom-to-color: transparent;
4265
4368
  --tw-leading: initial;
4266
4369
  --tw-font-weight: initial;
4267
4370
  --tw-shadow: 0 0 #0000;
@@ -0,0 +1,29 @@
1
+ import { useEffect, useEffectEvent } from "react";
2
+ //#region src/utils/hotkey.ts
3
+ /**
4
+ * Listen to `keydown` on window, skipping keys that are already handled or composing text.
5
+ */
6
+ function useHotKey(onKeyDown, { enabled = true, ignoreTyping = false } = {}) {
7
+ const listener = useEffectEvent((e) => {
8
+ if (e.defaultPrevented || e.isComposing || e.keyCode === 229) return;
9
+ if (ignoreTyping && isTypingTarget(e.target)) return;
10
+ onKeyDown(e);
11
+ });
12
+ useEffect(() => {
13
+ if (!enabled) return;
14
+ window.addEventListener("keydown", listener);
15
+ return () => window.removeEventListener("keydown", listener);
16
+ }, [enabled]);
17
+ }
18
+ function isTypingTarget(target) {
19
+ if (!(target instanceof HTMLElement)) return false;
20
+ if (target.isContentEditable) return true;
21
+ if ([
22
+ "INPUT",
23
+ "TEXTAREA",
24
+ "SELECT"
25
+ ].includes(target.tagName)) return true;
26
+ return target.closest("[role=\"dialog\"]") !== null;
27
+ }
28
+ //#endregion
29
+ export { useHotKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fumadocs/base-ui",
3
- "version": "16.16.1",
3
+ "version": "16.16.2",
4
4
  "description": "The Base UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -153,7 +153,7 @@
153
153
  "unist-util-visit": "^5.1.0"
154
154
  },
155
155
  "devDependencies": {
156
- "@fumadocs/cli": "1.7.2",
156
+ "@fumadocs/cli": "1.7.3",
157
157
  "@tailwindcss/cli": "^4.3.3",
158
158
  "@tailwindcss/oxide": "^4.3.3",
159
159
  "@tsdown/css": "^0.23.0",
@@ -163,7 +163,7 @@
163
163
  "@types/react": "^19.3.0",
164
164
  "@types/react-dom": "^19.3.0",
165
165
  "fuma-cli": "^0.3.1",
166
- "fumadocs-core": "16.16.1",
166
+ "fumadocs-core": "16.16.2",
167
167
  "react-medium-image-zoom": "^5.4.9",
168
168
  "tailwindcss": "^4.3.3",
169
169
  "tsconfig": "0.0.0",
@@ -173,7 +173,7 @@
173
173
  "peerDependencies": {
174
174
  "@types/mdx": "*",
175
175
  "@types/react": "*",
176
- "fumadocs-core": "16.16.1",
176
+ "fumadocs-core": "16.16.2",
177
177
  "next": "16.x.x",
178
178
  "react": "^19.2.0",
179
179
  "react-dom": "^19.2.0",