@unocss/preset-mini 0.26.3 → 0.26.4
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
CHANGED
|
@@ -284,8 +284,8 @@ const handleGap = ([, d = "", s], { theme }) => {
|
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
const gaps = [
|
|
287
|
-
[/^(?:flex-|grid-)?gap
|
|
288
|
-
[/^(?:flex-|grid-)?gap-([xy])
|
|
287
|
+
[/^(?:flex-|grid-)?gap-?()(.+)$/, handleGap],
|
|
288
|
+
[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/, handleGap]
|
|
289
289
|
];
|
|
290
290
|
|
|
291
291
|
const rowCol = (s) => s.replace("col", "column");
|
|
@@ -433,6 +433,7 @@ const floats = [
|
|
|
433
433
|
["clear-none", { clear: "none" }]
|
|
434
434
|
];
|
|
435
435
|
const zIndexes = [
|
|
436
|
+
[/^z([\d.]+)$/, ([, v]) => ({ "z-index": utilities.handler.number(v) })],
|
|
436
437
|
[/^z-(.+)$/, ([, v]) => ({ "z-index": utilities.handler.bracket.cssvar.auto.number(v) })]
|
|
437
438
|
];
|
|
438
439
|
const boxSizing = [
|
|
@@ -594,7 +595,7 @@ function getSizeValue(minmax, hw, theme, prop) {
|
|
|
594
595
|
return utilities.handler.bracket.cssvar.auto.fraction.rem(prop);
|
|
595
596
|
}
|
|
596
597
|
const sizes = [
|
|
597
|
-
[/^(min-|max-)?([wh])
|
|
598
|
+
[/^(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
598
599
|
[/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
599
600
|
[/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.verticalBreakpoints?.[s] })],
|
|
600
601
|
[/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.breakpoints?.[s] })]
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -282,8 +282,8 @@ const handleGap = ([, d = "", s], { theme }) => {
|
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
const gaps = [
|
|
285
|
-
[/^(?:flex-|grid-)?gap
|
|
286
|
-
[/^(?:flex-|grid-)?gap-([xy])
|
|
285
|
+
[/^(?:flex-|grid-)?gap-?()(.+)$/, handleGap],
|
|
286
|
+
[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/, handleGap]
|
|
287
287
|
];
|
|
288
288
|
|
|
289
289
|
const rowCol = (s) => s.replace("col", "column");
|
|
@@ -431,6 +431,7 @@ const floats = [
|
|
|
431
431
|
["clear-none", { clear: "none" }]
|
|
432
432
|
];
|
|
433
433
|
const zIndexes = [
|
|
434
|
+
[/^z([\d.]+)$/, ([, v]) => ({ "z-index": handler.number(v) })],
|
|
434
435
|
[/^z-(.+)$/, ([, v]) => ({ "z-index": handler.bracket.cssvar.auto.number(v) })]
|
|
435
436
|
];
|
|
436
437
|
const boxSizing = [
|
|
@@ -592,7 +593,7 @@ function getSizeValue(minmax, hw, theme, prop) {
|
|
|
592
593
|
return handler.bracket.cssvar.auto.fraction.rem(prop);
|
|
593
594
|
}
|
|
594
595
|
const sizes = [
|
|
595
|
-
[/^(min-|max-)?([wh])
|
|
596
|
+
[/^(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
596
597
|
[/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
597
598
|
[/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.verticalBreakpoints?.[s] })],
|
|
598
599
|
[/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.breakpoints?.[s] })]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
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.26.
|
|
64
|
+
"@unocss/core": "0.26.4"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|