@unocss/preset-mini 0.58.6 → 0.58.7

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 (33) hide show
  1. package/dist/index.cjs +5 -5
  2. package/dist/index.d.cts +1 -1
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.mjs +6 -6
  6. package/dist/rules.cjs +3 -3
  7. package/dist/rules.mjs +3 -3
  8. package/dist/shared/{preset-mini.Br134YCU.mjs → preset-mini.BDqq0hCv.mjs} +4 -4
  9. package/dist/shared/{preset-mini.Bn80FiPC.d.cts → preset-mini.BP7cviYW.d.cts} +2 -1
  10. package/dist/shared/{preset-mini.X5oTOtIs.mjs → preset-mini.BQqGYFkE.mjs} +1 -1
  11. package/dist/shared/{preset-mini.DFa-1lZf.mjs → preset-mini.BXHWLQ5I.mjs} +3 -3
  12. package/dist/shared/{preset-mini.CNCkGnlK.mjs → preset-mini.CV-SKsbk.mjs} +10 -2
  13. package/dist/shared/{preset-mini.Cc6dq-PF.d.mts → preset-mini.CdxIVkIz.d.mts} +2 -1
  14. package/dist/shared/{preset-mini.Czu8Mn6N.cjs → preset-mini.CdzxbzG1.cjs} +11 -1
  15. package/dist/shared/{preset-mini.BxBfcoUz.cjs → preset-mini.D6RG4aSN.cjs} +1 -1
  16. package/dist/shared/{preset-mini.DSkIvCb3.d.ts → preset-mini.Dh95saIh.d.ts} +2 -1
  17. package/dist/shared/{preset-mini.8dLXLISR.mjs → preset-mini.HNDEq_D9.mjs} +1 -1
  18. package/dist/shared/{preset-mini.Cw_e0bCs.cjs → preset-mini.aMVgvy_A.cjs} +4 -4
  19. package/dist/shared/{preset-mini.D4MQQDiO.cjs → preset-mini.nvs6mIBT.cjs} +3 -3
  20. package/dist/shared/{preset-mini.0WrbUoK3.cjs → preset-mini.vGRJlUxE.cjs} +1 -1
  21. package/dist/theme.cjs +3 -3
  22. package/dist/theme.mjs +3 -3
  23. package/dist/utils.cjs +3 -1
  24. package/dist/utils.d.cts +3 -2
  25. package/dist/utils.d.mts +3 -2
  26. package/dist/utils.d.ts +3 -2
  27. package/dist/utils.mjs +1 -1
  28. package/dist/variants.cjs +2 -2
  29. package/dist/variants.d.cts +1 -1
  30. package/dist/variants.d.mts +1 -1
  31. package/dist/variants.d.ts +1 -1
  32. package/dist/variants.mjs +2 -2
  33. package/package.json +4 -4
package/dist/index.cjs CHANGED
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const core = require('@unocss/core');
6
6
  const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
7
- const utilities = require('./shared/preset-mini.Czu8Mn6N.cjs');
8
- const _default = require('./shared/preset-mini.BxBfcoUz.cjs');
9
- const _default$1 = require('./shared/preset-mini.D4MQQDiO.cjs');
10
- const _default$2 = require('./shared/preset-mini.0WrbUoK3.cjs');
7
+ const utilities = require('./shared/preset-mini.CdzxbzG1.cjs');
8
+ const _default = require('./shared/preset-mini.D6RG4aSN.cjs');
9
+ const _default$1 = require('./shared/preset-mini.nvs6mIBT.cjs');
10
+ const _default$2 = require('./shared/preset-mini.vGRJlUxE.cjs');
11
11
  const colors = require('./colors.cjs');
12
12
  require('@unocss/rule-utils');
13
- require('./shared/preset-mini.Cw_e0bCs.cjs');
13
+ require('./shared/preset-mini.aMVgvy_A.cjs');
14
14
 
15
15
  const preflights = [
16
16
  {
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.cjs';
5
5
  export { t as theme } from './shared/preset-mini.bn9iWcrm.cjs';
6
6
  export { colors } from './colors.cjs';
7
- export { p as parseColor } from './shared/preset-mini.Bn80FiPC.cjs';
7
+ export { p as parseColor } from './shared/preset-mini.BP7cviYW.cjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.mjs';
5
5
  export { t as theme } from './shared/preset-mini.Cu-XLFZP.mjs';
6
6
  export { colors } from './colors.mjs';
7
- export { p as parseColor } from './shared/preset-mini.Cc6dq-PF.mjs';
7
+ export { p as parseColor } from './shared/preset-mini.CdxIVkIz.mjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.P5Rzuhf5.js';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.js';
5
5
  export { t as theme } from './shared/preset-mini.DIb57JCK.js';
6
6
  export { colors } from './colors.js';
7
- export { p as parseColor } from './shared/preset-mini.DSkIvCb3.js';
7
+ export { p as parseColor } from './shared/preset-mini.Dh95saIh.js';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { entriesToCss, toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { g as globalKeywords } from './shared/preset-mini.CNCkGnlK.mjs';
4
- export { f as parseColor } from './shared/preset-mini.CNCkGnlK.mjs';
5
- import { t as theme } from './shared/preset-mini.8dLXLISR.mjs';
6
- import { r as rules } from './shared/preset-mini.DFa-1lZf.mjs';
7
- import { h as variants } from './shared/preset-mini.X5oTOtIs.mjs';
3
+ import { g as globalKeywords } from './shared/preset-mini.CV-SKsbk.mjs';
4
+ export { j as parseColor } from './shared/preset-mini.CV-SKsbk.mjs';
5
+ import { t as theme } from './shared/preset-mini.HNDEq_D9.mjs';
6
+ import { r as rules } from './shared/preset-mini.BXHWLQ5I.mjs';
7
+ import { h as variants } from './shared/preset-mini.BQqGYFkE.mjs';
8
8
  export { colors } from './colors.mjs';
9
9
  import '@unocss/rule-utils';
10
- import './shared/preset-mini.Br134YCU.mjs';
10
+ import './shared/preset-mini.BDqq0hCv.mjs';
11
11
 
12
12
  const preflights = [
13
13
  {
package/dist/rules.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const _default = require('./shared/preset-mini.D4MQQDiO.cjs');
4
- const transform = require('./shared/preset-mini.Cw_e0bCs.cjs');
5
- require('./shared/preset-mini.Czu8Mn6N.cjs');
3
+ const _default = require('./shared/preset-mini.nvs6mIBT.cjs');
4
+ const transform = require('./shared/preset-mini.aMVgvy_A.cjs');
5
+ require('./shared/preset-mini.CdzxbzG1.cjs');
6
6
  require('@unocss/core');
7
7
  require('@unocss/rule-utils');
8
8
 
package/dist/rules.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.DFa-1lZf.mjs';
2
- export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.Br134YCU.mjs';
3
- import './shared/preset-mini.CNCkGnlK.mjs';
1
+ export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.BXHWLQ5I.mjs';
2
+ export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.BDqq0hCv.mjs';
3
+ import './shared/preset-mini.CV-SKsbk.mjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/rule-utils';
@@ -1,4 +1,4 @@
1
- import { b as h, n as makeGlobalStaticRules, g as globalKeywords, j as colorResolver, o as isCSSMathFn, l as hasParseableColor, k as colorableShadows, p as positionMap, x as xyzMap } from './preset-mini.CNCkGnlK.mjs';
1
+ import { e as h, o as makeGlobalStaticRules, g as globalKeywords, k as colorResolver, q as isCSSMathFn, m as hasParseableColor, l as colorableShadows, p as positionMap, u as transformXYZ } from './preset-mini.CV-SKsbk.mjs';
2
2
 
3
3
  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"];
4
4
  const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
@@ -281,7 +281,7 @@ function handleTranslate([, d, b], { theme }) {
281
281
  const v = theme.spacing?.[b] ?? h.bracket.cssvar.fraction.rem(b);
282
282
  if (v != null) {
283
283
  return [
284
- ...xyzMap[d].map((i) => [`--un-translate${i}`, v]),
284
+ ...transformXYZ(d, v, "translate"),
285
285
  ["transform", transformCpu]
286
286
  ];
287
287
  }
@@ -290,7 +290,7 @@ function handleScale([, d, b]) {
290
290
  const v = h.bracket.cssvar.fraction.percent(b);
291
291
  if (v != null) {
292
292
  return [
293
- ...xyzMap[d].map((i) => [`--un-scale${i}`, v]),
293
+ ...transformXYZ(d, v, "scale"),
294
294
  ["transform", transformCpu]
295
295
  ];
296
296
  }
@@ -319,7 +319,7 @@ function handleSkew([, d, b]) {
319
319
  const v = h.bracket.cssvar.degree(b);
320
320
  if (v != null) {
321
321
  return [
322
- ...xyzMap[d].map((i) => [`--un-skew${i}`, v]),
322
+ ...transformXYZ(d, v, "skew"),
323
323
  ["transform", transformCpu]
324
324
  ];
325
325
  }
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
70
70
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
71
71
  declare function isCSSMathFn(value: string | undefined): boolean;
72
72
  declare function isSize(str: string): boolean;
73
+ declare function transformXYZ(d: string, v: string, name: string): [string, string][];
73
74
 
74
- export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
75
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
@@ -1,4 +1,4 @@
1
- import { b as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, a as cssMathFnRE } from './preset-mini.CNCkGnlK.mjs';
1
+ import { e as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, b as cssMathFnRE } from './preset-mini.CV-SKsbk.mjs';
2
2
  import { variantGetParameter, variantGetBracket, variantMatcher, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
3
3
  import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
4
4
 
@@ -1,7 +1,7 @@
1
- import { g as globalKeywords, b as h, o as isCSSMathFn, j as colorResolver, d as directionMap, l as hasParseableColor, c as cornerMap, f as parseColor, q as isSize, n as makeGlobalStaticRules, k as colorableShadows, s as splitShorthand, i as insetMap, r as resolveBreakpoints, e as directionSize } from './preset-mini.CNCkGnlK.mjs';
1
+ import { g as globalKeywords, e as h, q as isCSSMathFn, k as colorResolver, d as directionMap, m as hasParseableColor, c as cornerMap, j as parseColor, t as isSize, o as makeGlobalStaticRules, l as colorableShadows, s as splitShorthand, i as insetMap, r as resolveBreakpoints, f as directionSize } from './preset-mini.CV-SKsbk.mjs';
2
2
  import { colorToString, colorOpacityToString } from '@unocss/rule-utils';
3
3
  import { warnOnce, toArray } from '@unocss/core';
4
- import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.Br134YCU.mjs';
4
+ import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.BDqq0hCv.mjs';
5
5
 
6
6
  const verticalAlignAlias = {
7
7
  "mid": "middle",
@@ -181,7 +181,7 @@ const opacity = [
181
181
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: h.bracket.percent.cssvar(d) })]
182
182
  ];
183
183
  const bgUrlRE = /^\[url\(.+\)\]$/;
184
- const bgLengthRE = /^\[length:.+\]$/;
184
+ const bgLengthRE = /^\[(length|size):.+\]$/;
185
185
  const bgPositionRE = /^\[position:.+\]$/;
186
186
  const bgGradientRE = /^\[(linear|conic|radial)-gradient\(.+\)\]$/;
187
187
  const bgColors = [
@@ -70,6 +70,7 @@ const xyzMap = {
70
70
  "z": ["-z"],
71
71
  "": ["-x", "-y"]
72
72
  };
73
+ const xyzArray = ["x", "y", "z"];
73
74
  const basePositionMap = [
74
75
  "top",
75
76
  "top center",
@@ -111,7 +112,8 @@ const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
111
112
  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;
112
113
  const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
113
114
  const unitOnlyRE = /^(px)$/i;
114
- const bracketTypeRe = /^\[(color|length|position|quoted|string):/i;
115
+ const bracketTypeRe = /^\[(color|length|size|position|quoted|string):/i;
116
+ const splitComma = /,(?![^()]*\))/g;
115
117
 
116
118
  const cssProps = [
117
119
  // basic props
@@ -541,5 +543,11 @@ function isSize(str) {
541
543
  str = str.slice(1, -1);
542
544
  return cssMathFnRE.test(str) || numberWithUnitRE.test(str);
543
545
  }
546
+ function transformXYZ(d, v, name) {
547
+ const values = v.split(splitComma);
548
+ if (d || !d && values.length === 1)
549
+ return xyzMap[d].map((i) => [`--un-${name}${i}`, v]);
550
+ return values.map((v2, i) => [`--un-${name}-${xyzArray[i]}`, v2]);
551
+ }
544
552
 
545
- export { CONTROL_MINI_NO_NEGATIVE as C, cssMathFnRE as a, h as b, cornerMap as c, directionMap as d, directionSize as e, parseColor as f, globalKeywords as g, handler as h, insetMap as i, colorResolver as j, colorableShadows as k, hasParseableColor as l, resolveVerticalBreakpoints as m, makeGlobalStaticRules as n, isCSSMathFn as o, positionMap as p, isSize as q, resolveBreakpoints as r, splitShorthand as s, valueHandlers as v, xyzMap as x };
553
+ export { CONTROL_MINI_NO_NEGATIVE as C, xyzArray as a, cssMathFnRE as b, cornerMap as c, directionMap as d, h as e, directionSize as f, globalKeywords as g, handler as h, insetMap as i, parseColor as j, colorResolver as k, colorableShadows as l, hasParseableColor as m, resolveVerticalBreakpoints as n, makeGlobalStaticRules as o, positionMap as p, isCSSMathFn as q, resolveBreakpoints as r, splitShorthand as s, isSize as t, transformXYZ as u, valueHandlers as v, xyzMap as x };
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
70
70
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
71
71
  declare function isCSSMathFn(value: string | undefined): boolean;
72
72
  declare function isSize(str: string): boolean;
73
+ declare function transformXYZ(d: string, v: string, name: string): [string, string][];
73
74
 
74
- export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
75
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
@@ -72,6 +72,7 @@ const xyzMap = {
72
72
  "z": ["-z"],
73
73
  "": ["-x", "-y"]
74
74
  };
75
+ const xyzArray = ["x", "y", "z"];
75
76
  const basePositionMap = [
76
77
  "top",
77
78
  "top center",
@@ -113,7 +114,8 @@ const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
113
114
  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;
114
115
  const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
115
116
  const unitOnlyRE = /^(px)$/i;
116
- const bracketTypeRe = /^\[(color|length|position|quoted|string):/i;
117
+ const bracketTypeRe = /^\[(color|length|size|position|quoted|string):/i;
118
+ const splitComma = /,(?![^()]*\))/g;
117
119
 
118
120
  const cssProps = [
119
121
  // basic props
@@ -543,6 +545,12 @@ function isSize(str) {
543
545
  str = str.slice(1, -1);
544
546
  return cssMathFnRE.test(str) || numberWithUnitRE.test(str);
545
547
  }
548
+ function transformXYZ(d, v, name) {
549
+ const values = v.split(splitComma);
550
+ if (d || !d && values.length === 1)
551
+ return xyzMap[d].map((i) => [`--un-${name}${i}`, v]);
552
+ return values.map((v2, i) => [`--un-${name}-${xyzArray[i]}`, v2]);
553
+ }
546
554
 
547
555
  exports.CONTROL_MINI_NO_NEGATIVE = CONTROL_MINI_NO_NEGATIVE;
548
556
  exports.colorResolver = colorResolver;
@@ -564,5 +572,7 @@ exports.positionMap = positionMap;
564
572
  exports.resolveBreakpoints = resolveBreakpoints;
565
573
  exports.resolveVerticalBreakpoints = resolveVerticalBreakpoints;
566
574
  exports.splitShorthand = splitShorthand;
575
+ exports.transformXYZ = transformXYZ;
567
576
  exports.valueHandlers = valueHandlers;
577
+ exports.xyzArray = xyzArray;
568
578
  exports.xyzMap = xyzMap;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('../colors.cjs');
4
- const transform = require('./preset-mini.Cw_e0bCs.cjs');
4
+ const transform = require('./preset-mini.aMVgvy_A.cjs');
5
5
 
6
6
  const fontFamily = {
7
7
  sans: [
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
70
70
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
71
71
  declare function isCSSMathFn(value: string | undefined): boolean;
72
72
  declare function isSize(str: string): boolean;
73
+ declare function transformXYZ(d: string, v: string, name: string): [string, string][];
73
74
 
74
- export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
75
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
@@ -1,5 +1,5 @@
1
1
  import { colors } from '../colors.mjs';
2
- import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.Br134YCU.mjs';
2
+ import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.BDqq0hCv.mjs';
3
3
 
4
4
  const fontFamily = {
5
5
  sans: [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utilities = require('./preset-mini.Czu8Mn6N.cjs');
3
+ const utilities = require('./preset-mini.CdzxbzG1.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"];
@@ -283,7 +283,7 @@ function handleTranslate([, d, b], { theme }) {
283
283
  const v = theme.spacing?.[b] ?? utilities.h.bracket.cssvar.fraction.rem(b);
284
284
  if (v != null) {
285
285
  return [
286
- ...utilities.xyzMap[d].map((i) => [`--un-translate${i}`, v]),
286
+ ...utilities.transformXYZ(d, v, "translate"),
287
287
  ["transform", transformCpu]
288
288
  ];
289
289
  }
@@ -292,7 +292,7 @@ function handleScale([, d, b]) {
292
292
  const v = utilities.h.bracket.cssvar.fraction.percent(b);
293
293
  if (v != null) {
294
294
  return [
295
- ...utilities.xyzMap[d].map((i) => [`--un-scale${i}`, v]),
295
+ ...utilities.transformXYZ(d, v, "scale"),
296
296
  ["transform", transformCpu]
297
297
  ];
298
298
  }
@@ -321,7 +321,7 @@ function handleSkew([, d, b]) {
321
321
  const v = utilities.h.bracket.cssvar.degree(b);
322
322
  if (v != null) {
323
323
  return [
324
- ...utilities.xyzMap[d].map((i) => [`--un-skew${i}`, v]),
324
+ ...utilities.transformXYZ(d, v, "skew"),
325
325
  ["transform", transformCpu]
326
326
  ];
327
327
  }
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const utilities = require('./preset-mini.Czu8Mn6N.cjs');
3
+ const utilities = require('./preset-mini.CdzxbzG1.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  const core = require('@unocss/core');
6
- const transform = require('./preset-mini.Cw_e0bCs.cjs');
6
+ const transform = require('./preset-mini.aMVgvy_A.cjs');
7
7
 
8
8
  const verticalAlignAlias = {
9
9
  "mid": "middle",
@@ -183,7 +183,7 @@ const opacity = [
183
183
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: utilities.h.bracket.percent.cssvar(d) })]
184
184
  ];
185
185
  const bgUrlRE = /^\[url\(.+\)\]$/;
186
- const bgLengthRE = /^\[length:.+\]$/;
186
+ const bgLengthRE = /^\[(length|size):.+\]$/;
187
187
  const bgPositionRE = /^\[position:.+\]$/;
188
188
  const bgGradientRE = /^\[(linear|conic|radial)-gradient\(.+\)\]$/;
189
189
  const bgColors = [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utilities = require('./preset-mini.Czu8Mn6N.cjs');
3
+ const utilities = require('./preset-mini.CdzxbzG1.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  const core = require('@unocss/core');
6
6
 
package/dist/theme.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./colors.cjs');
4
- const _default = require('./shared/preset-mini.BxBfcoUz.cjs');
5
- require('./shared/preset-mini.Cw_e0bCs.cjs');
6
- require('./shared/preset-mini.Czu8Mn6N.cjs');
4
+ const _default = require('./shared/preset-mini.D6RG4aSN.cjs');
5
+ require('./shared/preset-mini.aMVgvy_A.cjs');
6
+ require('./shared/preset-mini.CdzxbzG1.cjs');
7
7
  require('@unocss/core');
8
8
  require('@unocss/rule-utils');
9
9
 
package/dist/theme.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { colors } from './colors.mjs';
2
- export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.8dLXLISR.mjs';
3
- import './shared/preset-mini.Br134YCU.mjs';
4
- import './shared/preset-mini.CNCkGnlK.mjs';
2
+ export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.HNDEq_D9.mjs';
3
+ import './shared/preset-mini.BDqq0hCv.mjs';
4
+ import './shared/preset-mini.CV-SKsbk.mjs';
5
5
  import '@unocss/core';
6
6
  import '@unocss/rule-utils';
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utilities = require('./shared/preset-mini.Czu8Mn6N.cjs');
3
+ const utilities = require('./shared/preset-mini.CdzxbzG1.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  require('@unocss/core');
6
6
 
@@ -26,7 +26,9 @@ exports.positionMap = utilities.positionMap;
26
26
  exports.resolveBreakpoints = utilities.resolveBreakpoints;
27
27
  exports.resolveVerticalBreakpoints = utilities.resolveVerticalBreakpoints;
28
28
  exports.splitShorthand = utilities.splitShorthand;
29
+ exports.transformXYZ = utilities.transformXYZ;
29
30
  exports.valueHandlers = utilities.valueHandlers;
31
+ exports.xyzArray = utilities.xyzArray;
30
32
  exports.xyzMap = utilities.xyzMap;
31
33
  Object.prototype.hasOwnProperty.call(ruleUtils, '__proto__') &&
32
34
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
package/dist/utils.d.cts CHANGED
@@ -1,6 +1,6 @@
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, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.Bn80FiPC.cjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.BP7cviYW.cjs';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.P5Rzuhf5.cjs';
6
6
 
@@ -8,6 +8,7 @@ declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
9
9
  declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
+ declare const xyzArray: string[];
11
12
  declare const positionMap: Record<string, string>;
12
13
  declare const globalKeywords: string[];
13
14
  declare const cssMathFnRE: RegExp;
@@ -54,4 +55,4 @@ declare namespace handlers {
54
55
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
57
 
57
- export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
58
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
package/dist/utils.d.mts CHANGED
@@ -1,6 +1,6 @@
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, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.Cc6dq-PF.mjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.CdxIVkIz.mjs';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.P5Rzuhf5.mjs';
6
6
 
@@ -8,6 +8,7 @@ declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
9
9
  declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
+ declare const xyzArray: string[];
11
12
  declare const positionMap: Record<string, string>;
12
13
  declare const globalKeywords: string[];
13
14
  declare const cssMathFnRE: RegExp;
@@ -54,4 +55,4 @@ declare namespace handlers {
54
55
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
57
 
57
- export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
58
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
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, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.DSkIvCb3.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.Dh95saIh.js';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.P5Rzuhf5.js';
6
6
 
@@ -8,6 +8,7 @@ declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
9
9
  declare const cornerMap: Record<string, string[]>;
10
10
  declare const xyzMap: Record<string, string[]>;
11
+ declare const xyzArray: string[];
11
12
  declare const positionMap: Record<string, string>;
12
13
  declare const globalKeywords: string[];
13
14
  declare const cssMathFnRE: RegExp;
@@ -54,4 +55,4 @@ declare namespace handlers {
54
55
  declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
56
  declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
57
 
57
- export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
58
+ export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_MINI_NO_NEGATIVE, j as colorResolver, k as colorableShadows, c as cornerMap, a as cssMathFnRE, d as directionMap, e as directionSize, g as globalKeywords, b as h, h as handler, l as hasParseableColor, i as insetMap, o as isCSSMathFn, q as isSize, n as makeGlobalStaticRules, f as parseColor, p as positionMap, r as resolveBreakpoints, m as resolveVerticalBreakpoints, s as splitShorthand, v as valueHandlers, x as xyzMap } from './shared/preset-mini.CNCkGnlK.mjs';
1
+ export { C as CONTROL_MINI_NO_NEGATIVE, k as colorResolver, l as colorableShadows, c as cornerMap, b as cssMathFnRE, d as directionMap, f as directionSize, g as globalKeywords, e as h, h as handler, m as hasParseableColor, i as insetMap, q as isCSSMathFn, t as isSize, o as makeGlobalStaticRules, j as parseColor, p as positionMap, r as resolveBreakpoints, n as resolveVerticalBreakpoints, s as splitShorthand, u as transformXYZ, v as valueHandlers, a as xyzArray, x as xyzMap } from './shared/preset-mini.CV-SKsbk.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
- const _default = require('./shared/preset-mini.0WrbUoK3.cjs');
4
- require('./shared/preset-mini.Czu8Mn6N.cjs');
3
+ const _default = require('./shared/preset-mini.vGRJlUxE.cjs');
4
+ require('./shared/preset-mini.CdzxbzG1.cjs');
5
5
  require('@unocss/core');
6
6
  require('@unocss/rule-utils');
7
7
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.cjs';
3
3
  import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
4
4
  import './shared/preset-mini.bn9iWcrm.cjs';
5
5
  import './colors.cjs';
6
- import './shared/preset-mini.Bn80FiPC.cjs';
6
+ import './shared/preset-mini.BP7cviYW.cjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.mjs';
3
3
  import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
4
4
  import './shared/preset-mini.Cu-XLFZP.mjs';
5
5
  import './colors.mjs';
6
- import './shared/preset-mini.Cc6dq-PF.mjs';
6
+ import './shared/preset-mini.CdxIVkIz.mjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.js';
3
3
  import { T as Theme } from './shared/preset-mini.P5Rzuhf5.js';
4
4
  import './shared/preset-mini.DIb57JCK.js';
5
5
  import './colors.js';
6
- import './shared/preset-mini.DSkIvCb3.js';
6
+ import './shared/preset-mini.Dh95saIh.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantContainerQuery, n as variantCssLayer, l as variantCustomMedia, f as variantDataAttribute, j as variantImportant, o as variantInternalLayer, i as variantLanguageDirections, s as variantNegative, x as variantPartClasses, k as variantPrint, u as variantPseudoClassFunctions, t as variantPseudoClassesAndElements, p as variantScope, m as variantSelector, y as variantSupports, g as variantTaggedDataAttributes, w as variantTaggedPseudoClasses, r as variantTheme, q as variantVariables, h as variants } from './shared/preset-mini.X5oTOtIs.mjs';
2
- import './shared/preset-mini.CNCkGnlK.mjs';
1
+ export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantContainerQuery, n as variantCssLayer, l as variantCustomMedia, f as variantDataAttribute, j as variantImportant, o as variantInternalLayer, i as variantLanguageDirections, s as variantNegative, x as variantPartClasses, k as variantPrint, u as variantPseudoClassFunctions, t as variantPseudoClassesAndElements, p as variantScope, m as variantSelector, y as variantSupports, g as variantTaggedDataAttributes, w as variantTaggedPseudoClasses, r as variantTheme, q as variantVariables, h as variants } from './shared/preset-mini.BQqGYFkE.mjs';
2
+ import './shared/preset-mini.CV-SKsbk.mjs';
3
3
  import '@unocss/core';
4
4
  import '@unocss/rule-utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.58.6",
3
+ "version": "0.58.7",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,9 +61,9 @@
61
61
  "dist"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.58.6",
65
- "@unocss/rule-utils": "0.58.6",
66
- "@unocss/extractor-arbitrary-variants": "0.58.6"
64
+ "@unocss/extractor-arbitrary-variants": "0.58.7",
65
+ "@unocss/rule-utils": "0.58.7",
66
+ "@unocss/core": "0.58.7"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "unbuild",