@unocss/preset-wind 0.17.2 → 0.17.3

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
@@ -246,12 +246,12 @@ const backgroundStyles = [
246
246
  ["bg-clip-content", { "-webkit-background-clip": "content-box", "background-attachment": "content-box" }],
247
247
  ["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-attachment": "padding-box" }],
248
248
  ["bg-clip-text", { "-webkit-background-clip": "text", "background-attachment": "text" }],
249
- [/^from-(.+)$/, colorResolver("from")],
250
- [/^to-(.+)$/, colorResolver("to")],
251
- [/^via-(.+)$/, colorResolver("via")],
252
- [/^from-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-from-opacity": utils.handler.bracket.percent(opacity) })],
253
- [/^to-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-to-opacity": utils.handler.bracket.percent(opacity) })],
254
- [/^via-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-via-opacity": utils.handler.bracket.percent(opacity) })],
249
+ [/^(?:bg-gradient-)?from-(.+)$/, colorResolver("from")],
250
+ [/^(?:bg-gradient-)?to-(.+)$/, colorResolver("to")],
251
+ [/^(?:bg-gradient-)?via-(.+)$/, colorResolver("via")],
252
+ [/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-from-opacity": utils.handler.bracket.percent(opacity) })],
253
+ [/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-to-opacity": utils.handler.bracket.percent(opacity) })],
254
+ [/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-via-opacity": utils.handler.bracket.percent(opacity) })],
255
255
  [/^bg-gradient-to-([trbl]{1,2})$/, ([, d]) => {
256
256
  const v = bgGradientDirections[d];
257
257
  if (v)
@@ -448,12 +448,7 @@ const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
448
448
  };
449
449
  const filters = [
450
450
  ["filter", filterBase],
451
- ["filter-none", { filter: "none" }],
452
451
  ["backdrop-filter", backdropFilterBase],
453
- ["backdrop-filter-none", {
454
- "-webkit-backdrop-filter": "none",
455
- "backdrop-filter": "none"
456
- }],
457
452
  [/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) => theme.blur?.[s || "DEFAULT"] || utils.handler.bracket.px(s))],
458
453
  [/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) => utils.handler.bracket.percent(s))],
459
454
  [/^(backdrop-)?contrast-(\d+)$/, toFilter("contrast", (s) => utils.handler.bracket.percent(s))],
@@ -466,7 +461,12 @@ const filters = [
466
461
  [/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${utils.handler.bracket.number(s)}deg`)],
467
462
  [/^(backdrop-)?invert(?:-(\d+))?$/, toFilter("invert", percentWithDefault())],
468
463
  [/^(backdrop-)?saturate(?:-(\d+))?$/, toFilter("saturate", percentWithDefault("0"))],
469
- [/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())]
464
+ [/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())],
465
+ ["filter-none", { filter: "none" }],
466
+ ["backdrop-filter-none", {
467
+ "-webkit-backdrop-filter": "none",
468
+ "backdrop-filter": "none"
469
+ }]
470
470
  ];
471
471
 
472
472
  const mixBlendModes = [
@@ -513,11 +513,6 @@ const textTransforms = [
513
513
  ["normal-case", { "text-transform": "none" }]
514
514
  ];
515
515
  const hyphens = [
516
- ["hyphens-none", {
517
- "-webkit-hyphens": "none",
518
- "-ms-hyphens": "none",
519
- "hyphens": "none"
520
- }],
521
516
  ["hyphens-manual", {
522
517
  "-webkit-hyphens": "manual",
523
518
  "-ms-hyphens": "manual",
@@ -527,17 +522,22 @@ const hyphens = [
527
522
  "-webkit-hyphens": "auto",
528
523
  "-ms-hyphens": "auto",
529
524
  "hyphens": "auto"
525
+ }],
526
+ ["hyphens-none", {
527
+ "-webkit-hyphens": "none",
528
+ "-ms-hyphens": "none",
529
+ "hyphens": "none"
530
530
  }]
531
531
  ];
532
532
  const writingModes = [
533
- ["write-normal", { "writing-mode": "horizontal-tb" }],
534
533
  ["write-vertical-right", { "writing-mode": "vertical-rl" }],
535
- ["write-vertical-left", { "writing-mode": "vertical-lr" }]
534
+ ["write-vertical-left", { "writing-mode": "vertical-lr" }],
535
+ ["write-normal", { "writing-mode": "horizontal-tb" }]
536
536
  ];
537
537
  const writingOrientations = [
538
538
  ["write-orient-mixed", { "text-orientation": "mixed" }],
539
- ["write-orient-upright", { "text-orientation": "upright" }],
540
- ["write-orient-sideways", { "text-orientation": "sideways" }]
539
+ ["write-orient-sideways", { "text-orientation": "sideways" }],
540
+ ["write-orient-upright", { "text-orientation": "upright" }]
541
541
  ];
542
542
  const screenReadersAccess = [
543
543
  [
@@ -592,16 +592,8 @@ const objectPositions = [
592
592
  ];
593
593
 
594
594
  const tables = [
595
- ["border-collapse", { "border-collapse": "collapse" }],
596
- ["border-separate", { "border-collapse": "separate" }],
597
- ["caption-top", { "caption-side": "top" }],
598
- ["caption-bottom", { "caption-side": "bottom" }],
599
595
  ["inline-table", { display: "inline-table" }],
600
596
  ["table", { display: "table" }],
601
- ["table-auto", { "table-layout": "auto" }],
602
- ["table-empty-cells-visible", { "empty-cells": "show" }],
603
- ["table-empty-cells-hidden", { "empty-cells": "hide" }],
604
- ["table-fixed", { "table-layout": "fixed" }],
605
597
  ["table-caption", { display: "table-caption" }],
606
598
  ["table-cell", { display: "table-cell" }],
607
599
  ["table-column", { display: "table-column" }],
@@ -609,7 +601,15 @@ const tables = [
609
601
  ["table-footer-group", { display: "table-footer-group" }],
610
602
  ["table-header-group", { display: "table-header-group" }],
611
603
  ["table-row", { display: "table-row" }],
612
- ["table-row-group", { display: "table-row-group" }]
604
+ ["table-row-group", { display: "table-row-group" }],
605
+ ["border-collapse", { "border-collapse": "collapse" }],
606
+ ["border-separate", { "border-collapse": "separate" }],
607
+ ["caption-top", { "caption-side": "top" }],
608
+ ["caption-bottom", { "caption-side": "bottom" }],
609
+ ["table-auto", { "table-layout": "auto" }],
610
+ ["table-fixed", { "table-layout": "fixed" }],
611
+ ["table-empty-cells-visible", { "empty-cells": "show" }],
612
+ ["table-empty-cells-hidden", { "empty-cells": "hide" }]
613
613
  ];
614
614
 
615
615
  const variablesAbbrMap = {
@@ -831,7 +831,6 @@ const rules = [
831
831
  hyphens,
832
832
  writingModes,
833
833
  writingOrientations,
834
- rules$1.placeholder,
835
834
  caretColors,
836
835
  caretOpacity,
837
836
  accentColors,
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { theme } from '@unocss/preset-mini/theme';
2
2
  import { CONTROL_BYPASS_PSEUDO_CLASS, variants, variantColorsMedia, variantColorsClass } from '@unocss/preset-mini/variants';
3
3
  import { toArray } from '@unocss/core';
4
4
  export { colors, theme } from '@unocss/preset-mini';
5
- import { varEmpty, cssVariables as cssVariables$1, 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, placeholder, opacity, boxShadows, outline, rings, transitions, willChange, contents, questionMark } from '@unocss/preset-mini/rules';
5
+ import { varEmpty, cssVariables as cssVariables$1, 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';
6
6
  import { handler, parseColor, colorResolver as colorResolver$1, directionSize, directionMap, variantMatcher } from '@unocss/preset-mini/utils';
7
7
 
8
8
  const keyframes = {
@@ -242,12 +242,12 @@ const backgroundStyles = [
242
242
  ["bg-clip-content", { "-webkit-background-clip": "content-box", "background-attachment": "content-box" }],
243
243
  ["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-attachment": "padding-box" }],
244
244
  ["bg-clip-text", { "-webkit-background-clip": "text", "background-attachment": "text" }],
245
- [/^from-(.+)$/, colorResolver("from")],
246
- [/^to-(.+)$/, colorResolver("to")],
247
- [/^via-(.+)$/, colorResolver("via")],
248
- [/^from-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-from-opacity": handler.bracket.percent(opacity) })],
249
- [/^to-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-to-opacity": handler.bracket.percent(opacity) })],
250
- [/^via-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-via-opacity": handler.bracket.percent(opacity) })],
245
+ [/^(?:bg-gradient-)?from-(.+)$/, colorResolver("from")],
246
+ [/^(?:bg-gradient-)?to-(.+)$/, colorResolver("to")],
247
+ [/^(?:bg-gradient-)?via-(.+)$/, colorResolver("via")],
248
+ [/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-from-opacity": handler.bracket.percent(opacity) })],
249
+ [/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-to-opacity": handler.bracket.percent(opacity) })],
250
+ [/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-via-opacity": handler.bracket.percent(opacity) })],
251
251
  [/^bg-gradient-to-([trbl]{1,2})$/, ([, d]) => {
252
252
  const v = bgGradientDirections[d];
253
253
  if (v)
@@ -444,12 +444,7 @@ const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
444
444
  };
445
445
  const filters = [
446
446
  ["filter", filterBase],
447
- ["filter-none", { filter: "none" }],
448
447
  ["backdrop-filter", backdropFilterBase],
449
- ["backdrop-filter-none", {
450
- "-webkit-backdrop-filter": "none",
451
- "backdrop-filter": "none"
452
- }],
453
448
  [/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) => theme.blur?.[s || "DEFAULT"] || handler.bracket.px(s))],
454
449
  [/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) => handler.bracket.percent(s))],
455
450
  [/^(backdrop-)?contrast-(\d+)$/, toFilter("contrast", (s) => handler.bracket.percent(s))],
@@ -462,7 +457,12 @@ const filters = [
462
457
  [/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${handler.bracket.number(s)}deg`)],
463
458
  [/^(backdrop-)?invert(?:-(\d+))?$/, toFilter("invert", percentWithDefault())],
464
459
  [/^(backdrop-)?saturate(?:-(\d+))?$/, toFilter("saturate", percentWithDefault("0"))],
465
- [/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())]
460
+ [/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())],
461
+ ["filter-none", { filter: "none" }],
462
+ ["backdrop-filter-none", {
463
+ "-webkit-backdrop-filter": "none",
464
+ "backdrop-filter": "none"
465
+ }]
466
466
  ];
467
467
 
468
468
  const mixBlendModes = [
@@ -509,11 +509,6 @@ const textTransforms = [
509
509
  ["normal-case", { "text-transform": "none" }]
510
510
  ];
511
511
  const hyphens = [
512
- ["hyphens-none", {
513
- "-webkit-hyphens": "none",
514
- "-ms-hyphens": "none",
515
- "hyphens": "none"
516
- }],
517
512
  ["hyphens-manual", {
518
513
  "-webkit-hyphens": "manual",
519
514
  "-ms-hyphens": "manual",
@@ -523,17 +518,22 @@ const hyphens = [
523
518
  "-webkit-hyphens": "auto",
524
519
  "-ms-hyphens": "auto",
525
520
  "hyphens": "auto"
521
+ }],
522
+ ["hyphens-none", {
523
+ "-webkit-hyphens": "none",
524
+ "-ms-hyphens": "none",
525
+ "hyphens": "none"
526
526
  }]
527
527
  ];
528
528
  const writingModes = [
529
- ["write-normal", { "writing-mode": "horizontal-tb" }],
530
529
  ["write-vertical-right", { "writing-mode": "vertical-rl" }],
531
- ["write-vertical-left", { "writing-mode": "vertical-lr" }]
530
+ ["write-vertical-left", { "writing-mode": "vertical-lr" }],
531
+ ["write-normal", { "writing-mode": "horizontal-tb" }]
532
532
  ];
533
533
  const writingOrientations = [
534
534
  ["write-orient-mixed", { "text-orientation": "mixed" }],
535
- ["write-orient-upright", { "text-orientation": "upright" }],
536
- ["write-orient-sideways", { "text-orientation": "sideways" }]
535
+ ["write-orient-sideways", { "text-orientation": "sideways" }],
536
+ ["write-orient-upright", { "text-orientation": "upright" }]
537
537
  ];
538
538
  const screenReadersAccess = [
539
539
  [
@@ -588,16 +588,8 @@ const objectPositions = [
588
588
  ];
589
589
 
590
590
  const tables = [
591
- ["border-collapse", { "border-collapse": "collapse" }],
592
- ["border-separate", { "border-collapse": "separate" }],
593
- ["caption-top", { "caption-side": "top" }],
594
- ["caption-bottom", { "caption-side": "bottom" }],
595
591
  ["inline-table", { display: "inline-table" }],
596
592
  ["table", { display: "table" }],
597
- ["table-auto", { "table-layout": "auto" }],
598
- ["table-empty-cells-visible", { "empty-cells": "show" }],
599
- ["table-empty-cells-hidden", { "empty-cells": "hide" }],
600
- ["table-fixed", { "table-layout": "fixed" }],
601
593
  ["table-caption", { display: "table-caption" }],
602
594
  ["table-cell", { display: "table-cell" }],
603
595
  ["table-column", { display: "table-column" }],
@@ -605,7 +597,15 @@ const tables = [
605
597
  ["table-footer-group", { display: "table-footer-group" }],
606
598
  ["table-header-group", { display: "table-header-group" }],
607
599
  ["table-row", { display: "table-row" }],
608
- ["table-row-group", { display: "table-row-group" }]
600
+ ["table-row-group", { display: "table-row-group" }],
601
+ ["border-collapse", { "border-collapse": "collapse" }],
602
+ ["border-separate", { "border-collapse": "separate" }],
603
+ ["caption-top", { "caption-side": "top" }],
604
+ ["caption-bottom", { "caption-side": "bottom" }],
605
+ ["table-auto", { "table-layout": "auto" }],
606
+ ["table-fixed", { "table-layout": "fixed" }],
607
+ ["table-empty-cells-visible", { "empty-cells": "show" }],
608
+ ["table-empty-cells-hidden", { "empty-cells": "hide" }]
609
609
  ];
610
610
 
611
611
  const variablesAbbrMap = {
@@ -827,7 +827,6 @@ const rules = [
827
827
  hyphens,
828
828
  writingModes,
829
829
  writingOrientations,
830
- placeholder,
831
830
  caretColors,
832
831
  caretOpacity,
833
832
  accentColors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
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.17.2",
39
- "@unocss/preset-mini": "0.17.2"
38
+ "@unocss/core": "0.17.3",
39
+ "@unocss/preset-mini": "0.17.3"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",