@unocss/preset-wind 0.22.5 → 0.24.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @unocss/preset-wind
2
2
 
3
- Tailwind / Windi CSS compact preset for UnoCSS, [UnoCSS](https://github.com/antfu/unocss).
3
+ Tailwind / Windi CSS compact preset for UnoCSS, [UnoCSS](https://github.com/unocss/unocss).
4
4
 
5
5
  ## Installation
6
6
 
package/dist/index.cjs CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const variants = require('@unocss/preset-mini/variants');
6
5
  const core = require('@unocss/core');
7
6
  const theme$1 = require('@unocss/preset-mini/theme');
8
7
  const presetMini = require('@unocss/preset-mini');
9
8
  const rules$1 = require('@unocss/preset-mini/rules');
10
9
  const utils = require('@unocss/preset-mini/utils');
10
+ const variants$1 = require('@unocss/preset-mini/variants');
11
11
 
12
12
  const animations = [
13
- [/^keyframes-(.+)$/, ([, name], { theme, constructCSS }) => {
13
+ [/^(?:animate-)?keyframes-(.+)$/, ([, name], { theme, constructCSS }) => {
14
14
  const kf = theme.animation?.keyframes?.[name];
15
15
  if (kf)
16
16
  return `@keyframes ${name}${kf}
@@ -25,18 +25,16 @@ ${constructCSS({ animation: `${name}` })}`;
25
25
  return `@keyframes ${name}${kf}
26
26
  ${constructCSS(Object.assign({ animation: `${name} ${duration} ${timing} infinite` }, props))}`;
27
27
  }
28
+ return { animation: utils.handler.bracket.cssvar(name) };
28
29
  }],
29
- [/^animate-(?:duration-)?(.+)$/, ([, d]) => ({ "animation-duration": utils.handler.bracket.cssvar.time(d) })],
30
+ [/^animate-name-(.+)/, ([, d]) => ({ "animation-name": utils.handler.bracket.cssvar(d) ?? d })],
31
+ [/^animate-duration-(.+)$/, ([, d]) => ({ "animation-duration": utils.handler.bracket.cssvar.time(d) })],
30
32
  [/^animate-delay-(.+)$/, ([, d]) => ({ "animation-delay": utils.handler.bracket.cssvar.time(d) })],
31
- [/^animate-(?:fill-)?mode-(forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
32
- ["animate-mode-none", { "animation-fill-mode": "none" }],
33
- ["animate-fill-mode-none", { "animation-fill-mode": "none" }],
34
- [/^animate-(?:direction-)?(reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
35
- ["animate-normal", { "animation-direction": "normal" }],
36
- ["animate-direction-normal", { "animation-direction": "normal" }],
37
- [/^animate-(?:iteration-)?count-(.+)$/, ([, d]) => ({ "animation-iteration-count": utils.handler.bracket.cssvar(d) ?? d.replace(/\-/g, ",") })],
38
- [/^animate-name-(.+)/, ([, d]) => ({ "animation-name": d })],
39
- [/^animate-play-(?:state-)?(paused|running|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-play-state": d })],
33
+ [/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ "animation-timing-function": theme.easing?.[d || "DEFAULT"] ?? utils.handler.bracket.cssvar(d) })],
34
+ [/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
35
+ [/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
36
+ [/^animate-(?:iteration-|count-|iteration-count-)(.+)$/, ([, d]) => ({ "animation-iteration-count": utils.handler.bracket.cssvar(d) ?? d.replace(/\-/g, ",") })],
37
+ [/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-play-state": d })],
40
38
  ["animate-none", { animation: "none" }]
41
39
  ];
42
40
 
@@ -44,15 +42,15 @@ const bgGradientColorResolver = (mode) => ([, body], { theme }) => {
44
42
  const data = utils.parseColor(body, theme);
45
43
  if (!data)
46
44
  return;
47
- const { alpha, color, rgba } = data;
45
+ const { alpha, color, cssColor } = data;
48
46
  if (!color)
49
47
  return;
50
48
  let colorString = color;
51
- if (rgba) {
49
+ if (cssColor) {
52
50
  if (alpha != null)
53
- colorString = `rgba(${rgba.join(",")})`;
51
+ colorString = utils.colorToString(cssColor, alpha);
54
52
  else
55
- colorString = `rgba(${rgba.join(",")}, var(--un-${mode}-opacity, 1))`;
53
+ colorString = utils.colorToString(cssColor, `var(--un-${mode}-opacity, ${cssColor.alpha ?? 1})`);
56
54
  }
57
55
  switch (mode) {
58
56
  case "from":
@@ -267,8 +265,8 @@ const percentWithDefault = (str) => {
267
265
  return v;
268
266
  };
269
267
  const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
270
- const value = resolver(s, theme);
271
- if (value != null && value !== "") {
268
+ const value = resolver(s, theme) ?? (s === "none" ? "0" : "");
269
+ if (value !== "") {
272
270
  if (b) {
273
271
  return [
274
272
  backdropFilterBase,
@@ -292,7 +290,7 @@ const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
292
290
  const dropShadowResolver = ([, s], { theme }) => {
293
291
  let v = theme.dropShadow?.[s || "DEFAULT"];
294
292
  if (v != null) {
295
- const shadows = rules$1.colorableShadows(v, "--un-drop-shadow-color");
293
+ const shadows = utils.colorableShadows(v, "--un-drop-shadow-color");
296
294
  return [
297
295
  filterBase,
298
296
  {
@@ -340,12 +338,7 @@ const filters = [
340
338
  ["backdrop-filter-none", {
341
339
  "-webkit-backdrop-filter": "none",
342
340
  "backdrop-filter": "none"
343
- }],
344
- [/^(?:filter-)?(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|saturate|sepia)-none$/, ([, s]) => ({ filter: `${s}(0)` })],
345
- [/^backdrop-(blur|brightness|contrast|grayscale|hue-rotate|invert|opacity|saturate|sepia)-none$/, ([, s]) => ({
346
- "-webkit-backdrop-filter": `${s}(0)`,
347
- "backdrop-filter": `${s}(0)`
348
- })]
341
+ }]
349
342
  ];
350
343
 
351
344
  const spaces = [
@@ -354,17 +347,20 @@ const spaces = [
354
347
  [/^space-(block|inline)-(-?.+)$/, handlerSpace],
355
348
  [/^space-(block|inline)-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })]
356
349
  ];
357
- function handlerSpace(match) {
358
- const [, direction] = match;
359
- const results = utils.directionSize("margin")(match)?.map((item) => {
360
- const value = item[0].endsWith("right") || item[0].endsWith("bottom") ? `calc(${item[1]} * var(--un-space-${direction}-reverse))` : `calc(${item[1]} * calc(1 - var(--un-space-${direction}-reverse)))`;
361
- return [item[0], value];
362
- });
363
- if (results) {
364
- return [
365
- [`--un-space-${direction}-reverse`, 0],
366
- ...results
367
- ];
350
+ function handlerSpace([, d, s = "1"]) {
351
+ const v = utils.handler.bracket.cssvar.auto.fraction.rem(s);
352
+ if (v != null) {
353
+ const results = utils.directionMap[d].map((item) => {
354
+ const key = `margin${item}`;
355
+ const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-space-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-space-${d}-reverse)))`;
356
+ return [key, value];
357
+ });
358
+ if (results) {
359
+ return [
360
+ [`--un-space-${d}-reverse`, 0],
361
+ ...results
362
+ ];
363
+ }
368
364
  }
369
365
  }
370
366
 
@@ -517,10 +513,10 @@ const variablesAbbrMap = {
517
513
  "write-orient": "text-orientation"
518
514
  };
519
515
  const cssVariables = [
520
- [/^(.+?)-\$(.+)$/, ([, name, varname]) => {
516
+ [/^(.+?)-(\$.+)$/, ([, name, varname]) => {
521
517
  const prop = variablesAbbrMap[name];
522
518
  if (prop)
523
- return { [prop]: `var(--${varname})` };
519
+ return { [prop]: utils.handler.cssvar(varname) };
524
520
  }]
525
521
  ];
526
522
 
@@ -547,8 +543,12 @@ function handlerDivide([, d, s = "1"]) {
547
543
  const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
548
544
  return [key, value];
549
545
  });
550
- if (results)
551
- return [[`--un-divide-${d}-reverse`, 0], ...results];
546
+ if (results) {
547
+ return [
548
+ [`--un-divide-${d}-reverse`, 0],
549
+ ...results
550
+ ];
551
+ }
552
552
  }
553
553
  }
554
554
 
@@ -748,6 +748,10 @@ const rules = [
748
748
  rules$1.questionMark
749
749
  ].flat(1);
750
750
 
751
+ const shortcuts = [
752
+ ...containerShortcuts
753
+ ];
754
+
751
755
  const theme = {
752
756
  ...theme$1.theme,
753
757
  animation: {
@@ -941,6 +945,13 @@ function hasOpacityValue(body) {
941
945
  return false;
942
946
  }
943
947
 
948
+ const variants = (options) => [
949
+ placeholderModifier,
950
+ variantSpaceAndDivide,
951
+ ...variants$1.variants(options),
952
+ ...variantColorsScheme
953
+ ];
954
+
944
955
  const presetWind = (options = {}) => {
945
956
  options.dark = options.dark ?? "class";
946
957
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -948,15 +959,8 @@ const presetWind = (options = {}) => {
948
959
  name: "@unocss/preset-wind",
949
960
  theme,
950
961
  rules,
951
- shortcuts: [
952
- ...containerShortcuts
953
- ],
954
- variants: [
955
- placeholderModifier,
956
- variantSpaceAndDivide,
957
- ...variants.variants(options),
958
- ...variantColorsScheme
959
- ],
962
+ shortcuts,
963
+ variants: variants(options),
960
964
  options
961
965
  };
962
966
  };
@@ -964,4 +968,7 @@ const presetWind = (options = {}) => {
964
968
  exports.colors = presetMini.colors;
965
969
  exports["default"] = presetWind;
966
970
  exports.presetWind = presetWind;
971
+ exports.rules = rules;
972
+ exports.shortcuts = shortcuts;
967
973
  exports.theme = theme;
974
+ exports.variants = variants;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,19 @@
1
- import { Preset } from '@unocss/core';
1
+ import * as _unocss_core from '@unocss/core';
2
+ import { Rule, Variant, Preset } from '@unocss/core';
3
+ import * as _unocss_preset_mini from '@unocss/preset-mini';
2
4
  import { Theme, PresetMiniOptions } from '@unocss/preset-mini';
3
5
  export { Theme, colors } from '@unocss/preset-mini';
4
6
 
7
+ declare const rules: Rule[];
8
+
9
+ declare const shortcuts: _unocss_core.Shortcut<_unocss_preset_mini.Theme>[];
10
+
5
11
  declare const theme: Theme;
6
12
 
13
+ declare const variants: (options: UnoOptions) => Variant<Theme>[];
14
+
7
15
  interface UnoOptions extends PresetMiniOptions {
8
16
  }
9
17
  declare const presetWind: (options?: UnoOptions) => Preset<Theme>;
10
18
 
11
- export { UnoOptions, presetWind as default, presetWind, theme };
19
+ export { UnoOptions, presetWind as default, presetWind, rules, shortcuts, theme, variants };
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { variants } from '@unocss/preset-mini/variants';
2
1
  import { toArray, CONTROL_SHORTCUT_NO_MERGE } from '@unocss/core';
3
2
  import { theme as theme$1 } from '@unocss/preset-mini/theme';
4
3
  export { colors } from '@unocss/preset-mini';
5
- import { varEmpty, colorableShadows, 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';
6
- import { handler, positionMap, parseColor, colorResolver, directionSize, directionMap, variantMatcher, variantParentMatcher } from '@unocss/preset-mini/utils';
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';
6
+ import { variants as variants$1 } from '@unocss/preset-mini/variants';
7
7
 
8
8
  const animations = [
9
- [/^keyframes-(.+)$/, ([, name], { theme, constructCSS }) => {
9
+ [/^(?:animate-)?keyframes-(.+)$/, ([, name], { theme, constructCSS }) => {
10
10
  const kf = theme.animation?.keyframes?.[name];
11
11
  if (kf)
12
12
  return `@keyframes ${name}${kf}
@@ -21,18 +21,16 @@ ${constructCSS({ animation: `${name}` })}`;
21
21
  return `@keyframes ${name}${kf}
22
22
  ${constructCSS(Object.assign({ animation: `${name} ${duration} ${timing} infinite` }, props))}`;
23
23
  }
24
+ return { animation: handler.bracket.cssvar(name) };
24
25
  }],
25
- [/^animate-(?:duration-)?(.+)$/, ([, d]) => ({ "animation-duration": handler.bracket.cssvar.time(d) })],
26
+ [/^animate-name-(.+)/, ([, d]) => ({ "animation-name": handler.bracket.cssvar(d) ?? d })],
27
+ [/^animate-duration-(.+)$/, ([, d]) => ({ "animation-duration": handler.bracket.cssvar.time(d) })],
26
28
  [/^animate-delay-(.+)$/, ([, d]) => ({ "animation-delay": handler.bracket.cssvar.time(d) })],
27
- [/^animate-(?:fill-)?mode-(forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
28
- ["animate-mode-none", { "animation-fill-mode": "none" }],
29
- ["animate-fill-mode-none", { "animation-fill-mode": "none" }],
30
- [/^animate-(?:direction-)?(reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
31
- ["animate-normal", { "animation-direction": "normal" }],
32
- ["animate-direction-normal", { "animation-direction": "normal" }],
33
- [/^animate-(?:iteration-)?count-(.+)$/, ([, d]) => ({ "animation-iteration-count": handler.bracket.cssvar(d) ?? d.replace(/\-/g, ",") })],
34
- [/^animate-name-(.+)/, ([, d]) => ({ "animation-name": d })],
35
- [/^animate-play-(?:state-)?(paused|running|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-play-state": d })],
29
+ [/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ "animation-timing-function": theme.easing?.[d || "DEFAULT"] ?? handler.bracket.cssvar(d) })],
30
+ [/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
31
+ [/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
32
+ [/^animate-(?:iteration-|count-|iteration-count-)(.+)$/, ([, d]) => ({ "animation-iteration-count": handler.bracket.cssvar(d) ?? d.replace(/\-/g, ",") })],
33
+ [/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-play-state": d })],
36
34
  ["animate-none", { animation: "none" }]
37
35
  ];
38
36
 
@@ -40,15 +38,15 @@ const bgGradientColorResolver = (mode) => ([, body], { theme }) => {
40
38
  const data = parseColor(body, theme);
41
39
  if (!data)
42
40
  return;
43
- const { alpha, color, rgba } = data;
41
+ const { alpha, color, cssColor } = data;
44
42
  if (!color)
45
43
  return;
46
44
  let colorString = color;
47
- if (rgba) {
45
+ if (cssColor) {
48
46
  if (alpha != null)
49
- colorString = `rgba(${rgba.join(",")})`;
47
+ colorString = colorToString(cssColor, alpha);
50
48
  else
51
- colorString = `rgba(${rgba.join(",")}, var(--un-${mode}-opacity, 1))`;
49
+ colorString = colorToString(cssColor, `var(--un-${mode}-opacity, ${cssColor.alpha ?? 1})`);
52
50
  }
53
51
  switch (mode) {
54
52
  case "from":
@@ -263,8 +261,8 @@ const percentWithDefault = (str) => {
263
261
  return v;
264
262
  };
265
263
  const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
266
- const value = resolver(s, theme);
267
- if (value != null && value !== "") {
264
+ const value = resolver(s, theme) ?? (s === "none" ? "0" : "");
265
+ if (value !== "") {
268
266
  if (b) {
269
267
  return [
270
268
  backdropFilterBase,
@@ -336,12 +334,7 @@ const filters = [
336
334
  ["backdrop-filter-none", {
337
335
  "-webkit-backdrop-filter": "none",
338
336
  "backdrop-filter": "none"
339
- }],
340
- [/^(?:filter-)?(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|saturate|sepia)-none$/, ([, s]) => ({ filter: `${s}(0)` })],
341
- [/^backdrop-(blur|brightness|contrast|grayscale|hue-rotate|invert|opacity|saturate|sepia)-none$/, ([, s]) => ({
342
- "-webkit-backdrop-filter": `${s}(0)`,
343
- "backdrop-filter": `${s}(0)`
344
- })]
337
+ }]
345
338
  ];
346
339
 
347
340
  const spaces = [
@@ -350,17 +343,20 @@ const spaces = [
350
343
  [/^space-(block|inline)-(-?.+)$/, handlerSpace],
351
344
  [/^space-(block|inline)-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })]
352
345
  ];
353
- function handlerSpace(match) {
354
- const [, direction] = match;
355
- const results = directionSize("margin")(match)?.map((item) => {
356
- const value = item[0].endsWith("right") || item[0].endsWith("bottom") ? `calc(${item[1]} * var(--un-space-${direction}-reverse))` : `calc(${item[1]} * calc(1 - var(--un-space-${direction}-reverse)))`;
357
- return [item[0], value];
358
- });
359
- if (results) {
360
- return [
361
- [`--un-space-${direction}-reverse`, 0],
362
- ...results
363
- ];
346
+ function handlerSpace([, d, s = "1"]) {
347
+ const v = handler.bracket.cssvar.auto.fraction.rem(s);
348
+ if (v != null) {
349
+ const results = directionMap[d].map((item) => {
350
+ const key = `margin${item}`;
351
+ const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-space-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-space-${d}-reverse)))`;
352
+ return [key, value];
353
+ });
354
+ if (results) {
355
+ return [
356
+ [`--un-space-${d}-reverse`, 0],
357
+ ...results
358
+ ];
359
+ }
364
360
  }
365
361
  }
366
362
 
@@ -513,10 +509,10 @@ const variablesAbbrMap = {
513
509
  "write-orient": "text-orientation"
514
510
  };
515
511
  const cssVariables = [
516
- [/^(.+?)-\$(.+)$/, ([, name, varname]) => {
512
+ [/^(.+?)-(\$.+)$/, ([, name, varname]) => {
517
513
  const prop = variablesAbbrMap[name];
518
514
  if (prop)
519
- return { [prop]: `var(--${varname})` };
515
+ return { [prop]: handler.cssvar(varname) };
520
516
  }]
521
517
  ];
522
518
 
@@ -543,8 +539,12 @@ function handlerDivide([, d, s = "1"]) {
543
539
  const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
544
540
  return [key, value];
545
541
  });
546
- if (results)
547
- return [[`--un-divide-${d}-reverse`, 0], ...results];
542
+ if (results) {
543
+ return [
544
+ [`--un-divide-${d}-reverse`, 0],
545
+ ...results
546
+ ];
547
+ }
548
548
  }
549
549
  }
550
550
 
@@ -744,6 +744,10 @@ const rules = [
744
744
  questionMark
745
745
  ].flat(1);
746
746
 
747
+ const shortcuts = [
748
+ ...containerShortcuts
749
+ ];
750
+
747
751
  const theme = {
748
752
  ...theme$1,
749
753
  animation: {
@@ -937,6 +941,13 @@ function hasOpacityValue(body) {
937
941
  return false;
938
942
  }
939
943
 
944
+ const variants = (options) => [
945
+ placeholderModifier,
946
+ variantSpaceAndDivide,
947
+ ...variants$1(options),
948
+ ...variantColorsScheme
949
+ ];
950
+
940
951
  const presetWind = (options = {}) => {
941
952
  options.dark = options.dark ?? "class";
942
953
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -944,17 +955,10 @@ const presetWind = (options = {}) => {
944
955
  name: "@unocss/preset-wind",
945
956
  theme,
946
957
  rules,
947
- shortcuts: [
948
- ...containerShortcuts
949
- ],
950
- variants: [
951
- placeholderModifier,
952
- variantSpaceAndDivide,
953
- ...variants(options),
954
- ...variantColorsScheme
955
- ],
958
+ shortcuts,
959
+ variants: variants(options),
956
960
  options
957
961
  };
958
962
  };
959
963
 
960
- export { presetWind as default, presetWind, theme };
964
+ export { presetWind as default, presetWind, rules, shortcuts, theme, variants };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.22.5",
3
+ "version": "0.24.0",
4
4
  "description": "Tailwind / Windi CSS compact preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
7
7
  "unocss-preset"
8
8
  ],
9
- "homepage": "https://github.com/antfu/unocss/tree/main/packages/preset-wind#readme",
9
+ "homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-wind#readme",
10
10
  "bugs": {
11
- "url": "https://github.com/antfu/unocss/issues"
11
+ "url": "https://github.com/unocss/unocss/issues"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/antfu/unocss.git",
15
+ "url": "git+https://github.com/unocss/unocss.git",
16
16
  "directory": "packages/preset-wind"
17
17
  },
18
18
  "funding": "https://github.com/sponsors/antfu",
@@ -35,8 +35,8 @@
35
35
  "*.css"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.22.5",
39
- "@unocss/preset-mini": "0.22.5"
38
+ "@unocss/core": "0.24.0",
39
+ "@unocss/preset-mini": "0.24.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",