@unocss/preset-mini 0.52.7 → 0.53.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/index.cjs +6 -6
- package/dist/index.mjs +7 -7
- package/dist/rules.cjs +3 -3
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.fcd935e5.cjs → preset-mini.099ab35c.cjs} +8 -8
- package/dist/shared/{preset-mini.c8479548.mjs → preset-mini.422a3875.mjs} +2 -2
- package/dist/shared/{preset-mini.c0eda31d.cjs → preset-mini.60fa5b43.cjs} +1 -1
- package/dist/shared/{preset-mini.9dd74f3a.mjs → preset-mini.64d922d5.mjs} +8 -8
- package/dist/shared/{preset-mini.f5158c55.mjs → preset-mini.6babd10a.mjs} +1 -1
- package/dist/shared/{preset-mini.3535c317.mjs → preset-mini.7577b1bf.mjs} +2 -2
- package/dist/shared/{preset-mini.27c86dd4.mjs → preset-mini.82cf398e.mjs} +51 -38
- package/dist/shared/{preset-mini.3e77961f.cjs → preset-mini.8d9dbf2c.cjs} +51 -38
- package/dist/shared/{preset-mini.b00661a7.cjs → preset-mini.b9e9b262.cjs} +2 -2
- package/dist/shared/{preset-mini.dfe8388f.mjs → preset-mini.bd1a81a2.mjs} +1 -1
- package/dist/shared/{preset-mini.dd2d059b.cjs → preset-mini.c3ab5ec7.cjs} +1 -1
- package/dist/shared/{preset-mini.b1ff13dc.cjs → preset-mini.dfb70bd4.cjs} +2 -2
- package/dist/theme.cjs +3 -3
- package/dist/theme.mjs +3 -3
- package/dist/utils.cjs +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/variants.cjs +4 -4
- package/dist/variants.d.ts +2 -2
- package/dist/variants.mjs +3 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
6
6
|
const core = require('@unocss/core');
|
|
7
|
-
require('./shared/preset-mini.
|
|
8
|
-
const _default$1 = require('./shared/preset-mini.
|
|
9
|
-
const colors$1 = require('./shared/preset-mini.
|
|
7
|
+
require('./shared/preset-mini.60fa5b43.cjs');
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.dfb70bd4.cjs');
|
|
9
|
+
const colors$1 = require('./shared/preset-mini.099ab35c.cjs');
|
|
10
10
|
const colors = require('./shared/preset-mini.f3fc54d2.cjs');
|
|
11
|
-
const _default = require('./shared/preset-mini.
|
|
12
|
-
const _default$2 = require('./shared/preset-mini.
|
|
13
|
-
require('./shared/preset-mini.
|
|
11
|
+
const _default = require('./shared/preset-mini.b9e9b262.cjs');
|
|
12
|
+
const _default$2 = require('./shared/preset-mini.8d9dbf2c.cjs');
|
|
13
|
+
require('./shared/preset-mini.c3ab5ec7.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
|
16
16
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
2
2
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import { r as rules } from './shared/preset-mini.
|
|
5
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
3
|
+
import './shared/preset-mini.6babd10a.mjs';
|
|
4
|
+
import { r as rules } from './shared/preset-mini.7577b1bf.mjs';
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.64d922d5.mjs';
|
|
6
6
|
export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
|
|
7
|
-
import { t as theme } from './shared/preset-mini.
|
|
8
|
-
export { t as theme } from './shared/preset-mini.
|
|
9
|
-
import { v as variants } from './shared/preset-mini.
|
|
10
|
-
import './shared/preset-mini.
|
|
7
|
+
import { t as theme } from './shared/preset-mini.422a3875.mjs';
|
|
8
|
+
export { t as theme } from './shared/preset-mini.422a3875.mjs';
|
|
9
|
+
import { v as variants } from './shared/preset-mini.82cf398e.mjs';
|
|
10
|
+
import './shared/preset-mini.bd1a81a2.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
package/dist/rules.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const transform = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
5
|
+
const transform = require('./shared/preset-mini.60fa5b43.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.dfb70bd4.cjs');
|
|
7
|
+
require('./shared/preset-mini.099ab35c.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
10
10
|
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as alignments, F as appearance, w as appearances, b as bgColors, X as borderStyles, a as borders, r as boxShadows, V as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, Y as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, W as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as textWraps, U as transformBase, Q as transforms, P as transitions, A as userSelects, Z as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.
|
|
2
|
-
export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
1
|
+
export { I as alignments, F as appearance, w as appearances, b as bgColors, X as borderStyles, a as borders, r as boxShadows, V as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, Y as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, W as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as textWraps, U as transformBase, Q as transforms, P as transitions, A as userSelects, Z as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.6babd10a.mjs';
|
|
2
|
+
export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.7577b1bf.mjs';
|
|
3
|
+
import './shared/preset-mini.64d922d5.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -173,7 +173,7 @@ function numberWithUnit(str) {
|
|
|
173
173
|
if (!match)
|
|
174
174
|
return;
|
|
175
175
|
const [, n, unit] = match;
|
|
176
|
-
const num = parseFloat(n);
|
|
176
|
+
const num = Number.parseFloat(n);
|
|
177
177
|
if (unit && !Number.isNaN(num))
|
|
178
178
|
return `${round(num)}${unit}`;
|
|
179
179
|
}
|
|
@@ -188,7 +188,7 @@ function rem(str) {
|
|
|
188
188
|
if (!match)
|
|
189
189
|
return;
|
|
190
190
|
const [, n, unit] = match;
|
|
191
|
-
const num = parseFloat(n);
|
|
191
|
+
const num = Number.parseFloat(n);
|
|
192
192
|
if (!Number.isNaN(num)) {
|
|
193
193
|
if (num === 0)
|
|
194
194
|
return "0";
|
|
@@ -202,7 +202,7 @@ function px(str) {
|
|
|
202
202
|
if (!match)
|
|
203
203
|
return;
|
|
204
204
|
const [, n, unit] = match;
|
|
205
|
-
const num = parseFloat(n);
|
|
205
|
+
const num = Number.parseFloat(n);
|
|
206
206
|
if (!Number.isNaN(num)) {
|
|
207
207
|
if (num === 0)
|
|
208
208
|
return "0";
|
|
@@ -212,7 +212,7 @@ function px(str) {
|
|
|
212
212
|
function number(str) {
|
|
213
213
|
if (!numberRE.test(str))
|
|
214
214
|
return;
|
|
215
|
-
const num = parseFloat(str);
|
|
215
|
+
const num = Number.parseFloat(str);
|
|
216
216
|
if (!Number.isNaN(num))
|
|
217
217
|
return round(num);
|
|
218
218
|
}
|
|
@@ -221,7 +221,7 @@ function percent(str) {
|
|
|
221
221
|
str = str.slice(0, -1);
|
|
222
222
|
if (!numberRE.test(str))
|
|
223
223
|
return;
|
|
224
|
-
const num = parseFloat(str);
|
|
224
|
+
const num = Number.parseFloat(str);
|
|
225
225
|
if (!Number.isNaN(num))
|
|
226
226
|
return `${round(num / 100)}`;
|
|
227
227
|
}
|
|
@@ -229,7 +229,7 @@ function fraction(str) {
|
|
|
229
229
|
if (str === "full")
|
|
230
230
|
return "100%";
|
|
231
231
|
const [left, right] = str.split("/");
|
|
232
|
-
const num = parseFloat(left) / parseFloat(right);
|
|
232
|
+
const num = Number.parseFloat(left) / Number.parseFloat(right);
|
|
233
233
|
if (!Number.isNaN(num)) {
|
|
234
234
|
if (num === 0)
|
|
235
235
|
return "0";
|
|
@@ -303,7 +303,7 @@ function time(str) {
|
|
|
303
303
|
if (!match)
|
|
304
304
|
return;
|
|
305
305
|
const [, n, unit] = match;
|
|
306
|
-
const num = parseFloat(n);
|
|
306
|
+
const num = Number.parseFloat(n);
|
|
307
307
|
if (!Number.isNaN(num)) {
|
|
308
308
|
if (num === 0 && !unit)
|
|
309
309
|
return "0s";
|
|
@@ -315,7 +315,7 @@ function degree(str) {
|
|
|
315
315
|
if (!match)
|
|
316
316
|
return;
|
|
317
317
|
const [, n, unit] = match;
|
|
318
|
-
const num = parseFloat(n);
|
|
318
|
+
const num = Number.parseFloat(n);
|
|
319
319
|
if (!Number.isNaN(num)) {
|
|
320
320
|
if (num === 0)
|
|
321
321
|
return "0";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as colors } from './preset-mini.1c66bf79.mjs';
|
|
2
|
-
import { U as transformBase, V as boxShadowsBase, W as ringBase } from './preset-mini.
|
|
2
|
+
import { U as transformBase, V as boxShadowsBase, W as ringBase } from './preset-mini.6babd10a.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './preset-mini.
|
|
4
|
+
import './preset-mini.64d922d5.mjs';
|
|
5
5
|
|
|
6
6
|
const fontFamily = {
|
|
7
7
|
sans: [
|
|
@@ -171,7 +171,7 @@ function numberWithUnit(str) {
|
|
|
171
171
|
if (!match)
|
|
172
172
|
return;
|
|
173
173
|
const [, n, unit] = match;
|
|
174
|
-
const num = parseFloat(n);
|
|
174
|
+
const num = Number.parseFloat(n);
|
|
175
175
|
if (unit && !Number.isNaN(num))
|
|
176
176
|
return `${round(num)}${unit}`;
|
|
177
177
|
}
|
|
@@ -186,7 +186,7 @@ function rem(str) {
|
|
|
186
186
|
if (!match)
|
|
187
187
|
return;
|
|
188
188
|
const [, n, unit] = match;
|
|
189
|
-
const num = parseFloat(n);
|
|
189
|
+
const num = Number.parseFloat(n);
|
|
190
190
|
if (!Number.isNaN(num)) {
|
|
191
191
|
if (num === 0)
|
|
192
192
|
return "0";
|
|
@@ -200,7 +200,7 @@ function px(str) {
|
|
|
200
200
|
if (!match)
|
|
201
201
|
return;
|
|
202
202
|
const [, n, unit] = match;
|
|
203
|
-
const num = parseFloat(n);
|
|
203
|
+
const num = Number.parseFloat(n);
|
|
204
204
|
if (!Number.isNaN(num)) {
|
|
205
205
|
if (num === 0)
|
|
206
206
|
return "0";
|
|
@@ -210,7 +210,7 @@ function px(str) {
|
|
|
210
210
|
function number(str) {
|
|
211
211
|
if (!numberRE.test(str))
|
|
212
212
|
return;
|
|
213
|
-
const num = parseFloat(str);
|
|
213
|
+
const num = Number.parseFloat(str);
|
|
214
214
|
if (!Number.isNaN(num))
|
|
215
215
|
return round(num);
|
|
216
216
|
}
|
|
@@ -219,7 +219,7 @@ function percent(str) {
|
|
|
219
219
|
str = str.slice(0, -1);
|
|
220
220
|
if (!numberRE.test(str))
|
|
221
221
|
return;
|
|
222
|
-
const num = parseFloat(str);
|
|
222
|
+
const num = Number.parseFloat(str);
|
|
223
223
|
if (!Number.isNaN(num))
|
|
224
224
|
return `${round(num / 100)}`;
|
|
225
225
|
}
|
|
@@ -227,7 +227,7 @@ function fraction(str) {
|
|
|
227
227
|
if (str === "full")
|
|
228
228
|
return "100%";
|
|
229
229
|
const [left, right] = str.split("/");
|
|
230
|
-
const num = parseFloat(left) / parseFloat(right);
|
|
230
|
+
const num = Number.parseFloat(left) / Number.parseFloat(right);
|
|
231
231
|
if (!Number.isNaN(num)) {
|
|
232
232
|
if (num === 0)
|
|
233
233
|
return "0";
|
|
@@ -301,7 +301,7 @@ function time(str) {
|
|
|
301
301
|
if (!match)
|
|
302
302
|
return;
|
|
303
303
|
const [, n, unit] = match;
|
|
304
|
-
const num = parseFloat(n);
|
|
304
|
+
const num = Number.parseFloat(n);
|
|
305
305
|
if (!Number.isNaN(num)) {
|
|
306
306
|
if (num === 0 && !unit)
|
|
307
307
|
return "0s";
|
|
@@ -313,7 +313,7 @@ function degree(str) {
|
|
|
313
313
|
if (!match)
|
|
314
314
|
return;
|
|
315
315
|
const [, n, unit] = match;
|
|
316
|
-
const num = parseFloat(n);
|
|
316
|
+
const num = Number.parseFloat(n);
|
|
317
317
|
if (!Number.isNaN(num)) {
|
|
318
318
|
if (num === 0)
|
|
319
319
|
return "0";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, n as numberWithUnitRE, m as makeGlobalStaticRules, s as splitShorthand, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.
|
|
1
|
+
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, n as numberWithUnitRE, m as makeGlobalStaticRules, s as splitShorthand, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.64d922d5.mjs';
|
|
2
2
|
import { toArray } from '@unocss/core';
|
|
3
3
|
|
|
4
4
|
const verticalAlignAlias = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains, T as textWraps } from './preset-mini.
|
|
2
|
-
import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.
|
|
1
|
+
import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains, T as textWraps } from './preset-mini.6babd10a.mjs';
|
|
2
|
+
import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.64d922d5.mjs';
|
|
3
3
|
import { warnOnce } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const containerParent = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.
|
|
1
|
+
import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.64d922d5.mjs';
|
|
2
2
|
import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
|
|
3
|
-
import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.
|
|
3
|
+
import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.bd1a81a2.mjs';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
6
6
|
name: "aria",
|
|
@@ -22,7 +22,7 @@ const variantAria = {
|
|
|
22
22
|
function calcMaxWidthBySize(size) {
|
|
23
23
|
const value = size.match(/^-?[0-9]+\.?[0-9]*/)?.[0] || "";
|
|
24
24
|
const unit = size.slice(value.length);
|
|
25
|
-
const maxWidth = parseFloat(value) - 0.1;
|
|
25
|
+
const maxWidth = Number.parseFloat(value) - 0.1;
|
|
26
26
|
return Number.isNaN(maxWidth) ? size : `${maxWidth}${unit}`;
|
|
27
27
|
}
|
|
28
28
|
function variantBreakpoints() {
|
|
@@ -422,26 +422,27 @@ const PseudoClasses = Object.fromEntries([
|
|
|
422
422
|
"visited",
|
|
423
423
|
"target",
|
|
424
424
|
["open", "[open]"],
|
|
425
|
-
"hover",
|
|
426
|
-
"active",
|
|
427
|
-
"focus-visible",
|
|
428
|
-
"focus-within",
|
|
429
|
-
"focus",
|
|
430
|
-
"autofill",
|
|
431
|
-
"enabled",
|
|
432
|
-
"disabled",
|
|
433
|
-
"read-only",
|
|
434
|
-
"read-write",
|
|
435
|
-
"placeholder-shown",
|
|
436
425
|
"default",
|
|
437
426
|
"checked",
|
|
438
427
|
"indeterminate",
|
|
428
|
+
"placeholder-shown",
|
|
429
|
+
"autofill",
|
|
430
|
+
"optional",
|
|
431
|
+
"required",
|
|
439
432
|
"valid",
|
|
440
433
|
"invalid",
|
|
441
434
|
"in-range",
|
|
442
435
|
"out-of-range",
|
|
443
|
-
"
|
|
444
|
-
"
|
|
436
|
+
"read-only",
|
|
437
|
+
"read-write",
|
|
438
|
+
"empty",
|
|
439
|
+
"focus-within",
|
|
440
|
+
"hover",
|
|
441
|
+
"focus",
|
|
442
|
+
"focus-visible",
|
|
443
|
+
"active",
|
|
444
|
+
"enabled",
|
|
445
|
+
"disabled",
|
|
445
446
|
"root",
|
|
446
447
|
"empty",
|
|
447
448
|
["even-of-type", ":nth-of-type(even)"],
|
|
@@ -462,9 +463,11 @@ const PseudoClasses = Object.fromEntries([
|
|
|
462
463
|
["marker", "::marker"],
|
|
463
464
|
["file", "::file-selector-button"]
|
|
464
465
|
].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
|
|
466
|
+
const PseudoClassesKeys = Object.keys(PseudoClasses);
|
|
465
467
|
const PseudoClassesColon = Object.fromEntries([
|
|
466
468
|
["backdrop", "::backdrop"]
|
|
467
469
|
].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
|
|
470
|
+
const PseudoClassesColonKeys = Object.keys(PseudoClassesColon);
|
|
468
471
|
const PseudoClassFunctions = [
|
|
469
472
|
"not",
|
|
470
473
|
"is",
|
|
@@ -474,25 +477,12 @@ const PseudoClassFunctions = [
|
|
|
474
477
|
const PseudoClassesStr = Object.entries(PseudoClasses).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
|
|
475
478
|
const PseudoClassesColonStr = Object.entries(PseudoClassesColon).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
|
|
476
479
|
const PseudoClassFunctionsStr = PseudoClassFunctions.join("|");
|
|
477
|
-
function pseudoModifier(pseudo) {
|
|
478
|
-
if (pseudo === "focus") {
|
|
479
|
-
return {
|
|
480
|
-
sort: 10,
|
|
481
|
-
noMerge: true
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
if (pseudo === "active") {
|
|
485
|
-
return {
|
|
486
|
-
sort: 20,
|
|
487
|
-
noMerge: true
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
480
|
function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
492
481
|
const rawRE = new RegExp(`^(${escapeRegExp(parent)}:)(\\S+)${escapeRegExp(combinator)}\\1`);
|
|
493
482
|
let splitRE;
|
|
494
483
|
let pseudoRE;
|
|
495
484
|
let pseudoColonRE;
|
|
485
|
+
let pseudoVarRE;
|
|
496
486
|
const matchBracket = (input) => {
|
|
497
487
|
const body = variantGetBracket(`${tag}-`, input, []);
|
|
498
488
|
if (!body)
|
|
@@ -525,6 +515,19 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
525
515
|
pseudoKey
|
|
526
516
|
];
|
|
527
517
|
};
|
|
518
|
+
const matchPseudoVar = (input) => {
|
|
519
|
+
const match = input.match(pseudoVarRE);
|
|
520
|
+
if (!match)
|
|
521
|
+
return;
|
|
522
|
+
const [original, fn, pseudoValue] = match;
|
|
523
|
+
const label = match[3] ?? "";
|
|
524
|
+
const pseudo = `:${fn}(${pseudoValue})`;
|
|
525
|
+
return [
|
|
526
|
+
label,
|
|
527
|
+
input.slice(original.length),
|
|
528
|
+
`${parent}${escapeSelector(label)}${pseudo}`
|
|
529
|
+
];
|
|
530
|
+
};
|
|
528
531
|
return {
|
|
529
532
|
name: `pseudo:${tag}`,
|
|
530
533
|
match(input, ctx) {
|
|
@@ -532,10 +535,11 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
532
535
|
splitRE = new RegExp(`(?:${ctx.generator.config.separators.join("|")})`);
|
|
533
536
|
pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.join("|")})`);
|
|
534
537
|
pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
538
|
+
pseudoVarRE = new RegExp(`^${tag}-(?:(${PseudoClassFunctionsStr})-)?\\[(.+)\\](?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
535
539
|
}
|
|
536
540
|
if (!input.startsWith(tag))
|
|
537
541
|
return;
|
|
538
|
-
const result = matchBracket(input) || matchPseudo(input);
|
|
542
|
+
const result = matchBracket(input) || matchPseudo(input) || matchPseudoVar(input);
|
|
539
543
|
if (!result)
|
|
540
544
|
return;
|
|
541
545
|
const [label, matcher, prefix, pseudoName = ""] = result;
|
|
@@ -546,7 +550,7 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
546
550
|
handle: (input2, next) => next({
|
|
547
551
|
...input2,
|
|
548
552
|
prefix: `${prefix}${combinator}${input2.prefix}`.replace(rawRE, "$1$2:"),
|
|
549
|
-
|
|
553
|
+
sort: PseudoClassesKeys.indexOf(pseudoName) ?? PseudoClassesColonKeys.indexOf(pseudoName)
|
|
550
554
|
})
|
|
551
555
|
};
|
|
552
556
|
},
|
|
@@ -578,6 +582,11 @@ function variantPseudoClassesAndElements() {
|
|
|
578
582
|
const match = input.match(PseudoClassesAndElementsRE) || input.match(PseudoClassesAndElementsColonRE);
|
|
579
583
|
if (match) {
|
|
580
584
|
const pseudo = PseudoClasses[match[1]] || PseudoClassesColon[match[1]] || `:${match[1]}`;
|
|
585
|
+
let index = PseudoClassesKeys.indexOf(match[1]);
|
|
586
|
+
if (index === -1)
|
|
587
|
+
index = PseudoClassesColonKeys.indexOf(match[1]);
|
|
588
|
+
if (index === -1)
|
|
589
|
+
index = void 0;
|
|
581
590
|
return {
|
|
582
591
|
matcher: input.slice(match[0].length),
|
|
583
592
|
handle: (input2, next) => {
|
|
@@ -589,7 +598,8 @@ function variantPseudoClassesAndElements() {
|
|
|
589
598
|
return next({
|
|
590
599
|
...input2,
|
|
591
600
|
...selectors,
|
|
592
|
-
|
|
601
|
+
sort: index,
|
|
602
|
+
noMerge: true
|
|
593
603
|
});
|
|
594
604
|
}
|
|
595
605
|
};
|
|
@@ -602,16 +612,19 @@ function variantPseudoClassesAndElements() {
|
|
|
602
612
|
function variantPseudoClassFunctions() {
|
|
603
613
|
let PseudoClassFunctionsRE;
|
|
604
614
|
let PseudoClassColonFunctionsRE;
|
|
615
|
+
let PseudoClassVarFunctionRE;
|
|
605
616
|
return {
|
|
606
617
|
match(input, ctx) {
|
|
607
618
|
if (!(PseudoClassFunctionsRE && PseudoClassColonFunctionsRE)) {
|
|
608
619
|
PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})(?:${ctx.generator.config.separators.join("|")})`);
|
|
609
620
|
PseudoClassColonFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesColonStr})(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
621
|
+
PseudoClassVarFunctionRE = new RegExp(`^(${PseudoClassFunctionsStr})-(\\[.+\\])(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
610
622
|
}
|
|
611
|
-
const match = input.match(PseudoClassFunctionsRE) || input.match(PseudoClassColonFunctionsRE);
|
|
623
|
+
const match = input.match(PseudoClassFunctionsRE) || input.match(PseudoClassColonFunctionsRE) || input.match(PseudoClassVarFunctionRE);
|
|
612
624
|
if (match) {
|
|
613
625
|
const fn = match[1];
|
|
614
|
-
const
|
|
626
|
+
const fnVal = getBracket(match[2], "[", "]");
|
|
627
|
+
const pseudo = fnVal ? handler.bracket(match[2]) : PseudoClasses[match[2]] || PseudoClassesColon[match[2]] || `:${match[2]}`;
|
|
615
628
|
return {
|
|
616
629
|
matcher: input.slice(match[0].length),
|
|
617
630
|
selector: (s) => `${s}:${fn}(${pseudo})`
|
|
@@ -632,7 +645,7 @@ function variantTaggedPseudoClasses(options = {}) {
|
|
|
632
645
|
];
|
|
633
646
|
}
|
|
634
647
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
635
|
-
const
|
|
648
|
+
const variantPartClasses = {
|
|
636
649
|
match(input) {
|
|
637
650
|
const match = input.match(PartClassesRE);
|
|
638
651
|
if (match) {
|
|
@@ -663,7 +676,7 @@ function variants(options) {
|
|
|
663
676
|
variantPseudoClassesAndElements(),
|
|
664
677
|
variantPseudoClassFunctions(),
|
|
665
678
|
...variantTaggedPseudoClasses(options),
|
|
666
|
-
|
|
679
|
+
variantPartClasses,
|
|
667
680
|
...variantColorsMediaOrClass(options),
|
|
668
681
|
...variantLanguageDirections,
|
|
669
682
|
variantScope,
|
|
@@ -672,4 +685,4 @@ function variants(options) {
|
|
|
672
685
|
];
|
|
673
686
|
}
|
|
674
687
|
|
|
675
|
-
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g, variantLanguageDirections as h, variantImportant as i, variantPrint as j, variantCustomMedia as k, variantSelector as l, variantCssLayer as m, variantInternalLayer as n, variantScope as o, variantVariables as p, variantNegative as q, variantPseudoClassesAndElements as r, variantPseudoClassFunctions as s, variantTaggedPseudoClasses as t,
|
|
688
|
+
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g, variantLanguageDirections as h, variantImportant as i, variantPrint as j, variantCustomMedia as k, variantSelector as l, variantCssLayer as m, variantInternalLayer as n, variantScope as o, variantVariables as p, variantNegative as q, variantPseudoClassesAndElements as r, variantPseudoClassFunctions as s, variantTaggedPseudoClasses as t, variantPartClasses as u, variants as v, variantSupports as w };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.099ab35c.cjs');
|
|
4
4
|
const core = require('@unocss/core');
|
|
5
|
-
const variants$1 = require('./preset-mini.
|
|
5
|
+
const variants$1 = require('./preset-mini.c3ab5ec7.cjs');
|
|
6
6
|
|
|
7
7
|
const variantAria = {
|
|
8
8
|
name: "aria",
|
|
@@ -24,7 +24,7 @@ const variantAria = {
|
|
|
24
24
|
function calcMaxWidthBySize(size) {
|
|
25
25
|
const value = size.match(/^-?[0-9]+\.?[0-9]*/)?.[0] || "";
|
|
26
26
|
const unit = size.slice(value.length);
|
|
27
|
-
const maxWidth = parseFloat(value) - 0.1;
|
|
27
|
+
const maxWidth = Number.parseFloat(value) - 0.1;
|
|
28
28
|
return Number.isNaN(maxWidth) ? size : `${maxWidth}${unit}`;
|
|
29
29
|
}
|
|
30
30
|
function variantBreakpoints() {
|
|
@@ -424,26 +424,27 @@ const PseudoClasses = Object.fromEntries([
|
|
|
424
424
|
"visited",
|
|
425
425
|
"target",
|
|
426
426
|
["open", "[open]"],
|
|
427
|
-
"hover",
|
|
428
|
-
"active",
|
|
429
|
-
"focus-visible",
|
|
430
|
-
"focus-within",
|
|
431
|
-
"focus",
|
|
432
|
-
"autofill",
|
|
433
|
-
"enabled",
|
|
434
|
-
"disabled",
|
|
435
|
-
"read-only",
|
|
436
|
-
"read-write",
|
|
437
|
-
"placeholder-shown",
|
|
438
427
|
"default",
|
|
439
428
|
"checked",
|
|
440
429
|
"indeterminate",
|
|
430
|
+
"placeholder-shown",
|
|
431
|
+
"autofill",
|
|
432
|
+
"optional",
|
|
433
|
+
"required",
|
|
441
434
|
"valid",
|
|
442
435
|
"invalid",
|
|
443
436
|
"in-range",
|
|
444
437
|
"out-of-range",
|
|
445
|
-
"
|
|
446
|
-
"
|
|
438
|
+
"read-only",
|
|
439
|
+
"read-write",
|
|
440
|
+
"empty",
|
|
441
|
+
"focus-within",
|
|
442
|
+
"hover",
|
|
443
|
+
"focus",
|
|
444
|
+
"focus-visible",
|
|
445
|
+
"active",
|
|
446
|
+
"enabled",
|
|
447
|
+
"disabled",
|
|
447
448
|
"root",
|
|
448
449
|
"empty",
|
|
449
450
|
["even-of-type", ":nth-of-type(even)"],
|
|
@@ -464,9 +465,11 @@ const PseudoClasses = Object.fromEntries([
|
|
|
464
465
|
["marker", "::marker"],
|
|
465
466
|
["file", "::file-selector-button"]
|
|
466
467
|
].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
|
|
468
|
+
const PseudoClassesKeys = Object.keys(PseudoClasses);
|
|
467
469
|
const PseudoClassesColon = Object.fromEntries([
|
|
468
470
|
["backdrop", "::backdrop"]
|
|
469
471
|
].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
|
|
472
|
+
const PseudoClassesColonKeys = Object.keys(PseudoClassesColon);
|
|
470
473
|
const PseudoClassFunctions = [
|
|
471
474
|
"not",
|
|
472
475
|
"is",
|
|
@@ -476,25 +479,12 @@ const PseudoClassFunctions = [
|
|
|
476
479
|
const PseudoClassesStr = Object.entries(PseudoClasses).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
|
|
477
480
|
const PseudoClassesColonStr = Object.entries(PseudoClassesColon).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
|
|
478
481
|
const PseudoClassFunctionsStr = PseudoClassFunctions.join("|");
|
|
479
|
-
function pseudoModifier(pseudo) {
|
|
480
|
-
if (pseudo === "focus") {
|
|
481
|
-
return {
|
|
482
|
-
sort: 10,
|
|
483
|
-
noMerge: true
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
if (pseudo === "active") {
|
|
487
|
-
return {
|
|
488
|
-
sort: 20,
|
|
489
|
-
noMerge: true
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
482
|
function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
494
483
|
const rawRE = new RegExp(`^(${core.escapeRegExp(parent)}:)(\\S+)${core.escapeRegExp(combinator)}\\1`);
|
|
495
484
|
let splitRE;
|
|
496
485
|
let pseudoRE;
|
|
497
486
|
let pseudoColonRE;
|
|
487
|
+
let pseudoVarRE;
|
|
498
488
|
const matchBracket = (input) => {
|
|
499
489
|
const body = variants$1.variantGetBracket(`${tag}-`, input, []);
|
|
500
490
|
if (!body)
|
|
@@ -527,6 +517,19 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
527
517
|
pseudoKey
|
|
528
518
|
];
|
|
529
519
|
};
|
|
520
|
+
const matchPseudoVar = (input) => {
|
|
521
|
+
const match = input.match(pseudoVarRE);
|
|
522
|
+
if (!match)
|
|
523
|
+
return;
|
|
524
|
+
const [original, fn, pseudoValue] = match;
|
|
525
|
+
const label = match[3] ?? "";
|
|
526
|
+
const pseudo = `:${fn}(${pseudoValue})`;
|
|
527
|
+
return [
|
|
528
|
+
label,
|
|
529
|
+
input.slice(original.length),
|
|
530
|
+
`${parent}${core.escapeSelector(label)}${pseudo}`
|
|
531
|
+
];
|
|
532
|
+
};
|
|
530
533
|
return {
|
|
531
534
|
name: `pseudo:${tag}`,
|
|
532
535
|
match(input, ctx) {
|
|
@@ -534,10 +537,11 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
534
537
|
splitRE = new RegExp(`(?:${ctx.generator.config.separators.join("|")})`);
|
|
535
538
|
pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.join("|")})`);
|
|
536
539
|
pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
540
|
+
pseudoVarRE = new RegExp(`^${tag}-(?:(${PseudoClassFunctionsStr})-)?\\[(.+)\\](?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
537
541
|
}
|
|
538
542
|
if (!input.startsWith(tag))
|
|
539
543
|
return;
|
|
540
|
-
const result = matchBracket(input) || matchPseudo(input);
|
|
544
|
+
const result = matchBracket(input) || matchPseudo(input) || matchPseudoVar(input);
|
|
541
545
|
if (!result)
|
|
542
546
|
return;
|
|
543
547
|
const [label, matcher, prefix, pseudoName = ""] = result;
|
|
@@ -548,7 +552,7 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
|
|
|
548
552
|
handle: (input2, next) => next({
|
|
549
553
|
...input2,
|
|
550
554
|
prefix: `${prefix}${combinator}${input2.prefix}`.replace(rawRE, "$1$2:"),
|
|
551
|
-
|
|
555
|
+
sort: PseudoClassesKeys.indexOf(pseudoName) ?? PseudoClassesColonKeys.indexOf(pseudoName)
|
|
552
556
|
})
|
|
553
557
|
};
|
|
554
558
|
},
|
|
@@ -580,6 +584,11 @@ function variantPseudoClassesAndElements() {
|
|
|
580
584
|
const match = input.match(PseudoClassesAndElementsRE) || input.match(PseudoClassesAndElementsColonRE);
|
|
581
585
|
if (match) {
|
|
582
586
|
const pseudo = PseudoClasses[match[1]] || PseudoClassesColon[match[1]] || `:${match[1]}`;
|
|
587
|
+
let index = PseudoClassesKeys.indexOf(match[1]);
|
|
588
|
+
if (index === -1)
|
|
589
|
+
index = PseudoClassesColonKeys.indexOf(match[1]);
|
|
590
|
+
if (index === -1)
|
|
591
|
+
index = void 0;
|
|
583
592
|
return {
|
|
584
593
|
matcher: input.slice(match[0].length),
|
|
585
594
|
handle: (input2, next) => {
|
|
@@ -591,7 +600,8 @@ function variantPseudoClassesAndElements() {
|
|
|
591
600
|
return next({
|
|
592
601
|
...input2,
|
|
593
602
|
...selectors,
|
|
594
|
-
|
|
603
|
+
sort: index,
|
|
604
|
+
noMerge: true
|
|
595
605
|
});
|
|
596
606
|
}
|
|
597
607
|
};
|
|
@@ -604,16 +614,19 @@ function variantPseudoClassesAndElements() {
|
|
|
604
614
|
function variantPseudoClassFunctions() {
|
|
605
615
|
let PseudoClassFunctionsRE;
|
|
606
616
|
let PseudoClassColonFunctionsRE;
|
|
617
|
+
let PseudoClassVarFunctionRE;
|
|
607
618
|
return {
|
|
608
619
|
match(input, ctx) {
|
|
609
620
|
if (!(PseudoClassFunctionsRE && PseudoClassColonFunctionsRE)) {
|
|
610
621
|
PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})(?:${ctx.generator.config.separators.join("|")})`);
|
|
611
622
|
PseudoClassColonFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesColonStr})(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
623
|
+
PseudoClassVarFunctionRE = new RegExp(`^(${PseudoClassFunctionsStr})-(\\[.+\\])(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
|
|
612
624
|
}
|
|
613
|
-
const match = input.match(PseudoClassFunctionsRE) || input.match(PseudoClassColonFunctionsRE);
|
|
625
|
+
const match = input.match(PseudoClassFunctionsRE) || input.match(PseudoClassColonFunctionsRE) || input.match(PseudoClassVarFunctionRE);
|
|
614
626
|
if (match) {
|
|
615
627
|
const fn = match[1];
|
|
616
|
-
const
|
|
628
|
+
const fnVal = colors.getBracket(match[2], "[", "]");
|
|
629
|
+
const pseudo = fnVal ? colors.handler.bracket(match[2]) : PseudoClasses[match[2]] || PseudoClassesColon[match[2]] || `:${match[2]}`;
|
|
617
630
|
return {
|
|
618
631
|
matcher: input.slice(match[0].length),
|
|
619
632
|
selector: (s) => `${s}:${fn}(${pseudo})`
|
|
@@ -634,7 +647,7 @@ function variantTaggedPseudoClasses(options = {}) {
|
|
|
634
647
|
];
|
|
635
648
|
}
|
|
636
649
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
637
|
-
const
|
|
650
|
+
const variantPartClasses = {
|
|
638
651
|
match(input) {
|
|
639
652
|
const match = input.match(PartClassesRE);
|
|
640
653
|
if (match) {
|
|
@@ -665,7 +678,7 @@ function variants(options) {
|
|
|
665
678
|
variantPseudoClassesAndElements(),
|
|
666
679
|
variantPseudoClassFunctions(),
|
|
667
680
|
...variantTaggedPseudoClasses(options),
|
|
668
|
-
|
|
681
|
+
variantPartClasses,
|
|
669
682
|
...variantColorsMediaOrClass(options),
|
|
670
683
|
...variantLanguageDirections,
|
|
671
684
|
variantScope,
|
|
@@ -675,7 +688,6 @@ function variants(options) {
|
|
|
675
688
|
}
|
|
676
689
|
|
|
677
690
|
exports.calcMaxWidthBySize = calcMaxWidthBySize;
|
|
678
|
-
exports.partClasses = partClasses;
|
|
679
691
|
exports.variantAria = variantAria;
|
|
680
692
|
exports.variantBreakpoints = variantBreakpoints;
|
|
681
693
|
exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
|
|
@@ -688,6 +700,7 @@ exports.variantImportant = variantImportant;
|
|
|
688
700
|
exports.variantInternalLayer = variantInternalLayer;
|
|
689
701
|
exports.variantLanguageDirections = variantLanguageDirections;
|
|
690
702
|
exports.variantNegative = variantNegative;
|
|
703
|
+
exports.variantPartClasses = variantPartClasses;
|
|
691
704
|
exports.variantPrint = variantPrint;
|
|
692
705
|
exports.variantPseudoClassFunctions = variantPseudoClassFunctions;
|
|
693
706
|
exports.variantPseudoClassesAndElements = variantPseudoClassesAndElements;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.f3fc54d2.cjs');
|
|
4
|
-
const transform = require('./preset-mini.
|
|
4
|
+
const transform = require('./preset-mini.60fa5b43.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
|
-
require('./preset-mini.
|
|
6
|
+
require('./preset-mini.099ab35c.cjs');
|
|
7
7
|
|
|
8
8
|
const fontFamily = {
|
|
9
9
|
sans: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const transform = require('./preset-mini.
|
|
4
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const transform = require('./preset-mini.60fa5b43.cjs');
|
|
4
|
+
const colors = require('./preset-mini.099ab35c.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
7
7
|
const containerParent = [
|
package/dist/theme.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.f3fc54d2.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
8
|
-
require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.b9e9b262.cjs');
|
|
7
|
+
require('./shared/preset-mini.60fa5b43.cjs');
|
|
8
|
+
require('./shared/preset-mini.099ab35c.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
|
11
11
|
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './shared/preset-mini.1c66bf79.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.
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import './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.422a3875.mjs';
|
|
3
|
+
import './shared/preset-mini.6babd10a.mjs';
|
|
4
|
+
import './shared/preset-mini.64d922d5.mjs';
|
|
5
5
|
import '@unocss/core';
|
package/dist/utils.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const colors = require('./shared/preset-mini.
|
|
6
|
-
const variants = require('./shared/preset-mini.
|
|
5
|
+
const colors = require('./shared/preset-mini.099ab35c.cjs');
|
|
6
|
+
const variants = require('./shared/preset-mini.c3ab5ec7.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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.
|
|
2
|
-
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.
|
|
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.64d922d5.mjs';
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.bd1a81a2.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const _default = require('./shared/preset-mini.
|
|
6
|
-
require('./shared/preset-mini.
|
|
5
|
+
const _default = require('./shared/preset-mini.8d9dbf2c.cjs');
|
|
6
|
+
require('./shared/preset-mini.099ab35c.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
-
require('./shared/preset-mini.
|
|
8
|
+
require('./shared/preset-mini.c3ab5ec7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.calcMaxWidthBySize = _default.calcMaxWidthBySize;
|
|
13
|
-
exports.partClasses = _default.partClasses;
|
|
14
13
|
exports.variantAria = _default.variantAria;
|
|
15
14
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
16
15
|
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
@@ -23,6 +22,7 @@ exports.variantImportant = _default.variantImportant;
|
|
|
23
22
|
exports.variantInternalLayer = _default.variantInternalLayer;
|
|
24
23
|
exports.variantLanguageDirections = _default.variantLanguageDirections;
|
|
25
24
|
exports.variantNegative = _default.variantNegative;
|
|
25
|
+
exports.variantPartClasses = _default.variantPartClasses;
|
|
26
26
|
exports.variantPrint = _default.variantPrint;
|
|
27
27
|
exports.variantPseudoClassFunctions = _default.variantPseudoClassFunctions;
|
|
28
28
|
exports.variantPseudoClassesAndElements = _default.variantPseudoClassesAndElements;
|
package/dist/variants.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ declare const variantNegative: Variant;
|
|
|
38
38
|
declare function variantPseudoClassesAndElements(): VariantObject;
|
|
39
39
|
declare function variantPseudoClassFunctions(): VariantObject;
|
|
40
40
|
declare function variantTaggedPseudoClasses(options?: PresetMiniOptions): VariantObject[];
|
|
41
|
-
declare const
|
|
41
|
+
declare const variantPartClasses: VariantObject;
|
|
42
42
|
|
|
43
43
|
declare const variantSupports: VariantObject;
|
|
44
44
|
|
|
45
|
-
export { calcMaxWidthBySize,
|
|
45
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize,
|
|
2
|
-
import './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, 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, u as variantPartClasses, 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.82cf398e.mjs';
|
|
2
|
+
import './shared/preset-mini.64d922d5.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.bd1a81a2.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
65
|
-
"@unocss/extractor-arbitrary-variants": "0.
|
|
64
|
+
"@unocss/core": "0.53.0",
|
|
65
|
+
"@unocss/extractor-arbitrary-variants": "0.53.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "unbuild",
|