@unocss/preset-mini 0.51.5 → 0.51.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.
package/dist/index.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
6
6
  const core = require('@unocss/core');
7
- require('./shared/preset-mini.a6e5a967.cjs');
8
- const _default$1 = require('./shared/preset-mini.e7d6efba.cjs');
7
+ require('./shared/preset-mini.7d527935.cjs');
8
+ const _default$1 = require('./shared/preset-mini.218f1eb5.cjs');
9
9
  const colors$1 = require('./shared/preset-mini.d7d4b4ea.cjs');
10
10
  const colors = require('./shared/preset-mini.bb7dc365.cjs');
11
- const _default = require('./shared/preset-mini.00f6869f.cjs');
11
+ const _default = require('./shared/preset-mini.3b69091e.cjs');
12
12
  const _default$2 = require('./shared/preset-mini.1baba2d5.cjs');
13
13
  require('./shared/preset-mini.950e178f.cjs');
14
14
 
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
2
2
  import { entriesToCss, toArray } from '@unocss/core';
3
- import './shared/preset-mini.46b4a7e7.mjs';
4
- import { r as rules } from './shared/preset-mini.ad7a639d.mjs';
3
+ import './shared/preset-mini.2567d03f.mjs';
4
+ import { r as rules } from './shared/preset-mini.d2d0b8e1.mjs';
5
5
  export { p as parseColor } from './shared/preset-mini.acf4efb2.mjs';
6
6
  export { c as colors } from './shared/preset-mini.74b45c11.mjs';
7
- import { t as theme } from './shared/preset-mini.a749a848.mjs';
8
- export { t as theme } from './shared/preset-mini.a749a848.mjs';
7
+ import { t as theme } from './shared/preset-mini.a3539008.mjs';
8
+ export { t as theme } from './shared/preset-mini.a3539008.mjs';
9
9
  import { v as variants } from './shared/preset-mini.780dcf0b.mjs';
10
10
  import './shared/preset-mini.780f5e22.mjs';
11
11
 
package/dist/rules.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const transform = require('./shared/preset-mini.a6e5a967.cjs');
6
- const _default = require('./shared/preset-mini.e7d6efba.cjs');
5
+ const transform = require('./shared/preset-mini.7d527935.cjs');
6
+ const _default = require('./shared/preset-mini.218f1eb5.cjs');
7
7
  require('./shared/preset-mini.d7d4b4ea.cjs');
8
8
  require('@unocss/core');
9
9
 
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { I as alignments, F as appearance, w as appearances, b as bgColors, W as borderStyles, a as borders, r as boxShadows, U as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, X as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, V as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as transformBase, Q as transforms, P as transitions, A as userSelects, Y as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.46b4a7e7.mjs';
2
- export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.ad7a639d.mjs';
1
+ export { I as alignments, F as appearance, w as appearances, b as bgColors, W as borderStyles, a as borders, r as boxShadows, U as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, X as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, V as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as transformBase, Q as transforms, P as transitions, A as userSelects, Y as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.2567d03f.mjs';
2
+ export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.d2d0b8e1.mjs';
3
3
  import './shared/preset-mini.acf4efb2.mjs';
4
4
  import '@unocss/core';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.a6e5a967.cjs');
3
+ const transform = require('./preset-mini.7d527935.cjs');
4
4
  const colors = require('./preset-mini.d7d4b4ea.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
@@ -276,13 +276,13 @@ const fonts = [
276
276
  }, { autocomplete: "text-size-$fontSize" }],
277
277
  [
278
278
  /^(?:font|fw)-?([^-]+)$/,
279
- ([, s]) => ({ "font-weight": weightMap[s] || handler.global.number(s) }),
279
+ ([, s]) => ({ "font-weight": weightMap[s] || handler.bracket.global.number(s) }),
280
280
  { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
281
281
  ],
282
282
  [
283
- /^(?:font-)?(?:leading|lh)-(.+)$/,
283
+ /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
284
284
  ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
285
- { autocomplete: "(leading|lh)-$lineHeight" }
285
+ { autocomplete: "(leading|lh|line-height)-$lineHeight" }
286
286
  ],
287
287
  ["font-synthesis-weight", { "font-synthesis": "weight" }],
288
288
  ["font-synthesis-style", { "font-synthesis": "style" }],
@@ -713,6 +713,7 @@ const transforms = [
713
713
  [/^(?:transform-)?translate-([xyz])-(.+)$/, handleTranslate],
714
714
  [/^(?:transform-)?rotate-()(.+)$/, handleRotate],
715
715
  [/^(?:transform-)?rotate-([xyz])-(.+)$/, handleRotate],
716
+ [/^(?:transform-)?skew-()(.+)$/, handleSkew],
716
717
  [/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew, { autocomplete: ["transform-skew-(x|y)-<percent>"] }],
717
718
  [/^(?:transform-)?scale-()(.+)$/, handleScale],
718
719
  [/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale, { autocomplete: [`transform-(${transformValues.join("|")})-<percent>`, `transform-(${transformValues.join("|")})-(x|y|z)-<percent>`] }],
@@ -765,10 +766,10 @@ function handleRotate([, d = "", b]) {
765
766
  function handleSkew([, d, b]) {
766
767
  const v = handler.bracket.cssvar.degree(b);
767
768
  if (v != null) {
768
- return {
769
- [`--un-skew-${d}`]: v,
770
- transform: transformCpu
771
- };
769
+ return [
770
+ ...xyzMap[d].map((i) => [`--un-skew${i}`, v]),
771
+ ["transform", transformCpu]
772
+ ];
772
773
  }
773
774
  }
774
775
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.bb7dc365.cjs');
4
- const transform = require('./preset-mini.a6e5a967.cjs');
4
+ const transform = require('./preset-mini.7d527935.cjs');
5
5
  require('@unocss/core');
6
6
  require('./preset-mini.d7d4b4ea.cjs');
7
7
 
@@ -278,13 +278,13 @@ const fonts = [
278
278
  }, { autocomplete: "text-size-$fontSize" }],
279
279
  [
280
280
  /^(?:font|fw)-?([^-]+)$/,
281
- ([, s]) => ({ "font-weight": weightMap[s] || colors.handler.global.number(s) }),
281
+ ([, s]) => ({ "font-weight": weightMap[s] || colors.handler.bracket.global.number(s) }),
282
282
  { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
283
283
  ],
284
284
  [
285
- /^(?:font-)?(?:leading|lh)-(.+)$/,
285
+ /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
286
286
  ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
287
- { autocomplete: "(leading|lh)-$lineHeight" }
287
+ { autocomplete: "(leading|lh|line-height)-$lineHeight" }
288
288
  ],
289
289
  ["font-synthesis-weight", { "font-synthesis": "weight" }],
290
290
  ["font-synthesis-style", { "font-synthesis": "style" }],
@@ -715,6 +715,7 @@ const transforms = [
715
715
  [/^(?:transform-)?translate-([xyz])-(.+)$/, handleTranslate],
716
716
  [/^(?:transform-)?rotate-()(.+)$/, handleRotate],
717
717
  [/^(?:transform-)?rotate-([xyz])-(.+)$/, handleRotate],
718
+ [/^(?:transform-)?skew-()(.+)$/, handleSkew],
718
719
  [/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew, { autocomplete: ["transform-skew-(x|y)-<percent>"] }],
719
720
  [/^(?:transform-)?scale-()(.+)$/, handleScale],
720
721
  [/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale, { autocomplete: [`transform-(${transformValues.join("|")})-<percent>`, `transform-(${transformValues.join("|")})-(x|y|z)-<percent>`] }],
@@ -767,10 +768,10 @@ function handleRotate([, d = "", b]) {
767
768
  function handleSkew([, d, b]) {
768
769
  const v = colors.handler.bracket.cssvar.degree(b);
769
770
  if (v != null) {
770
- return {
771
- [`--un-skew-${d}`]: v,
772
- transform: transformCpu
773
- };
771
+ return [
772
+ ...colors.xyzMap[d].map((i) => [`--un-skew${i}`, v]),
773
+ ["transform", transformCpu]
774
+ ];
774
775
  }
775
776
  }
776
777
 
@@ -1,5 +1,5 @@
1
1
  import { c as colors } from './preset-mini.74b45c11.mjs';
2
- import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.46b4a7e7.mjs';
2
+ import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.2567d03f.mjs';
3
3
  import '@unocss/core';
4
4
  import './preset-mini.acf4efb2.mjs';
5
5
 
@@ -1,4 +1,4 @@
1
- import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains } from './preset-mini.46b4a7e7.mjs';
1
+ import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains } from './preset-mini.2567d03f.mjs';
2
2
  import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.acf4efb2.mjs';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
package/dist/theme.cjs CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./shared/preset-mini.bb7dc365.cjs');
6
- const _default = require('./shared/preset-mini.00f6869f.cjs');
7
- require('./shared/preset-mini.a6e5a967.cjs');
6
+ const _default = require('./shared/preset-mini.3b69091e.cjs');
7
+ require('./shared/preset-mini.7d527935.cjs');
8
8
  require('./shared/preset-mini.d7d4b4ea.cjs');
9
9
  require('@unocss/core');
10
10
 
package/dist/theme.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { c as colors } from './shared/preset-mini.74b45c11.mjs';
2
- export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.a749a848.mjs';
3
- import './shared/preset-mini.46b4a7e7.mjs';
2
+ export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.a3539008.mjs';
3
+ import './shared/preset-mini.2567d03f.mjs';
4
4
  import './shared/preset-mini.acf4efb2.mjs';
5
5
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.51.5",
3
+ "version": "0.51.7",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.51.5",
65
- "@unocss/extractor-arbitrary-variants": "0.51.5"
64
+ "@unocss/core": "0.51.7",
65
+ "@unocss/extractor-arbitrary-variants": "0.51.7"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",