@unocss/preset-wind 0.32.0 → 0.32.8
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.cjs +20 -15
- package/dist/index.mjs +20 -15
- package/package.json +4 -5
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
|
|
3
|
+
Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
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" }]
|
|
@@ -490,16 +504,6 @@ const screenReadersAccess = [
|
|
|
490
504
|
}
|
|
491
505
|
]
|
|
492
506
|
];
|
|
493
|
-
const contents = [
|
|
494
|
-
[/^content-(.+)$/, ([, v]) => {
|
|
495
|
-
const c = utils.handler.bracket.cssvar(v);
|
|
496
|
-
if (c != null)
|
|
497
|
-
return { content: c };
|
|
498
|
-
return { content: `"${v}"` };
|
|
499
|
-
}],
|
|
500
|
-
["content-empty", { content: '""' }],
|
|
501
|
-
["content-none", { content: '""' }]
|
|
502
|
-
];
|
|
503
507
|
const isolations = [
|
|
504
508
|
["isolate", { isolation: "isolate" }],
|
|
505
509
|
["isolate-auto", { isolation: "auto" }],
|
|
@@ -801,6 +805,7 @@ const rules = [
|
|
|
801
805
|
rules$1.textIndents,
|
|
802
806
|
rules$1.verticalAligns,
|
|
803
807
|
rules$1.fonts,
|
|
808
|
+
rules$1.textTransforms,
|
|
804
809
|
textTransforms,
|
|
805
810
|
rules$1.fontStyles,
|
|
806
811
|
fontVariantNumeric,
|
|
@@ -825,7 +830,7 @@ const rules = [
|
|
|
825
830
|
filters,
|
|
826
831
|
rules$1.transitions,
|
|
827
832
|
rules$1.willChange,
|
|
828
|
-
contents,
|
|
833
|
+
rules$1.contents,
|
|
829
834
|
placeholders,
|
|
830
835
|
rules$1.questionMark
|
|
831
836
|
].flat(1);
|
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, 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" }]
|
|
@@ -486,16 +500,6 @@ const screenReadersAccess = [
|
|
|
486
500
|
}
|
|
487
501
|
]
|
|
488
502
|
];
|
|
489
|
-
const contents = [
|
|
490
|
-
[/^content-(.+)$/, ([, v]) => {
|
|
491
|
-
const c = handler.bracket.cssvar(v);
|
|
492
|
-
if (c != null)
|
|
493
|
-
return { content: c };
|
|
494
|
-
return { content: `"${v}"` };
|
|
495
|
-
}],
|
|
496
|
-
["content-empty", { content: '""' }],
|
|
497
|
-
["content-none", { content: '""' }]
|
|
498
|
-
];
|
|
499
503
|
const isolations = [
|
|
500
504
|
["isolate", { isolation: "isolate" }],
|
|
501
505
|
["isolate-auto", { isolation: "auto" }],
|
|
@@ -797,6 +801,7 @@ const rules = [
|
|
|
797
801
|
textIndents,
|
|
798
802
|
verticalAligns,
|
|
799
803
|
fonts,
|
|
804
|
+
textTransforms$1,
|
|
800
805
|
textTransforms,
|
|
801
806
|
fontStyles,
|
|
802
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.8",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -35,12 +35,11 @@
|
|
|
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.8",
|
|
39
|
+
"@unocss/preset-mini": "0.32.8"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|
|
43
43
|
"stub": "unbuild --stub"
|
|
44
|
-
}
|
|
45
|
-
"readme": "# @unocss/preset-wind\n\nTailwind / Windi CSS compact preset for [UnoCSS](https://github.com/unocss/unocss).\n\n## Installation\n\n```bash\nnpm i -D @unocss/preset-wind\n```\n\n```ts\nimport presetWind from '@unocss/preset-wind'\n\nUnocss({\n presets: [\n presetWind(),\n ],\n})\n```\n\n## License\n\nMIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)\n"
|
|
44
|
+
}
|
|
46
45
|
}
|