@unocss/preset-mini 0.35.2 → 0.36.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 +64 -0
- package/dist/chunks/default.cjs +8 -1
- package/dist/chunks/default.mjs +8 -2
- package/dist/chunks/default2.cjs +86 -230
- package/dist/chunks/default2.mjs +12 -155
- package/dist/chunks/default3.cjs +34 -12
- package/dist/chunks/default3.mjs +34 -13
- package/dist/chunks/index.cjs +310 -0
- package/dist/chunks/index.mjs +300 -0
- package/dist/chunks/transform.cjs +129 -0
- package/dist/chunks/transform.mjs +126 -0
- package/dist/chunks/utilities.cjs +6 -297
- package/dist/chunks/utilities.mjs +3 -286
- package/dist/{colors-ce2fecb8.d.ts → colors-5590b862.d.ts} +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/{default-e6d1b2e8.d.ts → default-ee82f36d.d.ts} +1 -1
- package/dist/index.cjs +16 -2
- package/dist/index.d.ts +9 -7
- package/dist/index.mjs +16 -3
- package/dist/rules.cjs +5 -2
- package/dist/rules.d.ts +17 -2
- package/dist/rules.mjs +4 -2
- package/dist/theme.cjs +4 -0
- package/dist/theme.d.ts +21 -5
- package/dist/theme.mjs +4 -1
- package/dist/{types-f7b2c653.d.ts → types-0f7ef446.d.ts} +2 -0
- package/dist/{utilities-e7a7f845.d.ts → utilities-a77178bb.d.ts} +1 -1
- package/dist/utils.cjs +10 -8
- package/dist/utils.d.ts +9 -5
- package/dist/utils.mjs +2 -1
- package/dist/variants.cjs +3 -1
- package/dist/variants.d.ts +7 -6
- package/dist/variants.mjs +2 -1
- package/package.json +2 -2
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { RGBAColorValue, CSSColorValue, VariantObject } from '@unocss/core';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-
|
|
4
|
-
import './types-
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-a77178bb.js';
|
|
4
|
+
import './types-0f7ef446.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
@@ -13,6 +13,7 @@ declare const insetMap: Record<string, string[]>;
|
|
|
13
13
|
declare const cornerMap: Record<string, string[]>;
|
|
14
14
|
declare const xyzMap: Record<string, string[]>;
|
|
15
15
|
declare const positionMap: Record<string, string>;
|
|
16
|
+
declare const globalKeywords: string[];
|
|
16
17
|
|
|
17
18
|
declare function numberWithUnit(str: string): string | undefined;
|
|
18
19
|
declare function auto(str: string): "auto" | undefined;
|
|
@@ -30,6 +31,7 @@ declare function time(str: string): string | undefined;
|
|
|
30
31
|
declare function degree(str: string): string | undefined;
|
|
31
32
|
declare function global(str: string): string | undefined;
|
|
32
33
|
declare function properties(str: string): string | undefined;
|
|
34
|
+
declare function position(str: string): string | undefined;
|
|
33
35
|
|
|
34
36
|
declare const handlers_numberWithUnit: typeof numberWithUnit;
|
|
35
37
|
declare const handlers_auto: typeof auto;
|
|
@@ -47,6 +49,7 @@ declare const handlers_time: typeof time;
|
|
|
47
49
|
declare const handlers_degree: typeof degree;
|
|
48
50
|
declare const handlers_global: typeof global;
|
|
49
51
|
declare const handlers_properties: typeof properties;
|
|
52
|
+
declare const handlers_position: typeof position;
|
|
50
53
|
declare namespace handlers {
|
|
51
54
|
export {
|
|
52
55
|
handlers_numberWithUnit as numberWithUnit,
|
|
@@ -65,13 +68,14 @@ declare namespace handlers {
|
|
|
65
68
|
handlers_degree as degree,
|
|
66
69
|
handlers_global as global,
|
|
67
70
|
handlers_properties as properties,
|
|
71
|
+
handlers_position as position,
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
declare const handler: _unocss_core.ValueHandler<"number" | "global" | "
|
|
72
|
-
declare const h: _unocss_core.ValueHandler<"number" | "global" | "
|
|
75
|
+
declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
76
|
+
declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
73
77
|
|
|
74
78
|
declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => VariantObject;
|
|
75
79
|
declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
|
|
76
80
|
|
|
77
|
-
export { colorToString, cornerMap, directionMap, getComponents, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
|
|
81
|
+
export { colorToString, cornerMap, directionMap, getComponents, globalKeywords, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver,
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorToString, b as colorableShadows, e as directionSize, i as getComponents, h as hasParseableColor, f as hex2rgba, p as parseColor, g as parseCssColor, d as resolveBreakpoints, r as resolveVerticalBreakpoints } from './chunks/utilities.mjs';
|
|
2
|
+
export { c as cornerMap, d as directionMap, g as globalKeywords, a as h, h as handler, i as insetMap, p as positionMap, v as valueHandlers, x as xyzMap } from './chunks/index.mjs';
|
|
2
3
|
export { a as variantMatcher, v as variantParentMatcher } from './chunks/variants.mjs';
|
|
3
4
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const _default = require('./chunks/default3.cjs');
|
|
6
6
|
require('./chunks/utilities.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
+
require('./chunks/index.cjs');
|
|
8
9
|
require('./chunks/variants.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
@@ -13,10 +14,11 @@ exports.partClasses = _default.partClasses;
|
|
|
13
14
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
14
15
|
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
15
16
|
exports.variantCombinators = _default.variantCombinators;
|
|
17
|
+
exports.variantCssLayer = _default.variantCssLayer;
|
|
16
18
|
exports.variantCustomMedia = _default.variantCustomMedia;
|
|
17
19
|
exports.variantImportant = _default.variantImportant;
|
|
20
|
+
exports.variantInternalLayer = _default.variantInternalLayer;
|
|
18
21
|
exports.variantLanguageDirections = _default.variantLanguageDirections;
|
|
19
|
-
exports.variantLayer = _default.variantLayer;
|
|
20
22
|
exports.variantNegative = _default.variantNegative;
|
|
21
23
|
exports.variantPrint = _default.variantPrint;
|
|
22
24
|
exports.variantPseudoClassFunctions = _default.variantPseudoClassFunctions;
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Variant, VariantObject } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-0f7ef446.js';
|
|
3
3
|
import { PresetMiniOptions } from './index.js';
|
|
4
|
-
import './default-
|
|
5
|
-
import './colors-
|
|
6
|
-
import './utilities-
|
|
4
|
+
import './default-ee82f36d.js';
|
|
5
|
+
import './colors-5590b862.js';
|
|
6
|
+
import './utilities-a77178bb.js';
|
|
7
7
|
|
|
8
8
|
declare const variantBreakpoints: Variant<Theme>;
|
|
9
9
|
|
|
@@ -19,7 +19,8 @@ declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
|
|
|
19
19
|
declare const variantLanguageDirections: Variant[];
|
|
20
20
|
|
|
21
21
|
declare const variantSelector: Variant;
|
|
22
|
-
declare const
|
|
22
|
+
declare const variantCssLayer: Variant;
|
|
23
|
+
declare const variantInternalLayer: Variant;
|
|
23
24
|
declare const variantScope: Variant;
|
|
24
25
|
declare const variantImportant: Variant;
|
|
25
26
|
declare const variantNegative: Variant;
|
|
@@ -29,4 +30,4 @@ declare const variantPseudoClassFunctions: VariantObject;
|
|
|
29
30
|
declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
|
|
30
31
|
declare const partClasses: VariantObject;
|
|
31
32
|
|
|
32
|
-
export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCustomMedia, variantImportant,
|
|
33
|
+
export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantTaggedPseudoClasses, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantCustomMedia,
|
|
1
|
+
export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, h as variantCssLayer, d as variantCustomMedia, k as variantImportant, i as variantInternalLayer, f as variantLanguageDirections, l as variantNegative, c as variantPrint, n as variantPseudoClassFunctions, m as variantPseudoClassesAndElements, j as variantScope, g as variantSelector, o as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
|
|
2
2
|
import './chunks/utilities.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
+
import './chunks/index.mjs';
|
|
4
5
|
import './chunks/variants.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.36.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|