@unocss/preset-mini 0.23.0 → 0.24.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 +1 -1
- package/dist/chunks/default2.cjs +118 -133
- package/dist/chunks/default2.mjs +120 -134
- package/dist/chunks/utilities.cjs +130 -112
- package/dist/chunks/utilities.mjs +129 -114
- package/dist/index.d.ts +1 -1
- package/dist/rules.cjs +0 -1
- package/dist/rules.d.ts +1 -2
- package/dist/rules.mjs +1 -1
- package/dist/{utilities-8c324eff.d.ts → utilities-0dc6e82e.d.ts} +5 -4
- package/dist/utils.cjs +3 -0
- package/dist/utils.d.ts +4 -2
- package/dist/utils.mjs +1 -1
- package/dist/variants.d.ts +1 -1
- package/package.json +5 -5
package/dist/rules.cjs
CHANGED
|
@@ -17,7 +17,6 @@ exports.borders = _default.borders;
|
|
|
17
17
|
exports.boxShadows = _default.boxShadows;
|
|
18
18
|
exports.boxSizing = _default.boxSizing;
|
|
19
19
|
exports.breaks = _default.breaks;
|
|
20
|
-
exports.colorableShadows = _default.colorableShadows;
|
|
21
20
|
exports.contents = _default.contents;
|
|
22
21
|
exports.cssProperty = _default.cssProperty;
|
|
23
22
|
exports.cssVariables = _default.cssVariables;
|
package/dist/rules.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ declare const shadowBase: {
|
|
|
56
56
|
'--un-shadow-inset': string;
|
|
57
57
|
'--un-shadow': string;
|
|
58
58
|
};
|
|
59
|
-
declare const colorableShadows: (shadows: string | string[], colorVar: string) => string[];
|
|
60
59
|
declare const boxShadows: Rule<Theme>[];
|
|
61
60
|
|
|
62
61
|
declare const sizes: Rule<Theme>[];
|
|
@@ -97,4 +96,4 @@ declare const cssProperty: Rule[];
|
|
|
97
96
|
|
|
98
97
|
declare const textDecorations: Rule[];
|
|
99
98
|
|
|
100
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks,
|
|
99
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, shadowBase, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { l as alignments, a as appearance,
|
|
1
|
+
export { l as alignments, a as appearance, H as appearances, C as aspectRatio, e as bgColors, b as borders, A as boxShadows, s as boxSizing, O as breaks, N as contents, a0 as cssProperty, $ as cssVariables, I as cursors, G as displays, f as flex, q as floats, S as fontSmoothings, R as fontStyles, W as fonts, g as gaps, h as grids, n as insets, j as justifies, E as margins, c as opacity, k as orders, o as outline, i as overflows, D as paddings, m as placements, J as pointerEvents, p as positions, u as questionMark, K as resizes, x as rings, r as rules, y as shadowBase, B as sizes, T as svgUtilities, X as tabSizes, t as textAligns, d as textColors, a1 as textDecorations, Y as textIndents, P as textOverflows, _ as textShadows, Z as textStrokes, Q as textTransforms, U as transforms, V as transitions, L as userSelects, F as varEmpty, v as verticalAligns, M as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
import './chunks/utilities.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
@@ -36,20 +36,21 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
|
|
|
36
36
|
*
|
|
37
37
|
* @example Resolving 'red-100' from theme:
|
|
38
38
|
* colorResolver('background-color', 'background')('', 'red-100')
|
|
39
|
-
* return { '--un-background-opacity': '1', 'background-color': '
|
|
39
|
+
* return { '--un-background-opacity': '1', 'background-color': 'rgb(254,226,226,var(--un-bg-opacity))' }
|
|
40
40
|
*
|
|
41
41
|
* @example Resolving 'red-100/20' from theme:
|
|
42
42
|
* colorResolver('background-color', 'background')('', 'red-100/20')
|
|
43
|
-
* return { 'background-color': '
|
|
43
|
+
* return { 'background-color': 'rgb(204,251,241,0.22)' }
|
|
44
44
|
*
|
|
45
45
|
* @example Resolving 'hex-124':
|
|
46
46
|
* colorResolver('color', 'text')('', 'hex-124')
|
|
47
|
-
* return { '--un-text-opacity': '1', 'color': '
|
|
47
|
+
* return { '--un-text-opacity': '1', 'color': 'rgb(17,34,68,var(--un-text-opacity))' }
|
|
48
48
|
*
|
|
49
49
|
* @param {string} property - Property for the css value to be created.
|
|
50
50
|
* @param {string} varName - Base name for the opacity variable.
|
|
51
51
|
* @return {DynamicMatcher} {@link DynamicMatcher} object.
|
|
52
52
|
*/
|
|
53
53
|
declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
|
|
54
|
+
declare const colorableShadows: (shadows: string | string[], colorVar: string) => string[];
|
|
54
55
|
|
|
55
|
-
export { colorResolver as c, directionSize as d, parseColor as p };
|
|
56
|
+
export { colorableShadows as a, colorResolver as c, directionSize as d, parseColor as p };
|
package/dist/utils.cjs
CHANGED
|
@@ -9,9 +9,12 @@ require('@unocss/core');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.colorResolver = utilities.colorResolver;
|
|
12
|
+
exports.colorToString = utilities.colorToString;
|
|
13
|
+
exports.colorableShadows = utilities.colorableShadows;
|
|
12
14
|
exports.cornerMap = utilities.cornerMap;
|
|
13
15
|
exports.directionMap = utilities.directionMap;
|
|
14
16
|
exports.directionSize = utilities.directionSize;
|
|
17
|
+
exports.getComponents = utilities.getComponents;
|
|
15
18
|
exports.h = utilities.h;
|
|
16
19
|
exports.handler = utilities.handler;
|
|
17
20
|
exports.hex2rgba = utilities.hex2rgba;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { RGBAColorValue, CSSColorValue, VariantHandler } from '@unocss/core';
|
|
3
|
-
export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-
|
|
3
|
+
export { c as colorResolver, a as colorableShadows, d as directionSize, p as parseColor } from './utilities-0dc6e82e';
|
|
4
4
|
import './types-154878eb';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
8
|
+
declare function colorToString(color: CSSColorValue, alphaOverride?: string | number): string;
|
|
9
|
+
declare function getComponents(str: string, separator?: string, limit?: number): string[] | undefined;
|
|
8
10
|
|
|
9
11
|
declare const directionMap: Record<string, string[]>;
|
|
10
12
|
declare const insetMap: Record<string, string[]>;
|
|
@@ -63,4 +65,4 @@ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit"
|
|
|
63
65
|
declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
|
|
64
66
|
declare const variantParentMatcher: (name: string, parent: string) => (input: string) => VariantHandler | undefined;
|
|
65
67
|
|
|
66
|
-
export { cornerMap, directionMap, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
|
|
68
|
+
export { colorToString, cornerMap, directionMap, getComponents, 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,
|
|
1
|
+
export { c as colorResolver, a as colorToString, e as colorableShadows, b as cornerMap, d as directionMap, f as directionSize, l as getComponents, m as h, h as handler, j as hex2rgba, i as insetMap, p as parseColor, k as parseCssColor, g 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.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { T as Theme } from './types-154878eb';
|
|
|
3
3
|
import { PresetMiniOptions } from './index';
|
|
4
4
|
import './default-c46850c2';
|
|
5
5
|
import './colors-db01a23e';
|
|
6
|
-
import './utilities-
|
|
6
|
+
import './utilities-0dc6e82e';
|
|
7
7
|
|
|
8
8
|
declare const variantBreakpoints: Variant<Theme>;
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
7
7
|
"unocss-preset"
|
|
8
8
|
],
|
|
9
|
-
"homepage": "https://github.com/
|
|
9
|
+
"homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-mini#readme",
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/unocss/unocss/issues"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/
|
|
15
|
+
"url": "git+https://github.com/unocss/unocss.git",
|
|
16
16
|
"directory": "packages/preset-mini"
|
|
17
17
|
},
|
|
18
18
|
"funding": "https://github.com/sponsors/antfu",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.24.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|