@unocss/preset-wind 0.42.1 → 0.43.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
@@ -665,10 +665,12 @@ function handlerDivide([, d, s], { theme }) {
665
665
  const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
666
666
  return [key, value];
667
667
  });
668
- if (results) {
668
+ const borderStyle = rules$1.handlerBorderStyle(["", d, "solid"]);
669
+ if (results && borderStyle) {
669
670
  return [
670
671
  [`--un-divide-${d}-reverse`, 0],
671
- ...results
672
+ ...results,
673
+ ...borderStyle
672
674
  ];
673
675
  }
674
676
  }
@@ -1134,7 +1136,8 @@ const presetWind = (options = {}) => {
1134
1136
  shortcuts,
1135
1137
  variants: variants(options),
1136
1138
  options,
1137
- preflights: presetMini.preflights
1139
+ preflights: presetMini.preflights,
1140
+ prefix: options.prefix
1138
1141
  };
1139
1142
  };
1140
1143
 
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { preflights } from '@unocss/preset-mini';
2
2
  export { colors, preflights } from '@unocss/preset-mini';
3
3
  import { handler, globalKeywords, makeGlobalStaticRules, positionMap, parseColor, colorToString, colorOpacityToString, colorResolver, resolveBreakpoints, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
4
- import { varEmpty, borderStyles, cssVariables as cssVariables$1, cssProperty, pointerEvents, appearances, positions, insets, zIndexes, orders, grids, floats, margins, boxSizing, displays, aspectRatio, sizes, flex, transforms, cursors, userSelects, resizes, appearance, placements, alignments, justifies, gaps, overflows, textOverflows, whitespaces, breaks, borders, bgColors, svgUtilities, paddings, textAligns, textIndents, verticalAligns, fonts, textTransforms as textTransforms$1, fontStyles, textColors, textDecorations, fontSmoothings, tabSizes, textStrokes, textShadows, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
4
+ import { varEmpty, borderStyles, handlerBorderStyle, cssVariables as cssVariables$1, cssProperty, pointerEvents, appearances, positions, insets, zIndexes, orders, grids, floats, margins, boxSizing, displays, aspectRatio, sizes, flex, transforms, cursors, userSelects, resizes, appearance, placements, alignments, justifies, gaps, overflows, textOverflows, whitespaces, breaks, borders, bgColors, svgUtilities, paddings, textAligns, textIndents, verticalAligns, fonts, textTransforms as textTransforms$1, fontStyles, textColors, textDecorations, fontSmoothings, tabSizes, textStrokes, textShadows, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
5
5
  import { theme as theme$1 } from '@unocss/preset-mini/theme';
6
6
  import { variants as variants$1 } from '@unocss/preset-mini/variants';
7
7
 
@@ -662,10 +662,12 @@ function handlerDivide([, d, s], { theme }) {
662
662
  const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
663
663
  return [key, value];
664
664
  });
665
- if (results) {
665
+ const borderStyle = handlerBorderStyle(["", d, "solid"]);
666
+ if (results && borderStyle) {
666
667
  return [
667
668
  [`--un-divide-${d}-reverse`, 0],
668
- ...results
669
+ ...results,
670
+ ...borderStyle
669
671
  ];
670
672
  }
671
673
  }
@@ -1131,7 +1133,8 @@ const presetWind = (options = {}) => {
1131
1133
  shortcuts,
1132
1134
  variants: variants(options),
1133
1135
  options,
1134
- preflights
1136
+ preflights,
1137
+ prefix: options.prefix
1135
1138
  };
1136
1139
  };
1137
1140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.42.1",
3
+ "version": "0.43.2",
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.42.1",
39
- "@unocss/preset-mini": "0.42.1"
38
+ "@unocss/core": "0.43.2",
39
+ "@unocss/preset-mini": "0.43.2"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",