@unocss/preset-wind 0.57.1 → 0.57.3
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.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -147,7 +147,7 @@ const backgroundStyles = [
|
|
|
147
147
|
return { "--un-url": utils.h.bracket(d), "background-image": "var(--un-url)" };
|
|
148
148
|
if (bgLengthRE.test(d) && utils.h.bracketOfLength(d) != null)
|
|
149
149
|
return { "background-size": utils.h.bracketOfLength(d).split(" ").map((e) => utils.h.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
150
|
-
if (bgPositionRE.test(d) && utils.h.bracketOfPosition(d) != null)
|
|
150
|
+
if ((utils.isSize(d) || bgPositionRE.test(d)) && utils.h.bracketOfPosition(d) != null)
|
|
151
151
|
return { "background-position": utils.h.bracketOfPosition(d).split(" ").map((e) => utils.h.position.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
152
152
|
}],
|
|
153
153
|
// gradients
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isString, warnOnce, definePreset } from '@unocss/core';
|
|
2
2
|
import { presetMini } from '@unocss/preset-mini';
|
|
3
3
|
export { colors, preflights } from '@unocss/preset-mini';
|
|
4
|
-
import { h, globalKeywords, makeGlobalStaticRules, positionMap, parseColor, colorResolver, resolveBreakpoints, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
|
|
4
|
+
import { h, globalKeywords, makeGlobalStaticRules, isSize, positionMap, parseColor, colorResolver, resolveBreakpoints, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
|
|
5
5
|
import * as _ from '@unocss/preset-mini/rules';
|
|
6
6
|
import { varEmpty, borderStyles, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
|
|
7
7
|
import { theme as theme$1 } from '@unocss/preset-mini/theme';
|
|
@@ -131,7 +131,7 @@ const backgroundStyles = [
|
|
|
131
131
|
return { "--un-url": h.bracket(d), "background-image": "var(--un-url)" };
|
|
132
132
|
if (bgLengthRE.test(d) && h.bracketOfLength(d) != null)
|
|
133
133
|
return { "background-size": h.bracketOfLength(d).split(" ").map((e) => h.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
134
|
-
if (bgPositionRE.test(d) && h.bracketOfPosition(d) != null)
|
|
134
|
+
if ((isSize(d) || bgPositionRE.test(d)) && h.bracketOfPosition(d) != null)
|
|
135
135
|
return { "background-position": h.bracketOfPosition(d).split(" ").map((e) => h.position.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
136
136
|
}],
|
|
137
137
|
// gradients
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.3",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.57.
|
|
39
|
-
"@unocss/preset-mini": "0.57.
|
|
40
|
-
"@unocss/rule-utils": "0.57.
|
|
38
|
+
"@unocss/core": "0.57.3",
|
|
39
|
+
"@unocss/preset-mini": "0.57.3",
|
|
40
|
+
"@unocss/rule-utils": "0.57.3"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|