@unocss/preset-wind 0.51.4 → 0.51.5

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
@@ -5,10 +5,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const presetMini = require('@unocss/preset-mini');
6
6
  const utils = require('@unocss/preset-mini/utils');
7
7
  const core = require('@unocss/core');
8
- const rules$1 = require('@unocss/preset-mini/rules');
8
+ const _ = require('@unocss/preset-mini/rules');
9
9
  const theme$1 = require('@unocss/preset-mini/theme');
10
10
  const variants$1 = require('@unocss/preset-mini/variants');
11
11
 
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ const n = Object.create(null);
15
+ if (e) {
16
+ for (const k in e) {
17
+ n[k] = e[k];
18
+ }
19
+ }
20
+ n["default"] = e;
21
+ return n;
22
+ }
23
+
24
+ const ___namespace = /*#__PURE__*/_interopNamespace(_);
25
+
12
26
  const animations = [
13
27
  [/^(?:animate-)?keyframes-(.+)$/, ([, name], { theme }) => {
14
28
  const kf = theme.animation?.keyframes?.[name];
@@ -365,27 +379,27 @@ const containerShortcuts = [
365
379
  ];
366
380
 
367
381
  const filterBase = {
368
- "--un-blur": rules$1.varEmpty,
369
- "--un-brightness": rules$1.varEmpty,
370
- "--un-contrast": rules$1.varEmpty,
371
- "--un-drop-shadow": rules$1.varEmpty,
372
- "--un-grayscale": rules$1.varEmpty,
373
- "--un-hue-rotate": rules$1.varEmpty,
374
- "--un-invert": rules$1.varEmpty,
375
- "--un-saturate": rules$1.varEmpty,
376
- "--un-sepia": rules$1.varEmpty
382
+ "--un-blur": _.varEmpty,
383
+ "--un-brightness": _.varEmpty,
384
+ "--un-contrast": _.varEmpty,
385
+ "--un-drop-shadow": _.varEmpty,
386
+ "--un-grayscale": _.varEmpty,
387
+ "--un-hue-rotate": _.varEmpty,
388
+ "--un-invert": _.varEmpty,
389
+ "--un-saturate": _.varEmpty,
390
+ "--un-sepia": _.varEmpty
377
391
  };
378
392
  const filterProperty = "var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)";
379
393
  const backdropFilterBase = {
380
- "--un-backdrop-blur": rules$1.varEmpty,
381
- "--un-backdrop-brightness": rules$1.varEmpty,
382
- "--un-backdrop-contrast": rules$1.varEmpty,
383
- "--un-backdrop-grayscale": rules$1.varEmpty,
384
- "--un-backdrop-hue-rotate": rules$1.varEmpty,
385
- "--un-backdrop-invert": rules$1.varEmpty,
386
- "--un-backdrop-opacity": rules$1.varEmpty,
387
- "--un-backdrop-saturate": rules$1.varEmpty,
388
- "--un-backdrop-sepia": rules$1.varEmpty
394
+ "--un-backdrop-blur": _.varEmpty,
395
+ "--un-backdrop-brightness": _.varEmpty,
396
+ "--un-backdrop-contrast": _.varEmpty,
397
+ "--un-backdrop-grayscale": _.varEmpty,
398
+ "--un-backdrop-hue-rotate": _.varEmpty,
399
+ "--un-backdrop-invert": _.varEmpty,
400
+ "--un-backdrop-opacity": _.varEmpty,
401
+ "--un-backdrop-saturate": _.varEmpty,
402
+ "--un-backdrop-sepia": _.varEmpty
389
403
  };
390
404
  const backdropFilterProperty = "var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)";
391
405
  function percentWithDefault(str) {
@@ -692,7 +706,7 @@ const divides = [
692
706
  [/^divide-(block|inline)-reverse$/, ([, d]) => ({ [`--un-divide-${d}-reverse`]: 1 })],
693
707
  [/^divide-(.+)$/, utils.colorResolver("border-color", "divide"), { autocomplete: "divide-$colors" }],
694
708
  [/^divide-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-divide-opacity": utils.handler.bracket.percent(opacity) }), { autocomplete: ["divide-(op|opacity)", "divide-(op|opacity)-<percent>"] }],
695
- ...rules$1.borderStyles.map((style) => [`divide-${style}`, { "border-style": style }])
709
+ ..._.borderStyles.map((style) => [`divide-${style}`, { "border-style": style }])
696
710
  ];
697
711
  function handlerDivide([, d, s], { theme }) {
698
712
  let v = theme.lineWidth?.[s || "DEFAULT"] ?? utils.handler.bracket.cssvar.px(s || "1");
@@ -731,11 +745,11 @@ const lineClamps = [
731
745
  ];
732
746
 
733
747
  const fontVariantNumericBase = {
734
- "--un-ordinal": rules$1.varEmpty,
735
- "--un-slashed-zero": rules$1.varEmpty,
736
- "--un-numeric-figure": rules$1.varEmpty,
737
- "--un-numeric-spacing": rules$1.varEmpty,
738
- "--un-numeric-fraction": rules$1.varEmpty
748
+ "--un-ordinal": _.varEmpty,
749
+ "--un-slashed-zero": _.varEmpty,
750
+ "--un-numeric-figure": _.varEmpty,
751
+ "--un-numeric-spacing": _.varEmpty,
752
+ "--un-numeric-fraction": _.varEmpty
739
753
  };
740
754
  function toEntries(entry) {
741
755
  return {
@@ -756,9 +770,9 @@ const fontVariantNumeric = [
756
770
  ];
757
771
 
758
772
  const touchActionBase = {
759
- "--un-pan-x": rules$1.varEmpty,
760
- "--un-pan-y": rules$1.varEmpty,
761
- "--un-pinch-zoom": rules$1.varEmpty
773
+ "--un-pan-x": _.varEmpty,
774
+ "--un-pan-y": _.varEmpty,
775
+ "--un-pinch-zoom": _.varEmpty
762
776
  };
763
777
  const touchActionProperty = "var(--un-pan-x) var(--un-pan-y) var(--un-pinch-zoom)";
764
778
  const touchActions = [
@@ -824,91 +838,92 @@ const placeholders = [
824
838
  ];
825
839
 
826
840
  const rules = [
827
- rules$1.cssVariables,
841
+ ___namespace.cssVariables,
828
842
  cssVariables,
829
- rules$1.cssProperty,
843
+ ___namespace.cssProperty,
830
844
  container,
831
- rules$1.contains,
845
+ ___namespace.contains,
832
846
  screenReadersAccess,
833
- rules$1.pointerEvents,
834
- rules$1.appearances,
835
- rules$1.positions,
836
- rules$1.insets,
847
+ ___namespace.pointerEvents,
848
+ ___namespace.appearances,
849
+ ___namespace.positions,
850
+ ___namespace.insets,
837
851
  lineClamps,
838
852
  isolations,
839
- rules$1.zIndexes,
840
- rules$1.orders,
841
- rules$1.grids,
842
- rules$1.floats,
843
- rules$1.margins,
844
- rules$1.boxSizing,
845
- rules$1.displays,
846
- rules$1.aspectRatio,
847
- rules$1.sizes,
848
- rules$1.flex,
853
+ ___namespace.zIndexes,
854
+ ___namespace.orders,
855
+ ___namespace.grids,
856
+ ___namespace.floats,
857
+ ___namespace.margins,
858
+ ___namespace.boxSizing,
859
+ ___namespace.displays,
860
+ ___namespace.aspectRatio,
861
+ ___namespace.sizes,
862
+ ___namespace.flex,
849
863
  tables,
850
- rules$1.transforms,
864
+ ___namespace.transforms,
851
865
  animations,
852
- rules$1.cursors,
866
+ ___namespace.cursors,
853
867
  touchActions,
854
- rules$1.userSelects,
855
- rules$1.resizes,
868
+ ___namespace.userSelects,
869
+ ___namespace.resizes,
856
870
  scrolls,
857
871
  listStyle,
858
- rules$1.appearance,
872
+ ___namespace.appearance,
859
873
  columns,
860
- rules$1.placements,
861
- rules$1.alignments,
862
- rules$1.justifies,
863
- rules$1.gaps,
874
+ ___namespace.placements,
875
+ ___namespace.alignments,
876
+ ___namespace.justifies,
877
+ ___namespace.gaps,
878
+ ___namespace.flexGridJustifiesAlignments,
864
879
  spaces,
865
880
  divides,
866
- rules$1.overflows,
881
+ ___namespace.overflows,
867
882
  overscrolls,
868
883
  scrollBehaviors,
869
- rules$1.textOverflows,
870
- rules$1.whitespaces,
871
- rules$1.breaks,
872
- rules$1.borders,
873
- rules$1.bgColors,
884
+ ___namespace.textOverflows,
885
+ ___namespace.whitespaces,
886
+ ___namespace.breaks,
887
+ ___namespace.borders,
888
+ ___namespace.bgColors,
874
889
  backgroundStyles,
875
- rules$1.svgUtilities,
890
+ ___namespace.svgUtilities,
876
891
  objectPositions,
877
- rules$1.paddings,
878
- rules$1.textAligns,
879
- rules$1.textIndents,
880
- rules$1.verticalAligns,
881
- rules$1.fonts,
882
- rules$1.textTransforms,
892
+ ___namespace.paddings,
893
+ ___namespace.textAligns,
894
+ ___namespace.textIndents,
895
+ ___namespace.verticalAligns,
896
+ ___namespace.fonts,
897
+ ___namespace.textTransforms,
883
898
  textTransforms,
884
- rules$1.fontStyles,
899
+ ___namespace.fontStyles,
885
900
  fontVariantNumeric,
886
- rules$1.textColors,
887
- rules$1.textDecorations,
888
- rules$1.fontSmoothings,
889
- rules$1.tabSizes,
890
- rules$1.textStrokes,
891
- rules$1.textShadows,
901
+ ___namespace.textColors,
902
+ ___namespace.textDecorations,
903
+ ___namespace.fontSmoothings,
904
+ ___namespace.tabSizes,
905
+ ___namespace.textStrokes,
906
+ ___namespace.textShadows,
892
907
  hyphens,
893
908
  writingModes,
894
909
  writingOrientations,
895
910
  carets,
896
911
  accents,
897
- rules$1.opacity,
912
+ ___namespace.opacity,
898
913
  backgroundBlendModes,
899
914
  mixBlendModes,
900
- rules$1.boxShadows,
901
- rules$1.outline,
902
- rules$1.rings,
915
+ ___namespace.boxShadows,
916
+ ___namespace.outline,
917
+ ___namespace.rings,
903
918
  imageRenderings,
904
919
  filters,
905
- rules$1.transitions,
906
- rules$1.willChange,
907
- rules$1.contentVisibility,
908
- rules$1.contents,
920
+ ___namespace.transitions,
921
+ ___namespace.willChange,
922
+ ___namespace.contentVisibility,
923
+ ___namespace.contents,
909
924
  placeholders,
910
- rules$1.containerParent,
911
- rules$1.questionMark
925
+ ___namespace.containerParent,
926
+ ___namespace.questionMark
912
927
  ].flat(1);
913
928
 
914
929
  const shortcuts = [
@@ -1109,13 +1124,13 @@ const theme = {
1109
1124
  grid: "(display: grid)"
1110
1125
  },
1111
1126
  preflightBase: {
1112
- ...rules$1.transformBase,
1127
+ ..._.transformBase,
1113
1128
  ...touchActionBase,
1114
1129
  ...scrollSnapTypeBase,
1115
1130
  ...fontVariantNumericBase,
1116
1131
  ...borderSpacingBase,
1117
- ...rules$1.boxShadowsBase,
1118
- ...rules$1.ringBase,
1132
+ ..._.boxShadowsBase,
1133
+ ..._.ringBase,
1119
1134
  ...filterBase,
1120
1135
  ...backdropFilterBase
1121
1136
  }
package/dist/index.mjs CHANGED
@@ -2,7 +2,8 @@ import { presetMini } 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
4
  import { isString, warnOnce } from '@unocss/core';
5
- import { varEmpty, borderStyles, cssVariables as cssVariables$1, cssProperty, contains, 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, contentVisibility, contents, containerParent, questionMark, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
5
+ import * as _ from '@unocss/preset-mini/rules';
6
+ import { varEmpty, borderStyles, transformBase, boxShadowsBase, ringBase } from '@unocss/preset-mini/rules';
6
7
  import { theme as theme$1 } from '@unocss/preset-mini/theme';
7
8
  import { variants as variants$1 } from '@unocss/preset-mini/variants';
8
9
 
@@ -821,91 +822,92 @@ const placeholders = [
821
822
  ];
822
823
 
823
824
  const rules = [
824
- cssVariables$1,
825
+ _.cssVariables,
825
826
  cssVariables,
826
- cssProperty,
827
+ _.cssProperty,
827
828
  container,
828
- contains,
829
+ _.contains,
829
830
  screenReadersAccess,
830
- pointerEvents,
831
- appearances,
832
- positions,
833
- insets,
831
+ _.pointerEvents,
832
+ _.appearances,
833
+ _.positions,
834
+ _.insets,
834
835
  lineClamps,
835
836
  isolations,
836
- zIndexes,
837
- orders,
838
- grids,
839
- floats,
840
- margins,
841
- boxSizing,
842
- displays,
843
- aspectRatio,
844
- sizes,
845
- flex,
837
+ _.zIndexes,
838
+ _.orders,
839
+ _.grids,
840
+ _.floats,
841
+ _.margins,
842
+ _.boxSizing,
843
+ _.displays,
844
+ _.aspectRatio,
845
+ _.sizes,
846
+ _.flex,
846
847
  tables,
847
- transforms,
848
+ _.transforms,
848
849
  animations,
849
- cursors,
850
+ _.cursors,
850
851
  touchActions,
851
- userSelects,
852
- resizes,
852
+ _.userSelects,
853
+ _.resizes,
853
854
  scrolls,
854
855
  listStyle,
855
- appearance,
856
+ _.appearance,
856
857
  columns,
857
- placements,
858
- alignments,
859
- justifies,
860
- gaps,
858
+ _.placements,
859
+ _.alignments,
860
+ _.justifies,
861
+ _.gaps,
862
+ _.flexGridJustifiesAlignments,
861
863
  spaces,
862
864
  divides,
863
- overflows,
865
+ _.overflows,
864
866
  overscrolls,
865
867
  scrollBehaviors,
866
- textOverflows,
867
- whitespaces,
868
- breaks,
869
- borders,
870
- bgColors,
868
+ _.textOverflows,
869
+ _.whitespaces,
870
+ _.breaks,
871
+ _.borders,
872
+ _.bgColors,
871
873
  backgroundStyles,
872
- svgUtilities,
874
+ _.svgUtilities,
873
875
  objectPositions,
874
- paddings,
875
- textAligns,
876
- textIndents,
877
- verticalAligns,
878
- fonts,
879
- textTransforms$1,
876
+ _.paddings,
877
+ _.textAligns,
878
+ _.textIndents,
879
+ _.verticalAligns,
880
+ _.fonts,
881
+ _.textTransforms,
880
882
  textTransforms,
881
- fontStyles,
883
+ _.fontStyles,
882
884
  fontVariantNumeric,
883
- textColors,
884
- textDecorations,
885
- fontSmoothings,
886
- tabSizes,
887
- textStrokes,
888
- textShadows,
885
+ _.textColors,
886
+ _.textDecorations,
887
+ _.fontSmoothings,
888
+ _.tabSizes,
889
+ _.textStrokes,
890
+ _.textShadows,
889
891
  hyphens,
890
892
  writingModes,
891
893
  writingOrientations,
892
894
  carets,
893
895
  accents,
894
- opacity,
896
+ _.opacity,
895
897
  backgroundBlendModes,
896
898
  mixBlendModes,
897
- boxShadows,
898
- outline,
899
- rings,
899
+ _.boxShadows,
900
+ _.outline,
901
+ _.rings,
900
902
  imageRenderings,
901
903
  filters,
902
- transitions,
903
- willChange,
904
- contentVisibility,
905
- contents,
904
+ _.transitions,
905
+ _.willChange,
906
+ _.contentVisibility,
907
+ _.contents,
906
908
  placeholders,
907
- containerParent,
908
- questionMark
909
+ _.containerParent,
910
+ _.questionMark
909
911
  ].flat(1);
910
912
 
911
913
  const shortcuts = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.51.4",
3
+ "version": "0.51.5",
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.51.4",
39
- "@unocss/preset-mini": "0.51.4"
38
+ "@unocss/core": "0.51.5",
39
+ "@unocss/preset-mini": "0.51.5"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",