@vettvangur/design-system 2.0.12 → 2.0.13
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 +27 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2062,7 +2062,7 @@ function renderButtonsCshtml(buttons, projectName) {
|
|
|
2062
2062
|
const key = b.key;
|
|
2063
2063
|
const title = titleizeButton(key);
|
|
2064
2064
|
return ` <div class="ds-button-wrap">
|
|
2065
|
-
<vv-headline text="${title}" size="
|
|
2065
|
+
<vv-headline text="${title}" size="@HeadlineSize.H2" modifier="headline-2" />
|
|
2066
2066
|
<vv-button
|
|
2067
2067
|
identifier="ds__button"
|
|
2068
2068
|
modifier="${key}"
|
|
@@ -2091,7 +2091,7 @@ function renderButtonsCshtml(buttons, projectName) {
|
|
|
2091
2091
|
<vv-headline
|
|
2092
2092
|
identifier="ds-title"
|
|
2093
2093
|
modifier="headline-2"
|
|
2094
|
-
size="
|
|
2094
|
+
size="@HeadlineSize.H2"
|
|
2095
2095
|
text="Buttons"
|
|
2096
2096
|
/>
|
|
2097
2097
|
|
|
@@ -2139,7 +2139,7 @@ function renderColorsCshtml(colors, projectName) {
|
|
|
2139
2139
|
</div>`;
|
|
2140
2140
|
}).join('\n');
|
|
2141
2141
|
return ` <section class="ds-color-group">
|
|
2142
|
-
<vv-headline text="${categoryTitle}" size="
|
|
2142
|
+
<vv-headline text="${categoryTitle}" size="@HeadlineSize.H2" modifier="headline-2" />
|
|
2143
2143
|
<div class="ds-color-grid">
|
|
2144
2144
|
${items}
|
|
2145
2145
|
</div>
|
|
@@ -2158,7 +2158,7 @@ ${items}
|
|
|
2158
2158
|
<vv-headline
|
|
2159
2159
|
identifier="ds-title"
|
|
2160
2160
|
modifier="headline-2"
|
|
2161
|
-
size="
|
|
2161
|
+
size="@HeadlineSize.H2"
|
|
2162
2162
|
text="Colors"
|
|
2163
2163
|
/>
|
|
2164
2164
|
|
|
@@ -2179,8 +2179,8 @@ async function generateColors(colors, config, outpath, projectName) {
|
|
|
2179
2179
|
message('finished generating colors');
|
|
2180
2180
|
}
|
|
2181
2181
|
|
|
2182
|
-
/* ---------------------------------------------
|
|
2183
|
-
* helpers
|
|
2182
|
+
/* ---------------------------------------------
|
|
2183
|
+
* helpers
|
|
2184
2184
|
* ------------------------------------------- */
|
|
2185
2185
|
|
|
2186
2186
|
function titleCase(str) {
|
|
@@ -2197,8 +2197,8 @@ function isHeadline(id) {
|
|
|
2197
2197
|
return id.startsWith('headline-');
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
|
-
/* ---------------------------------------------
|
|
2201
|
-
* normalize typography into semantic entries
|
|
2200
|
+
/* ---------------------------------------------
|
|
2201
|
+
* normalize typography into semantic entries
|
|
2202
2202
|
* ------------------------------------------- */
|
|
2203
2203
|
|
|
2204
2204
|
function buildEntries({
|
|
@@ -2228,8 +2228,8 @@ function buildEntries({
|
|
|
2228
2228
|
return map;
|
|
2229
2229
|
}
|
|
2230
2230
|
|
|
2231
|
-
/* ---------------------------------------------
|
|
2232
|
-
* category resolution
|
|
2231
|
+
/* ---------------------------------------------
|
|
2232
|
+
* category resolution
|
|
2233
2233
|
* ------------------------------------------- */
|
|
2234
2234
|
|
|
2235
2235
|
function resolveCategory(id) {
|
|
@@ -2242,8 +2242,8 @@ function resolveCategory(id) {
|
|
|
2242
2242
|
return null;
|
|
2243
2243
|
}
|
|
2244
2244
|
|
|
2245
|
-
/* ---------------------------------------------
|
|
2246
|
-
* preview render
|
|
2245
|
+
/* ---------------------------------------------
|
|
2246
|
+
* preview render
|
|
2247
2247
|
* ------------------------------------------- */
|
|
2248
2248
|
|
|
2249
2249
|
function renderPreview(id, title) {
|
|
@@ -2252,7 +2252,7 @@ function renderPreview(id, title) {
|
|
|
2252
2252
|
<vv-headline
|
|
2253
2253
|
identifier="ds-preview-headline"
|
|
2254
2254
|
text="${title}"
|
|
2255
|
-
size="
|
|
2255
|
+
size="@HeadlineSize.H2"
|
|
2256
2256
|
modifier="${id}"
|
|
2257
2257
|
/>`;
|
|
2258
2258
|
}
|
|
@@ -2262,8 +2262,8 @@ function renderPreview(id, title) {
|
|
|
2262
2262
|
</p>`;
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
|
-
/* ---------------------------------------------
|
|
2266
|
-
* entry render
|
|
2265
|
+
/* ---------------------------------------------
|
|
2266
|
+
* entry render
|
|
2267
2267
|
* ------------------------------------------- */
|
|
2268
2268
|
|
|
2269
2269
|
function renderEntry(id, entry) {
|
|
@@ -2300,14 +2300,14 @@ ${renderPreview(id, title)}
|
|
|
2300
2300
|
</div>`;
|
|
2301
2301
|
}
|
|
2302
2302
|
|
|
2303
|
-
/* ---------------------------------------------
|
|
2304
|
-
* category render
|
|
2303
|
+
/* ---------------------------------------------
|
|
2304
|
+
* category render
|
|
2305
2305
|
* ------------------------------------------- */
|
|
2306
2306
|
|
|
2307
2307
|
function renderCategory(title, entries) {
|
|
2308
2308
|
return `
|
|
2309
2309
|
<section class="ds-type-category">
|
|
2310
|
-
<vv-headline text="${title}" size="
|
|
2310
|
+
<vv-headline text="${title}" size="@HeadlineSize.H2" modifier="headline-2" />
|
|
2311
2311
|
|
|
2312
2312
|
<div class="ds-type-grid">
|
|
2313
2313
|
${entries.join('\n')}
|
|
@@ -2315,8 +2315,8 @@ ${entries.join('\n')}
|
|
|
2315
2315
|
</section>`;
|
|
2316
2316
|
}
|
|
2317
2317
|
|
|
2318
|
-
/* ---------------------------------------------
|
|
2319
|
-
* main render
|
|
2318
|
+
/* ---------------------------------------------
|
|
2319
|
+
* main render
|
|
2320
2320
|
* ------------------------------------------- */
|
|
2321
2321
|
|
|
2322
2322
|
function renderTypographyCshtml(data, projectName) {
|
|
@@ -2346,7 +2346,7 @@ function renderTypographyCshtml(data, projectName) {
|
|
|
2346
2346
|
<vv-headline
|
|
2347
2347
|
identifier="ds-title"
|
|
2348
2348
|
modifier="headline-1"
|
|
2349
|
-
size="
|
|
2349
|
+
size="@HeadlineSize.H2"
|
|
2350
2350
|
text="Typography"
|
|
2351
2351
|
/>
|
|
2352
2352
|
|
|
@@ -2356,8 +2356,8 @@ ${sections}
|
|
|
2356
2356
|
</section>`;
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
|
-
/* ---------------------------------------------
|
|
2360
|
-
* public API
|
|
2359
|
+
/* ---------------------------------------------
|
|
2360
|
+
* public API
|
|
2361
2361
|
* ------------------------------------------- */
|
|
2362
2362
|
|
|
2363
2363
|
async function generateTypography(typography, config, outpath, projectName) {
|
|
@@ -2384,7 +2384,7 @@ function renderTablesCshtml(projectName) {
|
|
|
2384
2384
|
<vv-headline
|
|
2385
2385
|
identifier="ds__headline"
|
|
2386
2386
|
modifier="headline-2"
|
|
2387
|
-
size="
|
|
2387
|
+
size="@HeadlineSize.H2"
|
|
2388
2388
|
text="Tables"
|
|
2389
2389
|
/>
|
|
2390
2390
|
|
|
@@ -2441,6 +2441,7 @@ function renderRichtextCshtml(projectName) {
|
|
|
2441
2441
|
<vv-headline
|
|
2442
2442
|
identifier="ds__headline"
|
|
2443
2443
|
modifier="headline-2"
|
|
2444
|
+
size="@HeadlineSize.H2"
|
|
2444
2445
|
text="Richtext"
|
|
2445
2446
|
/>
|
|
2446
2447
|
|
|
@@ -2547,6 +2548,7 @@ function renderSection({
|
|
|
2547
2548
|
<vv-headline
|
|
2548
2549
|
identifier="ds__headline"
|
|
2549
2550
|
modifier="headline-2"
|
|
2551
|
+
size="@HeadlineSize.H2"
|
|
2550
2552
|
text="${escapeAttr(title)}"
|
|
2551
2553
|
/>
|
|
2552
2554
|
`;
|
|
@@ -2841,6 +2843,7 @@ ${razorPrelude}
|
|
|
2841
2843
|
<vv-headline
|
|
2842
2844
|
identifier="ds__headline"
|
|
2843
2845
|
modifier="headline-2"
|
|
2846
|
+
size="@HeadlineSize.H2"
|
|
2844
2847
|
text="Inputs"
|
|
2845
2848
|
/>
|
|
2846
2849
|
|