boltdocs 2.6.1 → 2.7.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/bin/boltdocs.js +0 -1
- package/dist/cache-CQKlT4fI.mjs +6 -0
- package/dist/cache-DorPMFgW.cjs +6 -0
- package/dist/cards-BLoSiRuL.d.ts +30 -0
- package/dist/cards-CQn9mXZS.d.cts +30 -0
- package/dist/chunk-Ds5LZdWN.cjs +6 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +173 -1328
- package/dist/client/index.d.ts +172 -1327
- package/dist/client/index.js +1 -1
- package/dist/{package-c99Cs7mD.cjs → client/mdx.cjs} +1 -1
- package/dist/client/mdx.d.cts +128 -0
- package/dist/client/mdx.d.ts +129 -0
- package/dist/client/mdx.js +6 -0
- package/dist/client/primitives.cjs +6 -0
- package/dist/client/primitives.d.cts +818 -0
- package/dist/client/primitives.d.ts +818 -0
- package/dist/client/primitives.js +6 -0
- package/dist/client/theme/neutral.css +74 -361
- package/dist/client/theme/reset.css +189 -0
- package/dist/docs-layout-BlDhcQRv.cjs +6 -0
- package/dist/docs-layout-BvAOWEJw.js +6 -0
- package/dist/doctor-BQiQhCTl.cjs +6 -0
- package/dist/doctor-COpf35L2.cjs +20 -0
- package/dist/doctor-Dh1XP7Pz.mjs +20 -0
- package/dist/generator-DGW6pkCC.cjs +22 -0
- package/dist/generator-Dv3wEmhZ.mjs +22 -0
- package/dist/icons-dev-CrQLjoQp.js +6 -0
- package/dist/icons-dev-rzdz6Lf3.cjs +6 -0
- package/dist/image-BkIfa9oo.js +6 -0
- package/dist/image-DIGjCPe6.cjs +6 -0
- package/dist/mdx-K0WYBAJ3.js +7 -0
- package/dist/mdx-hpErbRUe.cjs +7 -0
- package/dist/meta-loader-0gJ4PtBC.cjs +6 -0
- package/dist/meta-loader-9IpAHWDS.mjs +6 -0
- package/dist/node/cli-entry.cjs +1 -2
- package/dist/node/cli-entry.mjs +1 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +66 -13
- package/dist/node/index.d.mts +66 -14
- package/dist/node/index.mjs +1 -1
- package/dist/node/routes/worker.cjs +6 -0
- package/dist/node/routes/worker.d.cts +2 -0
- package/dist/node/routes/worker.d.mts +2 -0
- package/dist/node/routes/worker.mjs +6 -0
- package/dist/node-C2nWXElP.mjs +112 -0
- package/dist/node-CinkUtxV.cjs +112 -0
- package/dist/package-BMYLDBBP.cjs +6 -0
- package/dist/{package-DukYeKmD.mjs → package-HegMOTL_.mjs} +1 -1
- package/dist/parser-Bh11BsdA.cjs +6 -0
- package/dist/parser-D8eQvE7N.mjs +6 -0
- package/dist/parser-DYRzXWmA.cjs +6 -0
- package/dist/routes-CHf76Ye4.cjs +6 -0
- package/dist/routes-CMUZGI6T.mjs +6 -0
- package/dist/routes-Co1mRM58.cjs +6 -0
- package/dist/search-dialog-BACuzoVX.cjs +6 -0
- package/dist/search-dialog-BKagVT17.js +6 -0
- package/dist/search-dialog-C8w12eUx.js +6 -0
- package/dist/search-dialog-CGyrozZE.cjs +6 -0
- package/dist/search-dialog-D26rUnJ_.cjs +6 -0
- package/dist/sidebar-DKvg6KOc.d.cts +491 -0
- package/dist/sidebar-Dr1TiRIy.d.ts +491 -0
- package/dist/utils-BxNAXhZZ.mjs +7 -0
- package/dist/utils-Clzu7jvb.cjs +7 -0
- package/dist/worker-pool-Bd8Y9KDv.mjs +6 -0
- package/dist/worker-pool-BwU8ckrg.cjs +6 -0
- package/package.json +27 -8
- package/src/client/app/doc-page.tsx +9 -5
- package/src/client/app/docs-layout.tsx +17 -3
- package/src/client/app/head.tsx +122 -0
- package/src/client/app/helmet-compat.tsx +36 -0
- package/src/client/app/mdx-component.tsx +5 -52
- package/src/client/app/mdx-components-context.tsx +32 -8
- package/src/client/app/routes-context.tsx +2 -2
- package/src/client/app/scroll-handler.tsx +1 -1
- package/src/client/app/theme-context.tsx +5 -5
- package/src/client/app/ui-context.tsx +42 -0
- package/src/client/components/docs-layout-default.tsx +85 -0
- package/src/client/components/icons-dev.tsx +38 -15
- package/src/client/components/mdx/callout.tsx +97 -0
- package/src/client/components/mdx/card.tsx +73 -98
- package/src/client/components/mdx/cards.tsx +27 -0
- package/src/client/components/mdx/code-block.tsx +37 -17
- package/src/client/components/mdx/field.tsx +24 -56
- package/src/client/components/mdx/image.tsx +36 -15
- package/src/client/components/mdx/index.ts +19 -53
- package/src/client/components/mdx/table.tsx +46 -148
- package/src/client/components/mdx/typographics.tsx +120 -0
- package/src/client/components/mdx/{hooks/use-code-block.ts → use-code-block.ts} +5 -7
- package/src/client/components/primitives/breadcrumbs.tsx +5 -24
- package/src/client/components/primitives/button.tsx +3 -142
- package/src/client/components/primitives/code-block.tsx +104 -97
- package/src/client/components/{docs-layout.tsx → primitives/docs-layout.tsx} +15 -24
- package/src/client/components/primitives/error-boundary.tsx +107 -0
- package/src/client/components/primitives/heading.tsx +128 -0
- package/src/client/components/primitives/helpers/observer.ts +62 -32
- package/src/client/components/primitives/image.tsx +26 -0
- package/src/client/components/primitives/link.tsx +50 -52
- package/src/client/components/primitives/menu.tsx +25 -49
- package/src/client/components/primitives/navbar.tsx +234 -59
- package/src/client/components/primitives/on-this-page.tsx +169 -40
- package/src/client/components/primitives/page-nav.tsx +11 -39
- package/src/client/components/primitives/popover.tsx +12 -30
- package/src/client/components/primitives/search-dialog.tsx +77 -71
- package/src/client/components/primitives/sidebar.tsx +312 -119
- package/src/client/components/primitives/skeleton.tsx +1 -1
- package/src/client/components/primitives/tabs.tsx +5 -16
- package/src/client/components/primitives/tooltip.tsx +1 -1
- package/src/client/components/ui-base/banner.tsx +66 -0
- package/src/client/components/ui-base/breadcrumbs.tsx +26 -20
- package/src/client/components/ui-base/copy-markdown.tsx +43 -35
- package/src/client/components/ui-base/error-boundary.tsx +9 -46
- package/src/client/components/ui-base/github-stars.tsx +5 -3
- package/src/client/components/ui-base/index.ts +3 -3
- package/src/client/components/ui-base/last-updated.tsx +27 -0
- package/src/client/components/ui-base/navbar.tsx +183 -89
- package/src/client/components/ui-base/not-found.tsx +11 -9
- package/src/client/components/ui-base/on-this-page.tsx +8 -104
- package/src/client/components/ui-base/page-nav.tsx +23 -9
- package/src/client/components/ui-base/search-dialog.tsx +111 -36
- package/src/client/components/ui-base/search-highlight.tsx +10 -0
- package/src/client/components/ui-base/sidebar.tsx +77 -154
- package/src/client/components/ui-base/tabs.tsx +20 -7
- package/src/client/components/ui-base/theme-toggle.tsx +88 -10
- package/src/client/components/ui-base/version-i18n.tsx +80 -0
- package/src/client/hooks/index.ts +2 -1
- package/src/client/hooks/use-analytics.ts +272 -0
- package/src/client/hooks/use-i18n.ts +120 -53
- package/src/client/hooks/use-localized-to.ts +70 -30
- package/src/client/hooks/use-navbar.ts +69 -39
- package/src/client/hooks/use-page-nav.ts +28 -25
- package/src/client/hooks/use-routes.ts +64 -81
- package/src/client/hooks/use-search-highlight.ts +185 -0
- package/src/client/hooks/use-search.ts +12 -3
- package/src/client/hooks/use-sidebar.ts +183 -77
- package/src/client/hooks/use-tabs.ts +3 -4
- package/src/client/hooks/use-version.ts +46 -18
- package/src/client/index.ts +13 -86
- package/src/client/mdx.ts +2 -0
- package/src/client/primitives.ts +19 -0
- package/src/client/ssg/boltdocs-shell.tsx +78 -57
- package/src/client/ssg/create-routes.tsx +290 -50
- package/src/client/ssg/mdx-page.tsx +2 -1
- package/src/client/store/boltdocs-context.tsx +83 -12
- package/src/client/theme/neutral.css +74 -361
- package/src/client/theme/reset.css +189 -0
- package/src/client/types.ts +10 -2
- package/src/client/utils/path.ts +9 -0
- package/src/client/utils/react-to-text.ts +24 -24
- package/src/client/virtual.d.ts +1 -1
- package/src/shared/types.ts +97 -21
- package/dist/node-CWN8U_p8.mjs +0 -88
- package/dist/node-D5iosYXv.cjs +0 -88
- package/dist/search-dialog-3lvKsbVG.js +0 -6
- package/dist/search-dialog-DMK5OpgH.cjs +0 -6
- package/dist/use-search-C9bxCqfF.js +0 -6
- package/dist/use-search-DcfZSunO.cjs +0 -6
- package/src/client/components/mdx/admonition.tsx +0 -91
- package/src/client/components/mdx/badge.tsx +0 -41
- package/src/client/components/mdx/button.tsx +0 -35
- package/src/client/components/mdx/component-preview.tsx +0 -37
- package/src/client/components/mdx/component-props.tsx +0 -83
- package/src/client/components/mdx/file-tree.tsx +0 -325
- package/src/client/components/mdx/hooks/use-component-preview.ts +0 -16
- package/src/client/components/mdx/hooks/useTable.ts +0 -74
- package/src/client/components/mdx/hooks/useTabs.ts +0 -68
- package/src/client/components/mdx/link.tsx +0 -38
- package/src/client/components/mdx/list.tsx +0 -192
- package/src/client/components/mdx/tabs.tsx +0 -135
- package/src/client/components/mdx/video.tsx +0 -68
- package/src/client/components/primitives/index.ts +0 -19
- package/src/client/components/primitives/navigation-menu.tsx +0 -114
- package/src/client/components/ui-base/head.tsx +0 -76
- package/src/client/components/ui-base/loading.tsx +0 -57
- package/src/client/components/ui-base/powered-by.tsx +0 -25
- package/src/client/hooks/use-onthispage.ts +0 -23
- package/src/client/utils/use-on-change.ts +0 -15
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
|
|
2
|
+
import { a as SidebarItem, c as SidebarItemsProps, d as SidebarMobile, f as SidebarRoot, i as SidebarHeader, l as SidebarLink, m as ComponentBase, n as SidebarContent, o as SidebarItemProps, p as SidebarSubGroup, r as SidebarGroup, s as SidebarItems, t as Sidebar, u as SidebarLinkProps } from "../sidebar-DKvg6KOc.cjs";
|
|
3
|
+
import * as React$2 from "react";
|
|
4
|
+
import { Component, ComponentProps, ComponentType, ErrorInfo, ImgHTMLAttributes, ReactNode, RefObject } from "react";
|
|
5
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import * as RAC from "react-aria-components";
|
|
7
|
+
import { LinkProps as LinkProps$1, PopoverProps as PopoverProps$1 } from "react-aria-components";
|
|
8
|
+
|
|
9
|
+
//#region src/client/components/primitives/docs-layout.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Props shared by all layout slot components.
|
|
12
|
+
*/
|
|
13
|
+
interface SlotProps {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Horizontal flex container for sidebar + content + toc.
|
|
20
|
+
*/
|
|
21
|
+
declare function Body({
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
style
|
|
25
|
+
}: SlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Main scrollable content area.
|
|
28
|
+
*/
|
|
29
|
+
declare function Content({
|
|
30
|
+
children,
|
|
31
|
+
className,
|
|
32
|
+
style
|
|
33
|
+
}: SlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* MDX Content wrapper with standard page padding and max-width logic.
|
|
36
|
+
*/
|
|
37
|
+
declare function ContentMdx({
|
|
38
|
+
children,
|
|
39
|
+
className,
|
|
40
|
+
style
|
|
41
|
+
}: SlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Content header area (breadcrumbs, title, description, etc).
|
|
44
|
+
*/
|
|
45
|
+
declare function Header({
|
|
46
|
+
children,
|
|
47
|
+
className,
|
|
48
|
+
style
|
|
49
|
+
}: SlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Footer area inside the content section (page nav).
|
|
52
|
+
*/
|
|
53
|
+
declare function Footer({
|
|
54
|
+
children,
|
|
55
|
+
className,
|
|
56
|
+
style
|
|
57
|
+
}: SlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
58
|
+
interface DocsLayoutComponent extends React.FC<SlotProps> {
|
|
59
|
+
Body: typeof Body;
|
|
60
|
+
Content: typeof Content;
|
|
61
|
+
ContentMdx: typeof ContentMdx;
|
|
62
|
+
Header: typeof Header;
|
|
63
|
+
Footer: typeof Footer;
|
|
64
|
+
}
|
|
65
|
+
declare const DocsLayout: DocsLayoutComponent;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/client/components/primitives/button-group.d.ts
|
|
68
|
+
interface ButtonGroupProps extends ComponentBase {
|
|
69
|
+
vertical?: boolean;
|
|
70
|
+
}
|
|
71
|
+
declare const ButtonGroup: ({
|
|
72
|
+
children,
|
|
73
|
+
className,
|
|
74
|
+
vertical
|
|
75
|
+
}: ButtonGroupProps) => _$react_jsx_runtime0.JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/client/components/primitives/tabs.d.ts
|
|
78
|
+
interface TabsItemProps extends ComponentBase {
|
|
79
|
+
id: string;
|
|
80
|
+
selected?: boolean;
|
|
81
|
+
onClick?: () => void;
|
|
82
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
}
|
|
85
|
+
interface TabsIndicatorProps extends ComponentBase {
|
|
86
|
+
style?: React.CSSProperties;
|
|
87
|
+
}
|
|
88
|
+
declare const Tabs: {
|
|
89
|
+
({
|
|
90
|
+
children,
|
|
91
|
+
className,
|
|
92
|
+
...props
|
|
93
|
+
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
94
|
+
Root: /*elided*/any;
|
|
95
|
+
List: ({
|
|
96
|
+
children,
|
|
97
|
+
className
|
|
98
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
99
|
+
Item: ({
|
|
100
|
+
children,
|
|
101
|
+
id,
|
|
102
|
+
selected,
|
|
103
|
+
className,
|
|
104
|
+
...props
|
|
105
|
+
}: TabsItemProps) => _$react_jsx_runtime0.JSX.Element;
|
|
106
|
+
Content: ({
|
|
107
|
+
children,
|
|
108
|
+
className
|
|
109
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
110
|
+
Indicator: ({
|
|
111
|
+
className,
|
|
112
|
+
style
|
|
113
|
+
}: TabsIndicatorProps) => _$react_jsx_runtime0.JSX.Element;
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/client/components/primitives/on-this-page.d.ts
|
|
117
|
+
interface TOCItemType {
|
|
118
|
+
title: ReactNode;
|
|
119
|
+
url: string;
|
|
120
|
+
depth: number;
|
|
121
|
+
_step?: number;
|
|
122
|
+
}
|
|
123
|
+
type TableOfContents = TOCItemType[];
|
|
124
|
+
interface TOCItemInfo {
|
|
125
|
+
id: string;
|
|
126
|
+
active: boolean;
|
|
127
|
+
/** last time the item is updated */
|
|
128
|
+
t: number;
|
|
129
|
+
/** currently active but not intersecting in viewport */
|
|
130
|
+
fallback: boolean;
|
|
131
|
+
original?: TOCItemType;
|
|
132
|
+
}
|
|
133
|
+
interface AnchorProviderProps {
|
|
134
|
+
toc: TOCItemType[];
|
|
135
|
+
/**
|
|
136
|
+
* Only accept one active item at most
|
|
137
|
+
* @defaultValue false
|
|
138
|
+
*/
|
|
139
|
+
single?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Custom IntersectionObserver options
|
|
142
|
+
*/
|
|
143
|
+
observerOptions?: IntersectionObserverInit;
|
|
144
|
+
children?: ReactNode;
|
|
145
|
+
}
|
|
146
|
+
interface ScrollProviderProps {
|
|
147
|
+
/**
|
|
148
|
+
* Scroll into the view of container when active
|
|
149
|
+
*/
|
|
150
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
151
|
+
children?: ReactNode;
|
|
152
|
+
}
|
|
153
|
+
interface OnThisPageContentProps extends ComponentBase {
|
|
154
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
155
|
+
scrollRef?: RefObject<HTMLElement | null>;
|
|
156
|
+
}
|
|
157
|
+
interface OnThisPageItemProps extends ComponentBase {
|
|
158
|
+
level?: number;
|
|
159
|
+
}
|
|
160
|
+
interface OnThisPageLinkProps extends ComponentBase {
|
|
161
|
+
href?: string;
|
|
162
|
+
active?: boolean;
|
|
163
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
164
|
+
}
|
|
165
|
+
interface OnThisPageIndicatorProps extends ComponentBase {
|
|
166
|
+
style?: React.CSSProperties;
|
|
167
|
+
}
|
|
168
|
+
declare function useItems(): TOCItemInfo[];
|
|
169
|
+
declare function useActiveAnchor(): string | undefined;
|
|
170
|
+
declare function useActiveAnchors(): string[];
|
|
171
|
+
/** Optional: add auto-scroll to TOC items. */
|
|
172
|
+
declare function ScrollProvider({
|
|
173
|
+
containerRef,
|
|
174
|
+
children
|
|
175
|
+
}: ScrollProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
176
|
+
declare function AnchorProvider({
|
|
177
|
+
toc,
|
|
178
|
+
single,
|
|
179
|
+
observerOptions,
|
|
180
|
+
children
|
|
181
|
+
}: AnchorProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
182
|
+
declare const OnThisPage: {
|
|
183
|
+
({
|
|
184
|
+
children,
|
|
185
|
+
className
|
|
186
|
+
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
187
|
+
Root: /*elided*/any;
|
|
188
|
+
Header: ({
|
|
189
|
+
children,
|
|
190
|
+
className,
|
|
191
|
+
...props
|
|
192
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
193
|
+
Content: {
|
|
194
|
+
({
|
|
195
|
+
children,
|
|
196
|
+
className,
|
|
197
|
+
ref,
|
|
198
|
+
...props
|
|
199
|
+
}: OnThisPageContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
200
|
+
displayName: string;
|
|
201
|
+
};
|
|
202
|
+
List: ({
|
|
203
|
+
children,
|
|
204
|
+
className
|
|
205
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
206
|
+
Item: ({
|
|
207
|
+
level,
|
|
208
|
+
children,
|
|
209
|
+
className
|
|
210
|
+
}: OnThisPageItemProps) => _$react_jsx_runtime0.JSX.Element;
|
|
211
|
+
Link: ({
|
|
212
|
+
children,
|
|
213
|
+
href,
|
|
214
|
+
active,
|
|
215
|
+
onClick,
|
|
216
|
+
className
|
|
217
|
+
}: OnThisPageLinkProps) => _$react_jsx_runtime0.JSX.Element;
|
|
218
|
+
Indicator: ({
|
|
219
|
+
style,
|
|
220
|
+
className
|
|
221
|
+
}: OnThisPageIndicatorProps) => _$react_jsx_runtime0.JSX.Element;
|
|
222
|
+
Items: typeof OnThisPageItems;
|
|
223
|
+
Tree: typeof OnThisPageTree;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* High-level automated list of toc items
|
|
227
|
+
*/
|
|
228
|
+
declare function OnThisPageItems({
|
|
229
|
+
headings,
|
|
230
|
+
className
|
|
231
|
+
}: {
|
|
232
|
+
headings: {
|
|
233
|
+
level: number;
|
|
234
|
+
text: string;
|
|
235
|
+
id: string;
|
|
236
|
+
}[];
|
|
237
|
+
} & ComponentBase): _$react_jsx_runtime0.JSX.Element | null;
|
|
238
|
+
/**
|
|
239
|
+
* High-level automated Table of Contents tree
|
|
240
|
+
*/
|
|
241
|
+
declare function OnThisPageTree({
|
|
242
|
+
headings,
|
|
243
|
+
className
|
|
244
|
+
}: {
|
|
245
|
+
headings: {
|
|
246
|
+
level: number;
|
|
247
|
+
text: string;
|
|
248
|
+
id: string;
|
|
249
|
+
}[];
|
|
250
|
+
} & ComponentBase): _$react_jsx_runtime0.JSX.Element | null;
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/client/components/primitives/code-block.d.ts
|
|
253
|
+
interface CodeBlockRootProps extends ComponentProps<'div'> {
|
|
254
|
+
/**
|
|
255
|
+
* Whether the code block is in plain mode (no borders/padding)
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
plain?: boolean;
|
|
259
|
+
}
|
|
260
|
+
interface CodeBlockHeaderProps extends ComponentProps<'div'> {}
|
|
261
|
+
interface CodeBlockGroupProps extends ComponentProps<'div'> {}
|
|
262
|
+
interface CodeBlockContentProps extends ComponentProps<'div'> {
|
|
263
|
+
/**
|
|
264
|
+
* Whether the code content should be truncated with an expand button
|
|
265
|
+
* @default false
|
|
266
|
+
*/
|
|
267
|
+
shouldTruncate?: boolean;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Root component for code blocks.
|
|
271
|
+
* Handles background, borders, and general layout.
|
|
272
|
+
*/
|
|
273
|
+
declare const CodeBlock: {
|
|
274
|
+
({
|
|
275
|
+
children,
|
|
276
|
+
className,
|
|
277
|
+
plain,
|
|
278
|
+
...props
|
|
279
|
+
}: CodeBlockRootProps): _$react_jsx_runtime0.JSX.Element;
|
|
280
|
+
Header: ({
|
|
281
|
+
children,
|
|
282
|
+
className,
|
|
283
|
+
...props
|
|
284
|
+
}: CodeBlockHeaderProps) => _$react_jsx_runtime0.JSX.Element;
|
|
285
|
+
Group: ({
|
|
286
|
+
children,
|
|
287
|
+
className,
|
|
288
|
+
...props
|
|
289
|
+
}: CodeBlockGroupProps) => _$react_jsx_runtime0.JSX.Element;
|
|
290
|
+
Content: ({
|
|
291
|
+
className,
|
|
292
|
+
children,
|
|
293
|
+
shouldTruncate,
|
|
294
|
+
...props
|
|
295
|
+
}: CodeBlockContentProps) => _$react_jsx_runtime0.JSX.Element;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Header section of the code block.
|
|
299
|
+
* Usually contains the title, language label, and action buttons.
|
|
300
|
+
*/
|
|
301
|
+
declare const CodeBlockHeader: ({
|
|
302
|
+
children,
|
|
303
|
+
className,
|
|
304
|
+
...props
|
|
305
|
+
}: CodeBlockHeaderProps) => _$react_jsx_runtime0.JSX.Element;
|
|
306
|
+
/**
|
|
307
|
+
* Horizontal group for organizing items within the header (e.g., logo + label).
|
|
308
|
+
*/
|
|
309
|
+
declare const CodeBlockGroup: ({
|
|
310
|
+
children,
|
|
311
|
+
className,
|
|
312
|
+
...props
|
|
313
|
+
}: CodeBlockGroupProps) => _$react_jsx_runtime0.JSX.Element;
|
|
314
|
+
/**
|
|
315
|
+
* Content area of the code block.
|
|
316
|
+
* Wraps the `<pre>` or `<div>` containing the code.
|
|
317
|
+
*/
|
|
318
|
+
declare const CodeBlockContent: ({
|
|
319
|
+
className,
|
|
320
|
+
children,
|
|
321
|
+
shouldTruncate,
|
|
322
|
+
...props
|
|
323
|
+
}: CodeBlockContentProps) => _$react_jsx_runtime0.JSX.Element;
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/client/components/primitives/button.d.ts
|
|
326
|
+
interface ButtonProps extends RAC.ButtonProps {}
|
|
327
|
+
declare const Button: ({
|
|
328
|
+
...props
|
|
329
|
+
}: ButtonProps) => _$react_jsx_runtime0.JSX.Element;
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/client/components/primitives/popover.d.ts
|
|
332
|
+
interface PopoverProps extends Omit<PopoverProps$1, 'children'> {
|
|
333
|
+
children: React.ReactNode;
|
|
334
|
+
className?: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* A reusable Popover primitive with premium glassmorphism styling and smooth animations.
|
|
338
|
+
*/
|
|
339
|
+
declare const Popover: ({
|
|
340
|
+
children,
|
|
341
|
+
className,
|
|
342
|
+
...props
|
|
343
|
+
}: PopoverProps) => _$react_jsx_runtime0.JSX.Element;
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region src/client/components/primitives/tooltip.d.ts
|
|
346
|
+
interface TooltipProps extends Omit<RAC.TooltipProps, 'children'> {
|
|
347
|
+
/** The content to show inside the tooltip */
|
|
348
|
+
content: ReactNode;
|
|
349
|
+
/** The trigger element (usually a button or link) */
|
|
350
|
+
children: React.ReactElement;
|
|
351
|
+
/** Delay in milliseconds before showing the tooltip */
|
|
352
|
+
delay?: number;
|
|
353
|
+
/** Delay in milliseconds before hiding the tooltip */
|
|
354
|
+
closeDelay?: number;
|
|
355
|
+
}
|
|
356
|
+
interface TooltipContentProps extends RAC.TooltipProps {}
|
|
357
|
+
declare const Tooltip: {
|
|
358
|
+
({
|
|
359
|
+
content,
|
|
360
|
+
children,
|
|
361
|
+
delay,
|
|
362
|
+
closeDelay,
|
|
363
|
+
...props
|
|
364
|
+
}: TooltipProps): _$react_jsx_runtime0.JSX.Element;
|
|
365
|
+
Root: /*elided*/any;
|
|
366
|
+
Content: ({
|
|
367
|
+
className,
|
|
368
|
+
children,
|
|
369
|
+
...props
|
|
370
|
+
}: TooltipContentProps) => _$react_jsx_runtime0.JSX.Element;
|
|
371
|
+
};
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region src/client/components/primitives/link.d.ts
|
|
374
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
375
|
+
/** Should prefetch the page on hover? Default 'hover' */
|
|
376
|
+
prefetch?: 'hover' | 'none';
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* A primitive Link component that wraps a standard anchor tag
|
|
380
|
+
* and adds framework-specific logic for path localization and preloading.
|
|
381
|
+
*/
|
|
382
|
+
declare const Link: (props: LinkProps) => _$react_jsx_runtime0.JSX.Element;
|
|
383
|
+
/**
|
|
384
|
+
* Props for the NavLink component, extending standard Link props.
|
|
385
|
+
*/
|
|
386
|
+
interface NavLinkProps extends Omit<LinkProps, 'className' | 'children'> {
|
|
387
|
+
/**
|
|
388
|
+
* When true, the active state will only be applied if the paths match exactly.
|
|
389
|
+
* Default is false.
|
|
390
|
+
*/
|
|
391
|
+
end?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Provides access to the active state for conditional children rendering.
|
|
394
|
+
*/
|
|
395
|
+
children?: React.ReactNode | ((props: {
|
|
396
|
+
isActive: boolean;
|
|
397
|
+
}) => React.ReactNode);
|
|
398
|
+
/**
|
|
399
|
+
* Provides access to the active state for conditional styling.
|
|
400
|
+
*/
|
|
401
|
+
className?: string | ((props: {
|
|
402
|
+
isActive: boolean;
|
|
403
|
+
}) => string);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* A primitive NavLink component that provides active state detection.
|
|
407
|
+
*/
|
|
408
|
+
declare const NavLink: (props: NavLinkProps) => _$react_jsx_runtime0.JSX.Element;
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region src/client/components/primitives/error-boundary.d.ts
|
|
411
|
+
interface FallbackProps {
|
|
412
|
+
error: Error;
|
|
413
|
+
resetErrorBoundary: () => void;
|
|
414
|
+
}
|
|
415
|
+
interface ErrorBoundaryProps {
|
|
416
|
+
children?: ReactNode;
|
|
417
|
+
fallback?: ReactNode;
|
|
418
|
+
FallbackComponent?: ComponentType<FallbackProps>;
|
|
419
|
+
onError?: (error: Error, info: ErrorInfo) => void;
|
|
420
|
+
onReset?: () => void;
|
|
421
|
+
}
|
|
422
|
+
interface ErrorBoundaryState {
|
|
423
|
+
hasError: boolean;
|
|
424
|
+
error: Error | null;
|
|
425
|
+
}
|
|
426
|
+
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
427
|
+
state: ErrorBoundaryState;
|
|
428
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
429
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
430
|
+
resetErrorBoundary: () => void;
|
|
431
|
+
render(): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
432
|
+
}
|
|
433
|
+
interface ErrorBoundaryFallbackProps {
|
|
434
|
+
error: Error;
|
|
435
|
+
resetErrorBoundary: () => void;
|
|
436
|
+
}
|
|
437
|
+
declare function ErrorBoundaryFallback({
|
|
438
|
+
error,
|
|
439
|
+
resetErrorBoundary
|
|
440
|
+
}: ErrorBoundaryFallbackProps): _$react_jsx_runtime0.JSX.Element;
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/client/components/primitives/heading.d.ts
|
|
443
|
+
interface HeadingProps extends React$2.HTMLAttributes<HTMLHeadingElement> {
|
|
444
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
445
|
+
id?: string;
|
|
446
|
+
/** Whether to show the anchor icon/link. Defaults to true if id is provided. */
|
|
447
|
+
showAnchor?: boolean;
|
|
448
|
+
/** Position of the anchor link relative to children. Defaults to 'wrap'. */
|
|
449
|
+
anchorPosition?: 'wrap' | 'after' | 'before';
|
|
450
|
+
/** Custom icon to display for the anchor. */
|
|
451
|
+
anchorIcon?: React$2.ReactNode;
|
|
452
|
+
/** Custom classes for the anchor link wrapper. */
|
|
453
|
+
anchorClassName?: string;
|
|
454
|
+
}
|
|
455
|
+
declare const Heading: React$2.ForwardRefExoticComponent<HeadingProps & React$2.RefAttributes<HTMLHeadingElement>>;
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/client/components/primitives/image.d.ts
|
|
458
|
+
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
459
|
+
theme?: 'light' | 'dark';
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* A responsive image component that automatically supports dark and light theme variations
|
|
463
|
+
* via the `theme` prop.
|
|
464
|
+
*/
|
|
465
|
+
declare function Image({
|
|
466
|
+
theme,
|
|
467
|
+
className,
|
|
468
|
+
...props
|
|
469
|
+
}: ImageProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/client/components/primitives/menu.d.ts
|
|
472
|
+
/**
|
|
473
|
+
* MenuTrigger wraps a trigger (usually a Button) and a Menu.
|
|
474
|
+
*/
|
|
475
|
+
interface MenuTriggerProps extends RAC.MenuTriggerProps {
|
|
476
|
+
placement?: PopoverProps['placement'];
|
|
477
|
+
className?: string;
|
|
478
|
+
}
|
|
479
|
+
declare function MenuTrigger({
|
|
480
|
+
placement,
|
|
481
|
+
className,
|
|
482
|
+
...props
|
|
483
|
+
}: MenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
484
|
+
/**
|
|
485
|
+
* SubmenuTrigger for nested menus.
|
|
486
|
+
*/
|
|
487
|
+
interface SubmenuTriggerProps extends RAC.SubmenuTriggerProps {
|
|
488
|
+
className?: string;
|
|
489
|
+
}
|
|
490
|
+
declare function SubmenuTrigger({
|
|
491
|
+
className,
|
|
492
|
+
...props
|
|
493
|
+
}: SubmenuTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
494
|
+
/**
|
|
495
|
+
* The Menu container.
|
|
496
|
+
*/
|
|
497
|
+
declare function Menu<T extends object>(props: RAC.MenuProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
498
|
+
declare namespace Menu {
|
|
499
|
+
var Root: typeof Menu;
|
|
500
|
+
var Item: typeof MenuItem;
|
|
501
|
+
var Trigger: typeof MenuTrigger;
|
|
502
|
+
var SubTrigger: typeof SubmenuTrigger;
|
|
503
|
+
var Section: typeof MenuSection;
|
|
504
|
+
var Separator: typeof MenuSeparator;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* MenuItem with support for selection states and submenus.
|
|
508
|
+
*/
|
|
509
|
+
declare function MenuItem(props: RAC.MenuItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
510
|
+
/**
|
|
511
|
+
* MenuSection for grouping items with an optional header.
|
|
512
|
+
*/
|
|
513
|
+
interface MenuSectionProps<T> extends RAC.MenuSectionProps<T> {
|
|
514
|
+
title?: string;
|
|
515
|
+
}
|
|
516
|
+
declare function MenuSection<T extends object>({
|
|
517
|
+
title,
|
|
518
|
+
...props
|
|
519
|
+
}: MenuSectionProps<T>): _$react_jsx_runtime0.JSX.Element;
|
|
520
|
+
/**
|
|
521
|
+
* MenuSeparator for visual division.
|
|
522
|
+
*/
|
|
523
|
+
declare function MenuSeparator(props: RAC.SeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/client/components/primitives/page-nav.d.ts
|
|
526
|
+
interface PageNavProps extends ComponentBase {
|
|
527
|
+
to: string;
|
|
528
|
+
direction: 'prev' | 'next';
|
|
529
|
+
}
|
|
530
|
+
declare const PageNav: {
|
|
531
|
+
({
|
|
532
|
+
children,
|
|
533
|
+
className
|
|
534
|
+
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
535
|
+
Root: /*elided*/any;
|
|
536
|
+
Link: ({
|
|
537
|
+
children,
|
|
538
|
+
to,
|
|
539
|
+
direction,
|
|
540
|
+
className
|
|
541
|
+
}: PageNavProps) => _$react_jsx_runtime0.JSX.Element;
|
|
542
|
+
Title: ({
|
|
543
|
+
children,
|
|
544
|
+
className
|
|
545
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
546
|
+
Description: ({
|
|
547
|
+
children,
|
|
548
|
+
className
|
|
549
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
550
|
+
Icon: ({
|
|
551
|
+
children
|
|
552
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
553
|
+
};
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region src/client/components/primitives/search-dialog.d.ts
|
|
556
|
+
interface SearchDialogItemProps extends Omit<RAC.ListBoxItemProps, 'children'> {
|
|
557
|
+
className?: string;
|
|
558
|
+
children: React.ReactNode;
|
|
559
|
+
}
|
|
560
|
+
interface SearchDialogItemIconProps {
|
|
561
|
+
isHeading?: boolean;
|
|
562
|
+
className?: string;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Pure, unstyled SearchDialog Overlay (maps to RAC.ModalOverlay)
|
|
566
|
+
*/
|
|
567
|
+
declare const SearchDialog: {
|
|
568
|
+
({
|
|
569
|
+
className,
|
|
570
|
+
...props
|
|
571
|
+
}: RAC.ModalOverlayProps): _$react_jsx_runtime0.JSX.Element;
|
|
572
|
+
Root: /*elided*/any;
|
|
573
|
+
Overlay: /*elided*/any;
|
|
574
|
+
Content: ({
|
|
575
|
+
className,
|
|
576
|
+
...props
|
|
577
|
+
}: RAC.ModalOverlayProps) => _$react_jsx_runtime0.JSX.Element;
|
|
578
|
+
Dialog: ({
|
|
579
|
+
className,
|
|
580
|
+
...props
|
|
581
|
+
}: RAC.DialogProps) => _$react_jsx_runtime0.JSX.Element;
|
|
582
|
+
Autocomplete: <T extends object>({
|
|
583
|
+
children,
|
|
584
|
+
className,
|
|
585
|
+
onSelectionChange,
|
|
586
|
+
...props
|
|
587
|
+
}: RAC.AutocompleteProps<T> & {
|
|
588
|
+
className?: string;
|
|
589
|
+
onSelectionChange?: (key: RAC.Key) => void;
|
|
590
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
591
|
+
List: <T extends object>({
|
|
592
|
+
children,
|
|
593
|
+
className,
|
|
594
|
+
...props
|
|
595
|
+
}: RAC.ListBoxProps<T> & {
|
|
596
|
+
className?: string;
|
|
597
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
598
|
+
Input: (({
|
|
599
|
+
className,
|
|
600
|
+
...props
|
|
601
|
+
}: RAC.SearchFieldProps) => _$react_jsx_runtime0.JSX.Element) & {
|
|
602
|
+
SearchInput: ({
|
|
603
|
+
className,
|
|
604
|
+
...props
|
|
605
|
+
}: RAC.InputProps) => _$react_jsx_runtime0.JSX.Element;
|
|
606
|
+
Button: ({
|
|
607
|
+
className,
|
|
608
|
+
...props
|
|
609
|
+
}: RAC.ButtonProps) => _$react_jsx_runtime0.JSX.Element;
|
|
610
|
+
};
|
|
611
|
+
Item: (({
|
|
612
|
+
children,
|
|
613
|
+
className,
|
|
614
|
+
...props
|
|
615
|
+
}: SearchDialogItemProps) => _$react_jsx_runtime0.JSX.Element) & {
|
|
616
|
+
Icon: ({
|
|
617
|
+
isHeading,
|
|
618
|
+
className
|
|
619
|
+
}: SearchDialogItemIconProps) => _$react_jsx_runtime0.JSX.Element;
|
|
620
|
+
Title: ({
|
|
621
|
+
children,
|
|
622
|
+
className
|
|
623
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
624
|
+
Bio: ({
|
|
625
|
+
children,
|
|
626
|
+
className
|
|
627
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region src/client/components/primitives/skeleton.d.ts
|
|
632
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
633
|
+
variant?: 'rect' | 'circle';
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* A flexible skeleton component that mimics the shape of content
|
|
637
|
+
* while it is loading. Features a smooth pulse animation.
|
|
638
|
+
*/
|
|
639
|
+
declare function Skeleton({
|
|
640
|
+
className,
|
|
641
|
+
variant,
|
|
642
|
+
...props
|
|
643
|
+
}: SkeletonProps): _$react_jsx_runtime0.JSX.Element;
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region src/client/components/primitives/breadcrumbs.d.ts
|
|
646
|
+
declare const Breadcrumbs: {
|
|
647
|
+
({
|
|
648
|
+
children,
|
|
649
|
+
className,
|
|
650
|
+
...props
|
|
651
|
+
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
652
|
+
Root: /*elided*/any;
|
|
653
|
+
Item: ({
|
|
654
|
+
children,
|
|
655
|
+
className,
|
|
656
|
+
...props
|
|
657
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
658
|
+
Link: ({
|
|
659
|
+
children,
|
|
660
|
+
href,
|
|
661
|
+
className,
|
|
662
|
+
...props
|
|
663
|
+
}: LinkProps$1 & {
|
|
664
|
+
className?: string;
|
|
665
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
666
|
+
Separator: ({
|
|
667
|
+
className
|
|
668
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
669
|
+
};
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region src/client/components/primitives/navbar.d.ts
|
|
672
|
+
interface NavbarLinkProps extends Omit<ComponentBase, 'children'> {
|
|
673
|
+
label: ReactNode;
|
|
674
|
+
href: string;
|
|
675
|
+
to?: 'internal' | 'external';
|
|
676
|
+
}
|
|
677
|
+
interface NavbarLogoProps extends Omit<ComponentBase, 'children'> {
|
|
678
|
+
src: string;
|
|
679
|
+
alt: string;
|
|
680
|
+
width?: number;
|
|
681
|
+
height?: number;
|
|
682
|
+
href?: string;
|
|
683
|
+
}
|
|
684
|
+
interface NavbarSearchTriggerProps extends ComponentBase {
|
|
685
|
+
onPress: () => void;
|
|
686
|
+
}
|
|
687
|
+
interface NavbarThemeProps {
|
|
688
|
+
className?: string;
|
|
689
|
+
theme: 'dark' | 'light';
|
|
690
|
+
onThemeChange: (isSelected: boolean) => void;
|
|
691
|
+
}
|
|
692
|
+
interface NavbarSocialsProps extends ComponentBase {
|
|
693
|
+
icon: string;
|
|
694
|
+
link: string;
|
|
695
|
+
}
|
|
696
|
+
declare const Navbar: {
|
|
697
|
+
({
|
|
698
|
+
children,
|
|
699
|
+
className,
|
|
700
|
+
...props
|
|
701
|
+
}: ComponentBase): _$react_jsx_runtime0.JSX.Element;
|
|
702
|
+
Root: /*elided*/any;
|
|
703
|
+
Left: ({
|
|
704
|
+
children,
|
|
705
|
+
className
|
|
706
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
707
|
+
Right: ({
|
|
708
|
+
children,
|
|
709
|
+
className
|
|
710
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
711
|
+
Center: ({
|
|
712
|
+
children,
|
|
713
|
+
className
|
|
714
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
715
|
+
Logo: ({
|
|
716
|
+
src,
|
|
717
|
+
alt,
|
|
718
|
+
width,
|
|
719
|
+
height,
|
|
720
|
+
className,
|
|
721
|
+
href
|
|
722
|
+
}: NavbarLogoProps) => _$react_jsx_runtime0.JSX.Element;
|
|
723
|
+
Title: ({
|
|
724
|
+
children,
|
|
725
|
+
className,
|
|
726
|
+
href
|
|
727
|
+
}: {
|
|
728
|
+
href?: string;
|
|
729
|
+
} & ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
730
|
+
Links: ({
|
|
731
|
+
children,
|
|
732
|
+
className
|
|
733
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
734
|
+
Link: ({
|
|
735
|
+
label,
|
|
736
|
+
href,
|
|
737
|
+
to,
|
|
738
|
+
className
|
|
739
|
+
}: NavbarLinkProps) => _$react_jsx_runtime0.JSX.Element;
|
|
740
|
+
Dropdown: ({
|
|
741
|
+
label,
|
|
742
|
+
className,
|
|
743
|
+
children
|
|
744
|
+
}: {
|
|
745
|
+
label: React.ReactNode;
|
|
746
|
+
className?: string;
|
|
747
|
+
children: React.ReactNode;
|
|
748
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
749
|
+
DropdownItem: ({
|
|
750
|
+
href,
|
|
751
|
+
label,
|
|
752
|
+
className
|
|
753
|
+
}: {
|
|
754
|
+
href: string;
|
|
755
|
+
label: string;
|
|
756
|
+
className?: string;
|
|
757
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
758
|
+
SearchTrigger: {
|
|
759
|
+
Desktop: ({
|
|
760
|
+
className,
|
|
761
|
+
onPress,
|
|
762
|
+
children
|
|
763
|
+
}: NavbarSearchTriggerProps) => _$react_jsx_runtime0.JSX.Element;
|
|
764
|
+
Mobile: ({
|
|
765
|
+
className,
|
|
766
|
+
onPress,
|
|
767
|
+
children
|
|
768
|
+
}: NavbarSearchTriggerProps) => _$react_jsx_runtime0.JSX.Element;
|
|
769
|
+
Kbd: ({
|
|
770
|
+
className
|
|
771
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
772
|
+
};
|
|
773
|
+
Theme: ({
|
|
774
|
+
className,
|
|
775
|
+
theme,
|
|
776
|
+
onThemeChange
|
|
777
|
+
}: NavbarThemeProps) => _$react_jsx_runtime0.JSX.Element;
|
|
778
|
+
Socials: ({
|
|
779
|
+
icon,
|
|
780
|
+
link,
|
|
781
|
+
className
|
|
782
|
+
}: NavbarSocialsProps) => _$react_jsx_runtime0.JSX.Element;
|
|
783
|
+
Split: ({
|
|
784
|
+
className
|
|
785
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
786
|
+
Content: ({
|
|
787
|
+
children,
|
|
788
|
+
className
|
|
789
|
+
}: ComponentBase) => _$react_jsx_runtime0.JSX.Element;
|
|
790
|
+
More: ({
|
|
791
|
+
onPress,
|
|
792
|
+
className
|
|
793
|
+
}: NavbarMoreProps) => _$react_jsx_runtime0.JSX.Element;
|
|
794
|
+
MobileMenu: ({
|
|
795
|
+
isOpen,
|
|
796
|
+
onClose,
|
|
797
|
+
children,
|
|
798
|
+
className
|
|
799
|
+
}: NavbarMobileMenuProps) => _$react_jsx_runtime0.JSX.Element;
|
|
800
|
+
MobileLink: ({
|
|
801
|
+
label,
|
|
802
|
+
href,
|
|
803
|
+
to,
|
|
804
|
+
onPress,
|
|
805
|
+
className
|
|
806
|
+
}: NavbarLinkProps & {
|
|
807
|
+
onPress?: () => void;
|
|
808
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
809
|
+
};
|
|
810
|
+
interface NavbarMoreProps extends ComponentBase {
|
|
811
|
+
onPress?: () => void;
|
|
812
|
+
}
|
|
813
|
+
interface NavbarMobileMenuProps extends ComponentBase {
|
|
814
|
+
isOpen: boolean;
|
|
815
|
+
onClose: () => void;
|
|
816
|
+
}
|
|
817
|
+
//#endregion
|
|
818
|
+
export { AnchorProvider, AnchorProviderProps, Breadcrumbs, Button, ButtonGroup, ButtonGroupProps, ButtonProps, CodeBlock, CodeBlockContent, CodeBlockContentProps, CodeBlockGroup, CodeBlockGroupProps, CodeBlockHeader, CodeBlockHeaderProps, DocsLayout, ErrorBoundary, ErrorBoundaryFallback, ErrorBoundaryFallbackProps, ErrorBoundaryProps, FallbackProps, Heading, HeadingProps, Image, ImageProps, Link, LinkProps, Menu, MenuSectionProps, MenuTriggerProps, NavLink, NavLinkProps, Navbar, NavbarLinkProps, NavbarLogoProps, NavbarMobileMenuProps, NavbarMoreProps, NavbarSearchTriggerProps, NavbarSocialsProps, NavbarThemeProps, OnThisPage, OnThisPageContentProps, OnThisPageIndicatorProps, OnThisPageItemProps, OnThisPageItems, OnThisPageLinkProps, OnThisPageTree, PageNav, PageNavProps, Popover, PopoverProps, ScrollProvider, ScrollProviderProps, SearchDialog, SearchDialogItemIconProps, SearchDialogItemProps, Sidebar, SidebarContent, SidebarGroup, SidebarHeader, SidebarItem, SidebarItemProps, SidebarItems, SidebarItemsProps, SidebarLink, SidebarLinkProps, SidebarMobile, SidebarRoot, SidebarSubGroup, Skeleton, SubmenuTriggerProps, TOCItemInfo, TOCItemType, TableOfContents, Tabs, TabsIndicatorProps, TabsItemProps, Tooltip, TooltipContentProps, TooltipProps, useActiveAnchor, useActiveAnchors, useItems };
|