@unocss/preset-mini 0.51.2 → 0.51.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs 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.fea712fb.cjs');
8
- const _default$1 = require('./shared/preset-mini.4b2d3970.cjs');
9
- const colors$1 = require('./shared/preset-mini.2be263e2.cjs');
7
+ require('./shared/preset-mini.ec9a9ad9.cjs');
8
+ const _default$1 = require('./shared/preset-mini.91256db5.cjs');
9
+ const colors$1 = require('./shared/preset-mini.d7d4b4ea.cjs');
10
10
  const colors = require('./shared/preset-mini.bb7dc365.cjs');
11
- const _default = require('./shared/preset-mini.2c84a1da.cjs');
12
- const _default$2 = require('./shared/preset-mini.d5c98806.cjs');
13
- require('./shared/preset-mini.c4fc86b9.cjs');
11
+ const _default = require('./shared/preset-mini.5e320038.cjs');
12
+ const _default$2 = require('./shared/preset-mini.1baba2d5.cjs');
13
+ require('./shared/preset-mini.950e178f.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.94514c53.mjs';
4
- import { r as rules } from './shared/preset-mini.b53c93f8.mjs';
5
- export { p as parseColor } from './shared/preset-mini.617e6696.mjs';
3
+ import './shared/preset-mini.7cde01b2.mjs';
4
+ import { r as rules } from './shared/preset-mini.eeb53fee.mjs';
5
+ export { p as parseColor } from './shared/preset-mini.acf4efb2.mjs';
6
6
  export { c as colors } from './shared/preset-mini.74b45c11.mjs';
7
- import { t as theme } from './shared/preset-mini.d3cd9ef2.mjs';
8
- export { t as theme } from './shared/preset-mini.d3cd9ef2.mjs';
9
- import { v as variants } from './shared/preset-mini.6c99525c.mjs';
10
- import './shared/preset-mini.6c20780a.mjs';
7
+ import { t as theme } from './shared/preset-mini.ea93a64e.mjs';
8
+ export { t as theme } from './shared/preset-mini.ea93a64e.mjs';
9
+ import { v as variants } from './shared/preset-mini.780dcf0b.mjs';
10
+ import './shared/preset-mini.780f5e22.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.fea712fb.cjs');
6
- const _default = require('./shared/preset-mini.4b2d3970.cjs');
7
- require('./shared/preset-mini.2be263e2.cjs');
5
+ const transform = require('./shared/preset-mini.ec9a9ad9.cjs');
6
+ const _default = require('./shared/preset-mini.91256db5.cjs');
7
+ require('./shared/preset-mini.d7d4b4ea.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, V as borderStyles, a as borders, r as boxShadows, T as boxShadowsBase, N as boxSizing, C as breaks, R as contains, c as contentVisibility, e as contents, v as cursors, d as displays, L as floats, q as fontSmoothings, p as fontStyles, f as fonts, W as handlerBorderStyle, K 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, U 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, S as transformBase, P as transforms, O as transitions, A as userSelects, X as varEmpty, z as verticalAligns, B as whitespaces, Q as willChange, M as zIndexes } from './shared/preset-mini.94514c53.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.b53c93f8.mjs';
3
- import './shared/preset-mini.617e6696.mjs';
1
+ export { I as alignments, F as appearance, w as appearances, b as bgColors, V as borderStyles, a as borders, r as boxShadows, T as boxShadowsBase, N as boxSizing, C as breaks, R as contains, c as contentVisibility, e as contents, v as cursors, d as displays, L as floats, q as fontSmoothings, p as fontStyles, f as fonts, W as handlerBorderStyle, K 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, U 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, S as transformBase, P as transforms, O as transitions, A as userSelects, X as varEmpty, z as verticalAligns, B as whitespaces, Q as willChange, M as zIndexes } from './shared/preset-mini.7cde01b2.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.eeb53fee.mjs';
3
+ import './shared/preset-mini.acf4efb2.mjs';
4
4
  import '@unocss/core';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.2be263e2.cjs');
3
+ const colors = require('./preset-mini.d7d4b4ea.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.c4fc86b9.cjs');
5
+ const variants$1 = require('./preset-mini.950e178f.cjs');
6
6
 
7
7
  const variantAria = {
8
8
  name: "aria",
@@ -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.fea712fb.cjs');
4
+ const transform = require('./preset-mini.ec9a9ad9.cjs');
5
5
  require('@unocss/core');
6
- require('./preset-mini.2be263e2.cjs');
6
+ require('./preset-mini.d7d4b4ea.cjs');
7
7
 
8
8
  const fontFamily = {
9
9
  sans: [
@@ -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.617e6696.mjs';
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';
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.6c20780a.mjs';
3
+ import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.780f5e22.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
@@ -1,5 +1,5 @@
1
1
  import { escapeRegExp } from '@unocss/core';
2
- import { q as getBracket } from './preset-mini.617e6696.mjs';
2
+ import { q as getBracket } from './preset-mini.acf4efb2.mjs';
3
3
 
4
4
  function variantMatcher(name, handler) {
5
5
  let re;
@@ -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.617e6696.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.acf4efb2.mjs';
2
2
  import { toArray } from '@unocss/core';
3
3
 
4
4
  const verticalAlignAlias = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.fea712fb.cjs');
4
- const colors = require('./preset-mini.2be263e2.cjs');
3
+ const transform = require('./preset-mini.ec9a9ad9.cjs');
4
+ const colors = require('./preset-mini.d7d4b4ea.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
7
7
  const containerParent = [
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@unocss/core');
4
- const colors = require('./preset-mini.2be263e2.cjs');
4
+ const colors = require('./preset-mini.d7d4b4ea.cjs');
5
5
 
6
6
  function variantMatcher(name, handler) {
7
7
  let re;
@@ -217,6 +217,8 @@ function number(str) {
217
217
  function percent(str) {
218
218
  if (str.endsWith("%"))
219
219
  str = str.slice(0, -1);
220
+ if (!numberRE.test(str))
221
+ return;
220
222
  const num = parseFloat(str);
221
223
  if (!Number.isNaN(num))
222
224
  return `${round(num / 100)}`;
@@ -219,6 +219,8 @@ function number(str) {
219
219
  function percent(str) {
220
220
  if (str.endsWith("%"))
221
221
  str = str.slice(0, -1);
222
+ if (!numberRE.test(str))
223
+ return;
222
224
  const num = parseFloat(str);
223
225
  if (!Number.isNaN(num))
224
226
  return `${round(num / 100)}`;
@@ -1,7 +1,7 @@
1
1
  import { c as colors } from './preset-mini.74b45c11.mjs';
2
- import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.94514c53.mjs';
2
+ import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.7cde01b2.mjs';
3
3
  import '@unocss/core';
4
- import './preset-mini.617e6696.mjs';
4
+ import './preset-mini.acf4efb2.mjs';
5
5
 
6
6
  const fontFamily = {
7
7
  sans: [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.2be263e2.cjs');
3
+ const colors = require('./preset-mini.d7d4b4ea.cjs');
4
4
  const core = require('@unocss/core');
5
5
 
6
6
  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 insets, L as floats, M as zIndexes, N as boxSizing, O as transitions, P as transforms, Q as willChange, R as contains } from './preset-mini.94514c53.mjs';
2
- import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.617e6696.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 insets, L as floats, M as zIndexes, N as boxSizing, O as transitions, P as transforms, Q as willChange, R as contains } from './preset-mini.7cde01b2.mjs';
2
+ import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.acf4efb2.mjs';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
5
5
  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.bb7dc365.cjs');
6
- const _default = require('./shared/preset-mini.2c84a1da.cjs');
7
- require('./shared/preset-mini.fea712fb.cjs');
8
- require('./shared/preset-mini.2be263e2.cjs');
6
+ const _default = require('./shared/preset-mini.5e320038.cjs');
7
+ require('./shared/preset-mini.ec9a9ad9.cjs');
8
+ require('./shared/preset-mini.d7d4b4ea.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.d3cd9ef2.mjs';
3
- import './shared/preset-mini.94514c53.mjs';
4
- import './shared/preset-mini.617e6696.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.ea93a64e.mjs';
3
+ import './shared/preset-mini.7cde01b2.mjs';
4
+ import './shared/preset-mini.acf4efb2.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.2be263e2.cjs');
6
- const variants = require('./shared/preset-mini.c4fc86b9.cjs');
5
+ const colors = require('./shared/preset-mini.d7d4b4ea.cjs');
6
+ const variants = require('./shared/preset-mini.950e178f.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.617e6696.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.6c20780a.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.acf4efb2.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.780f5e22.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.d5c98806.cjs');
6
- require('./shared/preset-mini.2be263e2.cjs');
5
+ const _default = require('./shared/preset-mini.1baba2d5.cjs');
6
+ require('./shared/preset-mini.d7d4b4ea.cjs');
7
7
  require('@unocss/core');
8
- require('./shared/preset-mini.c4fc86b9.cjs');
8
+ require('./shared/preset-mini.950e178f.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.6c99525c.mjs';
2
- import './shared/preset-mini.617e6696.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.780dcf0b.mjs';
2
+ import './shared/preset-mini.acf4efb2.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.6c20780a.mjs';
4
+ import './shared/preset-mini.780f5e22.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
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.2",
65
- "@unocss/extractor-arbitrary-variants": "0.51.2"
64
+ "@unocss/core": "0.51.3",
65
+ "@unocss/extractor-arbitrary-variants": "0.51.3"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",