@unocss/preset-wind 0.25.1 → 0.26.0

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
@@ -960,16 +960,13 @@ const placeholderModifier = (input, { theme }) => {
960
960
  const m = input.match(/^(.*)\b(placeholder-)(.+)$/);
961
961
  if (m) {
962
962
  const [, pre = "", p, body] = m;
963
- if (hasColorValue(body, theme) || hasOpacityValue(body)) {
963
+ if (utils.hasParseableColor(body, theme) || hasOpacityValue(body)) {
964
964
  return {
965
965
  matcher: `${pre}placeholder-$ ${p}${body}`
966
966
  };
967
967
  }
968
968
  }
969
969
  };
970
- function hasColorValue(body, theme) {
971
- return !!utils.parseColor(body, theme)?.color;
972
- }
973
970
  function hasOpacityValue(body) {
974
971
  const match = body.match(/^op(?:acity)?-?(.+)$/);
975
972
  if (match && match[1] != null)
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { toArray, CONTROL_SHORTCUT_NO_MERGE } from '@unocss/core';
2
2
  import { theme as theme$1 } from '@unocss/preset-mini/theme';
3
3
  export { colors } from '@unocss/preset-mini';
4
4
  import { varEmpty, 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, fontStyles, textColors, textDecorations, fontSmoothings, tabSizes, textStrokes, textShadows, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark } from '@unocss/preset-mini/rules';
5
- import { handler, positionMap, parseColor, colorToString, colorResolver, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher } from '@unocss/preset-mini/utils';
5
+ import { handler, positionMap, parseColor, colorToString, colorResolver, colorableShadows, directionMap, directionSize, variantMatcher, variantParentMatcher, hasParseableColor } from '@unocss/preset-mini/utils';
6
6
  import { variants as variants$1 } from '@unocss/preset-mini/variants';
7
7
 
8
8
  const animations = [
@@ -956,16 +956,13 @@ const placeholderModifier = (input, { theme }) => {
956
956
  const m = input.match(/^(.*)\b(placeholder-)(.+)$/);
957
957
  if (m) {
958
958
  const [, pre = "", p, body] = m;
959
- if (hasColorValue(body, theme) || hasOpacityValue(body)) {
959
+ if (hasParseableColor(body, theme) || hasOpacityValue(body)) {
960
960
  return {
961
961
  matcher: `${pre}placeholder-$ ${p}${body}`
962
962
  };
963
963
  }
964
964
  }
965
965
  };
966
- function hasColorValue(body, theme) {
967
- return !!parseColor(body, theme)?.color;
968
- }
969
966
  function hasOpacityValue(body) {
970
967
  const match = body.match(/^op(?:acity)?-?(.+)$/);
971
968
  if (match && match[1] != null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
4
4
  "description": "Tailwind / Windi CSS compact preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -35,8 +35,8 @@
35
35
  "*.css"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.25.1",
39
- "@unocss/preset-mini": "0.25.1"
38
+ "@unocss/core": "0.26.0",
39
+ "@unocss/preset-mini": "0.26.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",