@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 +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
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:
|
|
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:
|
|
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