@unocss/preset-mini 0.50.0 → 0.50.2

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
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const core = require('@unocss/core');
6
- require('./shared/preset-mini.181fe24f.cjs');
7
- const _default$1 = require('./shared/preset-mini.5c7c30ee.cjs');
8
- const colors$1 = require('./shared/preset-mini.f9ff00ee.cjs');
6
+ require('./shared/preset-mini.e96e6b4a.cjs');
7
+ const _default$1 = require('./shared/preset-mini.2f75df7e.cjs');
8
+ const colors$1 = require('./shared/preset-mini.2be263e2.cjs');
9
9
  const colors = require('./shared/preset-mini.30606736.cjs');
10
- const _default = require('./shared/preset-mini.2d0ee6de.cjs');
11
- const _default$2 = require('./shared/preset-mini.9d26b7a9.cjs');
12
- require('./shared/preset-mini.7086e6db.cjs');
10
+ const _default = require('./shared/preset-mini.fc0fd434.cjs');
11
+ const _default$2 = require('./shared/preset-mini.ef35a101.cjs');
12
+ require('./shared/preset-mini.4a5aade9.cjs');
13
13
 
14
14
  const preflights = [
15
15
  {
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { entriesToCss, toArray } from '@unocss/core';
2
- import './shared/preset-mini.d64fd3fe.mjs';
3
- import { r as rules } from './shared/preset-mini.0a5a2758.mjs';
4
- export { p as parseColor } from './shared/preset-mini.5eaf6188.mjs';
2
+ import './shared/preset-mini.761cdd48.mjs';
3
+ import { r as rules } from './shared/preset-mini.be40d10c.mjs';
4
+ export { p as parseColor } from './shared/preset-mini.617e6696.mjs';
5
5
  export { c as colors } from './shared/preset-mini.65ac75be.mjs';
6
- import { t as theme } from './shared/preset-mini.cfa259e4.mjs';
7
- export { t as theme } from './shared/preset-mini.cfa259e4.mjs';
8
- import { v as variants } from './shared/preset-mini.58ce8ebe.mjs';
9
- import './shared/preset-mini.ca55daef.mjs';
6
+ import { t as theme } from './shared/preset-mini.f9468448.mjs';
7
+ export { t as theme } from './shared/preset-mini.f9468448.mjs';
8
+ import { v as variants } from './shared/preset-mini.9d7e4452.mjs';
9
+ import './shared/preset-mini.305062ab.mjs';
10
10
 
11
11
  const preflights = [
12
12
  {
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.181fe24f.cjs');
6
- const _default = require('./shared/preset-mini.5c7c30ee.cjs');
7
- require('./shared/preset-mini.f9ff00ee.cjs');
5
+ const transform = require('./shared/preset-mini.e96e6b4a.cjs');
6
+ const _default = require('./shared/preset-mini.2f75df7e.cjs');
7
+ require('./shared/preset-mini.2be263e2.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.d64fd3fe.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.0a5a2758.mjs';
3
- import './shared/preset-mini.5eaf6188.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.761cdd48.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.be40d10c.mjs';
3
+ import './shared/preset-mini.617e6696.mjs';
4
4
  import '@unocss/core';
@@ -249,6 +249,8 @@ function bracketWithType(str, requiredType) {
249
249
  }
250
250
  if (!base)
251
251
  return;
252
+ if (base === '=""')
253
+ return;
252
254
  let curly = 0;
253
255
  for (const i of base) {
254
256
  if (i === "[") {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.181fe24f.cjs');
4
- const colors = require('./preset-mini.f9ff00ee.cjs');
3
+ const transform = require('./preset-mini.e96e6b4a.cjs');
4
+ const colors = require('./preset-mini.2be263e2.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
7
7
  const containerParent = [
@@ -1,5 +1,5 @@
1
1
  import { escapeRegExp } from '@unocss/core';
2
- import { q as getBracket } from './preset-mini.5eaf6188.mjs';
2
+ import { q as getBracket } from './preset-mini.617e6696.mjs';
3
3
 
4
4
  const variantMatcher = (name, handler) => {
5
5
  let re;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@unocss/core');
4
- const colors = require('./preset-mini.f9ff00ee.cjs');
4
+ const colors = require('./preset-mini.2be263e2.cjs');
5
5
 
6
6
  const variantMatcher = (name, handler) => {
7
7
  let re;
@@ -247,6 +247,8 @@ function bracketWithType(str, requiredType) {
247
247
  }
248
248
  if (!base)
249
249
  return;
250
+ if (base === '=""')
251
+ return;
250
252
  let curly = 0;
251
253
  for (const i of base) {
252
254
  if (i === "[") {
@@ -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.5eaf6188.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.617e6696.mjs';
2
2
  import { toArray } from '@unocss/core';
3
3
 
4
4
  const verticalAlignAlias = {
@@ -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.5eaf6188.mjs';
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';
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.ca55daef.mjs';
3
+ import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.305062ab.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
@@ -33,7 +33,7 @@ const variantBreakpoints = () => {
33
33
  const variantEntries = Object.entries(resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
34
34
  for (const [point, size, idx] of variantEntries) {
35
35
  if (!regexCache[point])
36
- regexCache[point] = new RegExp(`^((?:[al]t-)?${point}(?:${context.generator.config.separators.join("|")}))`);
36
+ regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
37
37
  const match = matcher.match(regexCache[point]);
38
38
  if (!match)
39
39
  continue;
@@ -41,8 +41,8 @@ const variantBreakpoints = () => {
41
41
  const m = matcher.slice(pre.length);
42
42
  if (m === "container")
43
43
  continue;
44
- const isLtPrefix = pre.startsWith("lt-");
45
- const isAtPrefix = pre.startsWith("at-");
44
+ const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
45
+ const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
46
46
  let order = 1e3;
47
47
  if (isLtPrefix) {
48
48
  order -= idx + 1;
@@ -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.d64fd3fe.mjs';
2
- import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.5eaf6188.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.761cdd48.mjs';
2
+ import { h as handler, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.617e6696.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.f9ff00ee.cjs');
3
+ const colors = require('./preset-mini.2be263e2.cjs');
4
4
  const core = require('@unocss/core');
5
5
 
6
6
  const verticalAlignAlias = {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.f9ff00ee.cjs');
3
+ const colors = require('./preset-mini.2be263e2.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.7086e6db.cjs');
5
+ const variants$1 = require('./preset-mini.4a5aade9.cjs');
6
6
 
7
7
  const variantAria = {
8
8
  name: "aria",
@@ -35,7 +35,7 @@ const variantBreakpoints = () => {
35
35
  const variantEntries = Object.entries(colors.resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
36
36
  for (const [point, size, idx] of variantEntries) {
37
37
  if (!regexCache[point])
38
- regexCache[point] = new RegExp(`^((?:[al]t-)?${point}(?:${context.generator.config.separators.join("|")}))`);
38
+ regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
39
39
  const match = matcher.match(regexCache[point]);
40
40
  if (!match)
41
41
  continue;
@@ -43,8 +43,8 @@ const variantBreakpoints = () => {
43
43
  const m = matcher.slice(pre.length);
44
44
  if (m === "container")
45
45
  continue;
46
- const isLtPrefix = pre.startsWith("lt-");
47
- const isAtPrefix = pre.startsWith("at-");
46
+ const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
47
+ const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
48
48
  let order = 1e3;
49
49
  if (isLtPrefix) {
50
50
  order -= idx + 1;
@@ -1,7 +1,7 @@
1
1
  import { c as colors } from './preset-mini.65ac75be.mjs';
2
- import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.d64fd3fe.mjs';
2
+ import { S as transformBase, T as boxShadowsBase, U as ringBase } from './preset-mini.761cdd48.mjs';
3
3
  import '@unocss/core';
4
- import './preset-mini.5eaf6188.mjs';
4
+ import './preset-mini.617e6696.mjs';
5
5
 
6
6
  const fontFamily = {
7
7
  sans: [
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.30606736.cjs');
4
- const transform = require('./preset-mini.181fe24f.cjs');
4
+ const transform = require('./preset-mini.e96e6b4a.cjs');
5
5
  require('@unocss/core');
6
- require('./preset-mini.f9ff00ee.cjs');
6
+ require('./preset-mini.2be263e2.cjs');
7
7
 
8
8
  const fontFamily = {
9
9
  sans: [
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.30606736.cjs');
6
- const _default = require('./shared/preset-mini.2d0ee6de.cjs');
7
- require('./shared/preset-mini.181fe24f.cjs');
8
- require('./shared/preset-mini.f9ff00ee.cjs');
6
+ const _default = require('./shared/preset-mini.fc0fd434.cjs');
7
+ require('./shared/preset-mini.e96e6b4a.cjs');
8
+ require('./shared/preset-mini.2be263e2.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.65ac75be.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.cfa259e4.mjs';
3
- import './shared/preset-mini.d64fd3fe.mjs';
4
- import './shared/preset-mini.5eaf6188.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.f9468448.mjs';
3
+ import './shared/preset-mini.761cdd48.mjs';
4
+ import './shared/preset-mini.617e6696.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.f9ff00ee.cjs');
6
- const variants = require('./shared/preset-mini.7086e6db.cjs');
5
+ const colors = require('./shared/preset-mini.2be263e2.cjs');
6
+ const variants = require('./shared/preset-mini.4a5aade9.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.5eaf6188.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.ca55daef.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.617e6696.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.305062ab.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.9d26b7a9.cjs');
6
- require('./shared/preset-mini.f9ff00ee.cjs');
5
+ const _default = require('./shared/preset-mini.ef35a101.cjs');
6
+ require('./shared/preset-mini.2be263e2.cjs');
7
7
  require('@unocss/core');
8
- require('./shared/preset-mini.7086e6db.cjs');
8
+ require('./shared/preset-mini.4a5aade9.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.58ce8ebe.mjs';
2
- import './shared/preset-mini.5eaf6188.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.9d7e4452.mjs';
2
+ import './shared/preset-mini.617e6696.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.ca55daef.mjs';
4
+ import './shared/preset-mini.305062ab.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.50.0",
3
+ "version": "0.50.2",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.50.0"
64
+ "@unocss/core": "0.50.2"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",