@vettvangur/design-system 2.0.3 → 2.0.5
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/index.js +64 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2079,8 +2079,14 @@ function renderButtonsCshtml(buttons) {
|
|
|
2079
2079
|
</div>`;
|
|
2080
2080
|
}).join('\n\n');
|
|
2081
2081
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2082
|
-
|
|
2083
|
-
|
|
2082
|
+
@{
|
|
2083
|
+
Layout = "Master.cshtml";
|
|
2084
|
+
}
|
|
2085
|
+
<section class="ds-buttons">
|
|
2086
|
+
<div class="ds__left">
|
|
2087
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2088
|
+
</div>
|
|
2089
|
+
<div class="ds__right"
|
|
2084
2090
|
<vv-headline
|
|
2085
2091
|
identifier="ds-title"
|
|
2086
2092
|
modifier="headline-2"
|
|
@@ -2093,7 +2099,7 @@ function renderButtonsCshtml(buttons) {
|
|
|
2093
2099
|
${items}
|
|
2094
2100
|
|
|
2095
2101
|
</div>
|
|
2096
|
-
|
|
2102
|
+
</div>
|
|
2097
2103
|
</section>
|
|
2098
2104
|
`;
|
|
2099
2105
|
}
|
|
@@ -2139,18 +2145,24 @@ ${items}
|
|
|
2139
2145
|
</section>`;
|
|
2140
2146
|
}).join('\n\n');
|
|
2141
2147
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2148
|
+
@{
|
|
2149
|
+
Layout = "Master.cshtml";
|
|
2150
|
+
}
|
|
2151
|
+
<section class="ds-colors">
|
|
2152
|
+
<div class="ds__left">
|
|
2153
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2154
|
+
</div>
|
|
2155
|
+
<div class="ds__right">
|
|
2156
|
+
<vv-headline
|
|
2157
|
+
identifier="ds-title"
|
|
2158
|
+
modifier="headline-2"
|
|
2159
|
+
size="2"
|
|
2160
|
+
text="Colors"
|
|
2161
|
+
/>
|
|
2150
2162
|
|
|
2151
2163
|
${sections}
|
|
2152
2164
|
|
|
2153
|
-
|
|
2165
|
+
</div>
|
|
2154
2166
|
</section>
|
|
2155
2167
|
`;
|
|
2156
2168
|
}
|
|
@@ -2312,8 +2324,16 @@ function renderTypographyCshtml(data) {
|
|
|
2312
2324
|
}
|
|
2313
2325
|
const sections = Object.entries(categories).map(([title, items]) => renderCategory(title, items)).join('\n');
|
|
2314
2326
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2315
|
-
|
|
2316
|
-
|
|
2327
|
+
@{
|
|
2328
|
+
Layout = "Master.cshtml";
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
<section class="ds-typography">
|
|
2332
|
+
<div class="ds__left">
|
|
2333
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2334
|
+
</div>
|
|
2335
|
+
|
|
2336
|
+
<div class="ds__right">
|
|
2317
2337
|
<vv-headline
|
|
2318
2338
|
identifier="ds-title"
|
|
2319
2339
|
modifier="headline-1"
|
|
@@ -2342,8 +2362,16 @@ async function generateTypography(typography, config, outpath) {
|
|
|
2342
2362
|
|
|
2343
2363
|
function renderTablesCshtml() {
|
|
2344
2364
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2345
|
-
|
|
2346
|
-
|
|
2365
|
+
@{
|
|
2366
|
+
Layout = "Master.cshtml";
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
<section class="ds-tables">
|
|
2370
|
+
<div class="ds__left">
|
|
2371
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2372
|
+
</div>
|
|
2373
|
+
|
|
2374
|
+
<div class="ds__right">
|
|
2347
2375
|
<vv-headline
|
|
2348
2376
|
identifier="ds__headline"
|
|
2349
2377
|
modifier="headline-2"
|
|
@@ -2392,8 +2420,15 @@ async function generateTables(config, outpath) {
|
|
|
2392
2420
|
|
|
2393
2421
|
function renderRichtextCshtml() {
|
|
2394
2422
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2395
|
-
|
|
2396
|
-
|
|
2423
|
+
@{
|
|
2424
|
+
Layout = "Master.cshtml";
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
<section class="ds-richtext">
|
|
2428
|
+
<div class="ds__left">
|
|
2429
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2430
|
+
</div>
|
|
2431
|
+
<div class="ds__right"
|
|
2397
2432
|
<vv-headline
|
|
2398
2433
|
identifier="ds__headline"
|
|
2399
2434
|
modifier="headline-2"
|
|
@@ -2768,10 +2803,18 @@ function renderInputsCshtml() {
|
|
|
2768
2803
|
} = buildSpec();
|
|
2769
2804
|
const renderedSections = sections.map(renderSection).join('\n\n');
|
|
2770
2805
|
return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
|
|
2806
|
+
@{
|
|
2807
|
+
Layout = "Master.cshtml";
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2771
2810
|
${razorPrelude}
|
|
2772
2811
|
|
|
2773
|
-
<section class="ds-inputs
|
|
2774
|
-
|
|
2812
|
+
<section class="ds-inputs">
|
|
2813
|
+
<div class="ds__left">
|
|
2814
|
+
<partial name="${projectName}/DesignSystem/DSNavigation" />
|
|
2815
|
+
</div>
|
|
2816
|
+
|
|
2817
|
+
<div class="ds__right">
|
|
2775
2818
|
<vv-headline
|
|
2776
2819
|
identifier="ds__headline"
|
|
2777
2820
|
modifier="headline-2"
|
|
@@ -2833,7 +2876,7 @@ async function generateNavigation(config, outpath) {
|
|
|
2833
2876
|
await fs$1.mkdir(outpath, {
|
|
2834
2877
|
recursive: true
|
|
2835
2878
|
});
|
|
2836
|
-
const cshtml = renderNavigationCshtml(
|
|
2879
|
+
const cshtml = renderNavigationCshtml();
|
|
2837
2880
|
await fs$1.writeFile(filePath, cshtml, 'utf8');
|
|
2838
2881
|
message('finished generating navigation');
|
|
2839
2882
|
}
|