@unocss/preset-mini 0.51.7 → 0.51.12

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 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');
7
+ require('./shared/preset-mini.7d460309.cjs');
8
+ const _default$1 = require('./shared/preset-mini.8c29bee5.cjs');
9
+ const colors$1 = require('./shared/preset-mini.672f16f3.cjs');
10
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');
11
+ const _default = require('./shared/preset-mini.3182ca67.cjs');
12
+ const _default$2 = require('./shared/preset-mini.9bdb6db7.cjs');
13
+ require('./shared/preset-mini.24af02a9.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.2567d03f.mjs';
4
- import { r as rules } from './shared/preset-mini.d2d0b8e1.mjs';
5
- export { p as parseColor } from './shared/preset-mini.acf4efb2.mjs';
3
+ import './shared/preset-mini.9c42e0cb.mjs';
4
+ import { r as rules } from './shared/preset-mini.679fa935.mjs';
5
+ export { p as parseColor } from './shared/preset-mini.d8c6aa5a.mjs';
6
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';
7
+ import { t as theme } from './shared/preset-mini.22d40856.mjs';
8
+ export { t as theme } from './shared/preset-mini.22d40856.mjs';
9
+ import { v as variants } from './shared/preset-mini.1481d11a.mjs';
10
+ import './shared/preset-mini.092a0f28.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.7d460309.cjs');
6
+ const _default = require('./shared/preset-mini.8c29bee5.cjs');
7
+ require('./shared/preset-mini.672f16f3.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, 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.9c42e0cb.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.679fa935.mjs';
3
+ import './shared/preset-mini.d8c6aa5a.mjs';
4
4
  import '@unocss/core';
@@ -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.d8c6aa5a.mjs';
3
3
 
4
4
  function variantMatcher(name, handler) {
5
5
  let re;
@@ -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.d8c6aa5a.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.092a0f28.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
@@ -1,7 +1,7 @@
1
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';
2
+ import { T as transformBase, U as boxShadowsBase, V as ringBase } from './preset-mini.9c42e0cb.mjs';
3
3
  import '@unocss/core';
4
- import './preset-mini.acf4efb2.mjs';
4
+ import './preset-mini.d8c6aa5a.mjs';
5
5
 
6
6
  const fontFamily = {
7
7
  sans: [
@@ -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.672f16f3.cjs');
5
5
 
6
6
  function variantMatcher(name, handler) {
7
7
  let re;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.bb7dc365.cjs');
4
- const transform = require('./preset-mini.7d527935.cjs');
4
+ const transform = require('./preset-mini.7d460309.cjs');
5
5
  require('@unocss/core');
6
- require('./preset-mini.d7d4b4ea.cjs');
6
+ require('./preset-mini.672f16f3.cjs');
7
7
 
8
8
  const fontFamily = {
9
9
  sans: [
@@ -402,6 +402,8 @@ function parseColor$1(body, theme) {
402
402
  let color;
403
403
  const bracket = handler.bracketOfColor(main);
404
404
  const bracketOrMain = bracket || main;
405
+ if (handler.numberWithUnit(bracketOrMain))
406
+ return;
405
407
  if (bracketOrMain.match(/^#[\da-fA-F]+/g))
406
408
  color = bracketOrMain;
407
409
  else if (bracketOrMain.match(/^hex-[\da-fA-F]+/g))
@@ -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.9c42e0cb.mjs';
2
+ import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.d8c6aa5a.mjs';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
5
5
  const containerParent = [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.d7d4b4ea.cjs');
3
+ const colors = require('./preset-mini.672f16f3.cjs');
4
4
  const core = require('@unocss/core');
5
5
 
6
6
  const verticalAlignAlias = {
@@ -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.7d460309.cjs');
4
+ const colors = require('./preset-mini.672f16f3.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
7
7
  const containerParent = [
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.d7d4b4ea.cjs');
3
+ const colors = require('./preset-mini.672f16f3.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.950e178f.cjs');
5
+ const variants$1 = require('./preset-mini.24af02a9.cjs');
6
6
 
7
7
  const variantAria = {
8
8
  name: "aria",
@@ -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.d8c6aa5a.mjs';
2
2
  import { toArray } from '@unocss/core';
3
3
 
4
4
  const verticalAlignAlias = {
@@ -400,6 +400,8 @@ function parseColor$1(body, theme) {
400
400
  let color;
401
401
  const bracket = handler.bracketOfColor(main);
402
402
  const bracketOrMain = bracket || main;
403
+ if (handler.numberWithUnit(bracketOrMain))
404
+ return;
403
405
  if (bracketOrMain.match(/^#[\da-fA-F]+/g))
404
406
  color = bracketOrMain;
405
407
  else if (bracketOrMain.match(/^hex-[\da-fA-F]+/g))
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.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');
6
+ const _default = require('./shared/preset-mini.3182ca67.cjs');
7
+ require('./shared/preset-mini.7d460309.cjs');
8
+ require('./shared/preset-mini.672f16f3.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.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';
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.22d40856.mjs';
3
+ import './shared/preset-mini.9c42e0cb.mjs';
4
+ import './shared/preset-mini.d8c6aa5a.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.d7d4b4ea.cjs');
6
- const variants = require('./shared/preset-mini.950e178f.cjs');
5
+ const colors = require('./shared/preset-mini.672f16f3.cjs');
6
+ const variants = require('./shared/preset-mini.24af02a9.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.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.d8c6aa5a.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.092a0f28.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.9bdb6db7.cjs');
6
+ require('./shared/preset-mini.672f16f3.cjs');
7
7
  require('@unocss/core');
8
- require('./shared/preset-mini.950e178f.cjs');
8
+ require('./shared/preset-mini.24af02a9.cjs');
9
9
 
10
10
 
11
11
 
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.1481d11a.mjs';
2
+ import './shared/preset-mini.d8c6aa5a.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.780f5e22.mjs';
4
+ import './shared/preset-mini.092a0f28.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.51.7",
3
+ "version": "0.51.12",
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.7",
65
- "@unocss/extractor-arbitrary-variants": "0.51.7"
64
+ "@unocss/core": "0.51.12",
65
+ "@unocss/extractor-arbitrary-variants": "0.51.12"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",