@unocss/preset-wind 0.48.5 → 0.49.1

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
@@ -1175,6 +1175,7 @@ const presetWind = (options = {}) => {
1175
1175
  options.dark = options.dark ?? "class";
1176
1176
  options.attributifyPseudo = options.attributifyPseudo ?? false;
1177
1177
  options.preflight = options.preflight ?? true;
1178
+ options.variablePrefix = options.variablePrefix ?? "un-";
1178
1179
  return {
1179
1180
  name: "@unocss/preset-wind",
1180
1181
  theme,
@@ -1182,7 +1183,7 @@ const presetWind = (options = {}) => {
1182
1183
  shortcuts,
1183
1184
  variants: variants(options),
1184
1185
  options,
1185
- postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? presetMini.VarPrefixPostprocessor(options.variablePrefix) : void 0,
1186
+ postprocess: presetMini.VarPrefixPostprocessor(options.variablePrefix),
1186
1187
  preflights: options.preflight ? presetMini.normalizePreflights(presetMini.preflights, options.variablePrefix) : [],
1187
1188
  prefix: options.prefix
1188
1189
  };
package/dist/index.mjs CHANGED
@@ -1172,6 +1172,7 @@ const presetWind = (options = {}) => {
1172
1172
  options.dark = options.dark ?? "class";
1173
1173
  options.attributifyPseudo = options.attributifyPseudo ?? false;
1174
1174
  options.preflight = options.preflight ?? true;
1175
+ options.variablePrefix = options.variablePrefix ?? "un-";
1175
1176
  return {
1176
1177
  name: "@unocss/preset-wind",
1177
1178
  theme,
@@ -1179,7 +1180,7 @@ const presetWind = (options = {}) => {
1179
1180
  shortcuts,
1180
1181
  variants: variants(options),
1181
1182
  options,
1182
- postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
1183
+ postprocess: VarPrefixPostprocessor(options.variablePrefix),
1183
1184
  preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
1184
1185
  prefix: options.prefix
1185
1186
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.48.5",
3
+ "version": "0.49.1",
4
4
  "description": "Tailwind / Windi CSS compact preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -35,8 +35,8 @@
35
35
  "*.css"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.48.5",
39
- "@unocss/preset-mini": "0.48.5"
38
+ "@unocss/core": "0.49.1",
39
+ "@unocss/preset-mini": "0.49.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",