@unocss/preset-mini 0.41.2 → 0.43.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/chunks/{utilities.cjs → colors2.cjs} +233 -231
- package/dist/chunks/{utilities.mjs → colors2.mjs} +233 -232
- package/dist/chunks/default.cjs +3 -3
- package/dist/chunks/default.mjs +3 -3
- package/dist/chunks/default2.cjs +146 -147
- package/dist/chunks/default2.mjs +32 -34
- package/dist/chunks/default3.cjs +33 -40
- package/dist/chunks/default3.mjs +31 -38
- package/dist/chunks/transform.cjs +46 -39
- package/dist/chunks/transform.mjs +18 -11
- package/dist/index.cjs +4 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +3 -2
- package/dist/rules.cjs +2 -1
- package/dist/rules.d.ts +3 -2
- package/dist/rules.mjs +2 -2
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/{utilities-654ad3bd.d.ts → utilities-b44b330d.d.ts} +3 -1
- package/dist/utils.cjs +25 -24
- package/dist/utils.d.ts +2 -3
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +1 -1
- package/dist/variants.d.ts +1 -1
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { h as handler, m as makeGlobalStaticRules, g as globalKeywords, c as colorResolver, i as colorableShadows,
|
|
1
|
+
import { h as handler, m as makeGlobalStaticRules, g as globalKeywords, c as colorResolver, i as colorableShadows, o as positionMap, x as xyzMap } from './colors2.mjs';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
|
|
4
|
+
const varEmpty = " ";
|
|
4
5
|
const displays = [
|
|
5
6
|
["inline", { display: "inline" }],
|
|
6
7
|
["block", { display: "block" }],
|
|
@@ -19,7 +20,8 @@ const appearances = [
|
|
|
19
20
|
...makeGlobalStaticRules("backface", "backface-visibility")
|
|
20
21
|
];
|
|
21
22
|
const cursors = [
|
|
22
|
-
[/^cursor-(.+)$/, ([, c]) => ({ cursor: handler.bracket.cssvar.global(c)
|
|
23
|
+
[/^cursor-(.+)$/, ([, c]) => ({ cursor: handler.bracket.cssvar.global(c) })],
|
|
24
|
+
...cursorValues.map((v) => [`cursor-${v}`, { cursor: v }])
|
|
23
25
|
];
|
|
24
26
|
const pointerEvents = [
|
|
25
27
|
["pointer-events-auto", { "pointer-events": "auto" }],
|
|
@@ -99,7 +101,7 @@ const ringBase = {
|
|
|
99
101
|
"--un-ring-offset-color": "#fff",
|
|
100
102
|
"--un-ring-width": "0px",
|
|
101
103
|
"--un-ring-color": "rgba(147,197,253,0.5)",
|
|
102
|
-
"--un-shadow": "0 0
|
|
104
|
+
"--un-shadow": "0 0 rgba(0,0,0,0)"
|
|
103
105
|
};
|
|
104
106
|
const rings = [
|
|
105
107
|
[/^ring(?:-(.+))?$/, ([, d], { theme }) => {
|
|
@@ -109,7 +111,7 @@ const rings = [
|
|
|
109
111
|
"--un-ring-width": value,
|
|
110
112
|
"--un-ring-offset-shadow": "var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)",
|
|
111
113
|
"--un-ring-shadow": "var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)",
|
|
112
|
-
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow
|
|
114
|
+
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
117
|
}, { autocomplete: "ring-$ringWidth" }],
|
|
@@ -124,10 +126,10 @@ const rings = [
|
|
|
124
126
|
];
|
|
125
127
|
|
|
126
128
|
const boxShadowsBase = {
|
|
127
|
-
"--un-ring-offset-shadow": "0 0
|
|
128
|
-
"--un-ring-shadow": "0 0
|
|
129
|
+
"--un-ring-offset-shadow": "0 0 rgba(0,0,0,0)",
|
|
130
|
+
"--un-ring-shadow": "0 0 rgba(0,0,0,0)",
|
|
129
131
|
"--un-shadow-inset": varEmpty,
|
|
130
|
-
"--un-shadow": "0 0
|
|
132
|
+
"--un-shadow": "0 0 rgba(0,0,0,0)"
|
|
131
133
|
};
|
|
132
134
|
const boxShadows = [
|
|
133
135
|
[/^shadow(?:-(.+))?$/, ([, d], { theme }) => {
|
|
@@ -135,7 +137,7 @@ const boxShadows = [
|
|
|
135
137
|
if (v) {
|
|
136
138
|
return {
|
|
137
139
|
"--un-shadow": colorableShadows(v, "--un-shadow-color").join(","),
|
|
138
|
-
"box-shadow": "var(--un-ring-offset-shadow
|
|
140
|
+
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
139
141
|
};
|
|
140
142
|
}
|
|
141
143
|
}, { autocomplete: "shadow-$boxShadow" }],
|
|
@@ -144,6 +146,11 @@ const boxShadows = [
|
|
|
144
146
|
["shadow-inset", { "--un-shadow-inset": "inset" }]
|
|
145
147
|
];
|
|
146
148
|
|
|
149
|
+
const transformValues = [
|
|
150
|
+
"translate",
|
|
151
|
+
"rotate",
|
|
152
|
+
"scale"
|
|
153
|
+
];
|
|
147
154
|
const transformCpu = [
|
|
148
155
|
"translateX(var(--un-translate-x))",
|
|
149
156
|
"translateY(var(--un-translate-y))",
|
|
@@ -208,9 +215,9 @@ const transforms = [
|
|
|
208
215
|
[/^(?:transform-)?translate-([xyz])-(.+)$/, handleTranslate],
|
|
209
216
|
[/^(?:transform-)?rotate-()(.+)$/, handleRotate],
|
|
210
217
|
[/^(?:transform-)?rotate-([xyz])-(.+)$/, handleRotate],
|
|
211
|
-
[/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew],
|
|
218
|
+
[/^(?:transform-)?skew-([xy])-(.+)$/, handleSkew, { autocomplete: ["transform-skew-(x|y)-<percent>"] }],
|
|
212
219
|
[/^(?:transform-)?scale-()(.+)$/, handleScale],
|
|
213
|
-
[/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale],
|
|
220
|
+
[/^(?:transform-)?scale-([xyz])-(.+)$/, handleScale, { autocomplete: [`transform-(${transformValues.join("|")})-<percent>`, `transform-(${transformValues.join("|")})-(x|y|z)-<percent>`] }],
|
|
214
221
|
[/^(?:transform-)?preserve-3d$/, () => ({ "transform-style": "preserve-3d" })],
|
|
215
222
|
[/^(?:transform-)?preserve-flat$/, () => ({ "transform-style": "flat" })],
|
|
216
223
|
["transform", { transform: transformCpu }],
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const _default = require('./chunks/default.cjs');
|
|
|
7
7
|
const _default$1 = require('./chunks/default2.cjs');
|
|
8
8
|
const _default$2 = require('./chunks/default3.cjs');
|
|
9
9
|
const colors = require('./chunks/colors.cjs');
|
|
10
|
-
const
|
|
10
|
+
const colors$1 = require('./chunks/colors2.cjs');
|
|
11
11
|
require('./chunks/transform.cjs');
|
|
12
12
|
require('./chunks/variants.cjs');
|
|
13
13
|
|
|
@@ -33,7 +33,8 @@ const presetMini = (options = {}) => {
|
|
|
33
33
|
variants: _default$2.variants(options),
|
|
34
34
|
options,
|
|
35
35
|
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
|
|
36
|
-
preflights
|
|
36
|
+
preflights,
|
|
37
|
+
prefix: options.prefix
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
function VarPrefixPostprocessor(prefix) {
|
|
@@ -48,7 +49,7 @@ function VarPrefixPostprocessor(prefix) {
|
|
|
48
49
|
|
|
49
50
|
exports.theme = _default.theme;
|
|
50
51
|
exports.colors = colors.colors;
|
|
51
|
-
exports.parseColor =
|
|
52
|
+
exports.parseColor = colors$1.parseColor;
|
|
52
53
|
exports["default"] = presetMini;
|
|
53
54
|
exports.preflights = preflights;
|
|
54
55
|
exports.presetMini = presetMini;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { T as Theme } from './types-9e30040a.js';
|
|
|
3
3
|
export { T as Theme, a as ThemeAnimation } from './types-9e30040a.js';
|
|
4
4
|
export { t as theme } from './default-0fe8c7f8.js';
|
|
5
5
|
export { c as colors } from './colors-f2b5968c.js';
|
|
6
|
-
export { p as parseColor } from './utilities-
|
|
6
|
+
export { p as parseColor } from './utilities-b44b330d.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
|
@@ -20,6 +20,12 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
20
20
|
* @default 'un-'
|
|
21
21
|
*/
|
|
22
22
|
variablePrefix?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Utils prefix
|
|
25
|
+
*
|
|
26
|
+
* @default undefined
|
|
27
|
+
*/
|
|
28
|
+
prefix?: string;
|
|
23
29
|
}
|
|
24
30
|
declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
|
|
25
31
|
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export { t as theme } from './chunks/default.mjs';
|
|
|
4
4
|
import { r as rules } from './chunks/default2.mjs';
|
|
5
5
|
import { v as variants } from './chunks/default3.mjs';
|
|
6
6
|
export { c as colors } from './chunks/colors.mjs';
|
|
7
|
-
export { p as parseColor } from './chunks/
|
|
7
|
+
export { p as parseColor } from './chunks/colors2.mjs';
|
|
8
8
|
import './chunks/transform.mjs';
|
|
9
9
|
import './chunks/variants.mjs';
|
|
10
10
|
|
|
@@ -30,7 +30,8 @@ const presetMini = (options = {}) => {
|
|
|
30
30
|
variants: variants(options),
|
|
31
31
|
options,
|
|
32
32
|
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
|
|
33
|
-
preflights
|
|
33
|
+
preflights,
|
|
34
|
+
prefix: options.prefix
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
function VarPrefixPostprocessor(prefix) {
|
package/dist/rules.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const _default = require('./chunks/default2.cjs');
|
|
6
6
|
const transform = require('./chunks/transform.cjs');
|
|
7
|
-
require('./chunks/
|
|
7
|
+
require('./chunks/colors2.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,6 +13,7 @@ exports.alignments = _default.alignments;
|
|
|
13
13
|
exports.appearance = _default.appearance;
|
|
14
14
|
exports.aspectRatio = _default.aspectRatio;
|
|
15
15
|
exports.bgColors = _default.bgColors;
|
|
16
|
+
exports.borderStyles = _default.borderStyles;
|
|
16
17
|
exports.borders = _default.borders;
|
|
17
18
|
exports.boxSizing = _default.boxSizing;
|
|
18
19
|
exports.cssProperty = _default.cssProperty;
|
package/dist/rules.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const outline: Rule<Theme>[];
|
|
|
8
8
|
declare const appearance: Rule[];
|
|
9
9
|
declare const willChange: Rule[];
|
|
10
10
|
|
|
11
|
+
declare const borderStyles: string[];
|
|
11
12
|
declare const borders: Rule[];
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -71,7 +72,7 @@ declare const aspectRatio: Rule[];
|
|
|
71
72
|
declare const paddings: Rule[];
|
|
72
73
|
declare const margins: Rule[];
|
|
73
74
|
|
|
74
|
-
declare const varEmpty = "
|
|
75
|
+
declare const varEmpty = " ";
|
|
75
76
|
declare const displays: Rule[];
|
|
76
77
|
declare const appearances: Rule[];
|
|
77
78
|
declare const cursors: Rule[];
|
|
@@ -117,4 +118,4 @@ declare const cssProperty: Rule[];
|
|
|
117
118
|
|
|
118
119
|
declare const textDecorations: Rule<Theme>[];
|
|
119
120
|
|
|
120
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxShadowsBase, 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, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
|
121
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, 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, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { m as alignments, a as appearance, A as aspectRatio, f as bgColors, b as borderStyles, c as borders, u as boxSizing, L as cssProperty, K as cssVariables, g as flex, s as floats, F as fonts, h as gaps, i as grids, q as insets, k as justifies, C as margins, d as opacity, l as orders, o as outline, j as overflows, B as paddings, n as placements, p as positions, x as questionMark, r as rules, y as sizes, D as svgUtilities, G as tabSizes, t as textAligns, e as textColors, M as textDecorations, H as textIndents, J as textShadows, I as textStrokes, E as transitions, v as verticalAligns, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
export { k as appearances, h as boxShadows, b as boxShadowsBase, m as breaks, c as contents, j as cursors, d as displays, g as fontSmoothings, f as fontStyles, p as pointerEvents, l as resizes, r as ringBase, i as rings, a as textOverflows, e as textTransforms, t as transformBase, n as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './chunks/transform.mjs';
|
|
3
|
-
import './chunks/
|
|
3
|
+
import './chunks/colors2.mjs';
|
|
4
4
|
import '@unocss/core';
|
package/dist/theme.cjs
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const colors = require('./chunks/colors.cjs');
|
|
6
6
|
const _default = require('./chunks/default.cjs');
|
|
7
7
|
require('./chunks/transform.cjs');
|
|
8
|
-
require('./chunks/
|
|
8
|
+
require('./chunks/colors2.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
|
11
11
|
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './chunks/colors.mjs';
|
|
2
2
|
export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, z as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './chunks/default.mjs';
|
|
3
3
|
import './chunks/transform.mjs';
|
|
4
|
-
import './chunks/
|
|
4
|
+
import './chunks/colors2.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -56,5 +56,7 @@ declare const hasParseableColor: (color: string | undefined, theme: Theme) => bo
|
|
|
56
56
|
declare const resolveBreakpoints: ({ theme, generator }: Readonly<VariantContext<Theme>>) => Record<string, string> | undefined;
|
|
57
57
|
declare const resolveVerticalBreakpoints: ({ theme, generator }: Readonly<VariantContext<Theme>>) => Record<string, string> | undefined;
|
|
58
58
|
declare const makeGlobalStaticRules: (prefix: string, property?: string) => Rule<{}>[];
|
|
59
|
+
declare function getComponent(str: string, open: string, close: string, separator: string): string[] | undefined;
|
|
60
|
+
declare function getComponents(str: string, separator: string, limit?: number): string[] | undefined;
|
|
59
61
|
|
|
60
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r };
|
|
62
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, getComponents as e, getComponent as g, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r };
|
package/dist/utils.cjs
CHANGED
|
@@ -2,34 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const colors = require('./chunks/colors2.cjs');
|
|
6
6
|
const variants = require('./chunks/variants.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.CONTROL_MINI_NO_NEGATIVE =
|
|
12
|
-
exports.colorOpacityToString =
|
|
13
|
-
exports.colorResolver =
|
|
14
|
-
exports.colorToString =
|
|
15
|
-
exports.colorableShadows =
|
|
16
|
-
exports.cornerMap =
|
|
17
|
-
exports.directionMap =
|
|
18
|
-
exports.directionSize =
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
11
|
+
exports.CONTROL_MINI_NO_NEGATIVE = colors.CONTROL_MINI_NO_NEGATIVE;
|
|
12
|
+
exports.colorOpacityToString = colors.colorOpacityToString;
|
|
13
|
+
exports.colorResolver = colors.colorResolver;
|
|
14
|
+
exports.colorToString = colors.colorToString;
|
|
15
|
+
exports.colorableShadows = colors.colorableShadows;
|
|
16
|
+
exports.cornerMap = colors.cornerMap;
|
|
17
|
+
exports.directionMap = colors.directionMap;
|
|
18
|
+
exports.directionSize = colors.directionSize;
|
|
19
|
+
exports.getComponent = colors.getComponent;
|
|
20
|
+
exports.getComponents = colors.getComponents;
|
|
21
|
+
exports.globalKeywords = colors.globalKeywords;
|
|
22
|
+
exports.h = colors.h;
|
|
23
|
+
exports.handler = colors.handler;
|
|
24
|
+
exports.hasParseableColor = colors.hasParseableColor;
|
|
25
|
+
exports.hex2rgba = colors.hex2rgba;
|
|
26
|
+
exports.insetMap = colors.insetMap;
|
|
27
|
+
exports.makeGlobalStaticRules = colors.makeGlobalStaticRules;
|
|
28
|
+
exports.parseColor = colors.parseColor;
|
|
29
|
+
exports.parseCssColor = colors.parseCssColor;
|
|
30
|
+
exports.positionMap = colors.positionMap;
|
|
31
|
+
exports.resolveBreakpoints = colors.resolveBreakpoints;
|
|
32
|
+
exports.resolveVerticalBreakpoints = colors.resolveVerticalBreakpoints;
|
|
33
|
+
exports.valueHandlers = colors.valueHandlers;
|
|
34
|
+
exports.xyzMap = colors.xyzMap;
|
|
34
35
|
exports.variantMatcher = variants.variantMatcher;
|
|
35
36
|
exports.variantParentMatcher = variants.variantParentMatcher;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getComponent, e as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-b44b330d.js';
|
|
4
4
|
import './types-9e30040a.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
8
8
|
declare function colorOpacityToString(color: CSSColorValue): string | number;
|
|
9
9
|
declare function colorToString(color: CSSColorValue | string, alphaOverride?: string | number): string;
|
|
10
|
-
declare function getComponents(str: string, separator?: string, limit?: number): string[] | undefined;
|
|
11
10
|
|
|
12
11
|
declare const directionMap: Record<string, string[]>;
|
|
13
12
|
declare const insetMap: Record<string, string[]>;
|
|
@@ -79,4 +78,4 @@ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "posit
|
|
|
79
78
|
declare const variantMatcher: (name: string, handler: (input: VariantHandlerContext) => Record<string, any>) => VariantObject;
|
|
80
79
|
declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
|
|
81
80
|
|
|
82
|
-
export { colorOpacityToString, colorToString, cornerMap, directionMap,
|
|
81
|
+
export { colorOpacityToString, colorToString, cornerMap, directionMap, globalKeywords, 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 CONTROL_MINI_NO_NEGATIVE, e as colorOpacityToString, c as colorResolver, b as colorToString, i as colorableShadows, f as cornerMap, d as directionMap, l as directionSize,
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, e as colorOpacityToString, c as colorResolver, b as colorToString, i as colorableShadows, f as cornerMap, d as directionMap, l as directionSize, n as getComponent, u as getComponents, g as globalKeywords, t as h, h as handler, a as hasParseableColor, q as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, s as parseCssColor, o as positionMap, k as resolveBreakpoints, r as resolveVerticalBreakpoints, v as valueHandlers, x as xyzMap } from './chunks/colors2.mjs';
|
|
2
2
|
export { a as variantMatcher, v as variantParentMatcher } from './chunks/variants.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
package/dist/variants.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { T as Theme } from './types-9e30040a.js';
|
|
|
3
3
|
import { PresetMiniOptions } from './index.js';
|
|
4
4
|
import './default-0fe8c7f8.js';
|
|
5
5
|
import './colors-f2b5968c.js';
|
|
6
|
-
import './utilities-
|
|
6
|
+
import './utilities-b44b330d.js';
|
|
7
7
|
|
|
8
8
|
declare const variantBreakpoints: Variant<Theme>;
|
|
9
9
|
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, h as variantCssLayer, d as variantCustomMedia, o as variantImportant, i as variantInternalLayer, f as variantLanguageDirections, q as variantNegative, c as variantPrint, m as variantPseudoClassFunctions, l as variantPseudoClassesAndElements, j as variantScope, g as variantSelector, n as variantTaggedPseudoClasses, k as variantVariables, v as variants } from './chunks/default3.mjs';
|
|
2
|
-
import './chunks/
|
|
2
|
+
import './chunks/colors2.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
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.43.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.43.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|