@unocss/preset-wind4 66.2.0 → 66.2.2
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 +11 -0
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.mjs +46 -15
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-wind4.MVTDVRAk.mjs → preset-wind4.BwwuP5Yw.mjs} +11 -3
- package/dist/shared/{preset-wind4.Dz1Ov0R9.mjs → preset-wind4.CYAfjDEV.mjs} +1 -1
- package/dist/shared/{preset-wind4.CooXQ7sc.mjs → preset-wind4.CgvxUQFi.mjs} +1 -1
- package/dist/shared/{preset-wind4.DLBBzcWy.mjs → preset-wind4.dDC8WtZ5.mjs} +1 -1
- package/dist/shared/{preset-wind4.ptargvxM.mjs → preset-wind4.og1tZILK.mjs} +5 -6
- package/dist/shortcuts.mjs +3 -3
- package/dist/utils.d.mts +5 -3
- package/dist/utils.d.ts +5 -3
- package/dist/utils.mjs +2 -2
- package/dist/variants.mjs +2 -2
- package/package.json +4 -4
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.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
import { toArray, definePreset } from '@unocss/core';
|
|
1
|
+
import { uniq, toArray, definePreset } from '@unocss/core';
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
3
|
-
import { k as themeTracking,
|
|
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.
|
|
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.
|
|
9
|
-
import { r as rules } from './shared/preset-wind4.
|
|
8
|
+
import { s as shortcuts } from './shared/preset-wind4.CYAfjDEV.mjs';
|
|
9
|
+
import { r as rules } from './shared/preset-wind4.og1tZILK.mjs';
|
|
10
10
|
import './colors.mjs';
|
|
11
|
-
import './shared/preset-wind4.
|
|
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
|
/*
|
|
@@ -454,16 +468,30 @@ function theme(options) {
|
|
|
454
468
|
layer: "theme",
|
|
455
469
|
getCSS(ctx) {
|
|
456
470
|
const { theme: theme2, generator } = ctx;
|
|
457
|
-
const
|
|
458
|
-
|
|
471
|
+
const safelist = uniq(generator.config.safelist.flatMap((s) => typeof s === "function" ? s(ctx) : s));
|
|
472
|
+
const { mode, process } = options.preflights.theme;
|
|
473
|
+
if (mode === false) {
|
|
459
474
|
return void 0;
|
|
460
475
|
}
|
|
476
|
+
if (safelist.length > 0) {
|
|
477
|
+
for (const s of safelist) {
|
|
478
|
+
const [key, ...prop] = s.trim().split(":");
|
|
479
|
+
if (key in theme2 && prop.length <= 1) {
|
|
480
|
+
const props = prop.length === 0 ? ["DEFAULT"] : prop[0].split("-");
|
|
481
|
+
const v = getThemeByKey(theme2, key, props);
|
|
482
|
+
if (typeof v === "string") {
|
|
483
|
+
themeTracking(key, props);
|
|
484
|
+
detectThemeValue(v, theme2);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
461
489
|
let deps;
|
|
462
490
|
const generateCSS = (deps2) => {
|
|
463
|
-
if (
|
|
491
|
+
if (process) {
|
|
464
492
|
for (const utility of deps2) {
|
|
465
|
-
for (const
|
|
466
|
-
|
|
493
|
+
for (const p of toArray(process)) {
|
|
494
|
+
p(utility, ctx);
|
|
467
495
|
}
|
|
468
496
|
}
|
|
469
497
|
}
|
|
@@ -477,13 +505,13 @@ function theme(options) {
|
|
|
477
505
|
${depCSS}
|
|
478
506
|
}`, generator.config.envMode === "dev");
|
|
479
507
|
};
|
|
480
|
-
if (
|
|
508
|
+
if (mode === "on-demand") {
|
|
481
509
|
if (trackedTheme.size === 0)
|
|
482
510
|
return void 0;
|
|
483
511
|
deps = Array.from(trackedTheme).map((k) => {
|
|
484
512
|
const [key, prop] = k.split(":");
|
|
485
513
|
const v = getThemeByKey(theme2, key, prop.split("-"));
|
|
486
|
-
if (v) {
|
|
514
|
+
if (typeof v === "string") {
|
|
487
515
|
return [`--${key}${`${key === "spacing" && prop === "DEFAULT" ? "" : `-${prop}`}`}`, v];
|
|
488
516
|
}
|
|
489
517
|
return void 0;
|
|
@@ -500,7 +528,8 @@ ${depCSS}
|
|
|
500
528
|
const preflights = (options) => {
|
|
501
529
|
return [
|
|
502
530
|
reset(options),
|
|
503
|
-
theme(options)
|
|
531
|
+
theme(options),
|
|
532
|
+
properties()
|
|
504
533
|
].filter(Boolean);
|
|
505
534
|
};
|
|
506
535
|
|
|
@@ -546,9 +575,11 @@ const presetWind4 = definePreset((options = {}) => {
|
|
|
546
575
|
options,
|
|
547
576
|
configResolved() {
|
|
548
577
|
trackedTheme.clear();
|
|
578
|
+
trackedProperties.clear();
|
|
549
579
|
},
|
|
550
580
|
meta: {
|
|
551
|
-
themeDeps: trackedTheme
|
|
581
|
+
themeDeps: trackedTheme,
|
|
582
|
+
propertyDeps: trackedProperties
|
|
552
583
|
}
|
|
553
584
|
};
|
|
554
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.
|
|
2
|
-
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.
|
|
3
|
-
import './shared/preset-wind4.
|
|
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.og1tZILK.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';
|
|
@@ -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) {
|
|
@@ -742,12 +744,18 @@ function detectThemeValue(value, theme) {
|
|
|
742
744
|
if (variable) {
|
|
743
745
|
const [key, ...path] = variable.split("-");
|
|
744
746
|
const themeValue = getThemeByKey(theme, key, path);
|
|
745
|
-
if (themeValue
|
|
747
|
+
if (typeof themeValue === "string") {
|
|
746
748
|
themeTracking(key, path);
|
|
747
749
|
detectThemeValue(themeValue, theme);
|
|
748
750
|
}
|
|
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 {
|
|
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,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,
|
|
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.
|
|
2
|
+
import { r as resolveBreakpoints } from './preset-wind4.BwwuP5Yw.mjs';
|
|
3
3
|
|
|
4
4
|
const containerParent = [
|
|
5
5
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as globalKeywords, b as h,
|
|
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
2
|
import { notNull } from '@unocss/core';
|
|
3
|
-
import { a as container, c as containerParent } from './preset-wind4.
|
|
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 = {
|
|
@@ -1283,8 +1283,8 @@ const rings = [
|
|
|
1283
1283
|
[/^inset-ring-(.+)$/, colorResolver(`--un-inset-ring-color`, "inset-ring"), { autocomplete: "inset-ring-$colors" }],
|
|
1284
1284
|
[/^inset-ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-inset-ring-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "inset-ring-(op|opacity)-<percent>" }],
|
|
1285
1285
|
// offset
|
|
1286
|
-
[/^ring-offset(?:-(.+))?$/, ([, d]) => {
|
|
1287
|
-
const v = h.bracket.px(d || "1");
|
|
1286
|
+
[/^ring-offset(?:-(?:width-|size-)?(.+))?$/, ([, d]) => {
|
|
1287
|
+
const v = h.bracket.cssvar.px(d || "1");
|
|
1288
1288
|
if (v != null) {
|
|
1289
1289
|
return {
|
|
1290
1290
|
"--un-ring-offset-width": v,
|
|
@@ -1294,7 +1294,6 @@ const rings = [
|
|
|
1294
1294
|
}, { autocomplete: "ring-offset-$colors" }],
|
|
1295
1295
|
[/^ring-offset-(.+)$/, colorResolver(`--un-ring-offset-color`, "ring-offset"), { autocomplete: "ring-offset-$colors" }],
|
|
1296
1296
|
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-offset-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-offset-(op|opacity)-<percent>" }],
|
|
1297
|
-
[/^ring-offset-(?:width-|size-)?(.+)$/, ([, d]) => ({ "--un-ring-offset-width": h.bracket.cssvar.px(d) })],
|
|
1298
1297
|
// style
|
|
1299
1298
|
["ring-inset", { "--un-ring-inset": "inset" }]
|
|
1300
1299
|
];
|
|
@@ -2431,7 +2430,7 @@ const cssProperty = [
|
|
|
2431
2430
|
return;
|
|
2432
2431
|
const [prop, ...rest] = body.split(":");
|
|
2433
2432
|
const value = rest.join(":");
|
|
2434
|
-
if (!isURI(body) && /^[
|
|
2433
|
+
if (!isURI(body) && /^[\w-]+$/.test(prop) && isValidCSSBody(value)) {
|
|
2435
2434
|
const parsed = h.bracket(`[${value}]`);
|
|
2436
2435
|
if (parsed)
|
|
2437
2436
|
return { [prop]: parsed };
|
package/dist/shortcuts.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as shortcuts } from './shared/preset-wind4.
|
|
2
|
-
import './shared/preset-wind4.
|
|
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.
|
|
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" | "
|
|
60
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
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">;
|
|
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" | "
|
|
60
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
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">;
|
|
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.
|
|
2
|
-
export { C as CONTROL_NO_NEGATIVE, P as PRESET_NAME, S as SpecialColorKey,
|
|
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.
|
|
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.
|
|
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.
|
|
4
|
+
"version": "66.2.2",
|
|
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.
|
|
78
|
-
"@unocss/
|
|
79
|
-
"@unocss/
|
|
77
|
+
"@unocss/core": "66.2.2",
|
|
78
|
+
"@unocss/extractor-arbitrary-variants": "66.2.2",
|
|
79
|
+
"@unocss/rule-utils": "66.2.2"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "unbuild",
|