@unocss/preset-mini 0.51.12 → 0.51.13
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/{colors-e683aa85.d.ts → colors-9b4e2c30.d.ts} +31 -11
- package/dist/colors.cjs +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/colors.mjs +1 -1
- package/dist/{default-d9218dd5.d.ts → default-e9b20bc4.d.ts} +31 -11
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +8 -8
- package/dist/rules.cjs +3 -3
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.8c29bee5.cjs → preset-mini.0ce92be0.cjs} +2 -2
- package/dist/shared/{preset-mini.22d40856.mjs → preset-mini.14f33713.mjs} +3 -3
- package/dist/shared/{preset-mini.74b45c11.mjs → preset-mini.1c66bf79.mjs} +1 -1
- package/dist/shared/{preset-mini.1481d11a.mjs → preset-mini.27c86dd4.mjs} +2 -2
- package/dist/shared/{preset-mini.9bdb6db7.cjs → preset-mini.3e77961f.cjs} +2 -2
- package/dist/shared/{preset-mini.679fa935.mjs → preset-mini.58153c06.mjs} +2 -2
- package/dist/shared/{preset-mini.d8c6aa5a.mjs → preset-mini.9dd74f3a.mjs} +7 -0
- package/dist/shared/{preset-mini.7d460309.cjs → preset-mini.b1660e10.cjs} +2 -1
- package/dist/shared/{preset-mini.3182ca67.cjs → preset-mini.bd2381f0.cjs} +3 -3
- package/dist/shared/{preset-mini.9c42e0cb.mjs → preset-mini.d166766b.mjs} +2 -1
- package/dist/shared/{preset-mini.24af02a9.cjs → preset-mini.dd2d059b.cjs} +1 -1
- package/dist/shared/{preset-mini.092a0f28.mjs → preset-mini.dfe8388f.mjs} +1 -1
- package/dist/shared/{preset-mini.bb7dc365.cjs → preset-mini.f3fc54d2.cjs} +1 -1
- package/dist/shared/{preset-mini.672f16f3.cjs → preset-mini.fcd935e5.cjs} +7 -0
- package/dist/theme.cjs +4 -4
- package/dist/theme.d.ts +4 -4
- package/dist/theme.mjs +4 -4
- package/dist/{types-f73ecdfe.d.ts → types-c1be36b6.d.ts} +3 -1
- package/dist/{utilities-73daa267.d.ts → utilities-50ca92a9.d.ts} +1 -1
- package/dist/utils.cjs +2 -2
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +2 -2
- package/dist/variants.cjs +3 -3
- package/dist/variants.d.ts +4 -4
- package/dist/variants.mjs +3 -3
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Colors } from './types-
|
|
1
|
+
import { C as Colors } from './types-c1be36b6.js';
|
|
2
2
|
|
|
3
3
|
declare const colors: {
|
|
4
4
|
inherit: string;
|
|
@@ -318,16 +318,36 @@ declare const colors: {
|
|
|
318
318
|
900: string;
|
|
319
319
|
950: string;
|
|
320
320
|
};
|
|
321
|
-
readonly lightblue: string | Colors
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
readonly
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
readonly
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
readonly
|
|
321
|
+
readonly lightblue: string | (Colors & {
|
|
322
|
+
DEFAULT?: string | undefined;
|
|
323
|
+
});
|
|
324
|
+
readonly lightBlue: string | (Colors & {
|
|
325
|
+
DEFAULT?: string | undefined;
|
|
326
|
+
});
|
|
327
|
+
readonly warmgray: string | (Colors & {
|
|
328
|
+
DEFAULT?: string | undefined;
|
|
329
|
+
});
|
|
330
|
+
readonly warmGray: string | (Colors & {
|
|
331
|
+
DEFAULT?: string | undefined;
|
|
332
|
+
});
|
|
333
|
+
readonly truegray: string | (Colors & {
|
|
334
|
+
DEFAULT?: string | undefined;
|
|
335
|
+
});
|
|
336
|
+
readonly trueGray: string | (Colors & {
|
|
337
|
+
DEFAULT?: string | undefined;
|
|
338
|
+
});
|
|
339
|
+
readonly coolgray: string | (Colors & {
|
|
340
|
+
DEFAULT?: string | undefined;
|
|
341
|
+
});
|
|
342
|
+
readonly coolGray: string | (Colors & {
|
|
343
|
+
DEFAULT?: string | undefined;
|
|
344
|
+
});
|
|
345
|
+
readonly bluegray: string | (Colors & {
|
|
346
|
+
DEFAULT?: string | undefined;
|
|
347
|
+
});
|
|
348
|
+
readonly blueGray: string | (Colors & {
|
|
349
|
+
DEFAULT?: string | undefined;
|
|
350
|
+
});
|
|
331
351
|
};
|
|
332
352
|
|
|
333
353
|
export { colors as c };
|
package/dist/colors.cjs
CHANGED
package/dist/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
import './types-
|
|
1
|
+
export { c as colors } from './colors-9b4e2c30.js';
|
|
2
|
+
import './types-c1be36b6.js';
|
|
3
3
|
import '@unocss/core';
|
package/dist/colors.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as colors } from './shared/preset-mini.
|
|
1
|
+
export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Colors } from './types-
|
|
1
|
+
import { C as Colors } from './types-c1be36b6.js';
|
|
2
2
|
|
|
3
3
|
declare const theme: {
|
|
4
4
|
width: {
|
|
@@ -511,16 +511,36 @@ declare const theme: {
|
|
|
511
511
|
900: string;
|
|
512
512
|
950: string;
|
|
513
513
|
};
|
|
514
|
-
readonly lightblue: string | Colors
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
readonly
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
readonly
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
readonly
|
|
514
|
+
readonly lightblue: string | (Colors & {
|
|
515
|
+
DEFAULT?: string | undefined;
|
|
516
|
+
});
|
|
517
|
+
readonly lightBlue: string | (Colors & {
|
|
518
|
+
DEFAULT?: string | undefined;
|
|
519
|
+
});
|
|
520
|
+
readonly warmgray: string | (Colors & {
|
|
521
|
+
DEFAULT?: string | undefined;
|
|
522
|
+
});
|
|
523
|
+
readonly warmGray: string | (Colors & {
|
|
524
|
+
DEFAULT?: string | undefined;
|
|
525
|
+
});
|
|
526
|
+
readonly truegray: string | (Colors & {
|
|
527
|
+
DEFAULT?: string | undefined;
|
|
528
|
+
});
|
|
529
|
+
readonly trueGray: string | (Colors & {
|
|
530
|
+
DEFAULT?: string | undefined;
|
|
531
|
+
});
|
|
532
|
+
readonly coolgray: string | (Colors & {
|
|
533
|
+
DEFAULT?: string | undefined;
|
|
534
|
+
});
|
|
535
|
+
readonly coolGray: string | (Colors & {
|
|
536
|
+
DEFAULT?: string | undefined;
|
|
537
|
+
});
|
|
538
|
+
readonly bluegray: string | (Colors & {
|
|
539
|
+
DEFAULT?: string | undefined;
|
|
540
|
+
});
|
|
541
|
+
readonly blueGray: string | (Colors & {
|
|
542
|
+
DEFAULT?: string | undefined;
|
|
543
|
+
});
|
|
524
544
|
};
|
|
525
545
|
fontFamily: {
|
|
526
546
|
sans: string;
|
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.
|
|
10
|
-
const colors = require('./shared/preset-mini.
|
|
11
|
-
const _default = require('./shared/preset-mini.
|
|
12
|
-
const _default$2 = require('./shared/preset-mini.
|
|
13
|
-
require('./shared/preset-mini.
|
|
7
|
+
require('./shared/preset-mini.b1660e10.cjs');
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.0ce92be0.cjs');
|
|
9
|
+
const colors$1 = require('./shared/preset-mini.fcd935e5.cjs');
|
|
10
|
+
const colors = require('./shared/preset-mini.f3fc54d2.cjs');
|
|
11
|
+
const _default = require('./shared/preset-mini.bd2381f0.cjs');
|
|
12
|
+
const _default$2 = require('./shared/preset-mini.3e77961f.cjs');
|
|
13
|
+
require('./shared/preset-mini.dd2d059b.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
|
16
16
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
|
|
2
|
-
export { c as colors } from './colors-
|
|
3
|
-
export { t as theme } from './default-
|
|
4
|
-
import { T as Theme } from './types-
|
|
5
|
-
export { T as Theme, a as ThemeAnimation } from './types-
|
|
6
|
-
export { p as parseColor } from './utilities-
|
|
2
|
+
export { c as colors } from './colors-9b4e2c30.js';
|
|
3
|
+
export { t as theme } from './default-e9b20bc4.js';
|
|
4
|
+
import { T as Theme } from './types-c1be36b6.js';
|
|
5
|
+
export { T as Theme, a as ThemeAnimation } from './types-c1be36b6.js';
|
|
6
|
+
export { p as parseColor } from './utilities-50ca92a9.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
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.
|
|
6
|
-
export { c as colors } from './shared/preset-mini.
|
|
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.
|
|
3
|
+
import './shared/preset-mini.d166766b.mjs';
|
|
4
|
+
import { r as rules } from './shared/preset-mini.58153c06.mjs';
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.9dd74f3a.mjs';
|
|
6
|
+
export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
|
|
7
|
+
import { t as theme } from './shared/preset-mini.14f33713.mjs';
|
|
8
|
+
export { t as theme } from './shared/preset-mini.14f33713.mjs';
|
|
9
|
+
import { v as variants } from './shared/preset-mini.27c86dd4.mjs';
|
|
10
|
+
import './shared/preset-mini.dfe8388f.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.b1660e10.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.0ce92be0.cjs');
|
|
7
|
+
require('./shared/preset-mini.fcd935e5.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
10
10
|
|
package/dist/rules.d.ts
CHANGED
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as alignments, F as appearance, w as appearances, b as bgColors, W as borderStyles, a as borders, r as boxShadows, U 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, X 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, V 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 transformBase, Q as transforms, P as transitions, A as userSelects, Y 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, W as borderStyles, a as borders, r as boxShadows, U 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, X 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, V 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 transformBase, Q as transforms, P as transitions, A as userSelects, Y as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.d166766b.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.58153c06.mjs';
|
|
3
|
+
import './shared/preset-mini.9dd74f3a.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -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.b1660e10.cjs');
|
|
4
|
+
const colors = require('./preset-mini.fcd935e5.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
7
7
|
const containerParent = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as colors } from './preset-mini.
|
|
2
|
-
import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.
|
|
1
|
+
import { c as colors } from './preset-mini.1c66bf79.mjs';
|
|
2
|
+
import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.d166766b.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './preset-mini.
|
|
4
|
+
import './preset-mini.9dd74f3a.mjs';
|
|
5
5
|
|
|
6
6
|
const fontFamily = {
|
|
7
7
|
sans: [
|
|
@@ -348,7 +348,7 @@ const colors = {
|
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
Object.values(colors).forEach((color) => {
|
|
351
|
-
if (typeof color !== "string") {
|
|
351
|
+
if (typeof color !== "string" && color !== void 0) {
|
|
352
352
|
color.DEFAULT = color.DEFAULT || color[400];
|
|
353
353
|
Object.keys(color).forEach((key) => {
|
|
354
354
|
const short = +key / 100;
|
|
@@ -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.9dd74f3a.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.dfe8388f.mjs';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
6
6
|
name: "aria",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.fcd935e5.cjs');
|
|
4
4
|
const core = require('@unocss/core');
|
|
5
|
-
const variants$1 = require('./preset-mini.
|
|
5
|
+
const variants$1 = require('./preset-mini.dd2d059b.cjs');
|
|
6
6
|
|
|
7
7
|
const variantAria = {
|
|
8
8
|
name: "aria",
|
|
@@ -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 } 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 } from './preset-mini.d166766b.mjs';
|
|
2
|
+
import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.9dd74f3a.mjs';
|
|
3
3
|
import { warnOnce } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const containerParent = [
|
|
@@ -251,6 +251,8 @@ function bracketWithType(str, requiredType) {
|
|
|
251
251
|
return;
|
|
252
252
|
if (base === '=""')
|
|
253
253
|
return;
|
|
254
|
+
if (base.startsWith("--"))
|
|
255
|
+
base = `var(${base})`;
|
|
254
256
|
let curly = 0;
|
|
255
257
|
for (const i of base) {
|
|
256
258
|
if (i === "[") {
|
|
@@ -409,6 +411,11 @@ function parseColor$1(body, theme) {
|
|
|
409
411
|
else if (main.startsWith("$"))
|
|
410
412
|
color = handler.cssvar(main);
|
|
411
413
|
color = color || bracket;
|
|
414
|
+
if (!color) {
|
|
415
|
+
const colorData = getThemeColor(theme, [main]);
|
|
416
|
+
if (typeof colorData === "string")
|
|
417
|
+
color = colorData;
|
|
418
|
+
}
|
|
412
419
|
let no = "DEFAULT";
|
|
413
420
|
if (!color) {
|
|
414
421
|
let colorData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.fcd935e5.cjs');
|
|
4
4
|
const core = require('@unocss/core');
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
@@ -363,6 +363,7 @@ const justifies = [
|
|
|
363
363
|
["justify-between", { "justify-content": "space-between" }],
|
|
364
364
|
["justify-around", { "justify-content": "space-around" }],
|
|
365
365
|
["justify-evenly", { "justify-content": "space-evenly" }],
|
|
366
|
+
["justify-stretch", { "justify-content": "stretch" }],
|
|
366
367
|
...colors.makeGlobalStaticRules("justify", "justify-content"),
|
|
367
368
|
["justify-items-start", { "justify-items": "start" }],
|
|
368
369
|
["justify-items-end", { "justify-items": "end" }],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
4
|
-
const transform = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.f3fc54d2.cjs');
|
|
4
|
+
const transform = require('./preset-mini.b1660e10.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
|
-
require('./preset-mini.
|
|
6
|
+
require('./preset-mini.fcd935e5.cjs');
|
|
7
7
|
|
|
8
8
|
const fontFamily = {
|
|
9
9
|
sans: [
|
|
@@ -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.9dd74f3a.mjs';
|
|
2
2
|
import { toArray } from '@unocss/core';
|
|
3
3
|
|
|
4
4
|
const verticalAlignAlias = {
|
|
@@ -361,6 +361,7 @@ const justifies = [
|
|
|
361
361
|
["justify-between", { "justify-content": "space-between" }],
|
|
362
362
|
["justify-around", { "justify-content": "space-around" }],
|
|
363
363
|
["justify-evenly", { "justify-content": "space-evenly" }],
|
|
364
|
+
["justify-stretch", { "justify-content": "stretch" }],
|
|
364
365
|
...makeGlobalStaticRules("justify", "justify-content"),
|
|
365
366
|
["justify-items-start", { "justify-items": "start" }],
|
|
366
367
|
["justify-items-end", { "justify-items": "end" }],
|
|
@@ -350,7 +350,7 @@ const colors = {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
Object.values(colors).forEach((color) => {
|
|
353
|
-
if (typeof color !== "string") {
|
|
353
|
+
if (typeof color !== "string" && color !== void 0) {
|
|
354
354
|
color.DEFAULT = color.DEFAULT || color[400];
|
|
355
355
|
Object.keys(color).forEach((key) => {
|
|
356
356
|
const short = +key / 100;
|
|
@@ -253,6 +253,8 @@ function bracketWithType(str, requiredType) {
|
|
|
253
253
|
return;
|
|
254
254
|
if (base === '=""')
|
|
255
255
|
return;
|
|
256
|
+
if (base.startsWith("--"))
|
|
257
|
+
base = `var(${base})`;
|
|
256
258
|
let curly = 0;
|
|
257
259
|
for (const i of base) {
|
|
258
260
|
if (i === "[") {
|
|
@@ -411,6 +413,11 @@ function parseColor$1(body, theme) {
|
|
|
411
413
|
else if (main.startsWith("$"))
|
|
412
414
|
color = handler.cssvar(main);
|
|
413
415
|
color = color || bracket;
|
|
416
|
+
if (!color) {
|
|
417
|
+
const colorData = getThemeColor(theme, [main]);
|
|
418
|
+
if (typeof colorData === "string")
|
|
419
|
+
color = colorData;
|
|
420
|
+
}
|
|
414
421
|
let no = "DEFAULT";
|
|
415
422
|
if (!color) {
|
|
416
423
|
let colorData;
|
package/dist/theme.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
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.
|
|
8
|
-
require('./shared/preset-mini.
|
|
5
|
+
const colors = require('./shared/preset-mini.f3fc54d2.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.bd2381f0.cjs');
|
|
7
|
+
require('./shared/preset-mini.b1660e10.cjs');
|
|
8
|
+
require('./shared/preset-mini.fcd935e5.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
|
11
11
|
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
export { t as theme } from './default-
|
|
3
|
-
import { T as Theme } from './types-
|
|
4
|
-
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-
|
|
1
|
+
export { c as colors } from './colors-9b4e2c30.js';
|
|
2
|
+
export { t as theme } from './default-e9b20bc4.js';
|
|
3
|
+
import { T as Theme } from './types-c1be36b6.js';
|
|
4
|
+
export { C as Colors, T as Theme, a as ThemeAnimation } from './types-c1be36b6.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
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.
|
|
4
|
-
import './shared/preset-mini.
|
|
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.14f33713.mjs';
|
|
3
|
+
import './shared/preset-mini.d166766b.mjs';
|
|
4
|
+
import './shared/preset-mini.9dd74f3a.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-c1be36b6.js';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
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.fcd935e5.cjs');
|
|
6
|
+
const variants = require('./shared/preset-mini.dd2d059b.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './utilities-
|
|
4
|
-
import './types-
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './utilities-50ca92a9.js';
|
|
4
|
+
import './types-c1be36b6.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
@@ -72,8 +72,8 @@ declare namespace handlers {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
declare const handler: _unocss_core.ValueHandler<"number" | "
|
|
76
|
-
declare const h: _unocss_core.ValueHandler<"number" | "
|
|
75
|
+
declare const handler: _unocss_core.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
76
|
+
declare const h: _unocss_core.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
77
77
|
|
|
78
78
|
declare function variantMatcher(name: string, handler: (input: VariantHandlerContext) => Record<string, any>): VariantObject;
|
|
79
79
|
declare function variantParentMatcher(name: string, parent: string): VariantObject;
|
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.9dd74f3a.mjs';
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.dfe8388f.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.
|
|
6
|
-
require('./shared/preset-mini.
|
|
5
|
+
const _default = require('./shared/preset-mini.3e77961f.cjs');
|
|
6
|
+
require('./shared/preset-mini.fcd935e5.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
-
require('./shared/preset-mini.
|
|
8
|
+
require('./shared/preset-mini.dd2d059b.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.js';
|
|
3
|
-
import { T as Theme } from './types-
|
|
4
|
-
import './colors-
|
|
5
|
-
import './default-
|
|
6
|
-
import './utilities-
|
|
3
|
+
import { T as Theme } from './types-c1be36b6.js';
|
|
4
|
+
import './colors-9b4e2c30.js';
|
|
5
|
+
import './default-e9b20bc4.js';
|
|
6
|
+
import './utilities-50ca92a9.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
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.
|
|
2
|
-
import './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.27c86dd4.mjs';
|
|
2
|
+
import './shared/preset-mini.9dd74f3a.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.dfe8388f.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.13",
|
|
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.51.
|
|
65
|
-
"@unocss/extractor-arbitrary-variants": "0.51.
|
|
64
|
+
"@unocss/core": "0.51.13",
|
|
65
|
+
"@unocss/extractor-arbitrary-variants": "0.51.13"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "unbuild",
|