@unocss/preset-mini 66.6.8 → 66.7.0

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.
@@ -1,5 +1,4 @@
1
1
  import { r as Theme } from "./colors-DCBiEX2u.mjs";
2
- import * as _$_unocss_core0 from "@unocss/core";
3
2
  import { Postprocessor, Preflight, PresetOptions } from "@unocss/core";
4
3
 
5
4
  //#region src/preflights.d.ts
@@ -65,7 +64,7 @@ interface PresetMiniOptions extends PresetOptions {
65
64
  *
66
65
  * @see https://unocss.dev/presets/mini
67
66
  */
68
- declare const presetMini: _$_unocss_core0.PresetFactory<Theme, PresetMiniOptions>;
67
+ declare const presetMini: import("@unocss/core").PresetFactory<Theme, PresetMiniOptions>;
69
68
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
70
69
  //#endregion
71
70
  export { preflights as a, presetMini as i, PresetMiniOptions as n, VarPrefixPostprocessor as r, DarkModeSelectors as t };
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
- import { N as theme } from "./theme-DmprjxKd.mjs";
3
- import { a as preflights, i as presetMini, n as PresetMiniOptions, r as VarPrefixPostprocessor, t as DarkModeSelectors } from "./index-Df-rxaWU.mjs";
4
- import { l as parseColor } from "./utils-C6ZYvciN.mjs";
5
- export { DarkModeSelectors, PresetMiniOptions, Theme, ThemeAnimation, VarPrefixPostprocessor, colors, presetMini as default, presetMini, parseColor, preflights, theme };
2
+ import { N as theme } from "./theme-DxdAk3Fs.mjs";
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-DhmxNI6b.mjs";
5
+ export { DarkModeSelectors, PresetMiniOptions, type Theme, type ThemeAnimation, VarPrefixPostprocessor, colors, presetMini as default, presetMini, parseColor, preflights, theme };
package/dist/rules.mjs CHANGED
@@ -252,10 +252,7 @@ const bgColors = [[
252
252
  if ((isSize(d) || bgPositionRE.test(d)) && h.bracketOfPosition(d) != null) return { "background-position": h.bracketOfPosition(d).split(" ").map((e) => h.position.fraction.auto.px.cssvar(e) ?? e).join(" ") };
253
253
  if (bgGradientRE.test(d) || bgImageRE.test(d)) {
254
254
  const s = h.bracket(d);
255
- if (s) {
256
- const url = s.startsWith("http") ? `url(${s})` : h.cssvar(s);
257
- return { "background-image": url ?? s };
258
- }
255
+ if (s) return { "background-image": (s.startsWith("http") ? `url(${s})` : h.cssvar(s)) ?? s };
259
256
  }
260
257
  return colorResolver("background-color", "bg", "backgroundColor")(...args);
261
258
  },
@@ -1,5 +1,4 @@
1
1
  import { n as Colors, r as Theme } from "./colors-DCBiEX2u.mjs";
2
- import * as _$_unocss_core0 from "@unocss/core";
3
2
 
4
3
  //#region src/_theme/default.d.ts
5
4
  declare const theme: {
@@ -549,7 +548,7 @@ declare const theme: {
549
548
  serif: string;
550
549
  mono: string;
551
550
  };
552
- fontSize: Record<string, string | [string, string | _$_unocss_core0.CSSObject] | [string, string, string]> | undefined;
551
+ fontSize: Record<string, string | [string, string | import("@unocss/core").CSSObject] | [string, string, string]> | undefined;
553
552
  fontWeight: {
554
553
  thin: string;
555
554
  extralight: string;
package/dist/theme.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { i as ThemeAnimation, n as Colors, r as Theme, t as colors } from "./colors-DCBiEX2u.mjs";
2
- import { A as wordSpacing, C as fontSize, D as textIndent, E as lineHeight, M as dropShadow, N as theme, O as textShadow, S as fontFamily, T as letterSpacing, _ as media, a as inlineSize, b as verticalBreakpoints, c as maxInlineSize, d as preflightBase, f as borderRadius, g as lineWidth, h as duration, i as height, j as blur, k as textStrokeWidth, l as maxWidth, m as breakpoints, n as blockSize, o as maxBlockSize, p as boxShadow, r as containers, s as maxHeight, t as baseSize, u as width, v as ringWidth, w as fontWeight, x as zIndex, y as spacing } from "./theme-DmprjxKd.mjs";
2
+ import { A as wordSpacing, C as fontSize, D as textIndent, E as lineHeight, M as dropShadow, N as theme, O as textShadow, S as fontFamily, T as letterSpacing, _ as media, a as inlineSize, b as verticalBreakpoints, c as maxInlineSize, d as preflightBase, f as borderRadius, g as lineWidth, h as duration, i as height, j as blur, k as textStrokeWidth, l as maxWidth, m as breakpoints, n as blockSize, o as maxBlockSize, p as boxShadow, r as containers, s as maxHeight, t as baseSize, u as width, v as ringWidth, w as fontWeight, x as zIndex, y as spacing } from "./theme-DxdAk3Fs.mjs";
3
3
  export { Colors, Theme, ThemeAnimation, baseSize, blockSize, blur, borderRadius, boxShadow, breakpoints, colors, containers, dropShadow, duration, fontFamily, fontSize, fontWeight, height, inlineSize, letterSpacing, lineHeight, lineWidth, maxBlockSize, maxHeight, maxInlineSize, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, theme, verticalBreakpoints, width, wordSpacing, zIndex };
@@ -1,6 +1,5 @@
1
1
  import { r as Theme } from "./colors-DCBiEX2u.mjs";
2
2
  import { CSSObject, DynamicMatcher, StaticRule, VariantContext } from "@unocss/core";
3
- import * as _$_unocss_rule_utils0 from "@unocss/rule-utils";
4
3
  import { ParsedColorValue } from "@unocss/rule-utils";
5
4
 
6
5
  //#region src/_utils/handlers/handlers.d.ts
@@ -26,8 +25,8 @@ declare function properties(str: string): string | undefined;
26
25
  declare function position(str: string): string | undefined;
27
26
  //#endregion
28
27
  //#region src/_utils/handlers/index.d.ts
29
- declare const handler: _$_unocss_rule_utils0.ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
30
- declare const h: _$_unocss_rule_utils0.ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
28
+ declare const handler: import("@unocss/rule-utils").ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
29
+ declare const h: import("@unocss/rule-utils").ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
31
30
  //#endregion
32
31
  //#region src/_utils/mappings.d.ts
33
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-C6ZYvciN.mjs";
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-DhmxNI6b.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 };
@@ -1,5 +1,5 @@
1
1
  import { r as Theme } from "./colors-DCBiEX2u.mjs";
2
- import { n as PresetMiniOptions } from "./index-Df-rxaWU.mjs";
2
+ import { n as PresetMiniOptions } from "./index-C15Z0rWV.mjs";
3
3
  import { Variant, VariantObject } from "@unocss/core";
4
4
 
5
5
  //#region src/_variants/aria.d.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
3
  "type": "module",
4
- "version": "66.6.8",
4
+ "version": "66.7.0",
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/core": "66.6.8",
46
- "@unocss/rule-utils": "66.6.8",
47
- "@unocss/extractor-arbitrary-variants": "66.6.8"
45
+ "@unocss/extractor-arbitrary-variants": "66.7.0",
46
+ "@unocss/rule-utils": "66.7.0",
47
+ "@unocss/core": "66.7.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown",