kss-modern 0.0.27 → 0.0.28
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/node/lib/index.d.mts +5 -0
- package/dist/node/lib/index.d.ts +5 -0
- package/dist/node/lib/index.mjs +24 -4
- package/dist/styleguide-assets/.vite/manifest.json +3 -3
- package/dist/styleguide-assets/{browser-BqQP8cHu.js → browser-CYtzW1UW.js} +1042 -1006
- package/dist/styleguide-assets/{fullpage-B_jhNyDy.js → fullpage-CTYIcMY8.js} +1 -1
- package/dist/styleguide-assets/{kss-modern-CML2MEgc.css → kss-modern-BGu3PS9T.css} +1 -1
- package/package.json +4 -4
package/dist/node/lib/index.d.ts
CHANGED
package/dist/node/lib/index.mjs
CHANGED
|
@@ -896,7 +896,7 @@ async function generateFullPageFile(data) {
|
|
|
896
896
|
<link rel="icon" type="image/svg+xml" href="/styleguide-assets/favicon/fullpage-light.svg">
|
|
897
897
|
`}
|
|
898
898
|
${data.ogImageUrl ? `<meta property="og:image" content="${data.ogImageUrl}">` : ""}
|
|
899
|
-
<script type="module" src="/styleguide-assets/fullpage-
|
|
899
|
+
<script type="module" src="/styleguide-assets/fullpage-CTYIcMY8.js"><\/script>
|
|
900
900
|
${computedStyleTags}
|
|
901
901
|
</head>
|
|
902
902
|
<body${data.page.bodyclass ? ` class="${data.page.bodyclass}"` : ""}>
|
|
@@ -911,11 +911,31 @@ async function generateFullPageFile(data) {
|
|
|
911
911
|
function getHasSectionExternalFullpage(section) {
|
|
912
912
|
return section.markup.length > 0 && (section.icons === void 0 || section.icons.length === 0) && (section.colors === void 0 || section.colors.length === 0);
|
|
913
913
|
}
|
|
914
|
+
function getLogoContent() {
|
|
915
|
+
if (!globalThis.styleguideConfiguration.logoSignet)
|
|
916
|
+
return globalThis.styleguideConfiguration.projectTitle;
|
|
917
|
+
let signetContent = "";
|
|
918
|
+
if ("href" in globalThis.styleguideConfiguration.logoSignet) {
|
|
919
|
+
signetContent += `<img
|
|
920
|
+
src="${globalThis.styleguideConfiguration.logoSignet.href}"
|
|
921
|
+
width="24"
|
|
922
|
+
height="24"
|
|
923
|
+
alt="${globalThis.styleguideConfiguration.projectTitle} Logo"
|
|
924
|
+
>`;
|
|
925
|
+
} else if ("svgContent" in globalThis.styleguideConfiguration.logoSignet) {
|
|
926
|
+
signetContent += `${globalThis.styleguideConfiguration.logoSignet.svgContent}`;
|
|
927
|
+
}
|
|
928
|
+
signetContent += globalThis.styleguideConfiguration.projectTitle;
|
|
929
|
+
return signetContent;
|
|
930
|
+
}
|
|
914
931
|
function getHeaderHtml() {
|
|
915
932
|
return `
|
|
916
933
|
<header class="sticky top-0 z-10 mx-auto flex w-full min-[1222px]:border-x border-b pr-6 max-w-[1600px] border-styleguide-border bg-styleguide-bg-highlight">
|
|
917
|
-
<a
|
|
918
|
-
|
|
934
|
+
<a
|
|
935
|
+
class="mr-4 flex gap-4 items-center border-r py-4 pr-4 pl-6 border-styleguide-border w-[260px] font-semibold tracking-tight text-styleguide-theme-highlight [&>svg]:!size-6 [&>img]:!size-6"
|
|
936
|
+
href="/"
|
|
937
|
+
>
|
|
938
|
+
${getLogoContent()}
|
|
919
939
|
</a>
|
|
920
940
|
|
|
921
941
|
<div class="flex grow items-center justify-end py-4 md:justify-between">
|
|
@@ -1656,7 +1676,7 @@ async function generatePreviewFile(data) {
|
|
|
1656
1676
|
<meta name="theme-color" content="${data.theme}">
|
|
1657
1677
|
<link rel="icon" type="image/svg+xml" href="/styleguide-assets/favicon/preview-light.svg">
|
|
1658
1678
|
`}
|
|
1659
|
-
<link rel="stylesheet" type="text/css" href="/styleguide-assets/kss-modern-
|
|
1679
|
+
<link rel="stylesheet" type="text/css" href="/styleguide-assets/kss-modern-BGu3PS9T.css">
|
|
1660
1680
|
<script>
|
|
1661
1681
|
async function g(t) {
|
|
1662
1682
|
const e = (o) => {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"client/fullpage.ts": {
|
|
25
|
-
"file": "fullpage-
|
|
25
|
+
"file": "fullpage-CTYIcMY8.js",
|
|
26
26
|
"name": "fullpage",
|
|
27
27
|
"src": "client/fullpage.ts",
|
|
28
28
|
"isEntry": true,
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"node_modules/html-validate/dist/esm/browser.js": {
|
|
83
|
-
"file": "browser-
|
|
83
|
+
"file": "browser-CYtzW1UW.js",
|
|
84
84
|
"name": "browser",
|
|
85
85
|
"src": "node_modules/html-validate/dist/esm/browser.js",
|
|
86
86
|
"isDynamicEntry": true,
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"style.css": {
|
|
92
|
-
"file": "kss-modern-
|
|
92
|
+
"file": "kss-modern-BGu3PS9T.css",
|
|
93
93
|
"src": "style.css"
|
|
94
94
|
}
|
|
95
95
|
}
|