@unocss/preset-mini 0.22.4 → 0.23.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/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-338f482c';
2
- export { t as theme } from './default-17948303';
3
- import { T as Theme } from './types-c14b808b';
4
- export { T as Theme, a as ThemeAnimation } from './types-c14b808b';
1
+ export { c as colors } from './colors-db01a23e';
2
+ export { t as theme } from './default-c46850c2';
3
+ import { T as Theme } from './types-154878eb';
4
+ export { T as Theme, a as ThemeAnimation } from './types-154878eb';
5
5
 
6
6
  declare const blur: {
7
7
  DEFAULT: string;
@@ -64,6 +64,13 @@ declare const boxShadow: {
64
64
  inner: string;
65
65
  none: string;
66
66
  };
67
+ declare const easing: {
68
+ DEFAULT: string;
69
+ linear: string;
70
+ in: string;
71
+ out: string;
72
+ 'in-out': string;
73
+ };
67
74
 
68
75
  declare const baseSize: {
69
76
  xs: string;
@@ -144,4 +151,4 @@ declare const maxHeight: {
144
151
  none: string;
145
152
  };
146
153
 
147
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, width, wordSpacing };
154
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, width, wordSpacing };
package/dist/theme.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  export { c as colors } from './chunks/colors.mjs';
2
- export { m as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, f as fontFamily, a as fontSize, p as height, h as letterSpacing, l as lineHeight, q as maxHeight, o as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, n as width, w as wordSpacing } from './chunks/default.mjs';
2
+ export { n as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, m as easing, f as fontFamily, a as fontSize, q as height, h as letterSpacing, l as lineHeight, r as maxHeight, p as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, o as width, w as wordSpacing } from './chunks/default.mjs';
@@ -31,6 +31,7 @@ interface Theme {
31
31
  textStrokeWidth?: Record<string, string>;
32
32
  blur?: Record<string, string>;
33
33
  dropShadow?: Record<string, string | string[]>;
34
+ easing?: Record<string, string>;
34
35
  animation?: ThemeAnimation;
35
36
  }
36
37
 
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue } from '@unocss/core';
2
- import { T as Theme } from './types-c14b808b';
2
+ import { T as Theme } from './types-154878eb';
3
3
 
4
4
  /**
5
5
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
package/dist/utils.cjs CHANGED
@@ -14,8 +14,10 @@ exports.directionMap = utilities.directionMap;
14
14
  exports.directionSize = utilities.directionSize;
15
15
  exports.h = utilities.h;
16
16
  exports.handler = utilities.handler;
17
+ exports.hex2rgba = utilities.hex2rgba;
17
18
  exports.insetMap = utilities.insetMap;
18
19
  exports.parseColor = utilities.parseColor;
20
+ exports.parseCssColor = utilities.parseCssColor;
19
21
  exports.positionMap = utilities.positionMap;
20
22
  exports.valueHandlers = utilities.valueHandlers;
21
23
  exports.xyzMap = utilities.xyzMap;
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
- import { VariantHandler } from '@unocss/core';
3
- export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-29b01158';
4
- import './types-c14b808b';
2
+ import { RGBAColorValue, CSSColorValue, VariantHandler } from '@unocss/core';
3
+ export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-8c324eff';
4
+ import './types-154878eb';
5
+
6
+ declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
+ declare function parseCssColor(str?: string): CSSColorValue | undefined;
5
8
 
6
9
  declare const directionMap: Record<string, string[]>;
7
10
  declare const insetMap: Record<string, string[]>;
@@ -60,4 +63,4 @@ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit"
60
63
  declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
61
64
  declare const variantParentMatcher: (name: string, parent: string) => (input: string) => VariantHandler | undefined;
62
65
 
63
- export { cornerMap, directionMap, h, handler, insetMap, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
66
+ export { cornerMap, directionMap, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, f as h, h as handler, i as insetMap, p as parseColor, e as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
1
+ export { c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, j as h, h as handler, f as hex2rgba, i as insetMap, p as parseColor, g as parseCssColor, e 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
@@ -14,6 +14,7 @@ exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
14
14
  exports.variantCombinators = _default.variantCombinators;
15
15
  exports.variantImportant = _default.variantImportant;
16
16
  exports.variantLanguageDirections = _default.variantLanguageDirections;
17
+ exports.variantLayer = _default.variantLayer;
17
18
  exports.variantMotions = _default.variantMotions;
18
19
  exports.variantNegative = _default.variantNegative;
19
20
  exports.variantOrientations = _default.variantOrientations;
@@ -1,9 +1,9 @@
1
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './types-c14b808b';
2
+ import { T as Theme } from './types-154878eb';
3
3
  import { PresetMiniOptions } from './index';
4
- import './default-17948303';
5
- import './colors-338f482c';
6
- import './utilities-29b01158';
4
+ import './default-c46850c2';
5
+ import './colors-db01a23e';
6
+ import './utilities-8c324eff';
7
7
 
8
8
  declare const variantBreakpoints: Variant<Theme>;
9
9
 
@@ -19,6 +19,7 @@ declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
19
19
 
20
20
  declare const variantLanguageDirections: Variant[];
21
21
 
22
+ declare const variantLayer: Variant;
22
23
  declare const variantImportant: Variant;
23
24
  declare const variantNegative: Variant;
24
25
 
@@ -28,4 +29,4 @@ declare const variantPseudoClassFunctions: VariantObject;
28
29
  declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
29
30
  declare const partClasses: VariantObject;
30
31
 
31
- export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
32
+ export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantLayer, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, h as variantImportant, g as variantLanguageDirections, c as variantMotions, i as variantNegative, d as variantOrientations, e as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
1
+ export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, i as variantImportant, g as variantLanguageDirections, h as variantLayer, c as variantMotions, j as variantNegative, d as variantOrientations, e as variantPrint, m as variantPseudoClassFunctions, l as variantPseudoClasses, k as variantPseudoElements, n as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
2
2
  import './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.22.4",
3
+ "version": "0.23.0",
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.22.4"
64
+ "@unocss/core": "0.23.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",