@unocss/preset-wind4 66.2.1 → 66.2.3

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @unocss/preset-wind4
2
+
3
+ Tailwind 4 compact preset for [UnoCSS](https://github.com/unocss/unocss).
4
+
5
+ ## Documentation
6
+
7
+ Please refer to the [documentation](https://unocss.dev/presets/wind4).
8
+
9
+ ## License
10
+
11
+ MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)
package/dist/index.mjs CHANGED
@@ -1,14 +1,28 @@
1
1
  import { uniq, toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { k as themeTracking, K as compressCSS, w as getThemeByKey, m as detectThemeValue, t as trackedTheme, g as globalKeywords, P as PRESET_NAME } from './shared/preset-wind4.CyHpIC99.mjs';
3
+ import { n as trackedProperties, k as themeTracking, M as compressCSS, z as getThemeByKey, m as detectThemeValue, t as trackedTheme, g as globalKeywords, P as PRESET_NAME } from './shared/preset-wind4.BwwuP5Yw.mjs';
4
4
  import { alphaPlaceholdersRE } from '@unocss/rule-utils';
5
5
  import { postprocessors } from './postprocess.mjs';
6
- import { k as variants } from './shared/preset-wind4.DhxVnGgJ.mjs';
6
+ import { k as variants } from './shared/preset-wind4.CgvxUQFi.mjs';
7
7
  import { theme as theme$1 } from './theme.mjs';
8
- import { s as shortcuts } from './shared/preset-wind4.BA7wPzCb.mjs';
9
- import { r as rules } from './shared/preset-wind4.DqLC7Uzl.mjs';
8
+ import { s as shortcuts } from './shared/preset-wind4.CYAfjDEV.mjs';
9
+ import { r as rules } from './shared/preset-wind4.BgkAsChl.mjs';
10
10
  import './colors.mjs';
11
- import './shared/preset-wind4.CsstzKnM.mjs';
11
+ import './shared/preset-wind4.dDC8WtZ5.mjs';
12
+
13
+ function properties() {
14
+ return {
15
+ getCSS: () => {
16
+ if (trackedProperties.size > 0) {
17
+ const parent = `@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`;
18
+ const root = `*, ::before, ::after, ::backdrop`;
19
+ const css = Array.from(trackedProperties.entries()).map(([property, value]) => `${property}:${value};`).join("");
20
+ return `${parent}{${root}{${css}}}`;
21
+ }
22
+ },
23
+ layer: "properties"
24
+ };
25
+ }
12
26
 
13
27
  const resetCSS = `
14
28
  /*
@@ -514,7 +528,8 @@ ${depCSS}
514
528
  const preflights = (options) => {
515
529
  return [
516
530
  reset(options),
517
- theme(options)
531
+ theme(options),
532
+ properties()
518
533
  ].filter(Boolean);
519
534
  };
520
535
 
@@ -560,9 +575,11 @@ const presetWind4 = definePreset((options = {}) => {
560
575
  options,
561
576
  configResolved() {
562
577
  trackedTheme.clear();
578
+ trackedProperties.clear();
563
579
  },
564
580
  meta: {
565
- themeDeps: trackedTheme
581
+ themeDeps: trackedTheme,
582
+ propertyDeps: trackedProperties
566
583
  }
567
584
  };
568
585
  });
package/dist/rules.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { d as accents, am as accessibility, H as alignments, a as animations, c as appearance, _ as appearances, U as aspectRatio, aj as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, S as boxShadows, N as boxSizing, a7 as breaks, e as carets, n as colorScheme, p as columns, a0 as contains, a5 as contentVisibility, a6 as contents, aC as cssProperty, aB as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, an as fieldSizing, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, az as fontVariantNumeric, au as fonts, z as gaps, A as grids, j as handlerBorderStyle, ad as hyphens, i as imageRenderings, K as insets, ah as isolations, F as justifies, C as lineClamps, l as listStyle, W as margins, ak as mixBlendModes, Y as notLastChildSelector, ai as objectPositions, k as opacity, G as orders, o as outline, B as overflows, f as overscrolls, V as paddings, D as placeholders, I as placements, a1 as pointerEvents, E as positions, O as questionMark, a2 as resizes, P as rings, r as rules, ag as screenReadersAccess, s as scrollBehaviors, Q as scrolls, R as shadowProperties, T as sizes, X as spaces, aA as splitShorthand, ao as svgUtilities, av as tabSizes, ap as tables, t as textAligns, q as textDecorations, aw as textIndents, a9 as textOverflows, ay as textShadows, ax as textStrokes, aa as textTransforms, a8 as textWraps, aq as touchActions, ar as transformBase, as as transforms, at as transitions, a3 as userSelects, v as verticalAligns, aD as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.DqLC7Uzl.mjs';
2
- export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.CsstzKnM.mjs';
3
- import './shared/preset-wind4.CyHpIC99.mjs';
1
+ export { d as accents, am as accessibility, H as alignments, a as animations, c as appearance, _ as appearances, U as aspectRatio, aj as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, S as boxShadows, N as boxSizing, a7 as breaks, e as carets, n as colorScheme, p as columns, a0 as contains, a5 as contentVisibility, a6 as contents, aC as cssProperty, aB as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, an as fieldSizing, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, az as fontVariantNumeric, au as fonts, z as gaps, A as grids, j as handlerBorderStyle, ad as hyphens, i as imageRenderings, K as insets, ah as isolations, F as justifies, C as lineClamps, l as listStyle, W as margins, ak as mixBlendModes, Y as notLastChildSelector, ai as objectPositions, k as opacity, G as orders, o as outline, B as overflows, f as overscrolls, V as paddings, D as placeholders, I as placements, a1 as pointerEvents, E as positions, O as questionMark, a2 as resizes, P as rings, r as rules, ag as screenReadersAccess, s as scrollBehaviors, Q as scrolls, R as shadowProperties, T as sizes, X as spaces, aA as splitShorthand, ao as svgUtilities, av as tabSizes, ap as tables, t as textAligns, q as textDecorations, aw as textIndents, a9 as textOverflows, ay as textShadows, ax as textStrokes, aa as textTransforms, a8 as textWraps, aq as touchActions, ar as transformBase, as as transforms, at as transitions, a3 as userSelects, v as verticalAligns, aD as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.BgkAsChl.mjs';
2
+ export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.dDC8WtZ5.mjs';
3
+ import './shared/preset-wind4.BwwuP5Yw.mjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/rule-utils';
@@ -1,6 +1,6 @@
1
- import { g as globalKeywords, b as h, E as makeGlobalStaticRules, p as positionMap, q as parseColor, S as SpecialColorKey, l as generateThemeVariable, F as defineProperty, k as themeTracking, m as detectThemeValue, z as colorResolver, G as isCSSMathFn, d as directionMap, B as hasParseableColor, c as cornerMap, y as colorCSSGenerator, H as isSize, o as directionSize, n as numberResolver, A as colorableShadows, i as insetMap, J as hyphenate, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, L as splitComma, e as xyzArray, M as bracketTypeRe } from './preset-wind4.CyHpIC99.mjs';
2
- import { notNull } from '@unocss/core';
3
- import { a as container, c as containerParent } from './preset-wind4.CsstzKnM.mjs';
1
+ import { g as globalKeywords, b as h, G as makeGlobalStaticRules, p as positionMap, w as parseColor, S as SpecialColorKey, l as generateThemeVariable, H as defineProperty, k as themeTracking, m as detectThemeValue, B as colorResolver, I as isCSSMathFn, d as directionMap, E as hasParseableColor, c as cornerMap, A as colorCSSGenerator, J as isSize, s as directionSize, q as numberResolver, D as colorableShadows, i as insetMap, L as hyphenate, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, N as splitComma, e as xyzArray, O as bracketTypeRe } from './preset-wind4.BwwuP5Yw.mjs';
2
+ import { symbols, notNull } from '@unocss/core';
3
+ import { a as container, c as containerParent } from './preset-wind4.dDC8WtZ5.mjs';
4
4
  import { getStringComponent } from '@unocss/rule-utils';
5
5
 
6
6
  const verticalAlignAlias = {
@@ -279,21 +279,21 @@ const outline = [
279
279
  [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
280
280
  ["outline-offset-none", { "outline-offset": "0" }],
281
281
  // style
282
- [/^outline$/, function* () {
283
- yield {
282
+ ["outline", [
283
+ {
284
284
  "outline-style": "var(--un-outline-style)",
285
285
  "outline-width": "1px"
286
- };
287
- yield defineProperty("--un-outline-style", { initialValue: "solid" });
288
- }],
289
- [/^outline-hidden$/, function* (_, { symbols }) {
290
- yield { "outline-style": "none" };
291
- yield {
286
+ },
287
+ defineProperty("--un-outline-style", { initialValue: "solid" })
288
+ ]],
289
+ ["outline-hidden", [
290
+ { "outline-style": "none" },
291
+ {
292
292
  [symbols.parent]: `@media (forced-colors: active)`,
293
293
  "outline": `2px solid transparent`,
294
294
  "outline-offset": `2px`
295
- };
296
- }],
295
+ }
296
+ ]],
297
297
  ["outline-none", { "--un-outline-style": "none", "outline-style": "none" }],
298
298
  ...["auto", "dashed", "dotted", "double", "solid", "groove", "ridge", "inset", "outset", ...globalKeywords].map((v) => [`outline-${v}`, { "--un-outline-style": v, "outline-style": v }])
299
299
  ];
@@ -1299,19 +1299,20 @@ const rings = [
1299
1299
  ];
1300
1300
 
1301
1301
  const scrolls = [
1302
- // snap type
1303
- [/^snap-(x|y|both)$/, function* ([, d]) {
1304
- yield {
1305
- "scroll-snap-type": `${d} var(--un-scroll-snap-strictness)`
1306
- };
1307
- yield defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" });
1308
- }, { autocomplete: "snap-(x|y|both)" }],
1309
- [/^snap-(mandatory|proximity)$/, function* ([, d]) {
1310
- yield {
1311
- "--un-scroll-snap-strictness": d
1312
- };
1313
- yield defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" });
1314
- }, { autocomplete: "snap-(mandatory|proximity)" }],
1302
+ ...["x", "y", "both"].map((d) => [
1303
+ `snap-${d}`,
1304
+ [
1305
+ { "scroll-snap-type": `${d} var(--un-scroll-snap-strictness)` },
1306
+ defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" })
1307
+ ]
1308
+ ]),
1309
+ ...["mandatory", "proximity"].map((d) => [
1310
+ `snap-${d}`,
1311
+ [
1312
+ { "--un-scroll-snap-strictness": d },
1313
+ defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" })
1314
+ ]
1315
+ ]),
1315
1316
  ["snap-none", { "scroll-snap-type": "none" }],
1316
1317
  // snap align
1317
1318
  ["snap-start", { "scroll-snap-align": "start" }],
@@ -702,8 +702,10 @@ function defineProperty(property, options = {}) {
702
702
  syntax: JSON.stringify(syntax),
703
703
  inherits: inherits ? "true" : "false"
704
704
  };
705
- if (initialValue != null)
705
+ if (initialValue != null) {
706
706
  value["initial-value"] = initialValue;
707
+ propertyTracking(property, String(initialValue));
708
+ }
707
709
  return value;
708
710
  }
709
711
  function isCSSMathFn(value) {
@@ -749,5 +751,11 @@ function detectThemeValue(value, theme) {
749
751
  }
750
752
  }
751
753
  }
754
+ const trackedProperties = /* @__PURE__ */ new Map();
755
+ function propertyTracking(property, value) {
756
+ if (!trackedProperties.has(property)) {
757
+ trackedProperties.set(property, value);
758
+ }
759
+ }
752
760
 
753
- export { colorableShadows as A, hasParseableColor as B, CONTROL_NO_NEGATIVE as C, resolveVerticalBreakpoints as D, makeGlobalStaticRules as E, defineProperty as F, isCSSMathFn as G, isSize as H, camelize as I, hyphenate as J, compressCSS as K, splitComma as L, bracketTypeRe as M, PRESET_NAME as P, SpecialColorKey as S, remRE as a, h as b, cornerMap as c, directionMap as d, xyzArray as e, cssMathFnRE as f, globalKeywords as g, handler as h, insetMap as i, cssVarFnRE as j, themeTracking as k, generateThemeVariable as l, detectThemeValue as m, numberResolver as n, directionSize as o, positionMap as p, parseColor as q, resolveBreakpoints as r, splitShorthand as s, trackedTheme as t, parseThemeColor as u, valueHandlers as v, getThemeByKey as w, xyzMap as x, colorCSSGenerator as y, colorResolver as z };
761
+ export { colorCSSGenerator as A, colorResolver as B, CONTROL_NO_NEGATIVE as C, colorableShadows as D, hasParseableColor as E, resolveVerticalBreakpoints as F, makeGlobalStaticRules as G, defineProperty as H, isCSSMathFn as I, isSize as J, camelize as K, hyphenate as L, compressCSS as M, splitComma as N, bracketTypeRe as O, PRESET_NAME as P, SpecialColorKey as S, remRE as a, h as b, cornerMap as c, directionMap as d, xyzArray as e, cssMathFnRE as f, globalKeywords as g, handler as h, insetMap as i, cssVarFnRE as j, themeTracking as k, generateThemeVariable as l, detectThemeValue as m, trackedProperties as n, propertyTracking as o, positionMap as p, numberResolver as q, resolveBreakpoints as r, directionSize as s, trackedTheme as t, splitShorthand as u, valueHandlers as v, parseColor as w, xyzMap as x, parseThemeColor as y, getThemeByKey as z };
@@ -1,4 +1,4 @@
1
- import { b as containerShortcuts } from './preset-wind4.CsstzKnM.mjs';
1
+ import { b as containerShortcuts } from './preset-wind4.dDC8WtZ5.mjs';
2
2
 
3
3
  const shortcuts = [
4
4
  ...containerShortcuts
@@ -1,5 +1,5 @@
1
1
  import { variantGetParameter, calcMaxWidthBySize, variantMatcher, variantGetBracket, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent, createPartClasses, createPseudoClassesAndElements, createPseudoClassFunctions, createTaggedPseudoClasses } from '@unocss/rule-utils';
2
- import { b as h, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, f as cssMathFnRE, j as cssVarFnRE, B as hasParseableColor } from './preset-wind4.CyHpIC99.mjs';
2
+ import { b as h, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, f as cssMathFnRE, j as cssVarFnRE, E as hasParseableColor } from './preset-wind4.BwwuP5Yw.mjs';
3
3
  import { toArray } from '@unocss/core';
4
4
 
5
5
  const variantAria = {
@@ -1,5 +1,5 @@
1
1
  import { isString } from '@unocss/core';
2
- import { r as resolveBreakpoints } from './preset-wind4.CyHpIC99.mjs';
2
+ import { r as resolveBreakpoints } from './preset-wind4.BwwuP5Yw.mjs';
3
3
 
4
4
  const containerParent = [
5
5
  [/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
@@ -1,5 +1,5 @@
1
- export { s as shortcuts } from './shared/preset-wind4.BA7wPzCb.mjs';
2
- import './shared/preset-wind4.CsstzKnM.mjs';
1
+ export { s as shortcuts } from './shared/preset-wind4.CYAfjDEV.mjs';
2
+ import './shared/preset-wind4.dDC8WtZ5.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-wind4.CyHpIC99.mjs';
4
+ import './shared/preset-wind4.BwwuP5Yw.mjs';
5
5
  import '@unocss/rule-utils';
package/dist/utils.d.mts CHANGED
@@ -56,8 +56,8 @@ declare namespace handlers {
56
56
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfFamily as bracketOfFamily, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfNumber as bracketOfNumber, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
57
57
  }
58
58
 
59
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
59
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
61
61
 
62
62
  declare const directionMap: Record<string, string[]>;
63
63
  declare const insetMap: Record<string, string[]>;
@@ -80,6 +80,8 @@ declare const trackedTheme: Set<string>;
80
80
  declare function themeTracking(key: string, props?: Arrayable<string>): void;
81
81
  declare function generateThemeVariable(key: string, props: Arrayable<string>): string;
82
82
  declare function detectThemeValue(value: string, theme: Theme): void;
83
+ declare const trackedProperties: Map<string, string>;
84
+ declare function propertyTracking(property: string, value: string): void;
83
85
 
84
86
  declare function createRemToPxProcessor(base?: number): (utilObjectOrEntry: UtilObject | CSSEntry) => void;
85
87
 
@@ -153,4 +155,4 @@ declare function camelize(str: string): string;
153
155
  declare function hyphenate(str: string): string;
154
156
  declare function compressCSS(css: string, isDev?: boolean): string;
155
157
 
156
- 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, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, themeTracking, trackedTheme, handlers as valueHandlers, xyzArray, xyzMap };
158
+ 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 as valueHandlers, xyzArray, xyzMap };
package/dist/utils.d.ts CHANGED
@@ -56,8 +56,8 @@ declare namespace handlers {
56
56
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfFamily as bracketOfFamily, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfNumber as bracketOfNumber, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
57
57
  }
58
58
 
59
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
59
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
61
61
 
62
62
  declare const directionMap: Record<string, string[]>;
63
63
  declare const insetMap: Record<string, string[]>;
@@ -80,6 +80,8 @@ declare const trackedTheme: Set<string>;
80
80
  declare function themeTracking(key: string, props?: Arrayable<string>): void;
81
81
  declare function generateThemeVariable(key: string, props: Arrayable<string>): string;
82
82
  declare function detectThemeValue(value: string, theme: Theme): void;
83
+ declare const trackedProperties: Map<string, string>;
84
+ declare function propertyTracking(property: string, value: string): void;
83
85
 
84
86
  declare function createRemToPxProcessor(base?: number): (utilObjectOrEntry: UtilObject | CSSEntry) => void;
85
87
 
@@ -153,4 +155,4 @@ declare function camelize(str: string): string;
153
155
  declare function hyphenate(str: string): string;
154
156
  declare function compressCSS(css: string, isDev?: boolean): string;
155
157
 
156
- 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, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, themeTracking, trackedTheme, handlers as valueHandlers, xyzArray, xyzMap };
158
+ 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 as valueHandlers, xyzArray, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as remRE } from './shared/preset-wind4.CyHpIC99.mjs';
2
- export { C as CONTROL_NO_NEGATIVE, P as PRESET_NAME, S as SpecialColorKey, I as camelize, y as colorCSSGenerator, z as colorResolver, A as colorableShadows, K as compressCSS, c as cornerMap, f as cssMathFnRE, j as cssVarFnRE, F as defineProperty, m as detectThemeValue, d as directionMap, o as directionSize, l as generateThemeVariable, w as getThemeByKey, g as globalKeywords, b as h, h as handler, B as hasParseableColor, J as hyphenate, i as insetMap, G as isCSSMathFn, H as isSize, E as makeGlobalStaticRules, n as numberResolver, q as parseColor, u as parseThemeColor, p as positionMap, r as resolveBreakpoints, D as resolveVerticalBreakpoints, s as splitShorthand, k as themeTracking, t as trackedTheme, v as valueHandlers, e as xyzArray, x as xyzMap } from './shared/preset-wind4.CyHpIC99.mjs';
1
+ import { a as remRE } from './shared/preset-wind4.BwwuP5Yw.mjs';
2
+ export { C as CONTROL_NO_NEGATIVE, P as PRESET_NAME, S as SpecialColorKey, K as camelize, A as colorCSSGenerator, B as colorResolver, D as colorableShadows, M as compressCSS, c as cornerMap, f as cssMathFnRE, j as cssVarFnRE, H as defineProperty, m as detectThemeValue, d as directionMap, s as directionSize, l as generateThemeVariable, z as getThemeByKey, g as globalKeywords, b as h, h as handler, E as hasParseableColor, L as hyphenate, i as insetMap, I as isCSSMathFn, J as isSize, G as makeGlobalStaticRules, q as numberResolver, w as parseColor, y as parseThemeColor, p as positionMap, o as propertyTracking, r as resolveBreakpoints, F as resolveVerticalBreakpoints, u as splitShorthand, k as themeTracking, n as trackedProperties, t as trackedTheme, v as valueHandlers, e as xyzArray, x as xyzMap } from './shared/preset-wind4.BwwuP5Yw.mjs';
3
3
  export * from '@unocss/rule-utils';
4
4
  import '@unocss/core';
5
5
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E as placeholderModifier, v as variantAria, b as variantBreakpoints, c as variantChildren, g as variantColorsMediaOrClass, h as variantColorsScheme, d as variantCombinators, f as variantContainerQuery, r as variantContrasts, x as variantCssLayer, q as variantCustomMedia, i as variantDataAttribute, u as variantForcedColors, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, D as variantNegative, n as variantNoscript, t as variantOrientations, I as variantPartClasses, p as variantPrint, G as variantPseudoClassFunctions, F as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, J as variantStartingStyle, C as variantStickyHover, K as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, H as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.DhxVnGgJ.mjs';
1
+ export { E as placeholderModifier, v as variantAria, b as variantBreakpoints, c as variantChildren, g as variantColorsMediaOrClass, h as variantColorsScheme, d as variantCombinators, f as variantContainerQuery, r as variantContrasts, x as variantCssLayer, q as variantCustomMedia, i as variantDataAttribute, u as variantForcedColors, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, D as variantNegative, n as variantNoscript, t as variantOrientations, I as variantPartClasses, p as variantPrint, G as variantPseudoClassFunctions, F as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, J as variantStartingStyle, C as variantStickyHover, K as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, H as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.CgvxUQFi.mjs';
2
2
  import '@unocss/rule-utils';
3
- import './shared/preset-wind4.CyHpIC99.mjs';
3
+ import './shared/preset-wind4.BwwuP5Yw.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind4",
3
3
  "type": "module",
4
- "version": "66.2.1",
4
+ "version": "66.2.3",
5
5
  "description": "Tailwind 4 compact preset for UnoCSS",
6
6
  "authors": [
7
7
  {
@@ -74,9 +74,9 @@
74
74
  "dist"
75
75
  ],
76
76
  "dependencies": {
77
- "@unocss/core": "66.2.1",
78
- "@unocss/extractor-arbitrary-variants": "66.2.1",
79
- "@unocss/rule-utils": "66.2.1"
77
+ "@unocss/core": "66.2.3",
78
+ "@unocss/extractor-arbitrary-variants": "66.2.3",
79
+ "@unocss/rule-utils": "66.2.3"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "unbuild",