@vettvangur/design-system 2.0.9 → 2.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +31 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2078,10 +2078,11 @@ function renderButtonsCshtml(buttons, projectName) {
2078
2078
  />
2079
2079
  </div>`;
2080
2080
  }).join('\n\n');
2081
+
2082
+ // @{
2083
+ // Layout = "Master.cshtml";
2084
+ // }
2081
2085
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2082
- @{
2083
- Layout = "Master.cshtml";
2084
- }
2085
2086
  <section class="ds-buttons">
2086
2087
  <div class="ds__left">
2087
2088
  <partial name="${projectName}/DesignSystem/DSNavigation" />
@@ -2144,10 +2145,11 @@ ${items}
2144
2145
  </div>
2145
2146
  </section>`;
2146
2147
  }).join('\n\n');
2148
+
2149
+ // @{
2150
+ // Layout = "Master.cshtml";
2151
+ // }
2147
2152
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2148
- @{
2149
- Layout = "Master.cshtml";
2150
- }
2151
2153
  <section class="ds-colors">
2152
2154
  <div class="ds__left">
2153
2155
  <partial name="${projectName}/DesignSystem/DSNavigation" />
@@ -2323,10 +2325,11 @@ function renderTypographyCshtml(data, projectName) {
2323
2325
  categories[cat].push(renderEntry(id, entry));
2324
2326
  }
2325
2327
  const sections = Object.entries(categories).map(([title, items]) => renderCategory(title, items)).join('\n');
2328
+
2329
+ // @{
2330
+ // Layout = "Master.cshtml";
2331
+ // }
2326
2332
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2327
- @{
2328
- Layout = "Master.cshtml";
2329
- }
2330
2333
 
2331
2334
  <section class="ds-typography">
2332
2335
  <div class="ds__left">
@@ -2361,10 +2364,10 @@ async function generateTypography(typography, config, outpath, projectName) {
2361
2364
  }
2362
2365
 
2363
2366
  function renderTablesCshtml(projectName) {
2367
+ // @{
2368
+ // Layout = "Master.cshtml";
2369
+ // }
2364
2370
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2365
- @{
2366
- Layout = "Master.cshtml";
2367
- }
2368
2371
 
2369
2372
  <section class="ds-tables">
2370
2373
  <div class="ds__left">
@@ -2419,10 +2422,10 @@ async function generateTables(config, outpath, projectName) {
2419
2422
  }
2420
2423
 
2421
2424
  function renderRichtextCshtml(projectName) {
2425
+ // @{
2426
+ // Layout = "Master.cshtml";
2427
+ // }
2422
2428
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2423
- @{
2424
- Layout = "Master.cshtml";
2425
- }
2426
2429
 
2427
2430
  <section class="ds-richtext">
2428
2431
  <div class="ds__left">
@@ -2802,10 +2805,11 @@ function renderInputsCshtml(projectName) {
2802
2805
  sections
2803
2806
  } = buildSpec();
2804
2807
  const renderedSections = sections.map(renderSection).join('\n\n');
2808
+
2809
+ // @{
2810
+ // Layout = "Master.cshtml";
2811
+ // }
2805
2812
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2806
- @{
2807
- Layout = "Master.cshtml";
2808
- }
2809
2813
 
2810
2814
  ${razorPrelude}
2811
2815
 
@@ -2885,14 +2889,20 @@ function renderDesignSystemViewCshtml(projectName) {
2885
2889
  return `@* AUTO-GENERATED - DO NOT EDIT BY HAND *@
2886
2890
  @{
2887
2891
  Layout = "Master.cshtml";
2892
+ // This template will used later, right now users are redirected to /design-system/colors
2888
2893
  }
2889
2894
  <section class="ds">
2890
2895
  <div class="ds__left">
2891
2896
  <partial name="${projectName}/DesignSystem/DSNavigation" />
2892
2897
  </div>
2893
- <div class="ds__right">
2894
- <partial name="${projectName}/DesignSystem/DSColors" />
2895
- </div>
2898
+ <div class="ds__right">
2899
+ <partial name="${projectName}/DesignSystem/DSColors" />
2900
+ <partial name="${projectName}/DesignSystem/DSTypography" />
2901
+ <partial name="${projectName}/DesignSystem/DSButtons" />
2902
+ <partial name="${projectName}/DesignSystem/DSInputs" />
2903
+ <partial name="${projectName}/DesignSystem/DSRichtext" />
2904
+ <partial name="${projectName}/DesignSystem/DSTables" />
2905
+ </div>
2896
2906
  </section>
2897
2907
  `;
2898
2908
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",