@unocss/core 0.17.3 → 0.18.0

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
@@ -359,7 +359,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
359
359
  };
360
360
  }
361
361
 
362
- const version = "0.17.3";
362
+ const version = "0.18.0";
363
363
 
364
364
  class UnoGenerator {
365
365
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.d.ts CHANGED
@@ -110,11 +110,11 @@ interface RuleMeta {
110
110
  internal?: boolean;
111
111
  }
112
112
  declare type CSSValues = CSSObject | CSSEntries | (CSSObject | CSSEntries)[];
113
- declare type DynamicMatcher<Theme extends {} = {}> = ((match: string[], context: Readonly<RuleContext<Theme>>) => Awaitable<CSSValues | string | undefined>);
113
+ declare type DynamicMatcher<Theme extends {} = {}> = ((match: RegExpMatchArray, context: Readonly<RuleContext<Theme>>) => Awaitable<CSSValues | string | undefined>);
114
114
  declare type DynamicRule<Theme extends {} = {}> = [RegExp, DynamicMatcher<Theme>] | [RegExp, DynamicMatcher<Theme>, RuleMeta];
115
115
  declare type StaticRule = [string, CSSObject | CSSEntries] | [string, CSSObject | CSSEntries, RuleMeta];
116
116
  declare type Rule<Theme extends {} = {}> = DynamicRule<Theme> | StaticRule;
117
- declare type DynamicShortcutMatcher<Theme extends {} = {}> = ((match: string[], context: Readonly<RuleContext<Theme>>) => (string | string[] | undefined));
117
+ declare type DynamicShortcutMatcher<Theme extends {} = {}> = ((match: RegExpMatchArray, context: Readonly<RuleContext<Theme>>) => (string | string[] | undefined));
118
118
  declare type StaticShortcut = [string, string | string[]] | [string, string | string[], RuleMeta];
119
119
  declare type StaticShortcutMap = Record<string, string | string[]>;
120
120
  declare type DynamicShortcut<Theme extends {} = {}> = [RegExp, DynamicShortcutMatcher<Theme>] | [RegExp, DynamicShortcutMatcher<Theme>, RuleMeta];
package/dist/index.mjs CHANGED
@@ -355,7 +355,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
355
355
  };
356
356
  }
357
357
 
358
- const version = "0.17.3";
358
+ const version = "0.18.0";
359
359
 
360
360
  class UnoGenerator {
361
361
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.17.3",
3
+ "version": "0.18.0",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",