kss-modern 0.0.10 → 0.0.12
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.mjs +12 -9
- package/package.json +1 -1
package/dist/node/lib/index.mjs
CHANGED
|
@@ -991,7 +991,7 @@ function getMainContentHtml(secondLevelSection, config) {
|
|
|
991
991
|
} else if (section.icons && section.icons.length > 0) {
|
|
992
992
|
output += getMainContentSectionWrapper(section, getMainContentIcons(section));
|
|
993
993
|
} else {
|
|
994
|
-
const content = section.markup ? getMainContentRegular(section, config) : void 0;
|
|
994
|
+
const content = section.markup || !section.markup && section.figma ? getMainContentRegular(section, config) : void 0;
|
|
995
995
|
output += getMainContentSectionWrapper(section, content);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
@@ -1267,13 +1267,7 @@ function getMainContentRegular(section, config) {
|
|
|
1267
1267
|
computedFigmaUrl.searchParams.append("mode", "dev");
|
|
1268
1268
|
computedFigmaUrl.searchParams.append("page-selector", "false");
|
|
1269
1269
|
computedFigmaUrl.searchParams.append("scaling", "contain");
|
|
1270
|
-
|
|
1271
|
-
<div class="mt-4">
|
|
1272
|
-
${renderTab([
|
|
1273
|
-
{
|
|
1274
|
-
title: "Preview",
|
|
1275
|
-
content: codePreviewMarkup
|
|
1276
|
-
},
|
|
1270
|
+
const tabs = [
|
|
1277
1271
|
{
|
|
1278
1272
|
title: "Design",
|
|
1279
1273
|
icon: `<img src="styleguide-assets/icons/figma.svg" width="600" height="600" alt="Figma Logo" class="size-3">`,
|
|
@@ -1293,7 +1287,16 @@ function getMainContentRegular(section, config) {
|
|
|
1293
1287
|
</div>
|
|
1294
1288
|
`
|
|
1295
1289
|
}
|
|
1296
|
-
]
|
|
1290
|
+
];
|
|
1291
|
+
if (section.markup && section.markup.length > 0) {
|
|
1292
|
+
tabs.unshift({
|
|
1293
|
+
title: "Preview",
|
|
1294
|
+
content: codePreviewMarkup
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
return `
|
|
1298
|
+
<div class="mt-4">
|
|
1299
|
+
${renderTab(tabs)}
|
|
1297
1300
|
</div>
|
|
1298
1301
|
`;
|
|
1299
1302
|
}
|