@unocss/core 0.61.0 → 0.61.2

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.mjs +9 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -602,7 +602,7 @@ function definePreset(preset) {
602
602
  return preset;
603
603
  }
604
604
 
605
- const version = "0.61.0";
605
+ const version = "0.61.2";
606
606
 
607
607
  var __defProp = Object.defineProperty;
608
608
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -999,9 +999,8 @@ class UnoGenerator {
999
999
  const entries = normalizeCSSValues(result).filter((i2) => i2.length);
1000
1000
  if (entries.length) {
1001
1001
  return entries.map((css) => {
1002
- if (isString(css)) {
1002
+ if (isString(css))
1003
1003
  return [i, css, meta];
1004
- }
1005
1004
  let variants = variantHandlers;
1006
1005
  for (const entry of css) {
1007
1006
  if (entry[0] === symbols.variants) {
@@ -1086,8 +1085,13 @@ class UnoGenerator {
1086
1085
  }
1087
1086
  }
1088
1087
  }
1089
- if (isString(result))
1090
- result = expandVariantGroup(result.trim()).split(/\s+/g);
1088
+ if (result) {
1089
+ result = toArray(result).map((s) => {
1090
+ if (isString(s))
1091
+ return expandVariantGroup(s.trim()).split(/\s+/g);
1092
+ return s;
1093
+ }).flat();
1094
+ }
1091
1095
  if (!result) {
1092
1096
  const [raw, inputWithoutVariant] = isString(input) ? await this.matchVariants(input) : input;
1093
1097
  if (raw !== inputWithoutVariant) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "0.61.0",
4
+ "version": "0.61.2",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",