boltdocs 3.3.5 → 3.4.0
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/dist/{adapters-BKzKe2mO.mjs → adapters-BXiBWAKs.mjs} +1 -1
- package/dist/{adapters-DwDTQoCG.cjs → adapters-Czl3WtQt.cjs} +1 -1
- package/dist/{build-B672n0hL.cjs → build-CNkXRdk8.cjs} +1 -1
- package/dist/{build-BVoMHMhw.mjs → build-CqUBsXVC.mjs} +1 -1
- package/dist/client/index.cjs +245 -56
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +246 -60
- package/dist/client/mdx.cjs +1 -1
- package/dist/client/mdx.js +1 -1
- package/dist/client/primitives.cjs +5 -5
- package/dist/client/primitives.d.cts +92 -42
- package/dist/client/primitives.d.ts +101 -51
- package/dist/client/primitives.js +4 -4
- package/dist/client/router.cjs +1 -1
- package/dist/client/router.d.cts +1 -1
- package/dist/client/router.d.ts +1 -1
- package/dist/client/router.js +1 -1
- package/dist/client/theme/reset.css +41 -0
- package/dist/config-B3SEoVjG.cjs +7 -0
- package/dist/{config-PLvresCv.cjs → config-Bfakeadu.cjs} +1 -1
- package/dist/config-CTcfF-0c.mjs +7 -0
- package/dist/dev-D1DmOSjn.mjs +6 -0
- package/dist/dev-DH6cSge8.cjs +6 -0
- package/dist/{docs-layout-CbZ7LDRe.js → docs-layout-CmntYM6p.js} +46 -147
- package/dist/{docs-layout-vzfXed1Q.cjs → docs-layout-DIgxJ5c7.cjs} +23 -130
- package/dist/{doctor-DMECtdK6.cjs → doctor-BLxm2alc.cjs} +1 -1
- package/dist/{doctor-FuFY1jBz.cjs → doctor-Dd-JMTRo.cjs} +1 -1
- package/dist/{doctor-i8Qmd8DJ.mjs → doctor-DogHujrP.mjs} +1 -1
- package/dist/{image-Hnaa2bJd.cjs → image-Bke2ojW1.cjs} +3 -3
- package/dist/{image-B-NDSDuY.js → image-CaY2w0ua.js} +2 -1
- package/dist/index--xbYbT8N.d.ts +343 -0
- package/dist/{index-Bg-JtZeK.d.cts → index-B_o5y34l.d.cts} +112 -13
- package/dist/{index-B3o307nd.d.ts → index-Bx0CUd7Q.d.ts} +112 -13
- package/dist/index-RK7W_Fxy.d.cts +343 -0
- package/dist/{link-CgdI6O2o.js → link-CSe_oD8Y.js} +137 -139
- package/dist/{link-vZjmD-es.cjs → link-Xb69Oy2F.cjs} +144 -169
- package/dist/{mdx-D0Absdq5.cjs → mdx-BCOrMd-P.cjs} +68 -16
- package/dist/{mdx-BRT71V5Q.js → mdx-BijiEbkp.js} +62 -15
- package/dist/{native-nLA4Jr0T.cjs → native-BbtRkce5.cjs} +1 -1
- package/dist/node/cli-entry.cjs +1 -1
- package/dist/node/cli-entry.mjs +1 -1
- package/dist/node/highlight.d.cts +2 -2
- package/dist/node/highlight.d.mts +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +19 -37
- package/dist/node/index.d.mts +20 -38
- package/dist/node/index.mjs +1 -1
- package/dist/node/mdx/shiki-adapter.cjs +1 -1
- package/dist/node/mdx/shiki-adapter.d.cts +7 -2
- package/dist/node/mdx/shiki-adapter.d.mts +7 -2
- package/dist/node/mdx/shiki-adapter.mjs +1 -1
- package/dist/node-BgiLCa0I.cjs +39 -0
- package/dist/node-Da3tYBHo.mjs +39 -0
- package/dist/{package-CNqjEYE1.cjs → package-D1gVs5gQ.cjs} +1 -1
- package/dist/{package-sdcKhDhe.mjs → package-YgQJn3Yh.mjs} +1 -1
- package/dist/pages-external-B_r6gvqP.cjs +6 -0
- package/dist/pages-external-jmK7AHaO.mjs +6 -0
- package/dist/{parser-CD8Oo8qh.mjs → parser-CvNZc5s3.mjs} +1 -1
- package/dist/{parser-vPaKvzLp.cjs → parser-DJLWTiO-.cjs} +1 -1
- package/dist/plugin-DW9K2fW5.mjs +69 -0
- package/dist/plugin-NwGKyTJX.cjs +69 -0
- package/dist/{plugin-context-DuSg-Hax.mjs → plugin-context-COh-cbsW.mjs} +1 -1
- package/dist/{plugin-context-CscLcXjH.cjs → plugin-context-FIHaWn6r.cjs} +2 -2
- package/dist/{plugin-lifecycle-BywrEoWK.cjs → plugin-lifecycle-D9fTRaWY.cjs} +1 -1
- package/dist/{registry-BbB6NqSv.d.cts → registry-BFmzj1yg.d.mts} +1 -1
- package/dist/{registry-sJqDv0kE.d.mts → registry-BoswPzYV.d.cts} +1 -1
- package/dist/{resolve-C5rT6B21.mjs → resolve-5puUe7eS.mjs} +1 -1
- package/dist/{resolve-BelytNYR.cjs → resolve-CF4ZLfqx.cjs} +1 -1
- package/dist/route-paths-B6ocUfNY.cjs +6 -0
- package/dist/route-paths-DyDji4bX.mjs +6 -0
- package/dist/{router-CZBxMRAH.js → router-B5e8k4qK.js} +175 -10
- package/dist/{router-C3kygdRK.cjs → router-DKC0Lu0n.cjs} +204 -9
- package/dist/{routes-C3_w9fLX.cjs → routes-D55M8UrH.cjs} +1 -1
- package/dist/routes-DdE6Lfcl.cjs +6 -0
- package/dist/routes-_I_8PQYF.mjs +6 -0
- package/dist/{search-dialog-x_qHU8ty.cjs → search-dialog-BOQRHKTb.cjs} +197 -24
- package/dist/{search-dialog-BqkzDTq2.js → search-dialog-BXil4_7P.js} +190 -29
- package/dist/search-dialog-CwlBd-Mu.cjs +747 -0
- package/dist/{search-dialog-B9mdxsUC.js → search-dialog-D3Obh3eA.js} +1 -1
- package/dist/search-dialog-DeplpVEB.js +717 -0
- package/dist/{search-dialog-DCtm2dyR.cjs → search-dialog-cHXR5zhL.cjs} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/ssg-static-options-Br1_u9qp.mjs +6 -0
- package/dist/ssg-static-options-CVvGKM8i.cjs +6 -0
- package/dist/types-58Ac3UGI.d.cts +114 -0
- package/dist/types-BwnGf-1E.d.mts +114 -0
- package/dist/virtual-modules-C4-qxFlL.cjs +40 -0
- package/dist/virtual-modules-DiWUKJGP.mjs +40 -0
- package/package.json +8 -5
- package/src/shared/types.ts +133 -987
- package/dist/config-CrsQJHQz.cjs +0 -7
- package/dist/config-DC0nMMk7.mjs +0 -7
- package/dist/dev-B49V6O6p.mjs +0 -6
- package/dist/dev-DbuhNcF5.cjs +0 -6
- package/dist/index-CgWkOCCn.d.cts +0 -1193
- package/dist/index-CuNSD3E2.d.ts +0 -1193
- package/dist/node-BljvHMpS.cjs +0 -23
- package/dist/node-CWxGw4H4.mjs +0 -23
- package/dist/pages-external-BBw8ObVK.mjs +0 -6
- package/dist/pages-external-DPiPFxxP.cjs +0 -6
- package/dist/plugin-BPcm1cU0.mjs +0 -69
- package/dist/plugin-WUhxnpko.cjs +0 -69
- package/dist/routes-C0kb4ue6.cjs +0 -6
- package/dist/routes-C4wrLWwu.mjs +0 -6
- package/dist/search-dialog-Bp_ouN1c.cjs +0 -550
- package/dist/search-dialog-an2BNMj6.js +0 -526
- package/dist/types-Db6zToZH.d.mts +0 -975
- package/dist/types-o7iZ2BAR.d.cts +0 -975
- package/dist/virtual-modules-B2X4Ht2r.mjs +0 -39
- package/dist/virtual-modules-DPsdHKcu.cjs +0 -39
- /package/dist/{audit-CMc_ydRr.mjs → audit-CYAkXXvP.mjs} +0 -0
- /package/dist/{audit-CHkGiV3c.cjs → audit-DxCZZTuX.cjs} +0 -0
- /package/dist/{csp-BiGAG8aF.cjs → csp-B-gc2Iha.cjs} +0 -0
- /package/dist/{csp-D0BOH8ae.mjs → csp-f8DOcI_7.mjs} +0 -0
- /package/dist/{generator-BCrZL53x.cjs → generator-CBAPKY6r.cjs} +0 -0
- /package/dist/{generator-CFukoGa0.mjs → generator-MRpn-yp6.mjs} +0 -0
- /package/dist/{handler-Lex5DbvG.mjs → handler-DBZqoWt2.mjs} +0 -0
- /package/dist/{handler-Ch-Q9NAB.cjs → handler-ryZR9Q41.cjs} +0 -0
- /package/dist/{index-HAwIo4nZ.d.mts → index-CPr34I2C.d.mts} +0 -0
- /package/dist/{native-BYKMke79.mjs → native-DZ6WMwjG.mjs} +0 -0
- /package/dist/{native-BOet8hpE.cjs → native-DeKxny_T.cjs} +0 -0
- /package/dist/{update-check-BXD1atVv.mjs → update-check-BXx8te9F.mjs} +0 -0
- /package/dist/{update-check-DFQZyoSU.cjs → update-check-CiIeC7CX.cjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { ft as BoltdocsRoutePathWithFallback } from "../index-
|
|
3
|
-
import { $ as SidebarItem, J as Sidebar, Q as SidebarHeader, X as SidebarGroup, Y as SidebarContent, Z as SidebarGroupRenderProps, at as SidebarLinkProps, ct as SidebarSlots, et as SidebarItemProps, it as SidebarLink, lt as SidebarSubGroup, nt as SidebarItems, ot as SidebarMobile,
|
|
2
|
+
import { ft as BoltdocsRoutePathWithFallback } from "../index-RK7W_Fxy.cjs";
|
|
3
|
+
import { $ as SidebarItem, J as Sidebar, Q as SidebarHeader, X as SidebarGroup, Y as SidebarContent, Yt as NavbarLink$1, Z as SidebarGroupRenderProps, at as SidebarLinkProps, ct as SidebarSlots, et as SidebarItemProps, it as SidebarLink, lt as SidebarSubGroup, nt as SidebarItems, ot as SidebarMobile, rt as SidebarItemsProps, st as SidebarRoot, tt as SidebarItemRenderProps, ut as ComponentBase } from "../index-B_o5y34l.cjs";
|
|
4
4
|
import { a as CalloutRoot, c as CalloutTitleProps, i as CalloutProps, l as CalloutVariant, n as CalloutBody, o as CalloutRootProps, r as CalloutIcon, s as CalloutTitle, t as Callout } from "../callout-plqx9Dw-.cjs";
|
|
5
5
|
import * as _$react from "react";
|
|
6
|
-
import { CSSProperties, Component, ComponentProps, ComponentType, ErrorInfo, FC, HTMLAttributes, ImgHTMLAttributes, ReactNode, Ref, RefObject } from "react";
|
|
6
|
+
import React$1, { CSSProperties, Component, ComponentProps, ComponentType, ErrorInfo, FC, HTMLAttributes, ImgHTMLAttributes, ReactNode, Ref, RefObject } from "react";
|
|
7
7
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
8
|
import * as RAC from "react-aria-components";
|
|
9
|
-
import { PopoverProps as PopoverProps$1 } from "react-aria-components";
|
|
9
|
+
import { AutocompleteProps, ButtonProps as ButtonProps$1, DialogProps, InputProps, ListBoxItemProps, ListBoxProps, MenuItemProps, MenuProps, MenuSectionProps as MenuSectionProps$1, MenuTriggerProps as MenuTriggerProps$1, ModalOverlayProps, PopoverProps as PopoverProps$1, SearchFieldProps, SeparatorProps, SubmenuTriggerProps as SubmenuTriggerProps$1 } from "react-aria-components";
|
|
10
10
|
|
|
11
11
|
//#region src/client/components/primitives/docs-layout.d.ts
|
|
12
12
|
interface SlotProps {
|
|
@@ -93,8 +93,16 @@ declare namespace Tabs {
|
|
|
93
93
|
}
|
|
94
94
|
declare function TabsList({
|
|
95
95
|
children,
|
|
96
|
-
className
|
|
97
|
-
|
|
96
|
+
className,
|
|
97
|
+
role
|
|
98
|
+
}: ComponentBase & {
|
|
99
|
+
/**
|
|
100
|
+
* Pass `null` when the "tabs" are plain navigation links (e.g. section
|
|
101
|
+
* tabs rendered as anchors): an ARIA `tablist` requires `tab` children and
|
|
102
|
+
* breaks otherwise. Omit to get the standard widget role.
|
|
103
|
+
*/
|
|
104
|
+
role?: string | null;
|
|
105
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
98
106
|
declare function TabsItem({
|
|
99
107
|
children,
|
|
100
108
|
id,
|
|
@@ -183,8 +191,11 @@ declare function AnchorProvider({
|
|
|
183
191
|
}: AnchorProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
184
192
|
declare function OnThisPage({
|
|
185
193
|
children,
|
|
186
|
-
className
|
|
187
|
-
|
|
194
|
+
className,
|
|
195
|
+
label
|
|
196
|
+
}: ComponentBase & {
|
|
197
|
+
/** Accessible name for the TOC nav landmark. */label?: string;
|
|
198
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
188
199
|
declare namespace OnThisPage {
|
|
189
200
|
var Root: typeof OnThisPage;
|
|
190
201
|
var Header: typeof OnThisPageHeader;
|
|
@@ -462,18 +473,25 @@ declare namespace Tooltip {
|
|
|
462
473
|
}
|
|
463
474
|
//#endregion
|
|
464
475
|
//#region src/client/components/primitives/link.d.ts
|
|
465
|
-
interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
476
|
+
interface LinkProps extends Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
466
477
|
href?: BoltdocsRoutePathWithFallback;
|
|
467
478
|
/** Alias for href, supported for React Router-style collection components. */
|
|
468
479
|
to?: BoltdocsRoutePathWithFallback;
|
|
469
|
-
/**
|
|
470
|
-
|
|
480
|
+
/**
|
|
481
|
+
* When to warm the destination's route chunk and loader data.
|
|
482
|
+
*
|
|
483
|
+
* - `hover` — on pointer enter or keyboard focus. Default.
|
|
484
|
+
* - `viewport` — also as soon as the link is about to be scrolled into view,
|
|
485
|
+
* so readers who scroll and click never wait. Implies hover.
|
|
486
|
+
* - `none` — never prefetch.
|
|
487
|
+
*/
|
|
488
|
+
prefetch?: 'hover' | 'viewport' | 'none';
|
|
471
489
|
/** Wrap local navigation in the experimental View Transition API. */
|
|
472
490
|
transition?: boolean;
|
|
473
491
|
/** Native transition types for this link. */
|
|
474
492
|
transitionTypes?: string[];
|
|
475
493
|
/** Ref to the rendered anchor element. */
|
|
476
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
494
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
477
495
|
/** Arbitrary `data-*` state attributes (e.g. `data-active`, `data-depth`). */
|
|
478
496
|
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
479
497
|
}
|
|
@@ -499,9 +517,9 @@ interface NavLinkProps extends Omit<LinkProps, 'className' | 'children'> {
|
|
|
499
517
|
/**
|
|
500
518
|
* Provides access to the active state for conditional children rendering.
|
|
501
519
|
*/
|
|
502
|
-
children?: React.ReactNode | ((props: {
|
|
520
|
+
children?: React$1.ReactNode | ((props: {
|
|
503
521
|
isActive: boolean;
|
|
504
|
-
}) => React.ReactNode);
|
|
522
|
+
}) => React$1.ReactNode);
|
|
505
523
|
/**
|
|
506
524
|
* Provides access to the active state for conditional styling.
|
|
507
525
|
*/
|
|
@@ -525,6 +543,12 @@ interface ErrorBoundaryProps {
|
|
|
525
543
|
FallbackComponent?: ComponentType<FallbackProps>;
|
|
526
544
|
onError?: (error: Error, info: ErrorInfo) => void;
|
|
527
545
|
onReset?: () => void;
|
|
546
|
+
/**
|
|
547
|
+
* When any of these values change, a caught error is automatically
|
|
548
|
+
* reset (e.g. pass the current route path so navigation clears stale
|
|
549
|
+
* render errors).
|
|
550
|
+
*/
|
|
551
|
+
resetKeys?: unknown[];
|
|
528
552
|
}
|
|
529
553
|
interface ErrorBoundaryState {
|
|
530
554
|
hasError: boolean;
|
|
@@ -535,6 +559,8 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
535
559
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
536
560
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
537
561
|
resetErrorBoundary: () => void;
|
|
562
|
+
private prevResetKeys;
|
|
563
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps): void;
|
|
538
564
|
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
539
565
|
}
|
|
540
566
|
interface ErrorBoundaryFallbackProps {
|
|
@@ -591,7 +617,7 @@ declare function Image({
|
|
|
591
617
|
/**
|
|
592
618
|
* MenuTrigger wraps a trigger (usually a Button) and a Menu.
|
|
593
619
|
*/
|
|
594
|
-
interface MenuTriggerProps extends
|
|
620
|
+
interface MenuTriggerProps extends MenuTriggerProps$1 {
|
|
595
621
|
placement?: PopoverProps['placement'];
|
|
596
622
|
className?: string;
|
|
597
623
|
}
|
|
@@ -603,7 +629,7 @@ declare function MenuTrigger({
|
|
|
603
629
|
/**
|
|
604
630
|
* SubmenuTrigger for nested menus.
|
|
605
631
|
*/
|
|
606
|
-
interface SubmenuTriggerProps extends
|
|
632
|
+
interface SubmenuTriggerProps extends SubmenuTriggerProps$1 {
|
|
607
633
|
className?: string;
|
|
608
634
|
}
|
|
609
635
|
declare function SubmenuTrigger({
|
|
@@ -613,7 +639,7 @@ declare function SubmenuTrigger({
|
|
|
613
639
|
/**
|
|
614
640
|
* The Menu container.
|
|
615
641
|
*/
|
|
616
|
-
declare function Menu<T extends object>(props:
|
|
642
|
+
declare function Menu<T extends object>(props: MenuProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
617
643
|
declare namespace Menu {
|
|
618
644
|
var Root: typeof Menu;
|
|
619
645
|
var Item: typeof MenuItem;
|
|
@@ -625,7 +651,7 @@ declare namespace Menu {
|
|
|
625
651
|
/**
|
|
626
652
|
* MenuItem with support for selection states and submenus.
|
|
627
653
|
*/
|
|
628
|
-
declare function MenuItem(props:
|
|
654
|
+
declare function MenuItem(props: MenuItemProps & {
|
|
629
655
|
/** Class name for the content row. */contentClassName?: string; /** Class name for the multi-select check slot. */
|
|
630
656
|
checkClassName?: string; /** Class name for the submenu chevron. */
|
|
631
657
|
chevronClassName?: string; /** Custom multi-select check indicator. Replaces the default check. */
|
|
@@ -635,7 +661,7 @@ declare function MenuItem(props: RAC.MenuItemProps & {
|
|
|
635
661
|
/**
|
|
636
662
|
* MenuSection for grouping items with an optional header.
|
|
637
663
|
*/
|
|
638
|
-
interface MenuSectionProps<T> extends
|
|
664
|
+
interface MenuSectionProps<T> extends MenuSectionProps$1<T> {
|
|
639
665
|
title?: string;
|
|
640
666
|
headerClassName?: string;
|
|
641
667
|
}
|
|
@@ -647,7 +673,7 @@ declare function MenuSection<T extends object>({
|
|
|
647
673
|
/**
|
|
648
674
|
* MenuSeparator for visual division.
|
|
649
675
|
*/
|
|
650
|
-
declare function MenuSeparator(props:
|
|
676
|
+
declare function MenuSeparator(props: SeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
651
677
|
//#endregion
|
|
652
678
|
//#region src/client/components/primitives/page-nav.d.ts
|
|
653
679
|
interface PageNavProps extends ComponentBase {
|
|
@@ -685,7 +711,7 @@ declare function PageNavIcon({
|
|
|
685
711
|
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
686
712
|
//#endregion
|
|
687
713
|
//#region src/client/components/primitives/search-dialog.d.ts
|
|
688
|
-
interface SearchDialogItemProps extends Omit<
|
|
714
|
+
interface SearchDialogItemProps extends Omit<ListBoxItemProps, 'children'> {
|
|
689
715
|
className?: string;
|
|
690
716
|
children: React.ReactNode;
|
|
691
717
|
/** Class name for the focused/selected "Select" hint. */
|
|
@@ -706,12 +732,12 @@ interface SearchDialogItemIconProps {
|
|
|
706
732
|
icon?: React.ReactNode;
|
|
707
733
|
}
|
|
708
734
|
/**
|
|
709
|
-
* Pure, unstyled SearchDialog Overlay (maps to
|
|
735
|
+
* Pure, unstyled SearchDialog Overlay (maps to ModalOverlay)
|
|
710
736
|
*/
|
|
711
737
|
declare function SearchDialog({
|
|
712
738
|
className,
|
|
713
739
|
...props
|
|
714
|
-
}:
|
|
740
|
+
}: ModalOverlayProps): _$react_jsx_runtime0.JSX.Element;
|
|
715
741
|
declare namespace SearchDialog {
|
|
716
742
|
var Root: typeof SearchDialog;
|
|
717
743
|
var Overlay: typeof SearchDialog;
|
|
@@ -730,65 +756,65 @@ declare namespace SearchDialog {
|
|
|
730
756
|
};
|
|
731
757
|
}
|
|
732
758
|
/**
|
|
733
|
-
* Pure, unstyled SearchDialog Content (maps to
|
|
759
|
+
* Pure, unstyled SearchDialog Content (maps to Modal)
|
|
734
760
|
*/
|
|
735
761
|
declare function SearchDialogContent({
|
|
736
762
|
className,
|
|
737
763
|
...props
|
|
738
|
-
}:
|
|
764
|
+
}: ModalOverlayProps): _$react_jsx_runtime0.JSX.Element;
|
|
739
765
|
/**
|
|
740
|
-
* Pure, unstyled SearchDialog Dialog (maps to
|
|
766
|
+
* Pure, unstyled SearchDialog Dialog (maps to Dialog)
|
|
741
767
|
*/
|
|
742
768
|
declare function SearchDialogDialog({
|
|
743
769
|
children,
|
|
744
770
|
className,
|
|
745
771
|
...props
|
|
746
|
-
}:
|
|
772
|
+
}: DialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
747
773
|
/**
|
|
748
|
-
* Pure, unstyled SearchDialog Input Field (maps to
|
|
774
|
+
* Pure, unstyled SearchDialog Input Field (maps to SearchField)
|
|
749
775
|
*/
|
|
750
776
|
declare function SearchDialogField({
|
|
751
777
|
className,
|
|
752
778
|
...props
|
|
753
|
-
}:
|
|
779
|
+
}: SearchFieldProps): _$react_jsx_runtime0.JSX.Element;
|
|
754
780
|
/**
|
|
755
|
-
* Pure, unstyled SearchInput (maps to
|
|
781
|
+
* Pure, unstyled SearchInput (maps to Input)
|
|
756
782
|
*/
|
|
757
783
|
declare function SearchDialogSearchInput({
|
|
758
784
|
className,
|
|
759
785
|
...props
|
|
760
|
-
}:
|
|
786
|
+
}: InputProps): _$react_jsx_runtime0.JSX.Element;
|
|
761
787
|
/**
|
|
762
|
-
* Pure, unstyled Clear Button (maps to
|
|
788
|
+
* Pure, unstyled Clear Button (maps to Button with slot="clear")
|
|
763
789
|
*/
|
|
764
790
|
declare function SearchDialogClearButton({
|
|
765
791
|
className,
|
|
766
792
|
...props
|
|
767
|
-
}:
|
|
793
|
+
}: ButtonProps$1): _$react_jsx_runtime0.JSX.Element;
|
|
768
794
|
/**
|
|
769
|
-
* Pure, unstyled Autocomplete container (maps to
|
|
795
|
+
* Pure, unstyled Autocomplete container (maps to Autocomplete)
|
|
770
796
|
*/
|
|
771
797
|
declare function SearchDialogAutocomplete<T extends object>({
|
|
772
798
|
children,
|
|
773
799
|
className,
|
|
774
800
|
innerClassName,
|
|
775
801
|
...props
|
|
776
|
-
}:
|
|
802
|
+
}: AutocompleteProps<T> & {
|
|
777
803
|
className?: string;
|
|
778
804
|
innerClassName?: string;
|
|
779
805
|
}): _$react_jsx_runtime0.JSX.Element;
|
|
780
806
|
/**
|
|
781
|
-
* Pure, unstyled List Box (maps to
|
|
807
|
+
* Pure, unstyled List Box (maps to ListBox)
|
|
782
808
|
*/
|
|
783
809
|
declare function SearchDialogList<T extends object>({
|
|
784
810
|
children,
|
|
785
811
|
className,
|
|
786
812
|
...props
|
|
787
|
-
}:
|
|
813
|
+
}: ListBoxProps<T> & {
|
|
788
814
|
className?: string;
|
|
789
815
|
}): _$react_jsx_runtime0.JSX.Element;
|
|
790
816
|
/**
|
|
791
|
-
* Pure, unstyled List Box Item (maps to
|
|
817
|
+
* Pure, unstyled List Box Item (maps to ListBoxItem)
|
|
792
818
|
*/
|
|
793
819
|
declare function SearchDialogItemRoot({
|
|
794
820
|
children,
|
|
@@ -867,15 +893,25 @@ interface NavbarLinkProps extends Omit<ComponentBase, 'children'> {
|
|
|
867
893
|
}
|
|
868
894
|
interface NavbarLogoProps extends Omit<ComponentBase, 'children'> {
|
|
869
895
|
src: string;
|
|
896
|
+
/** Source used while the `dark` class is absent from `<html>`. */
|
|
897
|
+
srcLight?: string;
|
|
898
|
+
/** Source used while the `dark` class is present on `<html>`. */
|
|
899
|
+
srcDark?: string | null;
|
|
870
900
|
alt: string;
|
|
871
901
|
width?: number;
|
|
872
902
|
height?: number;
|
|
873
903
|
href?: BoltdocsRoutePathWithFallback;
|
|
874
904
|
/** Class name for the logo `<img>` element. */
|
|
875
905
|
logoClassName?: string;
|
|
906
|
+
/** Class name for the light-theme logo `<img>`, when two are rendered. */
|
|
907
|
+
logoLightClassName?: string;
|
|
908
|
+
/** Class name for the dark-theme logo `<img>`, when two are rendered. */
|
|
909
|
+
logoDarkClassName?: string;
|
|
876
910
|
}
|
|
877
911
|
interface NavbarSearchTriggerProps extends ComponentBase {
|
|
878
912
|
onPress: () => void;
|
|
913
|
+
'aria-label'?: string;
|
|
914
|
+
'aria-keyshortcuts'?: string;
|
|
879
915
|
}
|
|
880
916
|
interface NavbarThemeProps {
|
|
881
917
|
className?: string;
|
|
@@ -934,11 +970,15 @@ declare function NavbarCenter({
|
|
|
934
970
|
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
935
971
|
declare function NavbarLogo({
|
|
936
972
|
src,
|
|
973
|
+
srcLight,
|
|
974
|
+
srcDark,
|
|
937
975
|
alt,
|
|
938
976
|
width,
|
|
939
977
|
height,
|
|
940
978
|
className,
|
|
941
979
|
logoClassName,
|
|
980
|
+
logoLightClassName,
|
|
981
|
+
logoDarkClassName,
|
|
942
982
|
href
|
|
943
983
|
}: NavbarLogoProps): _$react_jsx_runtime0.JSX.Element;
|
|
944
984
|
declare function NavbarTitle({
|
|
@@ -953,8 +993,16 @@ declare function NavbarTitle({
|
|
|
953
993
|
}): _$react_jsx_runtime0.JSX.Element;
|
|
954
994
|
declare function NavbarLinks({
|
|
955
995
|
children,
|
|
956
|
-
className
|
|
957
|
-
|
|
996
|
+
className,
|
|
997
|
+
label
|
|
998
|
+
}: ComponentBase & {
|
|
999
|
+
/**
|
|
1000
|
+
* Accessible name for the nav landmark. Required when the page renders
|
|
1001
|
+
* multiple navs (e.g. a docs navbar plus a sidebar) so landmarks stay
|
|
1002
|
+
* distinguishable.
|
|
1003
|
+
*/
|
|
1004
|
+
label?: string;
|
|
1005
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
958
1006
|
declare function NavbarLink({
|
|
959
1007
|
label,
|
|
960
1008
|
href,
|
|
@@ -999,12 +1047,14 @@ declare function NavbarDropdownItem({
|
|
|
999
1047
|
declare function NavbarSearchTriggerDesktop({
|
|
1000
1048
|
className,
|
|
1001
1049
|
onPress,
|
|
1002
|
-
children
|
|
1050
|
+
children,
|
|
1051
|
+
...props
|
|
1003
1052
|
}: NavbarSearchTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
1004
1053
|
declare function NavbarSearchTriggerMobile({
|
|
1005
1054
|
className,
|
|
1006
1055
|
onPress,
|
|
1007
|
-
children
|
|
1056
|
+
children,
|
|
1057
|
+
...props
|
|
1008
1058
|
}: NavbarSearchTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
1009
1059
|
declare function NavbarSearchTriggerKbd({
|
|
1010
1060
|
className,
|