@fumadocs/base-ui 16.19.6 → 16.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/generated/shared.css +1 -1
- package/css/generated/spacious.css +1 -1
- package/dist/components/accordion.js +12 -7
- package/dist/components/banner.js +7 -3
- package/dist/components/dialog/search-orama.js +0 -3
- package/dist/components/toc/block.js +4 -1
- package/dist/components/toc/clerk.js +1 -1
- package/dist/components/toc/default.js +5 -1
- package/dist/components/ui/tabs.js +9 -4
- package/dist/layouts/shared/page-actions.js +1 -1
- package/dist/layouts/spacious/index.js +2 -2
- package/dist/layouts/spacious/page/index.js +4 -6
- package/dist/layouts/spacious/page/slots/toc.js +1 -1
- package/dist/layouts/spacious/slots/sidebar.js +2 -2
- package/dist/style.css +42 -43
- package/package.json +4 -4
package/css/generated/shared.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!collapsed !isActive !items !nested !open !title *:data-[empty=true]:border-t-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex-col *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:border-t *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --padding-right --removed-body-scroll-bar-size --shiki-dark-bg --shiki-light-bg --spacing --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 @typescript-eslint/no-namespace [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&[hidden]:not([hidden='until-found'])]:hidden [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [clip-path:polygon(0_0,100%_0,100%_0,0_0)] [container-type:size] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add addEventListener advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allows alphabet alt altKey always an anchor anchors and animate animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-current aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b back backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner base baseProps baseSlots baseUrl based became becomes before behavior behaviour behind belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-linear-to-r bg-transparent bind bitsLeft black block boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bottom-4 bound boundaries boundary box buffer bundle button buttonVariants by cache cached callbacks called came can canonical caption cards case cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code codeblock col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink createShikiHighlighter css ctx current currentColor currentSrc cursor-default cursor-zoom-out curve custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description desktop destructuring detect dialog dialogHandle dir direction disabled disabled:opacity-50 disabled:pointer-events-none discard display displayName displayed div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer draws 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 end endpoint entering env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed fallback false fd-lightbox fd-moving-banner fd-scroll-container fd-search-dialog-content fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first first:mt-0 fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight footer for forces forks formatter formatterOptions found free from from-fd-primary/10 full fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function g gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive getHash ghost github-dark github-light githubUrl give given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground group-data-[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-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter highlights hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index inert infinite info infos initial initialFocus inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-e-[calc(--spacing(4)+var(--removed-body-scroll-bar-size,0px))] inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-2 inset-y-0 inside instance instanceof instant instantly instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isUp it item itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted keeps key keyCode keydown keys l0 l1 l2 label lags lang language languageSelect languages large last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] layouts lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear lines link links list listbox listener listeners loading localRef locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] maskComposite maskImage matches max-h-(--available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-1.5 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message meta metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto mt-1 mt-4 mt-6 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto name names namespace naturalHeight naturalWidth nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-focus-visible:sr-only not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offset offsetDistance offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onFocus onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity opacity-0 open openFromHash opened option optional options or order origin-(--transform-origin) origin-center original other out outline outline-hidden output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parent parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please point pointerType points polite populated pos position positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch prev preventScroll previous primary primaryColor primaryTextColor primitive production promise promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced register registering rel relatedTarget relative remove removeEventListener render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returnFocusRef returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see segment select-none selected separate separator server set setActive setCollapsed setHidden setHover setLoading setMounted setOpen setSlides setTag setValue sha shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shortcuts should show showAlgolia showOrama showing shown shows shrink-0 side sideOffset sidebar signature simple since site size size-1 size-3 size-3.5 size-4 size-4.5 size-5 size-6.5 size-9 size-full sized sizes skip slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start start-2 startViewTransition state static status stay step steps sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure suspending svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-foreground text-fd-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-secondary-foreground text-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumb thumbBox tier timerRef tip title to toJsx toc tocInfo toggling toolbar top top-0 top-1/2 top-2 top-2.5 top-3.25 top-4 touch tr track transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] transition-[translate,opacity] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translate-y-10 translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typed typeof types unchanged undefined underline underlying understand unknown unnecessarily until unused update updateAnchor updates url urls us usage use useAlgoliaSearch useCallback useCopyButton useDocsSearch useHotKey useI18n useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants viewBox viewRef viewTransitionName viewer viewportProps visible void 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 whole wide width will window with without work would wrap wrap-anywhere wrapElement wrapInSuspense wrapped write x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y1 y2 you your z-2 z-20 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
|
|
1
|
+
@source inline("!collapsed !isActive !items !nested !open !title *:data-[empty=true]:border-t-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex-col *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:border-t *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --padding-right --removed-body-scroll-bar-size --shiki-dark-bg --shiki-light-bg --spacing --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 @typescript-eslint/no-namespace [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&[hidden]:not([hidden='until-found'])]:hidden [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [clip-path:polygon(0_0,100%_0,100%_0,0_0)] [container-type:size] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add addEventListener advanced after again align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allows alphabet alt altKey always an anchor anchors and animate animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-current aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b back backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner base baseProps baseSlots baseUrl based became becomes before behavior behaviour behind belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-linear-to-r bg-transparent bind bitsLeft black block blocked boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bottom-4 bound boundaries boundary box buffer bundle button buttonVariants by cache cached callbacks called came can canonical caption cards case catch cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code codeblock col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink createShikiHighlighter css ctx current currentColor currentSrc cursor-default cursor-zoom-out curve custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description desktop destructuring detect dialog dialogHandle dir direction disabled disabled:opacity-50 disabled:pointer-events-none discard display displayName displayed div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer draws 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 end endpoint entering env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed fallback false fd-lightbox fd-moving-banner fd-scroll-container fd-search-dialog-content fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first first:mt-0 fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight footer for forces forks formatter formatterOptions found free from from-fd-primary/10 full fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function g gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive getHash ghost github-dark github-light githubUrl give given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground group-data-[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-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter highlights hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index inert infinite info infos initial initialFocus inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-e-[calc(--spacing(4)+var(--removed-body-scroll-bar-size,0px))] inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-2 inset-y-0 inside instance instanceof instant instantly instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isUp it item itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted keeps key keyCode keydown keys l0 l1 l2 label lags lang language languageSelect languages large last last:line-clamp-2 last:rounded-b-xl lasts layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] layouts lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear lines link links list listbox listener listeners loading localRef locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] maskComposite maskImage matches max-h-(--available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-1.5 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message meta metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto mt-1 mt-4 mt-6 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto name names namespace naturalHeight naturalWidth nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-focus-visible:sr-only not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offset offsetDistance offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onFocus onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity opacity-0 open openFromHash opened option optional options or order origin origin-(--transform-origin) origin-center original other out outline outline-hidden output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parent parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please point pointerType points polite populated pos position positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch preventScroll previous primary primaryColor primaryTextColor primitive production promise promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced register registering rel relatedTarget relative reloading remove removeEventListener render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returnFocusRef returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see segment select-none selected separate separator server set setActive setCollapsed setHidden setHover setLoading setMounted setOpen setSlides setTag setValue sha shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shortcuts should show showAlgolia showOrama showing shown shows shrink-0 side sideOffset sidebar signature simple since site size size-1 size-3 size-3.5 size-4 size-4.5 size-5 size-6.5 size-9 size-full sized sizes skip slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start start-2 startViewTransition starts state static status stay step steps sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure suspending svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-foreground text-fd-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-secondary-foreground text-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumb thumbBox tier timerRef tip title to toJsx toc tocInfo toggling toolbar top top-0 top-1/2 top-2 top-2.5 top-3.25 top-4 touch tr track transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] transition-[translate,opacity] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translate-y-10 translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typed typeof types unchanged undefined underline underlying understand unknown unnecessarily until unused update updateAnchor updates url urls us usage use useAlgoliaSearch useCallback useCopyButton useDocsSearch useHotKey useI18n useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants viewBox viewRef viewTransitionName viewer viewportProps visible void 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 whole wide width will window with without work would wrap wrap-anywhere wrapElement wrapInSuspense wrapped write x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y1 y2 you your z-2 z-20 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:pointer-events-auto --available-width --fd-docs-height --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar
|
|
1
|
+
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:pointer-events-auto --available-width --color-fd-background --color-fd-border --color-fd-card --fd-docs-height --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 --shadow-sm -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar before:-inset-x-px before:-top-px before:absolute before:h-[calc(var(--fd-layout-height)---spacing(4))] before:rounded-2xl before:shadow-[inset_0_0_0_1px_var(--color-fd-border),inset_0_0_0_1px_var(--color-fd-background),var(--shadow-sm),0_0_0_--spacing(4)_var(--color-fd-card)] 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 control controller covers createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs drawn duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit fade fd-spacious-layout first:mt-1 focusin focusout font-semibold footerEnabled footerList frame 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-layout-height) h-10 h-7.5 h-8 h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including information inset inset-e-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:[--fd-docs-height:calc(100dvh---spacing(2)-1px)] md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+--spacing(2)+1px+var(--fd-header-height))] md:border md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:ms-0 md:my-2 md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc outer outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass positionMethod progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling scrolls selectProgress selectTopmost selectors self-start separators setShown setTheme shadow shadow-xl shorter signal single size-3.5! size-7 size-8 soft start-0 start-0.5 stays stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-(--fd-docs-row-3) top-0.5 top-[calc(var(--fd-banner-height,0px)+--spacing(2)+1px)] 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 version view viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider within xl:bg-fd-background xl:border xl:h-[calc(var(--fd-layout-height)---spacing(4))] xl:me-2 xl:rounded-2xl xl:shadow-sm xl:sticky xl:top-[calc(var(--fd-banner-height,0px)+--spacing(2))] z-10 z-30");
|
|
@@ -15,13 +15,18 @@ function Accordions({ ref, className, defaultValue, ...props }) {
|
|
|
15
15
|
const composedRef = mergeRefs(ref, rootRef);
|
|
16
16
|
const [value, setValue] = useState(defaultValue ?? []);
|
|
17
17
|
useEffect(() => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const openFromHash = () => {
|
|
19
|
+
const id = getHash();
|
|
20
|
+
const element = rootRef.current;
|
|
21
|
+
if (!element || id.length === 0) return;
|
|
22
|
+
const selected = document.getElementById(id);
|
|
23
|
+
if (!selected || !element.contains(selected)) return;
|
|
24
|
+
const value = selected.getAttribute("data-accordion-value");
|
|
25
|
+
if (value) setValue([value]);
|
|
26
|
+
};
|
|
27
|
+
openFromHash();
|
|
28
|
+
window.addEventListener("hashchange", openFromHash);
|
|
29
|
+
return () => window.removeEventListener("hashchange", openFromHash);
|
|
25
30
|
}, []);
|
|
26
31
|
return /* @__PURE__ */ jsx(Accordion$1, {
|
|
27
32
|
ref: composedRef,
|
|
@@ -16,11 +16,15 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
|
|
|
16
16
|
const [open, setOpen] = useState(true);
|
|
17
17
|
const globalKey = id ? `nd-banner-${encodeBase32(id)}` : null;
|
|
18
18
|
useEffect(() => {
|
|
19
|
-
|
|
19
|
+
try {
|
|
20
|
+
if (globalKey && localStorage.getItem(globalKey) === "true") setOpen(false);
|
|
21
|
+
} catch {}
|
|
20
22
|
}, [globalKey]);
|
|
21
23
|
function onClose() {
|
|
22
24
|
setOpen(false);
|
|
23
|
-
|
|
25
|
+
try {
|
|
26
|
+
if (globalKey) localStorage.setItem(globalKey, "true");
|
|
27
|
+
} catch {}
|
|
24
28
|
}
|
|
25
29
|
if (!open) return null;
|
|
26
30
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -31,7 +35,7 @@ function Banner({ id, variant = "normal", changeLayout = true, height = "3rem",
|
|
|
31
35
|
children: [
|
|
32
36
|
changeLayout && open ? /* @__PURE__ */ jsx("style", { children: globalKey ? `:root:not(.${globalKey}) { --fd-banner-height: ${height}; }` : `:root { --fd-banner-height: ${height}; }` }) : null,
|
|
33
37
|
globalKey ? /* @__PURE__ */ jsx("style", { children: `.${globalKey} #${id} { display: none; }` }) : null,
|
|
34
|
-
globalKey ? /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: `if (localStorage.getItem('${globalKey}') === 'true') document.documentElement.classList.add('${globalKey}')
|
|
38
|
+
globalKey ? /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: `try { if (localStorage.getItem('${globalKey}') === 'true') document.documentElement.classList.add('${globalKey}'); } catch {}` } }) : null,
|
|
35
39
|
variant === "rainbow" ? flow({ colors: rainbowColors }) : null,
|
|
36
40
|
props.children,
|
|
37
41
|
id ? /* @__PURE__ */ jsx("button", {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { SearchDialog, SearchDialogClose, SearchDialogContent, SearchDialogFooter, SearchDialogHeader, SearchDialogIcon, SearchDialogInput, SearchDialogList, SearchDialogOverlay, TagsList, TagsListItem } from "./search.js";
|
|
3
|
-
import { useI18n } from "../../contexts/i18n.js";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useMemo, useState } from "react";
|
|
6
5
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
@@ -10,13 +9,11 @@ import { useOramaCloudSearch } from "fumadocs-core/search/client";
|
|
|
10
9
|
* Orama Cloud integration
|
|
11
10
|
*/
|
|
12
11
|
function OramaSearchDialog({ client, searchOptions, tags = [], defaultTag, showOrama = true, allowClear = false, index, footer, links = [], ...props }) {
|
|
13
|
-
const { locale } = useI18n();
|
|
14
12
|
const [tag, setTag] = useState(defaultTag);
|
|
15
13
|
const search = useOramaCloudSearch({
|
|
16
14
|
client,
|
|
17
15
|
index,
|
|
18
16
|
params: searchOptions,
|
|
19
|
-
locale,
|
|
20
17
|
tag
|
|
21
18
|
});
|
|
22
19
|
const defaultItems = useMemo(() => {
|
|
@@ -27,7 +27,10 @@ function TOCItems({ className, children, ...props }) {
|
|
|
27
27
|
if (top === -1) top = pos[0];
|
|
28
28
|
bottom = pos[1];
|
|
29
29
|
}
|
|
30
|
-
if (top === -1)
|
|
30
|
+
if (top === -1) {
|
|
31
|
+
block.style.clipPath = "";
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
31
34
|
block.style.clipPath = `inset(${top}px 0 ${height - bottom}px round 8px)`;
|
|
32
35
|
if (!block.hasAttribute("data-ready")) requestAnimationFrame(() => block.setAttribute("data-ready", ""));
|
|
33
36
|
};
|
|
@@ -44,7 +44,7 @@ function ThumbTrack({ items }) {
|
|
|
44
44
|
if (top === -1) top = position.top;
|
|
45
45
|
bottom = position.bottom;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
svg.style.clipPath = top === -1 ? "" : `polygon(0 ${top}px, 100% ${top}px, 100% ${bottom}px, 0 ${bottom}px)`;
|
|
48
48
|
};
|
|
49
49
|
const observer = new ResizeObserver(() => {
|
|
50
50
|
if (container.clientHeight === 0) return;
|
|
@@ -49,7 +49,11 @@ function ThumbTrack({ items, thumbBox }) {
|
|
|
49
49
|
if (start === -1) start = i;
|
|
50
50
|
end = i;
|
|
51
51
|
}
|
|
52
|
-
if (start === -1)
|
|
52
|
+
if (start === -1) {
|
|
53
|
+
svg.style.clipPath = "";
|
|
54
|
+
if (thumb) thumb.style.opacity = "0";
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
53
57
|
const first = positions.get(infos[start].original.url);
|
|
54
58
|
const last = positions.get(infos[end].original.url);
|
|
55
59
|
svg.style.clipPath = `polygon(0 ${first.top}px, 100% ${first.top}px, 100% ${last.bottom}px, 0 ${last.bottom}px)`;
|
|
@@ -52,8 +52,11 @@ function Tabs({ ref, groupId, persist = false, updateAnchor = false, defaultValu
|
|
|
52
52
|
});
|
|
53
53
|
useLayoutEffect(() => {
|
|
54
54
|
if (!groupId) return;
|
|
55
|
-
let previous =
|
|
56
|
-
|
|
55
|
+
let previous = null;
|
|
56
|
+
try {
|
|
57
|
+
previous = sessionStorage.getItem(groupId);
|
|
58
|
+
if (persist) previous ??= localStorage.getItem(groupId);
|
|
59
|
+
} catch {}
|
|
57
60
|
if (previous) onChange(previous);
|
|
58
61
|
const groupListeners = listeners.get(groupId) ?? /* @__PURE__ */ new Set();
|
|
59
62
|
groupListeners.add(onChange);
|
|
@@ -78,8 +81,10 @@ function Tabs({ ref, groupId, persist = false, updateAnchor = false, defaultValu
|
|
|
78
81
|
if (groupId) {
|
|
79
82
|
const groupListeners = listeners.get(groupId);
|
|
80
83
|
if (groupListeners) for (const listener of groupListeners) listener(v);
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
try {
|
|
85
|
+
sessionStorage.setItem(groupId, v);
|
|
86
|
+
if (persist) localStorage.setItem(groupId, v);
|
|
87
|
+
} catch {}
|
|
83
88
|
} else setValue(v);
|
|
84
89
|
},
|
|
85
90
|
...props,
|
|
@@ -52,7 +52,7 @@ function ViewOptionsPopover({ markdownUrl, githubUrl, pageUrl: pageUrlProp, ...p
|
|
|
52
52
|
const pathname = usePathname();
|
|
53
53
|
const t = useTranslations({ note: "page actions" });
|
|
54
54
|
const items = useMemo(() => {
|
|
55
|
-
const pageUrl = pageUrlProp ?? (typeof window === "undefined" ? pathname : window.location.
|
|
55
|
+
const pageUrl = pageUrlProp ?? (typeof window === "undefined" ? pathname : window.location.origin + window.location.pathname);
|
|
56
56
|
const q = t("Read {url}, I want to ask questions about it.", { variables: { url: pageUrl } });
|
|
57
57
|
return [
|
|
58
58
|
githubUrl && {
|
|
@@ -56,7 +56,7 @@ function DocsLayout(props) {
|
|
|
56
56
|
...sidebar,
|
|
57
57
|
children: /* @__PURE__ */ jsxs("div", {
|
|
58
58
|
id: "fd-spacious-layout",
|
|
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:
|
|
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:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+--spacing(2)+1px+var(--fd-header-height))] md:[--fd-docs-height:calc(100dvh---spacing(2)-1px)]",
|
|
60
60
|
style: { gridTemplate: `"sidebar header right" auto
|
|
61
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` },
|
|
@@ -68,7 +68,7 @@ function DocsLayout(props) {
|
|
|
68
68
|
children,
|
|
69
69
|
aiChat?.panel && /* @__PURE__ */ jsx(AIChatPanel, {
|
|
70
70
|
open: aiChat.open,
|
|
71
|
-
className: cn("[grid-area:right] xl:
|
|
71
|
+
className: cn("[grid-area:right] xl:sticky xl:top-[calc(var(--fd-banner-height,0px)+--spacing(2))] xl:h-[calc(var(--fd-layout-height)---spacing(4))] xl:rounded-2xl xl:border xl:bg-fd-background xl:shadow-sm", aiChat.open && "xl:me-2"),
|
|
72
72
|
children: aiChat.panel
|
|
73
73
|
})
|
|
74
74
|
]
|
|
@@ -7,7 +7,6 @@ import { Footer } from "./slots/footer.js";
|
|
|
7
7
|
import { Breadcrumb, useBreadcrumbItems } from "./slots/breadcrumb.js";
|
|
8
8
|
import { useSpaciousLayout } from "../index.js";
|
|
9
9
|
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
10
|
-
import { usePathname } from "fumadocs-core/framework";
|
|
11
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { EditIcon, SidebarIcon } from "lucide-react";
|
|
13
12
|
import { createContext, use, useSyncExternalStore } from "react";
|
|
@@ -34,7 +33,6 @@ function DocsPage({ full = false, toc = [], tableOfContent: { enabled: tocEnable
|
|
|
34
33
|
const layout = useSpaciousLayout();
|
|
35
34
|
const { aiChat } = layout.props;
|
|
36
35
|
const hasFolders = useBreadcrumbItems(breadcrumb).length > 0 && breadcrumbEnabled;
|
|
37
|
-
const pathname = usePathname();
|
|
38
36
|
return /* @__PURE__ */ jsx(PageContext, {
|
|
39
37
|
value: {
|
|
40
38
|
full,
|
|
@@ -48,9 +46,9 @@ function DocsPage({ full = false, toc = [], tableOfContent: { enabled: tocEnable
|
|
|
48
46
|
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
47
|
}), /* @__PURE__ */ jsxs("main", {
|
|
50
48
|
id: "nd-page-panel",
|
|
51
|
-
className: "@container
|
|
49
|
+
className: "@container flex flex-col min-w-0 [grid-area:main] mx-2 bg-fd-background md:ms-0 md:my-2 md:border",
|
|
52
50
|
children: [/* @__PURE__ */ jsxs("header", {
|
|
53
|
-
className: cn("
|
|
51
|
+
className: cn("sticky top-[calc(var(--fd-banner-height,0px)+--spacing(2)+1px)] 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", "before:absolute before:-inset-x-px before:-top-px before:h-[calc(var(--fd-layout-height)---spacing(4))] before:rounded-2xl before:shadow-[inset_0_0_0_1px_var(--color-fd-border),inset_0_0_0_1px_var(--color-fd-background),var(--shadow-sm),0_0_0_--spacing(4)_var(--color-fd-card)]", hasFolders || tocPopoverEnabled ? "from-50%" : "to-40%"),
|
|
54
52
|
children: [
|
|
55
53
|
/* @__PURE__ */ jsx(ExpandSidebar, {}),
|
|
56
54
|
breadcrumbEnabled && /* @__PURE__ */ jsx(slots.breadcrumb, { ...breadcrumb }),
|
|
@@ -64,7 +62,7 @@ function DocsPage({ full = false, toc = [], tableOfContent: { enabled: tocEnable
|
|
|
64
62
|
/* @__PURE__ */ jsx(layout.slots.actions, { className: "ms-auto" })
|
|
65
63
|
]
|
|
66
64
|
}), /* @__PURE__ */ jsxs("div", {
|
|
67
|
-
className: "flex flex-1 items-start px-4 md:
|
|
65
|
+
className: "flex flex-1 items-start px-4 md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))]",
|
|
68
66
|
children: [/* @__PURE__ */ jsxs("article", {
|
|
69
67
|
"data-full": full,
|
|
70
68
|
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),
|
|
@@ -80,7 +78,7 @@ function DocsPage({ full = false, toc = [], tableOfContent: { enabled: tocEnable
|
|
|
80
78
|
]
|
|
81
79
|
}), tocEnabled && /* @__PURE__ */ jsx(slots.toc.main, { ...tocProps })]
|
|
82
80
|
})]
|
|
83
|
-
}
|
|
81
|
+
})]
|
|
84
82
|
})
|
|
85
83
|
});
|
|
86
84
|
}
|
|
@@ -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-
|
|
35
|
+
className: cn("sticky top-(--fd-docs-row-3) flex flex-col shrink-0 w-(--fd-toc-width) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] 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", {
|
|
@@ -37,7 +37,7 @@ function Sidebar({ className, ...props }) {
|
|
|
37
37
|
id: "nd-sidebar",
|
|
38
38
|
"data-collapsed": collapsed,
|
|
39
39
|
inert: collapsed,
|
|
40
|
-
className: cn("[grid-area:sidebar] flex
|
|
40
|
+
className: cn("[grid-area:sidebar] sticky top-(--fd-banner-height,0px) z-20 flex h-(--fd-layout-height) overflow-clip text-sm md:layout:[--fd-sidebar-width:268px] max-md:hidden", collapsed && "md:layout:[--fd-sidebar-col:--spacing(2)]", className),
|
|
41
41
|
...props,
|
|
42
42
|
children: /* @__PURE__ */ jsxs("div", {
|
|
43
43
|
className: cn("flex flex-col shrink-0 w-(--fd-sidebar-width) transition-[opacity,translate] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none", collapsed && "-translate-x-3 opacity-0 rtl:translate-x-3"),
|
|
@@ -151,7 +151,7 @@ function TabsMenu({ options, className }) {
|
|
|
151
151
|
positionMethod: "fixed",
|
|
152
152
|
className: "z-50",
|
|
153
153
|
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
154
|
-
className: "flex flex-col w-[calc(var(--anchor-width)+--spacing(2))] max-h-(--available-height) overflow-y-auto p-1 rounded-
|
|
154
|
+
className: "flex flex-col w-[calc(var(--anchor-width)+--spacing(2))] max-h-(--available-height) overflow-y-auto p-1 rounded-xl border bg-fd-popover text-sm text-fd-popover-foreground shadow-lg outline-hidden 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",
|
|
155
155
|
children: options.map((tab, i) => {
|
|
156
156
|
if (tab.unlisted && tab !== selected) return;
|
|
157
157
|
return /* @__PURE__ */ jsxs(Menu.LinkItem, {
|
package/dist/style.css
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--radius-lg: 0.5rem;
|
|
34
34
|
--radius-xl: 0.75rem;
|
|
35
35
|
--radius-2xl: 1rem;
|
|
36
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
36
37
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
37
38
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
38
39
|
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
@@ -403,6 +404,9 @@
|
|
|
403
404
|
.top-\[calc\(--spacing\(4\)\+var\(--fd-docs-row-3\)\)\] {
|
|
404
405
|
top: calc(calc(var(--spacing) * 4) + var(--fd-docs-row-3));
|
|
405
406
|
}
|
|
407
|
+
.top-\[calc\(var\(--fd-banner-height\,0px\)\+--spacing\(2\)\+1px\)\] {
|
|
408
|
+
top: calc(var(--fd-banner-height,0px) + calc(var(--spacing) * 2) + 1px);
|
|
409
|
+
}
|
|
406
410
|
.top-\[calc\(var\(--fd-banner-height\,0px\)\+var\(--fd-header-height\)\)\] {
|
|
407
411
|
top: calc(var(--fd-banner-height,0px) + var(--fd-header-height));
|
|
408
412
|
}
|
|
@@ -1103,6 +1107,9 @@
|
|
|
1103
1107
|
.h-\(--fd-header-height\) {
|
|
1104
1108
|
height: var(--fd-header-height);
|
|
1105
1109
|
}
|
|
1110
|
+
.h-\(--fd-layout-height\) {
|
|
1111
|
+
height: var(--fd-layout-height);
|
|
1112
|
+
}
|
|
1106
1113
|
.h-\(--fd-toc-popover-height\) {
|
|
1107
1114
|
height: var(--fd-toc-popover-height);
|
|
1108
1115
|
}
|
|
@@ -2251,6 +2258,10 @@
|
|
|
2251
2258
|
.opacity-\[calc\(1-var\(--drawer-swipe-progress\)\)\] {
|
|
2252
2259
|
opacity: calc(1 - var(--drawer-swipe-progress));
|
|
2253
2260
|
}
|
|
2261
|
+
.shadow {
|
|
2262
|
+
--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));
|
|
2263
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2264
|
+
}
|
|
2254
2265
|
.shadow-2xl {
|
|
2255
2266
|
--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
|
|
2256
2267
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2740,6 +2751,10 @@
|
|
|
2740
2751
|
content: var(--tw-content);
|
|
2741
2752
|
position: absolute;
|
|
2742
2753
|
}
|
|
2754
|
+
.before\:-inset-x-px::before {
|
|
2755
|
+
content: var(--tw-content);
|
|
2756
|
+
inset-inline: -1px;
|
|
2757
|
+
}
|
|
2743
2758
|
.before\:inset-y-1::before {
|
|
2744
2759
|
content: var(--tw-content);
|
|
2745
2760
|
inset-block: var(--spacing);
|
|
@@ -2752,14 +2767,31 @@
|
|
|
2752
2767
|
content: var(--tw-content);
|
|
2753
2768
|
inset-inline-start: calc(var(--spacing) * 2.5);
|
|
2754
2769
|
}
|
|
2770
|
+
.before\:-top-px::before {
|
|
2771
|
+
content: var(--tw-content);
|
|
2772
|
+
top: -1px;
|
|
2773
|
+
}
|
|
2774
|
+
.before\:h-\[calc\(var\(--fd-layout-height\)---spacing\(4\)\)\]::before {
|
|
2775
|
+
content: var(--tw-content);
|
|
2776
|
+
height: calc(var(--fd-layout-height) - calc(var(--spacing) * 4));
|
|
2777
|
+
}
|
|
2755
2778
|
.before\:w-px::before {
|
|
2756
2779
|
content: var(--tw-content);
|
|
2757
2780
|
width: 1px;
|
|
2758
2781
|
}
|
|
2782
|
+
.before\:rounded-2xl::before {
|
|
2783
|
+
content: var(--tw-content);
|
|
2784
|
+
border-radius: var(--radius-2xl);
|
|
2785
|
+
}
|
|
2759
2786
|
.before\:bg-fd-border::before {
|
|
2760
2787
|
content: var(--tw-content);
|
|
2761
2788
|
background-color: var(--color-fd-border);
|
|
2762
2789
|
}
|
|
2790
|
+
.before\:shadow-\[inset_0_0_0_1px_var\(--color-fd-border\)\,inset_0_0_0_1px_var\(--color-fd-background\)\,var\(--shadow-sm\)\,0_0_0_--spacing\(4\)_var\(--color-fd-card\)\]::before {
|
|
2791
|
+
content: var(--tw-content);
|
|
2792
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--color-fd-border)), inset 0 0 0 1px var(--tw-shadow-color, var(--color-fd-background)), var(--shadow-sm), 0 0 0 calc(var(--spacing) * 4) var(--tw-shadow-color, var(--color-fd-card));
|
|
2793
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2794
|
+
}
|
|
2763
2795
|
.before\:content-\[\'\'\]::before {
|
|
2764
2796
|
--tw-content: '';
|
|
2765
2797
|
content: var(--tw-content);
|
|
@@ -3444,36 +3476,12 @@
|
|
|
3444
3476
|
.md\:h-\(--fd-header-height\) {
|
|
3445
3477
|
height: var(--fd-header-height);
|
|
3446
3478
|
}
|
|
3447
|
-
.md\:h-\(--fd-layout-height\) {
|
|
3448
|
-
height: var(--fd-layout-height);
|
|
3449
|
-
}
|
|
3450
|
-
.md\:min-h-0 {
|
|
3451
|
-
min-height: 0px;
|
|
3452
|
-
}
|
|
3453
|
-
.md\:scrollbar-thin {
|
|
3454
|
-
scrollbar-width: thin;
|
|
3455
|
-
}
|
|
3456
|
-
.md\:scrollbar-gutter-stable {
|
|
3457
|
-
scrollbar-gutter: stable;
|
|
3458
|
-
}
|
|
3459
3479
|
.md\:grid-cols-2 {
|
|
3460
3480
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3461
3481
|
}
|
|
3462
3482
|
.md\:gap-2 {
|
|
3463
3483
|
gap: calc(var(--spacing) * 2);
|
|
3464
3484
|
}
|
|
3465
|
-
.md\:overflow-clip {
|
|
3466
|
-
overflow: clip;
|
|
3467
|
-
}
|
|
3468
|
-
.md\:overflow-y-auto {
|
|
3469
|
-
overflow-y: auto;
|
|
3470
|
-
}
|
|
3471
|
-
.md\:overscroll-y-contain {
|
|
3472
|
-
overscroll-behavior-y: contain;
|
|
3473
|
-
}
|
|
3474
|
-
.md\:rounded-2xl {
|
|
3475
|
-
border-radius: var(--radius-2xl);
|
|
3476
|
-
}
|
|
3477
3485
|
.md\:border {
|
|
3478
3486
|
border-style: var(--tw-border-style);
|
|
3479
3487
|
border-width: 1px;
|
|
@@ -3508,9 +3516,6 @@
|
|
|
3508
3516
|
.md\:py-1\.5 {
|
|
3509
3517
|
padding-block: calc(var(--spacing) * 1.5);
|
|
3510
3518
|
}
|
|
3511
|
-
.md\:pt-\(--fd-header-height\) {
|
|
3512
|
-
padding-top: var(--fd-header-height);
|
|
3513
|
-
}
|
|
3514
3519
|
.md\:pt-2 {
|
|
3515
3520
|
padding-top: calc(var(--spacing) * 2);
|
|
3516
3521
|
}
|
|
@@ -3523,12 +3528,11 @@
|
|
|
3523
3528
|
.md\:pb-8 {
|
|
3524
3529
|
padding-bottom: calc(var(--spacing) * 8);
|
|
3525
3530
|
}
|
|
3526
|
-
.md\:
|
|
3527
|
-
--
|
|
3528
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3531
|
+
.md\:\[--fd-docs-height\:calc\(100dvh---spacing\(2\)-1px\)\] {
|
|
3532
|
+
--fd-docs-height: calc(100dvh - calc(var(--spacing) * 2) - 1px);
|
|
3529
3533
|
}
|
|
3530
|
-
.md\:\[--fd-docs-
|
|
3531
|
-
--fd-docs-
|
|
3534
|
+
.md\:\[--fd-docs-row-3\:calc\(var\(--fd-banner-height\,0px\)\+--spacing\(2\)\+1px\+var\(--fd-header-height\)\)\] {
|
|
3535
|
+
--fd-docs-row-3: calc(var(--fd-banner-height,0px) + calc(var(--spacing) * 2) + 1px + var(--fd-header-height));
|
|
3532
3536
|
}
|
|
3533
3537
|
:where([data-sidebar-collapsed="true"]) .md\:in-data-\[sidebar-collapsed\=true\]\:pt-16 {
|
|
3534
3538
|
padding-top: calc(var(--spacing) * 16);
|
|
@@ -3562,12 +3566,12 @@
|
|
|
3562
3566
|
.xl\:top-10 {
|
|
3563
3567
|
top: calc(var(--spacing) * 10);
|
|
3564
3568
|
}
|
|
3569
|
+
.xl\:top-\[calc\(var\(--fd-banner-height\,0px\)\+--spacing\(2\)\)\] {
|
|
3570
|
+
top: calc(var(--fd-banner-height,0px) + calc(var(--spacing) * 2));
|
|
3571
|
+
}
|
|
3565
3572
|
.xl\:top-\[calc\(var\(--fd-header-height\)\+--spacing\(2\)\)\] {
|
|
3566
3573
|
top: calc(var(--fd-header-height) + calc(var(--spacing) * 2));
|
|
3567
3574
|
}
|
|
3568
|
-
.xl\:my-2 {
|
|
3569
|
-
margin-block: calc(var(--spacing) * 2);
|
|
3570
|
-
}
|
|
3571
3575
|
.xl\:me-2 {
|
|
3572
3576
|
margin-inline-end: calc(var(--spacing) * 2);
|
|
3573
3577
|
}
|
|
@@ -3586,6 +3590,9 @@
|
|
|
3586
3590
|
.xl\:h-\[calc\(var\(--fd-docs-height\)-var\(--fd-docs-row-3\)\)\] {
|
|
3587
3591
|
height: calc(var(--fd-docs-height) - var(--fd-docs-row-3));
|
|
3588
3592
|
}
|
|
3593
|
+
.xl\:h-\[calc\(var\(--fd-layout-height\)---spacing\(4\)\)\] {
|
|
3594
|
+
height: calc(var(--fd-layout-height) - calc(var(--spacing) * 4));
|
|
3595
|
+
}
|
|
3589
3596
|
.xl\:w-\(--fd-ai-chat-width\) {
|
|
3590
3597
|
width: var(--fd-ai-chat-width);
|
|
3591
3598
|
}
|
|
@@ -3719,14 +3726,6 @@
|
|
|
3719
3726
|
.dark\:bg-\(--shiki-dark-bg\):where(.dark, .dark *) {
|
|
3720
3727
|
background-color: var(--shiki-dark-bg);
|
|
3721
3728
|
}
|
|
3722
|
-
@media print {
|
|
3723
|
-
.print\:h-auto {
|
|
3724
|
-
height: auto;
|
|
3725
|
-
}
|
|
3726
|
-
.print\:overflow-visible {
|
|
3727
|
-
overflow: visible;
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
3729
|
#nd-docs-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-home-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-flux-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-glass-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]) {
|
|
3731
3730
|
--fd-ai-chat-width: min(calc(var(--spacing) * 100), 100vw - calc(var(--spacing) * 4));
|
|
3732
3731
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.19.
|
|
3
|
+
"version": "16.19.8",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"shiki": "^4.6.0"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@fumadocs/cli": "1.9.
|
|
154
|
+
"@fumadocs/cli": "1.9.4",
|
|
155
155
|
"@tailwindcss/cli": "^4.3.5",
|
|
156
156
|
"@tailwindcss/oxide": "^4.3.5",
|
|
157
157
|
"@tsdown/css": "^0.23.7",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"@types/react": "^19.3.0",
|
|
161
161
|
"@types/react-dom": "^19.3.0",
|
|
162
162
|
"fuma-cli": "^0.3.4",
|
|
163
|
-
"fumadocs-core": "16.19.
|
|
163
|
+
"fumadocs-core": "16.19.8",
|
|
164
164
|
"react-medium-image-zoom": "^5.4.9",
|
|
165
165
|
"tailwindcss": "^4.3.5",
|
|
166
166
|
"tsconfig": "0.0.0",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"@types/mdx": "*",
|
|
171
171
|
"@types/react": "*",
|
|
172
|
-
"fumadocs-core": "16.19.
|
|
172
|
+
"fumadocs-core": "16.19.8",
|
|
173
173
|
"next": "16.x.x",
|
|
174
174
|
"react": "^19.2.0",
|
|
175
175
|
"react-dom": "^19.2.0",
|