@unocss/preset-mini 0.20.2 → 0.21.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.
package/dist/utils.cjs CHANGED
@@ -16,6 +16,7 @@ exports.directionSize = utilities.directionSize;
16
16
  exports.h = utilities.h;
17
17
  exports.handler = utilities.handler;
18
18
  exports.parseColor = utilities.parseColor;
19
+ exports.positionMap = utilities.positionMap;
19
20
  exports.valueHandlers = utilities.valueHandlers;
20
21
  exports.xyzMap = utilities.xyzMap;
21
22
  exports.variantMatcher = variants.variantMatcher;
package/dist/utils.d.ts CHANGED
@@ -5,17 +5,19 @@ import { T as Theme } from './types-a2d2b52f';
5
5
  declare const directionMap: Record<string, string[]>;
6
6
  declare const cornerMap: Record<string, string[]>;
7
7
  declare const xyzMap: Record<string, string[]>;
8
+ declare const positionMap: Record<string, string>;
8
9
 
9
10
  declare function numberWithUnit(str: string): string | undefined;
10
11
  declare function auto(str: string): "auto" | undefined;
11
12
  declare function rem(str: string): string | undefined;
12
13
  declare function px(str: string): string | undefined;
13
- declare function number(str: string): number | undefined;
14
+ declare function number(str: string): string | undefined;
14
15
  declare function percent(str: string): string | undefined;
15
16
  declare function fraction(str: string): string | undefined;
16
17
  declare function bracket(str: string): string | undefined;
17
18
  declare function cssvar(str: string): string | undefined;
18
19
  declare function time(str: string): string | undefined;
20
+ declare function degree(str: string): string | undefined;
19
21
  declare function global(str: string): string | undefined;
20
22
  declare function properties(str: string): string | undefined;
21
23
 
@@ -29,6 +31,7 @@ declare const handlers_fraction: typeof fraction;
29
31
  declare const handlers_bracket: typeof bracket;
30
32
  declare const handlers_cssvar: typeof cssvar;
31
33
  declare const handlers_time: typeof time;
34
+ declare const handlers_degree: typeof degree;
32
35
  declare const handlers_global: typeof global;
33
36
  declare const handlers_properties: typeof properties;
34
37
  declare namespace handlers {
@@ -43,13 +46,14 @@ declare namespace handlers {
43
46
  handlers_bracket as bracket,
44
47
  handlers_cssvar as cssvar,
45
48
  handlers_time as time,
49
+ handlers_degree as degree,
46
50
  handlers_global as global,
47
51
  handlers_properties as properties,
48
52
  };
49
53
  }
50
54
 
51
- declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "global" | "properties">;
52
- declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "global" | "properties">;
55
+ declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "degree" | "global" | "properties">;
56
+ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "degree" | "global" | "properties">;
53
57
 
54
58
  declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
55
59
  declare const variantParentMatcher: (name: string, parent: string) => (input: string) => VariantHandler | undefined;
@@ -106,4 +110,4 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
106
110
  */
107
111
  declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
108
112
 
109
- export { capitalize, colorResolver, cornerMap, directionMap, directionSize, h, handler, parseColor, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
113
+ export { capitalize, colorResolver, cornerMap, directionMap, directionSize, h, handler, parseColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { b as capitalize, c as colorResolver, a as cornerMap, d as directionMap, e as directionSize, f as h, h as handler, p as parseColor, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
1
+ export { b as capitalize, c as colorResolver, a as cornerMap, d as directionMap, e as directionSize, g as h, h as handler, p as parseColor, f as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
2
  export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -18,7 +18,6 @@ exports.variantMotions = _default.variantMotions;
18
18
  exports.variantNegative = _default.variantNegative;
19
19
  exports.variantOrientations = _default.variantOrientations;
20
20
  exports.variantPrint = _default.variantPrint;
21
- exports.variantSpace = _default.variantSpace;
22
21
  exports.variants = _default.variants;
23
22
  exports.CONTROL_BYPASS_PSEUDO_CLASS = pseudo.CONTROL_BYPASS_PSEUDO_CLASS;
24
23
  exports.partClasses = pseudo.partClasses;
@@ -1,20 +1,22 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
3
3
  import { T as Theme } from './types-a2d2b52f';
4
+ import { PresetMiniOptions } from './index';
5
+ import './default-958434b6';
6
+ import './colors-6d634692';
4
7
 
5
8
  declare const variantBreakpoints: Variant<Theme>;
6
9
 
7
10
  declare const variantCombinators: Variant[];
8
11
 
9
- declare const variantColorsMediaOrClass: Variant[];
12
+ declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
10
13
 
11
14
  declare const variantLanguageDirections: Variant[];
12
15
 
13
- declare const variants: Variant<Theme>[];
16
+ declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
14
17
 
15
18
  declare const variantImportant: Variant;
16
19
  declare const variantNegative: Variant;
17
- declare const variantSpace: Variant;
18
20
 
19
21
  declare const variantMotions: Variant[];
20
22
 
@@ -26,7 +28,7 @@ declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
26
28
  declare const variantPseudoElements: VariantFunction;
27
29
  declare const variantPseudoClasses: VariantObject;
28
30
  declare const variantPseudoClassFunctions: VariantObject;
29
- declare const variantTaggedPseudoClasses: VariantObject;
31
+ declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
30
32
  declare const partClasses: VariantObject;
31
33
 
32
- export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantSpace, variantTaggedPseudoClasses, variants };
34
+ export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, e as variantImportant, d as variantLanguageDirections, h as variantMotions, f as variantNegative, i as variantOrientations, j as variantPrint, g as variantSpace, v as variants } from './chunks/default3.mjs';
1
+ export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, e as variantImportant, d as variantLanguageDirections, g as variantMotions, f as variantNegative, h as variantOrientations, i as variantPrint, v as variants } from './chunks/default3.mjs';
2
2
  export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantPseudoClassFunctions, v as variantPseudoClasses, c as variantPseudoElements, b as variantTaggedPseudoClasses } from './chunks/pseudo.mjs';
3
3
  import './chunks/variants.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.20.2",
3
+ "version": "0.21.2",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.20.2"
64
+ "@unocss/core": "0.21.2"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",