@unocss/preset-uno 0.12.2 → 0.12.7
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/{chunk-D3O3OLB6.js → chunk-7O4GGKN3.js} +1 -211
- package/dist/{chunk-F5VW77AU.mjs → chunk-D35XCCQO.mjs} +1194 -1087
- package/dist/chunk-JDNCYLAD.js +234 -0
- package/dist/{chunk-URBMB274.mjs → chunk-KDBQV2WO.mjs} +22 -12
- package/dist/{chunk-ZUP75OYP.mjs → chunk-P5HELYQA.mjs} +1 -211
- package/dist/chunk-P5IQIS5F.mjs +234 -0
- package/dist/{chunk-PIBKKHAP.js → chunk-QSG3YZHA.js} +1262 -1155
- package/dist/{chunk-TOS4ZSIW.mjs → chunk-RMDOQ4VS.mjs} +73 -71
- package/dist/{chunk-SCNDCSE5.js → chunk-VRFK5755.js} +23 -13
- package/dist/{chunk-5WWOD4UI.js → chunk-XTJ2PYTE.js} +74 -72
- package/dist/{colors-5537fdf0.d.ts → colors-d6b5a5b4.d.ts} +1 -1
- package/dist/colors.d.ts +2 -0
- package/dist/colors.js +7 -0
- package/dist/colors.mjs +7 -0
- package/dist/default-c7c67d23.d.ts +5 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +12 -10
- package/dist/index.mjs +7 -5
- package/dist/rules.d.ts +156 -2
- package/dist/rules.js +219 -3
- package/dist/rules.mjs +220 -4
- package/dist/theme.d.ts +162 -2
- package/dist/theme.js +40 -2
- package/dist/theme.mjs +42 -4
- package/dist/{index-9dcba0ca.d.ts → types-7963d0b3.d.ts} +1 -2
- package/dist/utils.d.ts +56 -0
- package/dist/utils.js +37 -0
- package/dist/utils.mjs +37 -0
- package/dist/variants.d.ts +8 -7
- package/dist/variants.js +3 -3
- package/dist/variants.mjs +2 -2
- package/package.json +22 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
variantMatcher
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KDBQV2WO.mjs";
|
|
4
4
|
|
|
5
5
|
// src/variants/breakpoints.ts
|
|
6
6
|
var regexCache = {};
|
|
@@ -35,6 +35,74 @@ var variantChildren = [
|
|
|
35
35
|
variantMatcher("next", (input) => `${input}+*`)
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
+
// src/variants/dark.ts
|
|
39
|
+
var variantColorsClass = [
|
|
40
|
+
variantMatcher("dark", (input) => `.dark $$ ${input}`),
|
|
41
|
+
variantMatcher("light", (input) => `.light $$ ${input}`)
|
|
42
|
+
];
|
|
43
|
+
var variantColorsMedia = [
|
|
44
|
+
(v) => {
|
|
45
|
+
const dark = variantMatcher("dark")(v);
|
|
46
|
+
if (dark) {
|
|
47
|
+
return {
|
|
48
|
+
...dark,
|
|
49
|
+
parent: "@media (prefers-color-scheme: dark)"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const light = variantMatcher("light")(v);
|
|
53
|
+
if (light) {
|
|
54
|
+
return {
|
|
55
|
+
...light,
|
|
56
|
+
parent: "@media (prefers-color-scheme: light)"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
// src/variants/misc.ts
|
|
63
|
+
var variantImportant = {
|
|
64
|
+
match(matcher) {
|
|
65
|
+
if (matcher.startsWith("!")) {
|
|
66
|
+
return {
|
|
67
|
+
matcher: matcher.slice(1),
|
|
68
|
+
body: (body) => {
|
|
69
|
+
body.forEach((v) => {
|
|
70
|
+
if (v[1])
|
|
71
|
+
v[1] += " !important";
|
|
72
|
+
});
|
|
73
|
+
return body;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var variantNegative = {
|
|
80
|
+
match(matcher) {
|
|
81
|
+
if (matcher.startsWith("-")) {
|
|
82
|
+
return {
|
|
83
|
+
matcher: matcher.slice(1),
|
|
84
|
+
body: (body) => {
|
|
85
|
+
body.forEach((v) => {
|
|
86
|
+
var _a;
|
|
87
|
+
v[1] = (_a = v[1]) == null ? void 0 : _a.toString().replace(/[0-9.]+(?:[a-z]+|%)?/, (i) => `-${i}`);
|
|
88
|
+
});
|
|
89
|
+
return body;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
var variantSpace = (matcher) => {
|
|
96
|
+
if (/^space-?([xy])-?(-?.+)$/.test(matcher) || /^divide-/.test(matcher)) {
|
|
97
|
+
return {
|
|
98
|
+
matcher,
|
|
99
|
+
selector: (input) => {
|
|
100
|
+
return `${input}>:not([hidden])~:not([hidden])`;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
38
106
|
// src/variants/pseudo.ts
|
|
39
107
|
import { toArray } from "@unocss/core";
|
|
40
108
|
var PseudoClasses = Object.fromEntries([
|
|
@@ -121,73 +189,7 @@ var variantPseudoClasses = {
|
|
|
121
189
|
multiPass: true
|
|
122
190
|
};
|
|
123
191
|
|
|
124
|
-
// src/variants/
|
|
125
|
-
var variantColorsClass = [
|
|
126
|
-
variantMatcher("dark", (input) => `.dark $$ ${input}`),
|
|
127
|
-
variantMatcher("light", (input) => `.light $$ ${input}`)
|
|
128
|
-
];
|
|
129
|
-
var variantColorsMedia = [
|
|
130
|
-
(v) => {
|
|
131
|
-
const dark = variantMatcher("dark")(v);
|
|
132
|
-
if (dark) {
|
|
133
|
-
return {
|
|
134
|
-
...dark,
|
|
135
|
-
parent: "@media (prefers-color-scheme: dark)"
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
const light = variantMatcher("light")(v);
|
|
139
|
-
if (light) {
|
|
140
|
-
return {
|
|
141
|
-
...light,
|
|
142
|
-
parent: "@media (prefers-color-scheme: light)"
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
];
|
|
147
|
-
|
|
148
|
-
// src/variants/index.ts
|
|
149
|
-
var variantImportant = {
|
|
150
|
-
match(matcher) {
|
|
151
|
-
if (matcher.startsWith("!")) {
|
|
152
|
-
return {
|
|
153
|
-
matcher: matcher.slice(1),
|
|
154
|
-
body: (body) => {
|
|
155
|
-
body.forEach((v) => {
|
|
156
|
-
if (v[1])
|
|
157
|
-
v[1] += " !important";
|
|
158
|
-
});
|
|
159
|
-
return body;
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
var variantNegative = {
|
|
166
|
-
match(matcher) {
|
|
167
|
-
if (matcher.startsWith("-")) {
|
|
168
|
-
return {
|
|
169
|
-
matcher: matcher.slice(1),
|
|
170
|
-
body: (body) => {
|
|
171
|
-
body.forEach((v) => {
|
|
172
|
-
var _a;
|
|
173
|
-
v[1] = (_a = v[1]) == null ? void 0 : _a.toString().replace(/[0-9.]+(?:[a-z]+|%)?/, (i) => `-${i}`);
|
|
174
|
-
});
|
|
175
|
-
return body;
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var variantSpace = (matcher) => {
|
|
182
|
-
if (/^space-?([xy])-?(-?.+)$/.test(matcher) || /^divide-/.test(matcher)) {
|
|
183
|
-
return {
|
|
184
|
-
matcher,
|
|
185
|
-
selector: (input) => {
|
|
186
|
-
return `${input}>:not([hidden])~:not([hidden])`;
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
};
|
|
192
|
+
// src/variants/default.ts
|
|
191
193
|
var variants = [
|
|
192
194
|
variantSpace,
|
|
193
195
|
variantNegative,
|
|
@@ -201,13 +203,13 @@ var variants = [
|
|
|
201
203
|
export {
|
|
202
204
|
variantBreakpoints,
|
|
203
205
|
variantChildren,
|
|
204
|
-
PseudoClasses,
|
|
205
|
-
variantPseudoElements,
|
|
206
|
-
variantPseudoClasses,
|
|
207
206
|
variantColorsClass,
|
|
208
207
|
variantColorsMedia,
|
|
209
208
|
variantImportant,
|
|
210
209
|
variantNegative,
|
|
211
210
|
variantSpace,
|
|
211
|
+
PseudoClasses,
|
|
212
|
+
variantPseudoElements,
|
|
213
|
+
variantPseudoClasses,
|
|
212
214
|
variants
|
|
213
215
|
};
|
|
@@ -2,18 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkY6EUTGDCjs = require('./chunk-Y6EUTGDC.js');
|
|
4
4
|
|
|
5
|
-
// src/utils/variants.ts
|
|
6
|
-
var variantMatcher = (name, selector) => {
|
|
7
|
-
const length = name.length + 1;
|
|
8
|
-
const re = new RegExp(`^${name}[:-]`);
|
|
9
|
-
return (input) => {
|
|
10
|
-
return input.match(re) ? {
|
|
11
|
-
matcher: input.slice(length),
|
|
12
|
-
selector
|
|
13
|
-
} : void 0;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
|
|
17
5
|
// src/utils/mappings.ts
|
|
18
6
|
var directionMap = {
|
|
19
7
|
"l": ["-left"],
|
|
@@ -160,6 +148,18 @@ handlersNames.forEach((i) => {
|
|
|
160
148
|
});
|
|
161
149
|
});
|
|
162
150
|
|
|
151
|
+
// src/utils/variants.ts
|
|
152
|
+
var variantMatcher = (name, selector) => {
|
|
153
|
+
const length = name.length + 1;
|
|
154
|
+
const re = new RegExp(`^${name}[:-]`);
|
|
155
|
+
return (input) => {
|
|
156
|
+
return input.match(re) ? {
|
|
157
|
+
matcher: input.slice(length),
|
|
158
|
+
selector
|
|
159
|
+
} : void 0;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
|
|
163
163
|
// src/utils/index.ts
|
|
164
164
|
function capitalize(str) {
|
|
165
165
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -172,4 +172,14 @@ function capitalize(str) {
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
exports.directionMap = directionMap; exports.cornerMap = cornerMap; exports.xyzMap = xyzMap; exports.rem = rem; exports.px = px; exports.number = number; exports.percent = percent; exports.fraction = fraction; exports.bracket = bracket; exports.cssvar = cssvar; exports.time = time; exports.global = global; exports.handlersNames = handlersNames; exports.handler = handler; exports.variantMatcher = variantMatcher; exports.capitalize = capitalize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVRFK5755js = require('./chunk-VRFK5755.js');
|
|
4
4
|
|
|
5
5
|
// src/variants/breakpoints.ts
|
|
6
6
|
var regexCache = {};
|
|
@@ -30,11 +30,79 @@ var variantBreakpoints = (matcher, _, theme) => {
|
|
|
30
30
|
|
|
31
31
|
// src/variants/children.ts
|
|
32
32
|
var variantChildren = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
_chunkVRFK5755js.variantMatcher.call(void 0, "children", (input) => `${input} > *`),
|
|
34
|
+
_chunkVRFK5755js.variantMatcher.call(void 0, "all", (input) => `${input} *`),
|
|
35
|
+
_chunkVRFK5755js.variantMatcher.call(void 0, "next", (input) => `${input}+*`)
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
+
// src/variants/dark.ts
|
|
39
|
+
var variantColorsClass = [
|
|
40
|
+
_chunkVRFK5755js.variantMatcher.call(void 0, "dark", (input) => `.dark $$ ${input}`),
|
|
41
|
+
_chunkVRFK5755js.variantMatcher.call(void 0, "light", (input) => `.light $$ ${input}`)
|
|
42
|
+
];
|
|
43
|
+
var variantColorsMedia = [
|
|
44
|
+
(v) => {
|
|
45
|
+
const dark = _chunkVRFK5755js.variantMatcher.call(void 0, "dark")(v);
|
|
46
|
+
if (dark) {
|
|
47
|
+
return {
|
|
48
|
+
...dark,
|
|
49
|
+
parent: "@media (prefers-color-scheme: dark)"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const light = _chunkVRFK5755js.variantMatcher.call(void 0, "light")(v);
|
|
53
|
+
if (light) {
|
|
54
|
+
return {
|
|
55
|
+
...light,
|
|
56
|
+
parent: "@media (prefers-color-scheme: light)"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
// src/variants/misc.ts
|
|
63
|
+
var variantImportant = {
|
|
64
|
+
match(matcher) {
|
|
65
|
+
if (matcher.startsWith("!")) {
|
|
66
|
+
return {
|
|
67
|
+
matcher: matcher.slice(1),
|
|
68
|
+
body: (body) => {
|
|
69
|
+
body.forEach((v) => {
|
|
70
|
+
if (v[1])
|
|
71
|
+
v[1] += " !important";
|
|
72
|
+
});
|
|
73
|
+
return body;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var variantNegative = {
|
|
80
|
+
match(matcher) {
|
|
81
|
+
if (matcher.startsWith("-")) {
|
|
82
|
+
return {
|
|
83
|
+
matcher: matcher.slice(1),
|
|
84
|
+
body: (body) => {
|
|
85
|
+
body.forEach((v) => {
|
|
86
|
+
var _a;
|
|
87
|
+
v[1] = (_a = v[1]) == null ? void 0 : _a.toString().replace(/[0-9.]+(?:[a-z]+|%)?/, (i) => `-${i}`);
|
|
88
|
+
});
|
|
89
|
+
return body;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
var variantSpace = (matcher) => {
|
|
96
|
+
if (/^space-?([xy])-?(-?.+)$/.test(matcher) || /^divide-/.test(matcher)) {
|
|
97
|
+
return {
|
|
98
|
+
matcher,
|
|
99
|
+
selector: (input) => {
|
|
100
|
+
return `${input}>:not([hidden])~:not([hidden])`;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
38
106
|
// src/variants/pseudo.ts
|
|
39
107
|
var _core = require('@unocss/core');
|
|
40
108
|
var PseudoClasses = Object.fromEntries([
|
|
@@ -121,73 +189,7 @@ var variantPseudoClasses = {
|
|
|
121
189
|
multiPass: true
|
|
122
190
|
};
|
|
123
191
|
|
|
124
|
-
// src/variants/
|
|
125
|
-
var variantColorsClass = [
|
|
126
|
-
_chunkSCNDCSE5js.variantMatcher.call(void 0, "dark", (input) => `.dark $$ ${input}`),
|
|
127
|
-
_chunkSCNDCSE5js.variantMatcher.call(void 0, "light", (input) => `.light $$ ${input}`)
|
|
128
|
-
];
|
|
129
|
-
var variantColorsMedia = [
|
|
130
|
-
(v) => {
|
|
131
|
-
const dark = _chunkSCNDCSE5js.variantMatcher.call(void 0, "dark")(v);
|
|
132
|
-
if (dark) {
|
|
133
|
-
return {
|
|
134
|
-
...dark,
|
|
135
|
-
parent: "@media (prefers-color-scheme: dark)"
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
const light = _chunkSCNDCSE5js.variantMatcher.call(void 0, "light")(v);
|
|
139
|
-
if (light) {
|
|
140
|
-
return {
|
|
141
|
-
...light,
|
|
142
|
-
parent: "@media (prefers-color-scheme: light)"
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
];
|
|
147
|
-
|
|
148
|
-
// src/variants/index.ts
|
|
149
|
-
var variantImportant = {
|
|
150
|
-
match(matcher) {
|
|
151
|
-
if (matcher.startsWith("!")) {
|
|
152
|
-
return {
|
|
153
|
-
matcher: matcher.slice(1),
|
|
154
|
-
body: (body) => {
|
|
155
|
-
body.forEach((v) => {
|
|
156
|
-
if (v[1])
|
|
157
|
-
v[1] += " !important";
|
|
158
|
-
});
|
|
159
|
-
return body;
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
var variantNegative = {
|
|
166
|
-
match(matcher) {
|
|
167
|
-
if (matcher.startsWith("-")) {
|
|
168
|
-
return {
|
|
169
|
-
matcher: matcher.slice(1),
|
|
170
|
-
body: (body) => {
|
|
171
|
-
body.forEach((v) => {
|
|
172
|
-
var _a;
|
|
173
|
-
v[1] = (_a = v[1]) == null ? void 0 : _a.toString().replace(/[0-9.]+(?:[a-z]+|%)?/, (i) => `-${i}`);
|
|
174
|
-
});
|
|
175
|
-
return body;
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var variantSpace = (matcher) => {
|
|
182
|
-
if (/^space-?([xy])-?(-?.+)$/.test(matcher) || /^divide-/.test(matcher)) {
|
|
183
|
-
return {
|
|
184
|
-
matcher,
|
|
185
|
-
selector: (input) => {
|
|
186
|
-
return `${input}>:not([hidden])~:not([hidden])`;
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
};
|
|
192
|
+
// src/variants/default.ts
|
|
191
193
|
var variants = [
|
|
192
194
|
variantSpace,
|
|
193
195
|
variantNegative,
|
|
@@ -210,4 +212,4 @@ var variants = [
|
|
|
210
212
|
|
|
211
213
|
|
|
212
214
|
|
|
213
|
-
exports.variantBreakpoints = variantBreakpoints; exports.variantChildren = variantChildren; exports.
|
|
215
|
+
exports.variantBreakpoints = variantBreakpoints; exports.variantChildren = variantChildren; exports.variantColorsClass = variantColorsClass; exports.variantColorsMedia = variantColorsMedia; exports.variantImportant = variantImportant; exports.variantNegative = variantNegative; exports.variantSpace = variantSpace; exports.PseudoClasses = PseudoClasses; exports.variantPseudoElements = variantPseudoElements; exports.variantPseudoClasses = variantPseudoClasses; exports.variants = variants;
|
package/dist/colors.d.ts
ADDED
package/dist/colors.js
ADDED
package/dist/colors.mjs
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Preset } from '@unocss/core';
|
|
2
|
-
|
|
3
|
-
export { t as theme } from './
|
|
4
|
-
|
|
2
|
+
export { c as colors } from './colors-d6b5a5b4';
|
|
3
|
+
export { t as theme } from './default-c7c67d23';
|
|
4
|
+
import { T as Theme } from './types-7963d0b3';
|
|
5
|
+
export { T as Theme } from './types-7963d0b3';
|
|
5
6
|
|
|
6
7
|
interface UnoOptions {
|
|
7
8
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQSG3YZHAjs = require('./chunk-QSG3YZHA.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkJDNCYLADjs = require('./chunk-JDNCYLAD.js');
|
|
7
8
|
|
|
8
|
-
var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
|
|
9
9
|
|
|
10
|
+
var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
require('./chunk-
|
|
14
|
+
|
|
15
|
+
var _chunkXTJ2PYTEjs = require('./chunk-XTJ2PYTE.js');
|
|
16
|
+
require('./chunk-VRFK5755.js');
|
|
15
17
|
require('./chunk-Y6EUTGDC.js');
|
|
16
18
|
|
|
17
19
|
// src/index.ts
|
|
18
20
|
var preset = (options = {}) => ({
|
|
19
21
|
name: "@unocss/preset-uno",
|
|
20
|
-
theme:
|
|
21
|
-
rules:
|
|
22
|
+
theme: _chunkJDNCYLADjs.theme,
|
|
23
|
+
rules: _chunkQSG3YZHAjs.rules,
|
|
22
24
|
variants: [
|
|
23
|
-
...
|
|
24
|
-
...options.dark === "media" ?
|
|
25
|
+
..._chunkXTJ2PYTEjs.variants,
|
|
26
|
+
...options.dark === "media" ? _chunkXTJ2PYTEjs.variantColorsMedia : _chunkXTJ2PYTEjs.variantColorsClass
|
|
25
27
|
],
|
|
26
28
|
shortcuts: [
|
|
27
|
-
...
|
|
29
|
+
..._chunkQSG3YZHAjs.containerShortcuts
|
|
28
30
|
]
|
|
29
31
|
});
|
|
30
32
|
var src_default = preset;
|
|
@@ -33,4 +35,4 @@ var src_default = preset;
|
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
|
|
36
|
-
exports.colors =
|
|
38
|
+
exports.colors = _chunk7O4GGKN3js.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkJDNCYLADjs.theme;
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
containerShortcuts,
|
|
3
3
|
rules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D35XCCQO.mjs";
|
|
5
5
|
import {
|
|
6
|
-
colors,
|
|
7
6
|
theme
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P5IQIS5F.mjs";
|
|
8
|
+
import {
|
|
9
|
+
colors
|
|
10
|
+
} from "./chunk-P5HELYQA.mjs";
|
|
9
11
|
import {
|
|
10
12
|
variantColorsClass,
|
|
11
13
|
variantColorsMedia,
|
|
12
14
|
variants
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RMDOQ4VS.mjs";
|
|
16
|
+
import "./chunk-KDBQV2WO.mjs";
|
|
15
17
|
import "./chunk-5SH5BFJ4.mjs";
|
|
16
18
|
|
|
17
19
|
// src/index.ts
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,5 +1,159 @@
|
|
|
1
|
-
import { Rule } from '@unocss/core';
|
|
1
|
+
import { Rule, RuleContext, Shortcut } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './types-7963d0b3';
|
|
3
|
+
|
|
4
|
+
declare const verticalAligns: Rule[];
|
|
5
|
+
declare const textAligns: Rule[];
|
|
6
|
+
|
|
7
|
+
declare const animations: Rule[];
|
|
8
|
+
|
|
9
|
+
declare const bgAttachments: Rule[];
|
|
10
|
+
declare const bgBlendModes: Rule[];
|
|
11
|
+
declare const bgClips: Rule[];
|
|
12
|
+
declare const bgGradients: Rule[];
|
|
13
|
+
declare const bgImages: Rule[];
|
|
14
|
+
declare const bgOrigins: Rule[];
|
|
15
|
+
declare const bgPositions: Rule[];
|
|
16
|
+
declare const bgRepeats: Rule[];
|
|
17
|
+
declare const bgSizes: Rule[];
|
|
18
|
+
|
|
19
|
+
declare const outline: Rule[];
|
|
20
|
+
declare const listStyle: Rule[];
|
|
21
|
+
declare const boxDecorationBreaks: Rule[];
|
|
22
|
+
declare const caretOpacity: Rule[];
|
|
23
|
+
declare const caretColors: Rule[];
|
|
24
|
+
declare const imageRenderings: Rule[];
|
|
25
|
+
declare const appearance: Rule[];
|
|
26
|
+
declare const placeholder: Rule[];
|
|
27
|
+
declare const overscrolls: Rule[];
|
|
28
|
+
|
|
29
|
+
declare const borderSizes: Rule[];
|
|
30
|
+
declare const borderRadius: Rule[];
|
|
31
|
+
declare const borderStyles: Rule[];
|
|
32
|
+
declare const borders: Rule<{}>[];
|
|
33
|
+
|
|
34
|
+
declare const parseColorUtil: (body: string, theme: Theme) => {
|
|
35
|
+
opacity: string;
|
|
36
|
+
name: string;
|
|
37
|
+
no: string;
|
|
38
|
+
color: string | undefined;
|
|
39
|
+
rgba: [number, number, number, number] | [number, number, number] | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
declare const colorResolver: (attribute: string, varName: string) => ([, body]: string[], { theme }: RuleContext<Theme>) => {
|
|
42
|
+
[x: string]: string | number;
|
|
43
|
+
} | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* @example op10 op-30 opacity-100
|
|
46
|
+
*/
|
|
47
|
+
declare const opacity: Rule[];
|
|
48
|
+
/**
|
|
49
|
+
* @example c-red color-red5 text-red-300
|
|
50
|
+
*/
|
|
51
|
+
declare const textColors: Rule[];
|
|
52
|
+
declare const textDecorationColors: Rule[];
|
|
53
|
+
declare const textStrokeColors: Rule[];
|
|
54
|
+
declare const bgColors: Rule[];
|
|
55
|
+
declare const borderColors: Rule[];
|
|
56
|
+
declare const ringColors: Rule[];
|
|
57
|
+
declare const ringOffsetColors: Rule[];
|
|
58
|
+
declare const divideColors: Rule[];
|
|
59
|
+
declare const fillColors: Rule[];
|
|
60
|
+
|
|
61
|
+
declare const container: Rule<Theme>[];
|
|
62
|
+
declare const containerShortcuts: Shortcut<Theme>[];
|
|
2
63
|
|
|
3
64
|
declare const rules: Rule[];
|
|
4
65
|
|
|
5
|
-
|
|
66
|
+
declare const divideSizes: Rule[];
|
|
67
|
+
declare const divideStyles: Rule[];
|
|
68
|
+
declare const divides: Rule<{}>[];
|
|
69
|
+
|
|
70
|
+
declare const filters: Rule<Theme>[];
|
|
71
|
+
|
|
72
|
+
declare const flex: Rule[];
|
|
73
|
+
|
|
74
|
+
declare const gaps: Rule[];
|
|
75
|
+
|
|
76
|
+
declare const grids: Rule[];
|
|
77
|
+
|
|
78
|
+
declare const overflows: Rule[];
|
|
79
|
+
|
|
80
|
+
declare const lineClamps: Rule[];
|
|
81
|
+
|
|
82
|
+
declare const positions: Rule[];
|
|
83
|
+
declare const justifies: Rule[];
|
|
84
|
+
declare const orders: Rule[];
|
|
85
|
+
declare const justifyItems: Rule[];
|
|
86
|
+
declare const justifySelfs: Rule[];
|
|
87
|
+
declare const alignContents: Rule[];
|
|
88
|
+
declare const alignItems: Rule[];
|
|
89
|
+
declare const alignSelfs: Rule[];
|
|
90
|
+
declare const placeContents: Rule[];
|
|
91
|
+
declare const placeItems: Rule[];
|
|
92
|
+
declare const placeSelfs: Rule[];
|
|
93
|
+
declare const insets: Rule[];
|
|
94
|
+
declare const floats: Rule[];
|
|
95
|
+
declare const zIndexes: Rule[];
|
|
96
|
+
declare const objectPositions: Rule[];
|
|
97
|
+
declare const boxSizing: Rule[];
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Used for debugging, only avaliable in development mode.
|
|
101
|
+
*
|
|
102
|
+
* @example `?` / `where`
|
|
103
|
+
*/
|
|
104
|
+
declare const questionMark: Rule[];
|
|
105
|
+
|
|
106
|
+
declare const rings: Rule<Theme>[];
|
|
107
|
+
|
|
108
|
+
declare const mixBlendModes: Rule[];
|
|
109
|
+
declare const boxShadows: Rule<Theme>[];
|
|
110
|
+
|
|
111
|
+
declare const sizes: Rule<Theme>[];
|
|
112
|
+
declare const aspectRatio: Rule[];
|
|
113
|
+
|
|
114
|
+
declare const paddings: Rule[];
|
|
115
|
+
declare const margins: Rule[];
|
|
116
|
+
|
|
117
|
+
declare const displays: Rule[];
|
|
118
|
+
declare const appearances: Rule[];
|
|
119
|
+
declare const cursors: Rule[];
|
|
120
|
+
declare const pointerEvents: Rule[];
|
|
121
|
+
declare const resizes: Rule[];
|
|
122
|
+
declare const userSelects: Rule[];
|
|
123
|
+
declare const whitespaces: Rule[];
|
|
124
|
+
declare const breaks: Rule[];
|
|
125
|
+
declare const textOverflows: Rule[];
|
|
126
|
+
declare const textTransforms: Rule[];
|
|
127
|
+
declare const textDecorations: Rule[];
|
|
128
|
+
declare const textDecorationStyles: Rule[];
|
|
129
|
+
declare const fontStyles: Rule[];
|
|
130
|
+
declare const fontSmoothings: Rule[];
|
|
131
|
+
declare const hyphens: Rule[];
|
|
132
|
+
declare const writingModes: Rule[];
|
|
133
|
+
declare const writingOrientations: Rule[];
|
|
134
|
+
declare const screenReadersAccess: Rule[];
|
|
135
|
+
declare const isolations: Rule[];
|
|
136
|
+
|
|
137
|
+
declare const tables: Rule[];
|
|
138
|
+
|
|
139
|
+
declare const transforms: Rule[];
|
|
140
|
+
|
|
141
|
+
declare const transitions: Rule[];
|
|
142
|
+
|
|
143
|
+
declare const fontsFamilies: Rule<Theme>[];
|
|
144
|
+
declare const fontSizes: Rule<Theme>[];
|
|
145
|
+
declare const fontWeights: Rule[];
|
|
146
|
+
declare const leadings: Rule<Theme>[];
|
|
147
|
+
declare const trackings: Rule<Theme>[];
|
|
148
|
+
declare const wordSpacings: Rule<Theme>[];
|
|
149
|
+
declare const tabSizes: Rule<Theme>[];
|
|
150
|
+
declare const textDecorationLengths: Rule<Theme>[];
|
|
151
|
+
declare const textDecorationOffsets: Rule<Theme>[];
|
|
152
|
+
declare const textIndents: Rule<Theme>[];
|
|
153
|
+
declare const textStrokeWidths: Rule<Theme>[];
|
|
154
|
+
declare const textShadows: Rule<Theme>[];
|
|
155
|
+
declare const fonts: Rule<Theme>[];
|
|
156
|
+
|
|
157
|
+
declare const cssVariables: Rule[];
|
|
158
|
+
|
|
159
|
+
export { alignContents, alignItems, alignSelfs, animations, appearance, appearances, aspectRatio, bgAttachments, bgBlendModes, bgClips, bgColors, bgGradients, bgImages, bgOrigins, bgPositions, bgRepeats, bgSizes, borderColors, borderRadius, borderSizes, borderStyles, borders, boxDecorationBreaks, boxShadows, boxSizing, breaks, caretColors, caretOpacity, colorResolver, container, containerShortcuts, cssVariables, cursors, displays, divideColors, divideSizes, divideStyles, divides, fillColors, filters, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, hyphens, imageRenderings, insets, isolations, justifies, justifyItems, justifySelfs, leadings, lineClamps, listStyle, margins, mixBlendModes, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, screenReadersAccess, sizes, tabSizes, tables, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, verticalAligns, whitespaces, wordSpacings, writingModes, writingOrientations, zIndexes };
|