@themodcraft/addon-docs 1.1.1 → 1.1.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{LicenseGate as e}from"@themodcraft/license-client";import l from"./DocsSidebar.module.css";import{jsx as r,jsxs as a}from"react/jsx-runtime";function n(e){return e.split("#")[0]||"/"}function i({className:i,currentPath:s,footer:c,groups:o,normalizeHref:d=n,title:t,version:m,...h}){return r(e,{required:"addon-docs",children:r("aside",{className:[l.sidebar,i].filter(Boolean).join(" "),...h,children:a("div",{className:l.inner,children:[t||m?a("div",{className:l.brand,children:[t?r("p",{className:l.title,children:t}):null,m?r("p",{className:l.version,children:m}):null]}):null,r("nav",{className:l.nav,children:o.map((e,n)=>a("section",{className:l.group,children:[r("p",{className:l.groupLabel,children:e.label}),r("div",{className:l.groupItems,children:e.items.map(e=>{const n=Boolean(s&&!e.href.includes("#")&&d(e.href)===s);return a("a",{"aria-current":n?"page":void 0,className:[l.link,n?l.linkActive:""].filter(Boolean).join(" "),href:e.href,children:[r("span",{className:l.label,children:e.label}),e.badge?r("span",{className:l.badge,children:e.badge}):null]},e.href)})})]},`${String(e.label)}-${n}`))}),c?r("div",{className:l.footer,children:c}):null]})})})}export{i as DocsSidebar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.sidebar{--tmc-docs-sidebar-background:var(--tmc-color-surface-raised,#fff);--tmc-docs-sidebar-border:var(--tmc-color-border,#d7dde5);--tmc-docs-sidebar-card-background:var(--tmc-color-surface-raised,#fff);--tmc-docs-sidebar-heading:var(--tmc-color-text,#151821);--tmc-docs-sidebar-muted:var(--tmc-color-text-muted,#5f6b7a);--tmc-docs-sidebar-link:var(--tmc-color-text-muted,#4a5565);--tmc-docs-sidebar-link-active-background:var(--tmc-color-text,#151821);--tmc-docs-sidebar-link-active-text:var(--tmc-color-surface,#fff);--tmc-docs-sidebar-link-hover:var(--tmc-color-hover,color-mix(in srgb,var(--tmc-color-accent,#2454d6) 10%,transparent));color:var(--tmc-docs-sidebar-heading);display:block;width:100%}.inner{max-height:calc(100vh - 96px);overflow-y:auto;padding-right:1rem;position:sticky;top:82px}.brand{background:var(--tmc-docs-sidebar-card-background);border:1px solid var(--tmc-docs-sidebar-border);border-radius:8px;box-shadow:0 10px 26px rgba(20,24,33,.06);margin-bottom:1.25rem;padding:.75rem}.title{color:var(--tmc-docs-sidebar-heading);font-size:.92rem;font-weight:750;margin:0}.version{color:var(--tmc-docs-sidebar-muted);font-size:.78rem;margin:.25rem 0 0}.nav{display:grid;font-size:.9rem;gap:1.5rem}.group{margin:0}.groupLabel{color:var(--tmc-docs-sidebar-muted);font-size:.72rem;font-weight:800;letter-spacing:.14em;margin:0 0 .5rem;padding:0 .5rem;text-transform:uppercase}.groupItems{display:grid;gap:.25rem}.link{align-items:center;border-radius:7px;color:var(--tmc-docs-sidebar-link);display:flex;gap:.5rem;justify-content:space-between;min-height:2rem;padding:.4rem .5rem;text-decoration:none}.link:hover{background:var(--tmc-docs-sidebar-link-hover);color:var(--tmc-docs-sidebar-heading)}.linkActive,.linkActive:hover{background:var(--tmc-docs-sidebar-link-active-background);color:var(--tmc-docs-sidebar-link-active-text)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{color:inherit;flex:0 0 auto;font-size:.74rem;opacity:.72}.footer{margin-top:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{DocsSidebar}from"./DocsSidebar.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{DocsSidebar}from"./docs-sidebar/DocsSidebar.js";
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themodcraft/addon-docs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"files": [
|
|
9
|
-
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"./dist/**/*.css"
|
|
13
|
+
],
|
|
10
14
|
"exports": {
|
|
11
15
|
".": {
|
|
12
16
|
"types": "./dist/index.d.ts",
|
|
@@ -23,7 +27,7 @@
|
|
|
23
27
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
24
28
|
},
|
|
25
29
|
"dependencies": {
|
|
26
|
-
"@themodcraft/license-client": "1.1.
|
|
30
|
+
"@themodcraft/license-client": "1.1.2"
|
|
27
31
|
},
|
|
28
32
|
"peerDependencies": {
|
|
29
33
|
"react": "^19.0.0",
|
|
File without changes
|