@unocss/preset-mini 0.56.5 → 0.57.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.
Files changed (42) hide show
  1. package/dist/colors.d.cts +1 -1
  2. package/dist/colors.d.mts +1 -1
  3. package/dist/colors.d.ts +1 -1
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.d.cts +4 -4
  6. package/dist/index.d.mts +4 -4
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.mjs +3 -3
  9. package/dist/rules.cjs +33 -12
  10. package/dist/rules.d.cts +1 -1
  11. package/dist/rules.d.mts +1 -1
  12. package/dist/rules.d.ts +1 -1
  13. package/dist/rules.mjs +35 -14
  14. package/dist/shared/{preset-mini.f12010ce.d.mts → preset-mini.2492ad3a.d.mts} +6 -2
  15. package/dist/shared/{preset-mini.0a392a7c.d.ts → preset-mini.31acf3c2.d.ts} +6 -2
  16. package/dist/shared/{preset-mini.302bff75.d.cts → preset-mini.5e80d683.d.cts} +6 -2
  17. package/dist/shared/{preset-mini.bc674518.d.mts → preset-mini.6e321bc3.d.cts} +2 -2
  18. package/dist/shared/{preset-mini.bc674518.d.ts → preset-mini.6e321bc3.d.mts} +2 -2
  19. package/dist/shared/{preset-mini.bc674518.d.cts → preset-mini.6e321bc3.d.ts} +2 -2
  20. package/dist/shared/{preset-mini.7f0d0a40.mjs → preset-mini.7fce5950.mjs} +8 -8
  21. package/dist/shared/{preset-mini.8929b018.mjs → preset-mini.87b98aea.mjs} +11 -12
  22. package/dist/shared/{preset-mini.3db5f008.d.ts → preset-mini.94582694.d.ts} +15 -8
  23. package/dist/shared/{preset-mini.26085c20.d.mts → preset-mini.c3f13a30.d.cts} +15 -8
  24. package/dist/shared/{preset-mini.6a210a3c.cjs → preset-mini.cedf5b6d.cjs} +8 -8
  25. package/dist/shared/{preset-mini.39336e3c.d.cts → preset-mini.e0376460.d.mts} +15 -8
  26. package/dist/shared/{preset-mini.3a376028.cjs → preset-mini.ec90d1ba.cjs} +12 -11
  27. package/dist/theme.cjs +29 -24
  28. package/dist/theme.d.cts +7 -4
  29. package/dist/theme.d.mts +7 -4
  30. package/dist/theme.d.ts +7 -4
  31. package/dist/theme.mjs +29 -25
  32. package/dist/utils.cjs +3 -1
  33. package/dist/utils.d.cts +4 -3
  34. package/dist/utils.d.mts +4 -3
  35. package/dist/utils.d.ts +4 -3
  36. package/dist/utils.mjs +1 -1
  37. package/dist/variants.cjs +2 -2
  38. package/dist/variants.d.cts +3 -3
  39. package/dist/variants.d.mts +3 -3
  40. package/dist/variants.d.ts +3 -3
  41. package/dist/variants.mjs +2 -2
  42. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.bc674518.mjs';
2
+ import { T as Theme } from './preset-mini.6e321bc3.cjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -21,7 +21,7 @@ declare function splitShorthand(body: string, type: string): string[];
21
21
  * 'red' // From theme, if 'red' is available
22
22
  * 'red-100' // From theme, plus scale
23
23
  * 'red-100/20' // From theme, plus scale/opacity
24
- * '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
24
+ * '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
25
25
  *
26
26
  * @param body - Color string to be parsed.
27
27
  * @param theme - {@link Theme} object.
@@ -39,15 +39,15 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
39
39
  *
40
40
  * @example Resolving 'red-100' from theme:
41
41
  * colorResolver('background-color', 'background')('', 'red-100')
42
- * return { '--un-background-opacity': '1', 'background-color': 'rgba(254,226,226,var(--un-background-opacity))' }
42
+ * return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }
43
43
  *
44
44
  * @example Resolving 'red-100/20' from theme:
45
45
  * colorResolver('background-color', 'background')('', 'red-100/20')
46
- * return { 'background-color': 'rgba(204,251,241,0.22)' }
46
+ * return { 'background-color': 'rgb(204 251 241 / 0.22)' }
47
47
  *
48
48
  * @example Resolving 'hex-124':
49
49
  * colorResolver('color', 'text')('', 'hex-124')
50
- * return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
50
+ * return { '--un-text-opacity': '1', 'color': 'rgb(17 34 68 / var(--un-text-opacity))' }
51
51
  *
52
52
  * @param property - Property for the css value to be created.
53
53
  * @param varName - Base name for the opacity variable.
@@ -57,8 +57,15 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
57
57
  declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
58
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
59
59
  declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
60
- declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
61
- declare function resolveVerticalBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
60
+ declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
61
+ point: string;
62
+ size: string;
63
+ }[] | undefined;
64
+ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
65
+ point: string;
66
+ size: string;
67
+ }[] | undefined;
62
68
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
69
+ declare function isCSSMathFn(value: string): boolean;
63
70
 
64
- export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
71
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./preset-mini.3a376028.cjs');
3
+ const utils = require('./preset-mini.ec90d1ba.cjs');
4
4
 
5
5
  const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
6
6
  const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
@@ -125,8 +125,8 @@ const ringBase = {
125
125
  "--un-ring-offset-width": "0px",
126
126
  "--un-ring-offset-color": "#fff",
127
127
  "--un-ring-width": "0px",
128
- "--un-ring-color": "rgba(147,197,253,0.5)",
129
- "--un-shadow": "0 0 rgba(0,0,0,0)"
128
+ "--un-ring-color": "rgb(147 197 253 / 0.5)",
129
+ "--un-shadow": "0 0 rgb(0 0 0 / 0)"
130
130
  };
131
131
  const rings = [
132
132
  // size
@@ -156,10 +156,10 @@ const rings = [
156
156
  ];
157
157
 
158
158
  const boxShadowsBase = {
159
- "--un-ring-offset-shadow": "0 0 rgba(0,0,0,0)",
160
- "--un-ring-shadow": "0 0 rgba(0,0,0,0)",
159
+ "--un-ring-offset-shadow": "0 0 rgb(0 0 0 / 0)",
160
+ "--un-ring-shadow": "0 0 rgb(0 0 0 / 0)",
161
161
  "--un-shadow-inset": varEmpty,
162
- "--un-shadow": "0 0 rgba(0,0,0,0)"
162
+ "--un-shadow": "0 0 rgb(0 0 0 / 0)"
163
163
  };
164
164
  const boxShadows = [
165
165
  // color
@@ -256,9 +256,9 @@ const transforms = [
256
256
  [/^(?:transform-)?rotate-()(.+)$/, handleRotate],
257
257
  [/^(?:transform-)?rotate-([xyz])-(.+)$/, handleRotate],
258
258
  [/^(?:transform-)?skew-()(.+)$/, handleSkew],
259
- [/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew, { autocomplete: ["transform-skew-(x|y)-<percent>"] }],
259
+ [/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew, { autocomplete: ["transform-skew-(x|y)-<percent>", "skew-(x|y)-<percent>"] }],
260
260
  [/^(?:transform-)?scale-()(.+)$/, handleScale],
261
- [/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale, { autocomplete: [`transform-(${transformValues.join("|")})-<percent>`, `transform-(${transformValues.join("|")})-(x|y|z)-<percent>`] }],
261
+ [/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale, { autocomplete: [`transform-(${transformValues.join("|")})-<percent>`, `transform-(${transformValues.join("|")})-(x|y|z)-<percent>`, `(${transformValues.join("|")})-<percent>`, `(${transformValues.join("|")})-(x|y|z)-<percent>`] }],
262
262
  // style
263
263
  [/^(?:transform-)?preserve-3d$/, () => ({ "transform-style": "preserve-3d" })],
264
264
  [/^(?:transform-)?preserve-flat$/, () => ({ "transform-style": "flat" })],
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.bc674518.cjs';
2
+ import { T as Theme } from './preset-mini.6e321bc3.mjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -21,7 +21,7 @@ declare function splitShorthand(body: string, type: string): string[];
21
21
  * 'red' // From theme, if 'red' is available
22
22
  * 'red-100' // From theme, plus scale
23
23
  * 'red-100/20' // From theme, plus scale/opacity
24
- * '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
24
+ * '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
25
25
  *
26
26
  * @param body - Color string to be parsed.
27
27
  * @param theme - {@link Theme} object.
@@ -39,15 +39,15 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
39
39
  *
40
40
  * @example Resolving 'red-100' from theme:
41
41
  * colorResolver('background-color', 'background')('', 'red-100')
42
- * return { '--un-background-opacity': '1', 'background-color': 'rgba(254,226,226,var(--un-background-opacity))' }
42
+ * return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }
43
43
  *
44
44
  * @example Resolving 'red-100/20' from theme:
45
45
  * colorResolver('background-color', 'background')('', 'red-100/20')
46
- * return { 'background-color': 'rgba(204,251,241,0.22)' }
46
+ * return { 'background-color': 'rgb(204 251 241 / 0.22)' }
47
47
  *
48
48
  * @example Resolving 'hex-124':
49
49
  * colorResolver('color', 'text')('', 'hex-124')
50
- * return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
50
+ * return { '--un-text-opacity': '1', 'color': 'rgb(17 34 68 / var(--un-text-opacity))' }
51
51
  *
52
52
  * @param property - Property for the css value to be created.
53
53
  * @param varName - Base name for the opacity variable.
@@ -57,8 +57,15 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
57
57
  declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
58
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
59
59
  declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
60
- declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
61
- declare function resolveVerticalBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
60
+ declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
61
+ point: string;
62
+ size: string;
63
+ }[] | undefined;
64
+ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
65
+ point: string;
66
+ size: string;
67
+ }[] | undefined;
62
68
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
69
+ declare function isCSSMathFn(value: string): boolean;
63
70
 
64
- export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
71
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
@@ -108,6 +108,7 @@ const globalKeywords = [
108
108
  "revert-layer",
109
109
  "unset"
110
110
  ];
111
+ const cssMathFnRE = /^(?:calc|env|clamp|min|max)\(.*\)/;
111
112
 
112
113
  const numberWithUnitRE = /^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i;
113
114
  const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
@@ -493,30 +494,29 @@ function colorableShadows(shadows, colorVar) {
493
494
  function hasParseableColor(color, theme) {
494
495
  return color != null && !!parseColor(color, theme)?.color;
495
496
  }
496
- function resolveBreakpoints({ theme, generator }) {
497
+ function resolveBreakpoints({ theme, generator }, key = "breakpoints") {
497
498
  let breakpoints;
498
499
  if (generator.userConfig && generator.userConfig.theme)
499
- breakpoints = generator.userConfig.theme.breakpoints;
500
+ breakpoints = generator.userConfig.theme[key];
500
501
  if (!breakpoints)
501
- breakpoints = theme.breakpoints;
502
- return breakpoints;
502
+ breakpoints = theme[key];
503
+ return breakpoints ? Object.entries(breakpoints).sort((a, b) => Number.parseInt(a[1].replace(/[a-z]+/gi, "")) - Number.parseInt(b[1].replace(/[a-z]+/gi, ""))).map(([point, size]) => ({ point, size })) : void 0;
503
504
  }
504
- function resolveVerticalBreakpoints({ theme, generator }) {
505
- let verticalBreakpoints;
506
- if (generator.userConfig && generator.userConfig.theme)
507
- verticalBreakpoints = generator.userConfig.theme.verticalBreakpoints;
508
- if (!verticalBreakpoints)
509
- verticalBreakpoints = theme.verticalBreakpoints;
510
- return verticalBreakpoints;
505
+ function resolveVerticalBreakpoints(context) {
506
+ return resolveBreakpoints(context, "verticalBreakpoints");
511
507
  }
512
508
  function makeGlobalStaticRules(prefix, property) {
513
509
  return globalKeywords.map((keyword) => [`${prefix}-${keyword}`, { [property ?? prefix]: keyword }]);
514
510
  }
511
+ function isCSSMathFn(value) {
512
+ return cssMathFnRE.test(value);
513
+ }
515
514
 
516
515
  exports.CONTROL_MINI_NO_NEGATIVE = CONTROL_MINI_NO_NEGATIVE;
517
516
  exports.colorResolver = colorResolver;
518
517
  exports.colorableShadows = colorableShadows;
519
518
  exports.cornerMap = cornerMap;
519
+ exports.cssMathFnRE = cssMathFnRE;
520
520
  exports.directionMap = directionMap;
521
521
  exports.directionSize = directionSize;
522
522
  exports.globalKeywords = globalKeywords;
@@ -524,6 +524,7 @@ exports.h = h;
524
524
  exports.handler = handler;
525
525
  exports.hasParseableColor = hasParseableColor;
526
526
  exports.insetMap = insetMap;
527
+ exports.isCSSMathFn = isCSSMathFn;
527
528
  exports.makeGlobalStaticRules = makeGlobalStaticRules;
528
529
  exports.numberWithUnitRE = numberWithUnitRE;
529
530
  exports.parseColor = parseColor;
package/dist/theme.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./colors.cjs');
4
- const transform = require('./shared/preset-mini.6a210a3c.cjs');
5
- require('./shared/preset-mini.3a376028.cjs');
4
+ const transform = require('./shared/preset-mini.cedf5b6d.cjs');
5
+ require('./shared/preset-mini.ec90d1ba.cjs');
6
6
  require('@unocss/rule-utils');
7
7
  require('@unocss/core');
8
8
 
@@ -75,12 +75,12 @@ const textStrokeWidth = {
75
75
  lg: "thick"
76
76
  };
77
77
  const textShadow = {
78
- DEFAULT: ["0 0 1px rgba(0,0,0,0.2)", "0 0 1px rgba(1,0,5,0.1)"],
79
- none: "0 0 rgba(0,0,0,0)",
80
- sm: "1px 1px 3px rgba(36,37,47,0.25)",
81
- md: ["0 1px 2px rgba(30,29,39,0.19)", "1px 2px 4px rgba(54,64,147,0.18)"],
82
- lg: ["3px 3px 6px rgba(0,0,0,0.26)", "0 0 5px rgba(15,3,86,0.22)"],
83
- xl: ["1px 1px 3px rgba(0,0,0,0.29)", "2px 4px 7px rgba(73,64,125,0.35)"]
78
+ DEFAULT: ["0 0 1px rgb(0 0 0 / 0.2)", "0 0 1px rgb(1 0 5 / 0.1)"],
79
+ none: "0 0 rgb(0 0 0 / 0)",
80
+ sm: "1px 1px 3px rgb(36 37 47 / 0.25)",
81
+ md: ["0 1px 2px rgb(30 29 39 / 0.19)", "1px 2px 4px rgb(54 64 147 / 0.18)"],
82
+ lg: ["3px 3px 6px rgb(0 0 0 / 0.26)", "0 0 5px rgb(15 3 86 / 0.22)"],
83
+ xl: ["1px 1px 3px rgb(0 0 0 / 0.29)", "2px 4px 7px rgb(73 64 125 / 0.35)"]
84
84
  };
85
85
  const lineHeight = {
86
86
  none: "1",
@@ -164,14 +164,14 @@ const borderRadius = {
164
164
  "full": "9999px"
165
165
  };
166
166
  const boxShadow = {
167
- "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],
168
- "none": "0 0 rgba(0,0,0,0)",
169
- "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",
170
- "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],
171
- "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],
172
- "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],
173
- "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",
174
- "inner": "inset 0 2px 4px 0 rgba(0,0,0,0.05)"
167
+ "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],
168
+ "none": "0 0 rgb(0 0 0 / 0)",
169
+ "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",
170
+ "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],
171
+ "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],
172
+ "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],
173
+ "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",
174
+ "inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
175
175
  };
176
176
  const easing = {
177
177
  "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -187,6 +187,9 @@ const ringWidth = {
187
187
  const zIndex = {
188
188
  auto: "auto"
189
189
  };
190
+ const media = {
191
+ mouse: "(hover) and (pointer: fine)"
192
+ };
190
193
 
191
194
  const blur = {
192
195
  "DEFAULT": "8px",
@@ -199,13 +202,13 @@ const blur = {
199
202
  "3xl": "64px"
200
203
  };
201
204
  const dropShadow = {
202
- "DEFAULT": ["0 1px 2px rgba(0,0,0,0.1)", "0 1px 1px rgba(0,0,0,0.06)"],
203
- "sm": "0 1px 1px rgba(0,0,0,0.05)",
204
- "md": ["0 4px 3px rgba(0,0,0,0.07)", "0 2px 2px rgba(0,0,0,0.06)"],
205
- "lg": ["0 10px 8px rgba(0,0,0,0.04)", "0 4px 3px rgba(0,0,0,0.1)"],
206
- "xl": ["0 20px 13px rgba(0,0,0,0.03)", "0 8px 5px rgba(0,0,0,0.08)"],
207
- "2xl": "0 25px 25px rgba(0,0,0,0.15)",
208
- "none": "0 0 rgba(0,0,0,0)"
205
+ "DEFAULT": ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
206
+ "sm": "0 1px 1px rgb(0 0 0 / 0.05)",
207
+ "md": ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
208
+ "lg": ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
209
+ "xl": ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
210
+ "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
211
+ "none": "0 0 rgb(0 0 0 / 0)"
209
212
  };
210
213
 
211
214
  const baseSize = {
@@ -286,7 +289,8 @@ const theme = {
286
289
  ringWidth,
287
290
  preflightBase,
288
291
  containers,
289
- zIndex
292
+ zIndex,
293
+ media
290
294
  };
291
295
 
292
296
  exports.colors = colors.colors;
@@ -308,6 +312,7 @@ exports.lineHeight = lineHeight;
308
312
  exports.lineWidth = lineWidth;
309
313
  exports.maxHeight = maxHeight;
310
314
  exports.maxWidth = maxWidth;
315
+ exports.media = media;
311
316
  exports.preflightBase = preflightBase;
312
317
  exports.ringWidth = ringWidth;
313
318
  exports.spacing = spacing;
package/dist/theme.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.cjs';
2
- export { t as theme } from './shared/preset-mini.302bff75.cjs';
3
- import { T as Theme } from './shared/preset-mini.bc674518.cjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.bc674518.cjs';
2
+ export { t as theme } from './shared/preset-mini.5e80d683.cjs';
3
+ import { T as Theme } from './shared/preset-mini.6e321bc3.cjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.6e321bc3.cjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
@@ -157,6 +157,9 @@ declare const ringWidth: {
157
157
  declare const zIndex: {
158
158
  auto: string;
159
159
  };
160
+ declare const media: {
161
+ mouse: string;
162
+ };
160
163
 
161
164
  declare const preflightBase: {
162
165
  '--un-ring-inset': string;
@@ -264,4 +267,4 @@ declare const containers: {
264
267
  [k: string]: string;
265
268
  };
266
269
 
267
- export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
270
+ export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/theme.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.mjs';
2
- export { t as theme } from './shared/preset-mini.f12010ce.mjs';
3
- import { T as Theme } from './shared/preset-mini.bc674518.mjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.bc674518.mjs';
2
+ export { t as theme } from './shared/preset-mini.2492ad3a.mjs';
3
+ import { T as Theme } from './shared/preset-mini.6e321bc3.mjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.6e321bc3.mjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
@@ -157,6 +157,9 @@ declare const ringWidth: {
157
157
  declare const zIndex: {
158
158
  auto: string;
159
159
  };
160
+ declare const media: {
161
+ mouse: string;
162
+ };
160
163
 
161
164
  declare const preflightBase: {
162
165
  '--un-ring-inset': string;
@@ -264,4 +267,4 @@ declare const containers: {
264
267
  [k: string]: string;
265
268
  };
266
269
 
267
- export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
270
+ export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.js';
2
- export { t as theme } from './shared/preset-mini.0a392a7c.js';
3
- import { T as Theme } from './shared/preset-mini.bc674518.js';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.bc674518.js';
2
+ export { t as theme } from './shared/preset-mini.31acf3c2.js';
3
+ import { T as Theme } from './shared/preset-mini.6e321bc3.js';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.6e321bc3.js';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
@@ -157,6 +157,9 @@ declare const ringWidth: {
157
157
  declare const zIndex: {
158
158
  auto: string;
159
159
  };
160
+ declare const media: {
161
+ mouse: string;
162
+ };
160
163
 
161
164
  declare const preflightBase: {
162
165
  '--un-ring-inset': string;
@@ -264,4 +267,4 @@ declare const containers: {
264
267
  [k: string]: string;
265
268
  };
266
269
 
267
- export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
270
+ export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/theme.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { colors } from './colors.mjs';
2
- import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.7f0d0a40.mjs';
3
- import './shared/preset-mini.8929b018.mjs';
2
+ import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.7fce5950.mjs';
3
+ import './shared/preset-mini.87b98aea.mjs';
4
4
  import '@unocss/rule-utils';
5
5
  import '@unocss/core';
6
6
 
@@ -73,12 +73,12 @@ const textStrokeWidth = {
73
73
  lg: "thick"
74
74
  };
75
75
  const textShadow = {
76
- DEFAULT: ["0 0 1px rgba(0,0,0,0.2)", "0 0 1px rgba(1,0,5,0.1)"],
77
- none: "0 0 rgba(0,0,0,0)",
78
- sm: "1px 1px 3px rgba(36,37,47,0.25)",
79
- md: ["0 1px 2px rgba(30,29,39,0.19)", "1px 2px 4px rgba(54,64,147,0.18)"],
80
- lg: ["3px 3px 6px rgba(0,0,0,0.26)", "0 0 5px rgba(15,3,86,0.22)"],
81
- xl: ["1px 1px 3px rgba(0,0,0,0.29)", "2px 4px 7px rgba(73,64,125,0.35)"]
76
+ DEFAULT: ["0 0 1px rgb(0 0 0 / 0.2)", "0 0 1px rgb(1 0 5 / 0.1)"],
77
+ none: "0 0 rgb(0 0 0 / 0)",
78
+ sm: "1px 1px 3px rgb(36 37 47 / 0.25)",
79
+ md: ["0 1px 2px rgb(30 29 39 / 0.19)", "1px 2px 4px rgb(54 64 147 / 0.18)"],
80
+ lg: ["3px 3px 6px rgb(0 0 0 / 0.26)", "0 0 5px rgb(15 3 86 / 0.22)"],
81
+ xl: ["1px 1px 3px rgb(0 0 0 / 0.29)", "2px 4px 7px rgb(73 64 125 / 0.35)"]
82
82
  };
83
83
  const lineHeight = {
84
84
  none: "1",
@@ -162,14 +162,14 @@ const borderRadius = {
162
162
  "full": "9999px"
163
163
  };
164
164
  const boxShadow = {
165
- "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],
166
- "none": "0 0 rgba(0,0,0,0)",
167
- "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",
168
- "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],
169
- "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],
170
- "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],
171
- "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",
172
- "inner": "inset 0 2px 4px 0 rgba(0,0,0,0.05)"
165
+ "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],
166
+ "none": "0 0 rgb(0 0 0 / 0)",
167
+ "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",
168
+ "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],
169
+ "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],
170
+ "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],
171
+ "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",
172
+ "inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
173
173
  };
174
174
  const easing = {
175
175
  "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -185,6 +185,9 @@ const ringWidth = {
185
185
  const zIndex = {
186
186
  auto: "auto"
187
187
  };
188
+ const media = {
189
+ mouse: "(hover) and (pointer: fine)"
190
+ };
188
191
 
189
192
  const blur = {
190
193
  "DEFAULT": "8px",
@@ -197,13 +200,13 @@ const blur = {
197
200
  "3xl": "64px"
198
201
  };
199
202
  const dropShadow = {
200
- "DEFAULT": ["0 1px 2px rgba(0,0,0,0.1)", "0 1px 1px rgba(0,0,0,0.06)"],
201
- "sm": "0 1px 1px rgba(0,0,0,0.05)",
202
- "md": ["0 4px 3px rgba(0,0,0,0.07)", "0 2px 2px rgba(0,0,0,0.06)"],
203
- "lg": ["0 10px 8px rgba(0,0,0,0.04)", "0 4px 3px rgba(0,0,0,0.1)"],
204
- "xl": ["0 20px 13px rgba(0,0,0,0.03)", "0 8px 5px rgba(0,0,0,0.08)"],
205
- "2xl": "0 25px 25px rgba(0,0,0,0.15)",
206
- "none": "0 0 rgba(0,0,0,0)"
203
+ "DEFAULT": ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
204
+ "sm": "0 1px 1px rgb(0 0 0 / 0.05)",
205
+ "md": ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
206
+ "lg": ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
207
+ "xl": ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
208
+ "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
209
+ "none": "0 0 rgb(0 0 0 / 0)"
207
210
  };
208
211
 
209
212
  const baseSize = {
@@ -284,7 +287,8 @@ const theme = {
284
287
  ringWidth,
285
288
  preflightBase,
286
289
  containers,
287
- zIndex
290
+ zIndex,
291
+ media
288
292
  };
289
293
 
290
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, colors, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, theme, verticalBreakpoints, width, wordSpacing, zIndex };
294
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, colors, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, theme, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./shared/preset-mini.3a376028.cjs');
3
+ const utils = require('./shared/preset-mini.ec90d1ba.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  require('@unocss/core');
6
6
 
@@ -10,6 +10,7 @@ exports.CONTROL_MINI_NO_NEGATIVE = utils.CONTROL_MINI_NO_NEGATIVE;
10
10
  exports.colorResolver = utils.colorResolver;
11
11
  exports.colorableShadows = utils.colorableShadows;
12
12
  exports.cornerMap = utils.cornerMap;
13
+ exports.cssMathFnRE = utils.cssMathFnRE;
13
14
  exports.directionMap = utils.directionMap;
14
15
  exports.directionSize = utils.directionSize;
15
16
  exports.globalKeywords = utils.globalKeywords;
@@ -17,6 +18,7 @@ exports.h = utils.h;
17
18
  exports.handler = utils.handler;
18
19
  exports.hasParseableColor = utils.hasParseableColor;
19
20
  exports.insetMap = utils.insetMap;
21
+ exports.isCSSMathFn = utils.isCSSMathFn;
20
22
  exports.makeGlobalStaticRules = utils.makeGlobalStaticRules;
21
23
  exports.parseColor = utils.parseColor;
22
24
  exports.positionMap = utils.positionMap;
package/dist/utils.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.39336e3c.cjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.c3f13a30.cjs';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.bc674518.cjs';
5
+ import './shared/preset-mini.6e321bc3.cjs';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -10,6 +10,7 @@ declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
11
  declare const positionMap: Record<string, string>;
12
12
  declare const globalKeywords: string[];
13
+ declare const cssMathFnRE: RegExp;
13
14
 
14
15
  declare function numberWithUnit(str: string): string | undefined;
15
16
  declare function auto(str: string): "auto" | undefined;
@@ -53,4 +54,4 @@ declare namespace handlers {
53
54
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
55
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
 
56
- export { cornerMap, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
57
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.26085c20.mjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.e0376460.mjs';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.bc674518.mjs';
5
+ import './shared/preset-mini.6e321bc3.mjs';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -10,6 +10,7 @@ declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
11
  declare const positionMap: Record<string, string>;
12
12
  declare const globalKeywords: string[];
13
+ declare const cssMathFnRE: RegExp;
13
14
 
14
15
  declare function numberWithUnit(str: string): string | undefined;
15
16
  declare function auto(str: string): "auto" | undefined;
@@ -53,4 +54,4 @@ declare namespace handlers {
53
54
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
55
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
 
56
- export { cornerMap, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
57
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.3db5f008.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.94582694.js';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.bc674518.js';
5
+ import './shared/preset-mini.6e321bc3.js';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -10,6 +10,7 @@ declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
11
  declare const positionMap: Record<string, string>;
12
12
  declare const globalKeywords: string[];
13
+ declare const cssMathFnRE: RegExp;
13
14
 
14
15
  declare function numberWithUnit(str: string): string | undefined;
15
16
  declare function auto(str: string): "auto" | undefined;
@@ -53,4 +54,4 @@ declare namespace handlers {
53
54
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
55
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
 
56
- export { cornerMap, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
57
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, b as colorableShadows, f as cornerMap, e as directionMap, k as directionSize, g as globalKeywords, h, l as handler, a as hasParseableColor, i as insetMap, m as makeGlobalStaticRules, p as parseColor, d as positionMap, j as resolveBreakpoints, r as resolveVerticalBreakpoints, s as splitShorthand, v as valueHandlers, x as xyzMap } from './shared/preset-mini.8929b018.mjs';
1
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, b as colorableShadows, f as cornerMap, l as cssMathFnRE, e as directionMap, k as directionSize, g as globalKeywords, h, o as handler, a as hasParseableColor, j as insetMap, i as isCSSMathFn, m as makeGlobalStaticRules, p as parseColor, d as positionMap, r as resolveBreakpoints, q as resolveVerticalBreakpoints, s as splitShorthand, v as valueHandlers, x as xyzMap } from './shared/preset-mini.87b98aea.mjs';
2
2
  export * from '@unocss/rule-utils';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const ruleUtils = require('@unocss/rule-utils');
4
- const utils = require('./shared/preset-mini.3a376028.cjs');
4
+ const utils = require('./shared/preset-mini.ec90d1ba.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
7
7
  const variantAria = {
@@ -35,7 +35,7 @@ function variantBreakpoints() {
35
35
  return {
36
36
  name: "breakpoints",
37
37
  match(matcher, context) {
38
- const variantEntries = Object.entries(utils.resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
38
+ const variantEntries = (utils.resolveBreakpoints(context) ?? []).map(({ point, size }, idx) => [point, size, idx]);
39
39
  for (const [point, size, idx] of variantEntries) {
40
40
  if (!regexCache[point])
41
41
  regexCache[point] = new RegExp(`^((?:([al]t-|[<~]|max-))?${point}(?:${context.generator.config.separators.join("|")}))`);