fumadocs-ui 14.2.1 → 14.3.1

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.
Files changed (229) hide show
  1. package/dist/components/accordion.d.ts +4 -7
  2. package/dist/components/accordion.d.ts.map +1 -0
  3. package/dist/components/accordion.js +32 -104
  4. package/dist/components/api.d.ts +4 -13
  5. package/dist/components/api.d.ts.map +1 -0
  6. package/dist/components/api.js +3 -16
  7. package/dist/components/banner.d.ts +3 -5
  8. package/dist/components/banner.d.ts.map +1 -0
  9. package/dist/components/banner.js +53 -120
  10. package/dist/components/callout.d.ts +4 -7
  11. package/dist/components/callout.d.ts.map +1 -0
  12. package/dist/components/callout.js +13 -9
  13. package/dist/components/card.d.ts +5 -7
  14. package/dist/components/card.d.ts.map +1 -0
  15. package/dist/components/card.js +10 -10
  16. package/dist/components/codeblock.d.ts +6 -9
  17. package/dist/components/codeblock.d.ts.map +1 -0
  18. package/dist/components/codeblock.js +41 -15
  19. package/dist/components/dialog/search-algolia.d.ts +7 -11
  20. package/dist/components/dialog/search-algolia.d.ts.map +1 -0
  21. package/dist/components/dialog/search-algolia.js +19 -79
  22. package/dist/components/dialog/search-default.d.ts +6 -10
  23. package/dist/components/dialog/search-default.d.ts.map +1 -0
  24. package/dist/components/dialog/search-default.js +24 -73
  25. package/dist/components/dialog/search-orama.d.ts +7 -11
  26. package/dist/components/dialog/search-orama.d.ts.map +1 -0
  27. package/dist/components/dialog/search-orama.js +22 -79
  28. package/dist/components/dialog/search.d.ts +7 -9
  29. package/dist/components/dialog/search.d.ts.map +1 -0
  30. package/dist/components/dialog/search.js +98 -13
  31. package/dist/components/dialog/tag-list.d.ts +13 -0
  32. package/dist/components/dialog/tag-list.d.ts.map +1 -0
  33. package/dist/components/dialog/tag-list.js +20 -0
  34. package/dist/components/files.d.ts +7 -9
  35. package/dist/components/files.d.ts.map +1 -0
  36. package/dist/components/files.js +15 -63
  37. package/dist/components/heading.d.ts +4 -5
  38. package/dist/components/heading.d.ts.map +1 -0
  39. package/dist/components/heading.js +9 -9
  40. package/dist/components/image-zoom.d.ts +7 -8
  41. package/dist/components/image-zoom.d.ts.map +1 -0
  42. package/dist/components/image-zoom.js +16 -40
  43. package/dist/components/inline-toc.d.ts +4 -6
  44. package/dist/components/inline-toc.d.ts.map +1 -0
  45. package/dist/components/inline-toc.js +8 -46
  46. package/dist/components/layout/breadcrumb.d.ts +11 -0
  47. package/dist/components/layout/breadcrumb.d.ts.map +1 -0
  48. package/dist/components/layout/breadcrumb.js +20 -0
  49. package/dist/components/layout/language-toggle.d.ts +5 -7
  50. package/dist/components/layout/language-toggle.d.ts.map +1 -0
  51. package/dist/components/layout/language-toggle.js +24 -14
  52. package/dist/components/layout/nav.d.ts +28 -0
  53. package/dist/components/layout/nav.d.ts.map +1 -0
  54. package/dist/components/layout/nav.js +29 -0
  55. package/dist/components/layout/root-toggle.d.ts +5 -7
  56. package/dist/components/layout/root-toggle.d.ts.map +1 -0
  57. package/dist/components/layout/root-toggle.js +28 -13
  58. package/dist/components/layout/search-toggle.d.ts +4 -0
  59. package/dist/components/layout/search-toggle.d.ts.map +1 -0
  60. package/dist/components/layout/search-toggle.js +24 -0
  61. package/dist/components/layout/theme-toggle.d.ts +3 -0
  62. package/dist/components/layout/theme-toggle.d.ts.map +1 -0
  63. package/dist/components/layout/theme-toggle.js +21 -0
  64. package/dist/components/layout/toc-clerk.d.ts +6 -0
  65. package/dist/components/layout/toc-clerk.d.ts.map +1 -0
  66. package/dist/components/layout/toc-clerk.js +76 -0
  67. package/dist/components/layout/toc-popover.d.ts +8 -0
  68. package/dist/components/layout/toc-popover.d.ts.map +1 -0
  69. package/dist/components/layout/toc-popover.js +20 -0
  70. package/dist/components/layout/toc-thumb.d.ts +6 -0
  71. package/dist/components/layout/toc-thumb.d.ts.map +1 -0
  72. package/dist/components/layout/toc-thumb.js +53 -0
  73. package/dist/components/layout/toc.d.ts +19 -0
  74. package/dist/components/layout/toc.d.ts.map +1 -0
  75. package/dist/components/layout/toc.js +25 -0
  76. package/dist/components/registry.d.ts +3 -0
  77. package/dist/components/registry.d.ts.map +1 -0
  78. package/dist/components/registry.js +70 -0
  79. package/dist/components/steps.d.ts +4 -6
  80. package/dist/components/steps.d.ts.map +1 -0
  81. package/dist/components/steps.js +5 -16
  82. package/dist/components/tabs.d.ts +7 -21
  83. package/dist/components/tabs.d.ts.map +1 -0
  84. package/dist/components/tabs.js +61 -171
  85. package/dist/components/type-table.d.ts +5 -6
  86. package/dist/components/type-table.d.ts.map +1 -0
  87. package/dist/components/type-table.js +18 -59
  88. package/dist/components/ui/button.d.ts +5 -0
  89. package/dist/components/ui/button.d.ts.map +1 -0
  90. package/dist/components/ui/button.js +14 -0
  91. package/dist/components/ui/collapsible.d.ts +6 -0
  92. package/dist/components/ui/collapsible.d.ts.map +1 -0
  93. package/dist/components/ui/collapsible.js +12 -0
  94. package/dist/components/ui/navigation-menu.d.ts +11 -0
  95. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  96. package/dist/components/ui/navigation-menu.js +15 -0
  97. package/dist/components/ui/popover.d.ts +8 -0
  98. package/dist/components/ui/popover.d.ts.map +1 -0
  99. package/dist/components/ui/popover.js +11 -0
  100. package/dist/components/ui/scroll-area.d.ts +7 -0
  101. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  102. package/dist/components/ui/scroll-area.js +11 -0
  103. package/dist/components/ui/tabs.d.ts +8 -0
  104. package/dist/components/ui/tabs.d.ts.map +1 -0
  105. package/dist/components/ui/tabs.js +16 -0
  106. package/dist/{i18n-Db2HAPOu.d.ts → contexts/i18n.d.ts} +9 -5
  107. package/dist/contexts/i18n.d.ts.map +1 -0
  108. package/dist/contexts/i18n.js +23 -0
  109. package/dist/contexts/search.d.ts +50 -0
  110. package/dist/contexts/search.d.ts.map +1 -0
  111. package/dist/contexts/search.js +50 -0
  112. package/dist/contexts/sidebar.d.ts +18 -0
  113. package/dist/contexts/sidebar.d.ts.map +1 -0
  114. package/dist/contexts/sidebar.js +31 -0
  115. package/dist/contexts/tree.d.ts +13 -0
  116. package/dist/contexts/tree.d.ts.map +1 -0
  117. package/dist/contexts/tree.js +25 -0
  118. package/dist/i18n.d.ts +5 -6
  119. package/dist/i18n.d.ts.map +1 -0
  120. package/dist/i18n.js +31 -49
  121. package/dist/layouts/docs/navbar.d.ts +4 -0
  122. package/dist/layouts/docs/navbar.d.ts.map +1 -0
  123. package/dist/layouts/docs/navbar.js +22 -0
  124. package/dist/layouts/docs/sidebar.d.ts +40 -0
  125. package/dist/layouts/docs/sidebar.d.ts.map +1 -0
  126. package/dist/layouts/docs/sidebar.js +146 -0
  127. package/dist/layouts/docs.client.d.ts +14 -25
  128. package/dist/layouts/docs.client.d.ts.map +1 -0
  129. package/dist/layouts/docs.client.js +53 -195
  130. package/dist/layouts/docs.d.ts +34 -19
  131. package/dist/layouts/docs.d.ts.map +1 -0
  132. package/dist/layouts/docs.js +67 -202
  133. package/dist/layouts/home/menu.d.ts +6 -0
  134. package/dist/layouts/home/menu.d.ts.map +1 -0
  135. package/dist/layouts/home/menu.js +33 -0
  136. package/dist/layouts/home/navbar.d.ts +16 -0
  137. package/dist/layouts/home/navbar.d.ts.map +1 -0
  138. package/dist/layouts/home/navbar.js +48 -0
  139. package/dist/layouts/home.d.ts +5 -7
  140. package/dist/layouts/home.d.ts.map +1 -0
  141. package/dist/layouts/home.js +51 -59
  142. package/dist/layouts/links.d.ts +80 -0
  143. package/dist/layouts/links.d.ts.map +1 -0
  144. package/dist/layouts/links.js +14 -0
  145. package/dist/layouts/shared.d.ts +48 -2
  146. package/dist/layouts/shared.d.ts.map +1 -0
  147. package/dist/layouts/shared.js +27 -9
  148. package/dist/mdx.client.d.ts +3 -6
  149. package/dist/mdx.client.d.ts.map +1 -0
  150. package/dist/mdx.client.js +12 -19
  151. package/dist/mdx.d.ts +18 -20
  152. package/dist/mdx.d.ts.map +1 -0
  153. package/dist/mdx.js +47 -56
  154. package/dist/og.d.ts +6 -7
  155. package/dist/og.d.ts.map +1 -0
  156. package/dist/og.js +43 -102
  157. package/dist/page.client.d.ts +8 -41
  158. package/dist/page.client.d.ts.map +1 -0
  159. package/dist/page.client.js +71 -261
  160. package/dist/page.d.ts +28 -30
  161. package/dist/page.d.ts.map +1 -0
  162. package/dist/page.js +80 -168
  163. package/dist/provider.d.ts +12 -72
  164. package/dist/provider.d.ts.map +1 -0
  165. package/dist/provider.js +19 -55
  166. package/dist/style.css +1 -1
  167. package/dist/tailwind-plugin.d.ts +9 -20
  168. package/dist/tailwind-plugin.d.ts.map +1 -0
  169. package/dist/tailwind-plugin.js +191 -699
  170. package/dist/theme/animations.d.ts +170 -0
  171. package/dist/theme/animations.d.ts.map +1 -0
  172. package/dist/theme/animations.js +95 -0
  173. package/dist/theme/colors.d.ts +11 -0
  174. package/dist/theme/colors.d.ts.map +1 -0
  175. package/dist/theme/colors.js +327 -0
  176. package/dist/theme/typography.d.ts +70 -0
  177. package/dist/theme/typography.d.ts.map +1 -0
  178. package/dist/theme/typography.js +71 -0
  179. package/dist/utils/cn.d.ts +2 -0
  180. package/dist/utils/cn.d.ts.map +1 -0
  181. package/dist/utils/cn.js +1 -0
  182. package/dist/utils/get-sidebar-tabs.d.ts +7 -0
  183. package/dist/utils/get-sidebar-tabs.d.ts.map +1 -0
  184. package/dist/utils/get-sidebar-tabs.js +20 -0
  185. package/dist/utils/is-active.d.ts +2 -0
  186. package/dist/utils/is-active.d.ts.map +1 -0
  187. package/dist/utils/is-active.js +3 -0
  188. package/dist/utils/use-copy-button.d.ts +3 -0
  189. package/dist/utils/use-copy-button.d.ts.map +1 -0
  190. package/dist/utils/use-copy-button.js +25 -0
  191. package/package.json +9 -9
  192. package/dist/chunk-27HFSL7N.js +0 -53
  193. package/dist/chunk-2FLZOPQN.js +0 -54
  194. package/dist/chunk-2KMKNVSN.js +0 -29
  195. package/dist/chunk-AFMXKA2S.js +0 -125
  196. package/dist/chunk-CDPVENXR.js +0 -8
  197. package/dist/chunk-CLF6ZVYS.js +0 -259
  198. package/dist/chunk-DGKCMOIC.js +0 -56
  199. package/dist/chunk-DN6Z5VW6.js +0 -61
  200. package/dist/chunk-E3VO2QQT.js +0 -29
  201. package/dist/chunk-EFMHXXHW.js +0 -24
  202. package/dist/chunk-F534DZID.js +0 -43
  203. package/dist/chunk-GHOAONNQ.js +0 -48
  204. package/dist/chunk-IL64LMKR.js +0 -82
  205. package/dist/chunk-ILBYBJ5C.js +0 -38
  206. package/dist/chunk-IVBHRX3O.js +0 -31
  207. package/dist/chunk-J6XGK6ZG.js +0 -212
  208. package/dist/chunk-KZTWSBYY.js +0 -68
  209. package/dist/chunk-MCX7E6ZW.js +0 -57
  210. package/dist/chunk-MLKGABMK.js +0 -9
  211. package/dist/chunk-QKOA6KEZ.js +0 -22
  212. package/dist/chunk-TK3TM3MR.js +0 -6
  213. package/dist/chunk-TQJ6YPJ3.js +0 -31
  214. package/dist/chunk-UUGCW3UP.js +0 -84
  215. package/dist/chunk-VPJMNIJX.js +0 -542
  216. package/dist/chunk-W36BQGMB.js +0 -69
  217. package/dist/chunk-YL3MZH7N.js +0 -66
  218. package/dist/chunk-ZBOI25UW.js +0 -139
  219. package/dist/components/api.client.d.ts +0 -5
  220. package/dist/components/api.client.js +0 -8
  221. package/dist/dynamic-sidebar-SYEETGZL.js +0 -129
  222. package/dist/edit-on-github-FIYOWWPQ.js +0 -49
  223. package/dist/layouts/home.client.d.ts +0 -11
  224. package/dist/layouts/home.client.js +0 -274
  225. package/dist/shared-SScCiV7b.d.ts +0 -152
  226. package/dist/sidebar-CQ4HmzQl.d.ts +0 -50
  227. package/dist/tag-list-BsEgfE3x.d.ts +0 -6
  228. package/dist/toc-clerk-SKE4LBT7.js +0 -158
  229. package/dist/tree-06ley65N.d.ts +0 -21
@@ -0,0 +1,80 @@
1
+ import { type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react';
2
+ interface BaseItem {
3
+ /**
4
+ * Restrict where the item is displayed
5
+ *
6
+ * @defaultValue 'all'
7
+ */
8
+ on?: 'menu' | 'nav' | 'all';
9
+ }
10
+ export interface BaseLinkType extends BaseItem {
11
+ url: string;
12
+ /**
13
+ * When the item is marked as active
14
+ *
15
+ * @defaultValue 'url'
16
+ */
17
+ active?: 'url' | 'nested-url' | 'none';
18
+ external?: boolean;
19
+ }
20
+ export interface MainItemType extends BaseLinkType {
21
+ type?: 'main';
22
+ icon?: ReactNode;
23
+ text: ReactNode;
24
+ description?: ReactNode;
25
+ }
26
+ export interface IconItemType extends BaseLinkType {
27
+ type: 'icon';
28
+ /**
29
+ * `aria-label` of icon button
30
+ */
31
+ label?: string;
32
+ icon: ReactNode;
33
+ text: ReactNode;
34
+ /**
35
+ * @defaultValue true
36
+ */
37
+ secondary?: boolean;
38
+ }
39
+ interface ButtonItem extends BaseLinkType {
40
+ type: 'button';
41
+ icon?: ReactNode;
42
+ text: ReactNode;
43
+ /**
44
+ * @defaultValue false
45
+ */
46
+ secondary?: boolean;
47
+ }
48
+ export interface MenuItemType extends BaseItem {
49
+ type: 'menu';
50
+ icon?: ReactNode;
51
+ text: ReactNode;
52
+ url?: string;
53
+ items: ((MainItemType & {
54
+ /**
55
+ * Options when displayed on navigation menu
56
+ */
57
+ menu?: HTMLAttributes<HTMLElement> & {
58
+ banner?: ReactNode;
59
+ footer?: ReactNode;
60
+ };
61
+ }) | CustomItem)[];
62
+ /**
63
+ * @defaultValue false
64
+ */
65
+ secondary?: boolean;
66
+ }
67
+ interface CustomItem extends BaseItem {
68
+ type: 'custom';
69
+ /**
70
+ * @defaultValue false
71
+ */
72
+ secondary?: boolean;
73
+ children: ReactNode;
74
+ }
75
+ export type LinkItemType = MainItemType | IconItemType | ButtonItem | MenuItemType | CustomItem;
76
+ export declare const BaseLinkItem: import("react").ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
77
+ item: BaseLinkType;
78
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
79
+ export {};
80
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/layouts/links.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,UAAU,QAAQ;IAChB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC7B;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,YAAY,GAAG,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,UAAW,SAAQ,YAAY;IACvC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CACH,CAAC,YAAY,GAAG;QACd;;WAEG;QACH,IAAI,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG;YACnC,MAAM,CAAC,EAAE,SAAS,CAAC;YACnB,MAAM,CAAC,EAAE,SAAS,CAAC;SACpB,CAAC;KACH,CAAC,GACF,UAAU,CACb,EAAE,CAAC;IAEJ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,UAAW,SAAQ,QAAQ;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,UAAU,CAAC;AAEf,eAAO,MAAM,YAAY;UAEyC,YAAY;qDAmB5E,CAAC"}
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import Link from 'fumadocs-core/link';
4
+ import { usePathname } from 'next/navigation';
5
+ import { forwardRef, } from 'react';
6
+ import { isActive } from '../utils/is-active';
7
+ export const BaseLinkItem = forwardRef(({ item, ...props }, ref) => {
8
+ const pathname = usePathname();
9
+ const activeType = item.active ?? 'url';
10
+ const active = activeType !== 'none' &&
11
+ isActive(item.url, pathname, activeType === 'nested-url');
12
+ return (_jsx(Link, { ref: ref, href: item.url, external: item.external, ...props, "data-active": active, children: props.children }));
13
+ });
14
+ BaseLinkItem.displayName = 'BaseLinkItem';
@@ -1,2 +1,48 @@
1
- import 'react';
2
- export { B as BaseLayoutProps, S as SharedNavProps, g as getLinks, r as replaceOrDefault } from '../shared-SScCiV7b.js';
1
+ import type { ReactNode } from 'react';
2
+ import type { LinkItemType } from '../layouts/links';
3
+ import type { NavProviderProps, TitleProps } from '../components/layout/nav';
4
+ interface NavOptions extends SharedNavProps {
5
+ enabled: boolean;
6
+ component: ReactNode;
7
+ }
8
+ export interface SharedNavProps extends TitleProps, NavProviderProps {
9
+ /**
10
+ * Show/hide search toggle
11
+ *
12
+ * Note: Enable/disable search from root provider instead
13
+ */
14
+ enableSearch?: boolean;
15
+ children?: ReactNode;
16
+ }
17
+ export interface BaseLayoutProps {
18
+ /**
19
+ * Remove theme switcher component
20
+ */
21
+ disableThemeSwitch?: boolean;
22
+ /**
23
+ * Enable Language Switch
24
+ *
25
+ * @defaultValue false
26
+ */
27
+ i18n?: boolean;
28
+ /**
29
+ * GitHub url
30
+ */
31
+ githubUrl?: string;
32
+ links?: LinkItemType[];
33
+ /**
34
+ * Replace or disable navbar
35
+ */
36
+ nav?: Partial<NavOptions>;
37
+ children?: ReactNode;
38
+ }
39
+ /**
40
+ * Get Links Items with shortcuts
41
+ */
42
+ export declare function getLinks(links?: LinkItemType[], githubUrl?: string): LinkItemType[];
43
+ export declare function replaceOrDefault(obj: {
44
+ enabled?: boolean;
45
+ component?: ReactNode;
46
+ } | undefined, def: ReactNode, customComponentProps?: object, disabled?: ReactNode): ReactNode;
47
+ export {};
48
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/layouts/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG5E,UAAU,UAAW,SAAQ,cAAc;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU,EAAE,gBAAgB;IAClE;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,KAAK,CAAC,EAAE,YAAY,EAAE,EACtB,SAAS,CAAC,EAAE,MAAM,GACjB,YAAY,EAAE,CAoBhB;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EACC;IACE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GACD,SAAS,EACb,GAAG,EAAE,SAAS,EACd,oBAAoB,CAAC,EAAE,MAAM,EAC7B,QAAQ,CAAC,EAAE,SAAS,GACnB,SAAS,CAMX"}
@@ -1,9 +1,27 @@
1
- import {
2
- getLinks,
3
- replaceOrDefault
4
- } from "../chunk-E3VO2QQT.js";
5
- import "../chunk-MLKGABMK.js";
6
- export {
7
- getLinks,
8
- replaceOrDefault
9
- };
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Slot } from '@radix-ui/react-slot';
3
+ /**
4
+ * Get Links Items with shortcuts
5
+ */
6
+ export function getLinks(links, githubUrl) {
7
+ let result = links ?? [];
8
+ if (githubUrl)
9
+ result = [
10
+ ...result,
11
+ {
12
+ type: 'icon',
13
+ url: githubUrl,
14
+ text: 'Github',
15
+ icon: (_jsx("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", children: _jsx("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) })),
16
+ external: true,
17
+ },
18
+ ];
19
+ return result;
20
+ }
21
+ export function replaceOrDefault(obj, def, customComponentProps, disabled) {
22
+ if (obj?.enabled === false)
23
+ return disabled;
24
+ if (obj?.component !== undefined)
25
+ return _jsx(Slot, { ...customComponentProps, children: obj.component });
26
+ return def;
27
+ }
@@ -1,6 +1,4 @@
1
- import { CodeBlockProps } from './components/codeblock.js';
2
- import 'react';
3
-
1
+ import * as Base from './components/codeblock';
4
2
  /**
5
3
  * You are NOT supposed to use this component directly.
6
4
  *
@@ -8,6 +6,5 @@ import 'react';
8
6
  *
9
7
  * @internal
10
8
  */
11
- declare function Pre(props: CodeBlockProps): React.ReactElement;
12
-
13
- export { Pre };
9
+ export declare function Pre(props: Base.CodeBlockProps): React.ReactElement;
10
+ //# sourceMappingURL=mdx.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.client.d.ts","sourceRoot":"","sources":["../src/mdx.client.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAMlE"}
@@ -1,20 +1,13 @@
1
- "use client";
2
- import {
3
- CodeBlock,
4
- Pre
5
- } from "./chunk-ZBOI25UW.js";
6
- import "./chunk-2KMKNVSN.js";
7
- import "./chunk-QKOA6KEZ.js";
8
- import "./chunk-2FLZOPQN.js";
9
- import "./chunk-VPJMNIJX.js";
10
- import "./chunk-TK3TM3MR.js";
11
- import "./chunk-MLKGABMK.js";
12
-
13
- // src/mdx.client.tsx
14
- import { jsx } from "react/jsx-runtime";
15
- function Pre2(props) {
16
- return /* @__PURE__ */ jsx(CodeBlock, { ...props, children: /* @__PURE__ */ jsx(Pre, { children: props.children }) });
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as Base from './components/codeblock';
4
+ /**
5
+ * You are NOT supposed to use this component directly.
6
+ *
7
+ * This should be referenced in the output generated by the Rehype Code plugin.
8
+ *
9
+ * @internal
10
+ */
11
+ export function Pre(props) {
12
+ return (_jsx(Base.CodeBlock, { ...props, children: _jsx(Base.Pre, { children: props.children }) }));
17
13
  }
18
- export {
19
- Pre2 as Pre
20
- };
package/dist/mdx.d.ts CHANGED
@@ -1,28 +1,25 @@
1
- import * as react from 'react';
2
- import { FC, HTMLAttributes, AnchorHTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { Card, Cards } from './components/card.js';
5
-
6
- declare function Image(props: ImgHTMLAttributes<HTMLImageElement>): React.ReactElement;
7
- declare function Table(props: TableHTMLAttributes<HTMLTableElement>): React.ReactElement;
1
+ import type { AnchorHTMLAttributes, FC, HTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes } from 'react';
2
+ import { Card, Cards } from './components/card';
3
+ declare function Image(props: ImgHTMLAttributes<HTMLImageElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Table(props: TableHTMLAttributes<HTMLTableElement>): import("react/jsx-runtime").JSX.Element;
8
5
  declare const defaultMdxComponents: {
9
6
  pre: FC<HTMLAttributes<HTMLPreElement>>;
10
7
  Card: typeof Card;
11
8
  Cards: typeof Cards;
12
9
  a: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
13
10
  img: typeof Image;
14
- h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
15
- h2: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
16
- h3: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
17
- h4: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
18
- h5: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
19
- h6: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
11
+ h1: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
12
+ h2: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
13
+ h3: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
14
+ h4: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
15
+ h5: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
16
+ h6: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
20
17
  table: typeof Table;
21
- Callout: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "icon" | "type"> & {
22
- title?: react.ReactNode;
18
+ Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
19
+ title?: import("react").ReactNode;
23
20
  type?: "info" | "warn" | "error";
24
- icon?: react.ReactNode;
25
- } & react.RefAttributes<HTMLDivElement>>;
21
+ icon?: import("react").ReactNode;
22
+ } & import("react").RefAttributes<HTMLDivElement>>;
26
23
  };
27
24
  /**
28
25
  * **Server Component Only**
@@ -35,7 +32,8 @@ declare const defaultMdxComponents: {
35
32
  *
36
33
  * @param c - MDX Components
37
34
  * @returns MDX Components with re-created client components
35
+ * @deprecated no longer used
38
36
  */
39
- declare function createComponents<Components extends Record<string, FC<unknown>>>(c: Components): Components;
40
-
41
- export { createComponents, defaultMdxComponents as default };
37
+ export declare function createComponents<Components extends Record<string, FC<unknown>>>(c: Components): Components;
38
+ export { defaultMdxComponents as default };
39
+ //# sourceMappingURL=mdx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,EAAE,EACF,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMhD,iBAAS,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAQxD;AAED,iBAAS,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,2CAM1D;AAED,QAAA,MAAM,oBAAoB;SACZ,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;;;OAGnC,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;gBAE1C,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;gBAGlC,cAAc,CAAC,kBAAkB,CAAC;;;;;;;CAK/C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAC9C,CAAC,EAAE,UAAU,GAAG,UAAU,CAU3B;AAED,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,CAAC"}
package/dist/mdx.js CHANGED
@@ -1,62 +1,53 @@
1
- import { Pre } from "./mdx.client"
2
- import {
3
- Heading
4
- } from "./chunk-ILBYBJ5C.js";
5
- import {
6
- Callout
7
- } from "./chunk-F534DZID.js";
8
- import "./chunk-VPJMNIJX.js";
9
- import {
10
- Card,
11
- Cards
12
- } from "./chunk-GHOAONNQ.js";
13
- import {
14
- twMerge
15
- } from "./chunk-TK3TM3MR.js";
16
- import "./chunk-MLKGABMK.js";
17
-
18
- // src/mdx.tsx
19
- import Link from "fumadocs-core/link";
20
- import NextImage from "next/image";
21
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Link from 'fumadocs-core/link';
3
+ import NextImage from 'next/image';
4
+ import { Card, Cards } from './components/card';
5
+ import { Callout } from './components/callout';
6
+ import { Heading } from './components/heading';
7
+ import { cn } from './utils/cn';
8
+ import { Pre } from './mdx.client';
22
9
  function Image(props) {
23
- return /* @__PURE__ */ jsx(
24
- NextImage,
25
- {
26
- sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",
27
- ...props,
28
- className: twMerge("rounded-lg", props.className)
29
- }
30
- );
10
+ return (_jsx(NextImage, { sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px", ...props, className: cn('rounded-lg', props.className) }));
31
11
  }
32
12
  function Table(props) {
33
- return /* @__PURE__ */ jsx("div", { className: "relative overflow-auto", children: /* @__PURE__ */ jsx("table", { ...props }) });
13
+ return (_jsx("div", { className: "relative overflow-auto", children: _jsx("table", { ...props }) }));
34
14
  }
35
- var defaultMdxComponents = {
36
- pre: Pre,
37
- Card,
38
- Cards,
39
- a: Link,
40
- img: Image,
41
- h1: (props) => /* @__PURE__ */ jsx(Heading, { as: "h1", ...props }),
42
- h2: (props) => /* @__PURE__ */ jsx(Heading, { as: "h2", ...props }),
43
- h3: (props) => /* @__PURE__ */ jsx(Heading, { as: "h3", ...props }),
44
- h4: (props) => /* @__PURE__ */ jsx(Heading, { as: "h4", ...props }),
45
- h5: (props) => /* @__PURE__ */ jsx(Heading, { as: "h5", ...props }),
46
- h6: (props) => /* @__PURE__ */ jsx(Heading, { as: "h6", ...props }),
47
- table: Table,
48
- Callout
15
+ const defaultMdxComponents = {
16
+ pre: Pre,
17
+ Card,
18
+ Cards,
19
+ a: Link,
20
+ img: Image,
21
+ h1: (props) => (_jsx(Heading, { as: "h1", ...props })),
22
+ h2: (props) => (_jsx(Heading, { as: "h2", ...props })),
23
+ h3: (props) => (_jsx(Heading, { as: "h3", ...props })),
24
+ h4: (props) => (_jsx(Heading, { as: "h4", ...props })),
25
+ h5: (props) => (_jsx(Heading, { as: "h5", ...props })),
26
+ h6: (props) => (_jsx(Heading, { as: "h6", ...props })),
27
+ table: Table,
28
+ Callout,
49
29
  };
50
- function createComponents(c) {
51
- const mapped = Object.entries(c).map(([k, V]) => {
52
- return [
53
- k,
54
- Object.keys(V).length === 0 ? (props) => /* @__PURE__ */ jsx(V, { ...props }) : V
55
- ];
56
- });
57
- return Object.fromEntries(mapped);
30
+ /**
31
+ * **Server Component Only**
32
+ *
33
+ * Sometimes, if you directly pass a client component to MDX Components, it will throw an error
34
+ *
35
+ * To solve this, you can re-create the component in a server component like: `(props) => <Component {...props} />`
36
+ *
37
+ * This function does that for you
38
+ *
39
+ * @param c - MDX Components
40
+ * @returns MDX Components with re-created client components
41
+ * @deprecated no longer used
42
+ */
43
+ export function createComponents(c) {
44
+ const mapped = Object.entries(c).map(([k, V]) => {
45
+ // Client components are empty objects
46
+ return [
47
+ k,
48
+ Object.keys(V).length === 0 ? (props) => _jsx(V, { ...props }) : V,
49
+ ];
50
+ });
51
+ return Object.fromEntries(mapped);
58
52
  }
59
- export {
60
- createComponents,
61
- defaultMdxComponents as default
62
- };
53
+ export { defaultMdxComponents as default };
package/dist/og.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ImageResponse } from 'next/og';
2
- import { ReactElement, ReactNode } from 'react';
3
- import { ImageResponseOptions } from 'next/dist/compiled/@vercel/og/types';
4
-
2
+ import type { ReactElement, ReactNode } from 'react';
3
+ import type { ImageResponseOptions } from 'next/dist/compiled/@vercel/og/types';
5
4
  interface GenerateProps {
6
5
  title: ReactNode;
7
6
  description?: ReactNode;
@@ -10,7 +9,7 @@ interface GenerateProps {
10
9
  primaryTextColor?: string;
11
10
  site?: ReactNode;
12
11
  }
13
- declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
14
- declare function generate({ primaryColor, primaryTextColor, ...props }: GenerateProps): ReactElement;
15
-
16
- export { generate, generateOGImage };
12
+ export declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
13
+ export declare function generate({ primaryColor, primaryTextColor, ...props }: GenerateProps): ReactElement;
14
+ export {};
15
+ //# sourceMappingURL=og.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"og.d.ts","sourceRoot":"","sources":["../src/og.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,UAAU,aAAa;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,GAAG,oBAAoB,GAC5C,aAAa,CA0Bf;AAED,wBAAgB,QAAQ,CAAC,EACvB,YAAsC,EACtC,gBAAqC,EACrC,GAAG,KAAK,EACT,EAAE,aAAa,GAAG,YAAY,CAqD9B"}
package/dist/og.js CHANGED
@@ -1,104 +1,45 @@
1
- import "./chunk-MLKGABMK.js";
2
-
3
- // src/og.tsx
4
- import { ImageResponse } from "next/og";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
- function generateOGImage(options) {
7
- const {
8
- title,
9
- description,
10
- icon,
11
- site,
12
- primaryColor,
13
- primaryTextColor,
14
- ...rest
15
- } = options;
16
- return new ImageResponse(
17
- generate({
18
- title,
19
- description,
20
- icon,
21
- site,
22
- primaryTextColor,
23
- primaryColor
24
- }),
25
- {
26
- width: 1200,
27
- height: 630,
28
- ...rest
29
- }
30
- );
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ImageResponse } from 'next/og';
3
+ export function generateOGImage(options) {
4
+ const { title, description, icon, site, primaryColor, primaryTextColor, ...rest } = options;
5
+ return new ImageResponse(generate({
6
+ title,
7
+ description,
8
+ icon,
9
+ site,
10
+ primaryTextColor,
11
+ primaryColor,
12
+ }), {
13
+ width: 1200,
14
+ height: 630,
15
+ ...rest,
16
+ });
31
17
  }
32
- function generate({
33
- primaryColor = "rgba(255,150,255,0.3)",
34
- primaryTextColor = "rgb(255,150,255)",
35
- ...props
36
- }) {
37
- return /* @__PURE__ */ jsxs(
38
- "div",
39
- {
40
- style: {
41
- display: "flex",
42
- flexDirection: "column",
43
- width: "100%",
44
- height: "100%",
45
- color: "white",
46
- padding: "4rem",
47
- backgroundColor: "#0c0c0c",
48
- backgroundImage: `linear-gradient(to top right, ${primaryColor}, transparent)`
49
- },
50
- children: [
51
- /* @__PURE__ */ jsxs(
52
- "div",
53
- {
54
- style: {
55
- display: "flex",
56
- flexDirection: "row",
57
- alignItems: "center",
58
- gap: "16px",
59
- marginBottom: "12px",
60
- color: primaryTextColor
61
- },
62
- children: [
63
- props.icon,
64
- /* @__PURE__ */ jsx(
65
- "p",
66
- {
67
- style: {
68
- fontSize: "56px",
69
- fontWeight: 600
70
- },
71
- children: props.site
72
- }
73
- )
74
- ]
75
- }
76
- ),
77
- /* @__PURE__ */ jsx(
78
- "p",
79
- {
80
- style: {
81
- fontWeight: 800,
82
- fontSize: "82px"
83
- },
84
- children: props.title
85
- }
86
- ),
87
- /* @__PURE__ */ jsx(
88
- "p",
89
- {
90
- style: {
91
- fontSize: "52px",
92
- color: "rgba(240,240,240,0.8)"
93
- },
94
- children: props.description
95
- }
96
- )
97
- ]
98
- }
99
- );
18
+ export function generate({ primaryColor = 'rgba(255,150,255,0.3)', primaryTextColor = 'rgb(255,150,255)', ...props }) {
19
+ return (_jsxs("div", { style: {
20
+ display: 'flex',
21
+ flexDirection: 'column',
22
+ width: '100%',
23
+ height: '100%',
24
+ color: 'white',
25
+ padding: '4rem',
26
+ backgroundColor: '#0c0c0c',
27
+ backgroundImage: `linear-gradient(to top right, ${primaryColor}, transparent)`,
28
+ }, children: [_jsxs("div", { style: {
29
+ display: 'flex',
30
+ flexDirection: 'row',
31
+ alignItems: 'center',
32
+ gap: '16px',
33
+ marginBottom: '12px',
34
+ color: primaryTextColor,
35
+ }, children: [props.icon, _jsx("p", { style: {
36
+ fontSize: '56px',
37
+ fontWeight: 600,
38
+ }, children: props.site })] }), _jsx("p", { style: {
39
+ fontWeight: 800,
40
+ fontSize: '82px',
41
+ }, children: props.title }), _jsx("p", { style: {
42
+ fontSize: '52px',
43
+ color: 'rgba(240,240,240,0.8)',
44
+ }, children: props.description })] }));
100
45
  }
101
- export {
102
- generate,
103
- generateOGImage
104
- };
@@ -1,42 +1,10 @@
1
- import { TOCItemType } from 'fumadocs-core/server';
2
- import { ReactNode, ReactElement } from 'react';
3
- import { BreadcrumbOptions } from 'fumadocs-core/breadcrumb';
4
-
5
- interface TOCProps {
6
- /**
7
- * Custom content in TOC container, before the main TOC
8
- */
9
- header?: ReactNode;
10
- /**
11
- * Custom content in TOC container, after the main TOC
12
- */
13
- footer?: ReactNode;
14
- children: ReactNode;
15
- }
16
- declare function Toc({ header, footer, children }: TOCProps): ReactElement;
17
- declare function TocPopover({ items, ...props }: TOCProps & {
18
- items: TOCItemType[];
19
- className?: string;
20
- }): ReactElement;
21
- declare function TOCItems({ items, isMenu, }: {
22
- items: TOCItemType[];
23
- isMenu?: boolean;
24
- }): React.ReactElement;
25
-
26
- interface BreadcrumbProps extends Omit<BreadcrumbOptions, 'includePage'> {
27
- /**
28
- * Show the full path to the current page
29
- *
30
- * @defaultValue false
31
- */
32
- full?: boolean;
33
- }
34
- declare function Breadcrumb({ full, ...options }: BreadcrumbProps): React.ReactNode;
35
-
36
- declare function LastUpdate(props: {
1
+ import { type HTMLAttributes } from 'react';
2
+ export declare function PageContainer(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function PageHeader(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function LastUpdate(props: {
37
5
  date: Date;
38
- }): React.ReactElement;
39
- interface FooterProps {
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export interface FooterProps {
40
8
  /**
41
9
  * Items including information for the next and previous page
42
10
  */
@@ -51,6 +19,5 @@ interface FooterProps {
51
19
  };
52
20
  };
53
21
  }
54
- declare function Footer({ items }: FooterProps): React.ReactElement;
55
-
56
- export { Breadcrumb, type BreadcrumbProps, Footer, type FooterProps, LastUpdate, TOCItems, type TOCProps, Toc, TocPopover };
22
+ export declare function Footer({ items }: FooterProps): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=page.client.d.ts.map