@unocss/preset-mini 0.51.8 → 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.
Files changed (37) hide show
  1. package/dist/{colors-e683aa85.d.ts → colors-9b4e2c30.d.ts} +31 -11
  2. package/dist/colors.cjs +1 -1
  3. package/dist/colors.d.ts +2 -2
  4. package/dist/colors.mjs +1 -1
  5. package/dist/{default-d9218dd5.d.ts → default-e9b20bc4.d.ts} +31 -11
  6. package/dist/index.cjs +7 -7
  7. package/dist/index.d.ts +5 -5
  8. package/dist/index.mjs +8 -8
  9. package/dist/rules.cjs +3 -3
  10. package/dist/rules.d.ts +1 -1
  11. package/dist/rules.mjs +3 -3
  12. package/dist/shared/{preset-mini.218f1eb5.cjs → preset-mini.0ce92be0.cjs} +2 -2
  13. package/dist/shared/{preset-mini.a3539008.mjs → preset-mini.14f33713.mjs} +3 -3
  14. package/dist/shared/{preset-mini.74b45c11.mjs → preset-mini.1c66bf79.mjs} +1 -1
  15. package/dist/shared/{preset-mini.780dcf0b.mjs → preset-mini.27c86dd4.mjs} +2 -2
  16. package/dist/shared/{preset-mini.1baba2d5.cjs → preset-mini.3e77961f.cjs} +2 -2
  17. package/dist/shared/{preset-mini.d2d0b8e1.mjs → preset-mini.58153c06.mjs} +2 -2
  18. package/dist/shared/{preset-mini.acf4efb2.mjs → preset-mini.9dd74f3a.mjs} +9 -0
  19. package/dist/shared/{preset-mini.7d527935.cjs → preset-mini.b1660e10.cjs} +2 -1
  20. package/dist/shared/{preset-mini.3b69091e.cjs → preset-mini.bd2381f0.cjs} +3 -3
  21. package/dist/shared/{preset-mini.2567d03f.mjs → preset-mini.d166766b.mjs} +2 -1
  22. package/dist/shared/{preset-mini.950e178f.cjs → preset-mini.dd2d059b.cjs} +1 -1
  23. package/dist/shared/{preset-mini.780f5e22.mjs → preset-mini.dfe8388f.mjs} +1 -1
  24. package/dist/shared/{preset-mini.bb7dc365.cjs → preset-mini.f3fc54d2.cjs} +1 -1
  25. package/dist/shared/{preset-mini.d7d4b4ea.cjs → preset-mini.fcd935e5.cjs} +9 -0
  26. package/dist/theme.cjs +4 -4
  27. package/dist/theme.d.ts +4 -4
  28. package/dist/theme.mjs +4 -4
  29. package/dist/{types-f73ecdfe.d.ts → types-c1be36b6.d.ts} +3 -1
  30. package/dist/{utilities-73daa267.d.ts → utilities-50ca92a9.d.ts} +1 -1
  31. package/dist/utils.cjs +2 -2
  32. package/dist/utils.d.ts +4 -4
  33. package/dist/utils.mjs +2 -2
  34. package/dist/variants.cjs +3 -3
  35. package/dist/variants.d.ts +4 -4
  36. package/dist/variants.mjs +3 -3
  37. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './types-f73ecdfe.js';
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
- readonly lightBlue: string | Colors;
323
- readonly warmgray: string | Colors;
324
- readonly warmGray: string | Colors;
325
- readonly truegray: string | Colors;
326
- readonly trueGray: string | Colors;
327
- readonly coolgray: string | Colors;
328
- readonly coolGray: string | Colors;
329
- readonly bluegray: string | Colors;
330
- readonly blueGray: string | Colors;
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const colors = require('./shared/preset-mini.bb7dc365.cjs');
5
+ const colors = require('./shared/preset-mini.f3fc54d2.cjs');
6
6
 
7
7
 
8
8
 
package/dist/colors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { c as colors } from './colors-e683aa85.js';
2
- import './types-f73ecdfe.js';
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.74b45c11.mjs';
1
+ export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './types-f73ecdfe.js';
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
- readonly lightBlue: string | Colors;
516
- readonly warmgray: string | Colors;
517
- readonly warmGray: string | Colors;
518
- readonly truegray: string | Colors;
519
- readonly trueGray: string | Colors;
520
- readonly coolgray: string | Colors;
521
- readonly coolGray: string | Colors;
522
- readonly bluegray: string | Colors;
523
- readonly blueGray: string | Colors;
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.7d527935.cjs');
8
- const _default$1 = require('./shared/preset-mini.218f1eb5.cjs');
9
- const colors$1 = require('./shared/preset-mini.d7d4b4ea.cjs');
10
- const colors = require('./shared/preset-mini.bb7dc365.cjs');
11
- const _default = require('./shared/preset-mini.3b69091e.cjs');
12
- const _default$2 = require('./shared/preset-mini.1baba2d5.cjs');
13
- require('./shared/preset-mini.950e178f.cjs');
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-e683aa85.js';
3
- export { t as theme } from './default-d9218dd5.js';
4
- import { T as Theme } from './types-f73ecdfe.js';
5
- export { T as Theme, a as ThemeAnimation } from './types-f73ecdfe.js';
6
- export { p as parseColor } from './utilities-73daa267.js';
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.2567d03f.mjs';
4
- import { r as rules } from './shared/preset-mini.d2d0b8e1.mjs';
5
- export { p as parseColor } from './shared/preset-mini.acf4efb2.mjs';
6
- export { c as colors } from './shared/preset-mini.74b45c11.mjs';
7
- import { t as theme } from './shared/preset-mini.a3539008.mjs';
8
- export { t as theme } from './shared/preset-mini.a3539008.mjs';
9
- import { v as variants } from './shared/preset-mini.780dcf0b.mjs';
10
- import './shared/preset-mini.780f5e22.mjs';
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.7d527935.cjs');
6
- const _default = require('./shared/preset-mini.218f1eb5.cjs');
7
- require('./shared/preset-mini.d7d4b4ea.cjs');
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
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './types-f73ecdfe.js';
2
+ import { T as Theme } from './types-c1be36b6.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
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.2567d03f.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.d2d0b8e1.mjs';
3
- import './shared/preset-mini.acf4efb2.mjs';
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.7d527935.cjs');
4
- const colors = require('./preset-mini.d7d4b4ea.cjs');
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.74b45c11.mjs';
2
- import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.2567d03f.mjs';
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.acf4efb2.mjs';
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.acf4efb2.mjs';
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.780f5e22.mjs';
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.d7d4b4ea.cjs');
3
+ const colors = require('./preset-mini.fcd935e5.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.950e178f.cjs');
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.2567d03f.mjs';
2
- import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.acf4efb2.mjs';
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 === "[") {
@@ -400,6 +402,8 @@ function parseColor$1(body, theme) {
400
402
  let color;
401
403
  const bracket = handler.bracketOfColor(main);
402
404
  const bracketOrMain = bracket || main;
405
+ if (handler.numberWithUnit(bracketOrMain))
406
+ return;
403
407
  if (bracketOrMain.match(/^#[\da-fA-F]+/g))
404
408
  color = bracketOrMain;
405
409
  else if (bracketOrMain.match(/^hex-[\da-fA-F]+/g))
@@ -407,6 +411,11 @@ function parseColor$1(body, theme) {
407
411
  else if (main.startsWith("$"))
408
412
  color = handler.cssvar(main);
409
413
  color = color || bracket;
414
+ if (!color) {
415
+ const colorData = getThemeColor(theme, [main]);
416
+ if (typeof colorData === "string")
417
+ color = colorData;
418
+ }
410
419
  let no = "DEFAULT";
411
420
  if (!color) {
412
421
  let colorData;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.d7d4b4ea.cjs');
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.bb7dc365.cjs');
4
- const transform = require('./preset-mini.7d527935.cjs');
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.d7d4b4ea.cjs');
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.acf4efb2.mjs';
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" }],
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@unocss/core');
4
- const colors = require('./preset-mini.d7d4b4ea.cjs');
4
+ const colors = require('./preset-mini.fcd935e5.cjs');
5
5
 
6
6
  function variantMatcher(name, handler) {
7
7
  let re;
@@ -1,5 +1,5 @@
1
1
  import { escapeRegExp } from '@unocss/core';
2
- import { q as getBracket } from './preset-mini.acf4efb2.mjs';
2
+ import { q as getBracket } from './preset-mini.9dd74f3a.mjs';
3
3
 
4
4
  function variantMatcher(name, handler) {
5
5
  let re;
@@ -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 === "[") {
@@ -402,6 +404,8 @@ function parseColor$1(body, theme) {
402
404
  let color;
403
405
  const bracket = handler.bracketOfColor(main);
404
406
  const bracketOrMain = bracket || main;
407
+ if (handler.numberWithUnit(bracketOrMain))
408
+ return;
405
409
  if (bracketOrMain.match(/^#[\da-fA-F]+/g))
406
410
  color = bracketOrMain;
407
411
  else if (bracketOrMain.match(/^hex-[\da-fA-F]+/g))
@@ -409,6 +413,11 @@ function parseColor$1(body, theme) {
409
413
  else if (main.startsWith("$"))
410
414
  color = handler.cssvar(main);
411
415
  color = color || bracket;
416
+ if (!color) {
417
+ const colorData = getThemeColor(theme, [main]);
418
+ if (typeof colorData === "string")
419
+ color = colorData;
420
+ }
412
421
  let no = "DEFAULT";
413
422
  if (!color) {
414
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.bb7dc365.cjs');
6
- const _default = require('./shared/preset-mini.3b69091e.cjs');
7
- require('./shared/preset-mini.7d527935.cjs');
8
- require('./shared/preset-mini.d7d4b4ea.cjs');
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-e683aa85.js';
2
- export { t as theme } from './default-d9218dd5.js';
3
- import { T as Theme } from './types-f73ecdfe.js';
4
- export { C as Colors, T as Theme, a as ThemeAnimation } from './types-f73ecdfe.js';
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.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.a3539008.mjs';
3
- import './shared/preset-mini.2567d03f.mjs';
4
- import './shared/preset-mini.acf4efb2.mjs';
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';
@@ -8,7 +8,9 @@ interface ThemeAnimation {
8
8
  counts?: Record<string, string | number>;
9
9
  }
10
10
  interface Colors {
11
- [key: string]: Colors | string;
11
+ [key: string]: Colors & {
12
+ DEFAULT?: string;
13
+ } | string;
12
14
  }
13
15
  interface Theme {
14
16
  width?: Record<string, string>;
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './types-f73ecdfe.js';
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.d7d4b4ea.cjs');
6
- const variants = require('./shared/preset-mini.950e178f.cjs');
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-73daa267.js';
4
- import './types-f73ecdfe.js';
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" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
76
- declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
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.acf4efb2.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.780f5e22.mjs';
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.1baba2d5.cjs');
6
- require('./shared/preset-mini.d7d4b4ea.cjs');
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.950e178f.cjs');
8
+ require('./shared/preset-mini.dd2d059b.cjs');
9
9
 
10
10
 
11
11
 
@@ -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-f73ecdfe.js';
4
- import './colors-e683aa85.js';
5
- import './default-d9218dd5.js';
6
- import './utilities-73daa267.js';
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.780dcf0b.mjs';
2
- import './shared/preset-mini.acf4efb2.mjs';
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.780f5e22.mjs';
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.8",
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",
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-mini#readme",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/unocss/unocss.git",
11
+ "url": "https://github.com/unocss/unocss",
12
12
  "directory": "packages/preset-mini"
13
13
  },
14
14
  "bugs": {
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.51.8",
65
- "@unocss/extractor-arbitrary-variants": "0.51.8"
64
+ "@unocss/core": "0.51.13",
65
+ "@unocss/extractor-arbitrary-variants": "0.51.13"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",