@unocss/preset-uno 0.50.7 → 0.51.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 +4 -14
- package/dist/index.mjs +5 -15
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const presetWind = require('@unocss/preset-wind');
|
|
6
|
-
const presetMini = require('@unocss/preset-mini');
|
|
7
6
|
const utils = require('@unocss/preset-mini/utils');
|
|
8
7
|
|
|
9
8
|
function mixComponent(v1, v2, w) {
|
|
@@ -70,23 +69,14 @@ function variantColorMix() {
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
function presetUno(options = {}) {
|
|
73
|
-
|
|
74
|
-
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
75
|
-
options.preflight = options.preflight ?? true;
|
|
76
|
-
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
72
|
+
const wind = presetWind.presetWind(options);
|
|
77
73
|
return {
|
|
74
|
+
...wind,
|
|
78
75
|
name: "@unocss/preset-uno",
|
|
79
|
-
theme: presetWind.theme,
|
|
80
|
-
rules: presetWind.rules,
|
|
81
|
-
shortcuts: presetWind.shortcuts,
|
|
82
76
|
variants: [
|
|
83
|
-
...
|
|
77
|
+
...wind.variants,
|
|
84
78
|
variantColorMix()
|
|
85
|
-
]
|
|
86
|
-
options,
|
|
87
|
-
postprocess: presetMini.VarPrefixPostprocessor(options.variablePrefix),
|
|
88
|
-
preflights: options.preflight ? presetMini.normalizePreflights(presetMini.preflights, options.variablePrefix) : [],
|
|
89
|
-
prefix: options.prefix
|
|
79
|
+
]
|
|
90
80
|
};
|
|
91
81
|
}
|
|
92
82
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VarPrefixPostprocessor, normalizePreflights, preflights } from '@unocss/preset-mini';
|
|
1
|
+
import { presetWind } from '@unocss/preset-wind';
|
|
3
2
|
import { parseCssColor, colorToString } from '@unocss/preset-mini/utils';
|
|
4
3
|
|
|
5
4
|
function mixComponent(v1, v2, w) {
|
|
@@ -66,23 +65,14 @@ function variantColorMix() {
|
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
function presetUno(options = {}) {
|
|
69
|
-
|
|
70
|
-
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
71
|
-
options.preflight = options.preflight ?? true;
|
|
72
|
-
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
68
|
+
const wind = presetWind(options);
|
|
73
69
|
return {
|
|
70
|
+
...wind,
|
|
74
71
|
name: "@unocss/preset-uno",
|
|
75
|
-
theme,
|
|
76
|
-
rules,
|
|
77
|
-
shortcuts,
|
|
78
72
|
variants: [
|
|
79
|
-
...variants
|
|
73
|
+
...wind.variants,
|
|
80
74
|
variantColorMix()
|
|
81
|
-
]
|
|
82
|
-
options,
|
|
83
|
-
postprocess: VarPrefixPostprocessor(options.variablePrefix),
|
|
84
|
-
preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
|
|
85
|
-
prefix: options.prefix
|
|
75
|
+
]
|
|
86
76
|
};
|
|
87
77
|
}
|
|
88
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-uno",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "The default preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"*.css"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@unocss/
|
|
54
|
-
"@unocss/
|
|
55
|
-
"@unocss/preset-wind": "0.
|
|
53
|
+
"@unocss/preset-mini": "0.51.0",
|
|
54
|
+
"@unocss/core": "0.51.0",
|
|
55
|
+
"@unocss/preset-wind": "0.51.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "unbuild",
|