@hanzo/docs-base-ui 16.5.0 → 16.7.5
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/README.md +3 -3
- package/css/aspen.css +39 -0
- package/css/black.css +39 -1
- package/css/catppuccin.css +49 -1
- package/css/dusk.css +47 -1
- package/css/emerald.css +39 -0
- package/css/generated/docs.css +490 -0
- package/css/generated/flux.css +429 -0
- package/css/generated/home.css +285 -0
- package/css/generated/notebook.css +526 -0
- package/css/generated/shared.css +1173 -0
- package/css/lib/base.css +214 -0
- package/css/lib/default-colors.css +51 -0
- package/css/lib/shiki.css +98 -0
- package/css/neutral.css +7 -1
- package/css/ocean.css +44 -1
- package/css/preset.css +9 -7
- package/css/purple.css +39 -1
- package/css/ruby.css +39 -0
- package/css/shadcn.css +36 -1
- package/css/solar.css +75 -1
- package/css/vitepress.css +65 -1
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/accordion.d.ts +2 -3
- package/dist/components/accordion.js +9 -13
- package/dist/components/banner.d.ts +3 -4
- package/dist/components/banner.js +5 -9
- package/dist/components/callout.d.ts +6 -7
- package/dist/components/callout.js +1 -4
- package/dist/components/card.d.ts +4 -5
- package/dist/components/card.js +2 -5
- package/dist/components/codeblock.d.ts +8 -9
- package/dist/components/codeblock.js +9 -13
- package/dist/components/codeblock.rsc.d.ts +21 -0
- package/dist/components/codeblock.rsc.js +22 -0
- package/dist/components/dialog/search-algolia.d.ts +7 -9
- package/dist/components/dialog/search-algolia.js +8 -12
- package/dist/components/dialog/search-default.d.ts +7 -9
- package/dist/components/dialog/search-default.js +8 -12
- package/dist/components/dialog/search-orama.d.ts +7 -9
- package/dist/components/dialog/search-orama.js +8 -12
- package/dist/components/dialog/search.d.ts +21 -21
- package/dist/components/dialog/search.js +137 -60
- package/dist/components/dynamic-codeblock.core.d.ts +35 -0
- package/dist/components/dynamic-codeblock.core.js +51 -0
- package/dist/components/dynamic-codeblock.d.ts +7 -29
- package/dist/components/dynamic-codeblock.js +11 -60
- package/dist/components/files.d.ts +1 -2
- package/dist/components/files.js +6 -10
- package/dist/components/github-info.d.ts +23 -10
- package/dist/components/github-info.js +34 -29
- package/dist/components/heading.d.ts +1 -2
- package/dist/components/heading.js +3 -6
- package/dist/components/image-zoom.d.ts +4 -5
- package/dist/components/image-zoom.js +2 -5
- package/dist/components/inline-toc.d.ts +3 -4
- package/dist/components/inline-toc.js +2 -6
- package/dist/components/sidebar/base.d.ts +29 -23
- package/dist/components/sidebar/base.js +16 -22
- package/dist/components/sidebar/link-item.d.ts +3 -4
- package/dist/components/sidebar/link-item.js +6 -3
- package/dist/components/sidebar/page-tree.d.ts +3 -4
- package/dist/components/sidebar/page-tree.js +56 -45
- package/dist/components/sidebar/tabs/dropdown.d.ts +6 -9
- package/dist/components/sidebar/tabs/dropdown.js +22 -29
- package/dist/components/sidebar/tabs/index.d.ts +3 -17
- package/dist/components/sidebar/tabs/index.js +0 -3
- package/dist/components/steps.d.ts +4 -5
- package/dist/components/steps.js +0 -3
- package/dist/components/tabs.d.ts +15 -11
- package/dist/components/tabs.js +15 -20
- package/dist/components/toc/clerk.d.ts +19 -1
- package/dist/components/toc/clerk.js +165 -10
- package/dist/components/toc/default.d.ts +19 -1
- package/dist/components/toc/default.js +45 -10
- package/dist/components/toc/index.d.ts +29 -1
- package/dist/components/toc/index.js +105 -10
- package/dist/components/type-table.d.ts +11 -6
- package/dist/components/type-table.js +28 -23
- package/dist/components/ui/accordion.d.ts +7 -8
- package/dist/components/ui/accordion.js +2 -6
- package/dist/components/ui/button.d.ts +1 -2
- package/dist/components/ui/button.js +0 -3
- package/dist/components/ui/collapsible.d.ts +6 -7
- package/dist/components/ui/collapsible.js +3 -7
- package/dist/components/ui/navigation-menu.d.ts +27 -13
- package/dist/components/ui/navigation-menu.js +53 -31
- package/dist/components/ui/popover.d.ts +11 -6
- package/dist/components/ui/popover.js +15 -19
- package/dist/components/ui/scroll-area.d.ts +17 -7
- package/dist/components/ui/scroll-area.js +27 -31
- package/dist/components/ui/tabs.d.ts +8 -9
- package/dist/components/ui/tabs.js +5 -9
- package/dist/contexts/i18n.d.ts +62 -1
- package/dist/contexts/i18n.js +53 -10
- package/dist/contexts/search.d.ts +71 -5
- package/dist/contexts/search.js +64 -10
- package/dist/contexts/tree.d.ts +21 -1
- package/dist/contexts/tree.js +36 -10
- package/dist/i18n.d.ts +21 -1
- package/dist/i18n.js +20 -3
- package/dist/layouts/docs/client.d.ts +30 -29
- package/dist/layouts/docs/client.js +76 -52
- package/dist/layouts/docs/index.d.ts +21 -35
- package/dist/layouts/docs/index.js +16 -172
- package/dist/layouts/docs/page/index.d.ts +75 -52
- package/dist/layouts/docs/page/index.js +76 -56
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +14 -0
- package/dist/layouts/docs/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/docs/page/slots/container.d.ts +7 -0
- package/dist/layouts/docs/page/slots/container.js +17 -0
- package/dist/layouts/docs/page/slots/footer.d.ts +23 -0
- package/dist/layouts/docs/page/slots/footer.js +56 -0
- package/dist/layouts/docs/page/slots/toc.d.ts +55 -0
- package/dist/layouts/docs/page/slots/toc.js +166 -0
- package/dist/layouts/docs/slots/container.d.ts +7 -0
- package/dist/layouts/docs/slots/container.js +29 -0
- package/dist/layouts/docs/slots/header.d.ts +8 -0
- package/dist/layouts/docs/slots/header.js +38 -0
- package/dist/layouts/docs/slots/sidebar.d.ts +30 -0
- package/dist/layouts/docs/slots/sidebar.js +319 -0
- package/dist/layouts/flux/index.d.ts +74 -0
- package/dist/layouts/flux/index.js +146 -0
- package/dist/layouts/flux/page/index.d.ts +105 -0
- package/dist/layouts/flux/page/index.js +104 -0
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +14 -0
- package/dist/layouts/flux/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/flux/page/slots/container.d.ts +7 -0
- package/dist/layouts/flux/page/slots/container.js +17 -0
- package/dist/layouts/flux/page/slots/footer.d.ts +23 -0
- package/dist/layouts/flux/page/slots/footer.js +56 -0
- package/dist/layouts/flux/page/slots/toc.d.ts +34 -0
- package/dist/layouts/flux/page/slots/toc.js +172 -0
- package/dist/layouts/flux/slots/container.d.ts +7 -0
- package/dist/layouts/flux/slots/container.js +13 -0
- package/dist/layouts/flux/slots/sidebar.d.ts +23 -0
- package/dist/layouts/flux/slots/sidebar.js +237 -0
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +17 -0
- package/dist/layouts/flux/slots/tab-dropdown.js +85 -0
- package/dist/layouts/home/index.d.ts +25 -8
- package/dist/layouts/home/index.js +39 -19
- package/dist/layouts/home/navbar.d.ts +7 -16
- package/dist/layouts/home/navbar.js +12 -14
- package/dist/layouts/home/not-found.d.ts +9 -0
- package/dist/layouts/home/not-found.js +38 -0
- package/dist/layouts/home/slots/container.d.ts +7 -0
- package/dist/layouts/home/slots/container.js +13 -0
- package/dist/layouts/home/slots/header.d.ts +11 -0
- package/dist/layouts/home/slots/header.js +242 -0
- package/dist/layouts/notebook/client.d.ts +32 -44
- package/dist/layouts/notebook/client.js +58 -148
- package/dist/layouts/notebook/index.d.ts +26 -25
- package/dist/layouts/notebook/index.js +16 -213
- package/dist/layouts/notebook/page/index.d.ts +75 -52
- package/dist/layouts/notebook/page/index.js +76 -56
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +14 -0
- package/dist/layouts/notebook/page/slots/breadcrumb.js +44 -0
- package/dist/layouts/notebook/page/slots/container.d.ts +7 -0
- package/dist/layouts/notebook/page/slots/container.js +17 -0
- package/dist/layouts/notebook/page/slots/footer.d.ts +23 -0
- package/dist/layouts/notebook/page/slots/footer.js +56 -0
- package/dist/layouts/notebook/page/slots/toc.d.ts +55 -0
- package/dist/layouts/notebook/page/slots/toc.js +165 -0
- package/dist/layouts/notebook/slots/container.d.ts +7 -0
- package/dist/layouts/notebook/slots/container.js +31 -0
- package/dist/layouts/notebook/slots/header.d.ts +8 -0
- package/dist/layouts/notebook/slots/header.js +194 -0
- package/dist/layouts/notebook/slots/sidebar.d.ts +40 -0
- package/dist/layouts/notebook/slots/sidebar.js +297 -0
- package/dist/layouts/shared/client.d.ts +45 -0
- package/dist/layouts/shared/client.js +84 -0
- package/dist/layouts/shared/index.d.ts +144 -35
- package/dist/layouts/shared/index.js +74 -15
- package/dist/layouts/shared/page-actions.d.ts +36 -0
- package/dist/layouts/shared/page-actions.js +190 -0
- package/dist/layouts/shared/slots/language-select.d.ts +10 -0
- package/dist/layouts/shared/{language-toggle.js → slots/language-select.js} +12 -16
- package/dist/layouts/shared/slots/search-trigger.d.ts +23 -0
- package/dist/layouts/shared/{search-toggle.js → slots/search-trigger.js} +12 -16
- package/dist/layouts/shared/slots/theme-switch.d.ts +14 -0
- package/dist/layouts/shared/{theme-toggle.js → slots/theme-switch.js} +11 -15
- package/dist/mdx.d.ts +23 -13
- package/dist/mdx.js +2 -6
- package/dist/mdx.server.d.ts +1 -3
- package/dist/mdx.server.js +0 -3
- package/dist/og/takumi.d.ts +21 -0
- package/dist/og/takumi.js +70 -0
- package/dist/og.d.ts +22 -1
- package/dist/og.js +70 -3
- package/dist/page.d.ts +6 -7
- package/dist/page.js +9 -14
- package/dist/provider/base.d.ts +5 -6
- package/dist/provider/base.js +5 -9
- package/dist/provider/next.d.ts +4 -5
- package/dist/provider/next.js +1 -5
- package/dist/provider/react-router.d.ts +4 -5
- package/dist/provider/react-router.js +1 -5
- package/dist/provider/tanstack.d.ts +4 -5
- package/dist/provider/tanstack.js +1 -5
- package/dist/provider/waku.d.ts +4 -5
- package/dist/provider/waku.js +1 -5
- package/dist/style.css +594 -192
- package/dist/tailwind/typography.d.ts +2 -0
- package/dist/tailwind/typography.js +2 -0
- package/dist/utils/cn.js +2 -0
- package/dist/utils/merge-refs.js +11 -0
- package/dist/utils/urls.js +15 -0
- package/dist/utils/use-copy-button.d.ts +6 -1
- package/dist/utils/use-copy-button.js +26 -3
- package/dist/utils/use-footer-items.d.ts +9 -1
- package/dist/utils/use-footer-items.js +24 -3
- package/dist/utils/use-is-scroll-top.d.ts +8 -1
- package/dist/utils/use-is-scroll-top.js +20 -3
- package/package.json +133 -81
- package/css/layouts/docs.css +0 -1
- package/css/layouts/home.css +0 -1
- package/css/layouts/notebook.css +0 -1
- package/dist/_virtual/rolldown_runtime.js +0 -36
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.js.map +0 -1
- package/dist/components/banner.d.ts.map +0 -1
- package/dist/components/banner.js.map +0 -1
- package/dist/components/callout.d.ts.map +0 -1
- package/dist/components/callout.js.map +0 -1
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js.map +0 -1
- package/dist/components/codeblock.d.ts.map +0 -1
- package/dist/components/codeblock.js.map +0 -1
- package/dist/components/dialog/search-algolia.d.ts.map +0 -1
- package/dist/components/dialog/search-algolia.js.map +0 -1
- package/dist/components/dialog/search-default.d.ts.map +0 -1
- package/dist/components/dialog/search-default.js.map +0 -1
- package/dist/components/dialog/search-orama.d.ts.map +0 -1
- package/dist/components/dialog/search-orama.js.map +0 -1
- package/dist/components/dialog/search.d.ts.map +0 -1
- package/dist/components/dialog/search.js.map +0 -1
- package/dist/components/dynamic-codeblock.d.ts.map +0 -1
- package/dist/components/dynamic-codeblock.js.map +0 -1
- package/dist/components/files.d.ts.map +0 -1
- package/dist/components/files.js.map +0 -1
- package/dist/components/github-info.d.ts.map +0 -1
- package/dist/components/github-info.js.map +0 -1
- package/dist/components/heading.d.ts.map +0 -1
- package/dist/components/heading.js.map +0 -1
- package/dist/components/image-zoom-CtfZieBH.css +0 -80
- package/dist/components/image-zoom-CtfZieBH.css.map +0 -1
- package/dist/components/image-zoom.d.ts.map +0 -1
- package/dist/components/image-zoom.js.map +0 -1
- package/dist/components/image-zoom2.js +0 -1
- package/dist/components/inline-toc.d.ts.map +0 -1
- package/dist/components/inline-toc.js.map +0 -1
- package/dist/components/sidebar/base.d.ts.map +0 -1
- package/dist/components/sidebar/base.js.map +0 -1
- package/dist/components/sidebar/link-item.d.ts.map +0 -1
- package/dist/components/sidebar/link-item.js.map +0 -1
- package/dist/components/sidebar/page-tree.d.ts.map +0 -1
- package/dist/components/sidebar/page-tree.js.map +0 -1
- package/dist/components/sidebar/tabs/dropdown.d.ts.map +0 -1
- package/dist/components/sidebar/tabs/dropdown.js.map +0 -1
- package/dist/components/sidebar/tabs/index.d.ts.map +0 -1
- package/dist/components/sidebar/tabs/index.js.map +0 -1
- package/dist/components/steps.d.ts.map +0 -1
- package/dist/components/steps.js.map +0 -1
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/toc/clerk.js.map +0 -1
- package/dist/components/toc/default.js.map +0 -1
- package/dist/components/toc/index.js.map +0 -1
- package/dist/components/type-table.d.ts.map +0 -1
- package/dist/components/type-table.js.map +0 -1
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/contexts/i18n.js.map +0 -1
- package/dist/contexts/search.d.ts.map +0 -1
- package/dist/contexts/search.js.map +0 -1
- package/dist/contexts/tree.js.map +0 -1
- package/dist/layouts/docs/client.d.ts.map +0 -1
- package/dist/layouts/docs/client.js.map +0 -1
- package/dist/layouts/docs/index.d.ts.map +0 -1
- package/dist/layouts/docs/index.js.map +0 -1
- package/dist/layouts/docs/page/client.d.ts +0 -46
- package/dist/layouts/docs/page/client.d.ts.map +0 -1
- package/dist/layouts/docs/page/client.js +0 -227
- package/dist/layouts/docs/page/client.js.map +0 -1
- package/dist/layouts/docs/page/index.d.ts.map +0 -1
- package/dist/layouts/docs/page/index.js.map +0 -1
- package/dist/layouts/docs/sidebar.d.ts +0 -63
- package/dist/layouts/docs/sidebar.d.ts.map +0 -1
- package/dist/layouts/docs/sidebar.js +0 -162
- package/dist/layouts/docs/sidebar.js.map +0 -1
- package/dist/layouts/home/client.d.ts +0 -19
- package/dist/layouts/home/client.d.ts.map +0 -1
- package/dist/layouts/home/client.js +0 -285
- package/dist/layouts/home/client.js.map +0 -1
- package/dist/layouts/home/index.d.ts.map +0 -1
- package/dist/layouts/home/index.js.map +0 -1
- package/dist/layouts/home/navbar.d.ts.map +0 -1
- package/dist/layouts/home/navbar.js.map +0 -1
- package/dist/layouts/notebook/client.d.ts.map +0 -1
- package/dist/layouts/notebook/client.js.map +0 -1
- package/dist/layouts/notebook/index.d.ts.map +0 -1
- package/dist/layouts/notebook/index.js.map +0 -1
- package/dist/layouts/notebook/page/client.d.ts +0 -46
- package/dist/layouts/notebook/page/client.d.ts.map +0 -1
- package/dist/layouts/notebook/page/client.js +0 -227
- package/dist/layouts/notebook/page/client.js.map +0 -1
- package/dist/layouts/notebook/page/index.d.ts.map +0 -1
- package/dist/layouts/notebook/page/index.js.map +0 -1
- package/dist/layouts/notebook/sidebar.d.ts +0 -59
- package/dist/layouts/notebook/sidebar.d.ts.map +0 -1
- package/dist/layouts/notebook/sidebar.js +0 -133
- package/dist/layouts/notebook/sidebar.js.map +0 -1
- package/dist/layouts/shared/index.d.ts.map +0 -1
- package/dist/layouts/shared/index.js.map +0 -1
- package/dist/layouts/shared/language-toggle.d.ts +0 -10
- package/dist/layouts/shared/language-toggle.d.ts.map +0 -1
- package/dist/layouts/shared/language-toggle.js.map +0 -1
- package/dist/layouts/shared/search-toggle.d.ts +0 -23
- package/dist/layouts/shared/search-toggle.d.ts.map +0 -1
- package/dist/layouts/shared/search-toggle.js.map +0 -1
- package/dist/layouts/shared/theme-toggle.d.ts +0 -14
- package/dist/layouts/shared/theme-toggle.d.ts.map +0 -1
- package/dist/layouts/shared/theme-toggle.js.map +0 -1
- package/dist/mdx.d.ts.map +0 -1
- package/dist/mdx.js.map +0 -1
- package/dist/mdx.server.d.ts.map +0 -1
- package/dist/mdx.server.js.map +0 -1
- package/dist/page.d.ts.map +0 -1
- package/dist/page.js.map +0 -1
- package/dist/provider/base.d.ts.map +0 -1
- package/dist/provider/base.js.map +0 -1
- package/dist/provider/next.d.ts.map +0 -1
- package/dist/provider/next.js.map +0 -1
- package/dist/provider/react-router.d.ts.map +0 -1
- package/dist/provider/react-router.js.map +0 -1
- package/dist/provider/tanstack.d.ts.map +0 -1
- package/dist/provider/tanstack.js.map +0 -1
- package/dist/provider/waku.d.ts.map +0 -1
- package/dist/provider/waku.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ImageResponse, ImageResponseOptions } from "@takumi-rs/image-response";
|
|
4
|
+
|
|
5
|
+
//#region src/og/takumi.d.ts
|
|
6
|
+
interface GenerateProps {
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
primaryColor?: string;
|
|
11
|
+
primaryTextColor?: string;
|
|
12
|
+
site?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
|
|
15
|
+
declare function generate({
|
|
16
|
+
primaryColor,
|
|
17
|
+
primaryTextColor,
|
|
18
|
+
...props
|
|
19
|
+
}: GenerateProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { generate, generateOGImage };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ImageResponse } from "@takumi-rs/image-response";
|
|
3
|
+
//#region src/og/takumi.tsx
|
|
4
|
+
function generateOGImage(options) {
|
|
5
|
+
const { title, description, icon, site, primaryColor, primaryTextColor, ...rest } = options;
|
|
6
|
+
return new ImageResponse(generate({
|
|
7
|
+
title,
|
|
8
|
+
description,
|
|
9
|
+
icon,
|
|
10
|
+
site,
|
|
11
|
+
primaryTextColor,
|
|
12
|
+
primaryColor
|
|
13
|
+
}), {
|
|
14
|
+
width: 1200,
|
|
15
|
+
height: 630,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "rgb(255,150,255)", ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
style: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
color: "white",
|
|
27
|
+
padding: "4rem",
|
|
28
|
+
backgroundColor: "#0c0c0c",
|
|
29
|
+
backgroundImage: `linear-gradient(to top right, ${primaryColor}, transparent)`
|
|
30
|
+
},
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("div", {
|
|
33
|
+
style: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
gap: "16px",
|
|
38
|
+
marginBottom: "12px",
|
|
39
|
+
color: primaryTextColor
|
|
40
|
+
},
|
|
41
|
+
children: [props.icon, /* @__PURE__ */ jsx("p", {
|
|
42
|
+
style: {
|
|
43
|
+
fontSize: "56px",
|
|
44
|
+
fontWeight: 600,
|
|
45
|
+
margin: 0
|
|
46
|
+
},
|
|
47
|
+
children: props.site
|
|
48
|
+
})]
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsx("p", {
|
|
51
|
+
style: {
|
|
52
|
+
fontWeight: 800,
|
|
53
|
+
fontSize: "82px",
|
|
54
|
+
margin: 0
|
|
55
|
+
},
|
|
56
|
+
children: props.title
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("p", {
|
|
59
|
+
style: {
|
|
60
|
+
fontSize: "52px",
|
|
61
|
+
color: "rgba(240,240,240,0.8)",
|
|
62
|
+
margin: 0
|
|
63
|
+
},
|
|
64
|
+
children: props.description
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { generate, generateOGImage };
|
package/dist/og.d.ts
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ImageResponse } from "next/og";
|
|
4
|
+
import { ImageResponseOptions } from "next/dist/compiled/@vercel/og/types";
|
|
5
|
+
|
|
6
|
+
//#region src/og.d.ts
|
|
7
|
+
interface GenerateProps {
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
primaryColor?: string;
|
|
12
|
+
primaryTextColor?: string;
|
|
13
|
+
site?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
|
|
16
|
+
declare function generate({
|
|
17
|
+
primaryColor,
|
|
18
|
+
primaryTextColor,
|
|
19
|
+
...props
|
|
20
|
+
}: GenerateProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { generate, generateOGImage };
|
package/dist/og.js
CHANGED
|
@@ -1,3 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ImageResponse } from "next/og";
|
|
3
|
+
//#region src/og.tsx
|
|
4
|
+
function generateOGImage(options) {
|
|
5
|
+
const { title, description, icon, site, primaryColor, primaryTextColor, ...rest } = options;
|
|
6
|
+
return new ImageResponse(generate({
|
|
7
|
+
title,
|
|
8
|
+
description,
|
|
9
|
+
icon,
|
|
10
|
+
site,
|
|
11
|
+
primaryTextColor,
|
|
12
|
+
primaryColor
|
|
13
|
+
}), {
|
|
14
|
+
width: 1200,
|
|
15
|
+
height: 630,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function generate({ primaryColor = "rgba(255,150,255,0.3)", primaryTextColor = "rgb(255,150,255)", ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
style: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
color: "white",
|
|
27
|
+
padding: "4rem",
|
|
28
|
+
backgroundColor: "#0c0c0c",
|
|
29
|
+
backgroundImage: `linear-gradient(to top right, ${primaryColor}, transparent)`
|
|
30
|
+
},
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("div", {
|
|
33
|
+
style: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
gap: "16px",
|
|
38
|
+
marginBottom: "12px",
|
|
39
|
+
color: primaryTextColor
|
|
40
|
+
},
|
|
41
|
+
children: [props.icon, /* @__PURE__ */ jsx("p", {
|
|
42
|
+
style: {
|
|
43
|
+
fontSize: "56px",
|
|
44
|
+
fontWeight: 600,
|
|
45
|
+
margin: 0
|
|
46
|
+
},
|
|
47
|
+
children: props.site
|
|
48
|
+
})]
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsx("p", {
|
|
51
|
+
style: {
|
|
52
|
+
fontWeight: 800,
|
|
53
|
+
fontSize: "82px",
|
|
54
|
+
margin: 0
|
|
55
|
+
},
|
|
56
|
+
children: props.title
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("p", {
|
|
59
|
+
style: {
|
|
60
|
+
fontSize: "52px",
|
|
61
|
+
color: "rgba(240,240,240,0.8)",
|
|
62
|
+
margin: 0
|
|
63
|
+
},
|
|
64
|
+
children: props.description
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { generate, generateOGImage };
|
package/dist/page.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub } from "./layouts/docs/page/index.js";
|
|
3
|
-
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
1
|
+
import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
|
|
2
|
+
import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub, PageLastUpdate } from "./layouts/docs/page/index.js";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/page.d.ts
|
|
7
7
|
interface EditOnGitHubOptions extends Omit<ComponentProps<'a'>, 'href' | 'children'> {
|
|
@@ -25,13 +25,12 @@ interface DocsPageProps extends DocsPageProps$1 {
|
|
|
25
25
|
/**
|
|
26
26
|
* For separate MDX page
|
|
27
27
|
*/
|
|
28
|
-
declare function withArticle(props: ComponentProps<'main'>):
|
|
28
|
+
declare function withArticle(props: ComponentProps<'main'>): react_jsx_runtime0.JSX.Element;
|
|
29
29
|
declare function DocsPage({
|
|
30
30
|
lastUpdate,
|
|
31
31
|
editOnGithub,
|
|
32
32
|
children,
|
|
33
33
|
...props
|
|
34
|
-
}: DocsPageProps):
|
|
34
|
+
}: DocsPageProps): react_jsx_runtime0.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, PageBreadcrumb, PageLastUpdate, withArticle };
|
|
37
|
-
//# sourceMappingURL=page.d.ts.map
|
|
36
|
+
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate, withArticle };
|
package/dist/page.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { DocsBody, DocsDescription, DocsTitle, EditOnGitHub, page_exports } from "./layouts/docs/page/index.js";
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
|
+
import { useIsDocsLayout } from "./layouts/docs/client.js";
|
|
4
|
+
import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
|
|
5
|
+
import { DocsBody, DocsDescription, DocsTitle, EditOnGitHub, PageLastUpdate, page_exports } from "./layouts/docs/page/index.js";
|
|
6
6
|
import { page_exports as page_exports$1 } from "./layouts/notebook/page/index.js";
|
|
7
|
-
import { cn } from "@hanzo/docs-ui/cn";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { use } from "react";
|
|
10
|
-
|
|
11
8
|
//#region src/page.tsx
|
|
12
9
|
/**
|
|
13
10
|
* For separate MDX page
|
|
@@ -23,16 +20,14 @@ function withArticle(props) {
|
|
|
23
20
|
});
|
|
24
21
|
}
|
|
25
22
|
function DocsPage({ lastUpdate, editOnGithub, children, ...props }) {
|
|
26
|
-
const { DocsPage
|
|
27
|
-
return /* @__PURE__ */ jsxs(DocsPage
|
|
23
|
+
const { DocsPage, EditOnGitHub, PageLastUpdate } = useIsDocsLayout() ? page_exports : page_exports$1;
|
|
24
|
+
return /* @__PURE__ */ jsxs(DocsPage, {
|
|
28
25
|
...props,
|
|
29
26
|
children: [children, /* @__PURE__ */ jsxs("div", {
|
|
30
27
|
className: "flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",
|
|
31
|
-
children: [editOnGithub && /* @__PURE__ */ jsx(EditOnGitHub
|
|
28
|
+
children: [editOnGithub && /* @__PURE__ */ jsx(EditOnGitHub, { href: `https://github.com/${editOnGithub.owner}/${editOnGithub.repo}/blob/${editOnGithub.sha}/${editOnGithub.path.startsWith("/") ? editOnGithub.path.slice(1) : editOnGithub.path}` }), lastUpdate && /* @__PURE__ */ jsx(PageLastUpdate, { date: new Date(lastUpdate) })]
|
|
32
29
|
})]
|
|
33
30
|
});
|
|
34
31
|
}
|
|
35
|
-
|
|
36
32
|
//#endregion
|
|
37
|
-
export { DocsBody, DocsDescription, DocsPage, DocsTitle, EditOnGitHub, PageBreadcrumb, PageLastUpdate, withArticle };
|
|
38
|
-
//# sourceMappingURL=page.js.map
|
|
33
|
+
export { DocsBody, DocsDescription, DocsPage, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate, withArticle };
|
package/dist/provider/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SearchProviderProps } from "../contexts/search.js";
|
|
1
2
|
import { DefaultSearchDialogProps } from "../components/dialog/search-default.js";
|
|
2
|
-
import
|
|
3
|
+
import { I18nProviderProps } from "../contexts/i18n.js";
|
|
3
4
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
|
-
import
|
|
5
|
-
import { SearchProviderProps } from "@hanzo/docs-ui/contexts/search";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
import { ThemeProvider } from "next-themes";
|
|
7
7
|
|
|
8
8
|
//#region src/provider/base.d.ts
|
|
@@ -44,7 +44,6 @@ declare function RootProvider({
|
|
|
44
44
|
theme,
|
|
45
45
|
search,
|
|
46
46
|
i18n
|
|
47
|
-
}: RootProviderProps):
|
|
47
|
+
}: RootProviderProps): react_jsx_runtime0.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { RootProvider, RootProviderProps };
|
|
50
|
-
//# sourceMappingURL=base.d.ts.map
|
|
49
|
+
export { RootProvider, RootProviderProps };
|
package/dist/provider/base.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { I18nProvider } from "../contexts/i18n.js";
|
|
3
|
+
import { SearchProvider } from "../contexts/search.js";
|
|
4
4
|
import { lazy } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { SearchProvider } from "@hanzo/docs-ui/contexts/search";
|
|
7
|
-
import { DirectionProvider } from "@base-ui/react/direction-provider";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
import { ThemeProvider } from "next-themes";
|
|
9
|
-
|
|
7
|
+
import { DirectionProvider } from "@base-ui/react/direction-provider";
|
|
10
8
|
//#region src/provider/base.tsx
|
|
11
9
|
const DefaultSearchDialog = lazy(() => import("../components/dialog/search-default.js"));
|
|
12
10
|
function RootProvider({ children, dir = "ltr", theme = {}, search, i18n }) {
|
|
@@ -33,7 +31,5 @@ function RootProvider({ children, dir = "ltr", theme = {}, search, i18n }) {
|
|
|
33
31
|
children: body
|
|
34
32
|
});
|
|
35
33
|
}
|
|
36
|
-
|
|
37
34
|
//#endregion
|
|
38
35
|
export { RootProvider };
|
|
39
|
-
//# sourceMappingURL=base.js.map
|
package/dist/provider/next.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@hanzo/docs-core/framework";
|
|
3
|
-
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
4
2
|
import { ComponentProps } from "react";
|
|
3
|
+
import { Framework } from "@hanzo/docs-core/framework";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/next.d.ts
|
|
7
7
|
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
@@ -16,7 +16,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { RootProvider, RootProviderProps };
|
|
22
|
-
//# sourceMappingURL=next.d.ts.map
|
|
21
|
+
export { RootProvider, RootProviderProps };
|
package/dist/provider/next.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { NextProvider } from "@hanzo/docs-core/framework/next";
|
|
6
|
-
|
|
7
5
|
//#region src/provider/next.tsx
|
|
8
6
|
function RootProvider({ components, ...props }) {
|
|
9
7
|
return /* @__PURE__ */ jsx(NextProvider, {
|
|
@@ -15,7 +13,5 @@ function RootProvider({ components, ...props }) {
|
|
|
15
13
|
})
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
17
|
export { RootProvider };
|
|
21
|
-
//# sourceMappingURL=next.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@hanzo/docs-core/framework";
|
|
3
|
-
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
4
2
|
import { ComponentProps } from "react";
|
|
3
|
+
import { Framework } from "@hanzo/docs-core/framework";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/react-router.d.ts
|
|
7
7
|
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
@@ -16,7 +16,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { RootProvider, RootProviderProps };
|
|
22
|
-
//# sourceMappingURL=react-router.d.ts.map
|
|
21
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { ReactRouterProvider } from "@hanzo/docs-core/framework/react-router";
|
|
6
|
-
|
|
7
5
|
//#region src/provider/react-router.tsx
|
|
8
6
|
function RootProvider({ components, ...props }) {
|
|
9
7
|
return /* @__PURE__ */ jsx(ReactRouterProvider, {
|
|
@@ -15,7 +13,5 @@ function RootProvider({ components, ...props }) {
|
|
|
15
13
|
})
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
17
|
export { RootProvider };
|
|
21
|
-
//# sourceMappingURL=react-router.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@hanzo/docs-core/framework";
|
|
3
|
-
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
4
2
|
import { ComponentProps } from "react";
|
|
3
|
+
import { Framework } from "@hanzo/docs-core/framework";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/tanstack.d.ts
|
|
7
7
|
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
@@ -16,7 +16,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { RootProvider, RootProviderProps };
|
|
22
|
-
//# sourceMappingURL=tanstack.d.ts.map
|
|
21
|
+
export { RootProvider, RootProviderProps };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { TanstackProvider } from "@hanzo/docs-core/framework/tanstack";
|
|
6
|
-
|
|
7
5
|
//#region src/provider/tanstack.tsx
|
|
8
6
|
function RootProvider({ components, ...props }) {
|
|
9
7
|
return /* @__PURE__ */ jsx(TanstackProvider, {
|
|
@@ -15,7 +13,5 @@ function RootProvider({ components, ...props }) {
|
|
|
15
13
|
})
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
17
|
export { RootProvider };
|
|
21
|
-
//# sourceMappingURL=tanstack.js.map
|
package/dist/provider/waku.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
|
-
import { Framework } from "@hanzo/docs-core/framework";
|
|
3
|
-
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
4
2
|
import { ComponentProps } from "react";
|
|
3
|
+
import { Framework } from "@hanzo/docs-core/framework";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/provider/waku.d.ts
|
|
7
7
|
interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
@@ -16,7 +16,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
16
|
declare function RootProvider({
|
|
17
17
|
components,
|
|
18
18
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
19
|
+
}: RootProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { RootProvider, RootProviderProps };
|
|
22
|
-
//# sourceMappingURL=waku.d.ts.map
|
|
21
|
+
export { RootProvider, RootProviderProps };
|
package/dist/provider/waku.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { WakuProvider } from "@hanzo/docs-core/framework/waku";
|
|
6
|
-
|
|
7
5
|
//#region src/provider/waku.tsx
|
|
8
6
|
function RootProvider({ components, ...props }) {
|
|
9
7
|
return /* @__PURE__ */ jsx(WakuProvider, {
|
|
@@ -15,7 +13,5 @@ function RootProvider({ components, ...props }) {
|
|
|
15
13
|
})
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
//#endregion
|
|
20
17
|
export { RootProvider };
|
|
21
|
-
//# sourceMappingURL=waku.js.map
|