@unocss/core 0.32.11 → 0.33.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 +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18,7 +18,7 @@ function escapeSelector(str) {
|
|
|
18
18
|
continue;
|
|
19
19
|
}
|
|
20
20
|
if (codeUnit === 44) {
|
|
21
|
-
result += "
|
|
21
|
+
result += "\\,";
|
|
22
22
|
continue;
|
|
23
23
|
}
|
|
24
24
|
if (codeUnit >= 1 && codeUnit <= 31 || codeUnit === 127 || index === 0 && codeUnit >= 48 && codeUnit <= 57 || index === 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit === 45) {
|
|
@@ -456,7 +456,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
const version = "0.
|
|
459
|
+
const version = "0.33.0";
|
|
460
460
|
|
|
461
461
|
class UnoGenerator {
|
|
462
462
|
constructor(userConfig = {}, defaults = {}) {
|
package/dist/index.d.ts
CHANGED
|
@@ -399,17 +399,17 @@ interface ConfigBase<Theme extends {} = {}> {
|
|
|
399
399
|
/**
|
|
400
400
|
* Rules to generate CSS utilities
|
|
401
401
|
*/
|
|
402
|
-
rules?: Rule[];
|
|
402
|
+
rules?: Rule<Theme>[];
|
|
403
403
|
/**
|
|
404
404
|
* Variants that preprocess the selectors,
|
|
405
405
|
* having the ability to rewrite the CSS object.
|
|
406
406
|
*/
|
|
407
|
-
variants?: Variant[];
|
|
407
|
+
variants?: Variant<Theme>[];
|
|
408
408
|
/**
|
|
409
409
|
* Similar to Windi CSS's shortcuts,
|
|
410
410
|
* allows you have create new utilities by combining existing ones.
|
|
411
411
|
*/
|
|
412
|
-
shortcuts?: UserShortcuts
|
|
412
|
+
shortcuts?: UserShortcuts<Theme>;
|
|
413
413
|
/**
|
|
414
414
|
* Rules to exclude the selectors for your design system (to narrow down the possibilities).
|
|
415
415
|
* Combining `warnExcluded` options it can also helps you identify wrong usages.
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function escapeSelector(str) {
|
|
|
14
14
|
continue;
|
|
15
15
|
}
|
|
16
16
|
if (codeUnit === 44) {
|
|
17
|
-
result += "
|
|
17
|
+
result += "\\,";
|
|
18
18
|
continue;
|
|
19
19
|
}
|
|
20
20
|
if (codeUnit >= 1 && codeUnit <= 31 || codeUnit === 127 || index === 0 && codeUnit >= 48 && codeUnit <= 57 || index === 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit === 45) {
|
|
@@ -452,7 +452,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
const version = "0.
|
|
455
|
+
const version = "0.33.0";
|
|
456
456
|
|
|
457
457
|
class UnoGenerator {
|
|
458
458
|
constructor(userConfig = {}, defaults = {}) {
|