@unocss/preset-mini 0.29.6 → 0.30.2

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.
@@ -259,17 +259,17 @@ const fonts = [
259
259
  { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
260
260
  ],
261
261
  [
262
- /^(?:leading|lh)-(.+)$/,
262
+ /^(?:font-)?(?:leading|lh)-(.+)$/,
263
263
  ([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || utilities.handler.bracket.cssvar.global.rem(s) }),
264
264
  { autocomplete: "(leading|lh)-$lineHeight" }
265
265
  ],
266
266
  [
267
- /^tracking-(.+)$/,
267
+ /^(?:font-)?tracking-(.+)$/,
268
268
  ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || utilities.handler.bracket.cssvar.global.rem(s) }),
269
269
  { autocomplete: "tracking-$letterSpacing" }
270
270
  ],
271
271
  [
272
- /^word-spacing-(.+)$/,
272
+ /^(?:font-)?word-spacing-(.+)$/,
273
273
  ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || utilities.handler.bracket.cssvar.global.rem(s) }),
274
274
  { autocomplete: "word-spacing-$wordSpacing" }
275
275
  ]
@@ -554,7 +554,9 @@ const textTransforms = [
554
554
  ];
555
555
  const fontStyles = [
556
556
  ["italic", { "font-style": "italic" }],
557
- ["not-italic", { "font-style": "normal" }]
557
+ ["not-italic", { "font-style": "normal" }],
558
+ ["font-italic", { "font-style": "italic" }],
559
+ ["font-not-italic", { "font-style": "normal" }]
558
560
  ];
559
561
  const fontSmoothings = [
560
562
  ["antialiased", {
@@ -257,17 +257,17 @@ const fonts = [
257
257
  { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
258
258
  ],
259
259
  [
260
- /^(?:leading|lh)-(.+)$/,
260
+ /^(?:font-)?(?:leading|lh)-(.+)$/,
261
261
  ([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || handler.bracket.cssvar.global.rem(s) }),
262
262
  { autocomplete: "(leading|lh)-$lineHeight" }
263
263
  ],
264
264
  [
265
- /^tracking-(.+)$/,
265
+ /^(?:font-)?tracking-(.+)$/,
266
266
  ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || handler.bracket.cssvar.global.rem(s) }),
267
267
  { autocomplete: "tracking-$letterSpacing" }
268
268
  ],
269
269
  [
270
- /^word-spacing-(.+)$/,
270
+ /^(?:font-)?word-spacing-(.+)$/,
271
271
  ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || handler.bracket.cssvar.global.rem(s) }),
272
272
  { autocomplete: "word-spacing-$wordSpacing" }
273
273
  ]
@@ -552,7 +552,9 @@ const textTransforms = [
552
552
  ];
553
553
  const fontStyles = [
554
554
  ["italic", { "font-style": "italic" }],
555
- ["not-italic", { "font-style": "normal" }]
555
+ ["not-italic", { "font-style": "normal" }],
556
+ ["font-italic", { "font-style": "italic" }],
557
+ ["font-not-italic", { "font-style": "normal" }]
556
558
  ];
557
559
  const fontSmoothings = [
558
560
  ["antialiased", {
package/dist/index.cjs CHANGED
@@ -10,8 +10,6 @@ const utilities = require('./chunks/utilities.cjs');
10
10
  require('@unocss/core');
11
11
  require('./chunks/variants.cjs');
12
12
 
13
- const autocomplete = [];
14
-
15
13
  const presetMini = (options = {}) => {
16
14
  options.dark = options.dark ?? "class";
17
15
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -21,7 +19,6 @@ const presetMini = (options = {}) => {
21
19
  rules: _default$1.rules,
22
20
  variants: _default$2.variants(options),
23
21
  options,
24
- autocomplete,
25
22
  postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
26
23
  };
27
24
  };
@@ -38,6 +35,5 @@ function VarPrefixPostprocessor(prefix) {
38
35
  exports.theme = _default.theme;
39
36
  exports.colors = colors.colors;
40
37
  exports.parseColor = utilities.parseColor;
41
- exports.autocomplete = autocomplete;
42
38
  exports["default"] = presetMini;
43
39
  exports.presetMini = presetMini;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
- import { AutoCompleteTemplate, PresetOptions, Preset } from '@unocss/core';
1
+ import { PresetOptions, Preset } from '@unocss/core';
2
2
  import { T as Theme } from './types-f7b2c653.js';
3
3
  export { T as Theme, a as ThemeAnimation } from './types-f7b2c653.js';
4
4
  export { t as theme } from './default-e6d1b2e8.js';
5
5
  export { c as colors } from './colors-ce2fecb8.js';
6
6
  export { p as parseColor } from './utilities-820bcff8.js';
7
7
 
8
- declare const autocomplete: AutoCompleteTemplate[];
9
-
10
8
  interface PresetMiniOptions extends PresetOptions {
11
9
  /**
12
10
  * @default 'class'
@@ -23,4 +21,4 @@ interface PresetMiniOptions extends PresetOptions {
23
21
  }
24
22
  declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
25
23
 
26
- export { PresetMiniOptions, autocomplete, presetMini as default, presetMini };
24
+ export { PresetMiniOptions, presetMini as default, presetMini };
package/dist/index.mjs CHANGED
@@ -7,8 +7,6 @@ export { p as parseColor } from './chunks/utilities.mjs';
7
7
  import '@unocss/core';
8
8
  import './chunks/variants.mjs';
9
9
 
10
- const autocomplete = [];
11
-
12
10
  const presetMini = (options = {}) => {
13
11
  options.dark = options.dark ?? "class";
14
12
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -18,7 +16,6 @@ const presetMini = (options = {}) => {
18
16
  rules,
19
17
  variants: variants(options),
20
18
  options,
21
- autocomplete,
22
19
  postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
23
20
  };
24
21
  };
@@ -32,4 +29,4 @@ function VarPrefixPostprocessor(prefix) {
32
29
  };
33
30
  }
34
31
 
35
- export { autocomplete, presetMini as default, presetMini };
32
+ export { presetMini as default, presetMini };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.29.6",
3
+ "version": "0.30.2",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -61,7 +61,7 @@
61
61
  ],
62
62
  "sideEffects": false,
63
63
  "dependencies": {
64
- "@unocss/core": "0.29.6"
64
+ "@unocss/core": "0.30.2"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",