@unocss/preset-mini 0.19.0 → 0.20.4

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.
@@ -33,6 +33,31 @@ const xyzMap = {
33
33
  "z": ["-z"],
34
34
  "": ["-x", "-y"]
35
35
  };
36
+ const basePositionMap = [
37
+ "top",
38
+ "top center",
39
+ "top left",
40
+ "top right",
41
+ "bottom",
42
+ "bottom center",
43
+ "bottom left",
44
+ "bottom right",
45
+ "left",
46
+ "left center",
47
+ "left top",
48
+ "left bottom",
49
+ "right",
50
+ "right center",
51
+ "right top",
52
+ "right bottom",
53
+ "center",
54
+ "center top",
55
+ "center bottom",
56
+ "center left",
57
+ "center right",
58
+ "center center"
59
+ ];
60
+ const positionMap = Object.assign({}, ...basePositionMap.map((p) => ({ [p.replace(/ /, "-")]: p })), ...basePositionMap.map((p) => ({ [p.replace(/\b(\w)\w+/g, "$1").replace(/ /, "")]: p })));
36
61
 
37
62
  const cssBasicProps = [
38
63
  "color",
@@ -91,13 +116,17 @@ const cssProps = [
91
116
  const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i;
92
117
  const numberRE = /^(-?[0-9.]+)$/i;
93
118
  const unitOnlyRE = /^(px)$/i;
119
+ function round(n) {
120
+ return n.toFixed(10).replace(/\.0+$/, "").replace(/(\.\d+?)0+$/, "$1");
121
+ }
94
122
  function numberWithUnit(str) {
95
123
  const match = str.match(numberWithUnitRE);
96
124
  if (!match)
97
125
  return;
98
- const [, , unit] = match;
99
- if (unit)
100
- return str;
126
+ const [, n, unit] = match;
127
+ const num = parseFloat(n);
128
+ if (unit && !Number.isNaN(num))
129
+ return `${round(num)}${unit}`;
101
130
  }
102
131
  function auto(str) {
103
132
  if (str === "auto" || str === "a")
@@ -110,11 +139,9 @@ function rem(str) {
110
139
  if (!match)
111
140
  return;
112
141
  const [, n, unit] = match;
113
- if (unit)
114
- return str;
115
142
  const num = parseFloat(n);
116
143
  if (!Number.isNaN(num))
117
- return `${num / 4}rem`;
144
+ return unit ? `${round(num)}${unit}` : `${round(num / 4)}rem`;
118
145
  }
119
146
  function px(str) {
120
147
  if (str.match(unitOnlyRE))
@@ -123,25 +150,23 @@ function px(str) {
123
150
  if (!match)
124
151
  return;
125
152
  const [, n, unit] = match;
126
- if (unit)
127
- return str;
128
153
  const num = parseFloat(n);
129
154
  if (!Number.isNaN(num))
130
- return `${num}px`;
155
+ return unit ? `${round(num)}${unit}` : `${round(num)}px`;
131
156
  }
132
157
  function number(str) {
133
158
  if (!numberRE.test(str))
134
159
  return;
135
160
  const num = parseFloat(str);
136
161
  if (!Number.isNaN(num))
137
- return num;
162
+ return round(num);
138
163
  }
139
164
  function percent(str) {
140
165
  if (str.endsWith("%"))
141
166
  str = str.slice(0, -1);
142
167
  const num = parseFloat(str);
143
168
  if (!Number.isNaN(num))
144
- return `${num / 100}`;
169
+ return `${round(num / 100)}`;
145
170
  }
146
171
  function fraction(str) {
147
172
  if (str === "full")
@@ -149,7 +174,7 @@ function fraction(str) {
149
174
  const [left, right] = str.split("/");
150
175
  const num = parseFloat(left) / parseFloat(right);
151
176
  if (!Number.isNaN(num))
152
- return `${num * 100}%`;
177
+ return `${round(num * 100)}%`;
153
178
  }
154
179
  function bracket(str) {
155
180
  if (str && str[0] === "[" && str[str.length - 1] === "]") {
@@ -163,20 +188,19 @@ function cssvar(str) {
163
188
  return `var(--${str.slice(1)})`;
164
189
  }
165
190
  function time(str) {
166
- const duration = Number(str.replace(/(s|ms)$/, ""));
167
- if (isNaN(duration))
191
+ const match = str.match(/^(-?[0-9.]+)(s|ms)?$/i);
192
+ if (!match)
168
193
  return;
169
- if (/(s|ms)$/.test(str))
170
- return str;
171
- return `${str}ms`;
194
+ const [, n, unit] = match;
195
+ const num = parseFloat(n);
196
+ if (!Number.isNaN(num))
197
+ return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
172
198
  }
173
199
  function global(str) {
174
200
  if (["inherit", "initial", "revert", "unset"].includes(str))
175
201
  return str;
176
202
  }
177
203
  function properties(str) {
178
- if (str === void 0)
179
- return;
180
204
  for (const prop of str.split(",")) {
181
205
  if (!cssProps.includes(prop))
182
206
  return;
@@ -223,8 +247,10 @@ const parseColor = (body, theme) => {
223
247
  const bracketOrMain = bracket || main;
224
248
  if (bracketOrMain.startsWith("#"))
225
249
  color = bracketOrMain.slice(1);
226
- if (bracketOrMain.startsWith("hex-"))
250
+ else if (bracketOrMain.startsWith("hex-"))
227
251
  color = bracketOrMain.slice(4);
252
+ else if (main.startsWith("$"))
253
+ color = handler.cssvar(main);
228
254
  color = color || bracket;
229
255
  let no = "DEFAULT";
230
256
  if (!color) {
@@ -245,39 +271,48 @@ const parseColor = (body, theme) => {
245
271
  else if (no && colorData)
246
272
  color = colorData[no];
247
273
  }
274
+ const rgba = hex2rgba(color);
275
+ const alpha = opacity ? opacity[0] === "[" ? handler.bracket.percent(opacity) : parseFloat(opacity) / 100 : rgba?.[3];
276
+ const hasAlpha = alpha != null && !Number.isNaN(alpha);
277
+ if (rgba) {
278
+ if (hasAlpha) {
279
+ rgba[3] = typeof alpha === "string" && !alpha.includes("%") ? parseFloat(alpha) : alpha;
280
+ } else {
281
+ rgba.splice(3);
282
+ }
283
+ }
248
284
  return {
249
285
  opacity,
250
286
  name,
251
287
  no,
252
288
  color,
253
- rgba: hex2rgba(color)
289
+ rgba,
290
+ alpha: hasAlpha ? alpha : void 0
254
291
  };
255
292
  };
256
293
  const colorResolver = (property, varName) => ([, body], { theme }) => {
257
294
  const data = parseColor(body, theme);
258
295
  if (!data)
259
296
  return;
260
- const { opacity, color, rgba } = data;
297
+ const { alpha, opacity, color, rgba } = data;
261
298
  if (!color)
262
299
  return;
263
- const a = opacity ? opacity[0] === "[" ? handler.bracket.percent(opacity) : parseFloat(opacity) / 100 : rgba?.[3];
264
300
  if (rgba) {
265
- if (a != null && !Number.isNaN(a)) {
266
- rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
301
+ if (alpha != null) {
267
302
  return {
268
303
  [property]: `rgba(${rgba.join(",")})`
269
304
  };
270
305
  } else {
271
306
  return {
272
- [`--un-${varName}-opacity`]: 1,
273
- [property]: `rgba(${rgba.slice(0, 3).join(",")},var(--un-${varName}-opacity))`
307
+ [`--un-${varName}-opacity`]: (opacity && handler.cssvar(opacity)) ?? 1,
308
+ [property]: `rgba(${rgba.join(",")},var(--un-${varName}-opacity))`
274
309
  };
275
310
  }
276
311
  } else {
277
312
  return {
278
- [property]: color.replace("%alpha", `${a || 1}`)
313
+ [property]: color.replace("%alpha", `${alpha || 1}`)
279
314
  };
280
315
  }
281
316
  };
282
317
 
283
- export { cornerMap as a, capitalize as b, colorResolver as c, directionMap as d, directionSize as e, h as f, handler as h, parseColor as p, valueHandlers as v, xyzMap as x };
318
+ export { cornerMap as a, capitalize as b, colorResolver as c, directionMap as d, directionSize as e, positionMap as f, h as g, handler as h, parseColor as p, valueHandlers as v, xyzMap as x };
@@ -1,16 +1,31 @@
1
1
  'use strict';
2
2
 
3
+ const core = require('@unocss/core');
4
+
3
5
  const variantMatcher = (name, selector) => {
4
- const re = new RegExp(`^(${name})[:-]`);
6
+ const re = new RegExp(`^${core.escapeRegExp(name)}[:-]`);
5
7
  return (input) => {
6
8
  const match = input.match(re);
7
9
  if (match) {
8
10
  return {
9
- matcher: input.slice(match[1].length + 1),
11
+ matcher: input.slice(match[0].length),
10
12
  selector
11
13
  };
12
14
  }
13
15
  };
14
16
  };
17
+ const variantParentMatcher = (name, parent) => {
18
+ const re = new RegExp(`^${core.escapeRegExp(name)}[:-]`);
19
+ return (input) => {
20
+ const match = input.match(re);
21
+ if (match) {
22
+ return {
23
+ matcher: input.slice(match[0].length),
24
+ parent
25
+ };
26
+ }
27
+ };
28
+ };
15
29
 
16
30
  exports.variantMatcher = variantMatcher;
31
+ exports.variantParentMatcher = variantParentMatcher;
@@ -1,14 +1,28 @@
1
+ import { escapeRegExp } from '@unocss/core';
2
+
1
3
  const variantMatcher = (name, selector) => {
2
- const re = new RegExp(`^(${name})[:-]`);
4
+ const re = new RegExp(`^${escapeRegExp(name)}[:-]`);
3
5
  return (input) => {
4
6
  const match = input.match(re);
5
7
  if (match) {
6
8
  return {
7
- matcher: input.slice(match[1].length + 1),
9
+ matcher: input.slice(match[0].length),
8
10
  selector
9
11
  };
10
12
  }
11
13
  };
12
14
  };
15
+ const variantParentMatcher = (name, parent) => {
16
+ const re = new RegExp(`^${escapeRegExp(name)}[:-]`);
17
+ return (input) => {
18
+ const match = input.match(re);
19
+ if (match) {
20
+ return {
21
+ matcher: input.slice(match[0].length),
22
+ parent
23
+ };
24
+ }
25
+ };
26
+ };
13
27
 
14
- export { variantMatcher as v };
28
+ export { variantParentMatcher as a, variantMatcher as v };
package/dist/index.cjs CHANGED
@@ -14,15 +14,24 @@ require('./chunks/variants.cjs');
14
14
  const presetMini = (options = {}) => {
15
15
  options.dark = options.dark ?? "class";
16
16
  options.attributifyPseudo = options.attributifyPseudo ?? false;
17
- options.variablePrefix = options.variablePrefix ?? "un-";
18
17
  return {
19
18
  name: "@unocss/preset-mini",
20
19
  theme: _default.theme,
21
20
  rules: _default$1.rules,
22
21
  variants: _default$2.variants,
23
- options
22
+ options,
23
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
24
24
  };
25
25
  };
26
+ function VarPrefixPostprocessor(prefix) {
27
+ return (obj) => {
28
+ obj.entries.forEach((i) => {
29
+ i[0] = i[0].replace(/^--un-/, `--${prefix}`);
30
+ if (typeof i[1] === "string")
31
+ i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
32
+ });
33
+ };
34
+ }
26
35
 
27
36
  exports.theme = _default.theme;
28
37
  exports.colors = colors.colors;
package/dist/index.mjs CHANGED
@@ -11,14 +11,23 @@ import './chunks/variants.mjs';
11
11
  const presetMini = (options = {}) => {
12
12
  options.dark = options.dark ?? "class";
13
13
  options.attributifyPseudo = options.attributifyPseudo ?? false;
14
- options.variablePrefix = options.variablePrefix ?? "un-";
15
14
  return {
16
15
  name: "@unocss/preset-mini",
17
16
  theme,
18
17
  rules,
19
18
  variants,
20
- options
19
+ options,
20
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
21
21
  };
22
22
  };
23
+ function VarPrefixPostprocessor(prefix) {
24
+ return (obj) => {
25
+ obj.entries.forEach((i) => {
26
+ i[0] = i[0].replace(/^--un-/, `--${prefix}`);
27
+ if (typeof i[1] === "string")
28
+ i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
29
+ });
30
+ };
31
+ }
23
32
 
24
33
  export { presetMini as default, presetMini };
package/dist/rules.cjs CHANGED
@@ -59,7 +59,6 @@ exports.transforms = _default.transforms;
59
59
  exports.transitions = _default.transitions;
60
60
  exports.userSelects = _default.userSelects;
61
61
  exports.varEmpty = _default.varEmpty;
62
- exports.varEmptyFn = _default.varEmptyFn;
63
62
  exports.verticalAligns = _default.verticalAligns;
64
63
  exports.whitespaces = _default.whitespaces;
65
64
  exports.willChange = _default.willChange;
package/dist/rules.d.ts CHANGED
@@ -57,7 +57,6 @@ declare const aspectRatio: Rule[];
57
57
  declare const paddings: Rule[];
58
58
  declare const margins: Rule[];
59
59
 
60
- declare const varEmptyFn: (prefix: string) => `var(--${string}empty,/*!*/ /*!*/)`;
61
60
  declare const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
62
61
  declare const displays: Rule[];
63
62
  declare const appearances: Rule[];
@@ -89,4 +88,4 @@ declare const cssVariables: Rule[];
89
88
 
90
89
  declare const textDecorations: Rule[];
91
90
 
92
- export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, varEmptyFn, verticalAligns, whitespaces, willChange, zIndexes };
91
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { l as alignments, a as appearance, H as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, O as breaks, N as contents, $ as cssVariables, I as cursors, G as displays, f as flex, q as floats, S as fontSmoothings, R as fontStyles, W as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, J as pointerEvents, p as positions, u as questionMark, K as resizes, x as rings, r as rules, A as sizes, T as svgUtilities, X as tabSizes, t as textAligns, d as textColors, a0 as textDecorations, Y as textIndents, P as textOverflows, _ as textShadows, Z as textStrokes, Q as textTransforms, U as transforms, V as transitions, L as userSelects, F as varEmpty, E as varEmptyFn, v as verticalAligns, M as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
1
+ export { l as alignments, a as appearance, G as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, N as breaks, M as contents, _ as cssVariables, H as cursors, F as displays, f as flex, q as floats, R as fontSmoothings, Q as fontStyles, V as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, I as pointerEvents, p as positions, u as questionMark, J as resizes, x as rings, r as rules, A as sizes, S as svgUtilities, W as tabSizes, t as textAligns, d as textColors, $ as textDecorations, X as textIndents, O as textOverflows, Z as textShadows, Y as textStrokes, P as textTransforms, T as transforms, U as transitions, K as userSelects, E as varEmpty, v as verticalAligns, L as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
2
2
  import './chunks/utilities.mjs';
3
3
  import '@unocss/core';
4
4
  import './chunks/pseudo.mjs';
package/dist/utils.cjs CHANGED
@@ -16,6 +16,8 @@ exports.directionSize = utilities.directionSize;
16
16
  exports.h = utilities.h;
17
17
  exports.handler = utilities.handler;
18
18
  exports.parseColor = utilities.parseColor;
19
+ exports.positionMap = utilities.positionMap;
19
20
  exports.valueHandlers = utilities.valueHandlers;
20
21
  exports.xyzMap = utilities.xyzMap;
21
22
  exports.variantMatcher = variants.variantMatcher;
23
+ exports.variantParentMatcher = variants.variantParentMatcher;
package/dist/utils.d.ts CHANGED
@@ -5,12 +5,13 @@ import { T as Theme } from './types-a2d2b52f';
5
5
  declare const directionMap: Record<string, string[]>;
6
6
  declare const cornerMap: Record<string, string[]>;
7
7
  declare const xyzMap: Record<string, string[]>;
8
+ declare const positionMap: Record<string, string>;
8
9
 
9
10
  declare function numberWithUnit(str: string): string | undefined;
10
11
  declare function auto(str: string): "auto" | undefined;
11
12
  declare function rem(str: string): string | undefined;
12
13
  declare function px(str: string): string | undefined;
13
- declare function number(str: string): number | undefined;
14
+ declare function number(str: string): string | undefined;
14
15
  declare function percent(str: string): string | undefined;
15
16
  declare function fraction(str: string): string | undefined;
16
17
  declare function bracket(str: string): string | undefined;
@@ -52,6 +53,7 @@ declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "numberWith
52
53
  declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "global" | "properties">;
53
54
 
54
55
  declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
56
+ declare const variantParentMatcher: (name: string, parent: string) => (input: string) => VariantHandler | undefined;
55
57
 
56
58
  declare function capitalize<T extends string>(str: T): Capitalize<T>;
57
59
  /**
@@ -105,4 +107,4 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
105
107
  */
106
108
  declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
107
109
 
108
- export { capitalize, colorResolver, cornerMap, directionMap, directionSize, h, handler, parseColor, handlers as valueHandlers, variantMatcher, xyzMap };
110
+ export { capitalize, colorResolver, cornerMap, directionMap, directionSize, h, handler, parseColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { b as capitalize, c as colorResolver, a as cornerMap, d as directionMap, e as directionSize, f as h, h as handler, p as parseColor, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
- export { v as variantMatcher } from './chunks/variants.mjs';
1
+ export { b as capitalize, c as colorResolver, a as cornerMap, d as directionMap, e as directionSize, g as h, h as handler, p as parseColor, f as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
+ export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -13,8 +13,11 @@ exports.variantBreakpoints = _default.variantBreakpoints;
13
13
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
14
14
  exports.variantCombinators = _default.variantCombinators;
15
15
  exports.variantImportant = _default.variantImportant;
16
+ exports.variantLanguageDirections = _default.variantLanguageDirections;
17
+ exports.variantMotions = _default.variantMotions;
16
18
  exports.variantNegative = _default.variantNegative;
17
- exports.variantSpace = _default.variantSpace;
19
+ exports.variantOrientations = _default.variantOrientations;
20
+ exports.variantPrint = _default.variantPrint;
18
21
  exports.variants = _default.variants;
19
22
  exports.CONTROL_BYPASS_PSEUDO_CLASS = pseudo.CONTROL_BYPASS_PSEUDO_CLASS;
20
23
  exports.partClasses = pseudo.partClasses;
@@ -1,3 +1,4 @@
1
+ import * as _unocss_core from '@unocss/core';
1
2
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
3
  import { T as Theme } from './types-a2d2b52f';
3
4
 
@@ -7,11 +8,18 @@ declare const variantCombinators: Variant[];
7
8
 
8
9
  declare const variantColorsMediaOrClass: Variant[];
9
10
 
11
+ declare const variantLanguageDirections: Variant[];
12
+
10
13
  declare const variants: Variant<Theme>[];
11
14
 
12
15
  declare const variantImportant: Variant;
13
16
  declare const variantNegative: Variant;
14
- declare const variantSpace: Variant;
17
+
18
+ declare const variantMotions: Variant[];
19
+
20
+ declare const variantOrientations: Variant[];
21
+
22
+ declare const variantPrint: (input: string) => _unocss_core.VariantHandler | undefined;
15
23
 
16
24
  declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
17
25
  declare const variantPseudoElements: VariantFunction;
@@ -20,4 +28,4 @@ declare const variantPseudoClassFunctions: VariantObject;
20
28
  declare const variantTaggedPseudoClasses: VariantObject;
21
29
  declare const partClasses: VariantObject;
22
30
 
23
- export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantNegative, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantSpace, variantTaggedPseudoClasses, variants };
31
+ export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, d as variantImportant, e as variantNegative, f as variantSpace, v as variants } from './chunks/default3.mjs';
1
+ export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, e as variantImportant, d as variantLanguageDirections, g as variantMotions, f as variantNegative, h as variantOrientations, i as variantPrint, v as variants } from './chunks/default3.mjs';
2
2
  export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantPseudoClassFunctions, v as variantPseudoClasses, c as variantPseudoElements, b as variantTaggedPseudoClasses } from './chunks/pseudo.mjs';
3
3
  import './chunks/variants.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.19.0",
3
+ "version": "0.20.4",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.19.0"
64
+ "@unocss/core": "0.20.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",