@unocss/preset-mini 66.7.0 → 66.7.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/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ThemeAnimation, r as Theme, t as colors } from "./colors-DCBiEX2u.mjs";
|
|
2
2
|
import { N as theme } from "./theme-DxdAk3Fs.mjs";
|
|
3
3
|
import { a as preflights, i as presetMini, n as PresetMiniOptions, r as VarPrefixPostprocessor, t as DarkModeSelectors } from "./index-C15Z0rWV.mjs";
|
|
4
|
-
import { l as parseColor } from "./utils-
|
|
4
|
+
import { l as parseColor } from "./utils-Yew0NxP6.mjs";
|
|
5
5
|
export { DarkModeSelectors, PresetMiniOptions, type Theme, type ThemeAnimation, VarPrefixPostprocessor, colors, presetMini as default, presetMini, parseColor, preflights, theme };
|
|
@@ -25,8 +25,8 @@ declare function properties(str: string): string | undefined;
|
|
|
25
25
|
declare function position(str: string): string | undefined;
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/_utils/handlers/index.d.ts
|
|
28
|
-
declare const handler: import("@unocss/rule-utils").ValueHandler<"number" | "
|
|
29
|
-
declare const h: import("@unocss/rule-utils").ValueHandler<"number" | "
|
|
28
|
+
declare const handler: import("@unocss/rule-utils").ValueHandler<"number" | "numberWithUnit" | "auto" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties" | "position", object>;
|
|
29
|
+
declare const h: import("@unocss/rule-utils").ValueHandler<"number" | "numberWithUnit" | "auto" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties" | "position", object>;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/_utils/mappings.d.ts
|
|
32
32
|
declare const directionMap: Record<string, string[]>;
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as h, S as xyzMap, T as handlers_d_exports, _ as directionMap, a as hasParseableColor, b as positionMap, c as makeGlobalStaticRules, d as resolveVerticalBreakpoints, f as splitShorthand, g as cssVarFnRE, h as cssMathFnRE, i as directionSize, l as parseColor, m as cornerMap, n as colorResolver, o as isCSSMathFn, p as transformXYZ, r as colorableShadows, s as isSize, t as CONTROL_MINI_NO_NEGATIVE, u as resolveBreakpoints, v as globalKeywords, w as handler, x as xyzArray, y as insetMap } from "./utils-
|
|
1
|
+
import { C as h, S as xyzMap, T as handlers_d_exports, _ as directionMap, a as hasParseableColor, b as positionMap, c as makeGlobalStaticRules, d as resolveVerticalBreakpoints, f as splitShorthand, g as cssVarFnRE, h as cssMathFnRE, i as directionSize, l as parseColor, m as cornerMap, n as colorResolver, o as isCSSMathFn, p as transformXYZ, r as colorableShadows, s as isSize, t as CONTROL_MINI_NO_NEGATIVE, u as resolveBreakpoints, v as globalKeywords, w as handler, x as xyzArray, y as insetMap } from "./utils-Yew0NxP6.mjs";
|
|
2
2
|
export * from "@unocss/rule-utils";
|
|
3
3
|
export { CONTROL_MINI_NO_NEGATIVE, colorResolver, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, parseColor, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers_d_exports as valueHandlers, xyzArray, xyzMap };
|
package/dist/variants.mjs
CHANGED
|
@@ -595,7 +595,9 @@ const variantSupports = {
|
|
|
595
595
|
let supports = h.bracket(match) ?? "";
|
|
596
596
|
if (supports === "") supports = ctx.theme.supports?.[match] ?? "";
|
|
597
597
|
if (supports) {
|
|
598
|
-
if (
|
|
598
|
+
if (/^[\w-]+$/.test(supports)) supports = `(${supports}: var(--un))`;
|
|
599
|
+
supports = supports.replace(/\b(and|or|not)\b/gi, " $1 ").replace(/\s+/g, " ").trim();
|
|
600
|
+
if (!(supports.startsWith("(") && supports.endsWith(")")) && !/^not\b/i.test(supports)) supports = `(${supports})`;
|
|
599
601
|
return {
|
|
600
602
|
matcher: rest,
|
|
601
603
|
handle: (input, next) => next({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.7.
|
|
4
|
+
"version": "66.7.2",
|
|
5
5
|
"description": "The minimal preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@unocss/
|
|
46
|
-
"@unocss/rule-utils": "66.7.
|
|
47
|
-
"@unocss/
|
|
45
|
+
"@unocss/core": "66.7.2",
|
|
46
|
+
"@unocss/rule-utils": "66.7.2",
|
|
47
|
+
"@unocss/extractor-arbitrary-variants": "66.7.2"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown",
|