@unocss/preset-wind4 66.7.0-beta.1 → 66.7.2-beta.1
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.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { H as PRESET_NAME, I as globalKeywords, a as themeTracking, f as compres
|
|
|
3
3
|
import { rules } from "./rules.mjs";
|
|
4
4
|
import { shortcuts } from "./shortcuts.mjs";
|
|
5
5
|
import { theme } from "./theme.mjs";
|
|
6
|
-
import { t as variants } from "./variants-
|
|
6
|
+
import { t as variants } from "./variants-tMjH_ofD.mjs";
|
|
7
7
|
import { definePreset, escapeSelector, toArray, uniq } from "@unocss/core";
|
|
8
8
|
import { extractorArbitraryVariants } from "@unocss/extractor-arbitrary-variants";
|
|
9
9
|
import { alphaPlaceholdersRE } from "@unocss/rule-utils";
|
package/dist/rules.mjs
CHANGED
|
@@ -2444,7 +2444,12 @@ const transforms = [
|
|
|
2444
2444
|
["transform-cpu", { transform: transformCpu }],
|
|
2445
2445
|
["transform-gpu", { transform: transformGpu }],
|
|
2446
2446
|
["transform-none", { transform: "none" }],
|
|
2447
|
-
...makeGlobalStaticRules("transform")
|
|
2447
|
+
...makeGlobalStaticRules("transform"),
|
|
2448
|
+
[
|
|
2449
|
+
/^zoom-(.+)$/,
|
|
2450
|
+
([, v], { theme }) => ({ zoom: h.bracket.percent.cssvar(v, theme) }),
|
|
2451
|
+
{ autocomplete: "zoom-<percent>" }
|
|
2452
|
+
]
|
|
2448
2453
|
];
|
|
2449
2454
|
function handleTranslate([, d, b], { theme }) {
|
|
2450
2455
|
const v = numberResolver(b) ?? h.bracket.cssvar.none.fraction.rem(b, theme);
|
|
@@ -596,7 +596,9 @@ const variantSupports = {
|
|
|
596
596
|
let supports = h.bracket(match, ctx.theme) ?? "";
|
|
597
597
|
if (supports === "") supports = ctx.theme.supports?.[match] ?? "";
|
|
598
598
|
if (supports) {
|
|
599
|
-
if (
|
|
599
|
+
if (/^[\w-]+$/.test(supports)) supports = `(${supports}: var(--un))`;
|
|
600
|
+
supports = supports.replace(/\b(and|or|not)\b/gi, " $1 ").replace(/\s+/g, " ").trim();
|
|
601
|
+
if (!(supports.startsWith("(") && supports.endsWith(")")) && !/^not\b/i.test(supports)) supports = `(${supports})`;
|
|
600
602
|
return {
|
|
601
603
|
matcher: rest,
|
|
602
604
|
handle: (input, next) => next({
|
package/dist/variants.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as variantColorsMediaOrClass, C as variantOrientations, D as variantLanguageDirections, E as variantImportant, F as variantChildren, I as variantBreakpoints, L as variantAria, M as variantContainerQuery, N as variantCombinators, O as variantDataAttribute, P as variantSvgCombinators, R as variantTaggedAriaAttributes, S as variantNoscript, T as variantScripting, _ as variantVariables, a as variantPseudoClassFunctions, b as variantForcedColors, c as placeholderModifier, d as variantImplicitGroup, f as variantInternalLayer, g as variantTheme, h as variantStickyHover, i as variantPartClasses, j as variantColorsScheme, k as variantTaggedDataAttributes, l as variantNegative, m as variantSelector, n as variantSupports, o as variantPseudoClassesAndElements, p as variantScope, r as variantStartingStyle, s as variantTaggedPseudoClasses, t as variants, u as variantCssLayer, v as variantContrasts, w as variantPrint, x as variantMotions, y as variantCustomMedia } from "./variants-
|
|
1
|
+
import { A as variantColorsMediaOrClass, C as variantOrientations, D as variantLanguageDirections, E as variantImportant, F as variantChildren, I as variantBreakpoints, L as variantAria, M as variantContainerQuery, N as variantCombinators, O as variantDataAttribute, P as variantSvgCombinators, R as variantTaggedAriaAttributes, S as variantNoscript, T as variantScripting, _ as variantVariables, a as variantPseudoClassFunctions, b as variantForcedColors, c as placeholderModifier, d as variantImplicitGroup, f as variantInternalLayer, g as variantTheme, h as variantStickyHover, i as variantPartClasses, j as variantColorsScheme, k as variantTaggedDataAttributes, l as variantNegative, m as variantSelector, n as variantSupports, o as variantPseudoClassesAndElements, p as variantScope, r as variantStartingStyle, s as variantTaggedPseudoClasses, t as variants, u as variantCssLayer, v as variantContrasts, w as variantPrint, x as variantMotions, y as variantCustomMedia } from "./variants-tMjH_ofD.mjs";
|
|
2
2
|
export { placeholderModifier, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantColorsScheme, variantCombinators, variantContainerQuery, variantContrasts, variantCssLayer, variantCustomMedia, variantDataAttribute, variantForcedColors, variantImplicitGroup, variantImportant, variantInternalLayer, variantLanguageDirections, variantMotions, variantNegative, variantNoscript, variantOrientations, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantScripting, variantSelector, variantStartingStyle, variantStickyHover, variantSupports, variantSvgCombinators, variantTaggedAriaAttributes, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind4",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.7.
|
|
4
|
+
"version": "66.7.2-beta.1",
|
|
5
5
|
"description": "Tailwind 4 compact preset for UnoCSS",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"dist"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@unocss/core": "66.7.
|
|
58
|
-
"@unocss/
|
|
59
|
-
"@unocss/
|
|
57
|
+
"@unocss/core": "66.7.2-beta.1",
|
|
58
|
+
"@unocss/extractor-arbitrary-variants": "66.7.2-beta.1",
|
|
59
|
+
"@unocss/rule-utils": "66.7.2-beta.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsdown --config-loader unrun",
|