@unocss/core 0.30.8 → 0.30.12

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.cjs CHANGED
@@ -219,11 +219,11 @@ function withLayer(layer, rules) {
219
219
  return rules;
220
220
  }
221
221
 
222
- const regexClassGroup = /([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
222
+ const regexClassGroup = /([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
223
223
  function expandVariantGroup(str) {
224
224
  regexClassGroup.lastIndex = 0;
225
225
  return str.replace(regexClassGroup, (_, pre, sep, body) => {
226
- return body.split(/\s/g).map((i) => i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
226
+ return body.split(/\s/g).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
227
227
  });
228
228
  }
229
229
 
@@ -361,7 +361,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
361
361
  };
362
362
  }
363
363
 
364
- const version = "0.30.8";
364
+ const version = "0.30.12";
365
365
 
366
366
  class UnoGenerator {
367
367
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.mjs CHANGED
@@ -215,11 +215,11 @@ function withLayer(layer, rules) {
215
215
  return rules;
216
216
  }
217
217
 
218
- const regexClassGroup = /([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
218
+ const regexClassGroup = /([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
219
219
  function expandVariantGroup(str) {
220
220
  regexClassGroup.lastIndex = 0;
221
221
  return str.replace(regexClassGroup, (_, pre, sep, body) => {
222
- return body.split(/\s/g).map((i) => i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
222
+ return body.split(/\s/g).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
223
223
  });
224
224
  }
225
225
 
@@ -357,7 +357,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
357
357
  };
358
358
  }
359
359
 
360
- const version = "0.30.8";
360
+ const version = "0.30.12";
361
361
 
362
362
  class UnoGenerator {
363
363
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.30.8",
3
+ "version": "0.30.12",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",