@vettvangur/design-system 2.0.64 → 2.0.65

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 +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2303,7 +2303,9 @@ async function generateFile(variables, config) {
2303
2303
  if (mobile != null) {
2304
2304
  css += ` --${key}: ${mobile};\n`;
2305
2305
  }
2306
- if (desktop != null && desktop !== mobile) {
2306
+
2307
+ // Keep the -desktop key if a desktop mode exists, even if it matches mobile.
2308
+ if (desktop != null) {
2307
2309
  css += ` --${key}-desktop: ${desktop};\n`;
2308
2310
  }
2309
2311
  }
@@ -3144,7 +3146,7 @@ function needsDesktopLine$1(values) {
3144
3146
  if (!values) {
3145
3147
  return false;
3146
3148
  }
3147
- return values.desktop !== values.mobile;
3149
+ return values.desktop != null && values.desktop !== values.mobile;
3148
3150
  }
3149
3151
 
3150
3152
  /**
@@ -3320,7 +3322,7 @@ function needsDesktopLine(values) {
3320
3322
  if (!values) {
3321
3323
  return false;
3322
3324
  }
3323
- return values.desktop !== values.mobile;
3325
+ return values.desktop != null && values.desktop !== values.mobile;
3324
3326
  }
3325
3327
 
3326
3328
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.64",
3
+ "version": "2.0.65",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",