@unocss/preset-mini 0.46.3 → 0.46.5
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/{colors-09429298.d.ts → colors-884ab3c4.d.ts} +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/{default-d1eb2175.d.ts → default-21cad915.d.ts} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/rules.cjs +2 -1
- package/dist/rules.d.ts +4 -2
- package/dist/rules.mjs +1 -1
- package/dist/shared/{preset-mini.809a4128.mjs → preset-mini.2aa41602.mjs} +4 -2
- package/dist/shared/{preset-mini.3b14aba9.cjs → preset-mini.4ec9b63c.cjs} +13 -1
- package/dist/shared/{preset-mini.4883e112.mjs → preset-mini.6616d61c.mjs} +13 -2
- package/dist/shared/{preset-mini.5d486e77.cjs → preset-mini.6de47c6f.cjs} +4 -1
- package/dist/shared/{preset-mini.810922e5.mjs → preset-mini.74d943b2.mjs} +21 -12
- package/dist/shared/{preset-mini.134e02be.cjs → preset-mini.c106b68c.cjs} +46 -12
- package/dist/shared/{preset-mini.14f57094.cjs → preset-mini.fbe02827.cjs} +21 -12
- package/dist/shared/{preset-mini.a626625a.mjs → preset-mini.fef10425.mjs} +47 -14
- package/dist/theme.cjs +2 -1
- package/dist/theme.d.ts +8 -5
- package/dist/theme.mjs +1 -1
- package/dist/{types-486d85a1.d.ts → types-3bfb4dc5.d.ts} +7 -3
- package/dist/{utilities-c2105bec.d.ts → utilities-10273596.d.ts} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +3 -2
- package/dist/variants.d.ts +7 -5
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
package/dist/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
import './types-
|
|
1
|
+
export { c as colors } from './colors-884ab3c4.js';
|
|
2
|
+
import './types-3bfb4dc5.js';
|
|
3
3
|
import '@unocss/core';
|
package/dist/index.cjs
CHANGED
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
require('./shared/preset-mini.09ec9c56.cjs');
|
|
7
7
|
const colors$1 = require('./shared/preset-mini.b1936363.cjs');
|
|
8
|
-
const _default$1 = require('./shared/preset-mini.
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.4ec9b63c.cjs');
|
|
9
9
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
10
|
-
const _default = require('./shared/preset-mini.
|
|
11
|
-
const _default$2 = require('./shared/preset-mini.
|
|
12
|
-
require('./shared/preset-mini.
|
|
10
|
+
const _default = require('./shared/preset-mini.6de47c6f.cjs');
|
|
11
|
+
const _default$2 = require('./shared/preset-mini.c106b68c.cjs');
|
|
12
|
+
require('./shared/preset-mini.fbe02827.cjs');
|
|
13
13
|
|
|
14
14
|
const preflights = [
|
|
15
15
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Preflight, PresetOptions, Preset } from '@unocss/core';
|
|
2
|
-
export { c as colors } from './colors-
|
|
3
|
-
export { t as theme } from './default-
|
|
4
|
-
import { T as Theme } from './types-
|
|
5
|
-
export { T as Theme, a as ThemeAnimation } from './types-
|
|
6
|
-
export { p as parseColor } from './utilities-
|
|
2
|
+
export { c as colors } from './colors-884ab3c4.js';
|
|
3
|
+
export { t as theme } from './default-21cad915.js';
|
|
4
|
+
import { T as Theme } from './types-3bfb4dc5.js';
|
|
5
|
+
export { T as Theme, a as ThemeAnimation } from './types-3bfb4dc5.js';
|
|
6
|
+
export { p as parseColor } from './utilities-10273596.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
2
2
|
import './shared/preset-mini.489445bc.mjs';
|
|
3
3
|
export { p as parseColor } from './shared/preset-mini.690517b1.mjs';
|
|
4
|
-
import { r as rules } from './shared/preset-mini.
|
|
4
|
+
import { r as rules } from './shared/preset-mini.6616d61c.mjs';
|
|
5
5
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
6
|
-
import { t as theme } from './shared/preset-mini.
|
|
7
|
-
export { t as theme } from './shared/preset-mini.
|
|
8
|
-
import { v as variants } from './shared/preset-mini.
|
|
9
|
-
import './shared/preset-mini.
|
|
6
|
+
import { t as theme } from './shared/preset-mini.2aa41602.mjs';
|
|
7
|
+
export { t as theme } from './shared/preset-mini.2aa41602.mjs';
|
|
8
|
+
import { v as variants } from './shared/preset-mini.fef10425.mjs';
|
|
9
|
+
import './shared/preset-mini.74d943b2.mjs';
|
|
10
10
|
|
|
11
11
|
const preflights = [
|
|
12
12
|
{
|
package/dist/rules.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const decoration = require('./shared/preset-mini.09ec9c56.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.4ec9b63c.cjs');
|
|
7
7
|
require('./shared/preset-mini.b1936363.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
@@ -57,6 +57,7 @@ exports.willChange = decoration.willChange;
|
|
|
57
57
|
exports.zIndexes = decoration.zIndexes;
|
|
58
58
|
exports.aspectRatio = _default.aspectRatio;
|
|
59
59
|
exports.bgColors = _default.bgColors;
|
|
60
|
+
exports.containerParent = _default.containerParent;
|
|
60
61
|
exports.cssProperty = _default.cssProperty;
|
|
61
62
|
exports.cssVariables = _default.cssVariables;
|
|
62
63
|
exports.flex = _default.flex;
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule, CSSEntries } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-3bfb4dc5.js';
|
|
3
3
|
|
|
4
4
|
declare const verticalAligns: Rule[];
|
|
5
5
|
declare const textAligns: Rule[];
|
|
@@ -22,6 +22,8 @@ declare const opacity: Rule[];
|
|
|
22
22
|
declare const textColors: Rule[];
|
|
23
23
|
declare const bgColors: Rule[];
|
|
24
24
|
|
|
25
|
+
declare const containerParent: Rule[];
|
|
26
|
+
|
|
25
27
|
declare const rules: Rule[];
|
|
26
28
|
|
|
27
29
|
declare const flex: Rule<Theme>[];
|
|
@@ -120,4 +122,4 @@ declare const cssProperty: Rule[];
|
|
|
120
122
|
|
|
121
123
|
declare const textDecorations: Rule<Theme>[];
|
|
122
124
|
|
|
123
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, 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 };
|
|
125
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, containerParent, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, 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
1
|
export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, Q as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.489445bc.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { d as aspectRatio, b as bgColors, c as containerParent, i as cssProperty, h as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, e as svgUtilities, t as textColors } from './shared/preset-mini.6616d61c.mjs';
|
|
3
3
|
import './shared/preset-mini.690517b1.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -224,6 +224,7 @@ const maxHeight = {
|
|
|
224
224
|
...baseSize,
|
|
225
225
|
screen: "100vh"
|
|
226
226
|
};
|
|
227
|
+
const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
|
|
227
228
|
|
|
228
229
|
const preflightBase = {
|
|
229
230
|
...transformBase,
|
|
@@ -264,7 +265,8 @@ const theme = {
|
|
|
264
265
|
spacing,
|
|
265
266
|
duration,
|
|
266
267
|
ringWidth,
|
|
267
|
-
preflightBase
|
|
268
|
+
preflightBase,
|
|
269
|
+
containers
|
|
268
270
|
};
|
|
269
271
|
|
|
270
|
-
export { fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, lineWidth as j, duration as k, lineHeight as l, borderRadius as m, boxShadow as n, easing as o, baseSize as p, width as q, ringWidth as r, spacing as s, theme as t, maxWidth as u, verticalBreakpoints as v, wordSpacing as w, height as x, maxHeight as y,
|
|
272
|
+
export { preflightBase as A, fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, lineWidth as j, duration as k, lineHeight as l, borderRadius as m, boxShadow as n, easing as o, baseSize as p, width as q, ringWidth as r, spacing as s, theme as t, maxWidth as u, verticalBreakpoints as v, wordSpacing as w, height as x, maxHeight as y, containers as z };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const decoration = require('./preset-mini.09ec9c56.cjs');
|
|
4
4
|
const colors = require('./preset-mini.b1936363.cjs');
|
|
5
|
-
require('@unocss/core');
|
|
5
|
+
const core = require('@unocss/core');
|
|
6
6
|
|
|
7
7
|
const opacity = [
|
|
8
8
|
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: colors.handler.bracket.percent.cssvar(d) })]
|
|
@@ -17,6 +17,16 @@ const bgColors = [
|
|
|
17
17
|
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
18
18
|
];
|
|
19
19
|
|
|
20
|
+
const containerParent = [
|
|
21
|
+
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
22
|
+
core.warnOnce("The container query rule is experimental and may not follow semver.");
|
|
23
|
+
return {
|
|
24
|
+
"container-type": v ?? "inline-size",
|
|
25
|
+
"container-name": l
|
|
26
|
+
};
|
|
27
|
+
}]
|
|
28
|
+
];
|
|
29
|
+
|
|
20
30
|
const flex = [
|
|
21
31
|
["flex", { display: "flex" }],
|
|
22
32
|
["inline-flex", { display: "inline-flex" }],
|
|
@@ -287,11 +297,13 @@ const rules = [
|
|
|
287
297
|
decoration.transitions,
|
|
288
298
|
decoration.transforms,
|
|
289
299
|
decoration.willChange,
|
|
300
|
+
containerParent,
|
|
290
301
|
questionMark
|
|
291
302
|
].flat(1);
|
|
292
303
|
|
|
293
304
|
exports.aspectRatio = aspectRatio;
|
|
294
305
|
exports.bgColors = bgColors;
|
|
306
|
+
exports.containerParent = containerParent;
|
|
295
307
|
exports.cssProperty = cssProperty;
|
|
296
308
|
exports.cssVariables = cssVariables;
|
|
297
309
|
exports.flex = flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange } from './preset-mini.489445bc.mjs';
|
|
2
2
|
import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.690517b1.mjs';
|
|
3
|
-
import '@unocss/core';
|
|
3
|
+
import { warnOnce } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const opacity = [
|
|
6
6
|
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: handler.bracket.percent.cssvar(d) })]
|
|
@@ -15,6 +15,16 @@ const bgColors = [
|
|
|
15
15
|
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
16
16
|
];
|
|
17
17
|
|
|
18
|
+
const containerParent = [
|
|
19
|
+
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
20
|
+
warnOnce("The container query rule is experimental and may not follow semver.");
|
|
21
|
+
return {
|
|
22
|
+
"container-type": v ?? "inline-size",
|
|
23
|
+
"container-name": l
|
|
24
|
+
};
|
|
25
|
+
}]
|
|
26
|
+
];
|
|
27
|
+
|
|
18
28
|
const flex = [
|
|
19
29
|
["flex", { display: "flex" }],
|
|
20
30
|
["inline-flex", { display: "inline-flex" }],
|
|
@@ -285,7 +295,8 @@ const rules = [
|
|
|
285
295
|
transitions,
|
|
286
296
|
transforms,
|
|
287
297
|
willChange,
|
|
298
|
+
containerParent,
|
|
288
299
|
questionMark
|
|
289
300
|
].flat(1);
|
|
290
301
|
|
|
291
|
-
export { grids as a, bgColors as b,
|
|
302
|
+
export { grids as a, bgColors as b, containerParent as c, aspectRatio as d, svgUtilities as e, flex as f, gaps as g, cssVariables as h, cssProperty as i, margins as m, opacity as o, paddings as p, questionMark as q, rules as r, sizes as s, textColors as t };
|
|
@@ -226,6 +226,7 @@ const maxHeight = {
|
|
|
226
226
|
...baseSize,
|
|
227
227
|
screen: "100vh"
|
|
228
228
|
};
|
|
229
|
+
const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
|
|
229
230
|
|
|
230
231
|
const preflightBase = {
|
|
231
232
|
...decoration.transformBase,
|
|
@@ -266,7 +267,8 @@ const theme = {
|
|
|
266
267
|
spacing,
|
|
267
268
|
duration,
|
|
268
269
|
ringWidth,
|
|
269
|
-
preflightBase
|
|
270
|
+
preflightBase,
|
|
271
|
+
containers
|
|
270
272
|
};
|
|
271
273
|
|
|
272
274
|
exports.baseSize = baseSize;
|
|
@@ -274,6 +276,7 @@ exports.blur = blur;
|
|
|
274
276
|
exports.borderRadius = borderRadius;
|
|
275
277
|
exports.boxShadow = boxShadow;
|
|
276
278
|
exports.breakpoints = breakpoints;
|
|
279
|
+
exports.containers = containers;
|
|
277
280
|
exports.dropShadow = dropShadow;
|
|
278
281
|
exports.duration = duration;
|
|
279
282
|
exports.easing = easing;
|
|
@@ -39,9 +39,9 @@ const variantParentMatcher = (name, parent) => {
|
|
|
39
39
|
autocomplete: `${name}:`
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
const variantGetBracket = (
|
|
43
|
-
if (matcher.startsWith(`${
|
|
44
|
-
const [match, rest] = getBracket(matcher.slice(
|
|
42
|
+
const variantGetBracket = (prefix, matcher, separators) => {
|
|
43
|
+
if (matcher.startsWith(`${prefix}[`)) {
|
|
44
|
+
const [match, rest] = getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
|
|
45
45
|
if (match && rest) {
|
|
46
46
|
for (const separator of separators) {
|
|
47
47
|
if (rest.startsWith(separator))
|
|
@@ -51,15 +51,24 @@ const variantGetBracket = (name, matcher, separators) => {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
const variantGetParameter = (
|
|
55
|
-
if (matcher.startsWith(
|
|
56
|
-
const body = variantGetBracket(
|
|
57
|
-
if (body)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
const variantGetParameter = (prefix, matcher, separators) => {
|
|
55
|
+
if (matcher.startsWith(prefix)) {
|
|
56
|
+
const body = variantGetBracket(prefix, matcher, separators);
|
|
57
|
+
if (body) {
|
|
58
|
+
const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
|
|
59
|
+
return [body[0], rest, label];
|
|
60
|
+
}
|
|
61
|
+
for (const separator of separators.filter((x) => x !== "/")) {
|
|
62
|
+
const pos = matcher.indexOf(separator, prefix.length);
|
|
63
|
+
if (pos !== -1) {
|
|
64
|
+
const labelPos = matcher.indexOf("/", prefix.length);
|
|
65
|
+
const unlabelled = labelPos === -1 || pos <= labelPos;
|
|
66
|
+
return [
|
|
67
|
+
matcher.slice(prefix.length, unlabelled ? pos : labelPos),
|
|
68
|
+
matcher.slice(pos + separator.length),
|
|
69
|
+
unlabelled ? "" : matcher.slice(labelPos + 1, pos)
|
|
70
|
+
];
|
|
71
|
+
}
|
|
63
72
|
}
|
|
64
73
|
}
|
|
65
74
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.b1936363.cjs');
|
|
4
4
|
const core = require('@unocss/core');
|
|
5
|
-
const variants$1 = require('./preset-mini.
|
|
5
|
+
const variants$1 = require('./preset-mini.fbe02827.cjs');
|
|
6
6
|
|
|
7
7
|
const variantAria = {
|
|
8
8
|
name: "aria",
|
|
9
9
|
match(matcher, { theme }) {
|
|
10
|
-
const variant = variants$1.variantGetParameter("aria", matcher, [":", "-"]);
|
|
10
|
+
const variant = variants$1.variantGetParameter("aria-", matcher, [":", "-"]);
|
|
11
11
|
if (variant) {
|
|
12
12
|
const [match, rest] = variant;
|
|
13
13
|
const aria = colors.handler.bracket(match) ?? theme.aria?.[match] ?? "";
|
|
@@ -86,7 +86,7 @@ const scopeMatcher = (name, combinator) => ({
|
|
|
86
86
|
match(matcher) {
|
|
87
87
|
if (!matcher.startsWith(name))
|
|
88
88
|
return;
|
|
89
|
-
let body = variants$1.variantGetBracket(name
|
|
89
|
+
let body = variants$1.variantGetBracket(`${name}-`, matcher, [":", "-"]);
|
|
90
90
|
if (!body) {
|
|
91
91
|
for (const separator of [":", "-"]) {
|
|
92
92
|
if (matcher.startsWith(`${name}${separator}`)) {
|
|
@@ -115,10 +115,42 @@ const variantCombinators = [
|
|
|
115
115
|
scopeMatcher("siblings", "~")
|
|
116
116
|
];
|
|
117
117
|
|
|
118
|
+
const variantContainerQuery = {
|
|
119
|
+
name: "@",
|
|
120
|
+
match(matcher, { theme }) {
|
|
121
|
+
if (matcher.startsWith("@container"))
|
|
122
|
+
return;
|
|
123
|
+
const variant = variants$1.variantGetParameter("@", matcher, [":", "-"]);
|
|
124
|
+
if (variant) {
|
|
125
|
+
const [match, rest, label] = variant;
|
|
126
|
+
const unbracket = colors.handler.bracket(match);
|
|
127
|
+
let container;
|
|
128
|
+
if (unbracket) {
|
|
129
|
+
const minWidth = colors.handler.numberWithUnit(unbracket);
|
|
130
|
+
if (minWidth)
|
|
131
|
+
container = `(min-width: ${minWidth})`;
|
|
132
|
+
} else {
|
|
133
|
+
container = theme.containers?.[match] ?? "";
|
|
134
|
+
}
|
|
135
|
+
if (container) {
|
|
136
|
+
core.warnOnce("The container query variant is experimental and may not follow semver.");
|
|
137
|
+
return {
|
|
138
|
+
matcher: rest,
|
|
139
|
+
handle: (input, next) => next({
|
|
140
|
+
...input,
|
|
141
|
+
parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}${container}`
|
|
142
|
+
})
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
multiPass: true
|
|
148
|
+
};
|
|
149
|
+
|
|
118
150
|
const variantDataAttribute = {
|
|
119
151
|
name: "data",
|
|
120
152
|
match(matcher, { theme }) {
|
|
121
|
-
const variant = variants$1.variantGetParameter("data", matcher, [":", "-"]);
|
|
153
|
+
const variant = variants$1.variantGetParameter("data-", matcher, [":", "-"]);
|
|
122
154
|
if (variant) {
|
|
123
155
|
const [match, rest] = variant;
|
|
124
156
|
const dataAttribute = colors.handler.bracket(match) ?? theme.data?.[match] ?? "";
|
|
@@ -136,7 +168,7 @@ const variantPrint = variants$1.variantParentMatcher("print", "@media print");
|
|
|
136
168
|
const variantCustomMedia = {
|
|
137
169
|
name: "media",
|
|
138
170
|
match(matcher, { theme }) {
|
|
139
|
-
const variant = variants$1.variantGetParameter("media", matcher, [":", "-"]);
|
|
171
|
+
const variant = variants$1.variantGetParameter("media-", matcher, [":", "-"]);
|
|
140
172
|
if (variant) {
|
|
141
173
|
const [match, rest] = variant;
|
|
142
174
|
let media = colors.handler.bracket(match) ?? "";
|
|
@@ -159,7 +191,7 @@ const variantCustomMedia = {
|
|
|
159
191
|
const variantSupports = {
|
|
160
192
|
name: "supports",
|
|
161
193
|
match(matcher, { theme }) {
|
|
162
|
-
const variant = variants$1.variantGetParameter("supports", matcher, [":", "-"]);
|
|
194
|
+
const variant = variants$1.variantGetParameter("supports-", matcher, [":", "-"]);
|
|
163
195
|
if (variant) {
|
|
164
196
|
const [match, rest] = variant;
|
|
165
197
|
let supports = colors.handler.bracket(match) ?? "";
|
|
@@ -201,7 +233,7 @@ const variantLanguageDirections = [
|
|
|
201
233
|
const variantSelector = {
|
|
202
234
|
name: "selector",
|
|
203
235
|
match(matcher) {
|
|
204
|
-
const variant = variants$1.variantGetBracket("selector", matcher, [":", "-"]);
|
|
236
|
+
const variant = variants$1.variantGetBracket("selector-", matcher, [":", "-"]);
|
|
205
237
|
if (variant) {
|
|
206
238
|
const [match, rest] = variant;
|
|
207
239
|
const selector = colors.handler.bracket(match);
|
|
@@ -217,7 +249,7 @@ const variantSelector = {
|
|
|
217
249
|
const variantCssLayer = {
|
|
218
250
|
name: "layer",
|
|
219
251
|
match(matcher) {
|
|
220
|
-
const variant = variants$1.variantGetParameter("layer", matcher, [":", "-"]);
|
|
252
|
+
const variant = variants$1.variantGetParameter("layer-", matcher, [":", "-"]);
|
|
221
253
|
if (variant) {
|
|
222
254
|
const [match, rest] = variant;
|
|
223
255
|
const layer = colors.handler.bracket(match) ?? match;
|
|
@@ -236,7 +268,7 @@ const variantCssLayer = {
|
|
|
236
268
|
const variantInternalLayer = {
|
|
237
269
|
name: "uno-layer",
|
|
238
270
|
match(matcher) {
|
|
239
|
-
const variant = variants$1.variantGetParameter("uno-layer", matcher, [":", "-"]);
|
|
271
|
+
const variant = variants$1.variantGetParameter("uno-layer-", matcher, [":", "-"]);
|
|
240
272
|
if (variant) {
|
|
241
273
|
const [match, rest] = variant;
|
|
242
274
|
const layer = colors.handler.bracket(match) ?? match;
|
|
@@ -252,7 +284,7 @@ const variantInternalLayer = {
|
|
|
252
284
|
const variantScope = {
|
|
253
285
|
name: "scope",
|
|
254
286
|
match(matcher) {
|
|
255
|
-
const variant = variants$1.variantGetBracket("scope", matcher, [":", "-"]);
|
|
287
|
+
const variant = variants$1.variantGetBracket("scope-", matcher, [":", "-"]);
|
|
256
288
|
if (variant) {
|
|
257
289
|
const [match, rest] = variant;
|
|
258
290
|
const scope = colors.handler.bracket(match);
|
|
@@ -442,7 +474,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
442
474
|
const pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?[:-]`);
|
|
443
475
|
const pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?[:]`);
|
|
444
476
|
const matchBracket = (input) => {
|
|
445
|
-
const body = variants$1.variantGetBracket(tag
|
|
477
|
+
const body = variants$1.variantGetBracket(`${tag}-`, input, []);
|
|
446
478
|
if (!body)
|
|
447
479
|
return;
|
|
448
480
|
const [match, rest] = body;
|
|
@@ -483,7 +515,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
483
515
|
return;
|
|
484
516
|
const [label, matcher, prefix, sort] = result;
|
|
485
517
|
if (label !== "")
|
|
486
|
-
core.warnOnce("The labeled
|
|
518
|
+
core.warnOnce("The labeled variant is experimental and may not follow semver.");
|
|
487
519
|
return {
|
|
488
520
|
matcher,
|
|
489
521
|
handle: (input2, next) => next({
|
|
@@ -587,6 +619,7 @@ const variants = (options) => [
|
|
|
587
619
|
...variantColorsMediaOrClass(options),
|
|
588
620
|
...variantLanguageDirections,
|
|
589
621
|
variantScope,
|
|
622
|
+
variantContainerQuery,
|
|
590
623
|
variantVariables
|
|
591
624
|
];
|
|
592
625
|
|
|
@@ -596,6 +629,7 @@ exports.variantAria = variantAria;
|
|
|
596
629
|
exports.variantBreakpoints = variantBreakpoints;
|
|
597
630
|
exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
|
|
598
631
|
exports.variantCombinators = variantCombinators;
|
|
632
|
+
exports.variantContainerQuery = variantContainerQuery;
|
|
599
633
|
exports.variantCssLayer = variantCssLayer;
|
|
600
634
|
exports.variantCustomMedia = variantCustomMedia;
|
|
601
635
|
exports.variantDataAttribute = variantDataAttribute;
|
|
@@ -41,9 +41,9 @@ const variantParentMatcher = (name, parent) => {
|
|
|
41
41
|
autocomplete: `${name}:`
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
const variantGetBracket = (
|
|
45
|
-
if (matcher.startsWith(`${
|
|
46
|
-
const [match, rest] = colors.getBracket(matcher.slice(
|
|
44
|
+
const variantGetBracket = (prefix, matcher, separators) => {
|
|
45
|
+
if (matcher.startsWith(`${prefix}[`)) {
|
|
46
|
+
const [match, rest] = colors.getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
|
|
47
47
|
if (match && rest) {
|
|
48
48
|
for (const separator of separators) {
|
|
49
49
|
if (rest.startsWith(separator))
|
|
@@ -53,15 +53,24 @@ const variantGetBracket = (name, matcher, separators) => {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const variantGetParameter = (
|
|
57
|
-
if (matcher.startsWith(
|
|
58
|
-
const body = variantGetBracket(
|
|
59
|
-
if (body)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
const variantGetParameter = (prefix, matcher, separators) => {
|
|
57
|
+
if (matcher.startsWith(prefix)) {
|
|
58
|
+
const body = variantGetBracket(prefix, matcher, separators);
|
|
59
|
+
if (body) {
|
|
60
|
+
const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
|
|
61
|
+
return [body[0], rest, label];
|
|
62
|
+
}
|
|
63
|
+
for (const separator of separators.filter((x) => x !== "/")) {
|
|
64
|
+
const pos = matcher.indexOf(separator, prefix.length);
|
|
65
|
+
if (pos !== -1) {
|
|
66
|
+
const labelPos = matcher.indexOf("/", prefix.length);
|
|
67
|
+
const unlabelled = labelPos === -1 || pos <= labelPos;
|
|
68
|
+
return [
|
|
69
|
+
matcher.slice(prefix.length, unlabelled ? pos : labelPos),
|
|
70
|
+
matcher.slice(pos + separator.length),
|
|
71
|
+
unlabelled ? "" : matcher.slice(labelPos + 1, pos)
|
|
72
|
+
];
|
|
73
|
+
}
|
|
65
74
|
}
|
|
66
75
|
}
|
|
67
76
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, s as getComponent } from './preset-mini.690517b1.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import { v as variantGetParameter, a as variantGetBracket, b as variantParentMatcher, c as variantMatcher } from './preset-mini.
|
|
2
|
+
import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
|
|
3
|
+
import { v as variantGetParameter, a as variantGetBracket, b as variantParentMatcher, c as variantMatcher } from './preset-mini.74d943b2.mjs';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
6
6
|
name: "aria",
|
|
7
7
|
match(matcher, { theme }) {
|
|
8
|
-
const variant = variantGetParameter("aria", matcher, [":", "-"]);
|
|
8
|
+
const variant = variantGetParameter("aria-", matcher, [":", "-"]);
|
|
9
9
|
if (variant) {
|
|
10
10
|
const [match, rest] = variant;
|
|
11
11
|
const aria = handler.bracket(match) ?? theme.aria?.[match] ?? "";
|
|
@@ -84,7 +84,7 @@ const scopeMatcher = (name, combinator) => ({
|
|
|
84
84
|
match(matcher) {
|
|
85
85
|
if (!matcher.startsWith(name))
|
|
86
86
|
return;
|
|
87
|
-
let body = variantGetBracket(name
|
|
87
|
+
let body = variantGetBracket(`${name}-`, matcher, [":", "-"]);
|
|
88
88
|
if (!body) {
|
|
89
89
|
for (const separator of [":", "-"]) {
|
|
90
90
|
if (matcher.startsWith(`${name}${separator}`)) {
|
|
@@ -113,10 +113,42 @@ const variantCombinators = [
|
|
|
113
113
|
scopeMatcher("siblings", "~")
|
|
114
114
|
];
|
|
115
115
|
|
|
116
|
+
const variantContainerQuery = {
|
|
117
|
+
name: "@",
|
|
118
|
+
match(matcher, { theme }) {
|
|
119
|
+
if (matcher.startsWith("@container"))
|
|
120
|
+
return;
|
|
121
|
+
const variant = variantGetParameter("@", matcher, [":", "-"]);
|
|
122
|
+
if (variant) {
|
|
123
|
+
const [match, rest, label] = variant;
|
|
124
|
+
const unbracket = handler.bracket(match);
|
|
125
|
+
let container;
|
|
126
|
+
if (unbracket) {
|
|
127
|
+
const minWidth = handler.numberWithUnit(unbracket);
|
|
128
|
+
if (minWidth)
|
|
129
|
+
container = `(min-width: ${minWidth})`;
|
|
130
|
+
} else {
|
|
131
|
+
container = theme.containers?.[match] ?? "";
|
|
132
|
+
}
|
|
133
|
+
if (container) {
|
|
134
|
+
warnOnce("The container query variant is experimental and may not follow semver.");
|
|
135
|
+
return {
|
|
136
|
+
matcher: rest,
|
|
137
|
+
handle: (input, next) => next({
|
|
138
|
+
...input,
|
|
139
|
+
parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}${container}`
|
|
140
|
+
})
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
multiPass: true
|
|
146
|
+
};
|
|
147
|
+
|
|
116
148
|
const variantDataAttribute = {
|
|
117
149
|
name: "data",
|
|
118
150
|
match(matcher, { theme }) {
|
|
119
|
-
const variant = variantGetParameter("data", matcher, [":", "-"]);
|
|
151
|
+
const variant = variantGetParameter("data-", matcher, [":", "-"]);
|
|
120
152
|
if (variant) {
|
|
121
153
|
const [match, rest] = variant;
|
|
122
154
|
const dataAttribute = handler.bracket(match) ?? theme.data?.[match] ?? "";
|
|
@@ -134,7 +166,7 @@ const variantPrint = variantParentMatcher("print", "@media print");
|
|
|
134
166
|
const variantCustomMedia = {
|
|
135
167
|
name: "media",
|
|
136
168
|
match(matcher, { theme }) {
|
|
137
|
-
const variant = variantGetParameter("media", matcher, [":", "-"]);
|
|
169
|
+
const variant = variantGetParameter("media-", matcher, [":", "-"]);
|
|
138
170
|
if (variant) {
|
|
139
171
|
const [match, rest] = variant;
|
|
140
172
|
let media = handler.bracket(match) ?? "";
|
|
@@ -157,7 +189,7 @@ const variantCustomMedia = {
|
|
|
157
189
|
const variantSupports = {
|
|
158
190
|
name: "supports",
|
|
159
191
|
match(matcher, { theme }) {
|
|
160
|
-
const variant = variantGetParameter("supports", matcher, [":", "-"]);
|
|
192
|
+
const variant = variantGetParameter("supports-", matcher, [":", "-"]);
|
|
161
193
|
if (variant) {
|
|
162
194
|
const [match, rest] = variant;
|
|
163
195
|
let supports = handler.bracket(match) ?? "";
|
|
@@ -199,7 +231,7 @@ const variantLanguageDirections = [
|
|
|
199
231
|
const variantSelector = {
|
|
200
232
|
name: "selector",
|
|
201
233
|
match(matcher) {
|
|
202
|
-
const variant = variantGetBracket("selector", matcher, [":", "-"]);
|
|
234
|
+
const variant = variantGetBracket("selector-", matcher, [":", "-"]);
|
|
203
235
|
if (variant) {
|
|
204
236
|
const [match, rest] = variant;
|
|
205
237
|
const selector = handler.bracket(match);
|
|
@@ -215,7 +247,7 @@ const variantSelector = {
|
|
|
215
247
|
const variantCssLayer = {
|
|
216
248
|
name: "layer",
|
|
217
249
|
match(matcher) {
|
|
218
|
-
const variant = variantGetParameter("layer", matcher, [":", "-"]);
|
|
250
|
+
const variant = variantGetParameter("layer-", matcher, [":", "-"]);
|
|
219
251
|
if (variant) {
|
|
220
252
|
const [match, rest] = variant;
|
|
221
253
|
const layer = handler.bracket(match) ?? match;
|
|
@@ -234,7 +266,7 @@ const variantCssLayer = {
|
|
|
234
266
|
const variantInternalLayer = {
|
|
235
267
|
name: "uno-layer",
|
|
236
268
|
match(matcher) {
|
|
237
|
-
const variant = variantGetParameter("uno-layer", matcher, [":", "-"]);
|
|
269
|
+
const variant = variantGetParameter("uno-layer-", matcher, [":", "-"]);
|
|
238
270
|
if (variant) {
|
|
239
271
|
const [match, rest] = variant;
|
|
240
272
|
const layer = handler.bracket(match) ?? match;
|
|
@@ -250,7 +282,7 @@ const variantInternalLayer = {
|
|
|
250
282
|
const variantScope = {
|
|
251
283
|
name: "scope",
|
|
252
284
|
match(matcher) {
|
|
253
|
-
const variant = variantGetBracket("scope", matcher, [":", "-"]);
|
|
285
|
+
const variant = variantGetBracket("scope-", matcher, [":", "-"]);
|
|
254
286
|
if (variant) {
|
|
255
287
|
const [match, rest] = variant;
|
|
256
288
|
const scope = handler.bracket(match);
|
|
@@ -440,7 +472,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
440
472
|
const pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?[:-]`);
|
|
441
473
|
const pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?[:]`);
|
|
442
474
|
const matchBracket = (input) => {
|
|
443
|
-
const body = variantGetBracket(tag
|
|
475
|
+
const body = variantGetBracket(`${tag}-`, input, []);
|
|
444
476
|
if (!body)
|
|
445
477
|
return;
|
|
446
478
|
const [match, rest] = body;
|
|
@@ -481,7 +513,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
481
513
|
return;
|
|
482
514
|
const [label, matcher, prefix, sort] = result;
|
|
483
515
|
if (label !== "")
|
|
484
|
-
warnOnce("The labeled
|
|
516
|
+
warnOnce("The labeled variant is experimental and may not follow semver.");
|
|
485
517
|
return {
|
|
486
518
|
matcher,
|
|
487
519
|
handle: (input2, next) => next({
|
|
@@ -585,7 +617,8 @@ const variants = (options) => [
|
|
|
585
617
|
...variantColorsMediaOrClass(options),
|
|
586
618
|
...variantLanguageDirections,
|
|
587
619
|
variantScope,
|
|
620
|
+
variantContainerQuery,
|
|
588
621
|
variantVariables
|
|
589
622
|
];
|
|
590
623
|
|
|
591
|
-
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d,
|
|
624
|
+
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantDataAttribute as f, variantPrint as g, variantCustomMedia as h, variantSupports as i, variantColorsMediaOrClass as j, variantLanguageDirections as k, variantSelector as l, variantCssLayer as m, variantInternalLayer as n, variantScope as o, variantVariables as p, variantPseudoClassesAndElements as q, variantPseudoClassFunctions as r, variantTaggedPseudoClasses as s, partClasses as t, variantImportant as u, variants as v, variantNegative as w };
|
package/dist/theme.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.6de47c6f.cjs');
|
|
7
7
|
require('./shared/preset-mini.09ec9c56.cjs');
|
|
8
8
|
require('./shared/preset-mini.b1936363.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
@@ -16,6 +16,7 @@ exports.blur = _default.blur;
|
|
|
16
16
|
exports.borderRadius = _default.borderRadius;
|
|
17
17
|
exports.boxShadow = _default.boxShadow;
|
|
18
18
|
exports.breakpoints = _default.breakpoints;
|
|
19
|
+
exports.containers = _default.containers;
|
|
19
20
|
exports.dropShadow = _default.dropShadow;
|
|
20
21
|
exports.duration = _default.duration;
|
|
21
22
|
exports.easing = _default.easing;
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
export { t as theme } from './default-
|
|
3
|
-
import { T as Theme } from './types-
|
|
4
|
-
export { T as Theme, a as ThemeAnimation } from './types-
|
|
1
|
+
export { c as colors } from './colors-884ab3c4.js';
|
|
2
|
+
export { t as theme } from './default-21cad915.js';
|
|
3
|
+
import { T as Theme } from './types-3bfb4dc5.js';
|
|
4
|
+
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-3bfb4dc5.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
|
@@ -194,6 +194,9 @@ declare const maxHeight: {
|
|
|
194
194
|
prose: string;
|
|
195
195
|
none: string;
|
|
196
196
|
};
|
|
197
|
+
declare const containers: {
|
|
198
|
+
[k: string]: string;
|
|
199
|
+
};
|
|
197
200
|
|
|
198
201
|
declare const preflightBase: {
|
|
199
202
|
'--un-ring-inset': string;
|
|
@@ -219,4 +222,4 @@ declare const preflightBase: {
|
|
|
219
222
|
'--un-translate-z': number;
|
|
220
223
|
};
|
|
221
224
|
|
|
222
|
-
export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
|
|
225
|
+
export { baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
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,
|
|
2
|
+
export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, z as containers, 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, A 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 './shared/preset-mini.2aa41602.mjs';
|
|
3
3
|
import './shared/preset-mini.489445bc.mjs';
|
|
4
4
|
import './shared/preset-mini.690517b1.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -7,6 +7,9 @@ interface ThemeAnimation {
|
|
|
7
7
|
properties?: Record<string, object>;
|
|
8
8
|
counts?: Record<string, string | number>;
|
|
9
9
|
}
|
|
10
|
+
interface Colors {
|
|
11
|
+
[key: string]: Colors | string;
|
|
12
|
+
}
|
|
10
13
|
interface Theme {
|
|
11
14
|
width?: Record<string, string>;
|
|
12
15
|
height?: Record<string, string>;
|
|
@@ -23,9 +26,9 @@ interface Theme {
|
|
|
23
26
|
borderRadius?: Record<string, string>;
|
|
24
27
|
breakpoints?: Record<string, string>;
|
|
25
28
|
verticalBreakpoints?: Record<string, string>;
|
|
26
|
-
colors?:
|
|
29
|
+
colors?: Colors;
|
|
27
30
|
fontFamily?: Record<string, string>;
|
|
28
|
-
fontSize?: Record<string, [string, string]>;
|
|
31
|
+
fontSize?: Record<string, string | [string, string]>;
|
|
29
32
|
lineHeight?: Record<string, string>;
|
|
30
33
|
letterSpacing?: Record<string, string>;
|
|
31
34
|
wordSpacing?: Record<string, string>;
|
|
@@ -44,6 +47,7 @@ interface Theme {
|
|
|
44
47
|
easing?: Record<string, string>;
|
|
45
48
|
media?: Record<string, string>;
|
|
46
49
|
supports?: Record<string, string>;
|
|
50
|
+
containers?: Record<string, string>;
|
|
47
51
|
animation?: ThemeAnimation;
|
|
48
52
|
gridAutoColumn?: Record<string, string>;
|
|
49
53
|
gridAutoRow?: Record<string, string>;
|
|
@@ -59,4 +63,4 @@ interface Theme {
|
|
|
59
63
|
preflightBase?: Record<string, string | number>;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
export { Theme as T, ThemeAnimation as a };
|
|
66
|
+
export { Colors as C, Theme as T, ThemeAnimation as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, Rule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-3bfb4dc5.js';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
package/dist/utils.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.b1936363.cjs');
|
|
6
|
-
const variants = require('./shared/preset-mini.
|
|
6
|
+
const variants = require('./shared/preset-mini.fbe02827.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, 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, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-10273596.js';
|
|
4
|
+
import './types-3bfb4dc5.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
@@ -77,7 +77,7 @@ declare const h: _unocss_core.ValueHandler<"number" | "global" | "auto" | "posit
|
|
|
77
77
|
|
|
78
78
|
declare const variantMatcher: (name: string, handler: (input: VariantHandlerContext) => Record<string, any>) => VariantObject;
|
|
79
79
|
declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
|
|
80
|
-
declare const variantGetBracket: (
|
|
81
|
-
declare const variantGetParameter: (
|
|
80
|
+
declare const variantGetBracket: (prefix: string, matcher: string, separators: string[]) => string[] | undefined;
|
|
81
|
+
declare const variantGetParameter: (prefix: string, matcher: string, separators: string[]) => string[] | undefined;
|
|
82
82
|
|
|
83
83
|
export { colorOpacityToString, colorToString, cornerMap, directionMap, globalKeywords, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, s as getComponent, y as getComponents, g as globalKeywords, v as h, h as handler, a as hasParseableColor, t as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, u as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, w as valueHandlers, x as xyzMap } from './shared/preset-mini.690517b1.mjs';
|
|
2
|
-
export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.74d943b2.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
+
const _default = require('./shared/preset-mini.c106b68c.cjs');
|
|
6
6
|
require('./shared/preset-mini.b1936363.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
-
require('./shared/preset-mini.
|
|
8
|
+
require('./shared/preset-mini.fbe02827.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,6 +15,7 @@ exports.variantAria = _default.variantAria;
|
|
|
15
15
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
16
16
|
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
17
17
|
exports.variantCombinators = _default.variantCombinators;
|
|
18
|
+
exports.variantContainerQuery = _default.variantContainerQuery;
|
|
18
19
|
exports.variantCssLayer = _default.variantCssLayer;
|
|
19
20
|
exports.variantCustomMedia = _default.variantCustomMedia;
|
|
20
21
|
exports.variantDataAttribute = _default.variantDataAttribute;
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-3bfb4dc5.js';
|
|
3
3
|
import { PresetMiniOptions } from './index.js';
|
|
4
|
-
import './colors-
|
|
5
|
-
import './default-
|
|
6
|
-
import './utilities-
|
|
4
|
+
import './colors-884ab3c4.js';
|
|
5
|
+
import './default-21cad915.js';
|
|
6
|
+
import './utilities-10273596.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
@@ -12,6 +12,8 @@ declare const variantBreakpoints: Variant<Theme>;
|
|
|
12
12
|
|
|
13
13
|
declare const variantCombinators: Variant[];
|
|
14
14
|
|
|
15
|
+
declare const variantContainerQuery: VariantObject;
|
|
16
|
+
|
|
15
17
|
declare const variantDataAttribute: VariantObject;
|
|
16
18
|
|
|
17
19
|
declare const variantPrint: Variant;
|
|
@@ -40,4 +42,4 @@ declare const variantImportant: Variant;
|
|
|
40
42
|
|
|
41
43
|
declare const variantNegative: Variant;
|
|
42
44
|
|
|
43
|
-
export { calcMaxWidthBySize, partClasses, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
|
45
|
+
export { calcMaxWidthBySize, partClasses, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize,
|
|
1
|
+
export { c as calcMaxWidthBySize, t as partClasses, a as variantAria, b as variantBreakpoints, j as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, h as variantCustomMedia, f as variantDataAttribute, u as variantImportant, n as variantInternalLayer, k as variantLanguageDirections, w as variantNegative, g as variantPrint, r as variantPseudoClassFunctions, q as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, i as variantSupports, s as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.fef10425.mjs';
|
|
2
2
|
import './shared/preset-mini.690517b1.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.74d943b2.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.5",
|
|
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.46.
|
|
64
|
+
"@unocss/core": "0.46.5"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|