@unocss/preset-wind 0.40.0 → 0.41.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 +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const presetMini = require('@unocss/preset-mini');
|
|
6
|
-
const core = require('@unocss/core');
|
|
7
6
|
const utils = require('@unocss/preset-mini/utils');
|
|
8
7
|
const rules$1 = require('@unocss/preset-mini/rules');
|
|
9
8
|
const theme$1 = require('@unocss/preset-mini/theme');
|
|
@@ -279,7 +278,7 @@ const container = [
|
|
|
279
278
|
(m, { variantHandlers }) => {
|
|
280
279
|
let width = "100%";
|
|
281
280
|
for (const v of variantHandlers) {
|
|
282
|
-
const query =
|
|
281
|
+
const query = v.handle?.({}, (x) => x)?.parent;
|
|
283
282
|
if (typeof query === "string") {
|
|
284
283
|
const match = query.match(queryMatcher)?.[1];
|
|
285
284
|
if (match)
|
|
@@ -1044,8 +1043,8 @@ const variantCombinators = [
|
|
|
1044
1043
|
];
|
|
1045
1044
|
|
|
1046
1045
|
const variantColorsScheme = [
|
|
1047
|
-
utils.variantMatcher(".dark", (input) => ({ prefix:
|
|
1048
|
-
utils.variantMatcher(".light", (input) => ({ prefix:
|
|
1046
|
+
utils.variantMatcher(".dark", (input) => ({ prefix: `.dark $$ ${input.prefix}` })),
|
|
1047
|
+
utils.variantMatcher(".light", (input) => ({ prefix: `.light $$ ${input.prefix}` })),
|
|
1049
1048
|
utils.variantParentMatcher("@dark", "@media (prefers-color-scheme: dark)"),
|
|
1050
1049
|
utils.variantParentMatcher("@light", "@media (prefers-color-scheme: light)")
|
|
1051
1050
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { preflights } from '@unocss/preset-mini';
|
|
2
2
|
export { colors, preflights } from '@unocss/preset-mini';
|
|
3
|
-
import { toArray } from '@unocss/core';
|
|
4
3
|
import { handler, positionMap, parseColor, colorToString, colorOpacityToString, colorResolver, resolveBreakpoints, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
|
|
5
4
|
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, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
|
|
6
5
|
import { theme as theme$1 } from '@unocss/preset-mini/theme';
|
|
@@ -276,7 +275,7 @@ const container = [
|
|
|
276
275
|
(m, { variantHandlers }) => {
|
|
277
276
|
let width = "100%";
|
|
278
277
|
for (const v of variantHandlers) {
|
|
279
|
-
const query =
|
|
278
|
+
const query = v.handle?.({}, (x) => x)?.parent;
|
|
280
279
|
if (typeof query === "string") {
|
|
281
280
|
const match = query.match(queryMatcher)?.[1];
|
|
282
281
|
if (match)
|
|
@@ -1041,8 +1040,8 @@ const variantCombinators = [
|
|
|
1041
1040
|
];
|
|
1042
1041
|
|
|
1043
1042
|
const variantColorsScheme = [
|
|
1044
|
-
variantMatcher(".dark", (input) => ({ prefix:
|
|
1045
|
-
variantMatcher(".light", (input) => ({ prefix:
|
|
1043
|
+
variantMatcher(".dark", (input) => ({ prefix: `.dark $$ ${input.prefix}` })),
|
|
1044
|
+
variantMatcher(".light", (input) => ({ prefix: `.light $$ ${input.prefix}` })),
|
|
1046
1045
|
variantParentMatcher("@dark", "@media (prefers-color-scheme: dark)"),
|
|
1047
1046
|
variantParentMatcher("@light", "@media (prefers-color-scheme: light)")
|
|
1048
1047
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"*.css"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.
|
|
39
|
-
"@unocss/preset-mini": "0.
|
|
38
|
+
"@unocss/core": "0.41.0",
|
|
39
|
+
"@unocss/preset-mini": "0.41.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|