@sleetch/react 1.0.8 → 1.0.10
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 -1
- package/dist/assets/content.css +1 -1
- package/dist/assets/content2.css +1 -1
- package/dist/assets/content3.css +1 -1
- package/dist/assets/content4.css +1 -0
- package/dist/assets/file-system.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/layout.css +1 -1
- package/dist/assets/navigation.css +1 -1
- package/dist/assets/sidebar.css +1 -1
- package/dist/assets/spinner.css +1 -0
- package/dist/assets/story.css +1 -0
- package/dist/assets/toc.css +1 -1
- package/dist/assets/toggle.css +1 -0
- package/dist/{button-B6mWWZyo.js → button-BYPozliY.js} +7 -7
- package/dist/button-BYPozliY.js.map +1 -0
- package/dist/{button-DLQL3vVY.cjs → button-CdMMW1Ny.cjs} +2 -2
- package/dist/button-CdMMW1Ny.cjs.map +1 -0
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/documentation/content.cjs.js +1 -1
- package/dist/components/documentation/content.es.js +1 -1
- package/dist/components/documentation/header.cjs.js +1 -1
- package/dist/components/documentation/header.es.js +1 -2
- package/dist/components/documentation/layout.cjs.js +1 -1
- package/dist/components/documentation/layout.es.js +1 -1
- package/dist/components/documentation/page/content.cjs.js +1 -1
- package/dist/components/documentation/page/content.d.ts +3 -2
- package/dist/components/documentation/page/content.es.js +1 -1
- package/dist/components/documentation/page/header.cjs.js +1 -1
- package/dist/components/documentation/page/header.cjs.js.map +1 -1
- package/dist/components/documentation/page/header.d.ts +1 -1
- package/dist/components/documentation/page/header.es.js +1 -1
- package/dist/components/documentation/page/header.es.js.map +1 -1
- package/dist/components/documentation/page/navigation.cjs.js +1 -1
- package/dist/components/documentation/page/navigation.es.js +1 -1
- package/dist/components/documentation/sidebar/content.cjs.js +1 -1
- package/dist/components/documentation/sidebar/content.es.js +1 -1
- package/dist/components/documentation/sidebar/index.cjs.js +1 -1
- package/dist/components/documentation/sidebar/index.es.js +1 -1
- package/dist/components/documentation/sidebar/toggle.cjs.js +1 -0
- package/dist/components/documentation/sidebar/toggle.d.ts +4 -0
- package/dist/components/documentation/sidebar/toggle.es.js +3 -0
- package/dist/components/documentation/toc/content.cjs.js +1 -1
- package/dist/components/documentation/toc/content.es.js +1 -1
- package/dist/components/documentation/toc/index.cjs.js +1 -1
- package/dist/components/documentation/toc/index.d.ts +1 -1
- package/dist/components/documentation/toc/index.es.js +1 -1
- package/dist/components/file-system.cjs.js +1 -1
- package/dist/components/file-system.es.js +1 -1
- package/dist/components/spinner.cjs.js +1 -0
- package/dist/components/spinner.d.ts +5 -0
- package/dist/components/spinner.es.js +2 -0
- package/dist/{content-BJ6O_X1Y.cjs → content-6sh6k7yf.cjs} +2 -2
- package/dist/content-6sh6k7yf.cjs.map +1 -0
- package/dist/{content-D0ROn3Pd.js → content-BViNSM8m.js} +12 -9
- package/dist/{content-D0ROn3Pd.js.map → content-BViNSM8m.js.map} +1 -1
- package/dist/{content-BU9cbvVn.cjs → content-CGtNRdoV.cjs} +2 -2
- package/dist/{content-BU9cbvVn.cjs.map → content-CGtNRdoV.cjs.map} +1 -1
- package/dist/{content-CP58YEGJ.js → content-ClFdagzQ.js} +2 -2
- package/dist/content-ClFdagzQ.js.map +1 -0
- package/dist/{content-8dXeWXcA.cjs → content-DUX4ByVA.cjs} +2 -2
- package/dist/content-DUX4ByVA.cjs.map +1 -0
- package/dist/{content-DmSVqH2f.js → content-DlC3ONDr.js} +2 -2
- package/dist/content-DlC3ONDr.js.map +1 -0
- package/dist/{content-eQM-qDRO.js → content-SlTW2OsO.js} +3 -3
- package/dist/content-SlTW2OsO.js.map +1 -0
- package/dist/{content-CjmD3T8J.cjs → content-rfhfHH3W.cjs} +2 -2
- package/dist/content-rfhfHH3W.cjs.map +1 -0
- package/dist/contexts/documentation.cjs.js.map +1 -1
- package/dist/contexts/documentation.es.js.map +1 -1
- package/dist/{file-system-SWuikr8O.js → file-system-CW_7OsYk.js} +12 -12
- package/dist/file-system-CW_7OsYk.js.map +1 -0
- package/dist/{file-system-BNu9B10z.cjs → file-system-De1go4Pz.cjs} +2 -2
- package/dist/file-system-De1go4Pz.cjs.map +1 -0
- package/dist/header-BFkQq3p7.js +17 -0
- package/dist/header-BFkQq3p7.js.map +1 -0
- package/dist/header-IQArXGpT.cjs +2 -0
- package/dist/header-IQArXGpT.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +18 -15
- package/dist/{layout-BE3-MmWB.js → layout-9WOcI8QC.js} +2 -2
- package/dist/layout-9WOcI8QC.js.map +1 -0
- package/dist/{layout-vfa7JhoC.cjs → layout-CNLxKkFm.cjs} +2 -2
- package/dist/layout-CNLxKkFm.cjs.map +1 -0
- package/dist/{navigation-BWmLA_nr.js → navigation-B26nKjER.js} +52 -48
- package/dist/navigation-B26nKjER.js.map +1 -0
- package/dist/navigation-CmXsaglM.cjs +2 -0
- package/dist/navigation-CmXsaglM.cjs.map +1 -0
- package/dist/{sidebar-DSOeiBFI.cjs → sidebar-CXrzg2Go.cjs} +2 -2
- package/dist/sidebar-CXrzg2Go.cjs.map +1 -0
- package/dist/{sidebar-D7bXjwCm.js → sidebar-V1MCkkEu.js} +18 -18
- package/dist/sidebar-V1MCkkEu.js.map +1 -0
- package/dist/spinner-BWq14zTZ.js +36 -0
- package/dist/spinner-BWq14zTZ.js.map +1 -0
- package/dist/spinner-CiEz3GLj.cjs +2 -0
- package/dist/spinner-CiEz3GLj.cjs.map +1 -0
- package/dist/story/index.cjs.js +1 -0
- package/dist/story/index.d.ts +34 -0
- package/dist/story/index.es.js +2 -0
- package/dist/story-D6POW6tk.js +42 -0
- package/dist/story-D6POW6tk.js.map +1 -0
- package/dist/story-DMJSe7Sg.cjs +2 -0
- package/dist/story-DMJSe7Sg.cjs.map +1 -0
- package/dist/{toc-rfPQJ_Pf.js → toc-4StZsTN_.js} +10 -10
- package/dist/toc-4StZsTN_.js.map +1 -0
- package/dist/{toc-DkBTetNW.cjs → toc-CPqRAPOv.cjs} +2 -2
- package/dist/toc-CPqRAPOv.cjs.map +1 -0
- package/dist/toggle-D81rCUj_.cjs +2 -0
- package/dist/toggle-D81rCUj_.cjs.map +1 -0
- package/dist/toggle-DoePXMlE.js +51 -0
- package/dist/toggle-DoePXMlE.js.map +1 -0
- package/package.json +49 -48
- package/dist/button-B6mWWZyo.js.map +0 -1
- package/dist/button-DLQL3vVY.cjs.map +0 -1
- package/dist/content-8dXeWXcA.cjs.map +0 -1
- package/dist/content-BJ6O_X1Y.cjs.map +0 -1
- package/dist/content-CP58YEGJ.js.map +0 -1
- package/dist/content-CjmD3T8J.cjs.map +0 -1
- package/dist/content-DmSVqH2f.js.map +0 -1
- package/dist/content-eQM-qDRO.js.map +0 -1
- package/dist/file-system-BNu9B10z.cjs.map +0 -1
- package/dist/file-system-SWuikr8O.js.map +0 -1
- package/dist/header-1bJsyr4I.js +0 -57
- package/dist/header-1bJsyr4I.js.map +0 -1
- package/dist/header-3dQ5Gq3p.cjs +0 -2
- package/dist/header-3dQ5Gq3p.cjs.map +0 -1
- package/dist/layout-BE3-MmWB.js.map +0 -1
- package/dist/layout-vfa7JhoC.cjs.map +0 -1
- package/dist/navigation-BWmLA_nr.js.map +0 -1
- package/dist/navigation-D6nkWYOB.cjs +0 -2
- package/dist/navigation-D6nkWYOB.cjs.map +0 -1
- package/dist/sidebar-D7bXjwCm.js.map +0 -1
- package/dist/sidebar-DSOeiBFI.cjs.map +0 -1
- package/dist/toc-DkBTetNW.cjs.map +0 -1
- package/dist/toc-rfPQJ_Pf.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-
|
|
1
|
+
{"version":3,"file":"content-CGtNRdoV.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 type { page_module } from '@sleetch/core/compiler';\nimport type { MDXComponents } from 'mdx/types';\nimport * as runtime from 'react/jsx-runtime';\n\nconst mdxCache = new Map<string, ReturnType<typeof compileMDX>>();\n\nfunction compileMDX(code: string, baseUrl: string) {\n\treturn run(code, {\n\t\t...runtime,\n\t\tbaseUrl,\n\t});\n}\n\nfunction getCompiledMDX(code: string, baseUrl: string) {\n\tlet promise = mdxCache.get(code);\n\n\tif (!promise) {\n\t\tpromise = compileMDX(code, baseUrl);\n\t\tmdxCache.set(code, promise);\n\t}\n\n\treturn promise;\n}\nexport function PageContent({ page, components, baseUrl }: { page: page_module['default']; components?: MDXComponents; baseUrl: string }) {\n\tif (page.parsed.type === 'html') {\n\t\treturn (\n\t\t\t<div className=\"sleetch-markdown\">\n\t\t\t\t<div dangerouslySetInnerHTML={{ __html: page.parsed.html }} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst { default: Content } = use(getCompiledMDX(page.parsed.code, baseUrl));\n\n\treturn (\n\t\t<div className=\"sleetch-markdown\">\n\t\t\t<Content baseUrl={baseUrl} components={components} />\n\t\t</div>\n\t);\n}\n"],"x_google_ignoreList":[0],"mappings":"ujBAMA,IAAM,EAAgB,OAAO,eAAe,CAAG,CAAC,CAAC,YAgBjD,eAAsB,EAAI,EAAM,EAAS,CACvC,OAAO,IAAI,EAAc,OAAO,CAAI,CAAC,CAAC,CAAC,CAAO,CAChD,CChBA,IAAM,EAAW,IAAI,IAErB,SAAS,EAAW,EAAc,EAAiB,CAClD,OAAO,EAAI,EAAM,CAChB,GAAG,EACH,SACD,CAAC,CACF,CAEA,SAAS,EAAe,EAAc,EAAiB,CACtD,IAAI,EAAU,EAAS,IAAI,CAAI,EAO/B,OALK,IACJ,EAAU,EAAW,EAAM,CAAO,EAClC,EAAS,IAAI,EAAM,CAAO,GAGpB,CACR,CACA,SAAgB,EAAY,CAAE,OAAM,aAAY,WAA0F,CACzI,GAAI,EAAK,OAAO,OAAS,OACxB,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACd,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,wBAAyB,CAAE,OAAQ,EAAK,OAAO,IAAK,CAAI,CAAA,CACzD,CAAA,EAIP,GAAM,CAAE,QAAS,IAAA,EAAY,EAAA,IAAA,CAAI,EAAe,EAAK,OAAO,KAAM,CAAO,CAAC,EAE1E,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACd,UAAA,EAAA,EAAA,IAAA,CAAC,EAAD,CAAkB,UAAqB,YAAa,CAAA,CAChD,CAAA,CAEP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-CaAiuA5w.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import './assets/content3.css';//#region ../styles/src/components/documentation/sidebar/content.module.css
|
|
4
|
-
var n = { default: "
|
|
4
|
+
var n = { default: "_default_1mxx0_1" };
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/documentation/sidebar/content.tsx
|
|
7
7
|
function r({ className: r, children: i, ...a }) {
|
|
@@ -14,4 +14,4 @@ function r({ className: r, children: i, ...a }) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { r as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=content-
|
|
17
|
+
//# sourceMappingURL=content-ClFdagzQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-ClFdagzQ.js","names":[],"sources":["../../styles/src/components/documentation/sidebar/content.module.css","../src/components/documentation/sidebar/content.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\twidth: 100%;\n\tflex: 1;\n\tpadding: var(--_sleetch-padding-root);\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tpadding: 0 1em;\n\t}\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n\t.default {\n\t\tpadding: 0 1.5em;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/sidebar/content.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationSidebarContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationSidebarContent({ className, children, ...props }: DocumentationSidebarContentProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAA4B,EAAE,cAAW,aAAU,GAAG,KAA2C;CAChH,OACC,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAS,CAAS;EAAG,GAAI;EACnD;CACG,CAAA;AAEP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require('./assets/content.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`
|
|
2
|
-
//# sourceMappingURL=content-
|
|
1
|
+
require('./assets/content.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_j1tzi_1`};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-DUX4ByVA.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-DUX4ByVA.cjs","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":[".default {\n\tdisplay: flex;\n\tflex: 1;\n\tmin-height: calc(100vh - var(--_sleetch-header-height));\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tflex-direction: column;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/content.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationContent({ className, children, ...props }: DocumentationContentProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":"6GCMA,SAAgB,EAAqB,CAAE,YAAW,WAAU,GAAG,GAAoC,CAClG,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAS,CAAS,EAAG,GAAI,EACnD,UACG,CAAA,CAEP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-CaAiuA5w.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import './assets/content.css';//#region ../styles/src/components/documentation/content.module.css
|
|
4
|
-
var n = { default: "
|
|
4
|
+
var n = { default: "_default_j1tzi_1" };
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/documentation/content.tsx
|
|
7
7
|
function r({ className: r, children: i, ...a }) {
|
|
@@ -14,4 +14,4 @@ function r({ className: r, children: i, ...a }) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { r as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=content-
|
|
17
|
+
//# sourceMappingURL=content-DlC3ONDr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-DlC3ONDr.js","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":[".default {\n\tdisplay: flex;\n\tflex: 1;\n\tmin-height: calc(100vh - var(--_sleetch-header-height));\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tflex-direction: column;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/content.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationContent({ className, children, ...props }: DocumentationContentProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAqB,EAAE,cAAW,aAAU,GAAG,KAAoC;CAClG,OACC,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAS,CAAS;EAAG,GAAI;EACnD;CACG,CAAA;AAEP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-CaAiuA5w.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import './assets/
|
|
4
|
-
var n = { default: "
|
|
3
|
+
import './assets/content4.css';//#region ../styles/src/components/documentation/toc/content.module.css
|
|
4
|
+
var n = { default: "_default_168mc_1" };
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/documentation/toc/content.tsx
|
|
7
7
|
function r({ className: r, children: i, ...a }) {
|
|
@@ -14,4 +14,4 @@ function r({ className: r, children: i, ...a }) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { r as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=content-
|
|
17
|
+
//# sourceMappingURL=content-SlTW2OsO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-SlTW2OsO.js","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\twidth: 100%;\n\tflex: 1;\n\tpadding: 0 2em;\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tpadding: 0 1em;\n\t}\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n\t.default {\n\t\tpadding: 0 1.5em;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/toc/content.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationTocContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationTocContent({ className, children, ...props }: DocumentationTocContentProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAwB,EAAE,cAAW,aAAU,GAAG,KAAuC;CACxG,OACC,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAS,CAAS;EAAG,GAAI;EACnD;CACG,CAAA;AAEP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require('./assets/
|
|
2
|
-
//# sourceMappingURL=content-
|
|
1
|
+
require('./assets/content4.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_168mc_1`};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-rfhfHH3W.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-rfhfHH3W.cjs","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\twidth: 100%;\n\tflex: 1;\n\tpadding: 0 2em;\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tpadding: 0 1em;\n\t}\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n\t.default {\n\t\tpadding: 0 1.5em;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/toc/content.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationTocContentProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationTocContent({ className, children, ...props }: DocumentationTocContentProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":"6GCMA,SAAgB,EAAwB,CAAE,YAAW,WAAU,GAAG,GAAuC,CACxG,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAS,CAAS,EAAG,GAAI,EACnD,UACG,CAAA,CAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.cjs.js","names":[],"sources":["../../src/contexts/documentation.tsx"],"sourcesContent":["import type { tree_object } from '@sleetch/core/compiler';\nimport type { path_transformer } from '@sleetch/core/configuration';\nimport { type BaseHTMLAttributes, createContext, type ReactNode, useContext, useState } from 'react';\n\ntype sidebar_context = {\n
|
|
1
|
+
{"version":3,"file":"documentation.cjs.js","names":[],"sources":["../../src/contexts/documentation.tsx"],"sourcesContent":["import type { tree_object } from '@sleetch/core/compiler';\nimport type { path_transformer } from '@sleetch/core/configuration';\nimport { type BaseHTMLAttributes, createContext, type ReactNode, useContext, useState } from 'react';\n\ntype sidebar_context = {\n\tis_sidebar_open: boolean;\n\ttoggle_sidebar: () => void;\n\tclose_sidebar: () => void;\n};\n\ntype general_context = {\n\tpath_transformer: path_transformer<string>;\n\ticon_transformer: (icon?: string) => ReactNode;\n\tcurrent_path?: string;\n\tset_current_path: (current_path: general_context['current_path']) => void;\n\ttree: tree_object[];\n\tset_tree: (tree: general_context['tree']) => void;\n\tlanguage: string;\n\tset_language: (language: general_context['language']) => void;\n};\n\ntype documentation_context = sidebar_context & general_context;\n\nexport const DocumentationContext = createContext<documentation_context | null>(null);\n\nexport function useDocumentationContext() {\n\tconst context = useContext(DocumentationContext);\n\tif (!context) throw new Error('useDocumentationContext must be used within DocumentationProvider');\n\treturn context;\n}\n\nexport interface DocumentationProviderProps extends BaseHTMLAttributes<HTMLDivElement> {\n\tpath_transformer?: general_context['path_transformer'];\n\ticon_transformer?: general_context['icon_transformer'];\n\ttree: general_context['tree'];\n\tlanguage: general_context['language'];\n\tcurrent_path?: general_context['current_path'];\n}\n\nexport function DocumentationProvider({\n\tchildren,\n\tclassName,\n\tpath_transformer = ({ path }) => path,\n\ticon_transformer = (_icon) => null,\n\ttree: tree_value,\n\tlanguage: language_value,\n\tcurrent_path: current_path_value,\n\t...props\n}: DocumentationProviderProps) {\n\tconst [is_sidebar_open, set_is_sidebar_open] = useState(false);\n\tconst [tree, set_tree] = useState<tree_object[]>(tree_value);\n\tconst [language, set_language] = useState<string>(language_value);\n\tconst [current_path, set_current_path] = useState<string | undefined>(current_path_value);\n\n\tconst toggle_sidebar = () => set_is_sidebar_open((prev) => !prev);\n\tconst close_sidebar = () => set_is_sidebar_open(false);\n\n\treturn (\n\t\t<DocumentationContext.Provider\n\t\t\tvalue={{\n\t\t\t\tis_sidebar_open,\n\t\t\t\ttoggle_sidebar,\n\t\t\t\tclose_sidebar,\n\t\t\t\tpath_transformer,\n\t\t\t\ticon_transformer,\n\t\t\t\ttree,\n\t\t\t\tlanguage,\n\t\t\t\tset_tree,\n\t\t\t\tset_language,\n\t\t\t\tcurrent_path,\n\t\t\t\tset_current_path,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</DocumentationContext.Provider>\n\t);\n}\n"],"mappings":"yHAuBA,IAAa,GAAA,EAAuB,EAAA,cAAA,CAA4C,IAAI,EAEpF,SAAgB,GAA0B,CACzC,IAAM,GAAA,EAAU,EAAA,WAAA,CAAW,CAAoB,EAC/C,GAAI,CAAC,EAAS,MAAU,MAAM,mEAAmE,EACjG,OAAO,CACR,CAUA,SAAgB,EAAsB,CACrC,WACA,YACA,oBAAoB,CAAE,UAAW,EACjC,mBAAoB,GAAU,KAC9B,KAAM,EACN,SAAU,EACV,aAAc,EACd,GAAG,GAC2B,CAC9B,GAAM,CAAC,EAAiB,IAAA,EAAuB,EAAA,SAAA,CAAS,EAAK,EACvD,CAAC,EAAM,IAAA,EAAY,EAAA,SAAA,CAAwB,CAAU,EACrD,CAAC,EAAU,IAAA,EAAgB,EAAA,SAAA,CAAiB,CAAc,EAC1D,CAAC,EAAc,IAAA,EAAoB,EAAA,SAAA,CAA6B,CAAkB,EAKxF,OACC,EAAA,EAAA,IAAA,CAAC,EAAqB,SAAtB,CACC,MAAO,CACN,kBACA,mBAP0B,EAAqB,GAAS,CAAC,CAAI,EAQ7D,kBAPyB,EAAoB,EAAK,EAQlD,mBACA,mBACA,OACA,WACA,WACA,eACA,eACA,kBACD,EAEC,UAC6B,CAAA,CAEjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.es.js","names":[],"sources":["../../src/contexts/documentation.tsx"],"sourcesContent":["import type { tree_object } from '@sleetch/core/compiler';\nimport type { path_transformer } from '@sleetch/core/configuration';\nimport { type BaseHTMLAttributes, createContext, type ReactNode, useContext, useState } from 'react';\n\ntype sidebar_context = {\n
|
|
1
|
+
{"version":3,"file":"documentation.es.js","names":[],"sources":["../../src/contexts/documentation.tsx"],"sourcesContent":["import type { tree_object } from '@sleetch/core/compiler';\nimport type { path_transformer } from '@sleetch/core/configuration';\nimport { type BaseHTMLAttributes, createContext, type ReactNode, useContext, useState } from 'react';\n\ntype sidebar_context = {\n\tis_sidebar_open: boolean;\n\ttoggle_sidebar: () => void;\n\tclose_sidebar: () => void;\n};\n\ntype general_context = {\n\tpath_transformer: path_transformer<string>;\n\ticon_transformer: (icon?: string) => ReactNode;\n\tcurrent_path?: string;\n\tset_current_path: (current_path: general_context['current_path']) => void;\n\ttree: tree_object[];\n\tset_tree: (tree: general_context['tree']) => void;\n\tlanguage: string;\n\tset_language: (language: general_context['language']) => void;\n};\n\ntype documentation_context = sidebar_context & general_context;\n\nexport const DocumentationContext = createContext<documentation_context | null>(null);\n\nexport function useDocumentationContext() {\n\tconst context = useContext(DocumentationContext);\n\tif (!context) throw new Error('useDocumentationContext must be used within DocumentationProvider');\n\treturn context;\n}\n\nexport interface DocumentationProviderProps extends BaseHTMLAttributes<HTMLDivElement> {\n\tpath_transformer?: general_context['path_transformer'];\n\ticon_transformer?: general_context['icon_transformer'];\n\ttree: general_context['tree'];\n\tlanguage: general_context['language'];\n\tcurrent_path?: general_context['current_path'];\n}\n\nexport function DocumentationProvider({\n\tchildren,\n\tclassName,\n\tpath_transformer = ({ path }) => path,\n\ticon_transformer = (_icon) => null,\n\ttree: tree_value,\n\tlanguage: language_value,\n\tcurrent_path: current_path_value,\n\t...props\n}: DocumentationProviderProps) {\n\tconst [is_sidebar_open, set_is_sidebar_open] = useState(false);\n\tconst [tree, set_tree] = useState<tree_object[]>(tree_value);\n\tconst [language, set_language] = useState<string>(language_value);\n\tconst [current_path, set_current_path] = useState<string | undefined>(current_path_value);\n\n\tconst toggle_sidebar = () => set_is_sidebar_open((prev) => !prev);\n\tconst close_sidebar = () => set_is_sidebar_open(false);\n\n\treturn (\n\t\t<DocumentationContext.Provider\n\t\t\tvalue={{\n\t\t\t\tis_sidebar_open,\n\t\t\t\ttoggle_sidebar,\n\t\t\t\tclose_sidebar,\n\t\t\t\tpath_transformer,\n\t\t\t\ticon_transformer,\n\t\t\t\ttree,\n\t\t\t\tlanguage,\n\t\t\t\tset_tree,\n\t\t\t\tset_language,\n\t\t\t\tcurrent_path,\n\t\t\t\tset_current_path,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</DocumentationContext.Provider>\n\t);\n}\n"],"mappings":";;;AAuBA,IAAa,IAAuB,EAA4C,IAAI;AAEpF,SAAgB,IAA0B;CACzC,IAAM,IAAU,EAAW,CAAoB;CAC/C,IAAI,CAAC,GAAS,MAAU,MAAM,mEAAmE;CACjG,OAAO;AACR;AAUA,SAAgB,EAAsB,EACrC,aACA,cACA,uBAAoB,EAAE,cAAW,GACjC,uBAAoB,MAAU,MAC9B,MAAM,GACN,UAAU,GACV,cAAc,GACd,GAAG,KAC2B;CAC9B,IAAM,CAAC,GAAiB,KAAuB,EAAS,EAAK,GACvD,CAAC,GAAM,KAAY,EAAwB,CAAU,GACrD,CAAC,GAAU,KAAgB,EAAiB,CAAc,GAC1D,CAAC,GAAc,KAAoB,EAA6B,CAAkB;CAKxF,OACC,kBAAC,EAAqB,UAAtB;EACC,OAAO;GACN;GACA,sBAP0B,GAAqB,MAAS,CAAC,CAAI;GAQ7D,qBAPyB,EAAoB,EAAK;GAQlD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EAEC;CAC6B,CAAA;AAEjC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import './assets/file-system.css';var n = {
|
|
3
|
-
"file-system": "_file-
|
|
4
|
-
folder: "
|
|
5
|
-
hidden: "
|
|
6
|
-
row: "
|
|
7
|
-
folderRow: "
|
|
8
|
-
icon: "
|
|
9
|
-
label: "
|
|
10
|
-
comment: "
|
|
11
|
-
children: "
|
|
12
|
-
file: "
|
|
13
|
-
selected: "
|
|
3
|
+
"file-system": "_file-system_nx6h7_1",
|
|
4
|
+
folder: "_folder_nx6h7_16",
|
|
5
|
+
hidden: "_hidden_nx6h7_21",
|
|
6
|
+
row: "_row_nx6h7_25",
|
|
7
|
+
folderRow: "_folderRow_nx6h7_36",
|
|
8
|
+
icon: "_icon_nx6h7_40",
|
|
9
|
+
label: "_label_nx6h7_45",
|
|
10
|
+
comment: "_comment_nx6h7_51",
|
|
11
|
+
children: "_children_nx6h7_59",
|
|
12
|
+
file: "_file_nx6h7_1",
|
|
13
|
+
selected: "_selected_nx6h7_77"
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/components/file-system.tsx
|
|
@@ -98,4 +98,4 @@ function s({ name: r, comment: a, selected: o = !1, className: s = "" }) {
|
|
|
98
98
|
//#endregion
|
|
99
99
|
export { a as n, o as r, s as t };
|
|
100
100
|
|
|
101
|
-
//# sourceMappingURL=file-system-
|
|
101
|
+
//# sourceMappingURL=file-system-CW_7OsYk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-system-CW_7OsYk.js","names":[],"sources":["../../styles/src/components/file-system.module.css","../src/components/file-system.tsx"],"sourcesContent":[".file-system {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.15em;\n\tcolor: var(--_sleetch-color-text);\n\tfont-family: var(--_sleetch-font-base);\n\tfont-size: var(--_sleetch-font-size-small);\n\tline-height: var(--_sleetch-line-height);\n\tpadding: 0.85em;\n\tbackground: var(--_sleetch-color-card);\n\tborder-radius: var(--_sleetch-radius);\n\tborder: var(--_sleetch-hr-height) solid var(--_sleetch-color-border);\n\tmargin: 0 0 1em;\n}\n\n.folder {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.folder.hidden {\n\topacity: 0.5;\n}\n\n.row {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 0.55em;\n\tpadding: 0.4em 0.6em;\n\tborder-radius: calc(var(--_sleetch-radius) - 2px);\n\ttransition:\n\t\tbackground-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n\t\tcolor var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.folderRow {\n\tcolor: var(--_sleetch-color-muted-foreground);\n}\n\n.icon {\n\tflex-shrink: 0;\n\tcolor: currentColor;\n}\n\n.label {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.comment {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tcolor: var(--_sleetch-color-muted-foreground);\n\tfont-style: italic;\n}\n\n.children {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.15em;\n\tmargin-left: 0.75em;\n\tpadding-left: 0.65em;\n\tborder-left: var(--_sleetch-underline-height) solid var(--_sleetch-color-border);\n}\n\n.file {\n\tcolor: var(--_sleetch-color-text);\n\tcursor: default;\n}\n\n.file:hover {\n\tbackground: var(--_sleetch-color-muted);\n}\n\n.file.selected {\n\tcolor: var(--_sleetch-color-text-primary);\n\tbackground: color-mix(in srgb, var(--_sleetch-color-text-primary) 12%, transparent);\n}\n\n.file.selected:hover {\n\tbackground: 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\tclassName?: string;\n}\n\nfunction FolderIcon({ className, ...props }: IconProps) {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.75\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\taria-hidden=\"true\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<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\t\t</svg>\n\t);\n}\n\nfunction FileIcon({ className, ...props }: IconProps) {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.75\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\taria-hidden=\"true\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z\" />\n\t\t\t<path d=\"M14 2v6h6\" />\n\t\t</svg>\n\t);\n}\n\nexport interface FilesProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function FileSystem({ children, className = '' }: FilesProps) {\n\treturn (\n\t\t<div className=\"no-sleetch-markdown\">\n\t\t\t<div className={[styles['file-system'], className].filter(Boolean).join(' ')}>{children}</div>\n\t\t</div>\n\t);\n}\n\nexport interface FolderProps {\n\tname: string;\n\tchildren?: ReactNode;\n\thidden?: boolean;\n\tclassName?: string;\n}\n\nexport function Folder({ name, children, hidden = false, className = '' }: FolderProps) {\n\treturn (\n\t\t<div className={[styles.folder, hidden && styles.hidden, className].filter(Boolean).join(' ')}>\n\t\t\t<div className={[styles.row, styles.folderRow].join(' ')}>\n\t\t\t\t<FolderIcon className={styles.icon} />\n\t\t\t\t<span className={styles.label}>{name}</span>\n\t\t\t</div>\n\t\t\t{children && <div className={styles.children}>{children}</div>}\n\t\t</div>\n\t);\n}\n\nexport interface FileProps {\n\tname: string;\n\tcomment?: string;\n\tselected?: boolean;\n\tclassName?: string;\n}\n\nexport function File({ name, comment, selected = false, className = '' }: FileProps) {\n\treturn (\n\t\t<div className={[styles.row, styles.file, selected && styles.selected, className].filter(Boolean).join(' ')}>\n\t\t\t<FileIcon className={styles.icon} />\n\t\t\t<span className={styles.label}>{name}</span>\n\t\t\t<span className={styles.comment}>{comment}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;;;ACOA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAoB;CACvD,OACC,kBAAC,OAAD;EACY;EACX,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,eAAY;EACZ,GAAI;EAEJ,UAAA,kBAAC,QAAD,EAAM,GAAE,8EAA+E,CAAA;CACnF,CAAA;AAEP;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAoB;CACrD,OACC,kBAAC,OAAD;EACY;EACX,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,eAAY;EACZ,GAAI;EAXL,UAAA,CAaC,kBAAC,QAAD,EAAM,GAAE,6DAA8D,CAAA,GACtE,kBAAC,QAAD,EAAM,GAAE,YAAa,CAAA,CACjB;;AAEP;AAOA,SAAgB,EAAW,EAAE,aAAU,eAAY,MAAkB;CACpE,OACC,kBAAC,OAAD;EAAK,WAAU;EACd,UAAA,kBAAC,OAAD;GAAK,WAAW,CAAC,EAAO,gBAAgB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;GAAI;EAAc,CAAA;CACzF,CAAA;AAEP;AASA,SAAgB,EAAO,EAAE,SAAM,aAAU,YAAS,IAAO,eAAY,MAAmB;CACvF,OACC,kBAAC,OAAD;EAAK,WAAW;GAAC,EAAO;GAAQ,KAAU,EAAO;GAAQ;EAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAA5F,UAAA,CACC,kBAAC,OAAD;GAAK,WAAW,CAAC,EAAO,KAAK,EAAO,SAAS,CAAC,CAAC,KAAK,GAAG;GAAvD,UAAA,CACC,kBAAC,GAAD,EAAY,WAAW,EAAO,KAAO,CAAA,GACrC,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAQ,UAAA;GAAW,CAAA,CACvC;EACJ,CAAA,GAAA,KAAY,kBAAC,OAAD;GAAK,WAAW,EAAO;GAAW;EAAc,CAAA,CACzD;;AAEP;AASA,SAAgB,EAAK,EAAE,SAAM,YAAS,cAAW,IAAO,eAAY,MAAiB;CACpF,OACC,kBAAC,OAAD;EAAK,WAAW;GAAC,EAAO;GAAK,EAAO;GAAM,KAAY,EAAO;GAAU;EAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAA1G,UAAA;GACC,kBAAC,GAAD,EAAU,WAAW,EAAO,KAAO,CAAA;GACnC,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAQ,UAAA;GAAW,CAAA;GAC3C,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAU,UAAA;GAAc,CAAA;EAC5C;;AAEP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require('./assets/file-system.css');let e=require("react/jsx-runtime");var t={"file-system":`_file-
|
|
2
|
-
//# sourceMappingURL=file-system-
|
|
1
|
+
require('./assets/file-system.css');let e=require("react/jsx-runtime");var t={"file-system":`_file-system_nx6h7_1`,folder:`_folder_nx6h7_16`,hidden:`_hidden_nx6h7_21`,row:`_row_nx6h7_25`,folderRow:`_folderRow_nx6h7_36`,icon:`_icon_nx6h7_40`,label:`_label_nx6h7_45`,comment:`_comment_nx6h7_51`,children:`_children_nx6h7_59`,file:`_file_nx6h7_1`,selected:`_selected_nx6h7_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-De1go4Pz.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-system-De1go4Pz.cjs","names":[],"sources":["../../styles/src/components/file-system.module.css","../src/components/file-system.tsx"],"sourcesContent":[".file-system {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.15em;\n\tcolor: var(--_sleetch-color-text);\n\tfont-family: var(--_sleetch-font-base);\n\tfont-size: var(--_sleetch-font-size-small);\n\tline-height: var(--_sleetch-line-height);\n\tpadding: 0.85em;\n\tbackground: var(--_sleetch-color-card);\n\tborder-radius: var(--_sleetch-radius);\n\tborder: var(--_sleetch-hr-height) solid var(--_sleetch-color-border);\n\tmargin: 0 0 1em;\n}\n\n.folder {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.folder.hidden {\n\topacity: 0.5;\n}\n\n.row {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 0.55em;\n\tpadding: 0.4em 0.6em;\n\tborder-radius: calc(var(--_sleetch-radius) - 2px);\n\ttransition:\n\t\tbackground-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n\t\tcolor var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.folderRow {\n\tcolor: var(--_sleetch-color-muted-foreground);\n}\n\n.icon {\n\tflex-shrink: 0;\n\tcolor: currentColor;\n}\n\n.label {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.comment {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tcolor: var(--_sleetch-color-muted-foreground);\n\tfont-style: italic;\n}\n\n.children {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.15em;\n\tmargin-left: 0.75em;\n\tpadding-left: 0.65em;\n\tborder-left: var(--_sleetch-underline-height) solid var(--_sleetch-color-border);\n}\n\n.file {\n\tcolor: var(--_sleetch-color-text);\n\tcursor: default;\n}\n\n.file:hover {\n\tbackground: var(--_sleetch-color-muted);\n}\n\n.file.selected {\n\tcolor: var(--_sleetch-color-text-primary);\n\tbackground: color-mix(in srgb, var(--_sleetch-color-text-primary) 12%, transparent);\n}\n\n.file.selected:hover {\n\tbackground: 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\tclassName?: string;\n}\n\nfunction FolderIcon({ className, ...props }: IconProps) {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.75\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\taria-hidden=\"true\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<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\t\t</svg>\n\t);\n}\n\nfunction FileIcon({ className, ...props }: IconProps) {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.75\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\taria-hidden=\"true\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z\" />\n\t\t\t<path d=\"M14 2v6h6\" />\n\t\t</svg>\n\t);\n}\n\nexport interface FilesProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function FileSystem({ children, className = '' }: FilesProps) {\n\treturn (\n\t\t<div className=\"no-sleetch-markdown\">\n\t\t\t<div className={[styles['file-system'], className].filter(Boolean).join(' ')}>{children}</div>\n\t\t</div>\n\t);\n}\n\nexport interface FolderProps {\n\tname: string;\n\tchildren?: ReactNode;\n\thidden?: boolean;\n\tclassName?: string;\n}\n\nexport function Folder({ name, children, hidden = false, className = '' }: FolderProps) {\n\treturn (\n\t\t<div className={[styles.folder, hidden && styles.hidden, className].filter(Boolean).join(' ')}>\n\t\t\t<div className={[styles.row, styles.folderRow].join(' ')}>\n\t\t\t\t<FolderIcon className={styles.icon} />\n\t\t\t\t<span className={styles.label}>{name}</span>\n\t\t\t</div>\n\t\t\t{children && <div className={styles.children}>{children}</div>}\n\t\t</div>\n\t);\n}\n\nexport interface FileProps {\n\tname: string;\n\tcomment?: string;\n\tselected?: boolean;\n\tclassName?: string;\n}\n\nexport function File({ name, comment, selected = false, className = '' }: FileProps) {\n\treturn (\n\t\t<div className={[styles.row, styles.file, selected && styles.selected, className].filter(Boolean).join(' ')}>\n\t\t\t<FileIcon className={styles.icon} />\n\t\t\t<span className={styles.label}>{name}</span>\n\t\t\t<span className={styles.comment}>{comment}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":"mVCOA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAoB,CACvD,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACY,YACX,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAY,OACZ,cAAc,QACd,eAAe,QACf,cAAY,OACZ,GAAI,EAEJ,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,6EAA+E,CAAA,CACnF,CAAA,CAEP,CAEA,SAAS,EAAS,CAAE,YAAW,GAAG,GAAoB,CACrD,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACY,YACX,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAY,OACZ,cAAc,QACd,eAAe,QACf,cAAY,OACZ,GAAI,EAXL,SAAA,EAaC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,4DAA8D,CAAA,GACtE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,WAAa,CAAA,CACjB,GAEP,CAOA,SAAgB,EAAW,CAAE,WAAU,YAAY,IAAkB,CACpE,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,sBACd,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,eAAgB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAI,UAAc,CAAA,CACzF,CAAA,CAEP,CASA,SAAgB,EAAO,CAAE,OAAM,WAAU,SAAS,GAAO,YAAY,IAAmB,CACvF,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,OAAQ,GAAU,EAAO,OAAQ,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAA5F,SAAA,EACC,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,IAAK,EAAO,SAAS,CAAC,CAAC,KAAK,GAAG,EAAvD,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,EAAD,CAAY,UAAW,EAAO,IAAO,CAAA,GACrC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,MAAQ,SAAA,CAAW,CAAA,CACvC,CACJ,CAAA,EAAA,IAAY,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAO,SAAW,UAAc,CAAA,CACzD,GAEP,CASA,SAAgB,EAAK,CAAE,OAAM,UAAS,WAAW,GAAO,YAAY,IAAiB,CACpF,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAW,CAAC,EAAO,IAAK,EAAO,KAAM,GAAY,EAAO,SAAU,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAA1G,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,EAAD,CAAU,UAAW,EAAO,IAAO,CAAA,GACnC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,MAAQ,SAAA,CAAW,CAAA,GAC3C,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,QAAU,SAAA,CAAc,CAAA,CAC5C,GAEP"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as e } from "./clsx-CaAiuA5w.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './assets/header.css';//#region ../styles/src/components/documentation/header.module.css
|
|
4
|
+
var n = { default: "_default_12k17_1" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/documentation/header.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=header-BFkQq3p7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-BFkQq3p7.js","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\theight: var(--_sleetch-header-height);\n\tbackground-color: color-mix(in srgb, var(--_sleetch-color-card) 30%, transparent);\n\tbackdrop-filter: blur(15px);\n\tborder-bottom: 1px solid var(--_sleetch-color-border);\n\tposition: sticky;\n\ttop: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 0 2em;\n\tgap: 1em;\n\tz-index: 100;\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tpadding: 0 1em;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/header.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationHeaderProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationHeader({ className, children, ...props }: DocumentationHeaderProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAoB,EAAE,cAAW,aAAU,GAAG,KAAmC;CAChG,OACC,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,SAAS,CAAS;EAAG,GAAI;EACnD;CACG,CAAA;AAEP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/header.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_12k17_1`};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=header-IQArXGpT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-IQArXGpT.cjs","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\theight: var(--_sleetch-header-height);\n\tbackground-color: color-mix(in srgb, var(--_sleetch-color-card) 30%, transparent);\n\tbackdrop-filter: blur(15px);\n\tborder-bottom: 1px solid var(--_sleetch-color-border);\n\tposition: sticky;\n\ttop: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 0 2em;\n\tgap: 1em;\n\tz-index: 100;\n}\n\n@media (max-width: 768px) {\n\t.default {\n\t\tpadding: 0 1em;\n\t}\n}\n","import styles from '@sleetch/styles/components/documentation/header.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationHeaderProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationHeader({ className, children, ...props }: DocumentationHeaderProps) {\n\treturn (\n\t\t<div className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":"6GCMA,SAAgB,EAAoB,CAAE,YAAW,WAAU,GAAG,GAAmC,CAChG,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,QAAS,CAAS,EAAG,GAAI,EACnD,UACG,CAAA,CAEP"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./content-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./content-CGtNRdoV.cjs"),t=require("./button-CdMMW1Ny.cjs"),n=require("./content-DUX4ByVA.cjs"),r=require("./header-IQArXGpT.cjs"),i=require("./layout-CNLxKkFm.cjs"),a=require("./components/documentation/page/header.cjs.js"),o=require("./components/documentation/page/loader.cjs.js"),s=require("./navigation-CmXsaglM.cjs"),c=require("./contexts/documentation.cjs.js"),l=require("./sidebar-CXrzg2Go.cjs"),u=require("./content-6sh6k7yf.cjs"),d=require("./toggle-D81rCUj_.cjs"),f=require("./toc-CPqRAPOv.cjs"),p=require("./content-rfhfHH3W.cjs"),m=require("./file-system-De1go4Pz.cjs"),h=require("./spinner-CiEz3GLj.cjs"),g=require("./story-DMJSe7Sg.cjs");exports.Button=t.t,exports.DocumentationContent=n.t,exports.DocumentationHeader=r.t,exports.DocumentationLayout=i.t,exports.DocumentationProvider=c.DocumentationProvider,exports.DocumentationSidebar=l.t,exports.DocumentationSidebarContent=u.t,exports.DocumentationSidebarToggle=d.t,exports.DocumentationToc=f.t,exports.DocumentationTocContent=p.t,exports.File=m.t,exports.FileSystem=m.n,exports.Folder=m.r,exports.PageContent=e.t,exports.PageHeader=a.PageHeader,exports.PageLoader=o.PageLoader,exports.PageNavigation=s.t,exports.Spinner=h.t,exports.defineBook=g.t,exports.defineStory=g.n,exports.useDocumentationContext=c.useDocumentationContext;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,10 @@ export { PageLoader } from './components/documentation/page/loader';
|
|
|
8
8
|
export { PageNavigation } from './components/documentation/page/navigation';
|
|
9
9
|
export { DocumentationSidebar } from './components/documentation/sidebar';
|
|
10
10
|
export { DocumentationSidebarContent } from './components/documentation/sidebar/content';
|
|
11
|
+
export { DocumentationSidebarToggle } from './components/documentation/sidebar/toggle';
|
|
11
12
|
export { DocumentationToc } from './components/documentation/toc';
|
|
12
13
|
export { DocumentationTocContent } from './components/documentation/toc/content';
|
|
13
14
|
export { File, FileSystem, Folder } from './components/file-system';
|
|
15
|
+
export { Spinner } from './components/spinner';
|
|
14
16
|
export { DocumentationProvider, useDocumentationContext } from './contexts/documentation';
|
|
17
|
+
export { defineBook, defineStory } from './story';
|
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./button-
|
|
3
|
-
import { t } from "./content-
|
|
4
|
-
import { t as n } from "./header-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as u } from "./sidebar-
|
|
12
|
-
import { t as d } from "./content-
|
|
13
|
-
import { t as f } from "./
|
|
14
|
-
import { t as p } from "./
|
|
15
|
-
import {
|
|
16
|
-
|
|
2
|
+
import { t as e } from "./button-BYPozliY.js";
|
|
3
|
+
import { t } from "./content-DlC3ONDr.js";
|
|
4
|
+
import { t as n } from "./header-BFkQq3p7.js";
|
|
5
|
+
import { t as r } from "./layout-9WOcI8QC.js";
|
|
6
|
+
import { t as i } from "./content-BViNSM8m.js";
|
|
7
|
+
import { PageHeader as a } from "./components/documentation/page/header.es.js";
|
|
8
|
+
import { PageLoader as o } from "./components/documentation/page/loader.es.js";
|
|
9
|
+
import { t as s } from "./navigation-B26nKjER.js";
|
|
10
|
+
import { DocumentationProvider as c, useDocumentationContext as l } from "./contexts/documentation.es.js";
|
|
11
|
+
import { t as u } from "./sidebar-V1MCkkEu.js";
|
|
12
|
+
import { t as d } from "./content-ClFdagzQ.js";
|
|
13
|
+
import { t as f } from "./toggle-DoePXMlE.js";
|
|
14
|
+
import { t as p } from "./toc-4StZsTN_.js";
|
|
15
|
+
import { t as m } from "./content-SlTW2OsO.js";
|
|
16
|
+
import { n as h, r as g, t as _ } from "./file-system-CW_7OsYk.js";
|
|
17
|
+
import { t as v } from "./spinner-BWq14zTZ.js";
|
|
18
|
+
import { n as y, t as b } from "./story-D6POW6tk.js";
|
|
19
|
+
export { e as Button, t as DocumentationContent, n as DocumentationHeader, r as DocumentationLayout, c as DocumentationProvider, u as DocumentationSidebar, d as DocumentationSidebarContent, f as DocumentationSidebarToggle, p as DocumentationToc, m as DocumentationTocContent, _ as File, h as FileSystem, g as Folder, i as PageContent, a as PageHeader, o as PageLoader, s as PageNavigation, v as Spinner, b as defineBook, y as defineStory, l as useDocumentationContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-CaAiuA5w.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import './assets/layout.css';//#region ../styles/src/components/documentation/layout.module.css
|
|
4
|
-
var n = { default: "
|
|
4
|
+
var n = { default: "_default_1mku3_1" };
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/documentation/layout.tsx
|
|
7
7
|
function r({ children: r, className: i, ...a }) {
|
|
@@ -14,4 +14,4 @@ function r({ children: r, className: i, ...a }) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { r as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=layout-
|
|
17
|
+
//# sourceMappingURL=layout-9WOcI8QC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-9WOcI8QC.js","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\tbackground-color: var(--_sleetch-color-background);\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 100vh;\n}\n","import styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n\treturn (\n\t\t<main className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</main>\n\t);\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAoB,EAAE,aAAU,cAAW,GAAG,KAAmC;CAChG,OACC,kBAAC,QAAD;EAAM,WAAW,EAAK,EAAO,SAAS,CAAS;EAAG,GAAI;EACpD;CACI,CAAA;AAER"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require('./assets/layout.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`
|
|
2
|
-
//# sourceMappingURL=layout-
|
|
1
|
+
require('./assets/layout.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1mku3_1`};function r({children:r,className:i,...a}){return(0,t.jsx)(`main`,{className:e.t(n.default,i),...a,children:r})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=layout-CNLxKkFm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-CNLxKkFm.cjs","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":[".default {\n\tcolor: var(--_sleetch-color-text);\n\tbackground-color: var(--_sleetch-color-background);\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 100vh;\n}\n","import styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\nimport type { BaseHTMLAttributes } from 'react';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n\treturn (\n\t\t<main className={clsx(styles.default, className)} {...props}>\n\t\t\t{children}\n\t\t</main>\n\t);\n}\n"],"mappings":"6GCMA,SAAgB,EAAoB,CAAE,WAAU,YAAW,GAAG,GAAmC,CAChG,OACC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAA,EAAK,EAAO,QAAS,CAAS,EAAG,GAAI,EACpD,UACI,CAAA,CAER"}
|
|
@@ -2,34 +2,38 @@ import { t as e } from "./clsx-CaAiuA5w.js";
|
|
|
2
2
|
import { useDocumentationContext as t } from "./contexts/documentation.es.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
5
|
-
import './assets/navigation.css'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
import './assets/navigation.css';//#region ../client/dist/index.js
|
|
6
|
+
function a(e) {
|
|
7
|
+
return !e || e.length === 0 ? e = "/" : e !== "/" && (e.startsWith("/", 0) || (e = `/${e}`), e.endsWith("/") && (e = e.slice(0, -1))), e;
|
|
8
|
+
}
|
|
9
|
+
var o = {
|
|
10
|
+
navigation: "_navigation_1027v_1",
|
|
11
|
+
slot: "_slot_1027v_11",
|
|
12
|
+
"slot-end": "_slot-end_1027v_15",
|
|
13
|
+
card: "_card_1027v_19",
|
|
14
|
+
next: "_next_1027v_46",
|
|
15
|
+
previous: "_previous_1027v_51",
|
|
16
|
+
meta: "_meta_1027v_56",
|
|
17
|
+
chevron: "_chevron_1027v_64",
|
|
18
|
+
title: "_title_1027v_70",
|
|
19
|
+
description: "_description_1027v_77"
|
|
16
20
|
};
|
|
17
21
|
//#endregion
|
|
18
22
|
//#region src/components/documentation/page/navigation.tsx
|
|
19
|
-
function
|
|
23
|
+
function s(e) {
|
|
20
24
|
return e.type === "category" ? e?.frontmatter?.order ?? Infinity : e.type === "page" ? e.frontmatter.order ?? Infinity : Infinity;
|
|
21
25
|
}
|
|
22
|
-
function
|
|
26
|
+
function c(e) {
|
|
23
27
|
return e.map((e, t) => ({
|
|
24
28
|
node: e,
|
|
25
29
|
index: t
|
|
26
30
|
})).sort((e, t) => {
|
|
27
|
-
let n =
|
|
31
|
+
let n = s(e.node) - s(t.node);
|
|
28
32
|
return n === 0 ? e.index - t.index : n;
|
|
29
33
|
}).map(({ node: e }) => e);
|
|
30
34
|
}
|
|
31
|
-
function
|
|
32
|
-
let t =
|
|
35
|
+
function l(e) {
|
|
36
|
+
let t = c(e), n = [];
|
|
33
37
|
for (let e of t) {
|
|
34
38
|
if (e.type === "page") {
|
|
35
39
|
n.push(e);
|
|
@@ -39,12 +43,12 @@ function c(e) {
|
|
|
39
43
|
let t = e.page;
|
|
40
44
|
t && n.push(t);
|
|
41
45
|
let r = e.children;
|
|
42
|
-
n.push(...
|
|
46
|
+
n.push(...l(r));
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
return n;
|
|
46
50
|
}
|
|
47
|
-
function
|
|
51
|
+
function u() {
|
|
48
52
|
return /* @__PURE__ */ n("svg", {
|
|
49
53
|
viewBox: "0 0 24 24",
|
|
50
54
|
width: "16",
|
|
@@ -54,11 +58,11 @@ function l() {
|
|
|
54
58
|
strokeWidth: "2.5",
|
|
55
59
|
strokeLinecap: "round",
|
|
56
60
|
strokeLinejoin: "round",
|
|
57
|
-
className:
|
|
61
|
+
className: o.chevron,
|
|
58
62
|
children: /* @__PURE__ */ n("polyline", { points: "15 18 9 12 15 6" })
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
function
|
|
65
|
+
function d() {
|
|
62
66
|
return /* @__PURE__ */ n("svg", {
|
|
63
67
|
viewBox: "0 0 24 24",
|
|
64
68
|
width: "16",
|
|
@@ -68,44 +72,44 @@ function u() {
|
|
|
68
72
|
strokeWidth: "2.5",
|
|
69
73
|
strokeLinecap: "round",
|
|
70
74
|
strokeLinejoin: "round",
|
|
71
|
-
className:
|
|
75
|
+
className: o.chevron,
|
|
72
76
|
children: /* @__PURE__ */ n("polyline", { points: "9 18 15 12 9 6" })
|
|
73
77
|
});
|
|
74
78
|
}
|
|
75
|
-
function
|
|
79
|
+
function f(e, t) {
|
|
76
80
|
return e && e !== "No title." ? e : t;
|
|
77
81
|
}
|
|
78
|
-
function
|
|
82
|
+
function p(e) {
|
|
79
83
|
return e && e !== "No description." ? e : void 0;
|
|
80
84
|
}
|
|
81
|
-
function
|
|
82
|
-
let s =
|
|
85
|
+
function m({ node: i, direction: a }) {
|
|
86
|
+
let s = f(i.frontmatter.title, i.path), c = p(i.frontmatter.description), { language: l, path_transformer: m } = t();
|
|
83
87
|
return /* @__PURE__ */ r("a", {
|
|
84
88
|
href: m({
|
|
85
|
-
language:
|
|
89
|
+
language: l,
|
|
86
90
|
path: i.path
|
|
87
91
|
}),
|
|
88
|
-
className: e(
|
|
89
|
-
"data-direction":
|
|
92
|
+
className: e(o.card, o[a]),
|
|
93
|
+
"data-direction": a,
|
|
90
94
|
children: [/* @__PURE__ */ r("span", {
|
|
91
|
-
className:
|
|
95
|
+
className: o.meta,
|
|
92
96
|
children: [
|
|
93
|
-
|
|
97
|
+
a === "previous" && /* @__PURE__ */ n(u, {}),
|
|
94
98
|
/* @__PURE__ */ n("span", {
|
|
95
|
-
className:
|
|
99
|
+
className: o.title,
|
|
96
100
|
children: s
|
|
97
101
|
}),
|
|
98
|
-
|
|
102
|
+
a === "next" && /* @__PURE__ */ n(d, {})
|
|
99
103
|
]
|
|
100
104
|
}), c && /* @__PURE__ */ n("span", {
|
|
101
|
-
className:
|
|
105
|
+
className: o.description,
|
|
102
106
|
children: c
|
|
103
107
|
})]
|
|
104
108
|
});
|
|
105
109
|
}
|
|
106
|
-
function
|
|
107
|
-
let { tree:
|
|
108
|
-
let e =
|
|
110
|
+
function h({ className: s, ...c }) {
|
|
111
|
+
let { tree: u, current_path: d } = t(), { previous: f, next: p } = i(() => {
|
|
112
|
+
let e = l(u), t = e.findIndex((e) => e.path === a(d));
|
|
109
113
|
return t === -1 ? {
|
|
110
114
|
previous: void 0,
|
|
111
115
|
next: void 0
|
|
@@ -113,27 +117,27 @@ function m({ className: o, ...s }) {
|
|
|
113
117
|
previous: e[t - 1],
|
|
114
118
|
next: e[t + 1]
|
|
115
119
|
};
|
|
116
|
-
}, [
|
|
117
|
-
return !
|
|
118
|
-
className: e(
|
|
120
|
+
}, [u, d]);
|
|
121
|
+
return !f && !p ? null : /* @__PURE__ */ r("nav", {
|
|
122
|
+
className: e(o.navigation, s),
|
|
119
123
|
"aria-label": "Pagination",
|
|
120
|
-
...
|
|
124
|
+
...c,
|
|
121
125
|
children: [/* @__PURE__ */ n("div", {
|
|
122
|
-
className:
|
|
123
|
-
children:
|
|
124
|
-
node:
|
|
126
|
+
className: o.slot,
|
|
127
|
+
children: f && /* @__PURE__ */ n(m, {
|
|
128
|
+
node: f,
|
|
125
129
|
direction: "previous"
|
|
126
130
|
})
|
|
127
131
|
}), /* @__PURE__ */ n("div", {
|
|
128
|
-
className: e(
|
|
129
|
-
children:
|
|
130
|
-
node:
|
|
132
|
+
className: e(o.slot, o["slot-end"]),
|
|
133
|
+
children: p && /* @__PURE__ */ n(m, {
|
|
134
|
+
node: p,
|
|
131
135
|
direction: "next"
|
|
132
136
|
})
|
|
133
137
|
})]
|
|
134
138
|
});
|
|
135
139
|
}
|
|
136
140
|
//#endregion
|
|
137
|
-
export {
|
|
141
|
+
export { h as t };
|
|
138
142
|
|
|
139
|
-
//# sourceMappingURL=navigation-
|
|
143
|
+
//# sourceMappingURL=navigation-B26nKjER.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-B26nKjER.js","names":[],"sources":["../../client/dist/index.js","../../styles/src/components/documentation/page/navigation.module.css","../src/components/documentation/page/navigation.tsx"],"sourcesContent":["//#region src/lib/clean-path.ts\nfunction clean_path(_path) {\n\tif (!_path || _path.length === 0) _path = \"/\";\n\telse if (_path !== \"/\") {\n\t\tif (!_path.startsWith(\"/\", 0)) _path = `/${_path}`;\n\t\tif (_path.endsWith(\"/\")) _path = _path.slice(0, -1);\n\t}\n\treturn _path;\n}\n//#endregion\nexport { clean_path };\n",".navigation {\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1fr;\n\tgap: 1em;\n\tpadding: var(--_sleetch-padding-root);\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n\tfont-family: var(--_sleetch-font-base);\n}\n\n.slot {\n\tdisplay: flex;\n}\n\n.slot-end {\n\tjustify-content: flex-end;\n}\n\n.card {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.25em;\n\twidth: 100%;\n\tmax-width: 320px;\n\tpadding: 1em 1em;\n\tborder-radius: var(--_sleetch-radius);\n\tborder: var(--_sleetch-hr-height) solid var(--_sleetch-color-border);\n\tcolor: var(--_sleetch-color-text);\n\ttext-decoration: none;\n\ttransition:\n\t\tborder-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n\t\tbackground-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.card:hover,\n.card:focus-visible {\n\tborder-color: var(--_sleetch-color-text-primary);\n\tbackground-color: color-mix(in srgb, var(--_sleetch-color-text-primary) 8%, var(--_sleetch-color-card));\n}\n\n.card:focus-visible {\n\toutline: 2px solid var(--_sleetch-color-text-primary);\n\toutline-offset: 2px;\n}\n\n.next {\n\talign-items: flex-end;\n\ttext-align: right;\n}\n\n.previous {\n\talign-items: flex-start;\n\ttext-align: left;\n}\n\n.meta {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 0.3em;\n\tfont-size: var(--_sleetch-font-size-tiny);\n\tcolor: var(--_sleetch-color-muted-foreground);\n}\n\n.chevron {\n\tflex-shrink: 0;\n\twidth: 20px;\n\theight: 20px;\n}\n\n.title {\n\tfont-size: var(--_sleetch-font-size-base);\n\tfont-weight: var(--_sleetch-font-weight-heading);\n\tline-height: var(--_sleetch-line-height-heading);\n\tcolor: var(--_sleetch-color-text);\n}\n\n.description {\n\tfont-size: var(--_sleetch-font-size-tiny);\n\tline-height: var(--_sleetch-line-height);\n\tcolor: var(--_sleetch-color-muted-foreground);\n\toverflow: hidden;\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n\t.navigation {\n\t\tpadding: 1.5em 2em;\n\t}\n}\n\n@media (max-width: 768px) {\n\t.card {\n\t\tmax-width: 100%;\n\t}\n\n\t.navigation {\n\t\tgrid-template-columns: 1fr;\n\n\t\tpadding: 1em 1em;\n\t}\n\n\t.slot-end {\n\t\tjustify-content: flex-start;\n\t}\n\n\t.next {\n\t\talign-items: flex-start;\n\t\ttext-align: left;\n\t}\n}\n","/*\n AI Generated :(\n Needs more testing\n*/\n\nimport { clean_path } from '@sleetch/client';\nimport type { tree_object } from '@sleetch/core/compiler';\nimport styles from '@sleetch/styles/components/documentation/page/navigation.module.css';\nimport clsx from 'clsx';\nimport { useDocumentationContext } from 'packages/react/src/contexts/documentation';\nimport { type BaseHTMLAttributes, useMemo } from 'react';\n\ntype page_node = Extract<tree_object, { type: 'page' }>;\n\nexport interface DocumentationNavigationProps extends BaseHTMLAttributes<HTMLDivElement> {}\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 getOrder(node: tree_object): number {\n\tif (node.type === 'category') {\n\t\treturn node?.frontmatter?.order ?? Number.POSITIVE_INFINITY;\n\t}\n\tif (node.type === 'page') {\n\t\treturn (node.frontmatter as { order?: number }).order ?? Number.POSITIVE_INFINITY;\n\t}\n\treturn Number.POSITIVE_INFINITY;\n}\n\nfunction sortNodes(nodes: tree_object[]): tree_object[] {\n\treturn nodes\n\t\t.map((node, index) => ({ node, index }))\n\t\t.sort((a, b) => {\n\t\t\tconst diff = getOrder(a.node) - getOrder(b.node);\n\t\t\treturn diff !== 0 ? diff : a.index - b.index;\n\t\t})\n\t\t.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\tconst sorted = sortNodes(nodes);\n\tconst result: page_node[] = [];\n\n\tfor (const node of sorted) {\n\t\tif (node.type === 'page') {\n\t\t\tresult.push(node);\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (node.type === 'category') {\n\t\t\tconst indexPage = node.page;\n\t\t\tif (indexPage) result.push(indexPage);\n\t\t\tconst rest = node.children;\n\t\t\tresult.push(...flattenPages(rest));\n\t\t}\n\t}\n\n\treturn result;\n}\n\nfunction ChevronLeft() {\n\treturn (\n\t\t<svg\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"2.5\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tclassName={styles.chevron}\n\t\t>\n\t\t\t<polyline points=\"15 18 9 12 15 6\" />\n\t\t</svg>\n\t);\n}\n\nfunction ChevronRight() {\n\treturn (\n\t\t<svg\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"16\"\n\t\t\theight=\"16\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"2.5\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tclassName={styles.chevron}\n\t\t>\n\t\t\t<polyline points=\"9 18 15 12 9 6\" />\n\t\t</svg>\n\t);\n}\n\nfunction resolveTitle(title: string, fallbackPath: string): string {\n\treturn title && title !== 'No title.' ? title : fallbackPath;\n}\n\nfunction resolveDescription(description: string): string | undefined {\n\treturn description && description !== 'No description.' ? description : undefined;\n}\n\ninterface NavigationCardProps {\n\tnode: page_node;\n\tdirection: 'previous' | 'next';\n}\n\nfunction NavigationCard({ node, direction }: NavigationCardProps) {\n\tconst title = resolveTitle(node.frontmatter.title, node.path);\n\tconst description = resolveDescription(node.frontmatter.description);\n\tconst { language, path_transformer } = useDocumentationContext();\n\n\treturn (\n\t\t<a href={path_transformer({ language, path: node.path })} className={clsx(styles.card, styles[direction])} data-direction={direction}>\n\t\t\t<span className={styles.meta}>\n\t\t\t\t{direction === 'previous' && <ChevronLeft />}\n\t\t\t\t<span className={styles.title}>{title}</span>\n\t\t\t\t{direction === 'next' && <ChevronRight />}\n\t\t\t</span>\n\t\t\t{description && <span className={styles.description}>{description}</span>}\n\t\t</a>\n\t);\n}\n\nexport function PageNavigation({ className, ...props }: DocumentationNavigationProps) {\n\tconst { tree, current_path } = useDocumentationContext();\n\tconst { previous, next } = useMemo(() => {\n\t\tconst pages = flattenPages(tree);\n\t\tconst currentIndex = pages.findIndex((page) => page.path === clean_path(current_path));\n\n\t\tif (currentIndex === -1) {\n\t\t\treturn { previous: undefined, next: undefined };\n\t\t}\n\n\t\treturn {\n\t\t\tprevious: pages[currentIndex - 1],\n\t\t\tnext: pages[currentIndex + 1],\n\t\t};\n\t}, [tree, current_path]);\n\n\tif (!previous && !next) return null;\n\n\treturn (\n\t\t<nav className={clsx(styles.navigation, className)} aria-label=\"Pagination\" {...props}>\n\t\t\t<div className={styles.slot}>{previous && <NavigationCard node={previous} direction=\"previous\" />}</div>\n\t\t\t<div className={clsx(styles.slot, styles['slot-end'])}>{next && <NavigationCard node={next} direction=\"next\" />}</div>\n\t\t</nav>\n\t);\n}\n"],"mappings":";;;;;AACA,SAAS,EAAW,GAAO;CAM1B,OALI,CAAC,KAAS,EAAM,WAAW,IAAG,IAAQ,MACjC,MAAU,QACb,EAAM,WAAW,KAAK,CAAC,MAAG,IAAQ,IAAI,MACvC,EAAM,SAAS,GAAG,MAAG,IAAQ,EAAM,MAAM,GAAG,EAAE,KAE5C;AACR;;;;;;;;;;;;;;;AEcA,SAAS,EAAS,GAA2B;CAO5C,OANI,EAAK,SAAS,aACV,GAAM,aAAa,SAAS,WAEhC,EAAK,SAAS,SACT,EAAK,YAAmC,SAAS,WAEnD;AACR;AAEA,SAAS,EAAU,GAAqC;CACvD,OAAO,EACL,KAAK,GAAM,OAAW;EAAE;EAAM;CAAM,EAAE,CAAC,CACvC,MAAM,GAAG,MAAM;EACf,IAAM,IAAO,EAAS,EAAE,IAAI,IAAI,EAAS,EAAE,IAAI;EAC/C,OAAO,MAAS,IAAW,EAAE,QAAQ,EAAE,QAAnB;CACrB,CAAC,CAAC,CACD,KAAK,EAAE,cAAW,CAAI;AACzB;AAOA,SAAS,EAAa,GAAmC;CACxD,IAAM,IAAS,EAAU,CAAK,GACxB,IAAsB,CAAC;CAE7B,KAAK,IAAM,KAAQ,GAAQ;EAC1B,IAAI,EAAK,SAAS,QAAQ;GACzB,EAAO,KAAK,CAAI;GAChB;EACD;EAEA,IAAI,EAAK,SAAS,YAAY;GAC7B,IAAM,IAAY,EAAK;GACvB,AAAI,KAAW,EAAO,KAAK,CAAS;GACpC,IAAM,IAAO,EAAK;GAClB,EAAO,KAAK,GAAG,EAAa,CAAI,CAAC;EAClC;CACD;CAEA,OAAO;AACR;AAEA,SAAS,IAAc;CACtB,OACC,kBAAC,OAAD;EACC,SAAQ;EACR,OAAM;EACN,QAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAW,EAAO;EAElB,UAAA,kBAAC,YAAD,EAAU,QAAO,kBAAmB,CAAA;CAChC,CAAA;AAEP;AAEA,SAAS,IAAe;CACvB,OACC,kBAAC,OAAD;EACC,SAAQ;EACR,OAAM;EACN,QAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAW,EAAO;EAElB,UAAA,kBAAC,YAAD,EAAU,QAAO,iBAAkB,CAAA;CAC/B,CAAA;AAEP;AAEA,SAAS,EAAa,GAAe,GAA8B;CAClE,OAAO,KAAS,MAAU,cAAc,IAAQ;AACjD;AAEA,SAAS,EAAmB,GAAyC;CACpE,OAAO,KAAe,MAAgB,oBAAoB,IAAc,KAAA;AACzE;AAOA,SAAS,EAAe,EAAE,SAAM,gBAAkC;CACjE,IAAM,IAAQ,EAAa,EAAK,YAAY,OAAO,EAAK,IAAI,GACtD,IAAc,EAAmB,EAAK,YAAY,WAAW,GAC7D,EAAE,aAAU,wBAAqB,EAAwB;CAE/D,OACC,kBAAC,KAAD;EAAG,MAAM,EAAiB;GAAE;GAAU,MAAM,EAAK;EAAK,CAAC;EAAG,WAAW,EAAK,EAAO,MAAM,EAAO,EAAU;EAAG,kBAAgB;EAA3H,UAAA,CACC,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAxB,UAAA;IACE,MAAc,cAAc,kBAAC,GAAD,CAAc,CAAA;IAC3C,kBAAC,QAAD;KAAM,WAAW,EAAO;KAAQ,UAAA;IAAY,CAAA;IAC3C,MAAc,UAAU,kBAAC,GAAD,CAAe,CAAA;GACnC;EACL,CAAA,GAAA,KAAe,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAc,UAAA;EAAkB,CAAA,CACtE;;AAEL;AAEA,SAAgB,EAAe,EAAE,cAAW,GAAG,KAAuC;CACrF,IAAM,EAAE,SAAM,oBAAiB,EAAwB,GACjD,EAAE,aAAU,YAAS,QAAc;EACxC,IAAM,IAAQ,EAAa,CAAI,GACzB,IAAe,EAAM,WAAW,MAAS,EAAK,SAAS,EAAW,CAAY,CAAC;EAMrF,OAJI,MAAiB,KACb;GAAE,UAAU,KAAA;GAAW,MAAM,KAAA;EAAU,IAGxC;GACN,UAAU,EAAM,IAAe;GAC/B,MAAM,EAAM,IAAe;EAC5B;CACD,GAAG,CAAC,GAAM,CAAY,CAAC;CAIvB,OAFI,CAAC,KAAY,CAAC,IAAa,OAG9B,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,YAAY,CAAS;EAAG,cAAW;EAAa,GAAI;EAAhF,UAAA,CACC,kBAAC,OAAD;GAAK,WAAW,EAAO;GAAO,UAAA,KAAY,kBAAC,GAAD;IAAgB,MAAM;IAAU,WAAU;GAAY,CAAA;EAAO,CAAA,GACvG,kBAAC,OAAD;GAAK,WAAW,EAAK,EAAO,MAAM,EAAO,WAAW;GAAI,UAAA,KAAQ,kBAAC,GAAD;IAAgB,MAAM;IAAM,WAAU;GAAQ,CAAA;EAAO,CAAA,CACjH;;AAEP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./assets/navigation.css');const e=require("./clsx-GLXUd3yb.cjs"),t=require("./contexts/documentation.cjs.js");let n=require("react/jsx-runtime"),r=require("react");function i(e){return!e||e.length===0?e=`/`:e!==`/`&&(e.startsWith(`/`,0)||(e=`/${e}`),e.endsWith(`/`)&&(e=e.slice(0,-1))),e}var a={navigation:`_navigation_1027v_1`,slot:`_slot_1027v_11`,"slot-end":`_slot-end_1027v_15`,card:`_card_1027v_19`,next:`_next_1027v_46`,previous:`_previous_1027v_51`,meta:`_meta_1027v_56`,chevron:`_chevron_1027v_64`,title:`_title_1027v_70`,description:`_description_1027v_77`};function o(e){return e.type===`category`?e?.frontmatter?.order??1/0:e.type===`page`?e.frontmatter.order??1/0:1/0}function s(e){return e.map((e,t)=>({node:e,index:t})).sort((e,t)=>{let n=o(e.node)-o(t.node);return n===0?e.index-t.index:n}).map(({node:e})=>e)}function c(e){let t=s(e),n=[];for(let e of t){if(e.type===`page`){n.push(e);continue}if(e.type===`category`){let t=e.page;t&&n.push(t);let r=e.children;n.push(...c(r))}}return n}function l(){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:a.chevron,children:(0,n.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}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:a.chevron,children:(0,n.jsx)(`polyline`,{points:`9 18 15 12 9 6`})})}function d(e,t){return e&&e!==`No title.`?e:t}function f(e){return e&&e!==`No description.`?e:void 0}function p({node:r,direction:i}){let o=d(r.frontmatter.title,r.path),s=f(r.frontmatter.description),{language:c,path_transformer:p}=t.useDocumentationContext();return(0,n.jsxs)(`a`,{href:p({language:c,path:r.path}),className:e.t(a.card,a[i]),"data-direction":i,children:[(0,n.jsxs)(`span`,{className:a.meta,children:[i===`previous`&&(0,n.jsx)(l,{}),(0,n.jsx)(`span`,{className:a.title,children:o}),i===`next`&&(0,n.jsx)(u,{})]}),s&&(0,n.jsx)(`span`,{className:a.description,children:s})]})}function m({className:o,...s}){let{tree:l,current_path:u}=t.useDocumentationContext(),{previous:d,next:f}=(0,r.useMemo)(()=>{let e=c(l),t=e.findIndex(e=>e.path===i(u));return t===-1?{previous:void 0,next:void 0}:{previous:e[t-1],next:e[t+1]}},[l,u]);return!d&&!f?null:(0,n.jsxs)(`nav`,{className:e.t(a.navigation,o),"aria-label":`Pagination`,...s,children:[(0,n.jsx)(`div`,{className:a.slot,children:d&&(0,n.jsx)(p,{node:d,direction:`previous`})}),(0,n.jsx)(`div`,{className:e.t(a.slot,a[`slot-end`]),children:f&&(0,n.jsx)(p,{node:f,direction:`next`})})]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
2
|
+
//# sourceMappingURL=navigation-CmXsaglM.cjs.map
|