@vettvangur/design-system 2.0.65 → 2.0.66

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 +22 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3171,8 +3171,17 @@ function blockForBody(b) {
3171
3171
  const lhBase = `leading-${key}`;
3172
3172
  let out = `@utility ${key} {\n`;
3173
3173
  out += ` @apply font-body ${fsBase} ${lhBase};\n`;
3174
- if (needsDesktopLine$1(fsValues) || needsDesktopLine$1(lhValues)) {
3175
- out += ` @apply desktop-xs:${fsBase}-desktop desktop-xs:${lhBase}-desktop;\n`;
3174
+ const fsDesktop = needsDesktopLine$1(fsValues);
3175
+ const lhDesktop = needsDesktopLine$1(lhValues);
3176
+ if (fsDesktop || lhDesktop) {
3177
+ const parts = [];
3178
+ if (fsDesktop) {
3179
+ parts.push(`desktop-xs:${fsBase}-desktop`);
3180
+ }
3181
+ if (lhDesktop) {
3182
+ parts.push(`desktop-xs:${lhBase}-desktop`);
3183
+ }
3184
+ out += ` @apply ${parts.join(' ')};\n`;
3176
3185
  }
3177
3186
  out += `}\n`;
3178
3187
  return out;
@@ -3347,8 +3356,17 @@ function blockForHeadline(h) {
3347
3356
  const lhBase = `leading-${key}`;
3348
3357
  let out = `@utility ${key} {\n`;
3349
3358
  out += ` @apply font-headline ${fsBase} ${lhBase};\n`;
3350
- if (needsDesktopLine(fsValues) || needsDesktopLine(lhValues)) {
3351
- out += ` @apply desktop-xs:${fsBase}-desktop desktop-xs:${lhBase}-desktop;\n`;
3359
+ const fsDesktop = needsDesktopLine(fsValues);
3360
+ const lhDesktop = needsDesktopLine(lhValues);
3361
+ if (fsDesktop || lhDesktop) {
3362
+ const parts = [];
3363
+ if (fsDesktop) {
3364
+ parts.push(`desktop-xs:${fsBase}-desktop`);
3365
+ }
3366
+ if (lhDesktop) {
3367
+ parts.push(`desktop-xs:${lhBase}-desktop`);
3368
+ }
3369
+ out += ` @apply ${parts.join(' ')};\n`;
3352
3370
  }
3353
3371
  out += `}\n`;
3354
3372
  return out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.65",
3
+ "version": "2.0.66",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",