@unocss/preset-mini 0.50.1 → 0.50.3
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{preset-mini.20887442.mjs → preset-mini.9d7e4452.mjs} +3 -3
- package/dist/shared/{preset-mini.bb42d90c.cjs → preset-mini.ef35a101.cjs} +3 -3
- package/dist/variants.cjs +1 -1
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const _default$1 = require('./shared/preset-mini.2f75df7e.cjs');
|
|
|
8
8
|
const colors$1 = require('./shared/preset-mini.2be263e2.cjs');
|
|
9
9
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
10
10
|
const _default = require('./shared/preset-mini.fc0fd434.cjs');
|
|
11
|
-
const _default$2 = require('./shared/preset-mini.
|
|
11
|
+
const _default$2 = require('./shared/preset-mini.ef35a101.cjs');
|
|
12
12
|
require('./shared/preset-mini.4a5aade9.cjs');
|
|
13
13
|
|
|
14
14
|
const preflights = [
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export { p as parseColor } from './shared/preset-mini.617e6696.mjs';
|
|
|
5
5
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
6
6
|
import { t as theme } from './shared/preset-mini.f9468448.mjs';
|
|
7
7
|
export { t as theme } from './shared/preset-mini.f9468448.mjs';
|
|
8
|
-
import { v as variants } from './shared/preset-mini.
|
|
8
|
+
import { v as variants } from './shared/preset-mini.9d7e4452.mjs';
|
|
9
9
|
import './shared/preset-mini.305062ab.mjs';
|
|
10
10
|
|
|
11
11
|
const preflights = [
|
|
@@ -33,7 +33,7 @@ const variantBreakpoints = () => {
|
|
|
33
33
|
const variantEntries = Object.entries(resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
|
|
34
34
|
for (const [point, size, idx] of variantEntries) {
|
|
35
35
|
if (!regexCache[point])
|
|
36
|
-
regexCache[point] = new RegExp(`^((?:[al]t
|
|
36
|
+
regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
|
|
37
37
|
const match = matcher.match(regexCache[point]);
|
|
38
38
|
if (!match)
|
|
39
39
|
continue;
|
|
@@ -41,8 +41,8 @@ const variantBreakpoints = () => {
|
|
|
41
41
|
const m = matcher.slice(pre.length);
|
|
42
42
|
if (m === "container")
|
|
43
43
|
continue;
|
|
44
|
-
const isLtPrefix = pre.startsWith("lt-");
|
|
45
|
-
const isAtPrefix = pre.startsWith("at-");
|
|
44
|
+
const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
|
|
45
|
+
const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
|
|
46
46
|
let order = 1e3;
|
|
47
47
|
if (isLtPrefix) {
|
|
48
48
|
order -= idx + 1;
|
|
@@ -35,7 +35,7 @@ const variantBreakpoints = () => {
|
|
|
35
35
|
const variantEntries = Object.entries(colors.resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
|
|
36
36
|
for (const [point, size, idx] of variantEntries) {
|
|
37
37
|
if (!regexCache[point])
|
|
38
|
-
regexCache[point] = new RegExp(`^((?:[al]t
|
|
38
|
+
regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
|
|
39
39
|
const match = matcher.match(regexCache[point]);
|
|
40
40
|
if (!match)
|
|
41
41
|
continue;
|
|
@@ -43,8 +43,8 @@ const variantBreakpoints = () => {
|
|
|
43
43
|
const m = matcher.slice(pre.length);
|
|
44
44
|
if (m === "container")
|
|
45
45
|
continue;
|
|
46
|
-
const isLtPrefix = pre.startsWith("lt-");
|
|
47
|
-
const isAtPrefix = pre.startsWith("at-");
|
|
46
|
+
const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
|
|
47
|
+
const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
|
|
48
48
|
let order = 1e3;
|
|
49
49
|
if (isLtPrefix) {
|
|
50
50
|
order -= idx + 1;
|
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.ef35a101.cjs');
|
|
6
6
|
require('./shared/preset-mini.2be263e2.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
require('./shared/preset-mini.4a5aade9.cjs');
|
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.9d7e4452.mjs';
|
|
2
2
|
import './shared/preset-mini.617e6696.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './shared/preset-mini.305062ab.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.3",
|
|
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.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|