@unocss/preset-mini 0.49.8 → 0.50.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/colors-fdadc382.d.ts +309 -0
- package/dist/colors.d.ts +2 -2
- package/dist/default-be74c37e.d.ts +666 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/rules.cjs +5 -5
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.34e0c9b9.mjs → preset-mini.0a5a2758.mjs} +3 -16
- package/dist/shared/{preset-mini.df9c634c.cjs → preset-mini.181fe24f.cjs} +18 -1
- package/dist/shared/{preset-mini.2341d2ee.cjs → preset-mini.2d0ee6de.cjs} +2 -2
- package/dist/shared/{preset-mini.9f800526.mjs → preset-mini.58ce8ebe.mjs} +11 -1
- package/dist/shared/{preset-mini.aca68d93.cjs → preset-mini.5c7c30ee.cjs} +4 -20
- package/dist/shared/{preset-mini.52ab4b0f.cjs → preset-mini.9d26b7a9.cjs} +11 -1
- package/dist/shared/{preset-mini.76eb599a.mjs → preset-mini.cfa259e4.mjs} +2 -2
- package/dist/shared/{preset-mini.86be0521.mjs → preset-mini.d64fd3fe.mjs} +17 -3
- package/dist/theme.cjs +2 -2
- package/dist/theme.d.ts +36 -8
- package/dist/theme.mjs +2 -2
- package/dist/{types-fa74508f.d.ts → types-f73ecdfe.d.ts} +1 -0
- package/dist/{utilities-d2f973f4.d.ts → utilities-a87209ad.d.ts} +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/variants.cjs +1 -1
- package/dist/variants.d.ts +4 -4
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
- package/dist/colors-b217808a.d.ts +0 -5
- package/dist/default-344896b2.d.ts +0 -5
package/dist/rules.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const transform = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
+
const transform = require('./shared/preset-mini.181fe24f.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.5c7c30ee.cjs');
|
|
7
7
|
require('./shared/preset-mini.f9ff00ee.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
@@ -12,6 +12,7 @@ require('@unocss/core');
|
|
|
12
12
|
exports.alignments = transform.alignments;
|
|
13
13
|
exports.appearance = transform.appearance;
|
|
14
14
|
exports.appearances = transform.appearances;
|
|
15
|
+
exports.bgColors = transform.bgColors;
|
|
15
16
|
exports.borderStyles = transform.borderStyles;
|
|
16
17
|
exports.borders = transform.borders;
|
|
17
18
|
exports.boxShadows = transform.boxShadows;
|
|
@@ -30,6 +31,7 @@ exports.fonts = transform.fonts;
|
|
|
30
31
|
exports.handlerBorderStyle = transform.handlerBorderStyle;
|
|
31
32
|
exports.insets = transform.insets;
|
|
32
33
|
exports.justifies = transform.justifies;
|
|
34
|
+
exports.opacity = transform.opacity;
|
|
33
35
|
exports.orders = transform.orders;
|
|
34
36
|
exports.outline = transform.outline;
|
|
35
37
|
exports.overflows = transform.overflows;
|
|
@@ -41,6 +43,7 @@ exports.ringBase = transform.ringBase;
|
|
|
41
43
|
exports.rings = transform.rings;
|
|
42
44
|
exports.tabSizes = transform.tabSizes;
|
|
43
45
|
exports.textAligns = transform.textAligns;
|
|
46
|
+
exports.textColors = transform.textColors;
|
|
44
47
|
exports.textDecorations = transform.textDecorations;
|
|
45
48
|
exports.textIndents = transform.textIndents;
|
|
46
49
|
exports.textOverflows = transform.textOverflows;
|
|
@@ -57,7 +60,6 @@ exports.whitespaces = transform.whitespaces;
|
|
|
57
60
|
exports.willChange = transform.willChange;
|
|
58
61
|
exports.zIndexes = transform.zIndexes;
|
|
59
62
|
exports.aspectRatio = _default.aspectRatio;
|
|
60
|
-
exports.bgColors = _default.bgColors;
|
|
61
63
|
exports.containerParent = _default.containerParent;
|
|
62
64
|
exports.cssProperty = _default.cssProperty;
|
|
63
65
|
exports.cssVariables = _default.cssVariables;
|
|
@@ -65,10 +67,8 @@ exports.flex = _default.flex;
|
|
|
65
67
|
exports.gaps = _default.gaps;
|
|
66
68
|
exports.grids = _default.grids;
|
|
67
69
|
exports.margins = _default.margins;
|
|
68
|
-
exports.opacity = _default.opacity;
|
|
69
70
|
exports.paddings = _default.paddings;
|
|
70
71
|
exports.questionMark = _default.questionMark;
|
|
71
72
|
exports.rules = _default.rules;
|
|
72
73
|
exports.sizes = _default.sizes;
|
|
73
74
|
exports.svgUtilities = _default.svgUtilities;
|
|
74
|
-
exports.textColors = _default.textColors;
|
package/dist/rules.d.ts
CHANGED
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { I as alignments, F as appearance, w as appearances, b as bgColors, V as borderStyles, a as borders, r as boxShadows, T as boxShadowsBase, N as boxSizing, C as breaks, R as contains, c as contentVisibility, e as contents, v as cursors, d as displays, L as floats, q as fontSmoothings, p as fontStyles, f as fonts, W as handlerBorderStyle, K as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, U as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, S as transformBase, P as transforms, O as transitions, A as userSelects, X as varEmpty, z as verticalAligns, B as whitespaces, Q as willChange, M as zIndexes } from './shared/preset-mini.d64fd3fe.mjs';
|
|
2
|
+
export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.0a5a2758.mjs';
|
|
3
3
|
import './shared/preset-mini.5eaf6188.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import { d as displays, b as borders, c as contentVisibility,
|
|
2
|
-
import { h as handler,
|
|
1
|
+
import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as insets, L as floats, M as zIndexes, N as boxSizing, O as transitions, P as transforms, Q as willChange, R as contains } from './preset-mini.d64fd3fe.mjs';
|
|
2
|
+
import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.5eaf6188.mjs';
|
|
3
3
|
import { warnOnce } from '@unocss/core';
|
|
4
4
|
|
|
5
|
-
const opacity = [
|
|
6
|
-
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: handler.bracket.percent.cssvar(d) })]
|
|
7
|
-
];
|
|
8
|
-
const textColors = [
|
|
9
|
-
[/^(?:color|c)-(.+)$/, colorResolver("color", "text"), { autocomplete: "(text|color|c)-$colors" }],
|
|
10
|
-
[/^text-(.+)$/, colorResolver("color", "text", (css) => !css.color?.toString().match(numberWithUnitRE)), { autocomplete: "(text|color|c)-$colors" }],
|
|
11
|
-
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
|
|
12
|
-
];
|
|
13
|
-
const bgColors = [
|
|
14
|
-
[/^bg-(.+)$/, colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
|
|
15
|
-
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
16
|
-
];
|
|
17
|
-
|
|
18
5
|
const containerParent = [
|
|
19
6
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
20
7
|
warnOnce("The container query rule is experimental and may not follow semver.");
|
|
@@ -317,4 +304,4 @@ const rules = [
|
|
|
317
304
|
questionMark
|
|
318
305
|
].flat(1);
|
|
319
306
|
|
|
320
|
-
export { grids as a,
|
|
307
|
+
export { grids as a, aspectRatio as b, containerParent as c, svgUtilities as d, cssVariables as e, flex as f, gaps as g, cssProperty as h, margins as m, paddings as p, questionMark as q, rules as r, sizes as s };
|
|
@@ -22,7 +22,7 @@ const verticalAlignAlias = {
|
|
|
22
22
|
const verticalAligns = [
|
|
23
23
|
[/^(?:vertical|align|v)-([-\w]+)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] }), { autocomplete: `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})` }]
|
|
24
24
|
];
|
|
25
|
-
const textAligns = ["center", "left", "right", "justify", "start", "end"
|
|
25
|
+
const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
|
|
26
26
|
|
|
27
27
|
const outline = [
|
|
28
28
|
[/^outline-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "outline-width": theme.lineWidth?.[d] ?? colors.handler.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(width|size)-<num>" }],
|
|
@@ -141,6 +141,20 @@ function handlerBorderStyle([, a = "", s]) {
|
|
|
141
141
|
return colors.directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
const opacity = [
|
|
145
|
+
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: colors.handler.bracket.percent.cssvar(d) })]
|
|
146
|
+
];
|
|
147
|
+
const textColors = [
|
|
148
|
+
[/^(?:color|c)-(.+)$/, colors.colorResolver("color", "text"), { autocomplete: "(color|c)-$colors" }],
|
|
149
|
+
[/^text-(.+)$/, colors.colorResolver("color", "text", (css) => !css.color?.toString().match(colors.numberWithUnitRE)), { autocomplete: "text-$colors" }],
|
|
150
|
+
[/^(?:text|color|c)-(.+)$/, ([, v]) => colors.globalKeywords.includes(v) ? { color: v } : void 0, { autocomplete: `(text|color|c)-(${colors.globalKeywords.join("|")})` }],
|
|
151
|
+
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
|
|
152
|
+
];
|
|
153
|
+
const bgColors = [
|
|
154
|
+
[/^bg-(.+)$/, colors.colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
|
|
155
|
+
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
156
|
+
];
|
|
157
|
+
|
|
144
158
|
const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...colors.globalKeywords];
|
|
145
159
|
const textDecorations = [
|
|
146
160
|
[/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
|
|
@@ -755,6 +769,7 @@ function handleSkew([, d, b]) {
|
|
|
755
769
|
exports.alignments = alignments;
|
|
756
770
|
exports.appearance = appearance;
|
|
757
771
|
exports.appearances = appearances;
|
|
772
|
+
exports.bgColors = bgColors;
|
|
758
773
|
exports.borderStyles = borderStyles;
|
|
759
774
|
exports.borders = borders;
|
|
760
775
|
exports.boxShadows = boxShadows;
|
|
@@ -773,6 +788,7 @@ exports.fonts = fonts;
|
|
|
773
788
|
exports.handlerBorderStyle = handlerBorderStyle;
|
|
774
789
|
exports.insets = insets;
|
|
775
790
|
exports.justifies = justifies;
|
|
791
|
+
exports.opacity = opacity;
|
|
776
792
|
exports.orders = orders;
|
|
777
793
|
exports.outline = outline;
|
|
778
794
|
exports.overflows = overflows;
|
|
@@ -784,6 +800,7 @@ exports.ringBase = ringBase;
|
|
|
784
800
|
exports.rings = rings;
|
|
785
801
|
exports.tabSizes = tabSizes;
|
|
786
802
|
exports.textAligns = textAligns;
|
|
803
|
+
exports.textColors = textColors;
|
|
787
804
|
exports.textDecorations = textDecorations;
|
|
788
805
|
exports.textIndents = textIndents;
|
|
789
806
|
exports.textOverflows = textOverflows;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.30606736.cjs');
|
|
4
|
-
const transform = require('./preset-mini.
|
|
5
|
-
require('./preset-mini.f9ff00ee.cjs');
|
|
4
|
+
const transform = require('./preset-mini.181fe24f.cjs');
|
|
6
5
|
require('@unocss/core');
|
|
6
|
+
require('./preset-mini.f9ff00ee.cjs');
|
|
7
7
|
|
|
8
8
|
const fontFamily = {
|
|
9
9
|
sans: [
|
|
@@ -545,6 +545,16 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
545
545
|
multiPass: true
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
|
+
const excludedPseudo = [
|
|
549
|
+
"::-webkit-resizer",
|
|
550
|
+
"::-webkit-scrollbar",
|
|
551
|
+
"::-webkit-scrollbar-button",
|
|
552
|
+
"::-webkit-scrollbar-corner",
|
|
553
|
+
"::-webkit-scrollbar-thumb",
|
|
554
|
+
"::-webkit-scrollbar-track",
|
|
555
|
+
"::-webkit-scrollbar-track-piece",
|
|
556
|
+
"::file-selector-button"
|
|
557
|
+
];
|
|
548
558
|
const PseudoClassesAndElementsStr = Object.entries(PseudoClasses).map(([key]) => key).join("|");
|
|
549
559
|
const PseudoClassesAndElementsColonStr = Object.entries(PseudoClassesColon).map(([key]) => key).join("|");
|
|
550
560
|
const variantPseudoClassesAndElements = () => {
|
|
@@ -563,7 +573,7 @@ const variantPseudoClassesAndElements = () => {
|
|
|
563
573
|
return {
|
|
564
574
|
matcher: input.slice(match[0].length),
|
|
565
575
|
handle: (input2, next) => {
|
|
566
|
-
const selectors = pseudo.startsWith("::") ? {
|
|
576
|
+
const selectors = pseudo.startsWith("::") && !excludedPseudo.includes(pseudo) ? {
|
|
567
577
|
pseudo: `${input2.pseudo}${pseudo}`
|
|
568
578
|
} : {
|
|
569
579
|
selector: `${input2.selector}${pseudo}`
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const transform = require('./preset-mini.
|
|
3
|
+
const transform = require('./preset-mini.181fe24f.cjs');
|
|
4
4
|
const colors = require('./preset-mini.f9ff00ee.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
7
|
-
const opacity = [
|
|
8
|
-
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: colors.handler.bracket.percent.cssvar(d) })]
|
|
9
|
-
];
|
|
10
|
-
const textColors = [
|
|
11
|
-
[/^(?:color|c)-(.+)$/, colors.colorResolver("color", "text"), { autocomplete: "(text|color|c)-$colors" }],
|
|
12
|
-
[/^text-(.+)$/, colors.colorResolver("color", "text", (css) => !css.color?.toString().match(colors.numberWithUnitRE)), { autocomplete: "(text|color|c)-$colors" }],
|
|
13
|
-
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
|
|
14
|
-
];
|
|
15
|
-
const bgColors = [
|
|
16
|
-
[/^bg-(.+)$/, colors.colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
|
|
17
|
-
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
18
|
-
];
|
|
19
|
-
|
|
20
7
|
const containerParent = [
|
|
21
8
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
22
9
|
core.warnOnce("The container query rule is experimental and may not follow semver.");
|
|
@@ -266,8 +253,8 @@ const rules = [
|
|
|
266
253
|
paddings,
|
|
267
254
|
margins,
|
|
268
255
|
transform.displays,
|
|
269
|
-
opacity,
|
|
270
|
-
bgColors,
|
|
256
|
+
transform.opacity,
|
|
257
|
+
transform.bgColors,
|
|
271
258
|
svgUtilities,
|
|
272
259
|
transform.borders,
|
|
273
260
|
transform.contentVisibility,
|
|
@@ -281,7 +268,7 @@ const rules = [
|
|
|
281
268
|
transform.textShadows,
|
|
282
269
|
transform.textTransforms,
|
|
283
270
|
transform.textAligns,
|
|
284
|
-
textColors,
|
|
271
|
+
transform.textColors,
|
|
285
272
|
transform.fontStyles,
|
|
286
273
|
transform.fontSmoothings,
|
|
287
274
|
transform.boxShadows,
|
|
@@ -320,7 +307,6 @@ const rules = [
|
|
|
320
307
|
].flat(1);
|
|
321
308
|
|
|
322
309
|
exports.aspectRatio = aspectRatio;
|
|
323
|
-
exports.bgColors = bgColors;
|
|
324
310
|
exports.containerParent = containerParent;
|
|
325
311
|
exports.cssProperty = cssProperty;
|
|
326
312
|
exports.cssVariables = cssVariables;
|
|
@@ -328,10 +314,8 @@ exports.flex = flex;
|
|
|
328
314
|
exports.gaps = gaps;
|
|
329
315
|
exports.grids = grids;
|
|
330
316
|
exports.margins = margins;
|
|
331
|
-
exports.opacity = opacity;
|
|
332
317
|
exports.paddings = paddings;
|
|
333
318
|
exports.questionMark = questionMark;
|
|
334
319
|
exports.rules = rules;
|
|
335
320
|
exports.sizes = sizes;
|
|
336
321
|
exports.svgUtilities = svgUtilities;
|
|
337
|
-
exports.textColors = textColors;
|
|
@@ -547,6 +547,16 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
547
547
|
multiPass: true
|
|
548
548
|
};
|
|
549
549
|
};
|
|
550
|
+
const excludedPseudo = [
|
|
551
|
+
"::-webkit-resizer",
|
|
552
|
+
"::-webkit-scrollbar",
|
|
553
|
+
"::-webkit-scrollbar-button",
|
|
554
|
+
"::-webkit-scrollbar-corner",
|
|
555
|
+
"::-webkit-scrollbar-thumb",
|
|
556
|
+
"::-webkit-scrollbar-track",
|
|
557
|
+
"::-webkit-scrollbar-track-piece",
|
|
558
|
+
"::file-selector-button"
|
|
559
|
+
];
|
|
550
560
|
const PseudoClassesAndElementsStr = Object.entries(PseudoClasses).map(([key]) => key).join("|");
|
|
551
561
|
const PseudoClassesAndElementsColonStr = Object.entries(PseudoClassesColon).map(([key]) => key).join("|");
|
|
552
562
|
const variantPseudoClassesAndElements = () => {
|
|
@@ -565,7 +575,7 @@ const variantPseudoClassesAndElements = () => {
|
|
|
565
575
|
return {
|
|
566
576
|
matcher: input.slice(match[0].length),
|
|
567
577
|
handle: (input2, next) => {
|
|
568
|
-
const selectors = pseudo.startsWith("::") ? {
|
|
578
|
+
const selectors = pseudo.startsWith("::") && !excludedPseudo.includes(pseudo) ? {
|
|
569
579
|
pseudo: `${input2.pseudo}${pseudo}`
|
|
570
580
|
} : {
|
|
571
581
|
selector: `${input2.selector}${pseudo}`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as colors } from './preset-mini.65ac75be.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import './preset-mini.5eaf6188.mjs';
|
|
2
|
+
import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.d64fd3fe.mjs';
|
|
4
3
|
import '@unocss/core';
|
|
4
|
+
import './preset-mini.5eaf6188.mjs';
|
|
5
5
|
|
|
6
6
|
const fontFamily = {
|
|
7
7
|
sans: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, m as makeGlobalStaticRules, s as splitShorthand, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.5eaf6188.mjs';
|
|
1
|
+
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, n as numberWithUnitRE, m as makeGlobalStaticRules, s as splitShorthand, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.5eaf6188.mjs';
|
|
2
2
|
import { toArray } from '@unocss/core';
|
|
3
3
|
|
|
4
4
|
const verticalAlignAlias = {
|
|
@@ -20,7 +20,7 @@ const verticalAlignAlias = {
|
|
|
20
20
|
const verticalAligns = [
|
|
21
21
|
[/^(?:vertical|align|v)-([-\w]+)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] }), { autocomplete: `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})` }]
|
|
22
22
|
];
|
|
23
|
-
const textAligns = ["center", "left", "right", "justify", "start", "end"
|
|
23
|
+
const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
|
|
24
24
|
|
|
25
25
|
const outline = [
|
|
26
26
|
[/^outline-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "outline-width": theme.lineWidth?.[d] ?? handler.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(width|size)-<num>" }],
|
|
@@ -139,6 +139,20 @@ function handlerBorderStyle([, a = "", s]) {
|
|
|
139
139
|
return directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
const opacity = [
|
|
143
|
+
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: handler.bracket.percent.cssvar(d) })]
|
|
144
|
+
];
|
|
145
|
+
const textColors = [
|
|
146
|
+
[/^(?:color|c)-(.+)$/, colorResolver("color", "text"), { autocomplete: "(color|c)-$colors" }],
|
|
147
|
+
[/^text-(.+)$/, colorResolver("color", "text", (css) => !css.color?.toString().match(numberWithUnitRE)), { autocomplete: "text-$colors" }],
|
|
148
|
+
[/^(?:text|color|c)-(.+)$/, ([, v]) => globalKeywords.includes(v) ? { color: v } : void 0, { autocomplete: `(text|color|c)-(${globalKeywords.join("|")})` }],
|
|
149
|
+
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
|
|
150
|
+
];
|
|
151
|
+
const bgColors = [
|
|
152
|
+
[/^bg-(.+)$/, colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
|
|
153
|
+
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
154
|
+
];
|
|
155
|
+
|
|
142
156
|
const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...globalKeywords];
|
|
143
157
|
const textDecorations = [
|
|
144
158
|
[/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
|
|
@@ -750,4 +764,4 @@ function handleSkew([, d, b]) {
|
|
|
750
764
|
}
|
|
751
765
|
}
|
|
752
766
|
|
|
753
|
-
export {
|
|
767
|
+
export { userSelects as A, whitespaces as B, breaks as C, overflows as D, outline as E, appearance as F, orders as G, justifies as H, alignments as I, placements as J, insets as K, floats as L, zIndexes as M, boxSizing as N, transitions as O, transforms as P, willChange as Q, contains as R, transformBase as S, boxShadowsBase as T, ringBase as U, borderStyles as V, handlerBorderStyle as W, varEmpty as X, borders as a, bgColors as b, contentVisibility as c, displays as d, contents as e, fonts as f, textIndents as g, textOverflows as h, textDecorations as i, textStrokes as j, textShadows as k, textTransforms as l, textAligns as m, textColors as n, opacity as o, fontStyles as p, fontSmoothings as q, boxShadows as r, rings as s, tabSizes as t, positions as u, cursors as v, appearances as w, pointerEvents as x, resizes as y, verticalAligns as z };
|
package/dist/theme.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
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.
|
|
7
|
-
require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.2d0ee6de.cjs');
|
|
7
|
+
require('./shared/preset-mini.181fe24f.cjs');
|
|
8
8
|
require('./shared/preset-mini.f9ff00ee.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
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 { C as Colors, T as Theme, a as ThemeAnimation } from './types-
|
|
1
|
+
export { c as colors } from './colors-fdadc382.js';
|
|
2
|
+
export { t as theme } from './default-be74c37e.js';
|
|
3
|
+
import { T as Theme } from './types-f73ecdfe.js';
|
|
4
|
+
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-f73ecdfe.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
|
@@ -32,10 +32,38 @@ declare const fontFamily: {
|
|
|
32
32
|
declare const fontSize: Theme['fontSize'];
|
|
33
33
|
declare const textIndent: Theme['textIndent'];
|
|
34
34
|
declare const textStrokeWidth: Theme['textStrokeWidth'];
|
|
35
|
-
declare const textShadow:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
declare const textShadow: {
|
|
36
|
+
DEFAULT: string[];
|
|
37
|
+
none: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
md: string[];
|
|
40
|
+
lg: string[];
|
|
41
|
+
xl: string[];
|
|
42
|
+
};
|
|
43
|
+
declare const lineHeight: {
|
|
44
|
+
none: string;
|
|
45
|
+
tight: string;
|
|
46
|
+
snug: string;
|
|
47
|
+
normal: string;
|
|
48
|
+
relaxed: string;
|
|
49
|
+
loose: string;
|
|
50
|
+
};
|
|
51
|
+
declare const letterSpacing: {
|
|
52
|
+
tighter: string;
|
|
53
|
+
tight: string;
|
|
54
|
+
normal: string;
|
|
55
|
+
wide: string;
|
|
56
|
+
wider: string;
|
|
57
|
+
widest: string;
|
|
58
|
+
};
|
|
59
|
+
declare const wordSpacing: {
|
|
60
|
+
tighter: string;
|
|
61
|
+
tight: string;
|
|
62
|
+
normal: string;
|
|
63
|
+
wide: string;
|
|
64
|
+
wider: string;
|
|
65
|
+
widest: string;
|
|
66
|
+
};
|
|
39
67
|
|
|
40
68
|
declare const breakpoints: {
|
|
41
69
|
sm: string;
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
2
|
-
export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
2
|
+
export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.cfa259e4.mjs';
|
|
3
|
+
import './shared/preset-mini.d64fd3fe.mjs';
|
|
4
4
|
import './shared/preset-mini.5eaf6188.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -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-f73ecdfe.js';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
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, s as splitShorthand } 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, s as splitShorthand } from './utilities-a87209ad.js';
|
|
4
|
+
import './types-f73ecdfe.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
@@ -72,8 +72,8 @@ declare namespace handlers {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
declare const handler: _unocss_core.ValueHandler<"number" | "
|
|
76
|
-
declare const h: _unocss_core.ValueHandler<"number" | "
|
|
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">;
|
|
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;
|
package/dist/variants.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.9d26b7a9.cjs');
|
|
6
6
|
require('./shared/preset-mini.f9ff00ee.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
require('./shared/preset-mini.7086e6db.cjs');
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.js';
|
|
3
|
-
import { T as Theme } from './types-
|
|
4
|
-
import './colors-
|
|
5
|
-
import './default-
|
|
6
|
-
import './utilities-
|
|
3
|
+
import { T as Theme } from './types-f73ecdfe.js';
|
|
4
|
+
import './colors-fdadc382.js';
|
|
5
|
+
import './default-be74c37e.js';
|
|
6
|
+
import './utilities-a87209ad.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, u as partClasses, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, u as partClasses, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.58ce8ebe.mjs';
|
|
2
2
|
import './shared/preset-mini.5eaf6188.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './shared/preset-mini.ca55daef.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.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.50.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|