@unocss/preset-mini 0.17.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/default2.cjs +128 -142
- package/dist/chunks/default2.mjs +130 -141
- package/dist/chunks/default3.cjs +40 -22
- package/dist/chunks/default3.mjs +41 -22
- package/dist/chunks/pseudo.cjs +54 -32
- package/dist/chunks/pseudo.mjs +54 -33
- package/dist/{colors-d6b5a5b4.d.ts → colors-6d634692.d.ts} +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/{default-c7c67d23.d.ts → default-958434b6.d.ts} +1 -1
- package/dist/index.cjs +12 -10
- package/dist/index.d.ts +14 -6
- package/dist/index.mjs +13 -11
- package/dist/rules.cjs +1 -4
- package/dist/rules.d.ts +3 -6
- package/dist/rules.mjs +1 -1
- package/dist/theme.d.ts +4 -4
- package/dist/{types-7963d0b3.d.ts → types-a2d2b52f.d.ts} +8 -1
- package/dist/utils.d.ts +1 -1
- package/dist/variants.cjs +3 -3
- package/dist/variants.d.ts +5 -5
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
package/dist/chunks/pseudo.cjs
CHANGED
|
@@ -40,19 +40,46 @@ const PseudoClasses = Object.fromEntries([
|
|
|
40
40
|
"only-of-type"
|
|
41
41
|
].map(core.toArray));
|
|
42
42
|
const PseudoElements = [
|
|
43
|
+
"placeholder",
|
|
43
44
|
"before",
|
|
44
45
|
"after",
|
|
45
46
|
"first-letter",
|
|
46
47
|
"first-line",
|
|
47
48
|
"selection"
|
|
48
49
|
];
|
|
50
|
+
const PseudoClassFunctions = [
|
|
51
|
+
"not",
|
|
52
|
+
"is",
|
|
53
|
+
"where",
|
|
54
|
+
"has"
|
|
55
|
+
];
|
|
49
56
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
50
57
|
const PseudoElementsRE = new RegExp(`^(${PseudoElements.join("|")})[:-]`);
|
|
51
58
|
const PseudoClassesStr = Object.keys(PseudoClasses).join("|");
|
|
59
|
+
const PseudoClassFunctionsStr = PseudoClassFunctions.join("|");
|
|
52
60
|
const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
|
|
62
|
+
function shouldAdd(entires) {
|
|
63
|
+
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
64
|
+
}
|
|
65
|
+
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
66
|
+
const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
67
|
+
const rawRe = new RegExp(`^${core.escapeRegExp(parent)}:`);
|
|
68
|
+
return (input) => {
|
|
69
|
+
const match = input.match(re);
|
|
70
|
+
if (match) {
|
|
71
|
+
let pseudo = PseudoClasses[match[3]] || match[3];
|
|
72
|
+
if (match[2])
|
|
73
|
+
pseudo = `${match[2]}(:${pseudo})`;
|
|
74
|
+
return {
|
|
75
|
+
matcher: input.slice(match[1].length + tag.length + 2),
|
|
76
|
+
selector: (s, body) => {
|
|
77
|
+
return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}:${pseudo}:`) : `${parent}:${pseudo}${combinator}${s}`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
};
|
|
56
83
|
const variantPseudoElements = (input) => {
|
|
57
84
|
const match = input.match(PseudoElementsRE);
|
|
58
85
|
if (match) {
|
|
@@ -62,12 +89,9 @@ const variantPseudoElements = (input) => {
|
|
|
62
89
|
};
|
|
63
90
|
}
|
|
64
91
|
};
|
|
65
|
-
function shouldAdd(entires) {
|
|
66
|
-
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
67
|
-
}
|
|
68
92
|
const variantPseudoClasses = {
|
|
69
93
|
match: (input) => {
|
|
70
|
-
|
|
94
|
+
const match = input.match(PseudoClassesRE);
|
|
71
95
|
if (match) {
|
|
72
96
|
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
73
97
|
return {
|
|
@@ -75,37 +99,34 @@ const variantPseudoClasses = {
|
|
|
75
99
|
selector: (s, body) => shouldAdd(body) && `${s}:${pseudo}`
|
|
76
100
|
};
|
|
77
101
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
match = input.match(PseudoClassesGroupRE);
|
|
87
|
-
if (match) {
|
|
88
|
-
let pseudo = PseudoClasses[match[3]] || match[3];
|
|
89
|
-
if (match[2])
|
|
90
|
-
pseudo = `not(:${pseudo})`;
|
|
91
|
-
return {
|
|
92
|
-
matcher: input.slice(match[1].length + 7),
|
|
93
|
-
selector: (s, body) => shouldAdd(body) && s.includes(".group:") ? s.replace(/\.group:/, `.group:${pseudo}:`) : `.group:${pseudo} ${s}`
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
match = input.match(PseudoClassesPeerRE);
|
|
102
|
+
},
|
|
103
|
+
multiPass: true
|
|
104
|
+
};
|
|
105
|
+
const variantPseudoClassFunctions = {
|
|
106
|
+
match: (input) => {
|
|
107
|
+
const match = input.match(PseudoClassFunctionsRE);
|
|
97
108
|
if (match) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
pseudo = `not(:${pseudo})`;
|
|
109
|
+
const fn = match[1];
|
|
110
|
+
const pseudo = PseudoClasses[match[2]] || match[2];
|
|
101
111
|
return {
|
|
102
|
-
matcher: input.slice(match[1].length +
|
|
103
|
-
selector: (s, body) => shouldAdd(body) && s
|
|
112
|
+
matcher: input.slice(match[1].length + match[2].length + 2),
|
|
113
|
+
selector: (s, body) => shouldAdd(body) && `${s}:${fn}(:${pseudo})`
|
|
104
114
|
};
|
|
105
115
|
}
|
|
106
116
|
},
|
|
107
117
|
multiPass: true
|
|
108
118
|
};
|
|
119
|
+
const variantTaggedPseudoClasses = {
|
|
120
|
+
match: (input, { options: { attributifyPseudo } }) => {
|
|
121
|
+
const g = taggedPseudoClassMatcher("group", attributifyPseudo ? '[group=""]' : ".group", " ")(input);
|
|
122
|
+
if (g)
|
|
123
|
+
return g;
|
|
124
|
+
const p = taggedPseudoClassMatcher("peer", attributifyPseudo ? '[peer=""]' : ".peer", "~")(input);
|
|
125
|
+
if (p)
|
|
126
|
+
return p;
|
|
127
|
+
},
|
|
128
|
+
multiPass: true
|
|
129
|
+
};
|
|
109
130
|
const partClasses = {
|
|
110
131
|
match: (input) => {
|
|
111
132
|
const match = input.match(PartClassesRE);
|
|
@@ -123,7 +144,8 @@ const partClasses = {
|
|
|
123
144
|
};
|
|
124
145
|
|
|
125
146
|
exports.CONTROL_BYPASS_PSEUDO_CLASS = CONTROL_BYPASS_PSEUDO_CLASS;
|
|
126
|
-
exports.PseudoClasses = PseudoClasses;
|
|
127
147
|
exports.partClasses = partClasses;
|
|
148
|
+
exports.variantPseudoClassFunctions = variantPseudoClassFunctions;
|
|
128
149
|
exports.variantPseudoClasses = variantPseudoClasses;
|
|
129
150
|
exports.variantPseudoElements = variantPseudoElements;
|
|
151
|
+
exports.variantTaggedPseudoClasses = variantTaggedPseudoClasses;
|
package/dist/chunks/pseudo.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toArray } from '@unocss/core';
|
|
1
|
+
import { toArray, escapeRegExp } from '@unocss/core';
|
|
2
2
|
|
|
3
3
|
const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
4
4
|
const PseudoClasses = Object.fromEntries([
|
|
@@ -38,19 +38,46 @@ const PseudoClasses = Object.fromEntries([
|
|
|
38
38
|
"only-of-type"
|
|
39
39
|
].map(toArray));
|
|
40
40
|
const PseudoElements = [
|
|
41
|
+
"placeholder",
|
|
41
42
|
"before",
|
|
42
43
|
"after",
|
|
43
44
|
"first-letter",
|
|
44
45
|
"first-line",
|
|
45
46
|
"selection"
|
|
46
47
|
];
|
|
48
|
+
const PseudoClassFunctions = [
|
|
49
|
+
"not",
|
|
50
|
+
"is",
|
|
51
|
+
"where",
|
|
52
|
+
"has"
|
|
53
|
+
];
|
|
47
54
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
48
55
|
const PseudoElementsRE = new RegExp(`^(${PseudoElements.join("|")})[:-]`);
|
|
49
56
|
const PseudoClassesStr = Object.keys(PseudoClasses).join("|");
|
|
57
|
+
const PseudoClassFunctionsStr = PseudoClassFunctions.join("|");
|
|
50
58
|
const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
|
|
60
|
+
function shouldAdd(entires) {
|
|
61
|
+
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
62
|
+
}
|
|
63
|
+
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
64
|
+
const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
65
|
+
const rawRe = new RegExp(`^${escapeRegExp(parent)}:`);
|
|
66
|
+
return (input) => {
|
|
67
|
+
const match = input.match(re);
|
|
68
|
+
if (match) {
|
|
69
|
+
let pseudo = PseudoClasses[match[3]] || match[3];
|
|
70
|
+
if (match[2])
|
|
71
|
+
pseudo = `${match[2]}(:${pseudo})`;
|
|
72
|
+
return {
|
|
73
|
+
matcher: input.slice(match[1].length + tag.length + 2),
|
|
74
|
+
selector: (s, body) => {
|
|
75
|
+
return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}:${pseudo}:`) : `${parent}:${pseudo}${combinator}${s}`;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
54
81
|
const variantPseudoElements = (input) => {
|
|
55
82
|
const match = input.match(PseudoElementsRE);
|
|
56
83
|
if (match) {
|
|
@@ -60,12 +87,9 @@ const variantPseudoElements = (input) => {
|
|
|
60
87
|
};
|
|
61
88
|
}
|
|
62
89
|
};
|
|
63
|
-
function shouldAdd(entires) {
|
|
64
|
-
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
65
|
-
}
|
|
66
90
|
const variantPseudoClasses = {
|
|
67
91
|
match: (input) => {
|
|
68
|
-
|
|
92
|
+
const match = input.match(PseudoClassesRE);
|
|
69
93
|
if (match) {
|
|
70
94
|
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
71
95
|
return {
|
|
@@ -73,37 +97,34 @@ const variantPseudoClasses = {
|
|
|
73
97
|
selector: (s, body) => shouldAdd(body) && `${s}:${pseudo}`
|
|
74
98
|
};
|
|
75
99
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
match = input.match(PseudoClassesGroupRE);
|
|
85
|
-
if (match) {
|
|
86
|
-
let pseudo = PseudoClasses[match[3]] || match[3];
|
|
87
|
-
if (match[2])
|
|
88
|
-
pseudo = `not(:${pseudo})`;
|
|
89
|
-
return {
|
|
90
|
-
matcher: input.slice(match[1].length + 7),
|
|
91
|
-
selector: (s, body) => shouldAdd(body) && s.includes(".group:") ? s.replace(/\.group:/, `.group:${pseudo}:`) : `.group:${pseudo} ${s}`
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
match = input.match(PseudoClassesPeerRE);
|
|
100
|
+
},
|
|
101
|
+
multiPass: true
|
|
102
|
+
};
|
|
103
|
+
const variantPseudoClassFunctions = {
|
|
104
|
+
match: (input) => {
|
|
105
|
+
const match = input.match(PseudoClassFunctionsRE);
|
|
95
106
|
if (match) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
pseudo = `not(:${pseudo})`;
|
|
107
|
+
const fn = match[1];
|
|
108
|
+
const pseudo = PseudoClasses[match[2]] || match[2];
|
|
99
109
|
return {
|
|
100
|
-
matcher: input.slice(match[1].length +
|
|
101
|
-
selector: (s, body) => shouldAdd(body) && s
|
|
110
|
+
matcher: input.slice(match[1].length + match[2].length + 2),
|
|
111
|
+
selector: (s, body) => shouldAdd(body) && `${s}:${fn}(:${pseudo})`
|
|
102
112
|
};
|
|
103
113
|
}
|
|
104
114
|
},
|
|
105
115
|
multiPass: true
|
|
106
116
|
};
|
|
117
|
+
const variantTaggedPseudoClasses = {
|
|
118
|
+
match: (input, { options: { attributifyPseudo } }) => {
|
|
119
|
+
const g = taggedPseudoClassMatcher("group", attributifyPseudo ? '[group=""]' : ".group", " ")(input);
|
|
120
|
+
if (g)
|
|
121
|
+
return g;
|
|
122
|
+
const p = taggedPseudoClassMatcher("peer", attributifyPseudo ? '[peer=""]' : ".peer", "~")(input);
|
|
123
|
+
if (p)
|
|
124
|
+
return p;
|
|
125
|
+
},
|
|
126
|
+
multiPass: true
|
|
127
|
+
};
|
|
107
128
|
const partClasses = {
|
|
108
129
|
match: (input) => {
|
|
109
130
|
const match = input.match(PartClassesRE);
|
|
@@ -120,4 +141,4 @@ const partClasses = {
|
|
|
120
141
|
multiPass: true
|
|
121
142
|
};
|
|
122
143
|
|
|
123
|
-
export { CONTROL_BYPASS_PSEUDO_CLASS as C,
|
|
144
|
+
export { CONTROL_BYPASS_PSEUDO_CLASS as C, variantPseudoClassFunctions as a, variantTaggedPseudoClasses as b, variantPseudoElements as c, partClasses as p, variantPseudoClasses as v };
|
package/dist/colors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
import './types-
|
|
1
|
+
export { c as colors } from './colors-6d634692';
|
|
2
|
+
import './types-a2d2b52f';
|
package/dist/index.cjs
CHANGED
|
@@ -11,16 +11,18 @@ require('@unocss/core');
|
|
|
11
11
|
require('./chunks/pseudo.cjs');
|
|
12
12
|
require('./chunks/variants.cjs');
|
|
13
13
|
|
|
14
|
-
const presetMini = (options = {}) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
const presetMini = (options = {}) => {
|
|
15
|
+
options.dark = options.dark ?? "class";
|
|
16
|
+
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
17
|
+
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
18
|
+
return {
|
|
19
|
+
name: "@unocss/preset-mini",
|
|
20
|
+
theme: _default.theme,
|
|
21
|
+
rules: _default$1.rules,
|
|
22
|
+
variants: _default$2.variants,
|
|
23
|
+
options
|
|
24
|
+
};
|
|
25
|
+
};
|
|
24
26
|
|
|
25
27
|
exports.theme = _default.theme;
|
|
26
28
|
exports.colors = colors.colors;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { Preset } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
3
|
-
export { T as Theme } from './types-
|
|
4
|
-
export { t as theme } from './default-
|
|
5
|
-
export { c as colors } from './colors-
|
|
1
|
+
import { PresetOptions, Preset } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './types-a2d2b52f';
|
|
3
|
+
export { T as Theme, a as ThemeAnimation } from './types-a2d2b52f';
|
|
4
|
+
export { t as theme } from './default-958434b6';
|
|
5
|
+
export { c as colors } from './colors-6d634692';
|
|
6
6
|
|
|
7
|
-
interface PresetMiniOptions {
|
|
7
|
+
interface PresetMiniOptions extends PresetOptions {
|
|
8
8
|
/**
|
|
9
9
|
* @default 'class'
|
|
10
10
|
*/
|
|
11
11
|
dark?: 'class' | 'media';
|
|
12
|
+
/**
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
attributifyPseudo?: Boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @default 'un-'
|
|
18
|
+
*/
|
|
19
|
+
variablePrefix?: string;
|
|
12
20
|
}
|
|
13
21
|
declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
|
|
14
22
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { t as theme } from './chunks/default.mjs';
|
|
2
2
|
export { t as theme } from './chunks/default.mjs';
|
|
3
3
|
import { r as rules } from './chunks/default2.mjs';
|
|
4
|
-
import { v as variants
|
|
4
|
+
import { v as variants } from './chunks/default3.mjs';
|
|
5
5
|
export { c as colors } from './chunks/colors.mjs';
|
|
6
6
|
import './chunks/utilities.mjs';
|
|
7
7
|
import '@unocss/core';
|
|
8
8
|
import './chunks/pseudo.mjs';
|
|
9
9
|
import './chunks/variants.mjs';
|
|
10
10
|
|
|
11
|
-
const presetMini = (options = {}) =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
const presetMini = (options = {}) => {
|
|
12
|
+
options.dark = options.dark ?? "class";
|
|
13
|
+
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
14
|
+
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
15
|
+
return {
|
|
16
|
+
name: "@unocss/preset-mini",
|
|
17
|
+
theme,
|
|
18
|
+
rules,
|
|
19
|
+
variants,
|
|
20
|
+
options
|
|
21
|
+
};
|
|
22
|
+
};
|
|
21
23
|
|
|
22
24
|
export { presetMini as default, presetMini };
|
package/dist/rules.cjs
CHANGED
|
@@ -14,7 +14,6 @@ exports.appearance = _default.appearance;
|
|
|
14
14
|
exports.appearances = _default.appearances;
|
|
15
15
|
exports.aspectRatio = _default.aspectRatio;
|
|
16
16
|
exports.bgColors = _default.bgColors;
|
|
17
|
-
exports.borderColors = _default.borderColors;
|
|
18
17
|
exports.borders = _default.borders;
|
|
19
18
|
exports.boxShadows = _default.boxShadows;
|
|
20
19
|
exports.boxSizing = _default.boxSizing;
|
|
@@ -38,14 +37,11 @@ exports.orders = _default.orders;
|
|
|
38
37
|
exports.outline = _default.outline;
|
|
39
38
|
exports.overflows = _default.overflows;
|
|
40
39
|
exports.paddings = _default.paddings;
|
|
41
|
-
exports.placeholder = _default.placeholder;
|
|
42
40
|
exports.placements = _default.placements;
|
|
43
41
|
exports.pointerEvents = _default.pointerEvents;
|
|
44
42
|
exports.positions = _default.positions;
|
|
45
43
|
exports.questionMark = _default.questionMark;
|
|
46
44
|
exports.resizes = _default.resizes;
|
|
47
|
-
exports.ringColors = _default.ringColors;
|
|
48
|
-
exports.ringOffsetColors = _default.ringOffsetColors;
|
|
49
45
|
exports.rings = _default.rings;
|
|
50
46
|
exports.rules = _default.rules;
|
|
51
47
|
exports.sizes = _default.sizes;
|
|
@@ -63,6 +59,7 @@ exports.transforms = _default.transforms;
|
|
|
63
59
|
exports.transitions = _default.transitions;
|
|
64
60
|
exports.userSelects = _default.userSelects;
|
|
65
61
|
exports.varEmpty = _default.varEmpty;
|
|
62
|
+
exports.varEmptyFn = _default.varEmptyFn;
|
|
66
63
|
exports.verticalAligns = _default.verticalAligns;
|
|
67
64
|
exports.whitespaces = _default.whitespaces;
|
|
68
65
|
exports.willChange = _default.willChange;
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Rule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-a2d2b52f';
|
|
3
3
|
|
|
4
4
|
declare const verticalAligns: Rule[];
|
|
5
5
|
declare const textAligns: Rule[];
|
|
6
6
|
|
|
7
7
|
declare const outline: Rule[];
|
|
8
8
|
declare const appearance: Rule[];
|
|
9
|
-
declare const placeholder: Rule[];
|
|
10
9
|
declare const willChange: Rule[];
|
|
11
10
|
|
|
12
11
|
declare const borders: Rule[];
|
|
@@ -20,9 +19,6 @@ declare const opacity: Rule[];
|
|
|
20
19
|
*/
|
|
21
20
|
declare const textColors: Rule[];
|
|
22
21
|
declare const bgColors: Rule[];
|
|
23
|
-
declare const borderColors: Rule[];
|
|
24
|
-
declare const ringColors: Rule[];
|
|
25
|
-
declare const ringOffsetColors: Rule[];
|
|
26
22
|
|
|
27
23
|
declare const rules: Rule[];
|
|
28
24
|
|
|
@@ -61,6 +57,7 @@ declare const aspectRatio: Rule[];
|
|
|
61
57
|
declare const paddings: Rule[];
|
|
62
58
|
declare const margins: Rule[];
|
|
63
59
|
|
|
60
|
+
declare const varEmptyFn: (prefix: string) => `var(--${string}empty,/*!*/ /*!*/)`;
|
|
64
61
|
declare const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
65
62
|
declare const displays: Rule[];
|
|
66
63
|
declare const appearances: Rule[];
|
|
@@ -92,4 +89,4 @@ declare const cssVariables: Rule[];
|
|
|
92
89
|
|
|
93
90
|
declare const textDecorations: Rule[];
|
|
94
91
|
|
|
95
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors,
|
|
92
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, varEmptyFn, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { l as alignments, a as appearance, H as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, O as breaks, N as contents, $ as cssVariables, I as cursors, G as displays, f as flex, q as floats, S as fontSmoothings, R as fontStyles, W as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, J as pointerEvents, p as positions, u as questionMark, K as resizes, x as rings, r as rules, A as sizes, T as svgUtilities, X as tabSizes, t as textAligns, d as textColors, a0 as textDecorations, Y as textIndents, P as textOverflows, _ as textShadows, Z as textStrokes, Q as textTransforms, U as transforms, V as transitions, L as userSelects, F as varEmpty, E as varEmptyFn, v as verticalAligns, M as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
import './chunks/utilities.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './chunks/pseudo.mjs';
|
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 } from './types-
|
|
1
|
+
export { c as colors } from './colors-6d634692';
|
|
2
|
+
export { t as theme } from './default-958434b6';
|
|
3
|
+
import { T as Theme } from './types-a2d2b52f';
|
|
4
|
+
export { T as Theme, a as ThemeAnimation } from './types-a2d2b52f';
|
|
5
5
|
|
|
6
6
|
declare const blur: {
|
|
7
7
|
DEFAULT: string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
interface ThemeAnimation {
|
|
2
|
+
keyframes?: Record<string, string>;
|
|
3
|
+
durations?: Record<string, string>;
|
|
4
|
+
timingFns?: Record<string, string>;
|
|
5
|
+
properties?: Record<string, object>;
|
|
6
|
+
}
|
|
1
7
|
interface Theme {
|
|
2
8
|
width?: Record<string, string>;
|
|
3
9
|
height?: Record<string, string>;
|
|
@@ -19,6 +25,7 @@ interface Theme {
|
|
|
19
25
|
textStrokeWidth?: Record<string, string>;
|
|
20
26
|
blur?: Record<string, string>;
|
|
21
27
|
dropShadow?: Record<string, string | string[]>;
|
|
28
|
+
animation?: ThemeAnimation;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
export { Theme as T };
|
|
31
|
+
export { Theme as T, ThemeAnimation as a };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { VariantHandler, DynamicMatcher, ParsedColorValue } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './types-
|
|
3
|
+
import { T as Theme } from './types-a2d2b52f';
|
|
4
4
|
|
|
5
5
|
declare const directionMap: Record<string, string[]>;
|
|
6
6
|
declare const cornerMap: Record<string, string[]>;
|
package/dist/variants.cjs
CHANGED
|
@@ -10,15 +10,15 @@ require('@unocss/core');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
13
|
-
exports.
|
|
14
|
-
exports.variantColorsMedia = _default.variantColorsMedia;
|
|
13
|
+
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
15
14
|
exports.variantCombinators = _default.variantCombinators;
|
|
16
15
|
exports.variantImportant = _default.variantImportant;
|
|
17
16
|
exports.variantNegative = _default.variantNegative;
|
|
18
17
|
exports.variantSpace = _default.variantSpace;
|
|
19
18
|
exports.variants = _default.variants;
|
|
20
19
|
exports.CONTROL_BYPASS_PSEUDO_CLASS = pseudo.CONTROL_BYPASS_PSEUDO_CLASS;
|
|
21
|
-
exports.PseudoClasses = pseudo.PseudoClasses;
|
|
22
20
|
exports.partClasses = pseudo.partClasses;
|
|
21
|
+
exports.variantPseudoClassFunctions = pseudo.variantPseudoClassFunctions;
|
|
23
22
|
exports.variantPseudoClasses = pseudo.variantPseudoClasses;
|
|
24
23
|
exports.variantPseudoElements = pseudo.variantPseudoElements;
|
|
24
|
+
exports.variantTaggedPseudoClasses = pseudo.variantTaggedPseudoClasses;
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Variant, VariantFunction, VariantObject } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-a2d2b52f';
|
|
3
3
|
|
|
4
4
|
declare const variantBreakpoints: Variant<Theme>;
|
|
5
5
|
|
|
6
6
|
declare const variantCombinators: Variant[];
|
|
7
7
|
|
|
8
|
-
declare const
|
|
9
|
-
declare const variantColorsMedia: Variant[];
|
|
8
|
+
declare const variantColorsMediaOrClass: Variant[];
|
|
10
9
|
|
|
11
10
|
declare const variants: Variant<Theme>[];
|
|
12
11
|
|
|
@@ -15,9 +14,10 @@ declare const variantNegative: Variant;
|
|
|
15
14
|
declare const variantSpace: Variant;
|
|
16
15
|
|
|
17
16
|
declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
18
|
-
declare const PseudoClasses: Record<string, string | undefined>;
|
|
19
17
|
declare const variantPseudoElements: VariantFunction;
|
|
20
18
|
declare const variantPseudoClasses: VariantObject;
|
|
19
|
+
declare const variantPseudoClassFunctions: VariantObject;
|
|
20
|
+
declare const variantTaggedPseudoClasses: VariantObject;
|
|
21
21
|
declare const partClasses: VariantObject;
|
|
22
22
|
|
|
23
|
-
export { CONTROL_BYPASS_PSEUDO_CLASS,
|
|
23
|
+
export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantNegative, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantSpace, variantTaggedPseudoClasses, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { C as CONTROL_BYPASS_PSEUDO_CLASS,
|
|
1
|
+
export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, d as variantImportant, e as variantNegative, f as variantSpace, v as variants } from './chunks/default3.mjs';
|
|
2
|
+
export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantPseudoClassFunctions, v as variantPseudoClasses, c as variantPseudoElements, b as variantTaggedPseudoClasses } from './chunks/pseudo.mjs';
|
|
3
3
|
import './chunks/variants.mjs';
|
|
4
4
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.19.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|