@unocss/preset-wind4 66.5.4 → 66.5.6
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 +7 -7
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-wind4.Dod9E7aK.mjs → preset-wind4.C-MsPbAY.mjs} +49 -22
- package/dist/shared/{preset-wind4.D3c8PG9n.mjs → preset-wind4.DA4d_z8I.mjs} +1 -1
- package/dist/shared/{preset-wind4.Fo7dLYPT.mjs → preset-wind4.DN2qUOj7.mjs} +4 -4
- package/dist/shared/{preset-wind4.B24tMTwU.mjs → preset-wind4.Db9rchQp.mjs} +1 -1
- package/dist/shared/{preset-wind4.C9-nkhy3.mjs → preset-wind4.DbFMuN4F.mjs} +1 -1
- package/dist/shortcuts.mjs +3 -3
- package/dist/utils.d.mts +9 -9
- package/dist/utils.d.ts +9 -9
- package/dist/utils.mjs +2 -2
- package/dist/variants.mjs +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { uniq, toArray, definePreset } from '@unocss/core';
|
|
1
|
+
import { uniq, toArray, escapeSelector, definePreset } from '@unocss/core';
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
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.
|
|
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.C-MsPbAY.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.Db9rchQp.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.DA4d_z8I.mjs';
|
|
9
|
+
import { r as rules } from './shared/preset-wind4.DN2qUOj7.mjs';
|
|
10
10
|
import './colors.mjs';
|
|
11
|
-
import './shared/preset-wind4.
|
|
11
|
+
import './shared/preset-wind4.DbFMuN4F.mjs';
|
|
12
12
|
|
|
13
13
|
function property(options) {
|
|
14
14
|
if (options.preflights?.property === false)
|
|
@@ -508,7 +508,7 @@ function theme(options) {
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
const resolvedDeps = deps2.map(([key, value]) => key && value ? `${key}: ${value};` : void 0).filter(Boolean);
|
|
511
|
+
const resolvedDeps = deps2.map(([key, value]) => key && value ? `${escapeSelector(key)}: ${value};` : void 0).filter(Boolean);
|
|
512
512
|
if (resolvedDeps.length === 0) {
|
|
513
513
|
return void 0;
|
|
514
514
|
}
|
package/dist/rules.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as accents, an as accessibility, I as alignments, a as animations, c as appearance, $ as appearances, V as aspectRatio, ak as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, T as boxShadows, O as boxSizing, a8 as breaks, e as carets, n as colorScheme, p as columns, a1 as contains, a6 as contentVisibility, a7 as contents, aD as cssProperty, aC as cssVariables, a0 as cursors, _ as displays, u as divides, am as dynamicViewportHeight, ao as fieldSizing, x as filters, y as flex, K as flexGridJustifiesAlignments, M as floats, ad as fontSmoothings, ac as fontStyles, aA as fontVariantNumeric, av as fonts, z as gaps, A as grids, j as handlerBorderStyle, ae as hyphens, i as imageRenderings, L as insets, ai as isolations, G as justifies, C as lineClamps, l as listStyle, X as margins, D as masks, al as mixBlendModes, Z as notLastChildSelectorVariant, aj as objectPositions, k as opacity, H as orders, o as outline, B as overflows, f as overscrolls, W as paddings, E as placeholders, J as placements, a2 as pointerEvents, F as positions, P as questionMark, a3 as resizes, Q as rings, r as rules, ah as screenReadersAccess, s as scrollBehaviors, R as scrolls, S as shadowProperties, U as sizes, Y as spaces, aB as splitShorthand, ap as svgUtilities, aw as tabSizes, aq as tables, t as textAligns, q as textDecorations, ax as textIndents, aa as textOverflows, az as textShadows, ay as textStrokes, ab as textTransforms, a9 as textWraps, ar as touchActions, as as transformBase, at as transforms, au as transitions, a4 as userSelects, v as verticalAligns, aE as viewTransition, a5 as whitespaces, w as willChange, af as writingModes, ag as writingOrientations, N 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, an as accessibility, I as alignments, a as animations, c as appearance, $ as appearances, V as aspectRatio, ak as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, T as boxShadows, O as boxSizing, a8 as breaks, e as carets, n as colorScheme, p as columns, a1 as contains, a6 as contentVisibility, a7 as contents, aD as cssProperty, aC as cssVariables, a0 as cursors, _ as displays, u as divides, am as dynamicViewportHeight, ao as fieldSizing, x as filters, y as flex, K as flexGridJustifiesAlignments, M as floats, ad as fontSmoothings, ac as fontStyles, aA as fontVariantNumeric, av as fonts, z as gaps, A as grids, j as handlerBorderStyle, ae as hyphens, i as imageRenderings, L as insets, ai as isolations, G as justifies, C as lineClamps, l as listStyle, X as margins, D as masks, al as mixBlendModes, Z as notLastChildSelectorVariant, aj as objectPositions, k as opacity, H as orders, o as outline, B as overflows, f as overscrolls, W as paddings, E as placeholders, J as placements, a2 as pointerEvents, F as positions, P as questionMark, a3 as resizes, Q as rings, r as rules, ah as screenReadersAccess, s as scrollBehaviors, R as scrolls, S as shadowProperties, U as sizes, Y as spaces, aB as splitShorthand, ap as svgUtilities, aw as tabSizes, aq as tables, t as textAligns, q as textDecorations, ax as textIndents, aa as textOverflows, az as textShadows, ay as textStrokes, ab as textTransforms, a9 as textWraps, ar as touchActions, as as transformBase, at as transforms, au as transitions, a4 as userSelects, v as verticalAligns, aE as viewTransition, a5 as whitespaces, w as willChange, af as writingModes, ag as writingOrientations, N as zIndexes } from './shared/preset-wind4.DN2qUOj7.mjs';
|
|
2
|
+
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.DbFMuN4F.mjs';
|
|
3
|
+
import './shared/preset-wind4.C-MsPbAY.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
import '@unocss/rule-utils';
|
|
@@ -272,7 +272,18 @@ function fraction(str) {
|
|
|
272
272
|
return `${round(num * 100)}%`;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function processThemeVariable(name, key, paths, theme) {
|
|
276
|
+
const valOrObj = getThemeByKey(theme, key, paths);
|
|
277
|
+
const hasDefault = typeof valOrObj === "object" && "DEFAULT" in valOrObj;
|
|
278
|
+
if (hasDefault)
|
|
279
|
+
paths.push("DEFAULT");
|
|
280
|
+
const val = hasDefault ? valOrObj.DEFAULT : valOrObj;
|
|
281
|
+
const varKey = hasDefault && key !== "spacing" ? `${name}.DEFAULT` : name;
|
|
282
|
+
if (val != null)
|
|
283
|
+
themeTracking(key, paths.length ? paths : void 0);
|
|
284
|
+
return { val, varKey };
|
|
285
|
+
}
|
|
286
|
+
function bracketWithType(str, requiredType, theme) {
|
|
276
287
|
if (str && str.startsWith("[") && str.endsWith("]")) {
|
|
277
288
|
let base;
|
|
278
289
|
let hintedType;
|
|
@@ -292,8 +303,25 @@ function bracketWithType(str, requiredType) {
|
|
|
292
303
|
if (base === '=""')
|
|
293
304
|
return;
|
|
294
305
|
if (base.startsWith("--")) {
|
|
295
|
-
const
|
|
296
|
-
|
|
306
|
+
const calcMatch = base.match(/^--([\w.-]+)\(([^)]+)\)$/);
|
|
307
|
+
if (calcMatch != null && theme) {
|
|
308
|
+
const [, name, factor] = calcMatch;
|
|
309
|
+
const [key, ...paths] = name.split(".");
|
|
310
|
+
const { val, varKey } = processThemeVariable(name, key, paths, theme);
|
|
311
|
+
if (val != null)
|
|
312
|
+
base = `calc(var(--${escapeSelector(varKey.replaceAll(".", "-"))}) * ${factor})`;
|
|
313
|
+
} else {
|
|
314
|
+
const [name, defaultValue] = base.slice(2).split(",");
|
|
315
|
+
const suffix = defaultValue ? `, ${defaultValue}` : "";
|
|
316
|
+
const escapedName = escapeSelector(name);
|
|
317
|
+
if (theme) {
|
|
318
|
+
const [key, ...paths] = name.split(".");
|
|
319
|
+
const { val, varKey } = processThemeVariable(name, key, paths, theme);
|
|
320
|
+
base = val != null ? `var(--${escapeSelector(varKey.replaceAll(".", "-"))}${suffix})` : `var(--${escapedName}${suffix})`;
|
|
321
|
+
} else {
|
|
322
|
+
base = `var(--${escapedName}${suffix})`;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
297
325
|
}
|
|
298
326
|
let curly = 0;
|
|
299
327
|
for (const i of base) {
|
|
@@ -322,23 +350,23 @@ function bracketWithType(str, requiredType) {
|
|
|
322
350
|
});
|
|
323
351
|
}
|
|
324
352
|
}
|
|
325
|
-
function bracket(str) {
|
|
326
|
-
return bracketWithType(str);
|
|
353
|
+
function bracket(str, theme) {
|
|
354
|
+
return bracketWithType(str, void 0, theme);
|
|
327
355
|
}
|
|
328
|
-
function bracketOfColor(str) {
|
|
329
|
-
return bracketWithType(str, "color");
|
|
356
|
+
function bracketOfColor(str, theme) {
|
|
357
|
+
return bracketWithType(str, "color", theme);
|
|
330
358
|
}
|
|
331
|
-
function bracketOfLength(str) {
|
|
332
|
-
return bracketWithType(str, "length") || bracketWithType(str, "size");
|
|
359
|
+
function bracketOfLength(str, theme) {
|
|
360
|
+
return bracketWithType(str, "length", theme) || bracketWithType(str, "size", theme);
|
|
333
361
|
}
|
|
334
|
-
function bracketOfPosition(str) {
|
|
335
|
-
return bracketWithType(str, "position");
|
|
362
|
+
function bracketOfPosition(str, theme) {
|
|
363
|
+
return bracketWithType(str, "position", theme);
|
|
336
364
|
}
|
|
337
|
-
function bracketOfFamily(str) {
|
|
338
|
-
return bracketWithType(str, "family");
|
|
365
|
+
function bracketOfFamily(str, theme) {
|
|
366
|
+
return bracketWithType(str, "family", theme);
|
|
339
367
|
}
|
|
340
|
-
function bracketOfNumber(str) {
|
|
341
|
-
return bracketWithType(str, "number");
|
|
368
|
+
function bracketOfNumber(str, theme) {
|
|
369
|
+
return bracketWithType(str, "number", theme);
|
|
342
370
|
}
|
|
343
371
|
function cssvar(str) {
|
|
344
372
|
if (str.startsWith("var("))
|
|
@@ -428,7 +456,7 @@ function numberResolver(size, defaultValue) {
|
|
|
428
456
|
}
|
|
429
457
|
}
|
|
430
458
|
function directionSize(property, map = directionMap, formatter = (p, d) => `${p}${d}`) {
|
|
431
|
-
return (([_, direction, size], { theme }) => {
|
|
459
|
+
return (([_, direction, size = "4"], { theme }) => {
|
|
432
460
|
if (size != null && direction != null) {
|
|
433
461
|
let v;
|
|
434
462
|
const isNegative = size.startsWith("-");
|
|
@@ -440,9 +468,9 @@ function directionSize(property, map = directionMap, formatter = (p, d) => `${p}
|
|
|
440
468
|
return map[direction].map((i) => [formatter(property, i), `calc(var(--spacing) * ${isNegative ? "-" : ""}${v})`]);
|
|
441
469
|
} else if (theme.spacing && size in theme.spacing) {
|
|
442
470
|
themeTracking("spacing", size);
|
|
443
|
-
return map[direction].map((i) => [formatter(property, i), isNegative ? `calc(var(
|
|
471
|
+
return map[direction].map((i) => [formatter(property, i), isNegative ? `calc(var(--${escapeSelector(`spacing-${size}`)}) * -1)` : `var(--${escapeSelector(`spacing-${size}`)})`]);
|
|
444
472
|
}
|
|
445
|
-
v = h.bracket.cssvar.global.auto.fraction.rem(isNegative ? `-${size}` : size);
|
|
473
|
+
v = h.bracket.cssvar.global.auto.fraction.rem(isNegative ? `-${size}` : size, theme);
|
|
446
474
|
if (v != null) {
|
|
447
475
|
return map[direction].map((i) => [formatter(property, i), v]);
|
|
448
476
|
}
|
|
@@ -490,7 +518,7 @@ function parseColor(body, theme) {
|
|
|
490
518
|
}
|
|
491
519
|
let { no, keys, color } = parsed ?? {};
|
|
492
520
|
if (!color) {
|
|
493
|
-
const bracket = h.bracketOfColor(main);
|
|
521
|
+
const bracket = h.bracketOfColor(main, theme);
|
|
494
522
|
const bracketOrMain = bracket || main;
|
|
495
523
|
if (h.numberWithUnit(bracketOrMain))
|
|
496
524
|
return;
|
|
@@ -545,10 +573,10 @@ function parseThemeColor(theme, keys) {
|
|
|
545
573
|
function getThemeByKey(theme, themeKey, keys) {
|
|
546
574
|
const obj = theme[themeKey];
|
|
547
575
|
function deepGet(current, path) {
|
|
548
|
-
if (!current || typeof current !== "object")
|
|
549
|
-
return void 0;
|
|
550
576
|
if (path.length === 0)
|
|
551
577
|
return current;
|
|
578
|
+
if (!current || typeof current !== "object")
|
|
579
|
+
return void 0;
|
|
552
580
|
for (let i = path.length; i > 0; i--) {
|
|
553
581
|
const flatKey = path.slice(0, i).join("-");
|
|
554
582
|
if (flatKey in current) {
|
|
@@ -588,7 +616,6 @@ function colorCSSGenerator(data, property, varName, ctx) {
|
|
|
588
616
|
result.push({
|
|
589
617
|
[symbols.parent]: "@supports (color: color-mix(in lab, red, red))",
|
|
590
618
|
[symbols.noMerge]: true,
|
|
591
|
-
[symbols.shortcutsNoMerge]: true,
|
|
592
619
|
[property]: `color-mix(in oklab, ${colorValue}, transparent)${rawColorComment}`
|
|
593
620
|
});
|
|
594
621
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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, L as hyphenate, i as insetMap, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, N as splitComma, e as xyzArray, O as bracketTypeRe } from './preset-wind4.
|
|
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, L as hyphenate, i as insetMap, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, N as splitComma, e as xyzArray, O as bracketTypeRe } from './preset-wind4.C-MsPbAY.mjs';
|
|
2
2
|
import { symbols, 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.DbFMuN4F.mjs';
|
|
4
4
|
import { getStringComponents, getStringComponent } from '@unocss/rule-utils';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
@@ -2634,13 +2634,13 @@ const cssVariables = [
|
|
|
2634
2634
|
}]
|
|
2635
2635
|
];
|
|
2636
2636
|
const cssProperty = [
|
|
2637
|
-
[/^\[(.*)\]$/, ([_, body]) => {
|
|
2637
|
+
[/^\[(.*)\]$/, ([_, body], { theme }) => {
|
|
2638
2638
|
if (!body.includes(":"))
|
|
2639
2639
|
return;
|
|
2640
2640
|
const [prop, ...rest] = body.split(":");
|
|
2641
2641
|
const value = rest.join(":");
|
|
2642
2642
|
if (!isURI(body) && /^[\w-]+$/.test(prop) && isValidCSSBody(value)) {
|
|
2643
|
-
const parsed = h.bracket(`[${value}]
|
|
2643
|
+
const parsed = h.bracket(`[${value}]`, theme);
|
|
2644
2644
|
if (parsed)
|
|
2645
2645
|
return { [prop]: parsed };
|
|
2646
2646
|
}
|
|
@@ -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, E as hasParseableColor } from './preset-wind4.
|
|
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.C-MsPbAY.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.C-MsPbAY.mjs';
|
|
3
3
|
|
|
4
4
|
const containerParent = [
|
|
5
5
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
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.DA4d_z8I.mjs';
|
|
2
|
+
import './shared/preset-wind4.DbFMuN4F.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-wind4.
|
|
4
|
+
import './shared/preset-wind4.C-MsPbAY.mjs';
|
|
5
5
|
import '@unocss/rule-utils';
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
|
-
import { Arrayable, UtilObject, CSSEntry, DynamicMatcher, RuleContext, CSSObject, CSSValueInput, VariantContext, StaticRule } from '@unocss/core';
|
|
4
3
|
import { T as Theme } from './shared/preset-wind4.CeNzqhCV.mjs';
|
|
4
|
+
import { Arrayable, UtilObject, CSSEntry, DynamicMatcher, RuleContext, CSSObject, CSSValueInput, VariantContext, StaticRule } from '@unocss/core';
|
|
5
5
|
|
|
6
6
|
declare const PRESET_NAME = "@unocss/preset-wind4";
|
|
7
7
|
declare const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
|
|
@@ -18,12 +18,12 @@ declare function px(str: string): string | undefined;
|
|
|
18
18
|
declare function number(str: string): number | undefined;
|
|
19
19
|
declare function percent(str: string): string | undefined;
|
|
20
20
|
declare function fraction(str: string): string | undefined;
|
|
21
|
-
declare function bracket(str: string): string | undefined;
|
|
22
|
-
declare function bracketOfColor(str: string): string | undefined;
|
|
23
|
-
declare function bracketOfLength(str: string): string | undefined;
|
|
24
|
-
declare function bracketOfPosition(str: string): string | undefined;
|
|
25
|
-
declare function bracketOfFamily(str: string): string | undefined;
|
|
26
|
-
declare function bracketOfNumber(str: string): string | undefined;
|
|
21
|
+
declare function bracket(str: string, theme?: Theme): string | undefined;
|
|
22
|
+
declare function bracketOfColor(str: string, theme?: Theme): string | undefined;
|
|
23
|
+
declare function bracketOfLength(str: string, theme?: Theme): string | undefined;
|
|
24
|
+
declare function bracketOfPosition(str: string, theme?: Theme): string | undefined;
|
|
25
|
+
declare function bracketOfFamily(str: string, theme?: Theme): string | undefined;
|
|
26
|
+
declare function bracketOfNumber(str: string, theme?: Theme): string | undefined;
|
|
27
27
|
declare function cssvar(str: string): string | undefined;
|
|
28
28
|
declare function time(str: string): string | undefined;
|
|
29
29
|
declare function degree(str: string): string | undefined;
|
|
@@ -77,8 +77,8 @@ declare namespace handlers {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare const handler: _unocss_rule_utils.ValueHandler<
|
|
81
|
-
declare const h: _unocss_rule_utils.ValueHandler<
|
|
80
|
+
declare const handler: _unocss_rule_utils.ValueHandler<string, Theme>;
|
|
81
|
+
declare const h: _unocss_rule_utils.ValueHandler<string, Theme>;
|
|
82
82
|
|
|
83
83
|
declare const directionMap: Record<string, string[]>;
|
|
84
84
|
declare const insetMap: Record<string, string[]>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
|
-
import { Arrayable, UtilObject, CSSEntry, DynamicMatcher, RuleContext, CSSObject, CSSValueInput, VariantContext, StaticRule } from '@unocss/core';
|
|
4
3
|
import { T as Theme } from './shared/preset-wind4.CeNzqhCV.js';
|
|
4
|
+
import { Arrayable, UtilObject, CSSEntry, DynamicMatcher, RuleContext, CSSObject, CSSValueInput, VariantContext, StaticRule } from '@unocss/core';
|
|
5
5
|
|
|
6
6
|
declare const PRESET_NAME = "@unocss/preset-wind4";
|
|
7
7
|
declare const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
|
|
@@ -18,12 +18,12 @@ declare function px(str: string): string | undefined;
|
|
|
18
18
|
declare function number(str: string): number | undefined;
|
|
19
19
|
declare function percent(str: string): string | undefined;
|
|
20
20
|
declare function fraction(str: string): string | undefined;
|
|
21
|
-
declare function bracket(str: string): string | undefined;
|
|
22
|
-
declare function bracketOfColor(str: string): string | undefined;
|
|
23
|
-
declare function bracketOfLength(str: string): string | undefined;
|
|
24
|
-
declare function bracketOfPosition(str: string): string | undefined;
|
|
25
|
-
declare function bracketOfFamily(str: string): string | undefined;
|
|
26
|
-
declare function bracketOfNumber(str: string): string | undefined;
|
|
21
|
+
declare function bracket(str: string, theme?: Theme): string | undefined;
|
|
22
|
+
declare function bracketOfColor(str: string, theme?: Theme): string | undefined;
|
|
23
|
+
declare function bracketOfLength(str: string, theme?: Theme): string | undefined;
|
|
24
|
+
declare function bracketOfPosition(str: string, theme?: Theme): string | undefined;
|
|
25
|
+
declare function bracketOfFamily(str: string, theme?: Theme): string | undefined;
|
|
26
|
+
declare function bracketOfNumber(str: string, theme?: Theme): string | undefined;
|
|
27
27
|
declare function cssvar(str: string): string | undefined;
|
|
28
28
|
declare function time(str: string): string | undefined;
|
|
29
29
|
declare function degree(str: string): string | undefined;
|
|
@@ -77,8 +77,8 @@ declare namespace handlers {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare const handler: _unocss_rule_utils.ValueHandler<
|
|
81
|
-
declare const h: _unocss_rule_utils.ValueHandler<
|
|
80
|
+
declare const handler: _unocss_rule_utils.ValueHandler<string, Theme>;
|
|
81
|
+
declare const h: _unocss_rule_utils.ValueHandler<string, Theme>;
|
|
82
82
|
|
|
83
83
|
declare const directionMap: Record<string, string[]>;
|
|
84
84
|
declare const insetMap: Record<string, string[]>;
|
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, 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.
|
|
1
|
+
import { a as remRE } from './shared/preset-wind4.C-MsPbAY.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.C-MsPbAY.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 { F 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, D as variantImplicitGroup, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, E as variantNegative, n as variantNoscript, t as variantOrientations, J as variantPartClasses, p as variantPrint, H as variantPseudoClassFunctions, G as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, K as variantStartingStyle, C as variantStickyHover, L as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, I as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.
|
|
1
|
+
export { F 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, D as variantImplicitGroup, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, E as variantNegative, n as variantNoscript, t as variantOrientations, J as variantPartClasses, p as variantPrint, H as variantPseudoClassFunctions, G as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, K as variantStartingStyle, C as variantStickyHover, L as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, I as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.Db9rchQp.mjs';
|
|
2
2
|
import '@unocss/rule-utils';
|
|
3
|
-
import './shared/preset-wind4.
|
|
3
|
+
import './shared/preset-wind4.C-MsPbAY.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.5.
|
|
4
|
+
"version": "66.5.6",
|
|
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.5.
|
|
78
|
-
"@unocss/
|
|
79
|
-
"@unocss/
|
|
77
|
+
"@unocss/core": "66.5.6",
|
|
78
|
+
"@unocss/extractor-arbitrary-variants": "66.5.6",
|
|
79
|
+
"@unocss/rule-utils": "66.5.6"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "unbuild",
|