@unocss/core 0.45.18 → 0.45.21
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 +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -133,7 +133,7 @@ function isStaticShortcut(sc) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
const attributifyRE = /^\[(.+?)~?="(.*)"\]$/;
|
|
136
|
-
const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)
|
|
136
|
+
const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/;
|
|
137
137
|
const validateFilterRE = /[\w\u00A0-\uFFFF-_:%-?]/;
|
|
138
138
|
const CONTROL_SHORTCUT_NO_MERGE = "$$shortcut-no-merge";
|
|
139
139
|
function isAttributifySelector(selector) {
|
|
@@ -416,7 +416,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
const version = "0.45.
|
|
419
|
+
const version = "0.45.21";
|
|
420
420
|
|
|
421
421
|
class UnoGenerator {
|
|
422
422
|
constructor(userConfig = {}, defaults = {}) {
|
package/dist/index.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ interface ParsedColorValue {
|
|
|
183
183
|
*/
|
|
184
184
|
name: string;
|
|
185
185
|
/**
|
|
186
|
-
* Color scale,
|
|
186
|
+
* Color scale, preferably 000 - 999.
|
|
187
187
|
*/
|
|
188
188
|
no: string;
|
|
189
189
|
/**
|
|
@@ -223,7 +223,7 @@ interface RuleContext<Theme extends {} = {}> {
|
|
|
223
223
|
*/
|
|
224
224
|
variantMatch: VariantMatchedResult;
|
|
225
225
|
/**
|
|
226
|
-
*
|
|
226
|
+
* Construct a custom CSS rule.
|
|
227
227
|
* Variants and selector escaping will be handled automatically.
|
|
228
228
|
*/
|
|
229
229
|
constructCSS: (body: CSSEntries | CSSObject, overrideSelector?: string) => string;
|
|
@@ -328,11 +328,11 @@ interface VariantHandlerContext {
|
|
|
328
328
|
*/
|
|
329
329
|
prefix: string;
|
|
330
330
|
/**
|
|
331
|
-
* Rewrite the output selector. Often be used to append
|
|
331
|
+
* Rewrite the output selector. Often be used to append pseudo classes.
|
|
332
332
|
*/
|
|
333
333
|
selector: string;
|
|
334
334
|
/**
|
|
335
|
-
* Rewrite the output selector. Often be used to append
|
|
335
|
+
* Rewrite the output selector. Often be used to append pseudo elements.
|
|
336
336
|
*/
|
|
337
337
|
pseudo: string;
|
|
338
338
|
/**
|
|
@@ -375,7 +375,7 @@ interface VariantHandler {
|
|
|
375
375
|
*/
|
|
376
376
|
order?: number;
|
|
377
377
|
/**
|
|
378
|
-
* Rewrite the output selector. Often be used to append
|
|
378
|
+
* Rewrite the output selector. Often be used to append pseudo classes or parents.
|
|
379
379
|
*/
|
|
380
380
|
selector?: (input: string, body: CSSEntries) => string | undefined;
|
|
381
381
|
/**
|
|
@@ -402,7 +402,7 @@ interface VariantObject<Theme extends {} = {}> {
|
|
|
402
402
|
*/
|
|
403
403
|
name?: string;
|
|
404
404
|
/**
|
|
405
|
-
* The entry function to match and rewrite the selector for
|
|
405
|
+
* The entry function to match and rewrite the selector for further processing.
|
|
406
406
|
*/
|
|
407
407
|
match: VariantFunction<Theme>;
|
|
408
408
|
/**
|
|
@@ -762,12 +762,12 @@ interface GenerateOptions {
|
|
|
762
762
|
*/
|
|
763
763
|
safelist?: boolean;
|
|
764
764
|
/**
|
|
765
|
-
*
|
|
765
|
+
* Generate minified CSS
|
|
766
766
|
* @default false
|
|
767
767
|
*/
|
|
768
768
|
minify?: boolean;
|
|
769
769
|
/**
|
|
770
|
-
* @
|
|
770
|
+
* @experimental
|
|
771
771
|
*/
|
|
772
772
|
scope?: string;
|
|
773
773
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -129,7 +129,7 @@ function isStaticShortcut(sc) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
const attributifyRE = /^\[(.+?)~?="(.*)"\]$/;
|
|
132
|
-
const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)
|
|
132
|
+
const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/;
|
|
133
133
|
const validateFilterRE = /[\w\u00A0-\uFFFF-_:%-?]/;
|
|
134
134
|
const CONTROL_SHORTCUT_NO_MERGE = "$$shortcut-no-merge";
|
|
135
135
|
function isAttributifySelector(selector) {
|
|
@@ -412,7 +412,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
const version = "0.45.
|
|
415
|
+
const version = "0.45.21";
|
|
416
416
|
|
|
417
417
|
class UnoGenerator {
|
|
418
418
|
constructor(userConfig = {}, defaults = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/core",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.21",
|
|
4
4
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"magic-string": "^0.26.
|
|
40
|
+
"magic-string": "^0.26.3",
|
|
41
41
|
"unconfig": "^0.3.6"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|