@unocss/preset-uno 0.48.0 → 0.48.2

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
@@ -69,6 +69,7 @@ const presetUno = (options = {}) => {
69
69
  variantColorMix
70
70
  ],
71
71
  options,
72
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? presetMini.VarPrefixPostprocessor(options.variablePrefix) : void 0,
72
73
  preflights: options.preflight ? presetMini.preflights : [],
73
74
  prefix: options.prefix
74
75
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { theme, rules, shortcuts, variants } from '@unocss/preset-wind';
2
- import { preflights } from '@unocss/preset-mini';
2
+ import { VarPrefixPostprocessor, preflights } from '@unocss/preset-mini';
3
3
  import { parseCssColor, colorToString } from '@unocss/preset-mini/utils';
4
4
 
5
5
  const mixComponent = (v1, v2, w) => `calc(${v2} + (${v1} - ${v2}) * ${w} / 100)`;
@@ -65,6 +65,7 @@ const presetUno = (options = {}) => {
65
65
  variantColorMix
66
66
  ],
67
67
  options,
68
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
68
69
  preflights: options.preflight ? preflights : [],
69
70
  prefix: options.prefix
70
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -50,9 +50,9 @@
50
50
  "*.css"
51
51
  ],
52
52
  "dependencies": {
53
- "@unocss/core": "0.48.0",
54
- "@unocss/preset-mini": "0.48.0",
55
- "@unocss/preset-wind": "0.48.0"
53
+ "@unocss/core": "0.48.2",
54
+ "@unocss/preset-mini": "0.48.2",
55
+ "@unocss/preset-wind": "0.48.2"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "unbuild",