@unocss/preset-mini 0.53.5 → 0.54.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-9b4e2c30.d.ts → colors-dabdd21f.d.ts} +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/{default-e9b20bc4.d.ts → default-1f25a0ae.d.ts} +12 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +7 -7
- package/dist/rules.cjs +7 -7
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.407f1930.mjs → preset-mini.0131b915.mjs} +20 -4
- package/dist/shared/{preset-mini.95617a64.mjs → preset-mini.31fe3ff4.mjs} +109 -5
- package/dist/shared/{preset-mini.ca73a5f0.cjs → preset-mini.345a6f11.cjs} +116 -7
- package/dist/shared/{preset-mini.6c244f7e.mjs → preset-mini.6c1c8016.mjs} +1 -1
- package/dist/shared/{preset-mini.9af3cc95.mjs → preset-mini.74f9d55e.mjs} +1 -1
- package/dist/shared/{preset-mini.ee3178c9.cjs → preset-mini.78d4899a.cjs} +1 -117
- package/dist/shared/{preset-mini.922dda3d.mjs → preset-mini.830250eb.mjs} +3 -114
- package/dist/shared/{preset-mini.3567e469.cjs → preset-mini.9d93761b.cjs} +18 -1
- package/dist/shared/{preset-mini.ca82e1e9.cjs → preset-mini.b22ca5de.cjs} +14 -1
- package/dist/shared/{preset-mini.1c162eeb.mjs → preset-mini.e7d18afd.mjs} +15 -3
- package/dist/theme.cjs +3 -2
- package/dist/theme.d.ts +16 -5
- package/dist/theme.mjs +3 -3
- package/dist/{types-c1be36b6.d.ts → types-d991ba46.d.ts} +1 -0
- package/dist/{utilities-50ca92a9.d.ts → utilities-d496540e.d.ts} +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/variants.cjs +2 -1
- package/dist/variants.d.ts +6 -5
- package/dist/variants.mjs +3 -3
- package/package.json +3 -3
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-dabdd21f.js';
|
|
2
|
+
import './types-d991ba46.js';
|
|
3
3
|
import '@unocss/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Colors } from './types-
|
|
1
|
+
import { C as Colors } from './types-d991ba46.js';
|
|
2
2
|
|
|
3
3
|
declare const theme: {
|
|
4
4
|
width: {
|
|
@@ -548,6 +548,17 @@ declare const theme: {
|
|
|
548
548
|
mono: string;
|
|
549
549
|
};
|
|
550
550
|
fontSize: Record<string, string | [string, string]> | undefined;
|
|
551
|
+
fontWeight: {
|
|
552
|
+
thin: string;
|
|
553
|
+
extralight: string;
|
|
554
|
+
light: string;
|
|
555
|
+
normal: string;
|
|
556
|
+
medium: string;
|
|
557
|
+
semibold: string;
|
|
558
|
+
bold: string;
|
|
559
|
+
extrabold: string;
|
|
560
|
+
black: string;
|
|
561
|
+
};
|
|
551
562
|
breakpoints: {
|
|
552
563
|
sm: string;
|
|
553
564
|
md: string;
|
package/dist/index.cjs
CHANGED
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
6
6
|
const core = require('@unocss/core');
|
|
7
|
-
require('./shared/preset-mini.
|
|
8
|
-
const _default$1 = require('./shared/preset-mini.
|
|
7
|
+
require('./shared/preset-mini.78d4899a.cjs');
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.345a6f11.cjs');
|
|
9
9
|
const colors$1 = require('./shared/preset-mini.a21c5071.cjs');
|
|
10
10
|
const colors = require('./shared/preset-mini.f3fc54d2.cjs');
|
|
11
|
-
const _default = require('./shared/preset-mini.
|
|
12
|
-
const _default$2 = require('./shared/preset-mini.
|
|
11
|
+
const _default = require('./shared/preset-mini.b22ca5de.cjs');
|
|
12
|
+
const _default$2 = require('./shared/preset-mini.9d93761b.cjs');
|
|
13
13
|
require('./shared/preset-mini.d778b487.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Preflight, PresetOptions, Preset, Postprocessor } 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-dabdd21f.js';
|
|
3
|
+
export { t as theme } from './default-1f25a0ae.js';
|
|
4
|
+
import { T as Theme } from './types-d991ba46.js';
|
|
5
|
+
export { T as Theme, a as ThemeAnimation } from './types-d991ba46.js';
|
|
6
|
+
export { p as parseColor } from './utilities-d496540e.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
2
2
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import { r as rules } from './shared/preset-mini.
|
|
5
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
3
|
+
import './shared/preset-mini.830250eb.mjs';
|
|
4
|
+
import { r as rules } from './shared/preset-mini.31fe3ff4.mjs';
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.6c1c8016.mjs';
|
|
6
6
|
export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
|
|
7
|
-
import { t as theme } from './shared/preset-mini.
|
|
8
|
-
export { t as theme } from './shared/preset-mini.
|
|
9
|
-
import { v as variants } from './shared/preset-mini.
|
|
10
|
-
import './shared/preset-mini.
|
|
7
|
+
import { t as theme } from './shared/preset-mini.e7d18afd.mjs';
|
|
8
|
+
export { t as theme } from './shared/preset-mini.e7d18afd.mjs';
|
|
9
|
+
import { v as variants } from './shared/preset-mini.0131b915.mjs';
|
|
10
|
+
import './shared/preset-mini.74f9d55e.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
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.78d4899a.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.345a6f11.cjs');
|
|
7
7
|
require('./shared/preset-mini.a21c5071.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
@@ -29,7 +29,6 @@ exports.flexGridJustifiesAlignments = transform.flexGridJustifiesAlignments;
|
|
|
29
29
|
exports.floats = transform.floats;
|
|
30
30
|
exports.fontSmoothings = transform.fontSmoothings;
|
|
31
31
|
exports.fontStyles = transform.fontStyles;
|
|
32
|
-
exports.fonts = transform.fonts;
|
|
33
32
|
exports.handlerBorderStyle = transform.handlerBorderStyle;
|
|
34
33
|
exports.insets = transform.insets;
|
|
35
34
|
exports.justifies = transform.justifies;
|
|
@@ -43,14 +42,10 @@ exports.positions = transform.positions;
|
|
|
43
42
|
exports.resizes = transform.resizes;
|
|
44
43
|
exports.ringBase = transform.ringBase;
|
|
45
44
|
exports.rings = transform.rings;
|
|
46
|
-
exports.tabSizes = transform.tabSizes;
|
|
47
45
|
exports.textAligns = transform.textAligns;
|
|
48
46
|
exports.textColors = transform.textColors;
|
|
49
47
|
exports.textDecorations = transform.textDecorations;
|
|
50
|
-
exports.textIndents = transform.textIndents;
|
|
51
48
|
exports.textOverflows = transform.textOverflows;
|
|
52
|
-
exports.textShadows = transform.textShadows;
|
|
53
|
-
exports.textStrokes = transform.textStrokes;
|
|
54
49
|
exports.textTransforms = transform.textTransforms;
|
|
55
50
|
exports.textWraps = transform.textWraps;
|
|
56
51
|
exports.transformBase = transform.transformBase;
|
|
@@ -67,6 +62,7 @@ exports.containerParent = _default.containerParent;
|
|
|
67
62
|
exports.cssProperty = _default.cssProperty;
|
|
68
63
|
exports.cssVariables = _default.cssVariables;
|
|
69
64
|
exports.flex = _default.flex;
|
|
65
|
+
exports.fonts = _default.fonts;
|
|
70
66
|
exports.gaps = _default.gaps;
|
|
71
67
|
exports.grids = _default.grids;
|
|
72
68
|
exports.margins = _default.margins;
|
|
@@ -75,3 +71,7 @@ exports.questionMark = _default.questionMark;
|
|
|
75
71
|
exports.rules = _default.rules;
|
|
76
72
|
exports.sizes = _default.sizes;
|
|
77
73
|
exports.svgUtilities = _default.svgUtilities;
|
|
74
|
+
exports.tabSizes = _default.tabSizes;
|
|
75
|
+
exports.textIndents = _default.textIndents;
|
|
76
|
+
exports.textShadows = _default.textShadows;
|
|
77
|
+
exports.textStrokes = _default.textStrokes;
|
package/dist/rules.d.ts
CHANGED
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { b as aspectRatio, c as containerParent,
|
|
3
|
-
import './shared/preset-mini.
|
|
1
|
+
export { E as alignments, B as appearance, q as appearances, b as bgColors, T as borderStyles, a as borders, m as boxShadows, R as boxShadowsBase, K as boxSizing, y as breaks, c as colorScheme, O as contains, e as contentVisibility, f as contents, n as cursors, d as displays, G as flexGridJustifiesAlignments, I as floats, l as fontSmoothings, k as fontStyles, U as handlerBorderStyle, H as insets, D as justifies, o as opacity, C as orders, A as outline, z as overflows, F as placements, s as pointerEvents, p as positions, u as resizes, S as ringBase, r as rings, i as textAligns, j as textColors, g as textDecorations, t as textOverflows, h as textTransforms, P as textWraps, Q as transformBase, M as transforms, L as transitions, w as userSelects, V as varEmpty, v as verticalAligns, x as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.830250eb.mjs';
|
|
2
|
+
export { b as aspectRatio, c as containerParent, l as cssProperty, k as cssVariables, f as flex, e as fonts, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as tabSizes, h as textIndents, j as textShadows, i as textStrokes } from './shared/preset-mini.31fe3ff4.mjs';
|
|
3
|
+
import './shared/preset-mini.6c1c8016.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.
|
|
1
|
+
import { h, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.6c1c8016.mjs';
|
|
2
2
|
import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
|
|
3
|
-
import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.
|
|
3
|
+
import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.74f9d55e.mjs';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
6
6
|
name: "aria",
|
|
@@ -180,6 +180,21 @@ const variantDataAttribute = {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
+
const variantGroupDataAttribute = {
|
|
184
|
+
name: "group-data",
|
|
185
|
+
match(matcher, ctx) {
|
|
186
|
+
const variant = variantGetParameter("group-data-", matcher, ctx.generator.config.separators);
|
|
187
|
+
if (variant) {
|
|
188
|
+
const [match, rest] = variant;
|
|
189
|
+
const dataAttribute = h.bracket(match) ?? ctx.theme.data?.[match] ?? "";
|
|
190
|
+
if (dataAttribute) {
|
|
191
|
+
return {
|
|
192
|
+
matcher: `group-[[data-${dataAttribute}]]:${rest}`
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
183
198
|
|
|
184
199
|
const variantLanguageDirections = [
|
|
185
200
|
variantMatcher("rtl", (input) => ({ prefix: `[dir="rtl"] $$ ${input.prefix}` })),
|
|
@@ -681,8 +696,9 @@ function variants(options) {
|
|
|
681
696
|
...variantLanguageDirections,
|
|
682
697
|
variantScope,
|
|
683
698
|
variantContainerQuery,
|
|
684
|
-
variantVariables
|
|
699
|
+
variantVariables,
|
|
700
|
+
variantGroupDataAttribute
|
|
685
701
|
];
|
|
686
702
|
}
|
|
687
703
|
|
|
688
|
-
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g,
|
|
704
|
+
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g, variantGroupDataAttribute as h, variantLanguageDirections as i, variantImportant as j, variantPrint as k, variantCustomMedia as l, variantSelector as m, variantCssLayer as n, variantInternalLayer as o, variantScope as p, variantVariables as q, variantNegative as r, variantPseudoClassesAndElements as s, variantPseudoClassFunctions as t, variantTaggedPseudoClasses as u, variants as v, variantPartClasses as w, variantSupports as x };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents,
|
|
2
|
-
import { h, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize
|
|
3
|
-
import { warnOnce } from '@unocss/core';
|
|
1
|
+
import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents, t as textOverflows, g as textDecorations, h as textTransforms, i as textAligns, j as textColors, k as fontStyles, l as fontSmoothings, m as boxShadows, r as rings, p as positions, n as cursors, q as appearances, s as pointerEvents, u as resizes, v as verticalAligns, w as userSelects, x as whitespaces, y as breaks, z as overflows, A as outline, B as appearance, C as orders, D as justifies, E as alignments, F as placements, G as flexGridJustifiesAlignments, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains, P as textWraps } from './preset-mini.830250eb.mjs';
|
|
2
|
+
import { h, s as splitShorthand, c as colorResolver, j as colorableShadows, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.6c1c8016.mjs';
|
|
3
|
+
import { warnOnce, toArray } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const containerParent = [
|
|
6
6
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
@@ -33,6 +33,111 @@ const flex = [
|
|
|
33
33
|
["flex-nowrap", { "flex-wrap": "nowrap" }]
|
|
34
34
|
];
|
|
35
35
|
|
|
36
|
+
function handleLineHeight(s, theme) {
|
|
37
|
+
return theme.lineHeight?.[s] || h.bracket.cssvar.global.rem(s);
|
|
38
|
+
}
|
|
39
|
+
const fonts = [
|
|
40
|
+
[
|
|
41
|
+
/^text-(.+)$/,
|
|
42
|
+
([, s = "base"], { theme }) => {
|
|
43
|
+
const [size, leading] = splitShorthand(s, "length");
|
|
44
|
+
const sizePairs = toArray(theme.fontSize?.[size]);
|
|
45
|
+
const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
|
|
46
|
+
if (sizePairs?.[0]) {
|
|
47
|
+
const [fontSize2, height] = sizePairs;
|
|
48
|
+
return {
|
|
49
|
+
"font-size": fontSize2,
|
|
50
|
+
"line-height": lineHeight ?? height ?? "1"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const fontSize = h.bracketOfLength.rem(size);
|
|
54
|
+
if (lineHeight && fontSize) {
|
|
55
|
+
return {
|
|
56
|
+
"font-size": fontSize,
|
|
57
|
+
"line-height": lineHeight
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return { "font-size": h.bracketOfLength.rem(s) };
|
|
61
|
+
},
|
|
62
|
+
{ autocomplete: "text-$fontSize" }
|
|
63
|
+
],
|
|
64
|
+
[/^text-size-(.+)$/, ([, s], { theme }) => {
|
|
65
|
+
const themed = toArray(theme.fontSize?.[s]);
|
|
66
|
+
const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
|
|
67
|
+
if (size != null)
|
|
68
|
+
return { "font-size": size };
|
|
69
|
+
}, { autocomplete: "text-size-$fontSize" }],
|
|
70
|
+
[
|
|
71
|
+
/^(?:font|fw)-?([^-]+)$/,
|
|
72
|
+
([, s], { theme }) => ({ "font-weight": theme.fontWeight?.[s] || h.bracket.global.number(s) }),
|
|
73
|
+
{
|
|
74
|
+
autocomplete: [
|
|
75
|
+
"(font|fw)-(100|200|300|400|500|600|700|800|900)",
|
|
76
|
+
"(font|fw)-$fontWeight"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
|
|
82
|
+
([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
|
|
83
|
+
{ autocomplete: "(leading|lh|line-height)-$lineHeight" }
|
|
84
|
+
],
|
|
85
|
+
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
86
|
+
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
87
|
+
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
88
|
+
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
89
|
+
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": h.bracket.cssvar.global(s) })],
|
|
90
|
+
[
|
|
91
|
+
/^(?:font-)?tracking-(.+)$/,
|
|
92
|
+
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
|
|
93
|
+
{ autocomplete: "tracking-$letterSpacing" }
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
/^(?:font-)?word-spacing-(.+)$/,
|
|
97
|
+
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
|
|
98
|
+
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
99
|
+
],
|
|
100
|
+
[
|
|
101
|
+
/^font-(.+)$/,
|
|
102
|
+
([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || h.bracket.cssvar.global(d) }),
|
|
103
|
+
{ autocomplete: "font-$fontFamily" }
|
|
104
|
+
]
|
|
105
|
+
];
|
|
106
|
+
const tabSizes = [
|
|
107
|
+
[/^tab(?:-(.+))?$/, ([, s]) => {
|
|
108
|
+
const v = h.bracket.cssvar.global.number(s || "4");
|
|
109
|
+
if (v != null) {
|
|
110
|
+
return {
|
|
111
|
+
"-moz-tab-size": v,
|
|
112
|
+
"-o-tab-size": v,
|
|
113
|
+
"tab-size": v
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}]
|
|
117
|
+
];
|
|
118
|
+
const textIndents = [
|
|
119
|
+
[/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
|
|
120
|
+
];
|
|
121
|
+
const textStrokes = [
|
|
122
|
+
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
|
|
123
|
+
[/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
|
|
124
|
+
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
|
|
125
|
+
];
|
|
126
|
+
const textShadows = [
|
|
127
|
+
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
128
|
+
const v = theme.textShadow?.[s || "DEFAULT"];
|
|
129
|
+
if (v != null) {
|
|
130
|
+
return {
|
|
131
|
+
"--un-text-shadow": colorableShadows(v, "--un-text-shadow-color").join(","),
|
|
132
|
+
"text-shadow": "var(--un-text-shadow)"
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
return { "text-shadow": h.bracket.cssvar.global(s) };
|
|
136
|
+
}, { autocomplete: "text-shadow-$textShadow" }],
|
|
137
|
+
[/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
|
|
138
|
+
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
|
|
139
|
+
];
|
|
140
|
+
|
|
36
141
|
const directions = {
|
|
37
142
|
"": "",
|
|
38
143
|
"x": "column-",
|
|
@@ -42,7 +147,6 @@ function handleGap([, d = "", s], { theme }) {
|
|
|
42
147
|
const v = theme.spacing?.[s] ?? h.bracket.cssvar.global.rem(s);
|
|
43
148
|
if (v != null) {
|
|
44
149
|
return {
|
|
45
|
-
[`grid-${directions[d]}gap`]: v,
|
|
46
150
|
[`${directions[d]}gap`]: v
|
|
47
151
|
};
|
|
48
152
|
}
|
|
@@ -311,4 +415,4 @@ const rules = [
|
|
|
311
415
|
questionMark
|
|
312
416
|
].flat(1);
|
|
313
417
|
|
|
314
|
-
export { grids as a, aspectRatio as b, containerParent as c, svgUtilities as d,
|
|
418
|
+
export { grids as a, aspectRatio as b, containerParent as c, svgUtilities as d, fonts as e, flex as f, gaps as g, textIndents as h, textStrokes as i, textShadows as j, cssVariables as k, cssProperty as l, margins as m, paddings as p, questionMark as q, rules as r, sizes as s, tabSizes as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const transform = require('./preset-mini.
|
|
3
|
+
const transform = require('./preset-mini.78d4899a.cjs');
|
|
4
4
|
const colors = require('./preset-mini.a21c5071.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
@@ -35,6 +35,111 @@ const flex = [
|
|
|
35
35
|
["flex-nowrap", { "flex-wrap": "nowrap" }]
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
+
function handleLineHeight(s, theme) {
|
|
39
|
+
return theme.lineHeight?.[s] || colors.h.bracket.cssvar.global.rem(s);
|
|
40
|
+
}
|
|
41
|
+
const fonts = [
|
|
42
|
+
[
|
|
43
|
+
/^text-(.+)$/,
|
|
44
|
+
([, s = "base"], { theme }) => {
|
|
45
|
+
const [size, leading] = colors.splitShorthand(s, "length");
|
|
46
|
+
const sizePairs = core.toArray(theme.fontSize?.[size]);
|
|
47
|
+
const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
|
|
48
|
+
if (sizePairs?.[0]) {
|
|
49
|
+
const [fontSize2, height] = sizePairs;
|
|
50
|
+
return {
|
|
51
|
+
"font-size": fontSize2,
|
|
52
|
+
"line-height": lineHeight ?? height ?? "1"
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const fontSize = colors.h.bracketOfLength.rem(size);
|
|
56
|
+
if (lineHeight && fontSize) {
|
|
57
|
+
return {
|
|
58
|
+
"font-size": fontSize,
|
|
59
|
+
"line-height": lineHeight
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
return { "font-size": colors.h.bracketOfLength.rem(s) };
|
|
63
|
+
},
|
|
64
|
+
{ autocomplete: "text-$fontSize" }
|
|
65
|
+
],
|
|
66
|
+
[/^text-size-(.+)$/, ([, s], { theme }) => {
|
|
67
|
+
const themed = core.toArray(theme.fontSize?.[s]);
|
|
68
|
+
const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
|
|
69
|
+
if (size != null)
|
|
70
|
+
return { "font-size": size };
|
|
71
|
+
}, { autocomplete: "text-size-$fontSize" }],
|
|
72
|
+
[
|
|
73
|
+
/^(?:font|fw)-?([^-]+)$/,
|
|
74
|
+
([, s], { theme }) => ({ "font-weight": theme.fontWeight?.[s] || colors.h.bracket.global.number(s) }),
|
|
75
|
+
{
|
|
76
|
+
autocomplete: [
|
|
77
|
+
"(font|fw)-(100|200|300|400|500|600|700|800|900)",
|
|
78
|
+
"(font|fw)-$fontWeight"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
|
|
84
|
+
([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
|
|
85
|
+
{ autocomplete: "(leading|lh|line-height)-$lineHeight" }
|
|
86
|
+
],
|
|
87
|
+
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
88
|
+
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
89
|
+
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
90
|
+
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
91
|
+
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": colors.h.bracket.cssvar.global(s) })],
|
|
92
|
+
[
|
|
93
|
+
/^(?:font-)?tracking-(.+)$/,
|
|
94
|
+
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
|
|
95
|
+
{ autocomplete: "tracking-$letterSpacing" }
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
/^(?:font-)?word-spacing-(.+)$/,
|
|
99
|
+
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
|
|
100
|
+
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
101
|
+
],
|
|
102
|
+
[
|
|
103
|
+
/^font-(.+)$/,
|
|
104
|
+
([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || colors.h.bracket.cssvar.global(d) }),
|
|
105
|
+
{ autocomplete: "font-$fontFamily" }
|
|
106
|
+
]
|
|
107
|
+
];
|
|
108
|
+
const tabSizes = [
|
|
109
|
+
[/^tab(?:-(.+))?$/, ([, s]) => {
|
|
110
|
+
const v = colors.h.bracket.cssvar.global.number(s || "4");
|
|
111
|
+
if (v != null) {
|
|
112
|
+
return {
|
|
113
|
+
"-moz-tab-size": v,
|
|
114
|
+
"-o-tab-size": v,
|
|
115
|
+
"tab-size": v
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}]
|
|
119
|
+
];
|
|
120
|
+
const textIndents = [
|
|
121
|
+
[/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || colors.h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
|
|
122
|
+
];
|
|
123
|
+
const textStrokes = [
|
|
124
|
+
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || colors.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
|
|
125
|
+
[/^text-stroke-(.+)$/, colors.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
|
|
126
|
+
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
|
|
127
|
+
];
|
|
128
|
+
const textShadows = [
|
|
129
|
+
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
130
|
+
const v = theme.textShadow?.[s || "DEFAULT"];
|
|
131
|
+
if (v != null) {
|
|
132
|
+
return {
|
|
133
|
+
"--un-text-shadow": colors.colorableShadows(v, "--un-text-shadow-color").join(","),
|
|
134
|
+
"text-shadow": "var(--un-text-shadow)"
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
return { "text-shadow": colors.h.bracket.cssvar.global(s) };
|
|
138
|
+
}, { autocomplete: "text-shadow-$textShadow" }],
|
|
139
|
+
[/^text-shadow-color-(.+)$/, colors.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
|
|
140
|
+
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
|
|
141
|
+
];
|
|
142
|
+
|
|
38
143
|
const directions = {
|
|
39
144
|
"": "",
|
|
40
145
|
"x": "column-",
|
|
@@ -44,7 +149,6 @@ function handleGap([, d = "", s], { theme }) {
|
|
|
44
149
|
const v = theme.spacing?.[s] ?? colors.h.bracket.cssvar.global.rem(s);
|
|
45
150
|
if (v != null) {
|
|
46
151
|
return {
|
|
47
|
-
[`grid-${directions[d]}gap`]: v,
|
|
48
152
|
[`${directions[d]}gap`]: v
|
|
49
153
|
};
|
|
50
154
|
}
|
|
@@ -264,13 +368,13 @@ const rules = [
|
|
|
264
368
|
transform.borders,
|
|
265
369
|
transform.contentVisibility,
|
|
266
370
|
transform.contents,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
371
|
+
fonts,
|
|
372
|
+
tabSizes,
|
|
373
|
+
textIndents,
|
|
270
374
|
transform.textOverflows,
|
|
271
375
|
transform.textDecorations,
|
|
272
|
-
|
|
273
|
-
|
|
376
|
+
textStrokes,
|
|
377
|
+
textShadows,
|
|
274
378
|
transform.textTransforms,
|
|
275
379
|
transform.textAligns,
|
|
276
380
|
transform.textColors,
|
|
@@ -318,6 +422,7 @@ exports.containerParent = containerParent;
|
|
|
318
422
|
exports.cssProperty = cssProperty;
|
|
319
423
|
exports.cssVariables = cssVariables;
|
|
320
424
|
exports.flex = flex;
|
|
425
|
+
exports.fonts = fonts;
|
|
321
426
|
exports.gaps = gaps;
|
|
322
427
|
exports.grids = grids;
|
|
323
428
|
exports.margins = margins;
|
|
@@ -326,3 +431,7 @@ exports.questionMark = questionMark;
|
|
|
326
431
|
exports.rules = rules;
|
|
327
432
|
exports.sizes = sizes;
|
|
328
433
|
exports.svgUtilities = svgUtilities;
|
|
434
|
+
exports.tabSizes = tabSizes;
|
|
435
|
+
exports.textIndents = textIndents;
|
|
436
|
+
exports.textShadows = textShadows;
|
|
437
|
+
exports.textStrokes = textStrokes;
|
|
@@ -770,4 +770,4 @@ function parseCssSpaceColorValues(componentString) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, cornerMap as b, colorResolver as c, directionMap as d, colorToString as e, colorOpacityToString as f, globalKeywords as g, h,
|
|
773
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, cornerMap as b, colorResolver as c, directionMap as d, colorToString as e, colorOpacityToString as f, globalKeywords as g, h, insetMap as i, colorableShadows as j, positionMap as k, resolveBreakpoints as l, makeGlobalStaticRules as m, numberWithUnitRE as n, directionSize as o, parseColor$1 as p, getBracket as q, resolveVerticalBreakpoints as r, splitShorthand as s, getComponent as t, hex2rgba as u, parseCssColor as v, handler as w, xyzMap as x, valueHandlers as y, getComponents as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.a21c5071.cjs');
|
|
4
|
-
|
|
4
|
+
require('@unocss/core');
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
7
7
|
"mid": "middle",
|
|
@@ -229,117 +229,6 @@ const transitions = [
|
|
|
229
229
|
...colors.makeGlobalStaticRules("transition")
|
|
230
230
|
];
|
|
231
231
|
|
|
232
|
-
const weightMap = {
|
|
233
|
-
thin: "100",
|
|
234
|
-
extralight: "200",
|
|
235
|
-
light: "300",
|
|
236
|
-
normal: "400",
|
|
237
|
-
medium: "500",
|
|
238
|
-
semibold: "600",
|
|
239
|
-
bold: "700",
|
|
240
|
-
extrabold: "800",
|
|
241
|
-
black: "900"
|
|
242
|
-
};
|
|
243
|
-
function handleLineHeight(s, theme) {
|
|
244
|
-
return theme.lineHeight?.[s] || colors.h.bracket.cssvar.global.rem(s);
|
|
245
|
-
}
|
|
246
|
-
const fonts = [
|
|
247
|
-
[
|
|
248
|
-
/^text-(.+)$/,
|
|
249
|
-
([, s = "base"], { theme }) => {
|
|
250
|
-
const [size, leading] = colors.splitShorthand(s, "length");
|
|
251
|
-
const sizePairs = core.toArray(theme.fontSize?.[size]);
|
|
252
|
-
const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
|
|
253
|
-
if (sizePairs?.[0]) {
|
|
254
|
-
const [fontSize2, height] = sizePairs;
|
|
255
|
-
return {
|
|
256
|
-
"font-size": fontSize2,
|
|
257
|
-
"line-height": lineHeight ?? height ?? "1"
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
const fontSize = colors.h.bracketOfLength.rem(size);
|
|
261
|
-
if (lineHeight && fontSize) {
|
|
262
|
-
return {
|
|
263
|
-
"font-size": fontSize,
|
|
264
|
-
"line-height": lineHeight
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
return { "font-size": colors.h.bracketOfLength.rem(s) };
|
|
268
|
-
},
|
|
269
|
-
{ autocomplete: "text-$fontSize" }
|
|
270
|
-
],
|
|
271
|
-
[/^text-size-(.+)$/, ([, s], { theme }) => {
|
|
272
|
-
const themed = core.toArray(theme.fontSize?.[s]);
|
|
273
|
-
const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
|
|
274
|
-
if (size != null)
|
|
275
|
-
return { "font-size": size };
|
|
276
|
-
}, { autocomplete: "text-size-$fontSize" }],
|
|
277
|
-
[
|
|
278
|
-
/^(?:font|fw)-?([^-]+)$/,
|
|
279
|
-
([, s]) => ({ "font-weight": weightMap[s] || colors.h.bracket.global.number(s) }),
|
|
280
|
-
{ autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
|
|
281
|
-
],
|
|
282
|
-
[
|
|
283
|
-
/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
|
|
284
|
-
([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
|
|
285
|
-
{ autocomplete: "(leading|lh|line-height)-$lineHeight" }
|
|
286
|
-
],
|
|
287
|
-
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
288
|
-
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
289
|
-
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
290
|
-
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
291
|
-
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": colors.h.bracket.cssvar.global(s) })],
|
|
292
|
-
[
|
|
293
|
-
/^(?:font-)?tracking-(.+)$/,
|
|
294
|
-
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
|
|
295
|
-
{ autocomplete: "tracking-$letterSpacing" }
|
|
296
|
-
],
|
|
297
|
-
[
|
|
298
|
-
/^(?:font-)?word-spacing-(.+)$/,
|
|
299
|
-
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
|
|
300
|
-
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
301
|
-
],
|
|
302
|
-
[
|
|
303
|
-
/^font-(.+)$/,
|
|
304
|
-
([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || colors.h.bracket.cssvar.global(d) }),
|
|
305
|
-
{ autocomplete: "font-$fontFamily" }
|
|
306
|
-
]
|
|
307
|
-
];
|
|
308
|
-
const tabSizes = [
|
|
309
|
-
[/^tab(?:-(.+))?$/, ([, s]) => {
|
|
310
|
-
const v = colors.h.bracket.cssvar.global.number(s || "4");
|
|
311
|
-
if (v != null) {
|
|
312
|
-
return {
|
|
313
|
-
"-moz-tab-size": v,
|
|
314
|
-
"-o-tab-size": v,
|
|
315
|
-
"tab-size": v
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
}]
|
|
319
|
-
];
|
|
320
|
-
const textIndents = [
|
|
321
|
-
[/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || colors.h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
|
|
322
|
-
];
|
|
323
|
-
const textStrokes = [
|
|
324
|
-
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || colors.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
|
|
325
|
-
[/^text-stroke-(.+)$/, colors.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
|
|
326
|
-
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
|
|
327
|
-
];
|
|
328
|
-
const textShadows = [
|
|
329
|
-
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
330
|
-
const v = theme.textShadow?.[s || "DEFAULT"];
|
|
331
|
-
if (v != null) {
|
|
332
|
-
return {
|
|
333
|
-
"--un-text-shadow": colors.colorableShadows(v, "--un-text-shadow-color").join(","),
|
|
334
|
-
"text-shadow": "var(--un-text-shadow)"
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
return { "text-shadow": colors.h.bracket.cssvar.global(s) };
|
|
338
|
-
}, { autocomplete: "text-shadow-$textShadow" }],
|
|
339
|
-
[/^text-shadow-color-(.+)$/, colors.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
|
|
340
|
-
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
|
|
341
|
-
];
|
|
342
|
-
|
|
343
232
|
const overflowValues = [
|
|
344
233
|
"auto",
|
|
345
234
|
"hidden",
|
|
@@ -805,7 +694,6 @@ exports.flexGridJustifiesAlignments = flexGridJustifiesAlignments;
|
|
|
805
694
|
exports.floats = floats;
|
|
806
695
|
exports.fontSmoothings = fontSmoothings;
|
|
807
696
|
exports.fontStyles = fontStyles;
|
|
808
|
-
exports.fonts = fonts;
|
|
809
697
|
exports.handlerBorderStyle = handlerBorderStyle;
|
|
810
698
|
exports.insets = insets;
|
|
811
699
|
exports.justifies = justifies;
|
|
@@ -819,14 +707,10 @@ exports.positions = positions;
|
|
|
819
707
|
exports.resizes = resizes;
|
|
820
708
|
exports.ringBase = ringBase;
|
|
821
709
|
exports.rings = rings;
|
|
822
|
-
exports.tabSizes = tabSizes;
|
|
823
710
|
exports.textAligns = textAligns;
|
|
824
711
|
exports.textColors = textColors;
|
|
825
712
|
exports.textDecorations = textDecorations;
|
|
826
|
-
exports.textIndents = textIndents;
|
|
827
713
|
exports.textOverflows = textOverflows;
|
|
828
|
-
exports.textShadows = textShadows;
|
|
829
|
-
exports.textStrokes = textStrokes;
|
|
830
714
|
exports.textTransforms = textTransforms;
|
|
831
715
|
exports.textWraps = textWraps;
|
|
832
716
|
exports.transformBase = transformBase;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalKeywords, h, 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,
|
|
2
|
-
import
|
|
1
|
+
import { g as globalKeywords, h, 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, i as insetMap, j as colorableShadows, k as positionMap, x as xyzMap } from './preset-mini.6c1c8016.mjs';
|
|
2
|
+
import '@unocss/core';
|
|
3
3
|
|
|
4
4
|
const verticalAlignAlias = {
|
|
5
5
|
"mid": "middle",
|
|
@@ -227,117 +227,6 @@ const transitions = [
|
|
|
227
227
|
...makeGlobalStaticRules("transition")
|
|
228
228
|
];
|
|
229
229
|
|
|
230
|
-
const weightMap = {
|
|
231
|
-
thin: "100",
|
|
232
|
-
extralight: "200",
|
|
233
|
-
light: "300",
|
|
234
|
-
normal: "400",
|
|
235
|
-
medium: "500",
|
|
236
|
-
semibold: "600",
|
|
237
|
-
bold: "700",
|
|
238
|
-
extrabold: "800",
|
|
239
|
-
black: "900"
|
|
240
|
-
};
|
|
241
|
-
function handleLineHeight(s, theme) {
|
|
242
|
-
return theme.lineHeight?.[s] || h.bracket.cssvar.global.rem(s);
|
|
243
|
-
}
|
|
244
|
-
const fonts = [
|
|
245
|
-
[
|
|
246
|
-
/^text-(.+)$/,
|
|
247
|
-
([, s = "base"], { theme }) => {
|
|
248
|
-
const [size, leading] = splitShorthand(s, "length");
|
|
249
|
-
const sizePairs = toArray(theme.fontSize?.[size]);
|
|
250
|
-
const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
|
|
251
|
-
if (sizePairs?.[0]) {
|
|
252
|
-
const [fontSize2, height] = sizePairs;
|
|
253
|
-
return {
|
|
254
|
-
"font-size": fontSize2,
|
|
255
|
-
"line-height": lineHeight ?? height ?? "1"
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
const fontSize = h.bracketOfLength.rem(size);
|
|
259
|
-
if (lineHeight && fontSize) {
|
|
260
|
-
return {
|
|
261
|
-
"font-size": fontSize,
|
|
262
|
-
"line-height": lineHeight
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
return { "font-size": h.bracketOfLength.rem(s) };
|
|
266
|
-
},
|
|
267
|
-
{ autocomplete: "text-$fontSize" }
|
|
268
|
-
],
|
|
269
|
-
[/^text-size-(.+)$/, ([, s], { theme }) => {
|
|
270
|
-
const themed = toArray(theme.fontSize?.[s]);
|
|
271
|
-
const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
|
|
272
|
-
if (size != null)
|
|
273
|
-
return { "font-size": size };
|
|
274
|
-
}, { autocomplete: "text-size-$fontSize" }],
|
|
275
|
-
[
|
|
276
|
-
/^(?:font|fw)-?([^-]+)$/,
|
|
277
|
-
([, s]) => ({ "font-weight": weightMap[s] || h.bracket.global.number(s) }),
|
|
278
|
-
{ autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
|
|
279
|
-
],
|
|
280
|
-
[
|
|
281
|
-
/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
|
|
282
|
-
([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
|
|
283
|
-
{ autocomplete: "(leading|lh|line-height)-$lineHeight" }
|
|
284
|
-
],
|
|
285
|
-
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
286
|
-
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
287
|
-
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
288
|
-
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
289
|
-
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": h.bracket.cssvar.global(s) })],
|
|
290
|
-
[
|
|
291
|
-
/^(?:font-)?tracking-(.+)$/,
|
|
292
|
-
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
|
|
293
|
-
{ autocomplete: "tracking-$letterSpacing" }
|
|
294
|
-
],
|
|
295
|
-
[
|
|
296
|
-
/^(?:font-)?word-spacing-(.+)$/,
|
|
297
|
-
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
|
|
298
|
-
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
299
|
-
],
|
|
300
|
-
[
|
|
301
|
-
/^font-(.+)$/,
|
|
302
|
-
([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || h.bracket.cssvar.global(d) }),
|
|
303
|
-
{ autocomplete: "font-$fontFamily" }
|
|
304
|
-
]
|
|
305
|
-
];
|
|
306
|
-
const tabSizes = [
|
|
307
|
-
[/^tab(?:-(.+))?$/, ([, s]) => {
|
|
308
|
-
const v = h.bracket.cssvar.global.number(s || "4");
|
|
309
|
-
if (v != null) {
|
|
310
|
-
return {
|
|
311
|
-
"-moz-tab-size": v,
|
|
312
|
-
"-o-tab-size": v,
|
|
313
|
-
"tab-size": v
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
}]
|
|
317
|
-
];
|
|
318
|
-
const textIndents = [
|
|
319
|
-
[/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
|
|
320
|
-
];
|
|
321
|
-
const textStrokes = [
|
|
322
|
-
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
|
|
323
|
-
[/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
|
|
324
|
-
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
|
|
325
|
-
];
|
|
326
|
-
const textShadows = [
|
|
327
|
-
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
328
|
-
const v = theme.textShadow?.[s || "DEFAULT"];
|
|
329
|
-
if (v != null) {
|
|
330
|
-
return {
|
|
331
|
-
"--un-text-shadow": colorableShadows(v, "--un-text-shadow-color").join(","),
|
|
332
|
-
"text-shadow": "var(--un-text-shadow)"
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
return { "text-shadow": h.bracket.cssvar.global(s) };
|
|
336
|
-
}, { autocomplete: "text-shadow-$textShadow" }],
|
|
337
|
-
[/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
|
|
338
|
-
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
|
|
339
|
-
];
|
|
340
|
-
|
|
341
230
|
const overflowValues = [
|
|
342
231
|
"auto",
|
|
343
232
|
"hidden",
|
|
@@ -783,4 +672,4 @@ function handleSkew([, d, b]) {
|
|
|
783
672
|
}
|
|
784
673
|
}
|
|
785
674
|
|
|
786
|
-
export {
|
|
675
|
+
export { outline as A, appearance as B, orders as C, justifies as D, alignments as E, placements as F, flexGridJustifiesAlignments as G, insets as H, floats as I, zIndexes as J, boxSizing as K, transitions as L, transforms as M, willChange as N, contains as O, textWraps as P, transformBase as Q, boxShadowsBase as R, ringBase as S, borderStyles as T, handlerBorderStyle as U, varEmpty as V, borders as a, bgColors as b, colorScheme as c, displays as d, contentVisibility as e, contents as f, textDecorations as g, textTransforms as h, textAligns as i, textColors as j, fontStyles as k, fontSmoothings as l, boxShadows as m, cursors as n, opacity as o, positions as p, appearances as q, rings as r, pointerEvents as s, textOverflows as t, resizes as u, verticalAligns as v, userSelects as w, whitespaces as x, breaks as y, overflows as z };
|
|
@@ -182,6 +182,21 @@ const variantDataAttribute = {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
+
const variantGroupDataAttribute = {
|
|
186
|
+
name: "group-data",
|
|
187
|
+
match(matcher, ctx) {
|
|
188
|
+
const variant = variants$1.variantGetParameter("group-data-", matcher, ctx.generator.config.separators);
|
|
189
|
+
if (variant) {
|
|
190
|
+
const [match, rest] = variant;
|
|
191
|
+
const dataAttribute = colors.h.bracket(match) ?? ctx.theme.data?.[match] ?? "";
|
|
192
|
+
if (dataAttribute) {
|
|
193
|
+
return {
|
|
194
|
+
matcher: `group-[[data-${dataAttribute}]]:${rest}`
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
185
200
|
|
|
186
201
|
const variantLanguageDirections = [
|
|
187
202
|
variants$1.variantMatcher("rtl", (input) => ({ prefix: `[dir="rtl"] $$ ${input.prefix}` })),
|
|
@@ -683,7 +698,8 @@ function variants(options) {
|
|
|
683
698
|
...variantLanguageDirections,
|
|
684
699
|
variantScope,
|
|
685
700
|
variantContainerQuery,
|
|
686
|
-
variantVariables
|
|
701
|
+
variantVariables,
|
|
702
|
+
variantGroupDataAttribute
|
|
687
703
|
];
|
|
688
704
|
}
|
|
689
705
|
|
|
@@ -696,6 +712,7 @@ exports.variantContainerQuery = variantContainerQuery;
|
|
|
696
712
|
exports.variantCssLayer = variantCssLayer;
|
|
697
713
|
exports.variantCustomMedia = variantCustomMedia;
|
|
698
714
|
exports.variantDataAttribute = variantDataAttribute;
|
|
715
|
+
exports.variantGroupDataAttribute = variantGroupDataAttribute;
|
|
699
716
|
exports.variantImportant = variantImportant;
|
|
700
717
|
exports.variantInternalLayer = variantInternalLayer;
|
|
701
718
|
exports.variantLanguageDirections = variantLanguageDirections;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.f3fc54d2.cjs');
|
|
4
|
-
const transform = require('./preset-mini.
|
|
4
|
+
const transform = require('./preset-mini.78d4899a.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
require('./preset-mini.a21c5071.cjs');
|
|
7
7
|
|
|
@@ -97,6 +97,17 @@ const letterSpacing = {
|
|
|
97
97
|
wider: "0.05em",
|
|
98
98
|
widest: "0.1em"
|
|
99
99
|
};
|
|
100
|
+
const fontWeight = {
|
|
101
|
+
thin: "100",
|
|
102
|
+
extralight: "200",
|
|
103
|
+
light: "300",
|
|
104
|
+
normal: "400",
|
|
105
|
+
medium: "500",
|
|
106
|
+
semibold: "600",
|
|
107
|
+
bold: "700",
|
|
108
|
+
extrabold: "800",
|
|
109
|
+
black: "900"
|
|
110
|
+
};
|
|
100
111
|
const wordSpacing = letterSpacing;
|
|
101
112
|
|
|
102
113
|
const breakpoints = {
|
|
@@ -250,6 +261,7 @@ const theme = {
|
|
|
250
261
|
colors: colors.colors,
|
|
251
262
|
fontFamily,
|
|
252
263
|
fontSize,
|
|
264
|
+
fontWeight,
|
|
253
265
|
breakpoints,
|
|
254
266
|
verticalBreakpoints,
|
|
255
267
|
borderRadius,
|
|
@@ -282,6 +294,7 @@ exports.duration = duration;
|
|
|
282
294
|
exports.easing = easing;
|
|
283
295
|
exports.fontFamily = fontFamily;
|
|
284
296
|
exports.fontSize = fontSize;
|
|
297
|
+
exports.fontWeight = fontWeight;
|
|
285
298
|
exports.height = height;
|
|
286
299
|
exports.letterSpacing = letterSpacing;
|
|
287
300
|
exports.lineHeight = lineHeight;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as colors } from './preset-mini.1c66bf79.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { Q as transformBase, R as boxShadowsBase, S as ringBase } from './preset-mini.830250eb.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './preset-mini.
|
|
4
|
+
import './preset-mini.6c1c8016.mjs';
|
|
5
5
|
|
|
6
6
|
const fontFamily = {
|
|
7
7
|
sans: [
|
|
@@ -95,6 +95,17 @@ const letterSpacing = {
|
|
|
95
95
|
wider: "0.05em",
|
|
96
96
|
widest: "0.1em"
|
|
97
97
|
};
|
|
98
|
+
const fontWeight = {
|
|
99
|
+
thin: "100",
|
|
100
|
+
extralight: "200",
|
|
101
|
+
light: "300",
|
|
102
|
+
normal: "400",
|
|
103
|
+
medium: "500",
|
|
104
|
+
semibold: "600",
|
|
105
|
+
bold: "700",
|
|
106
|
+
extrabold: "800",
|
|
107
|
+
black: "900"
|
|
108
|
+
};
|
|
98
109
|
const wordSpacing = letterSpacing;
|
|
99
110
|
|
|
100
111
|
const breakpoints = {
|
|
@@ -248,6 +259,7 @@ const theme = {
|
|
|
248
259
|
colors,
|
|
249
260
|
fontFamily,
|
|
250
261
|
fontSize,
|
|
262
|
+
fontWeight,
|
|
251
263
|
breakpoints,
|
|
252
264
|
verticalBreakpoints,
|
|
253
265
|
borderRadius,
|
|
@@ -269,4 +281,4 @@ const theme = {
|
|
|
269
281
|
containers
|
|
270
282
|
};
|
|
271
283
|
|
|
272
|
-
export {
|
|
284
|
+
export { maxHeight as A, containers as B, fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, fontWeight as i, breakpoints as j, lineWidth as k, lineHeight as l, duration as m, borderRadius as n, boxShadow as o, easing as p, preflightBase as q, ringWidth as r, spacing as s, theme as t, baseSize as u, verticalBreakpoints as v, wordSpacing as w, width as x, maxWidth as y, height 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.f3fc54d2.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.b22ca5de.cjs');
|
|
7
|
+
require('./shared/preset-mini.78d4899a.cjs');
|
|
8
8
|
require('./shared/preset-mini.a21c5071.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
|
@@ -22,6 +22,7 @@ exports.duration = _default.duration;
|
|
|
22
22
|
exports.easing = _default.easing;
|
|
23
23
|
exports.fontFamily = _default.fontFamily;
|
|
24
24
|
exports.fontSize = _default.fontSize;
|
|
25
|
+
exports.fontWeight = _default.fontWeight;
|
|
25
26
|
exports.height = _default.height;
|
|
26
27
|
exports.letterSpacing = _default.letterSpacing;
|
|
27
28
|
exports.lineHeight = _default.lineHeight;
|
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-dabdd21f.js';
|
|
2
|
+
export { t as theme } from './default-1f25a0ae.js';
|
|
3
|
+
import { T as Theme } from './types-d991ba46.js';
|
|
4
|
+
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-d991ba46.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
|
@@ -56,6 +56,17 @@ declare const letterSpacing: {
|
|
|
56
56
|
wider: string;
|
|
57
57
|
widest: string;
|
|
58
58
|
};
|
|
59
|
+
declare const fontWeight: {
|
|
60
|
+
thin: string;
|
|
61
|
+
extralight: string;
|
|
62
|
+
light: string;
|
|
63
|
+
normal: string;
|
|
64
|
+
medium: string;
|
|
65
|
+
semibold: string;
|
|
66
|
+
bold: string;
|
|
67
|
+
extrabold: string;
|
|
68
|
+
black: string;
|
|
69
|
+
};
|
|
59
70
|
declare const wordSpacing: {
|
|
60
71
|
tighter: string;
|
|
61
72
|
tight: string;
|
|
@@ -250,4 +261,4 @@ declare const containers: {
|
|
|
250
261
|
[k: string]: string;
|
|
251
262
|
};
|
|
252
263
|
|
|
253
|
-
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 };
|
|
264
|
+
export { baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, 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.1c66bf79.mjs';
|
|
2
|
-
export {
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
2
|
+
export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, B as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, z as height, h as letterSpacing, l as lineHeight, k as lineWidth, A as maxHeight, y as maxWidth, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing } from './shared/preset-mini.e7d18afd.mjs';
|
|
3
|
+
import './shared/preset-mini.830250eb.mjs';
|
|
4
|
+
import './shared/preset-mini.6c1c8016.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -31,6 +31,7 @@ interface Theme {
|
|
|
31
31
|
colors?: Colors;
|
|
32
32
|
fontFamily?: Record<string, string>;
|
|
33
33
|
fontSize?: Record<string, string | [string, string]>;
|
|
34
|
+
fontWeight?: Record<string, string>;
|
|
34
35
|
lineHeight?: Record<string, string>;
|
|
35
36
|
letterSpacing?: Record<string, string>;
|
|
36
37
|
wordSpacing?: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-d991ba46.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-d496540e.js';
|
|
4
|
+
import './types-d991ba46.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString,
|
|
2
|
-
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, j as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, t as getComponent, z as getComponents, g as globalKeywords, h, w as handler, a as hasParseableColor, u as hex2rgba, i as insetMap, m as makeGlobalStaticRules, p as parseColor, v as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, s as splitShorthand, y as valueHandlers, x as xyzMap } from './shared/preset-mini.6c1c8016.mjs';
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.74f9d55e.mjs';
|
|
3
3
|
import '@unocss/core';
|
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.9d93761b.cjs');
|
|
6
6
|
require('./shared/preset-mini.a21c5071.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
require('./shared/preset-mini.d778b487.cjs');
|
|
@@ -18,6 +18,7 @@ exports.variantContainerQuery = _default.variantContainerQuery;
|
|
|
18
18
|
exports.variantCssLayer = _default.variantCssLayer;
|
|
19
19
|
exports.variantCustomMedia = _default.variantCustomMedia;
|
|
20
20
|
exports.variantDataAttribute = _default.variantDataAttribute;
|
|
21
|
+
exports.variantGroupDataAttribute = _default.variantGroupDataAttribute;
|
|
21
22
|
exports.variantImportant = _default.variantImportant;
|
|
22
23
|
exports.variantInternalLayer = _default.variantInternalLayer;
|
|
23
24
|
exports.variantLanguageDirections = _default.variantLanguageDirections;
|
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-d991ba46.js';
|
|
4
|
+
import './colors-dabdd21f.js';
|
|
5
|
+
import './default-1f25a0ae.js';
|
|
6
|
+
import './utilities-d496540e.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
@@ -17,6 +17,7 @@ declare const variantContainerQuery: VariantObject;
|
|
|
17
17
|
declare function variantColorsMediaOrClass(options?: PresetMiniOptions): Variant[];
|
|
18
18
|
|
|
19
19
|
declare const variantDataAttribute: VariantObject;
|
|
20
|
+
declare const variantGroupDataAttribute: Variant;
|
|
20
21
|
|
|
21
22
|
declare function variants(options: PresetMiniOptions): Variant<Theme>[];
|
|
22
23
|
|
|
@@ -42,4 +43,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
42
43
|
|
|
43
44
|
declare const variantSupports: VariantObject;
|
|
44
45
|
|
|
45
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
|
46
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantGroupDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery,
|
|
2
|
-
import './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, n as variantCssLayer, l as variantCustomMedia, g as variantDataAttribute, h as variantGroupDataAttribute, j as variantImportant, o as variantInternalLayer, i as variantLanguageDirections, r as variantNegative, w as variantPartClasses, k as variantPrint, t as variantPseudoClassFunctions, s as variantPseudoClassesAndElements, p as variantScope, m as variantSelector, x as variantSupports, u as variantTaggedPseudoClasses, q as variantVariables, v as variants } from './shared/preset-mini.0131b915.mjs';
|
|
2
|
+
import './shared/preset-mini.6c1c8016.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.74f9d55e.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
65
|
-
"@unocss/extractor-arbitrary-variants": "0.
|
|
64
|
+
"@unocss/core": "0.54.0",
|
|
65
|
+
"@unocss/extractor-arbitrary-variants": "0.54.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "unbuild",
|