@unocss/preset-wind4 66.6.6 → 66.6.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/theme.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import { t as colors } from "./colors-DfOpBqNN.mjs";
2
-
1
+ import { t as colors } from "./colors-DSN24uxs.mjs";
3
2
  //#region src/theme/animate.ts
4
3
  const animation = {
5
4
  keyframes: {
@@ -262,7 +261,6 @@ const animation = {
262
261
  "back-out-left": "Back Exits"
263
262
  }
264
263
  };
265
-
266
264
  //#endregion
267
265
  //#region src/theme/aria.ts
268
266
  const aria = {
@@ -276,7 +274,6 @@ const aria = {
276
274
  required: "required=\"true\"",
277
275
  selected: "selected=\"true\""
278
276
  };
279
-
280
277
  //#endregion
281
278
  //#region src/theme/filters.ts
282
279
  const blur = {
@@ -289,7 +286,6 @@ const blur = {
289
286
  "2xl": "40px",
290
287
  "3xl": "64px"
291
288
  };
292
-
293
289
  //#endregion
294
290
  //#region src/theme/font.ts
295
291
  const font = {
@@ -416,7 +412,6 @@ const textStrokeWidth = {
416
412
  md: "medium",
417
413
  lg: "thick"
418
414
  };
419
-
420
415
  //#endregion
421
416
  //#region src/theme/media.ts
422
417
  const media = {
@@ -438,7 +433,6 @@ const media = {
438
433
  mouse: "(hover) and (pointer: fine)",
439
434
  hd_color: "(dynamic-range: high)"
440
435
  };
441
-
442
436
  //#endregion
443
437
  //#region src/theme/misc.ts
444
438
  const spacing = {
@@ -539,7 +533,6 @@ const defaults = {
539
533
  variationSettings: "var(--font-mono--font-variation-settings)"
540
534
  }
541
535
  };
542
-
543
536
  //#endregion
544
537
  //#region src/theme/size.ts
545
538
  const container = {
@@ -566,11 +559,9 @@ const breakpoint = {
566
559
  "2xl": "96rem"
567
560
  };
568
561
  const verticalBreakpoint = { ...breakpoint };
569
-
570
562
  //#endregion
571
563
  //#region src/theme/supports.ts
572
564
  const supports = { grid: "(display: grid)" };
573
-
574
565
  //#endregion
575
566
  //#region src/theme/transition.ts
576
567
  const ease = {
@@ -614,7 +605,6 @@ const property = {
614
605
  ].join(",");
615
606
  }
616
607
  };
617
-
618
608
  //#endregion
619
609
  //#region src/theme/default.ts
620
610
  const theme = {
@@ -644,6 +634,5 @@ const theme = {
644
634
  media,
645
635
  supports
646
636
  };
647
-
648
637
  //#endregion
649
- export { animation, aria, blur, breakpoint, colors, container, defaults, dropShadow, ease, font, fontWeight, insetShadow, leading, media, perspective, property, radius, shadow, spacing, supports, text, textShadow, textStrokeWidth, theme, tracking, verticalBreakpoint };
638
+ export { animation, aria, blur, breakpoint, colors, container, defaults, dropShadow, ease, font, fontWeight, insetShadow, leading, media, perspective, property, radius, shadow, spacing, supports, text, textShadow, textStrokeWidth, theme, tracking, verticalBreakpoint };
@@ -1,7 +1,6 @@
1
- import { n as __reExport, t as __exportAll } from "./chunk-w_xFUvYo.mjs";
1
+ import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
2
2
  import { escapeSelector, symbols, toArray } from "@unocss/core";
3
3
  import { colorToString, createValueHandler, getStringComponent, getStringComponents, isInterpolatedMethod, parseCssColor } from "@unocss/rule-utils";
4
-
5
4
  //#region src/utils/constant.ts
6
5
  const PRESET_NAME = "@unocss/preset-wind4";
7
6
  const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
@@ -10,7 +9,6 @@ const SpecialColorKey = {
10
9
  current: "currentColor",
11
10
  inherit: "inherit"
12
11
  };
13
-
14
12
  //#endregion
15
13
  //#region src/utils/mappings.ts
16
14
  const directionMap = {
@@ -123,7 +121,6 @@ const globalKeywords = [
123
121
  ];
124
122
  const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
125
123
  const cssVarFnRE = /^(var)\s*\((.+)\)(.*)/;
126
-
127
124
  //#endregion
128
125
  //#region src/utils/handlers/regex.ts
129
126
  const numberWithUnitRE = /^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i;
@@ -143,7 +140,6 @@ const unitOnlyMap = {
143
140
  const bracketTypeRe = /^\[(color|image|length|size|position|quoted|string|number|family):/i;
144
141
  const splitComma = /,(?![^()]*\))/g;
145
142
  const remRE = /(-?[.\d]+)rem/g;
146
-
147
143
  //#endregion
148
144
  //#region src/utils/handlers/handlers.ts
149
145
  var handlers_exports = /* @__PURE__ */ __exportAll({
@@ -334,11 +330,11 @@ function bracketWithType(str, requiredType, theme) {
334
330
  case "string": return base.replace(/(^|[^\\])_/g, "$1 ").replace(/\\_/g, "_");
335
331
  case "quoted": return base.replace(/(^|[^\\])_/g, "$1 ").replace(/\\_/g, "_").replace(/(["\\])/g, "\\$1").replace(/^(.+)$/, "\"$1\"");
336
332
  }
337
- return base.replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(^|[^\\])_/g, "$1 ").replace(/\\_/g, "_").replace(/(?:calc|clamp|max|min)\((.*)/g, (match$1) => {
333
+ return base.replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(^|[^\\])_/g, "$1 ").replace(/\\_/g, "_").replace(/(?:calc|clamp|max|min)\((.*)/g, (match) => {
338
334
  const vars = [];
339
- return match$1.replace(/var\((--.+?)[,)]/g, (match$2, g1) => {
335
+ return match.replace(/var\((--.+?)[,)]/g, (match, g1) => {
340
336
  vars.push(g1);
341
- return match$2.replace(g1, "--un-calc");
337
+ return match.replace(g1, "--un-calc");
342
338
  }).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(/--un-calc/g, () => vars.shift());
343
339
  });
344
340
  }
@@ -407,12 +403,10 @@ function position(str) {
407
403
  function none(str) {
408
404
  if (str === "none") return "none";
409
405
  }
410
-
411
406
  //#endregion
412
407
  //#region src/utils/handlers/index.ts
413
408
  const handler = createValueHandler(handlers_exports);
414
409
  const h = handler;
415
-
416
410
  //#endregion
417
411
  //#region src/utils/utilities.ts
418
412
  function numberResolver(size, defaultValue) {
@@ -497,13 +491,13 @@ function parseColor(body, theme) {
497
491
  }
498
492
  let { no, keys, color } = parsed ?? {};
499
493
  if (!color) {
500
- const bracket$1 = h.bracketOfColor(main, theme);
501
- const bracketOrMain = bracket$1 || main;
494
+ const bracket = h.bracketOfColor(main, theme);
495
+ const bracketOrMain = bracket || main;
502
496
  if (h.numberWithUnit(bracketOrMain)) return;
503
497
  if (/^#[\da-f]+$/i.test(bracketOrMain)) color = bracketOrMain;
504
498
  else if (/^hex-[\da-fA-F]+$/.test(bracketOrMain)) color = `#${bracketOrMain.slice(4)}`;
505
499
  else if (main.startsWith("$")) color = h.cssvar(main);
506
- color = color || bracket$1;
500
+ color = color || bracket;
507
501
  }
508
502
  return {
509
503
  opacity,
@@ -693,7 +687,6 @@ function compressCSS(css, isDev = false) {
693
687
  if (isDev) return css.trim();
694
688
  return css.trim().replace(/\s+/g, " ").replace(/\/\*[\s\S]*?\*\//g, "");
695
689
  }
696
-
697
690
  //#endregion
698
691
  //#region src/utils/track.ts
699
692
  /**
@@ -728,7 +721,6 @@ const trackedProperties = /* @__PURE__ */ new Map();
728
721
  function propertyTracking(property, value) {
729
722
  if (!trackedProperties.has(property)) trackedProperties.set(property, value);
730
723
  }
731
-
732
724
  //#endregion
733
725
  //#region src/utils/unit-resolver.ts
734
726
  function createRemToPxProcessor(base = 16) {
@@ -740,52 +732,5 @@ function createRemToPxProcessor(base = 16) {
740
732
  else utilObjectOrEntry.entries.forEach(resolver);
741
733
  };
742
734
  }
743
-
744
735
  //#endregion
745
- //#region src/utils.ts
746
- var utils_exports = /* @__PURE__ */ __exportAll({
747
- CONTROL_NO_NEGATIVE: () => CONTROL_NO_NEGATIVE,
748
- PRESET_NAME: () => PRESET_NAME,
749
- SpecialColorKey: () => SpecialColorKey,
750
- camelize: () => camelize,
751
- colorCSSGenerator: () => colorCSSGenerator,
752
- colorResolver: () => colorResolver,
753
- colorableShadows: () => colorableShadows,
754
- compressCSS: () => compressCSS,
755
- cornerMap: () => cornerMap,
756
- createRemToPxProcessor: () => createRemToPxProcessor,
757
- cssMathFnRE: () => cssMathFnRE,
758
- cssVarFnRE: () => cssVarFnRE,
759
- defineProperty: () => defineProperty,
760
- detectThemeValue: () => detectThemeValue,
761
- directionMap: () => directionMap,
762
- directionSize: () => directionSize,
763
- generateThemeVariable: () => generateThemeVariable,
764
- getThemeByKey: () => getThemeByKey,
765
- globalKeywords: () => globalKeywords,
766
- h: () => h,
767
- handler: () => handler,
768
- hasParseableColor: () => hasParseableColor,
769
- hyphenate: () => hyphenate,
770
- insetMap: () => insetMap,
771
- isCSSMathFn: () => isCSSMathFn,
772
- isSize: () => isSize,
773
- makeGlobalStaticRules: () => makeGlobalStaticRules,
774
- numberResolver: () => numberResolver,
775
- parseColor: () => parseColor,
776
- parseThemeColor: () => parseThemeColor,
777
- positionMap: () => positionMap,
778
- propertyTracking: () => propertyTracking,
779
- resolveBreakpoints: () => resolveBreakpoints,
780
- resolveVerticalBreakpoints: () => resolveVerticalBreakpoints,
781
- splitShorthand: () => splitShorthand,
782
- themeTracking: () => themeTracking,
783
- trackedProperties: () => trackedProperties,
784
- trackedTheme: () => trackedTheme,
785
- valueHandlers: () => handlers_exports,
786
- xyzArray: () => xyzArray,
787
- xyzMap: () => xyzMap
788
- });
789
-
790
- //#endregion
791
- export { bracketTypeRe as A, xyzMap as B, parseThemeColor as C, h as D, splitShorthand as E, directionMap as F, PRESET_NAME as H, globalKeywords as I, insetMap as L, cornerMap as M, cssMathFnRE as N, handler as O, cssVarFnRE as P, positionMap as R, parseColor as S, resolveVerticalBreakpoints as T, SpecialColorKey as U, CONTROL_NO_NEGATIVE as V, hyphenate as _, themeTracking as a, makeGlobalStaticRules as b, camelize as c, colorableShadows as d, compressCSS as f, hasParseableColor as g, getThemeByKey as h, propertyTracking as i, splitComma as j, handlers_exports as k, colorCSSGenerator as l, directionSize as m, detectThemeValue as n, trackedProperties as o, defineProperty as p, generateThemeVariable as r, trackedTheme as s, createRemToPxProcessor as t, colorResolver as u, isCSSMathFn as v, resolveBreakpoints as w, numberResolver as x, isSize as y, xyzArray as z };
736
+ export { bracketTypeRe as A, xyzMap as B, parseThemeColor as C, h as D, splitShorthand as E, directionMap as F, PRESET_NAME as H, globalKeywords as I, insetMap as L, cornerMap as M, cssMathFnRE as N, handler as O, cssVarFnRE as P, positionMap as R, parseColor as S, resolveVerticalBreakpoints as T, SpecialColorKey as U, CONTROL_NO_NEGATIVE as V, hyphenate as _, themeTracking as a, makeGlobalStaticRules as b, camelize as c, colorableShadows as d, compressCSS as f, hasParseableColor as g, getThemeByKey as h, propertyTracking as i, splitComma as j, handlers_exports as k, colorCSSGenerator as l, directionSize as m, detectThemeValue as n, trackedProperties as o, defineProperty as p, generateThemeVariable as r, trackedTheme as s, createRemToPxProcessor as t, colorResolver as u, isCSSMathFn as v, resolveBreakpoints as w, numberResolver as x, isSize as y, xyzArray as z };
package/dist/utils.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as __reExport, t as __exportAll } from "./chunk-w_xFUvYo.mjs";
2
- import { C as Theme } from "./theme-BEjX_ZME.mjs";
1
+ import { C as Theme } from "./theme-C7zgiweA.mjs";
3
2
  import { Arrayable, CSSEntry, CSSObject, CSSValueInput, DynamicMatcher, RuleContext, StaticRule, UtilObject, VariantContext } from "@unocss/core";
4
3
  import * as _unocss_rule_utils0 from "@unocss/rule-utils";
5
4
  export * from "@unocss/rule-utils";
package/dist/utils.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import { B as xyzMap, C as parseThemeColor, D as h, E as splitShorthand, F as directionMap, H as PRESET_NAME, I as globalKeywords, L as insetMap, M as cornerMap, N as cssMathFnRE, O as handler, P as cssVarFnRE, R as positionMap, S as parseColor, T as resolveVerticalBreakpoints, U as SpecialColorKey, V as CONTROL_NO_NEGATIVE, _ as hyphenate, a as themeTracking, b as makeGlobalStaticRules, c as camelize, d as colorableShadows, f as compressCSS, g as hasParseableColor, h as getThemeByKey, i as propertyTracking, k as handlers_exports, l as colorCSSGenerator, m as directionSize, n as detectThemeValue, o as trackedProperties, p as defineProperty, r as generateThemeVariable, s as trackedTheme, t as createRemToPxProcessor, u as colorResolver, v as isCSSMathFn, w as resolveBreakpoints, x as numberResolver, y as isSize, z as xyzArray } from "./utils-B_qFX7UQ.mjs";
2
-
3
- export * from "@unocss/rule-utils"
4
-
5
- export { CONTROL_NO_NEGATIVE, PRESET_NAME, SpecialColorKey, camelize, colorCSSGenerator, colorResolver, colorableShadows, compressCSS, cornerMap, createRemToPxProcessor, cssMathFnRE, cssVarFnRE, defineProperty, detectThemeValue, directionMap, directionSize, generateThemeVariable, getThemeByKey, globalKeywords, h, handler, hasParseableColor, hyphenate, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, positionMap, propertyTracking, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, themeTracking, trackedProperties, trackedTheme, handlers_exports as valueHandlers, xyzArray, xyzMap };
1
+ import { B as xyzMap, C as parseThemeColor, D as h, E as splitShorthand, F as directionMap, H as PRESET_NAME, I as globalKeywords, L as insetMap, M as cornerMap, N as cssMathFnRE, O as handler, P as cssVarFnRE, R as positionMap, S as parseColor, T as resolveVerticalBreakpoints, U as SpecialColorKey, V as CONTROL_NO_NEGATIVE, _ as hyphenate, a as themeTracking, b as makeGlobalStaticRules, c as camelize, d as colorableShadows, f as compressCSS, g as hasParseableColor, h as getThemeByKey, i as propertyTracking, k as handlers_exports, l as colorCSSGenerator, m as directionSize, n as detectThemeValue, o as trackedProperties, p as defineProperty, r as generateThemeVariable, s as trackedTheme, t as createRemToPxProcessor, u as colorResolver, v as isCSSMathFn, w as resolveBreakpoints, x as numberResolver, y as isSize, z as xyzArray } from "./utils-BamiTVVE.mjs";
2
+ export * from "@unocss/rule-utils";
3
+ export { CONTROL_NO_NEGATIVE, PRESET_NAME, SpecialColorKey, camelize, colorCSSGenerator, colorResolver, colorableShadows, compressCSS, cornerMap, createRemToPxProcessor, cssMathFnRE, cssVarFnRE, defineProperty, detectThemeValue, directionMap, directionSize, generateThemeVariable, getThemeByKey, globalKeywords, h, handler, hasParseableColor, hyphenate, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, positionMap, propertyTracking, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, themeTracking, trackedProperties, trackedTheme, handlers_exports as valueHandlers, xyzArray, xyzMap };
@@ -1,7 +1,6 @@
1
- import { D as h, N as cssMathFnRE, P as cssVarFnRE, V as CONTROL_NO_NEGATIVE, g as hasParseableColor, w as resolveBreakpoints } from "./utils-B_qFX7UQ.mjs";
1
+ import { D as h, N as cssMathFnRE, P as cssVarFnRE, g as hasParseableColor, w as resolveBreakpoints } from "./utils-BamiTVVE.mjs";
2
2
  import { toArray } from "@unocss/core";
3
3
  import { calcMaxWidthBySize, createPartClasses, createPseudoClassFunctions, createPseudoClassesAndElements, createTaggedPseudoClasses, getBracket, getStringComponent, hasThemeFn, transformThemeFn, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher } from "@unocss/rule-utils";
4
-
5
4
  //#region src/variants/aria.ts
6
5
  const variantAria = {
7
6
  name: "aria",
@@ -58,7 +57,6 @@ const variantTaggedAriaAttributes = [
58
57
  taggedAria("has"),
59
58
  taggedAria("in")
60
59
  ];
61
-
62
60
  //#endregion
63
61
  //#region src/variants/breakpoints.ts
64
62
  const sizePseudo = /(max|min)-\[([^\]]*)\]:/;
@@ -83,7 +81,7 @@ function variantBreakpoints() {
83
81
  idx
84
82
  ]);
85
83
  for (const [point, size, idx] of variantEntries) {
86
- if (!regexCache[point]) regexCache[point] = /* @__PURE__ */ new RegExp(`^((?:([al]t-|[<~]|max-))?${point}(?:${context.generator.config.separators.join("|")}))`);
84
+ if (!regexCache[point]) regexCache[point] = new RegExp(`^((?:([al]t-|[<~]|max-))?${point}(?:${context.generator.config.separators.join("|")}))`);
87
85
  const match = matcher.match(regexCache[point]);
88
86
  if (!match) continue;
89
87
  const [, pre] = match;
@@ -126,11 +124,9 @@ function variantBreakpoints() {
126
124
  autocomplete: "(at-|lt-|max-|)$breakpoint:"
127
125
  };
128
126
  }
129
-
130
127
  //#endregion
131
128
  //#region src/variants/children.ts
132
129
  const variantChildren = [variantMatcher("*", (input) => ({ selector: `${input.selector} > *` }), { order: -1 }), variantMatcher("**", (input) => ({ selector: `${input.selector} *` }), { order: -1 })];
133
-
134
130
  //#endregion
135
131
  //#region src/variants/combinators.ts
136
132
  function scopeMatcher(name, combinator) {
@@ -165,7 +161,6 @@ const variantCombinators = [
165
161
  scopeMatcher("siblings", "~")
166
162
  ];
167
163
  const variantSvgCombinators = [variantMatcher("svg", (input) => ({ selector: `${input.selector} svg` }))];
168
-
169
164
  //#endregion
170
165
  //#region src/variants/container.ts
171
166
  const variantContainerQuery = {
@@ -195,7 +190,6 @@ const variantContainerQuery = {
195
190
  },
196
191
  multiPass: true
197
192
  };
198
-
199
193
  //#endregion
200
194
  //#region src/variants/dark.ts
201
195
  function variantColorsMediaOrClass(options = {}) {
@@ -212,7 +206,6 @@ const variantColorsScheme = [
212
206
  variantParentMatcher("@light", "@media (prefers-color-scheme: light)"),
213
207
  variantParentMatcher("not-dark", "@media not (prefers-color-scheme: dark)")
214
208
  ];
215
-
216
209
  //#endregion
217
210
  //#region src/variants/data.ts
218
211
  const variantDataAttribute = {
@@ -269,11 +262,9 @@ const variantTaggedDataAttributes = [
269
262
  taggedData("has"),
270
263
  taggedData("in")
271
264
  ];
272
-
273
265
  //#endregion
274
266
  //#region src/variants/directions.ts
275
267
  const variantLanguageDirections = [variantMatcher("rtl", (input) => ({ prefix: `[dir="rtl"] $$ ${input.prefix}` })), variantMatcher("ltr", (input) => ({ prefix: `[dir="ltr"] $$ ${input.prefix}` }))];
276
-
277
268
  //#endregion
278
269
  //#region src/variants/important.ts
279
270
  function variantImportant() {
@@ -281,7 +272,7 @@ function variantImportant() {
281
272
  return {
282
273
  name: "important",
283
274
  match(matcher, ctx) {
284
- if (!re) re = /* @__PURE__ */ new RegExp(`^(important(?:${ctx.generator.config.separators.join("|")})|!)`);
275
+ if (!re) re = new RegExp(`^(important(?:${ctx.generator.config.separators.join("|")})|!)`);
285
276
  let base;
286
277
  const match = matcher.match(re);
287
278
  if (match) base = matcher.slice(match[0].length);
@@ -298,14 +289,12 @@ function variantImportant() {
298
289
  }
299
290
  };
300
291
  }
301
-
302
292
  //#endregion
303
293
  //#region src/variants/inert.ts
304
294
  const variantInert = variantMatcher("inert", (input) => ({
305
295
  parent: `${input.parent ? `${input.parent} $$ ` : ""}${input.selector}`,
306
296
  selector: "&:is([inert],[inert] *)"
307
297
  }));
308
-
309
298
  //#endregion
310
299
  //#region src/variants/media.ts
311
300
  const variantNoscript = variantParentMatcher("noscript", "@media (scripting: none)");
@@ -356,7 +345,6 @@ const variantContrasts = [variantParentMatcher("contrast-more", "@media (prefers
356
345
  const variantMotions = [variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"), variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")];
357
346
  const variantOrientations = [variantParentMatcher("landscape", "@media (orientation: landscape)"), variantParentMatcher("portrait", "@media (orientation: portrait)")];
358
347
  const variantForcedColors = [variantParentMatcher("forced-colors", "@media (forced-colors: active)")];
359
-
360
348
  //#endregion
361
349
  //#region src/variants/misc.ts
362
350
  const variantSelector = {
@@ -483,7 +471,6 @@ const variantImplicitGroup = {
483
471
  }
484
472
  }
485
473
  };
486
-
487
474
  //#endregion
488
475
  //#region src/variants/negative.ts
489
476
  const anchoredNumberRE = /^-?[0-9.]+(?:[a-z]+|%)?$/;
@@ -526,12 +513,12 @@ const variantNegative = {
526
513
  return {
527
514
  matcher: matcher.slice(1),
528
515
  body: (body) => {
529
- if (body.find((v) => v[0] === CONTROL_NO_NEGATIVE)) return;
516
+ if (body.find((v) => v[0] === "$$mini-no-negative")) return;
530
517
  let changed = false;
531
518
  for (const v of body) {
532
519
  const [prop, rawValue, meta] = v;
533
520
  if (typeof rawValue === "object") continue;
534
- if (meta && toArray(meta).includes(CONTROL_NO_NEGATIVE)) continue;
521
+ if (meta && toArray(meta).includes("$$mini-no-negative")) continue;
535
522
  const value = rawValue?.toString();
536
523
  if (!value || value === "0" || ignoreProps.some((i) => i.test(prop))) continue;
537
524
  const nextValue = negateMathFunction(value) ?? negateFunctionBody(value) ?? (anchoredNumberRE.test(value) ? value.replace(numberRE, (i) => i.startsWith("-") ? i.slice(1) : `-${i}`) : void 0);
@@ -545,7 +532,6 @@ const variantNegative = {
545
532
  };
546
533
  }
547
534
  };
548
-
549
535
  //#endregion
550
536
  //#region src/variants/placeholder.ts
551
537
  const placeholderModifier = (input, { theme }) => {
@@ -560,7 +546,6 @@ function hasOpacityValue(body) {
560
546
  if (match && match[1] != null) return h.bracket.percent(match[1]) != null;
561
547
  return false;
562
548
  }
563
-
564
549
  //#endregion
565
550
  //#region src/variants/pseudo.ts
566
551
  function variantPseudoClassesAndElements() {
@@ -585,7 +570,6 @@ function variantTaggedPseudoClasses(options = {}) {
585
570
  });
586
571
  }
587
572
  const variantPartClasses = createPartClasses();
588
-
589
573
  //#endregion
590
574
  //#region src/variants/startingstyle.ts
591
575
  const variantStartingStyle = {
@@ -601,7 +585,6 @@ const variantStartingStyle = {
601
585
  };
602
586
  }
603
587
  };
604
-
605
588
  //#endregion
606
589
  //#region src/variants/supports.ts
607
590
  const variantSupports = {
@@ -626,7 +609,6 @@ const variantSupports = {
626
609
  },
627
610
  multiPass: true
628
611
  };
629
-
630
612
  //#endregion
631
613
  //#region src/variants/default.ts
632
614
  function variants(options) {
@@ -671,6 +653,5 @@ function variants(options) {
671
653
  variantImplicitGroup
672
654
  ].flat();
673
655
  }
674
-
675
656
  //#endregion
676
- export { variantColorsMediaOrClass as A, variantOrientations as C, variantLanguageDirections as D, variantImportant as E, variantChildren as F, variantBreakpoints as I, variantAria as L, variantContainerQuery as M, variantCombinators as N, variantDataAttribute as O, variantSvgCombinators as P, variantTaggedAriaAttributes as R, variantNoscript as S, variantScripting as T, variantVariables as _, variantPseudoClassFunctions as a, variantForcedColors as b, placeholderModifier as c, variantImplicitGroup as d, variantInternalLayer as f, variantTheme as g, variantStickyHover as h, variantPartClasses as i, variantColorsScheme as j, variantTaggedDataAttributes as k, variantNegative as l, variantSelector as m, variantSupports as n, variantPseudoClassesAndElements as o, variantScope as p, variantStartingStyle as r, variantTaggedPseudoClasses as s, variants as t, variantCssLayer as u, variantContrasts as v, variantPrint as w, variantMotions as x, variantCustomMedia as y };
657
+ export { variantColorsMediaOrClass as A, variantOrientations as C, variantLanguageDirections as D, variantImportant as E, variantChildren as F, variantBreakpoints as I, variantAria as L, variantContainerQuery as M, variantCombinators as N, variantDataAttribute as O, variantSvgCombinators as P, variantTaggedAriaAttributes as R, variantNoscript as S, variantScripting as T, variantVariables as _, variantPseudoClassFunctions as a, variantForcedColors as b, placeholderModifier as c, variantImplicitGroup as d, variantInternalLayer as f, variantTheme as g, variantStickyHover as h, variantPartClasses as i, variantColorsScheme as j, variantTaggedDataAttributes as k, variantNegative as l, variantSelector as m, variantSupports as n, variantPseudoClassesAndElements as o, variantScope as p, variantStartingStyle as r, variantTaggedPseudoClasses as s, variants as t, variantCssLayer as u, variantContrasts as v, variantPrint as w, variantMotions as x, variantCustomMedia as y };
@@ -1,3 +1,2 @@
1
- import { A as variantLanguageDirections, B as variantBreakpoints, C as variantForcedColors, D as variantPrint, E as variantOrientations, F as variantColorsScheme, H as variantTaggedAriaAttributes, I as variantContainerQuery, L as variantCombinators, M as variantDataAttribute, N as variantTaggedDataAttributes, O as variantScripting, P as variantColorsMediaOrClass, R as variantSvgCombinators, S as variantCustomMedia, T as variantNoscript, V as variantAria, _ as variantSelector, a as variantSupports, b as variantVariables, c as variantPseudoClassFunctions, d as placeholderModifier, f as variantNegative, g as variantScope, h as variantInternalLayer, j as variants, k as variantImportant, l as variantPseudoClassesAndElements, m as variantImplicitGroup, o as variantStartingStyle, p as variantCssLayer, s as variantPartClasses, u as variantTaggedPseudoClasses, v as variantStickyHover, w as variantMotions, x as variantContrasts, y as variantTheme, z as variantChildren } from "./index-CG7jV-T1.mjs";
2
- import "./rules-C5vHFC6_.mjs";
1
+ import { A as variantLanguageDirections, B as variantBreakpoints, C as variantForcedColors, D as variantPrint, E as variantOrientations, F as variantColorsScheme, H as variantTaggedAriaAttributes, I as variantContainerQuery, L as variantCombinators, M as variantDataAttribute, N as variantTaggedDataAttributes, O as variantScripting, P as variantColorsMediaOrClass, R as variantSvgCombinators, S as variantCustomMedia, T as variantNoscript, V as variantAria, _ as variantSelector, a as variantSupports, b as variantVariables, c as variantPseudoClassFunctions, d as placeholderModifier, f as variantNegative, g as variantScope, h as variantInternalLayer, j as variants, k as variantImportant, l as variantPseudoClassesAndElements, m as variantImplicitGroup, o as variantStartingStyle, p as variantCssLayer, s as variantPartClasses, u as variantTaggedPseudoClasses, v as variantStickyHover, w as variantMotions, x as variantContrasts, y as variantTheme, z as variantChildren } from "./index-Br5yJM3P.mjs";
3
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/dist/variants.mjs CHANGED
@@ -1,3 +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-Dae_1bdw.mjs";
2
-
3
- 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 };
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-BQhcPCjX.mjs";
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.6.6",
4
+ "version": "66.6.7",
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.6.6",
58
- "@unocss/extractor-arbitrary-variants": "66.6.6",
59
- "@unocss/rule-utils": "66.6.6"
57
+ "@unocss/core": "66.6.7",
58
+ "@unocss/extractor-arbitrary-variants": "66.6.7",
59
+ "@unocss/rule-utils": "66.6.7"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown --config-loader unrun",
@@ -1,36 +0,0 @@
1
- //#region rolldown:runtime
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __exportAll = (all, symbols) => {
7
- let target = {};
8
- for (var name in all) {
9
- __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- }
14
- if (symbols) {
15
- __defProp(target, Symbol.toStringTag, { value: "Module" });
16
- }
17
- return target;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") {
21
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
- key = keys[i];
23
- if (!__hasOwnProp.call(to, key) && key !== except) {
24
- __defProp(to, key, {
25
- get: ((k) => from[k]).bind(null, key),
26
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
- });
28
- }
29
- }
30
- }
31
- return to;
32
- };
33
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
34
-
35
- //#endregion
36
- export { __reExport as n, __exportAll as t };