@unocss/preset-wind3 66.6.6 → 66.6.7

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/colors.mjs CHANGED
@@ -1,3 +1,2 @@
1
- export * from "@unocss/preset-mini/colors"
2
-
3
- export { };
1
+ export * from "@unocss/preset-mini/colors";
2
+ export {};
@@ -1,6 +1,5 @@
1
1
  import { isString } from "@unocss/core";
2
2
  import { resolveBreakpoints } from "@unocss/preset-mini/utils";
3
-
4
3
  //#region src/rules/container.ts
5
4
  const queryMatcher = /@media \(min-width: (.+)\)/;
6
5
  const container = [[
@@ -49,6 +48,5 @@ const containerShortcuts = [[/^(?:(\w+)[:-])?container$/, ([, bp], context) => {
49
48
  if (!bp) shortcuts.unshift("__container");
50
49
  return shortcuts;
51
50
  }]];
52
-
53
51
  //#endregion
54
- export { containerShortcuts as n, container as t };
52
+ export { containerShortcuts as n, container as t };
@@ -27,7 +27,7 @@ declare const variantStickyHover: Variant[];
27
27
  * Shading mixes the color with black, Tinting mixes the color with white.
28
28
  * @see {@link mixColor}
29
29
  */
30
- declare function variantColorMix<Theme$2 extends object>(): VariantObject<Theme$2>;
30
+ declare function variantColorMix<Theme extends object>(): VariantObject<Theme>;
31
31
  //#endregion
32
32
  //#region src/variants/placeholder.d.ts
33
33
  declare const placeholderModifier: VariantFunction;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as rules } from "./rules-Dd5IWQsx.mjs";
2
- import { t as shortcuts } from "./shortcuts-DRxVPoH8.mjs";
3
- import { t as theme } from "./theme-D8rOP0iB.mjs";
4
- import { a as presetWind3, i as preflights, n as Theme, p as variants, r as colors, t as PresetWind3Options } from "./index-hA29nYTP.mjs";
1
+ import { O as rules } from "./rules-DqR_6INM.mjs";
2
+ import { t as shortcuts } from "./shortcuts-8pxtkf8M.mjs";
3
+ import { t as theme } from "./theme-D7dnAXWj.mjs";
4
+ import { a as presetWind3, i as preflights, n as Theme, p as variants, r as colors, t as PresetWind3Options } from "./index-t_X7Hg-8.mjs";
5
5
  export { PresetWind3Options, Theme, colors, presetWind3 as default, presetWind3 as presetWind, presetWind3, preflights, rules, shortcuts, theme, variants };
package/dist/index.mjs CHANGED
@@ -3,8 +3,7 @@ import { shortcuts } from "./shortcuts.mjs";
3
3
  import { theme } from "./theme.mjs";
4
4
  import { variants } from "./variants.mjs";
5
5
  import { definePreset, toArray } from "@unocss/core";
6
- import presetMini$1, { colors, preflights, presetMini } from "@unocss/preset-mini";
7
-
6
+ import presetMini, { colors, preflights, presetMini as presetMini$1 } from "@unocss/preset-mini";
8
7
  //#region src/postprocessors/important.ts
9
8
  function important(option) {
10
9
  if (option == null || option === false) return [];
@@ -21,13 +20,11 @@ function important(option) {
21
20
  if (!util.selector.startsWith(option)) util.selector = `${option} ${wrapWithIs(util.selector)}`;
22
21
  }];
23
22
  }
24
-
25
23
  //#endregion
26
24
  //#region src/postprocessors/default.ts
27
25
  function postprocessors(options) {
28
- return [...toArray(presetMini$1(options).postprocess), ...important(options.important)];
26
+ return [...toArray(presetMini(options).postprocess), ...important(options.important)];
29
27
  }
30
-
31
28
  //#endregion
32
29
  //#region src/index.ts
33
30
  /**
@@ -38,7 +35,7 @@ function postprocessors(options) {
38
35
  const presetWind3 = definePreset((options = {}) => {
39
36
  options.important = options.important ?? false;
40
37
  return {
41
- ...presetMini(options),
38
+ ...presetMini$1(options),
42
39
  name: "@unocss/preset-wind3",
43
40
  theme,
44
41
  rules,
@@ -47,7 +44,5 @@ const presetWind3 = definePreset((options = {}) => {
47
44
  postprocess: postprocessors(options)
48
45
  };
49
46
  });
50
- var src_default = presetWind3;
51
-
52
47
  //#endregion
53
- export { colors, src_default as default, preflights, presetWind3 as presetWind, presetWind3, rules, shortcuts, theme, variants };
48
+ export { colors, presetWind3 as default, presetWind3 as presetWind, presetWind3, preflights, rules, shortcuts, theme, variants };
package/dist/rules.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as containerShortcuts, C as lineClamps, D as divides, E as filters, F as listStyle, I as overscrolls, L as scrollBehaviors, M as accents, N as carets, O as rules, P as imageRenderings, R as backgroundStyles, S as placeholders, T as filterBase, _ as writingModes, a as touchActionBase, b as scrollSnapTypeBase, c as tables, d as hyphens, f as isolations, g as textTransforms, h as screenReadersAccess, i as fontVariantNumericBase, j as columns, k as container, l as backgroundBlendModes, m as objectPositions, n as cssVariables, o as touchActions, p as mixBlendModes, r as fontVariantNumeric, s as borderSpacingBase, t as viewTransition, u as dynamicViewportHeight, v as writingOrientations, w as backdropFilterBase, x as scrolls, y as spaces, z as animations } from "./rules-Dd5IWQsx.mjs";
1
+ import { A as containerShortcuts, C as lineClamps, D as divides, E as filters, F as listStyle, I as overscrolls, L as scrollBehaviors, M as accents, N as carets, O as rules, P as imageRenderings, R as backgroundStyles, S as placeholders, T as filterBase, _ as writingModes, a as touchActionBase, b as scrollSnapTypeBase, c as tables, d as hyphens, f as isolations, g as textTransforms, h as screenReadersAccess, i as fontVariantNumericBase, j as columns, k as container, l as backgroundBlendModes, m as objectPositions, n as cssVariables, o as touchActions, p as mixBlendModes, r as fontVariantNumeric, s as borderSpacingBase, t as viewTransition, u as dynamicViewportHeight, v as writingOrientations, w as backdropFilterBase, x as scrolls, y as spaces, z as animations } from "./rules-DqR_6INM.mjs";
2
2
  export { accents, animations, backdropFilterBase, backgroundBlendModes, backgroundStyles, borderSpacingBase, carets, columns, container, containerShortcuts, cssVariables, divides, dynamicViewportHeight, filterBase, filters, fontVariantNumeric, fontVariantNumericBase, hyphens, imageRenderings, isolations, lineClamps, listStyle, mixBlendModes, objectPositions, overscrolls, placeholders, rules, screenReadersAccess, scrollBehaviors, scrollSnapTypeBase, scrolls, spaces, tables, textTransforms, touchActionBase, touchActions, viewTransition, writingModes, writingOrientations };
package/dist/rules.mjs CHANGED
@@ -1,9 +1,8 @@
1
- import { n as containerShortcuts, t as container } from "./container-re6ef8hp.mjs";
1
+ import { n as containerShortcuts, t as container } from "./container-SVSSaqGJ.mjs";
2
2
  import { colorResolver, colorableShadows, directionMap, directionSize, globalKeywords, h, makeGlobalStaticRules, parseColor, positionMap } from "@unocss/preset-mini/utils";
3
3
  import { colorOpacityToString, colorToString } from "@unocss/rule-utils";
4
4
  import * as _ from "@unocss/preset-mini/rules";
5
5
  import { borderStyles, varEmpty } from "@unocss/preset-mini/rules";
6
-
7
6
  //#region src/rules/animation.ts
8
7
  const animations = [
9
8
  [
@@ -99,7 +98,6 @@ const animations = [
99
98
  ["animate-none", { animation: "none" }],
100
99
  ...makeGlobalStaticRules("animate", "animation")
101
100
  ];
102
-
103
101
  //#endregion
104
102
  //#region src/rules/background.ts
105
103
  function bgGradientToValue(cssColor) {
@@ -239,7 +237,6 @@ const backgroundStyles = [
239
237
  ["bg-origin-content", { "background-origin": "content-box" }],
240
238
  ...makeGlobalStaticRules("bg-origin", "background-origin")
241
239
  ];
242
-
243
240
  //#endregion
244
241
  //#region src/rules/behaviors.ts
245
242
  const listStyles = {
@@ -328,7 +325,6 @@ const scrollBehaviors = [
328
325
  ["scroll-smooth", { "scroll-behavior": "smooth" }],
329
326
  ...makeGlobalStaticRules("scroll", "scroll-behavior")
330
327
  ];
331
-
332
328
  //#endregion
333
329
  //#region src/rules/columns.ts
334
330
  const columns = [
@@ -365,7 +361,6 @@ const columns = [
365
361
  ["break-after-column", { "break-after": "column" }],
366
362
  ...makeGlobalStaticRules("break-after")
367
363
  ];
368
-
369
364
  //#endregion
370
365
  //#region src/rules/divide.ts
371
366
  const divides = [
@@ -405,7 +400,6 @@ function handlerDivide([, d, s], { theme }) {
405
400
  if (results) return [[`--un-divide-${d}-reverse`, 0], ...results];
406
401
  }
407
402
  }
408
-
409
403
  //#endregion
410
404
  //#region src/rules/filters.ts
411
405
  const filterBase = {
@@ -610,7 +604,6 @@ const filters = [
610
604
  "backdrop-filter": keyword
611
605
  }])
612
606
  ];
613
-
614
607
  //#endregion
615
608
  //#region src/rules/line-clamp.ts
616
609
  const lineClamps = [[
@@ -630,7 +623,6 @@ const lineClamps = [[
630
623
  "-webkit-line-clamp": keyword,
631
624
  "line-clamp": keyword
632
625
  }])];
633
-
634
626
  //#endregion
635
627
  //#region src/rules/placeholder.ts
636
628
  const placeholders = [[
@@ -642,7 +634,6 @@ const placeholders = [[
642
634
  ([, opacity]) => ({ "--un-placeholder-opacity": h.bracket.percent(opacity) }),
643
635
  { autocomplete: ["placeholder-(op|opacity)", "placeholder-(op|opacity)-<percent>"] }
644
636
  ]];
645
-
646
637
  //#endregion
647
638
  //#region src/rules/scrolls.ts
648
639
  const scrollSnapTypeBase = { "--un-scroll-snap-strictness": "proximity" };
@@ -690,7 +681,6 @@ const scrolls = [
690
681
  [/^scroll-p-(block|inline)-(.+)$/, directionSize("scroll-padding")],
691
682
  [/^scroll-p-?([bi][se])-?(.+)$/, directionSize("scroll-padding")]
692
683
  ];
693
-
694
684
  //#endregion
695
685
  //#region src/rules/spacing.ts
696
686
  const spaces = [
@@ -717,7 +707,6 @@ function handlerSpace([, d, s], { theme }) {
717
707
  if (results) return [[`--un-space-${d}-reverse`, 0], ...results];
718
708
  }
719
709
  }
720
-
721
710
  //#endregion
722
711
  //#region src/rules/static.ts
723
712
  const textTransforms = [
@@ -838,7 +827,6 @@ const dynamicViewportHeight = [
838
827
  ["max-h-svh", { "max-height": "100svh" }],
839
828
  ["max-h-lvh", { "max-height": "100lvh" }]
840
829
  ];
841
-
842
830
  //#endregion
843
831
  //#region src/rules/table.ts
844
832
  const borderSpacingBase = {
@@ -896,7 +884,6 @@ const tables = [
896
884
  ["table-empty-cells-visible", { "empty-cells": "show" }],
897
885
  ["table-empty-cells-hidden", { "empty-cells": "hide" }]
898
886
  ];
899
-
900
887
  //#endregion
901
888
  //#region src/rules/touch-actions.ts
902
889
  const touchActionBase = {
@@ -939,7 +926,6 @@ const touchActions = [
939
926
  ["touch-none", { "touch-action": "none" }],
940
927
  ...makeGlobalStaticRules("touch", "touch-action")
941
928
  ];
942
-
943
929
  //#endregion
944
930
  //#region src/rules/typography.ts
945
931
  const fontVariantNumericBase = {
@@ -1023,7 +1009,6 @@ const fontVariantNumeric = [
1023
1009
  ],
1024
1010
  ["normal-nums", { "font-variant-numeric": "normal" }]
1025
1011
  ];
1026
-
1027
1012
  //#endregion
1028
1013
  //#region src/rules/variables.ts
1029
1014
  const variablesAbbrMap = {
@@ -1045,13 +1030,11 @@ const cssVariables = [[/^(.+?)-(\$.+)$/, ([, name, varname]) => {
1045
1030
  const prop = variablesAbbrMap[name];
1046
1031
  if (prop) return { [prop]: h.cssvar(varname) };
1047
1032
  }]];
1048
-
1049
1033
  //#endregion
1050
1034
  //#region src/rules/view-transition.ts
1051
1035
  const viewTransition = [[/^view-transition-([\w-]+)$/, ([, name]) => {
1052
1036
  return { "view-transition-name": name };
1053
1037
  }]];
1054
-
1055
1038
  //#endregion
1056
1039
  //#region src/rules/default.ts
1057
1040
  const rules = [
@@ -1146,6 +1129,5 @@ const rules = [
1146
1129
  _.fieldSizing,
1147
1130
  _.questionMark
1148
1131
  ].flat(1);
1149
-
1150
1132
  //#endregion
1151
- export { accents, animations, backdropFilterBase, backgroundBlendModes, backgroundStyles, borderSpacingBase, carets, columns, container, containerShortcuts, cssVariables, divides, dynamicViewportHeight, filterBase, filters, fontVariantNumeric, fontVariantNumericBase, hyphens, imageRenderings, isolations, lineClamps, listStyle, mixBlendModes, objectPositions, overscrolls, placeholders, rules, screenReadersAccess, scrollBehaviors, scrollSnapTypeBase, scrolls, spaces, tables, textTransforms, touchActionBase, touchActions, viewTransition, writingModes, writingOrientations };
1133
+ export { accents, animations, backdropFilterBase, backgroundBlendModes, backgroundStyles, borderSpacingBase, carets, columns, container, containerShortcuts, cssVariables, divides, dynamicViewportHeight, filterBase, filters, fontVariantNumeric, fontVariantNumericBase, hyphens, imageRenderings, isolations, lineClamps, listStyle, mixBlendModes, objectPositions, overscrolls, placeholders, rules, screenReadersAccess, scrollBehaviors, scrollSnapTypeBase, scrolls, spaces, tables, textTransforms, touchActionBase, touchActions, viewTransition, writingModes, writingOrientations };
@@ -1,2 +1,2 @@
1
- import { t as shortcuts } from "./shortcuts-DRxVPoH8.mjs";
1
+ import { t as shortcuts } from "./shortcuts-8pxtkf8M.mjs";
2
2
  export { shortcuts };
@@ -1,7 +1,5 @@
1
- import { n as containerShortcuts } from "./container-re6ef8hp.mjs";
2
-
1
+ import { n as containerShortcuts } from "./container-SVSSaqGJ.mjs";
3
2
  //#region src/shortcuts.ts
4
3
  const shortcuts = [...containerShortcuts];
5
-
6
4
  //#endregion
7
- export { shortcuts };
5
+ export { shortcuts };
package/dist/theme.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as theme } from "./theme-D8rOP0iB.mjs";
1
+ import { t as theme } from "./theme-D7dnAXWj.mjs";
2
2
  export { theme };
package/dist/theme.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { backdropFilterBase, borderSpacingBase, filterBase, fontVariantNumericBase, scrollSnapTypeBase, touchActionBase } from "./rules.mjs";
2
2
  import { boxShadowsBase, ringBase, transformBase } from "@unocss/preset-mini/rules";
3
3
  import { theme as theme$1 } from "@unocss/preset-mini/theme";
4
-
5
4
  //#region src/theme.ts
6
5
  const theme = {
7
6
  ...theme$1,
@@ -309,6 +308,5 @@ const theme = {
309
308
  ...backdropFilterBase
310
309
  }
311
310
  };
312
-
313
311
  //#endregion
314
- export { theme };
312
+ export { theme };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,2 @@
1
- export * from "@unocss/rule-utils"
2
-
3
- export { };
1
+ export * from "@unocss/rule-utils";
2
+ export {};
@@ -1,5 +1,2 @@
1
- import "./rules-Dd5IWQsx.mjs";
2
- import "./shortcuts-DRxVPoH8.mjs";
3
- import "./theme-D8rOP0iB.mjs";
4
- import { c as variantSpaceAndDivide, d as variantMotions, f as variantOrientations, h as variantCombinators, l as variantStickyHover, m as variantColorsScheme, o as placeholderModifier, p as variants, s as variantColorMix, u as variantContrasts } from "./index-hA29nYTP.mjs";
1
+ import { c as variantSpaceAndDivide, d as variantMotions, f as variantOrientations, h as variantCombinators, l as variantStickyHover, m as variantColorsScheme, o as placeholderModifier, p as variants, s as variantColorMix, u as variantContrasts } from "./index-t_X7Hg-8.mjs";
5
2
  export { placeholderModifier, variantColorMix, variantColorsScheme, variantCombinators, variantContrasts, variantMotions, variantOrientations, variantSpaceAndDivide, variantStickyHover, variants };
package/dist/variants.mjs CHANGED
@@ -1,10 +1,8 @@
1
1
  import { h, hasParseableColor, variantMatcher, variantParentMatcher } from "@unocss/preset-mini/utils";
2
2
  import { colorToString, parseCssColor, variantMatcher as variantMatcher$1 } from "@unocss/rule-utils";
3
3
  import { variants as variants$1 } from "@unocss/preset-mini/variants";
4
-
5
4
  //#region src/variants/combinators.ts
6
5
  const variantCombinators = [variantMatcher("svg", (input) => ({ selector: `${input.selector} svg` }))];
7
-
8
6
  //#endregion
9
7
  //#region src/variants/dark.ts
10
8
  const variantColorsScheme = [
@@ -13,13 +11,11 @@ const variantColorsScheme = [
13
11
  variantParentMatcher("@dark", "@media (prefers-color-scheme: dark)"),
14
12
  variantParentMatcher("@light", "@media (prefers-color-scheme: light)")
15
13
  ];
16
-
17
14
  //#endregion
18
15
  //#region src/variants/media.ts
19
16
  const variantContrasts = [variantParentMatcher("contrast-more", "@media (prefers-contrast: more)"), variantParentMatcher("contrast-less", "@media (prefers-contrast: less)")];
20
17
  const variantMotions = [variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"), variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")];
21
18
  const variantOrientations = [variantParentMatcher("landscape", "@media (orientation: landscape)"), variantParentMatcher("portrait", "@media (orientation: portrait)")];
22
-
23
19
  //#endregion
24
20
  //#region src/variants/misc.ts
25
21
  const variantSpaceAndDivide = (matcher) => {
@@ -36,7 +32,6 @@ const variantStickyHover = [variantMatcher$1("@hover", (input) => ({
36
32
  parent: `${input.parent ? `${input.parent} $$ ` : ""}@media (hover: hover) and (pointer: fine)`,
37
33
  selector: `${input.selector || ""}:hover`
38
34
  }))];
39
-
40
35
  //#endregion
41
36
  //#region src/variants/mix.ts
42
37
  function mixComponent(v1, v2, w) {
@@ -101,7 +96,7 @@ function variantColorMix() {
101
96
  return {
102
97
  name: "mix",
103
98
  match(matcher, ctx) {
104
- if (!re) re = /* @__PURE__ */ new RegExp(`^mix-(tint|shade|shift)-(-?\\d{1,3})(?:${ctx.generator.config.separators.join("|")})`);
99
+ if (!re) re = new RegExp(`^mix-(tint|shade|shift)-(-?\\d{1,3})(?:${ctx.generator.config.separators.join("|")})`);
105
100
  const m = matcher.match(re);
106
101
  if (m) return {
107
102
  matcher: matcher.slice(m[0].length),
@@ -121,7 +116,6 @@ function variantColorMix() {
121
116
  }
122
117
  };
123
118
  }
124
-
125
119
  //#endregion
126
120
  //#region src/variants/placeholder.ts
127
121
  const placeholderModifier = (input, { theme }) => {
@@ -136,7 +130,6 @@ function hasOpacityValue(body) {
136
130
  if (match && match[1] != null) return h.bracket.percent(match[1]) != null;
137
131
  return false;
138
132
  }
139
-
140
133
  //#endregion
141
134
  //#region src/variants/default.ts
142
135
  function variants(options) {
@@ -153,6 +146,5 @@ function variants(options) {
153
146
  variantColorMix()
154
147
  ];
155
148
  }
156
-
157
149
  //#endregion
158
- export { placeholderModifier, variantColorMix, variantColorsScheme, variantCombinators, variantContrasts, variantMotions, variantOrientations, variantSpaceAndDivide, variantStickyHover, variants };
150
+ export { placeholderModifier, variantColorMix, variantColorsScheme, variantCombinators, variantContrasts, variantMotions, variantOrientations, variantSpaceAndDivide, variantStickyHover, variants };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind3",
3
3
  "type": "module",
4
- "version": "66.6.6",
4
+ "version": "66.6.7",
5
5
  "description": "Tailwind 3 / Windi CSS compact preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -43,9 +43,9 @@
43
43
  "dist"
44
44
  ],
45
45
  "dependencies": {
46
- "@unocss/core": "66.6.6",
47
- "@unocss/preset-mini": "66.6.6",
48
- "@unocss/rule-utils": "66.6.6"
46
+ "@unocss/preset-mini": "66.6.7",
47
+ "@unocss/core": "66.6.7",
48
+ "@unocss/rule-utils": "66.6.7"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown",