@unocss/core 0.31.17 → 0.32.7

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
@@ -447,7 +447,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
447
447
  };
448
448
  }
449
449
 
450
- const version = "0.31.17";
450
+ const version = "0.32.7";
451
451
 
452
452
  class UnoGenerator {
453
453
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.d.ts CHANGED
@@ -309,6 +309,10 @@ interface VariantHandler {
309
309
  }
310
310
  declare type VariantFunction<Theme extends {} = {}> = (matcher: string, context: Readonly<VariantContext<Theme>>) => string | VariantHandler | undefined;
311
311
  interface VariantObject<Theme extends {} = {}> {
312
+ /**
313
+ * The name of the variant.
314
+ */
315
+ name?: string;
312
316
  /**
313
317
  * The entry function to match and rewrite the selector for futher processing.
314
318
  */
package/dist/index.mjs CHANGED
@@ -443,7 +443,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
443
443
  };
444
444
  }
445
445
 
446
- const version = "0.31.17";
446
+ const version = "0.32.7";
447
447
 
448
448
  class UnoGenerator {
449
449
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.31.17",
3
+ "version": "0.32.7",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",