@sleetch/react 1.0.6 → 1.0.8
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/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/toc.css +1 -1
- package/dist/{button-BVRKTAnQ.js → button-B6mWWZyo.js} +7 -7
- package/dist/button-B6mWWZyo.js.map +1 -0
- package/dist/{button-rojnIyoM.cjs → button-DLQL3vVY.cjs} +2 -2
- package/dist/button-DLQL3vVY.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.d.ts +1 -2
- package/dist/components/documentation/header.es.js +2 -1
- 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 +2 -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 +2 -2
- package/dist/components/documentation/page/header.es.js +14 -16
- package/dist/components/documentation/page/header.es.js.map +1 -1
- package/dist/components/documentation/page/loader.cjs.js +2 -0
- package/dist/components/documentation/page/loader.cjs.js.map +1 -0
- package/dist/components/documentation/page/loader.d.ts +6 -0
- package/dist/components/documentation/page/loader.es.js +7 -0
- package/dist/components/documentation/page/loader.es.js.map +1 -0
- 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/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 +2 -2
- 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/{content-CQ5PQ1-Z.cjs → content-8dXeWXcA.cjs} +2 -2
- package/dist/content-8dXeWXcA.cjs.map +1 -0
- package/dist/{content-DsE39ENV.cjs → content-BJ6O_X1Y.cjs} +2 -2
- package/dist/content-BJ6O_X1Y.cjs.map +1 -0
- package/dist/content-BU9cbvVn.cjs +2 -0
- package/dist/content-BU9cbvVn.cjs.map +1 -0
- package/dist/{content-DvLxAJYd.js → content-CP58YEGJ.js} +3 -3
- package/dist/content-CP58YEGJ.js.map +1 -0
- package/dist/content-CjmD3T8J.cjs +2 -0
- package/dist/content-CjmD3T8J.cjs.map +1 -0
- package/dist/content-D0ROn3Pd.js +36 -0
- package/dist/content-D0ROn3Pd.js.map +1 -0
- package/dist/{content-Wo136UBd.js → content-DmSVqH2f.js} +4 -4
- package/dist/content-DmSVqH2f.js.map +1 -0
- package/dist/{content-CoLxuTJs.js → content-eQM-qDRO.js} +4 -4
- package/dist/content-eQM-qDRO.js.map +1 -0
- package/dist/contexts/documentation.cjs.js +1 -1
- package/dist/contexts/documentation.cjs.js.map +1 -1
- package/dist/contexts/documentation.d.ts +1 -1
- package/dist/contexts/documentation.es.js +8 -8
- package/dist/contexts/documentation.es.js.map +1 -1
- package/dist/{file-system-Ca6fqwTn.cjs → file-system-BNu9B10z.cjs} +2 -2
- package/dist/file-system-BNu9B10z.cjs.map +1 -0
- package/dist/{file-system-CMsswKsJ.js → file-system-SWuikr8O.js} +12 -12
- package/dist/file-system-SWuikr8O.js.map +1 -0
- package/dist/{header-aBbFHuW8.js → header-1bJsyr4I.js} +19 -17
- package/dist/header-1bJsyr4I.js.map +1 -0
- package/dist/header-3dQ5Gq3p.cjs +2 -0
- package/dist/header-3dQ5Gq3p.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +10 -9
- package/dist/index.es.js +15 -14
- package/dist/{layout-C_NguCrO.js → layout-BE3-MmWB.js} +2 -2
- package/dist/layout-BE3-MmWB.js.map +1 -0
- package/dist/{layout-B9nkyVRH.cjs → layout-vfa7JhoC.cjs} +2 -2
- package/dist/layout-vfa7JhoC.cjs.map +1 -0
- package/dist/{navigation-bIVcotMC.js → navigation-BWmLA_nr.js} +37 -37
- package/dist/navigation-BWmLA_nr.js.map +1 -0
- package/dist/navigation-D6nkWYOB.cjs +2 -0
- package/dist/navigation-D6nkWYOB.cjs.map +1 -0
- package/dist/sidebar-D7bXjwCm.js +162 -0
- package/dist/sidebar-D7bXjwCm.js.map +1 -0
- package/dist/sidebar-DSOeiBFI.cjs +2 -0
- package/dist/sidebar-DSOeiBFI.cjs.map +1 -0
- package/dist/toc-DkBTetNW.cjs +2 -0
- package/dist/toc-DkBTetNW.cjs.map +1 -0
- package/dist/toc-rfPQJ_Pf.js +101 -0
- package/dist/toc-rfPQJ_Pf.js.map +1 -0
- package/package.json +47 -47
- package/dist/button-BVRKTAnQ.js.map +0 -1
- package/dist/button-rojnIyoM.cjs.map +0 -1
- package/dist/content-CQ5PQ1-Z.cjs.map +0 -1
- package/dist/content-CoLxuTJs.js.map +0 -1
- package/dist/content-DOo3vcgG.cjs +0 -2
- package/dist/content-DOo3vcgG.cjs.map +0 -1
- package/dist/content-DsE39ENV.cjs.map +0 -1
- package/dist/content-DvLxAJYd.js.map +0 -1
- package/dist/content-KDKeEwv-.cjs +0 -2
- package/dist/content-KDKeEwv-.cjs.map +0 -1
- package/dist/content-Wo136UBd.js.map +0 -1
- package/dist/content-xKdbA544.js +0 -37
- package/dist/content-xKdbA544.js.map +0 -1
- package/dist/file-system-CMsswKsJ.js.map +0 -1
- package/dist/file-system-Ca6fqwTn.cjs.map +0 -1
- package/dist/header-D6vF0VLY.cjs +0 -2
- package/dist/header-D6vF0VLY.cjs.map +0 -1
- package/dist/header-aBbFHuW8.js.map +0 -1
- package/dist/layout-B9nkyVRH.cjs.map +0 -1
- package/dist/layout-C_NguCrO.js.map +0 -1
- package/dist/navigation-BCpfEaXG.cjs +0 -2
- package/dist/navigation-BCpfEaXG.cjs.map +0 -1
- package/dist/navigation-bIVcotMC.js.map +0 -1
- package/dist/sidebar-CiheJpEa.cjs +0 -2
- package/dist/sidebar-CiheJpEa.cjs.map +0 -1
- package/dist/sidebar-aXd_UA6s.js +0 -162
- package/dist/sidebar-aXd_UA6s.js.map +0 -1
- package/dist/toc-CI_8-KFH.cjs +0 -2
- package/dist/toc-CI_8-KFH.cjs.map +0 -1
- package/dist/toc-Dvn-UEjm.js +0 -103
- package/dist/toc-Dvn-UEjm.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"name": "@sleetch/react",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite build --watch",
|
|
10
|
+
"build": "vite build"
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.es.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.es.js",
|
|
17
|
+
"require": "./dist/index.cjs.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
29
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@sleetch/core": "1.0.8",
|
|
33
|
+
"@sleetch/styles": "1.0.8",
|
|
34
|
+
"@sleetch/vite": "1.0.8",
|
|
35
|
+
"@types/mdx": "^2.0.14",
|
|
36
|
+
"@types/react": "^19",
|
|
37
|
+
"@types/react-dom": "^19",
|
|
38
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
39
|
+
"react": "^19.0.0",
|
|
40
|
+
"react-dom": "^19.0.0",
|
|
41
|
+
"vite": "^8.1.3",
|
|
42
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
46
|
+
"clsx": "^2.1.1",
|
|
47
|
+
"glob": "^13.0.6",
|
|
48
|
+
"vite-plugin-dts": "^5.0.3"
|
|
19
49
|
}
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
],
|
|
24
|
-
"sideEffects": [
|
|
25
|
-
"**/*.css"
|
|
26
|
-
],
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
29
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@sleetch/core": "1.0.6",
|
|
33
|
-
"@sleetch/styles": "1.0.6",
|
|
34
|
-
"@sleetch/vite": "1.0.6",
|
|
35
|
-
"@types/mdx": "^2.0.14",
|
|
36
|
-
"@types/react": "^19",
|
|
37
|
-
"@types/react-dom": "^19",
|
|
38
|
-
"@vitejs/plugin-react": "^6.0.3",
|
|
39
|
-
"react": "^19.0.0",
|
|
40
|
-
"react-dom": "^19.0.0",
|
|
41
|
-
"vite": "^8.1.3",
|
|
42
|
-
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@mdx-js/mdx": "^3.1.1",
|
|
46
|
-
"clsx": "^2.1.1",
|
|
47
|
-
"glob": "^13.0.6",
|
|
48
|
-
"vite-plugin-dts": "^5.0.3"
|
|
49
|
-
}
|
|
50
50
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-BVRKTAnQ.js","names":[],"sources":["../../styles/src/components/button.module.css","../src/components/button.tsx"],"sourcesContent":["/* Shared base */\n.default,\n.primary,\n.secondary,\n.ghost,\n.outline,\n.destructive {\n border-radius: var(--_sleetch-radius);\n padding: 3px 10px;\n font-family: var(--_sleetch-font-base);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border: 1px solid transparent;\n transition:\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n border-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n filter var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n opacity var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n/* Default — neutral filled, matches card surface */\n.default {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-background);\n border-color: var(--_sleetch-color-border);\n}\n.default:hover {\n background-color: var(--_sleetch-color-muted);\n border-color: var(--_sleetch-color-text-underline);\n}\n\n.outline {\n color: var(--_sleetch-color-text);\n border-color: var(--_sleetch-color-border);\n}\n.outline:hover {\n background-color: var(--_sleetch-color-muted);\n border-color: var(--_sleetch-color-text-underline);\n}\n\n.primary {\n color: var(--_sleetch-color-primary-foreground);\n background-color: var(--_sleetch-color-text-primary);\n border-color: transparent;\n}\n.primary:hover {\n filter: brightness(1.1);\n}\n\n.secondary {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-secondary);\n border-color: var(--_sleetch-color-border);\n}\n.secondary:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n/* Ghost — no border, no fill until interaction */\n.ghost {\n color: var(--_sleetch-color-text);\n background-color: transparent;\n border-color: transparent;\n}\n.ghost:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n/* Destructive — dangerous / irreversible actions */\n.destructive {\n color: var(--_sleetch-color-background);\n background-color: var(--_sleetch-syntax-deletion);\n border-color: transparent;\n}\n.destructive:hover {\n filter: brightness(1.1);\n}\n\n/* Shared interaction states */\n.default:active,\n.primary:active,\n.secondary:active,\n.ghost:active,\n.outline:active,\n.destructive:active {\n transform: scale(0.98);\n}\n\n.default:disabled,\n.primary:disabled,\n.secondary:disabled,\n.ghost:disabled,\n.outline:disabled,\n.destructive:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n transform: none;\n filter: none;\n}\n\n@media (max-width: 768px) {\n .default,\n .primary,\n .secondary,\n .ghost,\n .outline,\n .destructive {\n padding: 6px 12px;\n font-size: 14px;\n }\n}\n\n:global(.sleetch-markdown) .default,\n:global(.sleetch-markdown) .primary,\n:global(.sleetch-markdown) .secondary,\n:global(.sleetch-markdown) .ghost,\n:global(.sleetch-markdown) .outline,\n:global(.sleetch-markdown) .destructive {\n margin: 0 0 1em;\n}\n","import type { ButtonHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/button.module.css';\nimport clsx from 'clsx';\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: 'default' | 'secondary' | 'primary' | 'ghost' | 'destructive' | 'outline';\n}\n\nexport function Button({ variant = 'default', className, children, ...props }: ButtonProps) {\n return (\n <button className={clsx(styles[variant], className)} {...props}>\n {children}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;;ACQA,SAAgB,EAAO,EAAE,aAAU,WAAW,cAAW,aAAU,GAAG,KAAsB;CAC1F,OACE,kBAAC,UAAD;EAAQ,WAAW,EAAK,EAAO,IAAU,CAAS;EAAG,GAAI;EACtD;CACK,CAAA;AAEZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-rojnIyoM.cjs","names":[],"sources":["../../styles/src/components/button.module.css","../src/components/button.tsx"],"sourcesContent":["/* Shared base */\n.default,\n.primary,\n.secondary,\n.ghost,\n.outline,\n.destructive {\n border-radius: var(--_sleetch-radius);\n padding: 3px 10px;\n font-family: var(--_sleetch-font-base);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border: 1px solid transparent;\n transition:\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n border-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n filter var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n opacity var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n/* Default — neutral filled, matches card surface */\n.default {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-background);\n border-color: var(--_sleetch-color-border);\n}\n.default:hover {\n background-color: var(--_sleetch-color-muted);\n border-color: var(--_sleetch-color-text-underline);\n}\n\n.outline {\n color: var(--_sleetch-color-text);\n border-color: var(--_sleetch-color-border);\n}\n.outline:hover {\n background-color: var(--_sleetch-color-muted);\n border-color: var(--_sleetch-color-text-underline);\n}\n\n.primary {\n color: var(--_sleetch-color-primary-foreground);\n background-color: var(--_sleetch-color-text-primary);\n border-color: transparent;\n}\n.primary:hover {\n filter: brightness(1.1);\n}\n\n.secondary {\n color: var(--_sleetch-color-text);\n background-color: var(--_sleetch-color-secondary);\n border-color: var(--_sleetch-color-border);\n}\n.secondary:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n/* Ghost — no border, no fill until interaction */\n.ghost {\n color: var(--_sleetch-color-text);\n background-color: transparent;\n border-color: transparent;\n}\n.ghost:hover {\n background-color: var(--_sleetch-color-muted);\n}\n\n/* Destructive — dangerous / irreversible actions */\n.destructive {\n color: var(--_sleetch-color-background);\n background-color: var(--_sleetch-syntax-deletion);\n border-color: transparent;\n}\n.destructive:hover {\n filter: brightness(1.1);\n}\n\n/* Shared interaction states */\n.default:active,\n.primary:active,\n.secondary:active,\n.ghost:active,\n.outline:active,\n.destructive:active {\n transform: scale(0.98);\n}\n\n.default:disabled,\n.primary:disabled,\n.secondary:disabled,\n.ghost:disabled,\n.outline:disabled,\n.destructive:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n transform: none;\n filter: none;\n}\n\n@media (max-width: 768px) {\n .default,\n .primary,\n .secondary,\n .ghost,\n .outline,\n .destructive {\n padding: 6px 12px;\n font-size: 14px;\n }\n}\n\n:global(.sleetch-markdown) .default,\n:global(.sleetch-markdown) .primary,\n:global(.sleetch-markdown) .secondary,\n:global(.sleetch-markdown) .ghost,\n:global(.sleetch-markdown) .outline,\n:global(.sleetch-markdown) .destructive {\n margin: 0 0 1em;\n}\n","import type { ButtonHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/button.module.css';\nimport clsx from 'clsx';\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: 'default' | 'secondary' | 'primary' | 'ghost' | 'destructive' | 'outline';\n}\n\nexport function Button({ variant = 'default', className, children, ...props }: ButtonProps) {\n return (\n <button className={clsx(styles[variant], className)} {...props}>\n {children}\n </button>\n );\n}\n"],"mappings":"4PCQA,SAAgB,EAAO,CAAE,UAAU,UAAW,YAAW,WAAU,GAAG,GAAsB,CAC1F,OACE,EAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAW,EAAA,EAAK,EAAO,GAAU,CAAS,EAAG,GAAI,EACtD,UACK,CAAA,CAEZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-CQ5PQ1-Z.cjs","names":[],"sources":["../../styles/src/components/documentation/sidebar/content.module.css","../src/components/documentation/sidebar/content.tsx"],"sourcesContent":[".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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-CoLxuTJs.js","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":[".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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require('./assets/content.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_1bzkg_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-DOo3vcgG.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-DOo3vcgG.cjs","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":[".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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-DsE39ENV.cjs","names":[],"sources":["../../styles/src/components/documentation/content.module.css","../src/components/documentation/content.tsx"],"sourcesContent":[".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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-DvLxAJYd.js","names":[],"sources":["../../styles/src/components/documentation/sidebar/content.module.css","../src/components/documentation/sidebar/content.tsx"],"sourcesContent":[".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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
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,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,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)}var f=new Map;function p(e){return d(e,{...l,baseUrl:{}.url})}function m(e){let t=f.get(e);return t||(t=p(e),f.set(e,t)),t}function h({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{default:r}=(0,c.use)(m(n.default.parsed.code));return(0,l.jsx)(`div`,{className:`sleetch-markdown`,children:(0,l.jsx)(r,{components:t})})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
|
2
|
-
//# sourceMappingURL=content-KDKeEwv-.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-KDKeEwv-.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\nconst mdxCache = new Map<string, ReturnType<typeof compileMDX>>();\n\nfunction compileMDX(code: string) {\n return run(code, {\n ...runtime,\n baseUrl: import.meta.url,\n });\n}\n\nfunction getCompiledMDX(code: string) {\n let promise = mdxCache.get(code);\n\n if (!promise) {\n promise = compileMDX(code);\n mdxCache.set(code, promise);\n }\n\n return promise;\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 { default: Content } = use(getCompiledMDX(value.default.parsed.code));\n\n return (\n <div className=\"sleetch-markdown\">\n <Content components={components} />\n </div>\n );\n}\n"],"x_google_ignoreList":[0],"mappings":"mjBAMA,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,CAChC,OAAO,EAAI,EAAM,CACf,GAAG,EACH,QAAA,CAAA,EAAqB,GACvB,CAAC,CACH,CAEA,SAAS,EAAe,EAAc,CACpC,IAAI,EAAU,EAAS,IAAI,CAAI,EAO/B,OALK,IACH,EAAU,EAAW,CAAI,EACzB,EAAS,IAAI,EAAM,CAAO,GAGrB,CACT,CACA,SAAgB,EAAY,CAAE,OAAM,cAA8E,CAChH,IAAM,GAAA,EAAQ,EAAA,IAAA,CAAI,CAAI,EAEtB,GAAI,EAAM,QAAQ,OAAO,MAAQ,OAC/B,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACb,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,wBAAyB,CAAE,OAAQ,EAAM,QAAQ,OAAO,IAAK,CAAI,CAAA,CACnE,CAAA,EAIT,GAAM,CAAE,QAAS,IAAA,EAAY,EAAA,IAAA,CAAI,EAAe,EAAM,QAAQ,OAAO,IAAI,CAAC,EAE1E,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACb,UAAA,EAAA,EAAA,IAAA,CAAC,EAAD,CAAqB,YAAa,CAAA,CAC/B,CAAA,CAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-Wo136UBd.js","names":[],"sources":["../../styles/src/components/documentation/toc/content.module.css","../src/components/documentation/toc/content.tsx"],"sourcesContent":[".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"}
|
package/dist/content-xKdbA544.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
var a = /* @__PURE__ */ new Map();
|
|
12
|
-
function o(e) {
|
|
13
|
-
return i(e, {
|
|
14
|
-
...t,
|
|
15
|
-
baseUrl: import.meta.url
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function s(e) {
|
|
19
|
-
let t = a.get(e);
|
|
20
|
-
return t || (t = o(e), a.set(e, t)), t;
|
|
21
|
-
}
|
|
22
|
-
function c({ page: t, components: r }) {
|
|
23
|
-
let i = e(t);
|
|
24
|
-
if (i.default.parsed.type == "html") return /* @__PURE__ */ n("div", {
|
|
25
|
-
className: "sleetch-markdown",
|
|
26
|
-
children: /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: { __html: i.default.parsed.html } })
|
|
27
|
-
});
|
|
28
|
-
let { default: a } = e(s(i.default.parsed.code));
|
|
29
|
-
return /* @__PURE__ */ n("div", {
|
|
30
|
-
className: "sleetch-markdown",
|
|
31
|
-
children: /* @__PURE__ */ n(a, { components: r })
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { c as t };
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=content-xKdbA544.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-xKdbA544.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\nconst mdxCache = new Map<string, ReturnType<typeof compileMDX>>();\n\nfunction compileMDX(code: string) {\n return run(code, {\n ...runtime,\n baseUrl: import.meta.url,\n });\n}\n\nfunction getCompiledMDX(code: string) {\n let promise = mdxCache.get(code);\n\n if (!promise) {\n promise = compileMDX(code);\n mdxCache.set(code, promise);\n }\n\n return promise;\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 { default: Content } = use(getCompiledMDX(value.default.parsed.code));\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,IAAM,oBAAW,IAAI,IAA2C;AAEhE,SAAS,EAAW,GAAc;CAChC,OAAO,EAAI,GAAM;EACf,GAAG;EACH,SAAS,YAAY;CACvB,CAAC;AACH;AAEA,SAAS,EAAe,GAAc;CACpC,IAAI,IAAU,EAAS,IAAI,CAAI;CAO/B,OALK,MACH,IAAU,EAAW,CAAI,GACzB,EAAS,IAAI,GAAM,CAAO,IAGrB;AACT;AACA,SAAgB,EAAY,EAAE,SAAM,iBAA8E;CAChH,IAAM,IAAQ,EAAI,CAAI;CAEtB,IAAI,EAAM,QAAQ,OAAO,QAAQ,QAC/B,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD,EAAK,yBAAyB,EAAE,QAAQ,EAAM,QAAQ,OAAO,KAAK,EAAI,CAAA;CACnE,CAAA;CAIT,IAAM,EAAE,SAAS,MAAY,EAAI,EAAe,EAAM,QAAQ,OAAO,IAAI,CAAC;CAE1E,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,GAAD,EAAqB,cAAa,CAAA;CAC/B,CAAA;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-CMsswKsJ.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-border);\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-border);\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;EAEJ,UAAA,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;EAXN,UAAA,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;EACb,UAAA,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;EAA5F,UAAA,CACE,kBAAC,OAAD;GAAK,WAAW,CAAC,EAAO,KAAK,EAAO,SAAS,CAAC,CAAC,KAAK,GAAG;GAAvD,UAAA,CACE,kBAAC,GAAD,EAAY,WAAW,EAAO,KAAO,CAAA,GACrC,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAQ,UAAA;GAAW,CAAA,CACxC;EACJ,CAAA,GAAA,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;EAA1G,UAAA;GACE,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;EAC7C;;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-Ca6fqwTn.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-border);\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-border);\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,EAEJ,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CAA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ET,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,EAA1G,SAAA,EACE,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,CAC7C,GAET"}
|
package/dist/header-D6vF0VLY.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require('./assets/header.css');const e=require("./clsx-GLXUd3yb.cjs");let t=require("react/jsx-runtime");var n={default:`_default_p2hb0_1`,"menu-toggle":`_menu-toggle_p2hb0_16`};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-D6vF0VLY.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header-D6vF0VLY.cjs","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":[".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-border);\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,EAAxD,SAAA,CACG,IACC,EAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAW,EAAO,eAAgB,QAAS,EAAc,aAAW,iBAAiB,KAAK,SAChG,UAAA,EAAA,EAAA,KAAA,CAAC,MAAD,CACE,QAAQ,YACR,MAAM,KACN,OAAO,KACP,KAAK,OACL,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QARjB,SAAA,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header-aBbFHuW8.js","names":[],"sources":["../../styles/src/components/documentation/header.module.css","../src/components/documentation/header.tsx"],"sourcesContent":[".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-border);\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;EAAxD,UAAA,CACG,KACC,kBAAC,UAAD;GAAQ,WAAW,EAAO;GAAgB,SAAS;GAAc,cAAW;GAAiB,MAAK;GAChG,UAAA,kBAAC,OAAD;IACE,SAAQ;IACR,OAAM;IACN,QAAO;IACP,MAAK;IACL,QAAO;IACP,aAAY;IACZ,eAAc;IACd,gBAAe;IARjB,UAAA;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-B9nkyVRH.cjs","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":[".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 { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n return (\n <main className={clsx(styles['default'], className)} {...props}>\n {children}\n </main>\n );\n}\n"],"mappings":"6GCMA,SAAgB,EAAoB,CAAE,WAAU,YAAW,GAAG,GAAmC,CAC/F,OACE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAA,EAAK,EAAO,QAAY,CAAS,EAAG,GAAI,EACtD,UACG,CAAA,CAEV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-C_NguCrO.js","names":[],"sources":["../../styles/src/components/documentation/layout.module.css","../src/components/documentation/layout.tsx"],"sourcesContent":[".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 { BaseHTMLAttributes } from 'react';\nimport styles from '@sleetch/styles/components/documentation/layout.module.css';\nimport clsx from 'clsx';\n\nexport interface DocumentationLayoutProps extends BaseHTMLAttributes<HTMLDivElement> {}\n\nexport function DocumentationLayout({ children, className, ...props }: DocumentationLayoutProps) {\n return (\n <main className={clsx(styles['default'], className)} {...props}>\n {children}\n </main>\n );\n}\n"],"mappings":";;;;;;ACMA,SAAgB,EAAoB,EAAE,aAAU,cAAW,GAAG,KAAmC;CAC/F,OACE,kBAAC,QAAD;EAAM,WAAW,EAAK,EAAO,SAAY,CAAS;EAAG,GAAI;EACtD;CACG,CAAA;AAEV"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require('./assets/navigation.css');const e=require("./contexts/documentation.cjs.js"),t=require("./clsx-GLXUd3yb.cjs");let n=require("react"),r=require("react/jsx-runtime");var i={navigation:`_navigation_1ix9w_1`,slot:`_slot_1ix9w_10`,"slot-end":`_slot-end_1ix9w_14`,card:`_card_1ix9w_18`,next:`_next_1ix9w_45`,previous:`_previous_1ix9w_50`,meta:`_meta_1ix9w_55`,chevron:`_chevron_1ix9w_63`,title:`_title_1ix9w_69`,description:`_description_1ix9w_76`};function a(e){return e.type===`category`?e?.frontmatter?.order??1/0:e.type===`page`?e.frontmatter.order??1/0:1/0}function o(e){return e.map((e,t)=>({node:e,index:t})).sort((e,t)=>{let n=a(e.node)-a(t.node);return n===0?e.index-t.index:n}).map(({node:e})=>e)}function s(e){let t=o(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(...s(r))}}return n}function c(){return(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:i.chevron,children:(0,r.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}function l(){return(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:i.chevron,children:(0,r.jsx)(`polyline`,{points:`9 18 15 12 9 6`})})}function u(e,t){return e&&e!==`No title.`?e:t}function d(e){return e&&e!==`No description.`?e:void 0}function f({node:n,direction:a}){let o=u(n.frontmatter.title,n.path),s=d(n.frontmatter.description),{language:f,path_transformer:p}=e.useDocumentationContext();return(0,r.jsxs)(`a`,{href:p({language:f,path:n.path}),className:t.t(i.card,i[a]),"data-direction":a,children:[(0,r.jsxs)(`span`,{className:i.meta,children:[a===`previous`&&(0,r.jsx)(c,{}),(0,r.jsx)(`span`,{className:i.title,children:o}),a===`next`&&(0,r.jsx)(l,{})]}),s&&(0,r.jsx)(`span`,{className:i.description,children:s})]})}function p({className:a,...o}){let{tree:c,current_path:l}=e.useDocumentationContext(),{previous:u,next:d}=(0,n.useMemo)(()=>{let e=s(c),t=e.findIndex(e=>e.path===l);return t===-1?{previous:void 0,next:void 0}:{previous:e[t-1],next:e[t+1]}},[c,l]);return!u&&!d?null:(0,r.jsxs)(`nav`,{className:t.t(i.navigation,a),"aria-label":`Pagination`,...o,children:[(0,r.jsx)(`div`,{className:i.slot,children:u&&(0,r.jsx)(f,{node:u,direction:`previous`})}),(0,r.jsx)(`div`,{className:t.t(i.slot,i[`slot-end`]),children:d&&(0,r.jsx)(f,{node:d,direction:`next`})})]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
2
|
-
//# sourceMappingURL=navigation-BCpfEaXG.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-BCpfEaXG.cjs","names":[],"sources":["../../styles/src/components/documentation/page/navigation.module.css","../src/components/documentation/page/navigation.tsx"],"sourcesContent":[".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-border);\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';\nimport { useDocumentationContext } from 'packages/react/src/contexts/documentation';\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\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 if (node.type === 'category') {\n return node?.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 .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 = node.page;\n if (indexPage) result.push(indexPage);\n const rest = node.children;\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}\n\nfunction NavigationCard({ node, direction }: NavigationCardProps) {\n const title = resolveTitle(node.frontmatter.title, node.path);\n const description = resolveDescription(node.frontmatter.description);\n const { language, path_transformer } = useDocumentationContext();\n\n return (\n <a href={path_transformer({ language, path: 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, ...props }: DocumentationNavigationProps) {\n const { tree, current_path } = useDocumentationContext();\n const { previous, next } = useMemo(() => {\n const pages = flattenPages(tree);\n const currentIndex = pages.findIndex((page) => page.path === current_path);\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, current_path]);\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\" />}</div>\n <div className={clsx(styles['slot'], styles['slot-end'])}>{next && <NavigationCard node={next} direction=\"next\" />}</div>\n </nav>\n );\n}\n"],"mappings":"iaCuBA,SAAS,EAAS,EAA2B,CAO3C,OANI,EAAK,OAAS,WACT,GAAM,aAAa,OAAS,IAEjC,EAAK,OAAS,OACR,EAAK,YAAmC,OAAS,IAEpD,GACT,CAE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C,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,WAAe,CAAS,EAAG,aAAW,aAAa,GAAI,EAAnF,SAAA,EACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAO,KAAU,SAAA,IAAY,EAAA,EAAA,IAAA,CAAC,EAAD,CAAgB,KAAM,EAAU,UAAU,UAAY,CAAA,CAAO,CAAA,GAC1G,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAA,EAAK,EAAO,KAAS,EAAO,WAAW,EAAI,SAAA,IAAQ,EAAA,EAAA,IAAA,CAAC,EAAD,CAAgB,KAAM,EAAM,UAAU,MAAQ,CAAA,CAAO,CAAA,CACrH,GAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-bIVcotMC.js","names":[],"sources":["../../styles/src/components/documentation/page/navigation.module.css","../src/components/documentation/page/navigation.tsx"],"sourcesContent":[".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-border);\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';\nimport { useDocumentationContext } from 'packages/react/src/contexts/documentation';\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\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 if (node.type === 'category') {\n return node?.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 .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 = node.page;\n if (indexPage) result.push(indexPage);\n const rest = node.children;\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}\n\nfunction NavigationCard({ node, direction }: NavigationCardProps) {\n const title = resolveTitle(node.frontmatter.title, node.path);\n const description = resolveDescription(node.frontmatter.description);\n const { language, path_transformer } = useDocumentationContext();\n\n return (\n <a href={path_transformer({ language, path: 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, ...props }: DocumentationNavigationProps) {\n const { tree, current_path } = useDocumentationContext();\n const { previous, next } = useMemo(() => {\n const pages = flattenPages(tree);\n const currentIndex = pages.findIndex((page) => page.path === current_path);\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, current_path]);\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\" />}</div>\n <div className={clsx(styles['slot'], styles['slot-end'])}>{next && <NavigationCard node={next} direction=\"next\" />}</div>\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;ACuBA,SAAS,EAAS,GAA2B;CAO3C,OANI,EAAK,SAAS,aACT,GAAM,aAAa,SAAS,WAEjC,EAAK,SAAS,SACR,EAAK,YAAmC,SAAS,WAEpD;AACT;AAEA,SAAS,EAAU,GAAqC;CACtD,OAAO,EACJ,KAAK,GAAM,OAAW;EAAE;EAAM;CAAM,EAAE,CAAC,CACvC,MAAM,GAAG,MAAM;EACd,IAAM,IAAO,EAAS,EAAE,IAAI,IAAI,EAAS,EAAE,IAAI;EAC/C,OAAO,MAAS,IAAW,EAAE,QAAQ,EAAE,QAAnB;CACtB,CAAC,CAAC,CACD,KAAK,EAAE,cAAW,CAAI;AAC3B;AAOA,SAAS,EAAa,GAAmC;CACvD,IAAM,IAAS,EAAU,CAAK,GACxB,IAAsB,CAAC;CAE7B,KAAK,IAAM,KAAQ,GAAQ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,GAAD,CAAc,CAAA;IAC3C,kBAAC,QAAD;KAAM,WAAW,EAAO;KAAW,UAAA;IAAY,CAAA;IAC9C,MAAc,UAAU,kBAAC,GAAD,CAAe,CAAA;GACpC;EACL,CAAA,GAAA,KAAe,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAiB,UAAA;EAAkB,CAAA,CAC1E;;AAEP;AAEA,SAAgB,EAAe,EAAE,cAAW,GAAG,KAAuC;CACpF,IAAM,EAAE,SAAM,oBAAiB,EAAwB,GACjD,EAAE,aAAU,YAAS,QAAc;EACvC,IAAM,IAAQ,EAAa,CAAI,GACzB,IAAe,EAAM,WAAW,MAAS,EAAK,SAAS,CAAY;EAMzE,OAJI,MAAiB,KACZ;GAAE,UAAU,KAAA;GAAW,MAAM,KAAA;EAAU,IAGzC;GACL,UAAU,EAAM,IAAe;GAC/B,MAAM,EAAM,IAAe;EAC7B;CACF,GAAG,CAAC,GAAM,CAAY,CAAC;CAIvB,OAFI,CAAC,KAAY,CAAC,IAAa,OAG7B,kBAAC,OAAD;EAAK,WAAW,EAAK,EAAO,YAAe,CAAS;EAAG,cAAW;EAAa,GAAI;EAAnF,UAAA,CACE,kBAAC,OAAD;GAAK,WAAW,EAAO;GAAU,UAAA,KAAY,kBAAC,GAAD;IAAgB,MAAM;IAAU,WAAU;GAAY,CAAA;EAAO,CAAA,GAC1G,kBAAC,OAAD;GAAK,WAAW,EAAK,EAAO,MAAS,EAAO,WAAW;GAAI,UAAA,KAAQ,kBAAC,GAAD;IAAgB,MAAM;IAAM,WAAU;GAAQ,CAAA;EAAO,CAAA,CACrH;;AAET"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require('./assets/sidebar.css');const e=require("./contexts/documentation.cjs.js"),t=require("./clsx-GLXUd3yb.cjs");let n=require("react"),r=require("react/jsx-runtime");var i={sidebar:`_sidebar_1n87n_1`,overlay:`_overlay_1n87n_33`,"sidebar-open":`_sidebar-open_1n87n_55`,fadeIn:`_fadeIn_1n87n_1`,nav:`_nav_1n87n_89`,list:`_list_1n87n_94`,item:`_item_1n87n_103`,row:`_row_1n87n_107`,link:`_link_1n87n_112`,"category-label":`_category-label_1n87n_113`,"category-link":`_category-link_1n87n_147`,active:`_active_1n87n_154`,toggle:`_toggle_1n87n_165`,chevron:`_chevron_1n87n_188`,"chevron-open":`_chevron-open_1n87n_192`,icon:`_icon_1n87n_196`,label:`_label_1n87n_206`};function a({className:a,children:o,...s}){let{is_sidebar_open:c,close_sidebar:l,tree:d,current_path:f,path_transformer:p,icon_transformer:m}=e.useDocumentationContext();return(0,n.useEffect)(()=>(c?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[c]),(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(`div`,{className:i.overlay,onClick:l}),(0,r.jsxs)(`aside`,{className:t.t(i.sidebar,c&&i[`sidebar-open`],a),...s,children:[(0,r.jsx)(`nav`,{className:i.nav,children:(0,r.jsx)(u,{nodes:d,depth:1,onLinkClick:l})}),o]})]})}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,t){return e&&e!==`No title.`?e:t}function l({open:e}){return(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`13`,height:`13`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:t.t(i.chevron,e&&i[`chevron-open`]),children:(0,r.jsx)(`polyline`,{points:`9 6 15 12 9 18`})})}function u({nodes:a,depth:o,onLinkClick:l}){let u=(0,n.useMemo)(()=>s(a),[a]),{icon_transformer:f,current_path:p,path_transformer:m,language:h}=e.useDocumentationContext();return(0,r.jsx)(`ul`,{className:i.list,"data-depth":o,children:u.map(e=>{if(e.type===`page`){let n=e.path===p,a=f(e.frontmatter.icon);return(0,r.jsx)(`li`,{className:i.item,children:(0,r.jsxs)(`a`,{href:m({language:h,path:e.path}),className:t.t(i.link,n&&i.active),style:{"--depth":o},onClick:l,children:[a&&(0,r.jsx)(`span`,{className:i.icon,children:a}),(0,r.jsx)(`span`,{className:i.label,children:c(e.frontmatter.title,e.path)})]})},e.path)}return e.type===`category`?(0,r.jsx)(d,{category:e,depth:o,onLinkClick:l},e.path):null})})}function d({category:a,depth:o,onLinkClick:s}){let{icon_transformer:d,current_path:f,path_transformer:p,language:m}=e.useDocumentationContext(),h=a?.frontmatter?.title??(a.page?c(a.page.frontmatter.title,a.path):a.path),g=d(a?.frontmatter?.icon??a?.page?.frontmatter?.icon),_=a.children,v=_.length>0,y=a.page?a.page.path===f:!1,[b,x]=(0,n.useState)(!0);return(0,r.jsxs)(`li`,{className:i.item,children:[(0,r.jsxs)(`div`,{className:i.row,children:[a.page?(0,r.jsxs)(`a`,{href:p({language:m,path:a.page.path}),className:t.t(i.link,i[`category-link`],y&&i.active),style:{"--depth":o},onClick:s,children:[g&&(0,r.jsx)(`span`,{className:i.icon,children:g}),(0,r.jsx)(`span`,{className:i.label,children:h})]}):(0,r.jsxs)(`button`,{type:`button`,className:t.t(i.link,i[`category-label`]),style:{"--depth":o},onClick:()=>v&&x(e=>!e),children:[g&&(0,r.jsx)(`span`,{className:i.icon,children:g}),(0,r.jsx)(`span`,{className:i.label,children:h})]}),v&&(0,r.jsx)(`button`,{type:`button`,className:i.toggle,"aria-label":b?`Collapse`:`Expand`,"aria-expanded":b,onClick:()=>x(e=>!e),children:(0,r.jsx)(l,{open:b})})]}),v&&b&&(0,r.jsx)(u,{nodes:_,depth:o+1,onLinkClick:s})]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
2
|
-
//# sourceMappingURL=sidebar-CiheJpEa.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-CiheJpEa.cjs","names":[],"sources":["../../styles/src/components/documentation/sidebar/index.module.css","../src/components/documentation/sidebar/index.tsx"],"sourcesContent":[".sidebar {\n min-width: var(--_sleetch-sidebar-width);\n height: calc(100vh - var(--_sleetch-header-height));\n position: sticky;\n top: var(--_sleetch-header-height);\n color: var(--_sleetch-color-text);\n padding: 4em 1.5em;\n border-right: 1px dashed var(--_sleetch-color-muted);\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--_sleetch-color-muted) transparent;\n}\n\n.sidebar::-webkit-scrollbar {\n width: 6px;\n}\n\n.sidebar::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.sidebar::-webkit-scrollbar-thumb {\n background-color: var(--_sleetch-color-muted);\n border-radius: 3px;\n}\n\n.sidebar::-webkit-scrollbar-thumb:hover {\n background-color: var(--_sleetch-color-muted-foreground);\n}\n\n.overlay {\n display: none;\n}\n\n@media (max-width: 768px) {\n .sidebar {\n position: fixed;\n top: var(--_sleetch-header-height);\n left: 0;\n bottom: 0;\n width: 280px;\n min-width: 280px;\n max-width: 85vw;\n z-index: 90;\n background-color: var(--_sleetch-color-background);\n transform: translateX(-100%);\n transition: transform 0.3s ease;\n padding: 2em 1.5em;\n border-right: 1px solid var(--_sleetch-color-border);\n box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);\n }\n\n .sidebar-open {\n transform: translateX(0);\n }\n\n .overlay {\n display: block;\n position: fixed;\n top: var(--_sleetch-header-height);\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 89;\n backdrop-filter: blur(2px);\n animation: fadeIn 0.3s ease;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n}\n\n@media (min-width: 769px) and (max-width: 1024px) {\n .sidebar {\n min-width: 260px;\n padding: 3em 1.2em;\n }\n}\n\n.nav {\n display: flex;\n flex-direction: column;\n}\n\n.list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.item {\n min-width: 0;\n}\n\n.row {\n display: flex;\n align-items: center;\n}\n\n.link,\n.category-label {\n --depth: 1;\n flex: 1;\n display: flex;\n align-items: center;\n gap: 0.55em;\n width: 100%;\n min-width: 0;\n margin-left: -1px;\n padding-block: 0.4em;\n padding-left: calc(1em + (var(--depth) - 1) * 1em);\n padding-right: 0.5em;\n border: none;\n border-left: 3px solid transparent;\n background: none;\n font-family: var(--_sleetch-font-base);\n font-size: calc(1em - (var(--depth) - 1) * 0.03em);\n line-height: 1.3;\n text-align: left;\n color: var(--_sleetch-color-muted-foreground);\n text-decoration: none;\n cursor: pointer;\n transition:\n color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n border-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n background-color var(--_sleetch-transition-duration) var(--_sleetch-transition-timing),\n transform var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.link:hover,\n.category-label:hover {\n color: var(--_sleetch-color-text);\n}\n\n.category-link,\n.category-label {\n font-weight: var(--_sleetch-font-weight-heading);\n color: var(--_sleetch-color-text);\n padding-top: 0.5em;\n}\n\n.active {\n border-left-color: var(--_sleetch-color-text-primary);\n background: color-mix(in srgb, var(--_sleetch-color-text-underline) 35%, transparent);\n color: var(--_sleetch-color-text);\n transform: translateX(4px);\n}\n\n.active:hover {\n transform: translateX(6px);\n}\n\n.toggle {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.7em;\n height: 1.7em;\n margin-right: 0.2em;\n background: none;\n border: none;\n border-radius: var(--_sleetch-radius);\n color: var(--_sleetch-color-muted-foreground);\n cursor: pointer;\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.toggle:hover {\n background-color: var(--_sleetch-color-card);\n color: var(--_sleetch-color-text);\n}\n\n.chevron {\n transition: transform var(--_sleetch-transition-duration) var(--_sleetch-transition-timing);\n}\n\n.chevron-open {\n transform: rotate(90deg);\n}\n\n.icon {\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.1em;\n height: 1.1em;\n opacity: 0.75;\n}\n\n.label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","/*\n AI Generated :(\n Needs more testing\n*/\n\nimport type { BaseHTMLAttributes, ReactNode } from 'react';\nimport { useMemo, useState, useEffect } from 'react';\nimport clsx from 'clsx';\nimport styles from '@sleetch/styles/components/documentation/sidebar/index.module.css';\nimport type { tree_object } from '@sleetch/core/compiler';\nimport { useDocumentationContext } from 'packages/react/src/contexts/documentation';\n\nexport interface DocumentationSidebarProps extends BaseHTMLAttributes<HTMLBaseElement> {}\n\nexport function DocumentationSidebar({ className, children, ...props }: DocumentationSidebarProps) {\n const { is_sidebar_open, close_sidebar, tree, current_path, path_transformer, icon_transformer } = useDocumentationContext();\n\n useEffect(() => {\n if (is_sidebar_open) {\n document.body.style.overflow = 'hidden';\n } else {\n document.body.style.overflow = '';\n }\n return () => {\n document.body.style.overflow = '';\n };\n }, [is_sidebar_open]);\n\n return (\n <>\n {is_sidebar_open && <div className={styles['overlay']} onClick={close_sidebar} />}\n <aside className={clsx(styles['sidebar'], is_sidebar_open && styles['sidebar-open'], className)} {...props}>\n <nav className={styles['nav']}>\n <SidebarTree nodes={tree} depth={1} onLinkClick={close_sidebar} />\n </nav>\n {children}\n </aside>\n </>\n );\n}\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\nfunction getOrder(node: tree_object): number {\n if (node.type === 'category') {\n return node?.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 .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\nfunction resolveTitle(title: string, fallbackPath: string): string {\n return title && title !== 'No title.' ? title : fallbackPath;\n}\n\nfunction Chevron({ open }: { open: boolean }) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n width=\"13\"\n height=\"13\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={clsx(styles['chevron'], open && styles['chevron-open'])}\n >\n <polyline points=\"9 6 15 12 9 18\" />\n </svg>\n );\n}\n\ninterface HrefContext {\n onLinkClick?: () => void;\n}\n\ninterface SidebarTreeProps extends HrefContext {\n nodes: tree_object[];\n depth: number;\n}\n\nfunction SidebarTree({ nodes, depth, onLinkClick }: SidebarTreeProps) {\n const sorted = useMemo(() => sortNodes(nodes), [nodes]);\n const { icon_transformer, current_path, path_transformer, language } = useDocumentationContext();\n return (\n <ul className={styles['list']} data-depth={depth}>\n {sorted.map((node) => {\n if (node.type === 'page') {\n const isActive = node.path === current_path;\n const icon = icon_transformer(node.frontmatter.icon);\n\n return (\n <li key={node.path} className={styles['item']}>\n <a\n href={path_transformer({ language, path: node.path })}\n className={clsx(styles['link'], isActive && styles['active'])}\n style={{ '--depth': depth } as React.CSSProperties}\n onClick={onLinkClick}\n >\n {icon && <span className={styles['icon']}>{icon}</span>}\n <span className={styles['label']}>{resolveTitle(node.frontmatter.title, node.path)}</span>\n </a>\n </li>\n );\n }\n\n if (node.type === 'category') {\n return <CategoryItem key={node.path} category={node} depth={depth} onLinkClick={onLinkClick} />;\n }\n\n return null;\n })}\n </ul>\n );\n}\n\ninterface CategoryItemProps extends HrefContext {\n category: category_node;\n depth: number;\n}\n\nfunction CategoryItem({ category, depth, onLinkClick }: CategoryItemProps) {\n const { icon_transformer, current_path, path_transformer, language } = useDocumentationContext();\n\n const title = category?.frontmatter?.title ?? (category.page ? resolveTitle(category.page.frontmatter.title, category.path) : category.path);\n\n const iconName = category?.frontmatter?.icon ?? category?.page?.frontmatter?.icon;\n const icon = icon_transformer(iconName);\n\n const childNodes = category.children;\n\n const hasChildren = childNodes.length > 0;\n const isIndexActive = category.page ? category.page.path === current_path : false;\n\n const [open, setOpen] = useState(true);\n\n return (\n <li className={styles['item']}>\n <div className={styles['row']}>\n {category.page ? (\n <a\n href={path_transformer({ language, path: category.page.path })}\n className={clsx(styles['link'], styles['category-link'], isIndexActive && styles['active'])}\n style={{ '--depth': depth } as React.CSSProperties}\n onClick={onLinkClick}\n >\n {icon && <span className={styles['icon']}>{icon}</span>}\n <span className={styles['label']}>{title}</span>\n </a>\n ) : (\n <button\n type=\"button\"\n className={clsx(styles['link'], styles['category-label'])}\n style={{ '--depth': depth } as React.CSSProperties}\n onClick={() => hasChildren && setOpen((o) => !o)}\n >\n {icon && <span className={styles['icon']}>{icon}</span>}\n <span className={styles['label']}>{title}</span>\n </button>\n )}\n\n {hasChildren && (\n <button\n type=\"button\"\n className={styles['toggle']}\n aria-label={open ? 'Collapse' : 'Expand'}\n aria-expanded={open}\n onClick={() => setOpen((o) => !o)}\n >\n <Chevron open={open} />\n </button>\n )}\n </div>\n\n {hasChildren && open && <SidebarTree nodes={childNodes} depth={depth + 1} onLinkClick={onLinkClick} />}\n </li>\n );\n}\n"],"mappings":"2nBCcA,SAAgB,EAAqB,CAAE,YAAW,WAAU,GAAG,GAAoC,CACjG,GAAM,CAAE,kBAAiB,gBAAe,OAAM,eAAc,mBAAkB,oBAAqB,EAAA,wBAAwB,EAa3H,OAXA,EAAA,EAAA,UAAA,MACM,EACF,SAAS,KAAK,MAAM,SAAW,SAE/B,SAAS,KAAK,MAAM,SAAW,OAEpB,CACX,SAAS,KAAK,MAAM,SAAW,EACjC,GACC,CAAC,CAAe,CAAC,GAGlB,EAAA,EAAA,KAAA,CAAA,EAAA,S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,GAAM,CAAC,CAAC,EAEhC,UAAA,EAAA,EAAA,IAAA,CAAC,EAAD,CAAe,MAAO,CAAA,CAChB,CAAA,CAEP,CAEJ,CAAA,EAAA,GAAe,IAAQ,EAAA,EAAA,IAAA,CAAC,EAAD,CAAa,MAAO,EAAY,MAAO,EAAQ,EAAgB,aAAc,CAAA,CACnG,GAER"}
|
package/dist/sidebar-aXd_UA6s.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { useDocumentationContext as e } from "./contexts/documentation.es.js";
|
|
2
|
-
import { t } from "./clsx-CaAiuA5w.js";
|
|
3
|
-
import { useEffect as n, useMemo as r, useState as i } from "react";
|
|
4
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
-
import './assets/sidebar.css';var c = {
|
|
6
|
-
sidebar: "_sidebar_1n87n_1",
|
|
7
|
-
overlay: "_overlay_1n87n_33",
|
|
8
|
-
"sidebar-open": "_sidebar-open_1n87n_55",
|
|
9
|
-
fadeIn: "_fadeIn_1n87n_1",
|
|
10
|
-
nav: "_nav_1n87n_89",
|
|
11
|
-
list: "_list_1n87n_94",
|
|
12
|
-
item: "_item_1n87n_103",
|
|
13
|
-
row: "_row_1n87n_107",
|
|
14
|
-
link: "_link_1n87n_112",
|
|
15
|
-
"category-label": "_category-label_1n87n_113",
|
|
16
|
-
"category-link": "_category-link_1n87n_147",
|
|
17
|
-
active: "_active_1n87n_154",
|
|
18
|
-
toggle: "_toggle_1n87n_165",
|
|
19
|
-
chevron: "_chevron_1n87n_188",
|
|
20
|
-
"chevron-open": "_chevron-open_1n87n_192",
|
|
21
|
-
icon: "_icon_1n87n_196",
|
|
22
|
-
label: "_label_1n87n_206"
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/components/documentation/sidebar/index.tsx
|
|
26
|
-
function l({ className: r, children: i, ...l }) {
|
|
27
|
-
let { is_sidebar_open: u, close_sidebar: d, tree: f, current_path: p, path_transformer: h, icon_transformer: g } = e();
|
|
28
|
-
return n(() => (u ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
29
|
-
document.body.style.overflow = "";
|
|
30
|
-
}), [u]), /* @__PURE__ */ s(a, { children: [u && /* @__PURE__ */ o("div", {
|
|
31
|
-
className: c.overlay,
|
|
32
|
-
onClick: d
|
|
33
|
-
}), /* @__PURE__ */ s("aside", {
|
|
34
|
-
className: t(c.sidebar, u && c["sidebar-open"], r),
|
|
35
|
-
...l,
|
|
36
|
-
children: [/* @__PURE__ */ o("nav", {
|
|
37
|
-
className: c.nav,
|
|
38
|
-
children: /* @__PURE__ */ o(m, {
|
|
39
|
-
nodes: f,
|
|
40
|
-
depth: 1,
|
|
41
|
-
onLinkClick: d
|
|
42
|
-
})
|
|
43
|
-
}), i]
|
|
44
|
-
})] });
|
|
45
|
-
}
|
|
46
|
-
function u(e) {
|
|
47
|
-
return e.type === "category" ? e?.frontmatter?.order ?? Infinity : e.type === "page" ? e.frontmatter.order ?? Infinity : Infinity;
|
|
48
|
-
}
|
|
49
|
-
function d(e) {
|
|
50
|
-
return e.map((e, t) => ({
|
|
51
|
-
node: e,
|
|
52
|
-
index: t
|
|
53
|
-
})).sort((e, t) => {
|
|
54
|
-
let n = u(e.node) - u(t.node);
|
|
55
|
-
return n === 0 ? e.index - t.index : n;
|
|
56
|
-
}).map(({ node: e }) => e);
|
|
57
|
-
}
|
|
58
|
-
function f(e, t) {
|
|
59
|
-
return e && e !== "No title." ? e : t;
|
|
60
|
-
}
|
|
61
|
-
function p({ open: e }) {
|
|
62
|
-
return /* @__PURE__ */ o("svg", {
|
|
63
|
-
viewBox: "0 0 24 24",
|
|
64
|
-
width: "13",
|
|
65
|
-
height: "13",
|
|
66
|
-
fill: "none",
|
|
67
|
-
stroke: "currentColor",
|
|
68
|
-
strokeWidth: "2.5",
|
|
69
|
-
strokeLinecap: "round",
|
|
70
|
-
strokeLinejoin: "round",
|
|
71
|
-
className: t(c.chevron, e && c["chevron-open"]),
|
|
72
|
-
children: /* @__PURE__ */ o("polyline", { points: "9 6 15 12 9 18" })
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function m({ nodes: n, depth: i, onLinkClick: a }) {
|
|
76
|
-
let l = r(() => d(n), [n]), { icon_transformer: u, current_path: p, path_transformer: m, language: g } = e();
|
|
77
|
-
return /* @__PURE__ */ o("ul", {
|
|
78
|
-
className: c.list,
|
|
79
|
-
"data-depth": i,
|
|
80
|
-
children: l.map((e) => {
|
|
81
|
-
if (e.type === "page") {
|
|
82
|
-
let n = e.path === p, r = u(e.frontmatter.icon);
|
|
83
|
-
return /* @__PURE__ */ o("li", {
|
|
84
|
-
className: c.item,
|
|
85
|
-
children: /* @__PURE__ */ s("a", {
|
|
86
|
-
href: m({
|
|
87
|
-
language: g,
|
|
88
|
-
path: e.path
|
|
89
|
-
}),
|
|
90
|
-
className: t(c.link, n && c.active),
|
|
91
|
-
style: { "--depth": i },
|
|
92
|
-
onClick: a,
|
|
93
|
-
children: [r && /* @__PURE__ */ o("span", {
|
|
94
|
-
className: c.icon,
|
|
95
|
-
children: r
|
|
96
|
-
}), /* @__PURE__ */ o("span", {
|
|
97
|
-
className: c.label,
|
|
98
|
-
children: f(e.frontmatter.title, e.path)
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
}, e.path);
|
|
102
|
-
}
|
|
103
|
-
return e.type === "category" ? /* @__PURE__ */ o(h, {
|
|
104
|
-
category: e,
|
|
105
|
-
depth: i,
|
|
106
|
-
onLinkClick: a
|
|
107
|
-
}, e.path) : null;
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function h({ category: n, depth: r, onLinkClick: a }) {
|
|
112
|
-
let { icon_transformer: l, current_path: u, path_transformer: d, language: h } = e(), g = n?.frontmatter?.title ?? (n.page ? f(n.page.frontmatter.title, n.path) : n.path), _ = l(n?.frontmatter?.icon ?? n?.page?.frontmatter?.icon), v = n.children, y = v.length > 0, b = n.page ? n.page.path === u : !1, [x, S] = i(!0);
|
|
113
|
-
return /* @__PURE__ */ s("li", {
|
|
114
|
-
className: c.item,
|
|
115
|
-
children: [/* @__PURE__ */ s("div", {
|
|
116
|
-
className: c.row,
|
|
117
|
-
children: [n.page ? /* @__PURE__ */ s("a", {
|
|
118
|
-
href: d({
|
|
119
|
-
language: h,
|
|
120
|
-
path: n.page.path
|
|
121
|
-
}),
|
|
122
|
-
className: t(c.link, c["category-link"], b && c.active),
|
|
123
|
-
style: { "--depth": r },
|
|
124
|
-
onClick: a,
|
|
125
|
-
children: [_ && /* @__PURE__ */ o("span", {
|
|
126
|
-
className: c.icon,
|
|
127
|
-
children: _
|
|
128
|
-
}), /* @__PURE__ */ o("span", {
|
|
129
|
-
className: c.label,
|
|
130
|
-
children: g
|
|
131
|
-
})]
|
|
132
|
-
}) : /* @__PURE__ */ s("button", {
|
|
133
|
-
type: "button",
|
|
134
|
-
className: t(c.link, c["category-label"]),
|
|
135
|
-
style: { "--depth": r },
|
|
136
|
-
onClick: () => y && S((e) => !e),
|
|
137
|
-
children: [_ && /* @__PURE__ */ o("span", {
|
|
138
|
-
className: c.icon,
|
|
139
|
-
children: _
|
|
140
|
-
}), /* @__PURE__ */ o("span", {
|
|
141
|
-
className: c.label,
|
|
142
|
-
children: g
|
|
143
|
-
})]
|
|
144
|
-
}), y && /* @__PURE__ */ o("button", {
|
|
145
|
-
type: "button",
|
|
146
|
-
className: c.toggle,
|
|
147
|
-
"aria-label": x ? "Collapse" : "Expand",
|
|
148
|
-
"aria-expanded": x,
|
|
149
|
-
onClick: () => S((e) => !e),
|
|
150
|
-
children: /* @__PURE__ */ o(p, { open: x })
|
|
151
|
-
})]
|
|
152
|
-
}), y && x && /* @__PURE__ */ o(m, {
|
|
153
|
-
nodes: v,
|
|
154
|
-
depth: r + 1,
|
|
155
|
-
onLinkClick: a
|
|
156
|
-
})]
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
//#endregion
|
|
160
|
-
export { l as t };
|
|
161
|
-
|
|
162
|
-
//# sourceMappingURL=sidebar-aXd_UA6s.js.map
|