@sleetch/react 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/button.css +1 -0
- package/dist/assets/content.css +1 -0
- package/dist/assets/content2.css +1 -0
- package/dist/assets/content3.css +1 -0
- package/dist/assets/file-system.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/layout.css +1 -0
- package/dist/assets/navigation.css +1 -0
- package/dist/assets/sidebar.css +1 -0
- package/dist/assets/toc.css +1 -0
- package/dist/button-B1pw1TFm.js +19 -0
- package/dist/button-B1pw1TFm.js.map +1 -0
- package/dist/button-DWM5D_of.cjs +2 -0
- package/dist/button-DWM5D_of.cjs.map +1 -0
- package/dist/clsx-CPcBvw4Z.cjs +2 -0
- package/dist/clsx-CPcBvw4Z.cjs.map +1 -0
- package/dist/clsx-CeX9s6vy.js +18 -0
- package/dist/clsx-CeX9s6vy.js.map +1 -0
- package/dist/components/button.cjs.js +1 -0
- package/dist/components/button.d.ts +5 -0
- package/dist/components/button.esm.js +2 -0
- package/dist/components/documentation/connected-header.cjs.js +2 -0
- package/dist/components/documentation/connected-header.cjs.js.map +1 -0
- package/dist/components/documentation/connected-header.d.ts +4 -0
- package/dist/components/documentation/connected-header.esm.js +15 -0
- package/dist/components/documentation/connected-header.esm.js.map +1 -0
- package/dist/components/documentation/connected-sidebar.cjs.js +2 -0
- package/dist/components/documentation/connected-sidebar.cjs.js.map +1 -0
- package/dist/components/documentation/connected-sidebar.d.ts +9 -0
- package/dist/components/documentation/connected-sidebar.esm.js +16 -0
- package/dist/components/documentation/connected-sidebar.esm.js.map +1 -0
- package/dist/components/documentation/content.cjs.js +1 -0
- package/dist/components/documentation/content.d.ts +4 -0
- package/dist/components/documentation/content.esm.js +2 -0
- package/dist/components/documentation/header.cjs.js +1 -0
- package/dist/components/documentation/header.d.ts +5 -0
- package/dist/components/documentation/header.esm.js +2 -0
- package/dist/components/documentation/layout.cjs.js +1 -0
- package/dist/components/documentation/layout.d.ts +11 -0
- package/dist/components/documentation/layout.esm.js +2 -0
- package/dist/components/documentation/page/content.cjs.js +1 -0
- package/dist/components/documentation/page/content.d.ts +7 -0
- package/dist/components/documentation/page/content.esm.js +2 -0
- package/dist/components/documentation/page/header.cjs.js +2 -0
- package/dist/components/documentation/page/header.cjs.js.map +1 -0
- package/dist/components/documentation/page/header.d.ts +6 -0
- package/dist/components/documentation/page/header.esm.js +31 -0
- package/dist/components/documentation/page/header.esm.js.map +1 -0
- package/dist/components/documentation/page/navigation.cjs.js +1 -0
- package/dist/components/documentation/page/navigation.d.ts +8 -0
- package/dist/components/documentation/page/navigation.esm.js +2 -0
- package/dist/components/documentation/sidebar/content.cjs.js +1 -0
- package/dist/components/documentation/sidebar/content.d.ts +4 -0
- package/dist/components/documentation/sidebar/content.esm.js +2 -0
- package/dist/components/documentation/sidebar/index.cjs.js +1 -0
- package/dist/components/documentation/sidebar/index.d.ts +11 -0
- package/dist/components/documentation/sidebar/index.esm.js +2 -0
- package/dist/components/documentation/toc/content.cjs.js +1 -0
- package/dist/components/documentation/toc/content.d.ts +4 -0
- package/dist/components/documentation/toc/content.esm.js +2 -0
- package/dist/components/documentation/toc/index.cjs.js +1 -0
- package/dist/components/documentation/toc/index.d.ts +6 -0
- package/dist/components/documentation/toc/index.esm.js +2 -0
- package/dist/components/file-system.cjs.js +1 -0
- package/dist/components/file-system.d.ts +20 -0
- package/dist/components/file-system.esm.js +2 -0
- package/dist/content-CRXZ7aLX.js +17 -0
- package/dist/content-CRXZ7aLX.js.map +1 -0
- package/dist/content-CePPkmqw.cjs +2 -0
- package/dist/content-CePPkmqw.cjs.map +1 -0
- package/dist/content-D_P9xOgL.cjs +2 -0
- package/dist/content-D_P9xOgL.cjs.map +1 -0
- package/dist/content-DusAp8Q6.js +32 -0
- package/dist/content-DusAp8Q6.js.map +1 -0
- package/dist/content-_OkOg-pq.cjs +2 -0
- package/dist/content-_OkOg-pq.cjs.map +1 -0
- package/dist/content-mbVWCXX0.js +17 -0
- package/dist/content-mbVWCXX0.js.map +1 -0
- package/dist/content-r8d8MkOf.cjs +2 -0
- package/dist/content-r8d8MkOf.cjs.map +1 -0
- package/dist/content-x_2bnG7q.js +17 -0
- package/dist/content-x_2bnG7q.js.map +1 -0
- package/dist/file-system-BtXBcLmT.js +101 -0
- package/dist/file-system-BtXBcLmT.js.map +1 -0
- package/dist/file-system-Dr4N-WNs.cjs +2 -0
- package/dist/file-system-Dr4N-WNs.cjs.map +1 -0
- package/dist/header-D59bdlay.js +55 -0
- package/dist/header-D59bdlay.js.map +1 -0
- package/dist/header-DbR9X4YP.cjs +2 -0
- package/dist/header-DbR9X4YP.cjs.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.esm.js +16 -0
- package/dist/layout-BRE4zrjG.js +29 -0
- package/dist/layout-BRE4zrjG.js.map +1 -0
- package/dist/layout-D6mjobyq.cjs +2 -0
- package/dist/layout-D6mjobyq.cjs.map +1 -0
- package/dist/navigation-BdVu1Uh-.cjs +2 -0
- package/dist/navigation-BdVu1Uh-.cjs.map +1 -0
- package/dist/navigation-kP1-q7Ux.js +141 -0
- package/dist/navigation-kP1-q7Ux.js.map +1 -0
- package/dist/sidebar-DGEZFbBi.cjs +2 -0
- package/dist/sidebar-DGEZFbBi.cjs.map +1 -0
- package/dist/sidebar-DgVlWEfQ.js +168 -0
- package/dist/sidebar-DgVlWEfQ.js.map +1 -0
- package/dist/toc-BuFdWsti.js +103 -0
- package/dist/toc-BuFdWsti.js.map +1 -0
- package/dist/toc-CMwm46RH.cjs +2 -0
- package/dist/toc-CMwm46RH.cjs.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../content-D_P9xOgL.cjs");exports.DocumentationTocContent=e.t;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BaseHTMLAttributes } from 'react';
|
|
2
|
+
export interface DocumentationTocContentProps extends BaseHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
}
|
|
4
|
+
export declare function DocumentationTocContent({ className, children, ...props }: DocumentationTocContentProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../toc-CMwm46RH.cjs");exports.DocumentationToc=e.t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseHTMLAttributes } from 'react';
|
|
2
|
+
import { markdown_module } from '@sleetch/core/compiler';
|
|
3
|
+
export interface DocumentationTocProps extends BaseHTMLAttributes<HTMLBaseElement> {
|
|
4
|
+
page: Promise<markdown_module>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DocumentationToc({ className, children, page, ...props }: DocumentationTocProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../file-system-Dr4N-WNs.cjs");exports.File=e.t,exports.FileSystem=e.n,exports.Folder=e.r;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FilesProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function FileSystem({ children, className }: FilesProps): import("react").JSX.Element;
|
|
7
|
+
export interface FolderProps {
|
|
8
|
+
name: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function Folder({ name, children, hidden, className }: FolderProps): import("react").JSX.Element;
|
|
14
|
+
export interface FileProps {
|
|
15
|
+
name: string;
|
|
16
|
+
comment?: string;
|
|
17
|
+
selected?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function File({ name, comment, selected, className }: FileProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CeX9s6vy.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './assets/content.css';//#region ../styles/src/components/documentation/toc/content.module.css
|
|
4
|
+
var n = { default: "_default_1txh1_3" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/documentation/toc/content.tsx
|
|
7
|
+
function r({ className: r, children: i, ...a }) {
|
|
8
|
+
return /* @__PURE__ */ t("div", {
|
|
9
|
+
className: e(n.default, r),
|
|
10
|
+
...a,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=content-CRXZ7aLX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-CRXZ7aLX.js","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":["@import '../../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n width: 100%;\n flex: 1;\n padding: 0 2em;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .default {\n padding: 0 1.5em;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/toc/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationTocContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationTocContent({ className, children, ...props }: DocumentationTocContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAwB,EAAE,cAAW,aAAU,GAAG,KAAuC;CACvG,OACE,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAY,CAAS;EAAG,GAAI;EACrD;CACE,CAAA;AAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/content.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1txh1_3`};function r({className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(n.default,r),...a,children:i})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=content-CePPkmqw.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-CePPkmqw.cjs","names":[],"sources":["../../styles/src/components/documentation/sidebar/content.module.css","../src/components/documentation/sidebar/content.tsx"],"sourcesContent":["@import '../../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n width: 100%;\n flex: 1;\n padding: 0 2em;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .default {\n padding: 0 1.5em;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/sidebar/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationSidebarContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationSidebarContent({ className, children, ...props }: DocumentationSidebarContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":"6GCMA,SAAgB,EAA4B,CAAE,YAAW,WAAU,GAAG,GAA2C,CAC/G,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,EACrD,UACE,CAAA,CAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/content.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1txh1_3`};function r({className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(n.default,r),...a,children:i})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=content-D_P9xOgL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-D_P9xOgL.cjs","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":["@import '../../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n width: 100%;\n flex: 1;\n padding: 0 2em;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .default {\n padding: 0 1.5em;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/toc/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationTocContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationTocContent({ className, children, ...props }: DocumentationTocContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":"6GCMA,SAAgB,EAAwB,CAAE,YAAW,WAAU,GAAG,GAAuC,CACvG,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,EACrD,UACE,CAAA,CAET"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { use as e } from "react";
|
|
2
|
+
import * as t from "react/jsx-runtime";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import './assets/content3.css';//#region ../../node_modules/.bun/@mdx-js+mdx@3.1.1/node_modules/@mdx-js/mdx/lib/run.js
|
|
5
|
+
var r = Object.getPrototypeOf(i).constructor;
|
|
6
|
+
async function i(e, t) {
|
|
7
|
+
return new r(String(e))(t);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/documentation/page/content.tsx
|
|
11
|
+
function a(e) {
|
|
12
|
+
return i(e, {
|
|
13
|
+
...t,
|
|
14
|
+
baseUrl: import.meta.url
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function o({ page: t, components: r }) {
|
|
18
|
+
let i = e(t);
|
|
19
|
+
if (i.default.parsed.type == "html") return /* @__PURE__ */ n("div", {
|
|
20
|
+
className: "sleetch-markdown",
|
|
21
|
+
children: /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: { __html: i.default.parsed.html } })
|
|
22
|
+
});
|
|
23
|
+
let o = e(a(i.default.parsed.code)).default;
|
|
24
|
+
return /* @__PURE__ */ n("div", {
|
|
25
|
+
className: "sleetch-markdown",
|
|
26
|
+
children: /* @__PURE__ */ n(o, { components: r })
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { o as t };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=content-DusAp8Q6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-DusAp8Q6.js","names":[],"sources":["../../../node_modules/.bun/@mdx-js+mdx@3.1.1/node_modules/@mdx-js/mdx/lib/run.js","../src/components/documentation/page/content.tsx"],"sourcesContent":["/**\n * @import {MDXModule} from 'mdx/types.js'\n * @import {RunOptions} from './util/resolve-evaluate-options.js'\n */\n\n/** @type {new (code: string, ...args: Array<unknown>) => Function} **/\nconst AsyncFunction = Object.getPrototypeOf(run).constructor\n\n/**\n * Run code compiled with `outputFormat: 'function-body'`.\n *\n * > ☢️ **Danger**: this `eval`s JavaScript.\n *\n * @param {{toString(): string}} code\n * JavaScript function body to run.\n * @param {RunOptions} options\n * Configuration (**required**).\n * @return {Promise<MDXModule>}\n * Promise to a module;\n * the result is an object with a `default` field set to the component;\n * anything else that was exported is available too.\n */\nexport async function run(code, options) {\n return new AsyncFunction(String(code))(options)\n}\n\n/**\n * Run code, synchronously.\n *\n * When possible please use the async `run`.\n *\n * > ☢️ **Danger**: this `eval`s JavaScript.\n *\n * @param {{toString(): string}} code\n * JavaScript function body to run.\n * @param {RunOptions} options\n * Configuration (**required**).\n * @return {MDXModule}\n * Module.\n */\nexport function runSync(code, options) {\n // eslint-disable-next-line no-new-func\n return new Function(String(code))(options)\n}\n","import { use } from 'react';\nimport '@sleetch/styles/markdown.css';\nimport '@sleetch/styles/katex.css';\nimport { run } from '@mdx-js/mdx';\nimport * as runtime from 'react/jsx-runtime';\nimport type { MDXComponents } from 'mdx/types';\nimport type { markdown_module } from '@sleetch/core/compiler';\n\nfunction compileMDX(code: string) {\n return run(code, {\n ...runtime,\n baseUrl: import.meta.url,\n });\n}\n\nexport function PageContent({ page, components }: { page: Promise<markdown_module>; components?: MDXComponents }) {\n const value = use(page);\n\n if (value.default.parsed.type == 'html') {\n return (\n <div className=\"sleetch-markdown\">\n <div dangerouslySetInnerHTML={{ __html: value.default.parsed.html }} />\n </div>\n );\n }\n\n const compiled = use(compileMDX(value.default.parsed.code));\n const Content = compiled.default;\n\n return (\n <div className=\"sleetch-markdown\">\n <Content components={components} />\n </div>\n );\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,IAAM,IAAgB,OAAO,eAAe,CAAG,CAAC,CAAC;AAgBjD,eAAsB,EAAI,GAAM,GAAS;CACvC,OAAO,IAAI,EAAc,OAAO,CAAI,CAAC,CAAC,CAAC,CAAO;AAChD;;;AChBA,SAAS,EAAW,GAAc;CAChC,OAAO,EAAI,GAAM;EACf,GAAG;EACH,SAAS,OAAO,KAAK;CACvB,CAAC;AACH;AAEA,SAAgB,EAAY,EAAE,SAAM,iBAA8E;CAChH,IAAM,IAAQ,EAAI,CAAI;CAEtB,IAAI,EAAM,QAAQ,OAAO,QAAQ,QAC/B,OACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD,EAAK,yBAAyB,EAAE,QAAQ,EAAM,QAAQ,OAAO,KAAK,EAAI,CAAA;CACnE,CAAA;CAKT,IAAM,IADW,EAAI,EAAW,EAAM,QAAQ,OAAO,IAAI,CACzC,CAAA,CAAS;CAEzB,OACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAqB,cAAa,CAAA;CAC/B,CAAA;AAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/content2.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1ip00_3`};function r({className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(n.default,r),...a,children:i})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=content-_OkOg-pq.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-_OkOg-pq.cjs","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n display: flex;\n flex: 1;\n min-height: calc(100vh - var(--_sleetch-header-height));\n}\n\n@media (max-width: 768px) {\n .default {\n flex-direction: column;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationContent({ className, children, ...props }: DocumentationContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":"6GCMA,SAAgB,EAAqB,CAAE,YAAW,WAAU,GAAG,GAAoC,CACjG,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,EACrD,UACE,CAAA,CAET"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CeX9s6vy.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './assets/content2.css';//#region ../styles/src/components/documentation/content.module.css
|
|
4
|
+
var n = { default: "_default_1ip00_3" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/documentation/content.tsx
|
|
7
|
+
function r({ className: r, children: i, ...a }) {
|
|
8
|
+
return /* @__PURE__ */ t("div", {
|
|
9
|
+
className: e(n.default, r),
|
|
10
|
+
...a,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=content-mbVWCXX0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-mbVWCXX0.js","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n display: flex;\n flex: 1;\n min-height: calc(100vh - var(--_sleetch-header-height));\n}\n\n@media (max-width: 768px) {\n .default {\n flex-direction: column;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationContent({ className, children, ...props }: DocumentationContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAqB,EAAE,cAAW,aAAU,GAAG,KAAoC;CACjG,OACE,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAY,CAAS;EAAG,GAAI;EACrD;CACE,CAAA;AAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/content3.css');var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react"),l=require("react/jsx-runtime");l=s(l,1);var u=Object.getPrototypeOf(d).constructor;async function d(e,t){return new u(String(e))(t)}function f(e){return d(e,{...l,baseUrl:{}.url})}function p({page:e,components:t}){let n=(0,c.use)(e);if(n.default.parsed.type==`html`)return(0,l.jsx)(`div`,{className:`sleetch-markdown`,children:(0,l.jsx)(`div`,{dangerouslySetInnerHTML:{__html:n.default.parsed.html}})});let r=(0,c.use)(f(n.default.parsed.code)).default;return(0,l.jsx)(`div`,{className:`sleetch-markdown`,children:(0,l.jsx)(r,{components:t})})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=content-r8d8MkOf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-r8d8MkOf.cjs","names":[],"sources":["../../../node_modules/.bun/@mdx-js+mdx@3.1.1/node_modules/@mdx-js/mdx/lib/run.js","../src/components/documentation/page/content.tsx"],"sourcesContent":["/**\n * @import {MDXModule} from 'mdx/types.js'\n * @import {RunOptions} from './util/resolve-evaluate-options.js'\n */\n\n/** @type {new (code: string, ...args: Array<unknown>) => Function} **/\nconst AsyncFunction = Object.getPrototypeOf(run).constructor\n\n/**\n * Run code compiled with `outputFormat: 'function-body'`.\n *\n * > ☢️ **Danger**: this `eval`s JavaScript.\n *\n * @param {{toString(): string}} code\n * JavaScript function body to run.\n * @param {RunOptions} options\n * Configuration (**required**).\n * @return {Promise<MDXModule>}\n * Promise to a module;\n * the result is an object with a `default` field set to the component;\n * anything else that was exported is available too.\n */\nexport async function run(code, options) {\n return new AsyncFunction(String(code))(options)\n}\n\n/**\n * Run code, synchronously.\n *\n * When possible please use the async `run`.\n *\n * > ☢️ **Danger**: this `eval`s JavaScript.\n *\n * @param {{toString(): string}} code\n * JavaScript function body to run.\n * @param {RunOptions} options\n * Configuration (**required**).\n * @return {MDXModule}\n * Module.\n */\nexport function runSync(code, options) {\n // eslint-disable-next-line no-new-func\n return new Function(String(code))(options)\n}\n","import { use } from 'react';\nimport '@sleetch/styles/markdown.css';\nimport '@sleetch/styles/katex.css';\nimport { run } from '@mdx-js/mdx';\nimport * as runtime from 'react/jsx-runtime';\nimport type { MDXComponents } from 'mdx/types';\nimport type { markdown_module } from '@sleetch/core/compiler';\n\nfunction compileMDX(code: string) {\n return run(code, {\n ...runtime,\n baseUrl: import.meta.url,\n });\n}\n\nexport function PageContent({ page, components }: { page: Promise<markdown_module>; components?: MDXComponents }) {\n const value = use(page);\n\n if (value.default.parsed.type == 'html') {\n return (\n <div className=\"sleetch-markdown\">\n <div dangerouslySetInnerHTML={{ __html: value.default.parsed.html }} />\n </div>\n );\n }\n\n const compiled = use(compileMDX(value.default.parsed.code));\n const Content = compiled.default;\n\n return (\n <div className=\"sleetch-markdown\">\n <Content components={components} />\n </div>\n );\n}\n"],"x_google_ignoreList":[0],"mappings":"6hBAMA,IAAM,EAAgB,OAAO,eAAe,CAAG,CAAC,CAAC,YAgBjD,eAAsB,EAAI,EAAM,EAAS,CACvC,OAAO,IAAI,EAAc,OAAO,CAAI,CAAC,CAAC,CAAC,CAAO,CAChD,CChBA,SAAS,EAAW,EAAc,CAChC,OAAO,EAAI,EAAM,CACf,GAAG,EACH,QAAA,CAAA,EAAqB,GACvB,CAAC,CACH,CAEA,SAAgB,EAAY,CAAE,OAAM,cAA8E,CAChH,IAAM,GAAA,EAAA,EAAA,IAAA,CAAY,CAAI,EAEtB,GAAI,EAAM,QAAQ,OAAO,MAAQ,OAC/B,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BACb,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,wBAAyB,CAAE,OAAQ,EAAM,QAAQ,OAAO,IAAK,CAAI,CAAA,CACnE,CAAA,EAKT,IAAM,GAAA,EAAA,EAAA,IAAA,CADe,EAAW,EAAM,QAAQ,OAAO,IAAI,CACzC,CAAA,CAAS,QAEzB,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BACb,EAAA,EAAA,IAAA,CAAC,EAAD,CAAqB,YAAa,CAAA,CAC/B,CAAA,CAET"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CeX9s6vy.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './assets/content.css';//#region ../styles/src/components/documentation/sidebar/content.module.css
|
|
4
|
+
var n = { default: "_default_1txh1_3" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/documentation/sidebar/content.tsx
|
|
7
|
+
function r({ className: r, children: i, ...a }) {
|
|
8
|
+
return /* @__PURE__ */ t("div", {
|
|
9
|
+
className: e(n.default, r),
|
|
10
|
+
...a,
|
|
11
|
+
children: i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=content-x_2bnG7q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-x_2bnG7q.js","names":[],"sources":["../../styles/src/components/documentation/sidebar/content.module.css","../src/components/documentation/sidebar/content.tsx"],"sourcesContent":["@import '../../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n width: 100%;\n flex: 1;\n padding: 0 2em;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .default {\n padding: 0 1.5em;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/sidebar/content.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationSidebarContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationSidebarContent({ className, children, ...props }: DocumentationSidebarContentProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAA4B,EAAE,cAAW,aAAU,GAAG,KAA2C;CAC/G,OACE,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAY,CAAS;EAAG,GAAI;EACrD;CACE,CAAA;AAET"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import './assets/file-system.css';var n = {
|
|
3
|
+
"file-system": "_file-system_1dti3_1",
|
|
4
|
+
folder: "_folder_1dti3_16",
|
|
5
|
+
hidden: "_hidden_1dti3_21",
|
|
6
|
+
row: "_row_1dti3_25",
|
|
7
|
+
folderRow: "_folderRow_1dti3_36",
|
|
8
|
+
icon: "_icon_1dti3_40",
|
|
9
|
+
label: "_label_1dti3_45",
|
|
10
|
+
comment: "_comment_1dti3_51",
|
|
11
|
+
children: "_children_1dti3_59",
|
|
12
|
+
file: "_file_1dti3_1",
|
|
13
|
+
selected: "_selected_1dti3_77"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/file-system.tsx
|
|
17
|
+
function r({ className: t, ...n }) {
|
|
18
|
+
return /* @__PURE__ */ e("svg", {
|
|
19
|
+
className: t,
|
|
20
|
+
width: "16",
|
|
21
|
+
height: "16",
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: "1.75",
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
...n,
|
|
30
|
+
children: /* @__PURE__ */ e("path", { d: "M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z" })
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function i({ className: n, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ t("svg", {
|
|
35
|
+
className: n,
|
|
36
|
+
width: "16",
|
|
37
|
+
height: "16",
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: "none",
|
|
40
|
+
stroke: "currentColor",
|
|
41
|
+
strokeWidth: "1.75",
|
|
42
|
+
strokeLinecap: "round",
|
|
43
|
+
strokeLinejoin: "round",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
...r,
|
|
46
|
+
children: [/* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }), /* @__PURE__ */ e("path", { d: "M14 2v6h6" })]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function a({ children: t, className: r = "" }) {
|
|
50
|
+
return /* @__PURE__ */ e("div", {
|
|
51
|
+
className: "no-sleetch-markdown",
|
|
52
|
+
children: /* @__PURE__ */ e("div", {
|
|
53
|
+
className: [n["file-system"], r].filter(Boolean).join(" "),
|
|
54
|
+
children: t
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function o({ name: i, children: a, hidden: o = !1, className: s = "" }) {
|
|
59
|
+
return /* @__PURE__ */ t("div", {
|
|
60
|
+
className: [
|
|
61
|
+
n.folder,
|
|
62
|
+
o && n.hidden,
|
|
63
|
+
s
|
|
64
|
+
].filter(Boolean).join(" "),
|
|
65
|
+
children: [/* @__PURE__ */ t("div", {
|
|
66
|
+
className: [n.row, n.folderRow].join(" "),
|
|
67
|
+
children: [/* @__PURE__ */ e(r, { className: n.icon }), /* @__PURE__ */ e("span", {
|
|
68
|
+
className: n.label,
|
|
69
|
+
children: i
|
|
70
|
+
})]
|
|
71
|
+
}), a && /* @__PURE__ */ e("div", {
|
|
72
|
+
className: n.children,
|
|
73
|
+
children: a
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function s({ name: r, comment: a, selected: o = !1, className: s = "" }) {
|
|
78
|
+
return /* @__PURE__ */ t("div", {
|
|
79
|
+
className: [
|
|
80
|
+
n.row,
|
|
81
|
+
n.file,
|
|
82
|
+
o && n.selected,
|
|
83
|
+
s
|
|
84
|
+
].filter(Boolean).join(" "),
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ e(i, { className: n.icon }),
|
|
87
|
+
/* @__PURE__ */ e("span", {
|
|
88
|
+
className: n.label,
|
|
89
|
+
children: r
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ e("span", {
|
|
92
|
+
className: n.comment,
|
|
93
|
+
children: a
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { a as n, o as r, s as t };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=file-system-BtXBcLmT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-system-BtXBcLmT.js","names":[],"sources":["../../styles/src/components/file-system.module.css","../src/components/file-system.tsx"],"sourcesContent":[".file-system {\n display: flex;\n flex-direction: column;\n gap: 0.15em;\n color: var(--_sleetch-color-text);\n font-family: var(--_sleetch-font-base);\n font-size: var(--_sleetch-font-size-small);\n line-height: var(--_sleetch-line-height);\n padding: 0.85em;\n background: var(--_sleetch-color-card);\n border-radius: var(--_sleetch-radius);\n border: var(--_sleetch-hr-height) solid var(--_sleetch-color-muted);\n margin: 0 0 1em;\n}\n\n.folder {\n display: flex;\n flex-direction: column;\n}\n\n.folder.hidden {\n opacity: 0.5;\n}\n\n.row {\n display: flex;\n align-items: center;\n gap: 0.55em;\n padding: 0.4em 0.6em;\n border-radius: calc(var(--_sleetch-radius) - 2px);\n transition:\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.folderRow {\n color: var(--_sleetch-color-muted-foreground);\n}\n\n.icon {\n flex-shrink: 0;\n color: currentColor;\n}\n\n.label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.comment {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--_sleetch-color-muted-foreground);\n font-style: italic;\n}\n\n.children {\n display: flex;\n flex-direction: column;\n gap: 0.15em;\n margin-left: 0.75em;\n padding-left: 0.65em;\n border-left: var(--_sleetch-underline-height) solid var(--_sleetch-color-muted);\n}\n\n.file {\n color: var(--_sleetch-color-text);\n cursor: default;\n}\n\n.file:hover {\n background: var(--_sleetch-color-muted);\n}\n\n.file.selected {\n color: var(--_sleetch-color-text-primary);\n background: color-mix(in srgb, var(--_sleetch-color-text-primary) 12%, transparent);\n}\n\n.file.selected:hover {\n background: color-mix(in srgb, var(--_sleetch-color-text-primary) 18%, transparent);\n}\n","import styles from '@sleetch/styles/components/file-system.module.css';\nimport type { ReactNode, SVGProps } from 'react';\n\ninterface IconProps extends SVGProps<SVGSVGElement> {\n className?: string;\n}\n\nfunction FolderIcon({ className, ...props }: IconProps) {\n return (\n <svg\n className={className}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n {...props}\n >\n <path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\" />\n </svg>\n );\n}\n\nfunction FileIcon({ className, ...props }: IconProps) {\n return (\n <svg\n className={className}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n {...props}\n >\n <path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z\" />\n <path d=\"M14 2v6h6\" />\n </svg>\n );\n}\n\nexport interface FilesProps {\n children?: ReactNode;\n className?: string;\n}\n\nexport function FileSystem({ children, className = '' }: FilesProps) {\n return (\n <div className=\"no-sleetch-markdown\">\n <div className={[styles['file-system'], className].filter(Boolean).join(' ')}>{children}</div>\n </div>\n );\n}\n\nexport interface FolderProps {\n name: string;\n children?: ReactNode;\n hidden?: boolean;\n className?: string;\n}\n\nexport function Folder({ name, children, hidden = false, className = '' }: FolderProps) {\n return (\n <div className={[styles.folder, hidden && styles.hidden, className].filter(Boolean).join(' ')}>\n <div className={[styles.row, styles.folderRow].join(' ')}>\n <FolderIcon className={styles.icon} />\n <span className={styles.label}>{name}</span>\n </div>\n {children && <div className={styles.children}>{children}</div>}\n </div>\n );\n}\n\nexport interface FileProps {\n name: string;\n comment?: string;\n selected?: boolean;\n className?: string;\n}\n\nexport function File({ name, comment, selected = false, className = '' }: FileProps) {\n return (\n <div className={[styles.row, styles.file, selected && styles.selected, className].filter(Boolean).join(' ')}>\n <FileIcon className={styles.icon} />\n <span className={styles.label}>{name}</span>\n <span className={styles.comment}>{comment}</span>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;ACOA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAoB;CACtD,OACE,kBAAC,OAAD;EACa;EACX,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,eAAY;EACZ,GAAI;YAEJ,kBAAC,QAAD,EAAM,GAAE,8EAA+E,CAAA;CACpF,CAAA;AAET;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAoB;CACpD,OACE,kBAAC,OAAD;EACa;EACX,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,eAAY;EACZ,GAAI;YAXN,CAaE,kBAAC,QAAD,EAAM,GAAE,6DAA8D,CAAA,GACtE,kBAAC,QAAD,EAAM,GAAE,YAAa,CAAA,CAClB;;AAET;AAOA,SAAgB,EAAW,EAAE,aAAU,eAAY,MAAkB;CACnE,OACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD;GAAK,WAAW,CAAC,EAAO,gBAAgB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;GAAI;EAAc,CAAA;CAC1F,CAAA;AAET;AASA,SAAgB,EAAO,EAAE,SAAM,aAAU,YAAS,IAAO,eAAY,MAAmB;CACtF,OACE,kBAAC,OAAD;EAAK,WAAW;GAAC,EAAO;GAAQ,KAAU,EAAO;GAAQ;EAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;YAA5F,CACE,kBAAC,OAAD;GAAK,WAAW,CAAC,EAAO,KAAK,EAAO,SAAS,CAAC,CAAC,KAAK,GAAG;aAAvD,CACE,kBAAC,GAAD,EAAY,WAAW,EAAO,KAAO,CAAA,GACrC,kBAAC,QAAD;IAAM,WAAW,EAAO;cAAQ;GAAW,CAAA,CACxC;MACJ,KAAY,kBAAC,OAAD;GAAK,WAAW,EAAO;GAAW;EAAc,CAAA,CAC1D;;AAET;AASA,SAAgB,EAAK,EAAE,SAAM,YAAS,cAAW,IAAO,eAAY,MAAiB;CACnF,OACE,kBAAC,OAAD;EAAK,WAAW;GAAC,EAAO;GAAK,EAAO;GAAM,KAAY,EAAO;GAAU;EAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;YAA1G;GACE,kBAAC,GAAD,EAAU,WAAW,EAAO,KAAO,CAAA;GACnC,kBAAC,QAAD;IAAM,WAAW,EAAO;cAAQ;GAAW,CAAA;GAC3C,kBAAC,QAAD;IAAM,WAAW,EAAO;cAAU;GAAc,CAAA;EAC7C;;AAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/file-system.css');let e=require("react/jsx-runtime");var t={"file-system":`_file-system_1dti3_1`,folder:`_folder_1dti3_16`,hidden:`_hidden_1dti3_21`,row:`_row_1dti3_25`,folderRow:`_folderRow_1dti3_36`,icon:`_icon_1dti3_40`,label:`_label_1dti3_45`,comment:`_comment_1dti3_51`,children:`_children_1dti3_59`,file:`_file_1dti3_1`,selected:`_selected_1dti3_77`};function n({className:t,...n}){return(0,e.jsx)(`svg`,{className:t,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n,children:(0,e.jsx)(`path`,{d:`M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z`})})}function r({className:t,...n}){return(0,e.jsxs)(`svg`,{className:t,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n,children:[(0,e.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z`}),(0,e.jsx)(`path`,{d:`M14 2v6h6`})]})}function i({children:n,className:r=``}){return(0,e.jsx)(`div`,{className:`no-sleetch-markdown`,children:(0,e.jsx)(`div`,{className:[t[`file-system`],r].filter(Boolean).join(` `),children:n})})}function a({name:r,children:i,hidden:a=!1,className:o=``}){return(0,e.jsxs)(`div`,{className:[t.folder,a&&t.hidden,o].filter(Boolean).join(` `),children:[(0,e.jsxs)(`div`,{className:[t.row,t.folderRow].join(` `),children:[(0,e.jsx)(n,{className:t.icon}),(0,e.jsx)(`span`,{className:t.label,children:r})]}),i&&(0,e.jsx)(`div`,{className:t.children,children:i})]})}function o({name:n,comment:i,selected:a=!1,className:o=``}){return(0,e.jsxs)(`div`,{className:[t.row,t.file,a&&t.selected,o].filter(Boolean).join(` `),children:[(0,e.jsx)(r,{className:t.icon}),(0,e.jsx)(`span`,{className:t.label,children:n}),(0,e.jsx)(`span`,{className:t.comment,children:i})]})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
2
|
+
//# sourceMappingURL=file-system-Dr4N-WNs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-system-Dr4N-WNs.cjs","names":[],"sources":["../../styles/src/components/file-system.module.css","../src/components/file-system.tsx"],"sourcesContent":[".file-system {\n display: flex;\n flex-direction: column;\n gap: 0.15em;\n color: var(--_sleetch-color-text);\n font-family: var(--_sleetch-font-base);\n font-size: var(--_sleetch-font-size-small);\n line-height: var(--_sleetch-line-height);\n padding: 0.85em;\n background: var(--_sleetch-color-card);\n border-radius: var(--_sleetch-radius);\n border: var(--_sleetch-hr-height) solid var(--_sleetch-color-muted);\n margin: 0 0 1em;\n}\n\n.folder {\n display: flex;\n flex-direction: column;\n}\n\n.folder.hidden {\n opacity: 0.5;\n}\n\n.row {\n display: flex;\n align-items: center;\n gap: 0.55em;\n padding: 0.4em 0.6em;\n border-radius: calc(var(--_sleetch-radius) - 2px);\n transition:\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.folderRow {\n color: var(--_sleetch-color-muted-foreground);\n}\n\n.icon {\n flex-shrink: 0;\n color: currentColor;\n}\n\n.label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.comment {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--_sleetch-color-muted-foreground);\n font-style: italic;\n}\n\n.children {\n display: flex;\n flex-direction: column;\n gap: 0.15em;\n margin-left: 0.75em;\n padding-left: 0.65em;\n border-left: var(--_sleetch-underline-height) solid var(--_sleetch-color-muted);\n}\n\n.file {\n color: var(--_sleetch-color-text);\n cursor: default;\n}\n\n.file:hover {\n background: var(--_sleetch-color-muted);\n}\n\n.file.selected {\n color: var(--_sleetch-color-text-primary);\n background: color-mix(in srgb, var(--_sleetch-color-text-primary) 12%, transparent);\n}\n\n.file.selected:hover {\n background: color-mix(in srgb, var(--_sleetch-color-text-primary) 18%, transparent);\n}\n","import styles from '@sleetch/styles/components/file-system.module.css';\nimport type { ReactNode, SVGProps } from 'react';\n\ninterface IconProps extends SVGProps<SVGSVGElement> {\n className?: string;\n}\n\nfunction FolderIcon({ className, ...props }: IconProps) {\n return (\n <svg\n className={className}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n {...props}\n >\n <path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\" />\n </svg>\n );\n}\n\nfunction FileIcon({ className, ...props }: IconProps) {\n return (\n <svg\n className={className}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n {...props}\n >\n <path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z\" />\n <path d=\"M14 2v6h6\" />\n </svg>\n );\n}\n\nexport interface FilesProps {\n children?: ReactNode;\n className?: string;\n}\n\nexport function FileSystem({ children, className = '' }: FilesProps) {\n return (\n <div className=\"no-sleetch-markdown\">\n <div className={[styles['file-system'], className].filter(Boolean).join(' ')}>{children}</div>\n </div>\n );\n}\n\nexport interface FolderProps {\n name: string;\n children?: ReactNode;\n hidden?: boolean;\n className?: string;\n}\n\nexport function Folder({ name, children, hidden = false, className = '' }: FolderProps) {\n return (\n <div className={[styles.folder, hidden && styles.hidden, className].filter(Boolean).join(' ')}>\n <div className={[styles.row, styles.folderRow].join(' ')}>\n <FolderIcon className={styles.icon} />\n <span className={styles.label}>{name}</span>\n </div>\n {children && <div className={styles.children}>{children}</div>}\n </div>\n );\n}\n\nexport interface FileProps {\n name: string;\n comment?: string;\n selected?: boolean;\n className?: string;\n}\n\nexport function File({ name, comment, selected = false, className = '' }: FileProps) {\n return (\n <div className={[styles.row, styles.file, selected && styles.selected, className].filter(Boolean).join(' ')}>\n <FileIcon className={styles.icon} />\n <span className={styles.label}>{name}</span>\n <span className={styles.comment}>{comment}</span>\n </div>\n );\n}\n"],"mappings":"mVCOA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAoB,CACtD,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CACa,YACX,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAY,OACZ,cAAc,QACd,eAAe,QACf,cAAY,OACZ,GAAI,YAEJ,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,6EAA+E,CAAA,CACpF,CAAA,CAET,CAEA,SAAS,EAAS,CAAE,YAAW,GAAG,GAAoB,CACpD,OACE,EAAA,EAAA,KAAA,CAAC,MAAD,CACa,YACX,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAY,OACZ,cAAc,QACd,eAAe,QACf,cAAY,OACZ,GAAI,WAXN,EAaE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,4DAA8D,CAAA,GACtE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,WAAa,CAAA,CAClB,GAET,CAOA,SAAgB,EAAW,CAAE,WAAU,YAAY,IAAkB,CACnE,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,gCACb,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,eAAgB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAI,UAAc,CAAA,CAC1F,CAAA,CAET,CASA,SAAgB,EAAO,CAAE,OAAM,WAAU,SAAS,GAAO,YAAY,IAAmB,CACtF,OACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,OAAQ,GAAU,EAAO,OAAQ,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,WAA5F,EACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,IAAK,EAAO,SAAS,CAAC,CAAC,KAAK,GAAG,WAAvD,EACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAY,UAAW,EAAO,IAAO,CAAA,GACrC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,eAAQ,CAAW,CAAA,CACxC,IACJ,IAAY,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAO,SAAW,UAAc,CAAA,CAC1D,GAET,CASA,SAAgB,EAAK,CAAE,OAAM,UAAS,WAAW,GAAO,YAAY,IAAiB,CACnF,OACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,IAAK,EAAO,KAAM,GAAY,EAAO,SAAU,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,WAA1G,EACE,EAAA,EAAA,IAAA,CAAC,EAAD,CAAU,UAAW,EAAO,IAAO,CAAA,GACnC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,eAAQ,CAAW,CAAA,GAC3C,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,iBAAU,CAAc,CAAA,CAC7C,GAET"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CeX9s6vy.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import './assets/header.css';//#region ../styles/src/components/documentation/header.module.css
|
|
4
|
+
var r = {
|
|
5
|
+
default: "_default_1qrxa_3",
|
|
6
|
+
"menu-toggle": "_menu-toggle_1qrxa_18"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/documentation/header.tsx
|
|
10
|
+
function i({ className: i, children: a, onMenuToggle: o, ...s }) {
|
|
11
|
+
return /* @__PURE__ */ n("div", {
|
|
12
|
+
className: e(r.default, i),
|
|
13
|
+
...s,
|
|
14
|
+
children: [o && /* @__PURE__ */ t("button", {
|
|
15
|
+
className: r["menu-toggle"],
|
|
16
|
+
onClick: o,
|
|
17
|
+
"aria-label": "Toggle sidebar",
|
|
18
|
+
type: "button",
|
|
19
|
+
children: /* @__PURE__ */ n("svg", {
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
width: "24",
|
|
22
|
+
height: "24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: "2",
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ t("line", {
|
|
30
|
+
x1: "3",
|
|
31
|
+
y1: "12",
|
|
32
|
+
x2: "21",
|
|
33
|
+
y2: "12"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ t("line", {
|
|
36
|
+
x1: "3",
|
|
37
|
+
y1: "6",
|
|
38
|
+
x2: "21",
|
|
39
|
+
y2: "6"
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ t("line", {
|
|
42
|
+
x1: "3",
|
|
43
|
+
y1: "18",
|
|
44
|
+
x2: "21",
|
|
45
|
+
y2: "18"
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
}), a]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { i as t };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=header-D59bdlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-D59bdlay.js","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n height: var(--_sleetch-header-height);\n background-color: color-mix(in srgb, var(--_sleetch-color-card) 30%, transparent);\n backdrop-filter: blur(15px);\n border-bottom: 1px solid var(--_sleetch-color-muted);\n position: sticky;\n top: 0;\n display: flex;\n align-items: center;\n padding: 0 2em;\n gap: 1em;\n z-index: 100;\n}\n\n.menu-toggle {\n display: none;\n background: none;\n border: none;\n color: var(--_sleetch-color-text);\n cursor: pointer;\n padding: 0.5em;\n border-radius: var(--_sleetch-radius);\n transition: background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.menu-toggle:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n.menu-toggle:active {\n transform: scale(0.95);\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n\n .menu-toggle {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/header.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationHeaderProps extends BaseHTMLAttributes<HTMLDivElement> {\n onMenuToggle?: () => void;\n}\n\nexport function DocumentationHeader({ className, children, onMenuToggle, ...props }: DocumentationHeaderProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {onMenuToggle && (\n <button className={styles['menu-toggle']} onClick={onMenuToggle} aria-label=\"Toggle sidebar\" type=\"button\">\n <svg\n viewBox=\"0 0 24 24\"\n width=\"24\"\n height=\"24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <line x1=\"3\" y1=\"12\" x2=\"21\" y2=\"12\" />\n <line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\" />\n <line x1=\"3\" y1=\"18\" x2=\"21\" y2=\"18\" />\n </svg>\n </button>\n )}\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;ACQA,SAAgB,EAAoB,EAAE,cAAW,aAAU,iBAAc,GAAG,KAAmC;CAC7G,OACE,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAY,CAAS;EAAG,GAAI;YAAxD,CACG,KACC,kBAAC,UAAD;GAAQ,WAAW,EAAO;GAAgB,SAAS;GAAc,cAAW;GAAiB,MAAK;aAChG,kBAAC,OAAD;IACE,SAAQ;IACR,OAAM;IACN,QAAO;IACP,MAAK;IACL,QAAO;IACP,aAAY;IACZ,eAAc;IACd,gBAAe;cARjB;KAUE,kBAAC,QAAD;MAAM,IAAG;MAAI,IAAG;MAAK,IAAG;MAAK,IAAG;KAAM,CAAA;KACtC,kBAAC,QAAD;MAAM,IAAG;MAAI,IAAG;MAAI,IAAG;MAAK,IAAG;KAAK,CAAA;KACpC,kBAAC,QAAD;MAAM,IAAG;MAAI,IAAG;MAAK,IAAG;MAAK,IAAG;KAAM,CAAA;IACnC;;EACC,CAAA,GAET,CACE;;AAET"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/header.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1qrxa_3`,"menu-toggle":`_menu-toggle_1qrxa_18`};function r({className:r,children:i,onMenuToggle:a,...o}){return(0,t.jsxs)(`div`,{className:e.t(n.default,r),...o,children:[a&&(0,t.jsx)(`button`,{className:n[`menu-toggle`],onClick:a,"aria-label":`Toggle sidebar`,type:`button`,children:(0,t.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`24`,height:`24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,t.jsx)(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),(0,t.jsx)(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),(0,t.jsx)(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})]})}),i]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=header-DbR9X4YP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-DbR9X4YP.cjs","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n height: var(--_sleetch-header-height);\n background-color: color-mix(in srgb, var(--_sleetch-color-card) 30%, transparent);\n backdrop-filter: blur(15px);\n border-bottom: 1px solid var(--_sleetch-color-muted);\n position: sticky;\n top: 0;\n display: flex;\n align-items: center;\n padding: 0 2em;\n gap: 1em;\n z-index: 100;\n}\n\n.menu-toggle {\n display: none;\n background: none;\n border: none;\n color: var(--_sleetch-color-text);\n cursor: pointer;\n padding: 0.5em;\n border-radius: var(--_sleetch-radius);\n transition: background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.menu-toggle:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n.menu-toggle:active {\n transform: scale(0.95);\n}\n\n@media (max-width: 768px) {\n .default {\n padding: 0 1em;\n }\n\n .menu-toggle {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n","import type { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/header.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationHeaderProps extends BaseHTMLAttributes<HTMLDivElement> {\n onMenuToggle?: () => void;\n}\n\nexport function DocumentationHeader({ className, children, onMenuToggle, ...props }: DocumentationHeaderProps) {\n return (\n <div className={clsx(styles['default'], className)} {...props}>\n {onMenuToggle && (\n <button className={styles['menu-toggle']} onClick={onMenuToggle} aria-label=\"Toggle sidebar\" type=\"button\">\n <svg\n viewBox=\"0 0 24 24\"\n width=\"24\"\n height=\"24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <line x1=\"3\" y1=\"12\" x2=\"21\" y2=\"12\" />\n <line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\" />\n <line x1=\"3\" y1=\"18\" x2=\"21\" y2=\"18\" />\n </svg>\n </button>\n )}\n {children}\n </div>\n );\n}\n"],"mappings":"mJCQA,SAAgB,EAAoB,CAAE,YAAW,WAAU,eAAc,GAAG,GAAmC,CAC7G,OACE,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,WAAxD,CACG,IACC,EAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAW,EAAO,eAAgB,QAAS,EAAc,aAAW,iBAAiB,KAAK,mBAChG,EAAA,EAAA,KAAA,CAAC,MAAD,CACE,QAAQ,YACR,MAAM,KACN,OAAO,KACP,KAAK,OACL,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,iBARjB,EAUE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAM,CAAA,GACtC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,GAAK,CAAA,GACpC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAM,CAAA,CACnC,GACC,CAAA,EAET,CACE,GAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./content-r8d8MkOf.cjs"),t=require("./sidebar-DGEZFbBi.cjs"),n=require("./content-CePPkmqw.cjs"),r=require("./layout-D6mjobyq.cjs"),i=require("./components/documentation/connected-sidebar.cjs.js"),a=require("./header-DbR9X4YP.cjs"),o=require("./components/documentation/connected-header.cjs.js"),s=require("./content-_OkOg-pq.cjs"),c=require("./toc-CMwm46RH.cjs"),l=require("./content-D_P9xOgL.cjs"),u=require("./button-DWM5D_of.cjs"),d=require("./components/documentation/page/header.cjs.js"),f=require("./navigation-BdVu1Uh-.cjs"),p=require("./file-system-Dr4N-WNs.cjs");exports.Button=u.t,exports.ConnectedDocumentationHeader=o.ConnectedDocumentationHeader,exports.ConnectedDocumentationSidebar=i.ConnectedDocumentationSidebar,exports.DocumentationContent=s.t,exports.DocumentationHeader=a.t,exports.DocumentationLayout=r.t,exports.DocumentationSidebar=t.t,exports.DocumentationSidebarContent=n.t,exports.DocumentationToc=c.t,exports.DocumentationTocContent=l.t,exports.File=p.t,exports.FileSystem=p.n,exports.Folder=p.r,exports.PageContent=e.t,exports.PageHeader=d.PageHeader,exports.PageNavigation=f.t,exports.useDocumentationLayout=r.n;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DocumentationSidebar } from './components/documentation/sidebar';
|
|
2
|
+
export { DocumentationSidebarContent } from './components/documentation/sidebar/content';
|
|
3
|
+
export { ConnectedDocumentationSidebar } from './components/documentation/connected-sidebar';
|
|
4
|
+
export { DocumentationLayout, useDocumentationLayout } from './components/documentation/layout';
|
|
5
|
+
export { DocumentationHeader } from './components/documentation/header';
|
|
6
|
+
export { ConnectedDocumentationHeader } from './components/documentation/connected-header';
|
|
7
|
+
export { DocumentationContent } from './components/documentation/content';
|
|
8
|
+
export { DocumentationToc } from './components/documentation/toc';
|
|
9
|
+
export { DocumentationTocContent } from './components/documentation/toc/content';
|
|
10
|
+
export { PageContent } from './components/documentation/page/content';
|
|
11
|
+
export { PageHeader } from './components/documentation/page/header';
|
|
12
|
+
export { PageNavigation } from './components/documentation/page/navigation';
|
|
13
|
+
export { FileSystem, File, Folder } from './components/file-system';
|
|
14
|
+
export { Button } from './components/button';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./sidebar-DgVlWEfQ.js";
|
|
3
|
+
import { t } from "./content-x_2bnG7q.js";
|
|
4
|
+
import { n, t as r } from "./layout-BRE4zrjG.js";
|
|
5
|
+
import { ConnectedDocumentationSidebar as i } from "./components/documentation/connected-sidebar.esm.js";
|
|
6
|
+
import { t as a } from "./header-D59bdlay.js";
|
|
7
|
+
import { ConnectedDocumentationHeader as o } from "./components/documentation/connected-header.esm.js";
|
|
8
|
+
import { t as s } from "./content-mbVWCXX0.js";
|
|
9
|
+
import { t as c } from "./toc-BuFdWsti.js";
|
|
10
|
+
import { t as l } from "./content-CRXZ7aLX.js";
|
|
11
|
+
import { t as u } from "./content-DusAp8Q6.js";
|
|
12
|
+
import { t as d } from "./button-B1pw1TFm.js";
|
|
13
|
+
import { PageHeader as f } from "./components/documentation/page/header.esm.js";
|
|
14
|
+
import { t as p } from "./navigation-kP1-q7Ux.js";
|
|
15
|
+
import { n as m, r as h, t as g } from "./file-system-BtXBcLmT.js";
|
|
16
|
+
export { d as Button, o as ConnectedDocumentationHeader, i as ConnectedDocumentationSidebar, s as DocumentationContent, a as DocumentationHeader, r as DocumentationLayout, e as DocumentationSidebar, t as DocumentationSidebarContent, c as DocumentationToc, l as DocumentationTocContent, g as File, m as FileSystem, h as Folder, u as PageContent, f as PageHeader, p as PageNavigation, n as useDocumentationLayout };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CeX9s6vy.js";
|
|
2
|
+
import { createContext as t, useContext as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import './assets/layout.css';//#region ../styles/src/components/documentation/layout.module.css
|
|
5
|
+
var a = { default: "_default_1till_3" }, o = t(null);
|
|
6
|
+
function s() {
|
|
7
|
+
let e = n(o);
|
|
8
|
+
if (!e) throw Error("useDocumentationLayout must be used within DocumentationLayout");
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
function c({ children: t, className: n, ...s }) {
|
|
12
|
+
let [c, l] = r(!1);
|
|
13
|
+
return /* @__PURE__ */ i(o.Provider, {
|
|
14
|
+
value: {
|
|
15
|
+
isSidebarOpen: c,
|
|
16
|
+
toggleSidebar: () => l((e) => !e),
|
|
17
|
+
closeSidebar: () => l(!1)
|
|
18
|
+
},
|
|
19
|
+
children: /* @__PURE__ */ i("main", {
|
|
20
|
+
className: e(a.default, n),
|
|
21
|
+
...s,
|
|
22
|
+
children: t
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { s as n, c as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=layout-BRE4zrjG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-BRE4zrjG.js","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-background);\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n}\n","import type { ReactNode, BaseHTMLAttributes } from 'react';\nimport { createContext, useContext, useState } from 'react';\nimport styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\ninterface LayoutContextType {\n isSidebarOpen: boolean;\n toggleSidebar: () => void;\n closeSidebar: () => void;\n}\n\nconst LayoutContext = createContext<LayoutContextType | null>(null);\n\nexport function useDocumentationLayout() {\n const context = useContext(LayoutContext);\n if (!context) {\n throw new Error('useDocumentationLayout must be used within DocumentationLayout');\n }\n return context;\n}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n const [isSidebarOpen, setIsSidebarOpen] = useState(false);\n\n const toggleSidebar = () => setIsSidebarOpen((prev) => !prev);\n const closeSidebar = () => setIsSidebarOpen(false);\n\n return (\n <LayoutContext.Provider value={{ isSidebarOpen, toggleSidebar, closeSidebar }}>\n <main className={clsx(styles['default'], className)} {...props}>\n {children}\n </main>\n </LayoutContext.Provider>\n );\n}\n"],"mappings":";;;;yCCaM,IAAgB,EAAwC,IAAI;AAElE,SAAgB,IAAyB;CACvC,IAAM,IAAU,EAAW,CAAa;CACxC,IAAI,CAAC,GACH,MAAU,MAAM,gEAAgE;CAElF,OAAO;AACT;AAEA,SAAgB,EAAoB,EAAE,aAAU,cAAW,GAAG,KAAmC;CAC/F,IAAM,CAAC,GAAe,KAAoB,EAAS,EAAK;CAKxD,OACE,kBAAC,EAAc,UAAf;EAAwB,OAAO;GAAE;GAAe,qBAJtB,GAAkB,MAAS,CAAC,CAAI;GAIK,oBAHtC,EAAiB,EAAK;EAG6B;YAC1E,kBAAC,QAAD;GAAM,WAAW,EAAK,EAAO,SAAY,CAAS;GAAG,GAAI;GACtD;EACG,CAAA;CACgB,CAAA;AAE5B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/layout.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={default:`_default_1till_3`},i=(0,t.createContext)(null);function a(){let e=(0,t.useContext)(i);if(!e)throw Error(`useDocumentationLayout must be used within DocumentationLayout`);return e}function o({children:a,className:o,...s}){let[c,l]=(0,t.useState)(!1);return(0,n.jsx)(i.Provider,{value:{isSidebarOpen:c,toggleSidebar:()=>l(e=>!e),closeSidebar:()=>l(!1)},children:(0,n.jsx)(`main`,{className:e.t(r.default,o),...s,children:a})})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
2
|
+
//# sourceMappingURL=layout-D6mjobyq.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-D6mjobyq.cjs","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":["@import '../../variables.css';\n\n.default {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-background);\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n}\n","import type { ReactNode, BaseHTMLAttributes } from 'react';\nimport { createContext, useContext, useState } from 'react';\nimport styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\ninterface LayoutContextType {\n isSidebarOpen: boolean;\n toggleSidebar: () => void;\n closeSidebar: () => void;\n}\n\nconst LayoutContext = createContext<LayoutContextType | null>(null);\n\nexport function useDocumentationLayout() {\n const context = useContext(LayoutContext);\n if (!context) {\n throw new Error('useDocumentationLayout must be used within DocumentationLayout');\n }\n return context;\n}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n const [isSidebarOpen, setIsSidebarOpen] = useState(false);\n\n const toggleSidebar = () => setIsSidebarOpen((prev) => !prev);\n const closeSidebar = () => setIsSidebarOpen(false);\n\n return (\n <LayoutContext.Provider value={{ isSidebarOpen, toggleSidebar, closeSidebar }}>\n <main className={clsx(styles['default'], className)} {...props}>\n {children}\n </main>\n </LayoutContext.Provider>\n );\n}\n"],"mappings":"gICaM,GAAA,EAAA,EAAA,cAAA,CAAwD,IAAI,EAElE,SAAgB,GAAyB,CACvC,IAAM,GAAA,EAAA,EAAA,WAAA,CAAqB,CAAa,EACxC,GAAI,CAAC,EACH,MAAU,MAAM,gEAAgE,EAElF,OAAO,CACT,CAEA,SAAgB,EAAoB,CAAE,WAAU,YAAW,GAAG,GAAmC,CAC/F,GAAM,CAAC,EAAe,IAAA,EAAA,EAAA,SAAA,CAA6B,EAAK,EAKxD,OACE,EAAA,EAAA,IAAA,CAAC,EAAc,SAAf,CAAwB,MAAO,CAAE,gBAAe,kBAJtB,EAAkB,GAAS,CAAC,CAAI,EAIK,iBAHtC,EAAiB,EAAK,CAG6B,YAC1E,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,EACtD,UACG,CAAA,CACgB,CAAA,CAE5B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/navigation.css');const e=require("./clsx-CPcBvw4Z.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={navigation:`_navigation_fckni_3`,slot:`_slot_fckni_12`,"slot-end":`_slot-end_fckni_16`,card:`_card_fckni_20`,next:`_next_fckni_47`,previous:`_previous_fckni_52`,meta:`_meta_fckni_57`,chevron:`_chevron_fckni_65`,title:`_title_fckni_71`,description:`_description_fckni_78`},i=e=>e;function a(e){return e.children.find(e=>e.type===`data`)}function o(e){return e.children.find(e=>e.type===`page`&&e.index===!0)}function s(e){return e.type===`category`?a(e)?.frontmatter?.order??1/0:e.type===`page`?e.frontmatter.order??1/0:1/0}function c(e){return e.map((e,t)=>({node:e,index:t})).filter(({node:e})=>e.type!==`data`).sort((e,t)=>{let n=s(e.node)-s(t.node);return n===0?e.index-t.index:n}).map(({node:e})=>e)}function l(e){let t=c(e),n=[];for(let e of t){if(e.type===`page`){n.push(e);continue}if(e.type===`category`){let t=o(e);t&&n.push(t);let r=e.children.filter(e=>e.type!==`data`&&!(e.type===`page`&&e.index===!0));n.push(...l(r))}}return n}function u(){return(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:r.chevron,children:(0,n.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}function d(){return(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:r.chevron,children:(0,n.jsx)(`polyline`,{points:`9 18 15 12 9 6`})})}function f(e,t){return e&&e!==`No title.`?e:t}function p(e){return e&&e!==`No description.`?e:void 0}function m({node:t,direction:i,hrefBuilder:a}){let o=f(t.frontmatter.title,t.path),s=p(t.frontmatter.description);return(0,n.jsxs)(`a`,{href:a(t.path),className:e.t(r.card,r[i]),"data-direction":i,children:[(0,n.jsxs)(`span`,{className:r.meta,children:[i===`previous`&&(0,n.jsx)(u,{}),(0,n.jsx)(`span`,{className:r.title,children:o}),i===`next`&&(0,n.jsx)(d,{})]}),s&&(0,n.jsx)(`span`,{className:r.description,children:s})]})}function h({className:a,tree:o,currentPath:s,hrefBuilder:c=i,...u}){let{previous:d,next:f}=(0,t.useMemo)(()=>{let e=l(o),t=e.findIndex(e=>e.path===s);return t===-1?{previous:void 0,next:void 0}:{previous:e[t-1],next:e[t+1]}},[o,s]);return!d&&!f?null:(0,n.jsxs)(`nav`,{className:e.t(r.navigation,a),"aria-label":`Pagination`,...u,children:[(0,n.jsx)(`div`,{className:r.slot,children:d&&(0,n.jsx)(m,{node:d,direction:`previous`,hrefBuilder:c})}),(0,n.jsx)(`div`,{className:e.t(r.slot,r[`slot-end`]),children:f&&(0,n.jsx)(m,{node:f,direction:`next`,hrefBuilder:c})})]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
|
2
|
+
//# sourceMappingURL=navigation-BdVu1Uh-.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-BdVu1Uh-.cjs","names":[],"sources":["../../styles/src/components/documentation/page/navigation.module.css","../src/components/documentation/page/navigation.tsx"],"sourcesContent":["@import '../../../variables.css';\n\n.navigation {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 1em;\n padding: var(--_sleetch-padding-root);\n padding-top: 0px;\n font-family: var(--_sleetch-font-base);\n}\n\n.slot {\n display: flex;\n}\n\n.slot-end {\n justify-content: flex-end;\n}\n\n.card {\n display: flex;\n flex-direction: column;\n gap: 0.25em;\n width: 100%;\n max-width: 320px;\n padding: 1em 1em;\n border-radius: var(--_sleetch-radius);\n border: var(--_sleetch-hr-height) solid var(--_sleetch-color-muted);\n color: var(--_sleetch-color-text);\n text-decoration: none;\n transition:\n border-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.card:hover,\n.card:focus-visible {\n border-color: var(--_sleetch-color-text-primary);\n background-color: color-mix(in srgb, var(--_sleetch-color-text-primary) 8%, var(--_sleetch-color-card));\n}\n\n.card:focus-visible {\n outline: 2px solid var(--_sleetch-color-text-primary);\n outline-offset: 2px;\n}\n\n.next {\n align-items: flex-end;\n text-align: right;\n}\n\n.previous {\n align-items: flex-start;\n text-align: left;\n}\n\n.meta {\n display: flex;\n align-items: center;\n gap: 0.3em;\n font-size: var(--_sleetch-font-size-tiny);\n color: var(--_sleetch-color-muted-foreground);\n}\n\n.chevron {\n flex-shrink: 0;\n width: 20px;\n height: 20px;\n}\n\n.title {\n font-size: var(--_sleetch-font-size-base);\n font-weight: var(--_sleetch-font-weight-heading);\n line-height: var(--_sleetch-line-height-heading);\n color: var(--_sleetch-color-text);\n}\n\n.description {\n font-size: var(--_sleetch-font-size-tiny);\n line-height: var(--_sleetch-line-height);\n color: var(--_sleetch-color-muted-foreground);\n overflow: hidden;\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .navigation {\n padding: 1.5em 2em;\n }\n}\n\n@media (max-width: 768px) {\n .card {\n max-width: 100%;\n }\n\n .navigation {\n grid-template-columns: 1fr;\n\n padding: 1em 1em;\n }\n\n .slot-end {\n justify-content: flex-start;\n }\n\n .next {\n align-items: flex-start;\n text-align: left;\n }\n}\n","/*\n AI Generated :(\n Needs more testing\n*/\n\nimport { useMemo, type BaseHTMLAttributes } from 'react';\nimport clsx from 'clsx';\nimport styles from '@sleetch/styles/components/documentation/page/navigation.module.css';\nimport type { tree_object } from '@sleetch/core/compiler';\n\ntype category_node = Extract<tree_object, { type: 'category' }>;\ntype page_node = Extract<tree_object, { type: 'page' }>;\ntype data_node = Extract<tree_object, { type: 'data' }>;\n\nexport interface DocumentationNavigationProps extends BaseHTMLAttributes<HTMLDivElement> {\n tree: tree_object[];\n currentPath: string;\n hrefBuilder?: (path: string) => string;\n}\n\nconst defaultHrefBuilder = (path: string) => path;\n\n/*\n Meme logique de tri/priorite que la sidebar (getCategoryData, getCategoryIndex,\n getOrder, sortNodes) pour garantir que l'ordre de navigation prev/next\n corresponde exactement a l'ordre affiche dans la sidebar.\n*/\n\nfunction getCategoryData(category: category_node): data_node | undefined {\n return category.children.find((c): c is data_node => c.type === 'data');\n}\n\nfunction getCategoryIndex(category: category_node): page_node | undefined {\n return category.children.find((c): c is page_node => c.type === 'page' && c.index === true);\n}\n\nfunction getOrder(node: tree_object): number {\n if (node.type === 'category') {\n const data = getCategoryData(node);\n return data?.frontmatter?.order ?? Number.POSITIVE_INFINITY;\n }\n if (node.type === 'page') {\n return (node.frontmatter as { order?: number }).order ?? Number.POSITIVE_INFINITY;\n }\n return Number.POSITIVE_INFINITY;\n}\n\nfunction sortNodes(nodes: tree_object[]): tree_object[] {\n return nodes\n .map((node, index) => ({ node, index }))\n .filter(({ node }) => node.type !== 'data')\n .sort((a, b) => {\n const diff = getOrder(a.node) - getOrder(b.node);\n return diff !== 0 ? diff : a.index - b.index;\n })\n .map(({ node }) => node);\n}\n\n/*\n Aplatit l'arbre en une liste ordonnee de pages navigables :\n - l'index d'une categorie arrive en premier (c'est le point d'entree),\n - suivi de ses enfants tries recursivement.\n*/\nfunction flattenPages(nodes: tree_object[]): page_node[] {\n const sorted = sortNodes(nodes);\n const result: page_node[] = [];\n\n for (const node of sorted) {\n if (node.type === 'page') {\n result.push(node);\n continue;\n }\n\n if (node.type === 'category') {\n const indexPage = getCategoryIndex(node);\n if (indexPage) result.push(indexPage);\n\n const rest = node.children.filter((c) => c.type !== 'data' && !(c.type === 'page' && c.index === true));\n result.push(...flattenPages(rest));\n }\n }\n\n return result;\n}\n\nfunction ChevronLeft() {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={styles['chevron']}\n >\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n );\n}\n\nfunction ChevronRight() {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={styles['chevron']}\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n );\n}\n\nfunction resolveTitle(title: string, fallbackPath: string): string {\n return title && title !== 'No title.' ? title : fallbackPath;\n}\n\nfunction resolveDescription(description: string): string | undefined {\n return description && description !== 'No description.' ? description : undefined;\n}\n\ninterface NavigationCardProps {\n node: page_node;\n direction: 'previous' | 'next';\n hrefBuilder: (path: string) => string;\n}\n\nfunction NavigationCard({ node, direction, hrefBuilder }: NavigationCardProps) {\n const title = resolveTitle(node.frontmatter.title, node.path);\n const description = resolveDescription(node.frontmatter.description);\n\n return (\n <a href={hrefBuilder(node.path)} className={clsx(styles['card'], styles[direction])} data-direction={direction}>\n <span className={styles['meta']}>\n {direction === 'previous' && <ChevronLeft />}\n <span className={styles['title']}>{title}</span>\n {direction === 'next' && <ChevronRight />}\n </span>\n {description && <span className={styles['description']}>{description}</span>}\n </a>\n );\n}\n\nexport function PageNavigation({ className, tree, currentPath, hrefBuilder = defaultHrefBuilder, ...props }: DocumentationNavigationProps) {\n const { previous, next } = useMemo(() => {\n const pages = flattenPages(tree);\n const currentIndex = pages.findIndex((page) => page.path === currentPath);\n\n if (currentIndex === -1) {\n return { previous: undefined, next: undefined };\n }\n\n return {\n previous: pages[currentIndex - 1],\n next: pages[currentIndex + 1],\n };\n }, [tree, currentPath]);\n\n if (!previous && !next) return null;\n\n return (\n <nav className={clsx(styles['navigation'], className)} aria-label=\"Pagination\" {...props}>\n <div className={styles['slot']}>{previous && <NavigationCard node={previous} direction=\"previous\" hrefBuilder={hrefBuilder} />}</div>\n <div className={clsx(styles['slot'], styles['slot-end'])}>\n {next && <NavigationCard node={next} direction=\"next\" hrefBuilder={hrefBuilder} />}\n </div>\n </nav>\n );\n}\n"],"mappings":"oXCoBM,EAAsB,GAAiB,EAQ7C,SAAS,EAAgB,EAAgD,CACvE,OAAO,EAAS,SAAS,KAAM,GAAsB,EAAE,OAAS,MAAM,CACxE,CAEA,SAAS,EAAiB,EAAgD,CACxE,OAAO,EAAS,SAAS,KAAM,GAAsB,EAAE,OAAS,QAAU,EAAE,QAAU,EAAI,CAC5F,CAEA,SAAS,EAAS,EAA2B,CAQ3C,OAPI,EAAK,OAAS,WACH,EAAgB,CACtB,CAAA,EAAM,aAAa,OAAS,IAEjC,EAAK,OAAS,OACR,EAAK,YAAmC,OAAS,IAEpD,GACT,CAEA,SAAS,EAAU,EAAqC,CACtD,OAAO,EACJ,KAAK,EAAM,KAAW,CAAE,OAAM,OAAM,EAAE,CAAC,CACvC,QAAQ,CAAE,UAAW,EAAK,OAAS,MAAM,CAAC,CAC1C,MAAM,EAAG,IAAM,CACd,IAAM,EAAO,EAAS,EAAE,IAAI,EAAI,EAAS,EAAE,IAAI,EAC/C,OAAO,IAAS,EAAW,EAAE,MAAQ,EAAE,MAAnB,CACtB,CAAC,CAAC,CACD,KAAK,CAAE,UAAW,CAAI,CAC3B,CAOA,SAAS,EAAa,EAAmC,CACvD,IAAM,EAAS,EAAU,CAAK,EACxB,EAAsB,CAAC,EAE7B,IAAK,IAAM,KAAQ,EAAQ,CACzB,GAAI,EAAK,OAAS,OAAQ,CACxB,EAAO,KAAK,CAAI,EAChB,QACF,CAEA,GAAI,EAAK,OAAS,WAAY,CAC5B,IAAM,EAAY,EAAiB,CAAI,EACnC,GAAW,EAAO,KAAK,CAAS,EAEpC,IAAM,EAAO,EAAK,SAAS,OAAQ,GAAM,EAAE,OAAS,QAAU,EAAE,EAAE,OAAS,QAAU,EAAE,QAAU,GAAK,EACtG,EAAO,KAAK,GAAG,EAAa,CAAI,CAAC,CACnC,CACF,CAEA,OAAO,CACT,CAEA,SAAS,GAAc,CACrB,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CACE,QAAQ,YACR,MAAM,KACN,OAAO,KACP,KAAK,OACL,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACf,UAAW,EAAO,kBAElB,EAAA,EAAA,IAAA,CAAC,WAAD,CAAU,OAAO,iBAAmB,CAAA,CACjC,CAAA,CAET,CAEA,SAAS,GAAe,CACtB,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CACE,QAAQ,YACR,MAAM,KACN,OAAO,KACP,KAAK,OACL,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACf,UAAW,EAAO,kBAElB,EAAA,EAAA,IAAA,CAAC,WAAD,CAAU,OAAO,gBAAkB,CAAA,CAChC,CAAA,CAET,CAEA,SAAS,EAAa,EAAe,EAA8B,CACjE,OAAO,GAAS,IAAU,YAAc,EAAQ,CAClD,CAEA,SAAS,EAAmB,EAAyC,CACnE,OAAO,GAAe,IAAgB,kBAAoB,EAAc,IAAA,EAC1E,CAQA,SAAS,EAAe,CAAE,OAAM,YAAW,eAAoC,CAC7E,IAAM,EAAQ,EAAa,EAAK,YAAY,MAAO,EAAK,IAAI,EACtD,EAAc,EAAmB,EAAK,YAAY,WAAW,EAEnE,OACE,EAAA,EAAA,KAAA,CAAC,IAAD,CAAG,KAAM,EAAY,EAAK,IAAI,EAAG,UAAW,EAAA,EAAK,EAAO,KAAS,EAAO,EAAU,EAAG,iBAAgB,WAArG,EACE,EAAA,EAAA,KAAA,CAAC,OAAD,CAAM,UAAW,EAAO,cAAxB,CACG,IAAc,aAAc,EAAA,EAAA,IAAA,CAAC,EAAD,CAAc,CAAA,GAC3C,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,eAAW,CAAY,CAAA,EAC9C,IAAc,SAAU,EAAA,EAAA,IAAA,CAAC,EAAD,CAAe,CAAA,CACpC,IACL,IAAe,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,qBAAiB,CAAkB,CAAA,CAC1E,GAEP,CAEA,SAAgB,EAAe,CAAE,YAAW,OAAM,cAAa,cAAc,EAAoB,GAAG,GAAuC,CACzI,GAAM,CAAE,WAAU,SAAA,EAAA,EAAA,QAAA,KAAuB,CACvC,IAAM,EAAQ,EAAa,CAAI,EACzB,EAAe,EAAM,UAAW,GAAS,EAAK,OAAS,CAAW,EAMxE,OAJI,IAAiB,GACZ,CAAE,SAAU,IAAA,GAAW,KAAM,IAAA,EAAU,EAGzC,CACL,SAAU,EAAM,EAAe,GAC/B,KAAM,EAAM,EAAe,EAC7B,CACF,EAAG,CAAC,EAAM,CAAW,CAAC,EAItB,MAFI,CAAC,GAAY,CAAC,EAAa,MAG7B,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,WAAe,CAAS,EAAG,aAAW,aAAa,GAAI,WAAnF,EACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAO,cAAU,IAAY,EAAA,EAAA,IAAA,CAAC,EAAD,CAAgB,KAAM,EAAU,UAAU,WAAwB,aAAc,CAAA,CAAO,CAAA,GACpI,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,KAAS,EAAO,WAAW,WACpD,IAAQ,EAAA,EAAA,IAAA,CAAC,EAAD,CAAgB,KAAM,EAAM,UAAU,OAAoB,aAAc,CAAA,CAC9E,CAAA,CACF,GAET"}
|