@unocss/preset-mini 0.50.6 → 0.50.8
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/README.md +2 -126
- package/dist/{colors-fdadc382.d.ts → colors-e683aa85.d.ts} +24 -0
- package/dist/colors.cjs +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.mjs +1 -1
- package/dist/{default-be74c37e.d.ts → default-d9218dd5.d.ts} +24 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +9 -9
- package/dist/rules.cjs +2 -2
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.fc0fd434.cjs → preset-mini.2c84a1da.cjs} +2 -2
- package/dist/shared/{preset-mini.2f75df7e.cjs → preset-mini.4b2d3970.cjs} +12 -8
- package/dist/shared/{preset-mini.305062ab.mjs → preset-mini.6c20780a.mjs} +8 -8
- package/dist/shared/{preset-mini.65ac75be.mjs → preset-mini.74b45c11.mjs} +48 -24
- package/dist/shared/{preset-mini.761cdd48.mjs → preset-mini.94514c53.mjs} +42 -39
- package/dist/shared/{preset-mini.ef35a101.cjs → preset-mini.a8322582.cjs} +73 -69
- package/dist/shared/{preset-mini.be40d10c.mjs → preset-mini.b53c93f8.mjs} +12 -8
- package/dist/shared/{preset-mini.9d7e4452.mjs → preset-mini.b68b942d.mjs} +73 -69
- package/dist/shared/{preset-mini.30606736.cjs → preset-mini.bb7dc365.cjs} +48 -24
- package/dist/shared/{preset-mini.4a5aade9.cjs → preset-mini.c4fc86b9.cjs} +8 -8
- package/dist/shared/{preset-mini.f9468448.mjs → preset-mini.d3cd9ef2.mjs} +2 -2
- package/dist/shared/{preset-mini.e96e6b4a.cjs → preset-mini.fea712fb.cjs} +42 -39
- package/dist/theme.cjs +3 -3
- package/dist/theme.d.ts +2 -2
- package/dist/theme.mjs +3 -3
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +2 -2
- package/dist/variants.d.ts +10 -10
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
|
@@ -16,7 +16,8 @@ const colors = {
|
|
|
16
16
|
600: "#e11d48",
|
|
17
17
|
700: "#be123c",
|
|
18
18
|
800: "#9f1239",
|
|
19
|
-
900: "#881337"
|
|
19
|
+
900: "#881337",
|
|
20
|
+
950: "#4c0519"
|
|
20
21
|
},
|
|
21
22
|
pink: {
|
|
22
23
|
50: "#fdf2f8",
|
|
@@ -28,7 +29,8 @@ const colors = {
|
|
|
28
29
|
600: "#db2777",
|
|
29
30
|
700: "#be185d",
|
|
30
31
|
800: "#9d174d",
|
|
31
|
-
900: "#831843"
|
|
32
|
+
900: "#831843",
|
|
33
|
+
950: "#500724"
|
|
32
34
|
},
|
|
33
35
|
fuchsia: {
|
|
34
36
|
50: "#fdf4ff",
|
|
@@ -40,7 +42,8 @@ const colors = {
|
|
|
40
42
|
600: "#c026d3",
|
|
41
43
|
700: "#a21caf",
|
|
42
44
|
800: "#86198f",
|
|
43
|
-
900: "#701a75"
|
|
45
|
+
900: "#701a75",
|
|
46
|
+
950: "#4a044e"
|
|
44
47
|
},
|
|
45
48
|
purple: {
|
|
46
49
|
50: "#faf5ff",
|
|
@@ -52,7 +55,8 @@ const colors = {
|
|
|
52
55
|
600: "#9333ea",
|
|
53
56
|
700: "#7e22ce",
|
|
54
57
|
800: "#6b21a8",
|
|
55
|
-
900: "#581c87"
|
|
58
|
+
900: "#581c87",
|
|
59
|
+
950: "#3b0764"
|
|
56
60
|
},
|
|
57
61
|
violet: {
|
|
58
62
|
50: "#f5f3ff",
|
|
@@ -64,7 +68,8 @@ const colors = {
|
|
|
64
68
|
600: "#7c3aed",
|
|
65
69
|
700: "#6d28d9",
|
|
66
70
|
800: "#5b21b6",
|
|
67
|
-
900: "#4c1d95"
|
|
71
|
+
900: "#4c1d95",
|
|
72
|
+
950: "#2e1065"
|
|
68
73
|
},
|
|
69
74
|
indigo: {
|
|
70
75
|
50: "#eef2ff",
|
|
@@ -76,7 +81,8 @@ const colors = {
|
|
|
76
81
|
600: "#4f46e5",
|
|
77
82
|
700: "#4338ca",
|
|
78
83
|
800: "#3730a3",
|
|
79
|
-
900: "#312e81"
|
|
84
|
+
900: "#312e81",
|
|
85
|
+
950: "#1e1b4b"
|
|
80
86
|
},
|
|
81
87
|
blue: {
|
|
82
88
|
50: "#eff6ff",
|
|
@@ -88,7 +94,8 @@ const colors = {
|
|
|
88
94
|
600: "#2563eb",
|
|
89
95
|
700: "#1d4ed8",
|
|
90
96
|
800: "#1e40af",
|
|
91
|
-
900: "#1e3a8a"
|
|
97
|
+
900: "#1e3a8a",
|
|
98
|
+
950: "#172554"
|
|
92
99
|
},
|
|
93
100
|
sky: {
|
|
94
101
|
50: "#f0f9ff",
|
|
@@ -100,7 +107,8 @@ const colors = {
|
|
|
100
107
|
600: "#0284c7",
|
|
101
108
|
700: "#0369a1",
|
|
102
109
|
800: "#075985",
|
|
103
|
-
900: "#0c4a6e"
|
|
110
|
+
900: "#0c4a6e",
|
|
111
|
+
950: "#082f49"
|
|
104
112
|
},
|
|
105
113
|
cyan: {
|
|
106
114
|
50: "#ecfeff",
|
|
@@ -112,7 +120,8 @@ const colors = {
|
|
|
112
120
|
600: "#0891b2",
|
|
113
121
|
700: "#0e7490",
|
|
114
122
|
800: "#155e75",
|
|
115
|
-
900: "#164e63"
|
|
123
|
+
900: "#164e63",
|
|
124
|
+
950: "#083344"
|
|
116
125
|
},
|
|
117
126
|
teal: {
|
|
118
127
|
50: "#f0fdfa",
|
|
@@ -124,7 +133,8 @@ const colors = {
|
|
|
124
133
|
600: "#0d9488",
|
|
125
134
|
700: "#0f766e",
|
|
126
135
|
800: "#115e59",
|
|
127
|
-
900: "#134e4a"
|
|
136
|
+
900: "#134e4a",
|
|
137
|
+
950: "#042f2e"
|
|
128
138
|
},
|
|
129
139
|
emerald: {
|
|
130
140
|
50: "#ecfdf5",
|
|
@@ -136,7 +146,8 @@ const colors = {
|
|
|
136
146
|
600: "#059669",
|
|
137
147
|
700: "#047857",
|
|
138
148
|
800: "#065f46",
|
|
139
|
-
900: "#064e3b"
|
|
149
|
+
900: "#064e3b",
|
|
150
|
+
950: "#022c22"
|
|
140
151
|
},
|
|
141
152
|
green: {
|
|
142
153
|
50: "#f0fdf4",
|
|
@@ -148,7 +159,8 @@ const colors = {
|
|
|
148
159
|
600: "#16a34a",
|
|
149
160
|
700: "#15803d",
|
|
150
161
|
800: "#166534",
|
|
151
|
-
900: "#14532d"
|
|
162
|
+
900: "#14532d",
|
|
163
|
+
950: "#052e16"
|
|
152
164
|
},
|
|
153
165
|
lime: {
|
|
154
166
|
50: "#f7fee7",
|
|
@@ -160,7 +172,8 @@ const colors = {
|
|
|
160
172
|
600: "#65a30d",
|
|
161
173
|
700: "#4d7c0f",
|
|
162
174
|
800: "#3f6212",
|
|
163
|
-
900: "#365314"
|
|
175
|
+
900: "#365314",
|
|
176
|
+
950: "#1a2e05"
|
|
164
177
|
},
|
|
165
178
|
yellow: {
|
|
166
179
|
50: "#fefce8",
|
|
@@ -172,7 +185,8 @@ const colors = {
|
|
|
172
185
|
600: "#ca8a04",
|
|
173
186
|
700: "#a16207",
|
|
174
187
|
800: "#854d0e",
|
|
175
|
-
900: "#713f12"
|
|
188
|
+
900: "#713f12",
|
|
189
|
+
950: "#422006"
|
|
176
190
|
},
|
|
177
191
|
amber: {
|
|
178
192
|
50: "#fffbeb",
|
|
@@ -184,7 +198,8 @@ const colors = {
|
|
|
184
198
|
600: "#d97706",
|
|
185
199
|
700: "#b45309",
|
|
186
200
|
800: "#92400e",
|
|
187
|
-
900: "#78350f"
|
|
201
|
+
900: "#78350f",
|
|
202
|
+
950: "#451a03"
|
|
188
203
|
},
|
|
189
204
|
orange: {
|
|
190
205
|
50: "#fff7ed",
|
|
@@ -196,7 +211,8 @@ const colors = {
|
|
|
196
211
|
600: "#ea580c",
|
|
197
212
|
700: "#c2410c",
|
|
198
213
|
800: "#9a3412",
|
|
199
|
-
900: "#7c2d12"
|
|
214
|
+
900: "#7c2d12",
|
|
215
|
+
950: "#431407"
|
|
200
216
|
},
|
|
201
217
|
red: {
|
|
202
218
|
50: "#fef2f2",
|
|
@@ -208,7 +224,8 @@ const colors = {
|
|
|
208
224
|
600: "#dc2626",
|
|
209
225
|
700: "#b91c1c",
|
|
210
226
|
800: "#991b1b",
|
|
211
|
-
900: "#7f1d1d"
|
|
227
|
+
900: "#7f1d1d",
|
|
228
|
+
950: "#450a0a"
|
|
212
229
|
},
|
|
213
230
|
gray: {
|
|
214
231
|
50: "#f9fafb",
|
|
@@ -220,7 +237,8 @@ const colors = {
|
|
|
220
237
|
600: "#4b5563",
|
|
221
238
|
700: "#374151",
|
|
222
239
|
800: "#1f2937",
|
|
223
|
-
900: "#111827"
|
|
240
|
+
900: "#111827",
|
|
241
|
+
950: "#030712"
|
|
224
242
|
},
|
|
225
243
|
slate: {
|
|
226
244
|
50: "#f8fafc",
|
|
@@ -232,7 +250,8 @@ const colors = {
|
|
|
232
250
|
600: "#475569",
|
|
233
251
|
700: "#334155",
|
|
234
252
|
800: "#1e293b",
|
|
235
|
-
900: "#0f172a"
|
|
253
|
+
900: "#0f172a",
|
|
254
|
+
950: "#020617"
|
|
236
255
|
},
|
|
237
256
|
zinc: {
|
|
238
257
|
50: "#fafafa",
|
|
@@ -244,7 +263,8 @@ const colors = {
|
|
|
244
263
|
600: "#52525b",
|
|
245
264
|
700: "#3f3f46",
|
|
246
265
|
800: "#27272a",
|
|
247
|
-
900: "#18181b"
|
|
266
|
+
900: "#18181b",
|
|
267
|
+
950: "#09090b"
|
|
248
268
|
},
|
|
249
269
|
neutral: {
|
|
250
270
|
50: "#fafafa",
|
|
@@ -256,7 +276,8 @@ const colors = {
|
|
|
256
276
|
600: "#525252",
|
|
257
277
|
700: "#404040",
|
|
258
278
|
800: "#262626",
|
|
259
|
-
900: "#171717"
|
|
279
|
+
900: "#171717",
|
|
280
|
+
950: "#0a0a0a"
|
|
260
281
|
},
|
|
261
282
|
stone: {
|
|
262
283
|
50: "#fafaf9",
|
|
@@ -268,7 +289,8 @@ const colors = {
|
|
|
268
289
|
600: "#57534e",
|
|
269
290
|
700: "#44403c",
|
|
270
291
|
800: "#292524",
|
|
271
|
-
900: "#1c1917"
|
|
292
|
+
900: "#1c1917",
|
|
293
|
+
950: "#0c0a09"
|
|
272
294
|
},
|
|
273
295
|
light: {
|
|
274
296
|
50: "#fdfdfd",
|
|
@@ -280,7 +302,8 @@ const colors = {
|
|
|
280
302
|
600: "#f1f3f5",
|
|
281
303
|
700: "#e9ecef",
|
|
282
304
|
800: "#dee2e6",
|
|
283
|
-
900: "#dde1e3"
|
|
305
|
+
900: "#dde1e3",
|
|
306
|
+
950: "#d8dcdf"
|
|
284
307
|
},
|
|
285
308
|
dark: {
|
|
286
309
|
50: "#4a4a4a",
|
|
@@ -292,7 +315,8 @@ const colors = {
|
|
|
292
315
|
600: "#1c1c1e",
|
|
293
316
|
700: "#1b1b1b",
|
|
294
317
|
800: "#181818",
|
|
295
|
-
900: "#0f0f0f"
|
|
318
|
+
900: "#0f0f0f",
|
|
319
|
+
950: "#080808"
|
|
296
320
|
},
|
|
297
321
|
get lightblue() {
|
|
298
322
|
return this.sky;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const core = require('@unocss/core');
|
|
4
4
|
const colors = require('./preset-mini.2be263e2.cjs');
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function variantMatcher(name, handler) {
|
|
7
7
|
let re;
|
|
8
8
|
return {
|
|
9
9
|
name,
|
|
@@ -23,8 +23,8 @@ const variantMatcher = (name, handler) => {
|
|
|
23
23
|
},
|
|
24
24
|
autocomplete: `${name}:`
|
|
25
25
|
};
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
}
|
|
27
|
+
function variantParentMatcher(name, parent) {
|
|
28
28
|
let re;
|
|
29
29
|
return {
|
|
30
30
|
name,
|
|
@@ -44,8 +44,8 @@ const variantParentMatcher = (name, parent) => {
|
|
|
44
44
|
},
|
|
45
45
|
autocomplete: `${name}:`
|
|
46
46
|
};
|
|
47
|
-
}
|
|
48
|
-
|
|
47
|
+
}
|
|
48
|
+
function variantGetBracket(prefix, matcher, separators) {
|
|
49
49
|
if (matcher.startsWith(`${prefix}[`)) {
|
|
50
50
|
const [match, rest] = colors.getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
|
|
51
51
|
if (match && rest) {
|
|
@@ -56,8 +56,8 @@ const variantGetBracket = (prefix, matcher, separators) => {
|
|
|
56
56
|
return [match, rest, ""];
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
59
|
+
}
|
|
60
|
+
function variantGetParameter(prefix, matcher, separators) {
|
|
61
61
|
if (matcher.startsWith(prefix)) {
|
|
62
62
|
const body = variantGetBracket(prefix, matcher, separators);
|
|
63
63
|
if (body) {
|
|
@@ -77,7 +77,7 @@ const variantGetParameter = (prefix, matcher, separators) => {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|
|
81
81
|
|
|
82
82
|
exports.variantGetBracket = variantGetBracket;
|
|
83
83
|
exports.variantGetParameter = variantGetParameter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as colors } from './preset-mini.
|
|
2
|
-
import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.
|
|
1
|
+
import { c as colors } from './preset-mini.74b45c11.mjs';
|
|
2
|
+
import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.94514c53.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './preset-mini.617e6696.mjs';
|
|
5
5
|
|
|
@@ -34,16 +34,16 @@ const outline = [
|
|
|
34
34
|
];
|
|
35
35
|
const appearance = [
|
|
36
36
|
["appearance-none", {
|
|
37
|
-
"appearance": "none",
|
|
38
|
-
"
|
|
37
|
+
"-webkit-appearance": "none",
|
|
38
|
+
"appearance": "none"
|
|
39
39
|
}]
|
|
40
40
|
];
|
|
41
|
-
|
|
41
|
+
function willChangeProperty(prop) {
|
|
42
42
|
return colors.handler.properties.auto.global(prop) ?? {
|
|
43
43
|
contents: "contents",
|
|
44
44
|
scroll: "scroll-position"
|
|
45
45
|
}[prop];
|
|
46
|
-
}
|
|
46
|
+
}
|
|
47
47
|
const willChange = [
|
|
48
48
|
[/^will-change-(.+)/, ([, p]) => ({ "will-change": willChangeProperty(p) })]
|
|
49
49
|
];
|
|
@@ -81,35 +81,37 @@ const borders = [
|
|
|
81
81
|
[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
82
82
|
[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/, handlerBorderStyle]
|
|
83
83
|
];
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
function borderColorResolver(direction) {
|
|
85
|
+
return ([, body], theme) => {
|
|
86
|
+
const data = colors.parseColor(body, theme);
|
|
87
|
+
if (!data)
|
|
88
|
+
return;
|
|
89
|
+
const { alpha, color, cssColor } = data;
|
|
90
|
+
if (cssColor) {
|
|
91
|
+
if (alpha != null) {
|
|
92
|
+
return {
|
|
93
|
+
[`border${direction}-color`]: colors.colorToString(cssColor, alpha)
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (direction === "") {
|
|
97
|
+
return {
|
|
98
|
+
"--un-border-opacity": colors.colorOpacityToString(cssColor),
|
|
99
|
+
"border-color": colors.colorToString(cssColor, "var(--un-border-opacity)")
|
|
100
|
+
};
|
|
101
|
+
} else {
|
|
102
|
+
return {
|
|
103
|
+
"--un-border-opacity": colors.colorOpacityToString(cssColor),
|
|
104
|
+
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
105
|
+
[`border${direction}-color`]: colors.colorToString(cssColor, `var(--un-border${direction}-opacity)`)
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
} else if (color) {
|
|
101
109
|
return {
|
|
102
|
-
|
|
103
|
-
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
104
|
-
[`border${direction}-color`]: colors.colorToString(cssColor, `var(--un-border${direction}-opacity)`)
|
|
110
|
+
[`border${direction}-color`]: colors.colorToString(color, alpha)
|
|
105
111
|
};
|
|
106
112
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
[`border${direction}-color`]: colors.colorToString(color, alpha)
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
113
115
|
function handlerBorder(m, ctx) {
|
|
114
116
|
return handlerBorderSize(m, ctx);
|
|
115
117
|
}
|
|
@@ -185,9 +187,9 @@ const transitionPropertyGroup = {
|
|
|
185
187
|
shadow: "box-shadow",
|
|
186
188
|
transform: "transform"
|
|
187
189
|
};
|
|
188
|
-
|
|
190
|
+
function transitionProperty(prop) {
|
|
189
191
|
return colors.handler.properties(prop) ?? transitionPropertyGroup[prop];
|
|
190
|
-
}
|
|
192
|
+
}
|
|
191
193
|
const transitions = [
|
|
192
194
|
[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/, ([, prop, d], { theme }) => {
|
|
193
195
|
const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
|
|
@@ -519,10 +521,10 @@ const resizes = [
|
|
|
519
521
|
...colors.makeGlobalStaticRules("resize")
|
|
520
522
|
];
|
|
521
523
|
const userSelects = [
|
|
522
|
-
["select-auto", { "user-select": "auto" }],
|
|
523
|
-
["select-all", { "user-select": "all" }],
|
|
524
|
-
["select-text", { "user-select": "text" }],
|
|
525
|
-
["select-none", { "user-select": "none" }],
|
|
524
|
+
["select-auto", { "-webkit-user-select": "auto", "user-select": "auto" }],
|
|
525
|
+
["select-all", { "-webkit-user-select": "all", "user-select": "all" }],
|
|
526
|
+
["select-text", { "-webkit-user-select": "text", "user-select": "text" }],
|
|
527
|
+
["select-none", { "-webkit-user-select": "none", "user-select": "none" }],
|
|
526
528
|
...colors.makeGlobalStaticRules("select", "user-select")
|
|
527
529
|
];
|
|
528
530
|
const whitespaces = [
|
|
@@ -625,10 +627,11 @@ const boxShadows = [
|
|
|
625
627
|
[/^shadow(?:-(.+))?$/, (match, context) => {
|
|
626
628
|
const [, d] = match;
|
|
627
629
|
const { theme } = context;
|
|
628
|
-
const v = theme.boxShadow?.[d || "DEFAULT"]
|
|
629
|
-
|
|
630
|
+
const v = theme.boxShadow?.[d || "DEFAULT"];
|
|
631
|
+
const c = d ? colors.handler.bracket.cssvar(d) : void 0;
|
|
632
|
+
if ((v != null || c != null) && !colors.hasParseableColor(c, theme)) {
|
|
630
633
|
return {
|
|
631
|
-
"--un-shadow": colors.colorableShadows(v, "--un-shadow-color").join(","),
|
|
634
|
+
"--un-shadow": colors.colorableShadows(v || c, "--un-shadow-color").join(","),
|
|
632
635
|
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
633
636
|
};
|
|
634
637
|
}
|
package/dist/theme.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const colors = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
5
|
+
const colors = require('./shared/preset-mini.bb7dc365.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.2c84a1da.cjs');
|
|
7
|
+
require('./shared/preset-mini.fea712fb.cjs');
|
|
8
8
|
require('./shared/preset-mini.2be263e2.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
export { t as theme } from './default-
|
|
1
|
+
export { c as colors } from './colors-e683aa85.js';
|
|
2
|
+
export { t as theme } from './default-d9218dd5.js';
|
|
3
3
|
import { T as Theme } from './types-f73ecdfe.js';
|
|
4
4
|
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-f73ecdfe.js';
|
|
5
5
|
import '@unocss/core';
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as colors } from './shared/preset-mini.
|
|
2
|
-
export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
1
|
+
export { c as colors } from './shared/preset-mini.74b45c11.mjs';
|
|
2
|
+
export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.d3cd9ef2.mjs';
|
|
3
|
+
import './shared/preset-mini.94514c53.mjs';
|
|
4
4
|
import './shared/preset-mini.617e6696.mjs';
|
|
5
5
|
import '@unocss/core';
|
package/dist/utils.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.2be263e2.cjs');
|
|
6
|
-
const variants = require('./shared/preset-mini.
|
|
6
|
+
const variants = require('./shared/preset-mini.c4fc86b9.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -75,9 +75,9 @@ declare namespace handlers {
|
|
|
75
75
|
declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
76
76
|
declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
77
77
|
|
|
78
|
-
declare
|
|
79
|
-
declare
|
|
80
|
-
declare
|
|
81
|
-
declare
|
|
78
|
+
declare function variantMatcher(name: string, handler: (input: VariantHandlerContext) => Record<string, any>): VariantObject;
|
|
79
|
+
declare function variantParentMatcher(name: string, parent: string): VariantObject;
|
|
80
|
+
declare function variantGetBracket(prefix: string, matcher: string, separators: string[]): string[] | undefined;
|
|
81
|
+
declare function variantGetParameter(prefix: string, matcher: string, separators: string[]): string[] | undefined;
|
|
82
82
|
|
|
83
83
|
export { colorOpacityToString, colorToString, cornerMap, directionMap, globalKeywords, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, t as getComponent, z as getComponents, g as globalKeywords, w as h, h as handler, a as hasParseableColor, u as hex2rgba, j 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.617e6696.mjs';
|
|
2
|
-
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.6c20780a.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
+
const _default = require('./shared/preset-mini.a8322582.cjs');
|
|
6
6
|
require('./shared/preset-mini.2be263e2.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
-
require('./shared/preset-mini.
|
|
8
|
+
require('./shared/preset-mini.c4fc86b9.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.js';
|
|
3
3
|
import { T as Theme } from './types-f73ecdfe.js';
|
|
4
|
-
import './colors-
|
|
5
|
-
import './default-
|
|
4
|
+
import './colors-e683aa85.js';
|
|
5
|
+
import './default-d9218dd5.js';
|
|
6
6
|
import './utilities-a87209ad.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
10
|
-
declare
|
|
11
|
-
declare
|
|
10
|
+
declare function calcMaxWidthBySize(size: string): string;
|
|
11
|
+
declare function variantBreakpoints(): VariantObject;
|
|
12
12
|
|
|
13
13
|
declare const variantCombinators: Variant[];
|
|
14
14
|
|
|
15
15
|
declare const variantContainerQuery: VariantObject;
|
|
16
16
|
|
|
17
|
-
declare
|
|
17
|
+
declare function variantColorsMediaOrClass(options?: PresetMiniOptions): Variant[];
|
|
18
18
|
|
|
19
19
|
declare const variantDataAttribute: VariantObject;
|
|
20
20
|
|
|
21
|
-
declare
|
|
21
|
+
declare function variants(options: PresetMiniOptions): Variant<Theme>[];
|
|
22
22
|
|
|
23
23
|
declare const variantLanguageDirections: Variant[];
|
|
24
24
|
|
|
25
|
-
declare
|
|
25
|
+
declare function variantImportant(): VariantObject;
|
|
26
26
|
|
|
27
27
|
declare const variantPrint: VariantObject;
|
|
28
28
|
declare const variantCustomMedia: VariantObject;
|
|
@@ -35,9 +35,9 @@ declare const variantVariables: Variant;
|
|
|
35
35
|
|
|
36
36
|
declare const variantNegative: Variant;
|
|
37
37
|
|
|
38
|
-
declare
|
|
39
|
-
declare
|
|
40
|
-
declare
|
|
38
|
+
declare function variantPseudoClassesAndElements(): VariantObject;
|
|
39
|
+
declare function variantPseudoClassFunctions(): VariantObject;
|
|
40
|
+
declare function variantTaggedPseudoClasses(options?: PresetMiniOptions): VariantObject[];
|
|
41
41
|
declare const partClasses: VariantObject;
|
|
42
42
|
|
|
43
43
|
declare const variantSupports: VariantObject;
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, u as partClasses, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, u as partClasses, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.b68b942d.mjs';
|
|
2
2
|
import './shared/preset-mini.617e6696.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.6c20780a.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.8",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.50.
|
|
64
|
+
"@unocss/core": "0.50.8"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|