@unocss/preset-wind 0.32.1 → 0.32.7
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 +19 -4
- package/dist/index.mjs +20 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -161,16 +161,30 @@ const backgroundStyles = [
|
|
|
161
161
|
["bg-origin-content", { "background-origin": "content-box" }]
|
|
162
162
|
];
|
|
163
163
|
|
|
164
|
+
const listStyles = {
|
|
165
|
+
"disc": "disc",
|
|
166
|
+
"circle": "circle",
|
|
167
|
+
"square": "square",
|
|
168
|
+
"decimal": "decimal",
|
|
169
|
+
"zero-decimal": "decimal-leading-zero",
|
|
170
|
+
"greek": "lower-greek",
|
|
171
|
+
"roman": "lower-roman",
|
|
172
|
+
"upper-roman": "upper-roman",
|
|
173
|
+
"alpha": "lower-alpha",
|
|
174
|
+
"upper-alpha": "upper-alpha",
|
|
175
|
+
"latin": "lower-latin",
|
|
176
|
+
"upper-latin": "upper-latin"
|
|
177
|
+
};
|
|
164
178
|
const listStyle = [
|
|
165
|
-
[/^list-(
|
|
179
|
+
[/^list-(.+)(?:-(outside|inside))?$/, ([, style, position]) => {
|
|
166
180
|
if (position != null) {
|
|
167
181
|
return {
|
|
168
182
|
"list-style-position": position,
|
|
169
|
-
"list-style-type": style
|
|
183
|
+
"list-style-type": listStyles[style]
|
|
170
184
|
};
|
|
171
185
|
}
|
|
172
|
-
return { "list-style-type": style };
|
|
173
|
-
}, { autocomplete: [
|
|
186
|
+
return { "list-style-type": listStyles[style] };
|
|
187
|
+
}, { autocomplete: [`list-(${Object.keys(listStyles).join("|")})`, `list-(${Object.keys(listStyles).join("|")})-(outside|inside)`] }],
|
|
174
188
|
["list-outside", { "list-style-position": "outside" }],
|
|
175
189
|
["list-inside", { "list-style-position": "inside" }],
|
|
176
190
|
["list-none", { "list-style-type": "none" }]
|
|
@@ -791,6 +805,7 @@ const rules = [
|
|
|
791
805
|
rules$1.textIndents,
|
|
792
806
|
rules$1.verticalAligns,
|
|
793
807
|
rules$1.fonts,
|
|
808
|
+
rules$1.textTransforms,
|
|
794
809
|
textTransforms,
|
|
795
810
|
rules$1.fontStyles,
|
|
796
811
|
fontVariantNumeric,
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { toArray, CONTROL_SHORTCUT_NO_MERGE } from '@unocss/core';
|
|
|
2
2
|
import { handler, positionMap, parseColor, colorToString, colorResolver, resolveBreakpoints, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
|
|
3
3
|
import { theme as theme$1 } from '@unocss/preset-mini/theme';
|
|
4
4
|
export { colors } from '@unocss/preset-mini';
|
|
5
|
-
import { varEmpty, cssVariables as cssVariables$1, cssProperty, pointerEvents, appearances, positions, insets, zIndexes, orders, grids, floats, margins, boxSizing, displays, aspectRatio, sizes, flex, transforms, cursors, userSelects, resizes, appearance, placements, alignments, justifies, gaps, overflows, textOverflows, whitespaces, breaks, borders, bgColors, svgUtilities, paddings, textAligns, textIndents, verticalAligns, fonts, fontStyles, textColors, textDecorations, fontSmoothings, tabSizes, textStrokes, textShadows, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark } from '@unocss/preset-mini/rules';
|
|
5
|
+
import { varEmpty, cssVariables as cssVariables$1, cssProperty, pointerEvents, appearances, positions, insets, zIndexes, orders, grids, floats, margins, boxSizing, displays, aspectRatio, sizes, flex, transforms, cursors, userSelects, resizes, appearance, placements, alignments, justifies, gaps, overflows, textOverflows, whitespaces, breaks, borders, bgColors, svgUtilities, paddings, textAligns, textIndents, verticalAligns, fonts, textTransforms as textTransforms$1, fontStyles, textColors, textDecorations, fontSmoothings, tabSizes, textStrokes, textShadows, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark } from '@unocss/preset-mini/rules';
|
|
6
6
|
import { variants as variants$1 } from '@unocss/preset-mini/variants';
|
|
7
7
|
|
|
8
8
|
const animations = [
|
|
@@ -157,16 +157,30 @@ const backgroundStyles = [
|
|
|
157
157
|
["bg-origin-content", { "background-origin": "content-box" }]
|
|
158
158
|
];
|
|
159
159
|
|
|
160
|
+
const listStyles = {
|
|
161
|
+
"disc": "disc",
|
|
162
|
+
"circle": "circle",
|
|
163
|
+
"square": "square",
|
|
164
|
+
"decimal": "decimal",
|
|
165
|
+
"zero-decimal": "decimal-leading-zero",
|
|
166
|
+
"greek": "lower-greek",
|
|
167
|
+
"roman": "lower-roman",
|
|
168
|
+
"upper-roman": "upper-roman",
|
|
169
|
+
"alpha": "lower-alpha",
|
|
170
|
+
"upper-alpha": "upper-alpha",
|
|
171
|
+
"latin": "lower-latin",
|
|
172
|
+
"upper-latin": "upper-latin"
|
|
173
|
+
};
|
|
160
174
|
const listStyle = [
|
|
161
|
-
[/^list-(
|
|
175
|
+
[/^list-(.+)(?:-(outside|inside))?$/, ([, style, position]) => {
|
|
162
176
|
if (position != null) {
|
|
163
177
|
return {
|
|
164
178
|
"list-style-position": position,
|
|
165
|
-
"list-style-type": style
|
|
179
|
+
"list-style-type": listStyles[style]
|
|
166
180
|
};
|
|
167
181
|
}
|
|
168
|
-
return { "list-style-type": style };
|
|
169
|
-
}, { autocomplete: [
|
|
182
|
+
return { "list-style-type": listStyles[style] };
|
|
183
|
+
}, { autocomplete: [`list-(${Object.keys(listStyles).join("|")})`, `list-(${Object.keys(listStyles).join("|")})-(outside|inside)`] }],
|
|
170
184
|
["list-outside", { "list-style-position": "outside" }],
|
|
171
185
|
["list-inside", { "list-style-position": "inside" }],
|
|
172
186
|
["list-none", { "list-style-type": "none" }]
|
|
@@ -787,6 +801,7 @@ const rules = [
|
|
|
787
801
|
textIndents,
|
|
788
802
|
verticalAligns,
|
|
789
803
|
fonts,
|
|
804
|
+
textTransforms$1,
|
|
790
805
|
textTransforms,
|
|
791
806
|
fontStyles,
|
|
792
807
|
fontVariantNumeric,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.7",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"sideEffects": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.32.
|
|
39
|
-
"@unocss/preset-mini": "0.32.
|
|
38
|
+
"@unocss/core": "0.32.7",
|
|
39
|
+
"@unocss/preset-mini": "0.32.7"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|