@unocss/preset-mini 66.1.0-beta.8 → 66.1.0

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.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { entriesToCss, toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { g as globalKeywords } from './shared/preset-mini.Q9MCfKj3.mjs';
4
- export { k as parseColor } from './shared/preset-mini.Q9MCfKj3.mjs';
5
- import { j as variants } from './shared/preset-mini.Bj22ZzV1.mjs';
6
- import { r as rules } from './shared/preset-mini.DOOo96_D.mjs';
7
- import { t as theme } from './shared/preset-mini.HR8qseZe.mjs';
3
+ import { g as globalKeywords } from './shared/preset-mini.DrfPDgwn.mjs';
4
+ export { k as parseColor } from './shared/preset-mini.DrfPDgwn.mjs';
5
+ import { j as variants } from './shared/preset-mini.C-YrfzXL.mjs';
6
+ import { r as rules } from './shared/preset-mini.DD6O2PIA.mjs';
7
+ import { t as theme } from './shared/preset-mini.DSyW8MIa.mjs';
8
8
  export { colors } from './colors.mjs';
9
9
  import '@unocss/rule-utils';
10
- import './shared/preset-mini.TU9YjwzX.mjs';
10
+ import './shared/preset-mini.S_lRiJh3.mjs';
11
11
 
12
12
  function preflights(options) {
13
13
  if (options.preflight) {
package/dist/rules.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.DOOo96_D.mjs';
2
- export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.TU9YjwzX.mjs';
3
- import './shared/preset-mini.Q9MCfKj3.mjs';
1
+ export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.DD6O2PIA.mjs';
2
+ export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.S_lRiJh3.mjs';
3
+ import './shared/preset-mini.DrfPDgwn.mjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/rule-utils';
@@ -1,5 +1,5 @@
1
1
  import { variantGetParameter, variantMatcher, variantGetBracket, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
2
- import { a as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, e as cssMathFnRE, f as cssVarFnRE } from './preset-mini.Q9MCfKj3.mjs';
2
+ import { a as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, e as cssMathFnRE, f as cssVarFnRE } from './preset-mini.DrfPDgwn.mjs';
3
3
  import { toArray, escapeRegExp, escapeSelector } from '@unocss/core';
4
4
 
5
5
  const variantAria = {
@@ -16,7 +16,8 @@ const variantAria = {
16
16
  };
17
17
  }
18
18
  }
19
- }
19
+ },
20
+ multiPass: true
20
21
  };
21
22
  function taggedAria(tagName) {
22
23
  return {
@@ -222,7 +223,8 @@ const variantDataAttribute = {
222
223
  };
223
224
  }
224
225
  }
225
- }
226
+ },
227
+ multiPass: true
226
228
  };
227
229
  function taggedData(tagName) {
228
230
  return {
@@ -627,9 +629,9 @@ function taggedPseudoClassMatcher(tag, parent, combinator) {
627
629
  match(input, ctx) {
628
630
  if (!(splitRE && pseudoRE && pseudoColonRE)) {
629
631
  splitRE = new RegExp(`(?:${ctx.generator.config.separators.join("|")})`);
630
- pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.join("|")})`);
631
- pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
632
- pseudoVarRE = new RegExp(`^${tag}-(?:(${PseudoClassFunctionsStr})-)?\\[(.+)\\](?:(/\\w+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
632
+ pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/[\\w-]+))?(?:${ctx.generator.config.separators.join("|")})`);
633
+ pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/[\\w-]+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
634
+ pseudoVarRE = new RegExp(`^${tag}-(?:(${PseudoClassFunctionsStr})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${ctx.generator.config.separators.filter((x) => x !== "-").join("|")})`);
633
635
  }
634
636
  if (!input.startsWith(tag))
635
637
  return;
@@ -1,6 +1,6 @@
1
- import { g as globalKeywords, a as h, t as isCSSMathFn, l as colorResolver, d as directionMap, n as hasParseableColor, c as cornerMap, k as parseColor, u as isSize, q as makeGlobalStaticRules, i as insetMap, r as resolveBreakpoints, j as directionSize, s as splitShorthand, m as colorableShadows } from './preset-mini.Q9MCfKj3.mjs';
1
+ import { g as globalKeywords, a as h, t as isCSSMathFn, l as colorResolver, d as directionMap, n as hasParseableColor, c as cornerMap, k as parseColor, u as isSize, q as makeGlobalStaticRules, i as insetMap, r as resolveBreakpoints, j as directionSize, s as splitShorthand, m as colorableShadows } from './preset-mini.DrfPDgwn.mjs';
2
2
  import { colorToString, colorOpacityToString } from '@unocss/rule-utils';
3
- import { g as contains, p as pointerEvents, e as appearances, d as displays, s as transforms, f as cursors, u as userSelects, h as resizes, l as textOverflows, w as whitespaces, k as breaks, t as textWraps, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, i as contentVisibility, j as contents } from './preset-mini.TU9YjwzX.mjs';
3
+ import { g as contains, p as pointerEvents, e as appearances, d as displays, s as transforms, f as cursors, u as userSelects, h as resizes, l as textOverflows, w as whitespaces, k as breaks, t as textWraps, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, i as contentVisibility, j as contents } from './preset-mini.S_lRiJh3.mjs';
4
4
  import { toArray } from '@unocss/core';
5
5
 
6
6
  const verticalAlignAlias = {
@@ -1,5 +1,5 @@
1
1
  import { colors } from '../colors.mjs';
2
- import { r as ringBase, b as boxShadowsBase, q as transformBase } from './preset-mini.TU9YjwzX.mjs';
2
+ import { r as ringBase, b as boxShadowsBase, q as transformBase } from './preset-mini.S_lRiJh3.mjs';
3
3
 
4
4
  const blur = {
5
5
  "DEFAULT": "8px",
@@ -478,7 +478,7 @@ function parseColor(body, theme, key) {
478
478
  }
479
479
  function colorResolver(property, varName, key, shouldPass) {
480
480
  return ([, body], { theme, generator }) => {
481
- const data = parseColor(body, theme, key);
481
+ const data = parseColor(body ?? "", theme, key);
482
482
  if (!data)
483
483
  return;
484
484
  const { alpha, color, cssColor } = data;
@@ -1,4 +1,4 @@
1
- import { q as makeGlobalStaticRules, a as h, g as globalKeywords, l as colorResolver, t as isCSSMathFn, n as hasParseableColor, m as colorableShadows, p as positionMap, w as transformXYZ } from './preset-mini.Q9MCfKj3.mjs';
1
+ import { q as makeGlobalStaticRules, a as h, g as globalKeywords, l as colorResolver, t as isCSSMathFn, n as hasParseableColor, m as colorableShadows, p as positionMap, w as transformXYZ } from './preset-mini.DrfPDgwn.mjs';
2
2
 
3
3
  const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
4
4
  const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
package/dist/theme.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { colors } from './colors.mjs';
2
- export { u as baseSize, A as blockSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, G as containers, d as dropShadow, m as duration, f as fontFamily, a as fontSize, i as fontWeight, C as height, B as inlineSize, h as letterSpacing, l as lineHeight, k as lineWidth, E as maxBlockSize, D as maxHeight, F as maxInlineSize, y as maxWidth, p as media, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.HR8qseZe.mjs';
3
- import './shared/preset-mini.TU9YjwzX.mjs';
4
- import './shared/preset-mini.Q9MCfKj3.mjs';
2
+ export { u as baseSize, A as blockSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, G as containers, d as dropShadow, m as duration, f as fontFamily, a as fontSize, i as fontWeight, C as height, B as inlineSize, h as letterSpacing, l as lineHeight, k as lineWidth, E as maxBlockSize, D as maxHeight, F as maxInlineSize, y as maxWidth, p as media, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.DSyW8MIa.mjs';
3
+ import './shared/preset-mini.S_lRiJh3.mjs';
4
+ import './shared/preset-mini.DrfPDgwn.mjs';
5
5
  import '@unocss/core';
6
6
  import '@unocss/rule-utils';
package/dist/utils.d.mts CHANGED
@@ -43,8 +43,8 @@ declare namespace handlers {
43
43
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
44
44
  }
45
45
 
46
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
46
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
48
48
 
49
49
  declare const directionMap: Record<string, string[]>;
50
50
  declare const insetMap: Record<string, string[]>;
package/dist/utils.d.ts CHANGED
@@ -43,8 +43,8 @@ declare namespace handlers {
43
43
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
44
44
  }
45
45
 
46
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
46
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
48
48
 
49
49
  declare const directionMap: Record<string, string[]>;
50
50
  declare const insetMap: Record<string, string[]>;
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_MINI_NO_NEGATIVE, l as colorResolver, m as colorableShadows, c as cornerMap, e as cssMathFnRE, f as cssVarFnRE, d as directionMap, j as directionSize, g as globalKeywords, a as h, h as handler, n as hasParseableColor, i as insetMap, t as isCSSMathFn, u as isSize, q as makeGlobalStaticRules, k as parseColor, p as positionMap, r as resolveBreakpoints, o as resolveVerticalBreakpoints, s as splitShorthand, w as transformXYZ, v as valueHandlers, b as xyzArray, x as xyzMap } from './shared/preset-mini.Q9MCfKj3.mjs';
1
+ export { C as CONTROL_MINI_NO_NEGATIVE, l as colorResolver, m as colorableShadows, c as cornerMap, e as cssMathFnRE, f as cssVarFnRE, d as directionMap, j as directionSize, g as globalKeywords, a as h, h as handler, n as hasParseableColor, i as insetMap, t as isCSSMathFn, u as isSize, q as makeGlobalStaticRules, k as parseColor, p as positionMap, r as resolveBreakpoints, o as resolveVerticalBreakpoints, s as splitShorthand, w as transformXYZ, v as valueHandlers, b as xyzArray, x as xyzMap } from './shared/preset-mini.DrfPDgwn.mjs';
2
2
  export * from '@unocss/rule-utils';
3
3
  import '@unocss/core';
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as calcMaxWidthBySize, v as variantAria, b as variantBreakpoints, d as variantChildren, g as variantColorsMediaOrClass, e as variantCombinators, f as variantContainerQuery, p as variantCssLayer, n as variantCustomMedia, h as variantDataAttribute, l as variantImportant, q as variantInternalLayer, k as variantLanguageDirections, u as variantNegative, z as variantPartClasses, m as variantPrint, x as variantPseudoClassFunctions, w as variantPseudoClassesAndElements, r as variantScope, o as variantSelector, A as variantStartingStyle, B as variantSupports, a as variantTaggedAriaAttributes, i as variantTaggedDataAttributes, y as variantTaggedPseudoClasses, t as variantTheme, s as variantVariables, j as variants } from './shared/preset-mini.Bj22ZzV1.mjs';
1
+ export { c as calcMaxWidthBySize, v as variantAria, b as variantBreakpoints, d as variantChildren, g as variantColorsMediaOrClass, e as variantCombinators, f as variantContainerQuery, p as variantCssLayer, n as variantCustomMedia, h as variantDataAttribute, l as variantImportant, q as variantInternalLayer, k as variantLanguageDirections, u as variantNegative, z as variantPartClasses, m as variantPrint, x as variantPseudoClassFunctions, w as variantPseudoClassesAndElements, r as variantScope, o as variantSelector, A as variantStartingStyle, B as variantSupports, a as variantTaggedAriaAttributes, i as variantTaggedDataAttributes, y as variantTaggedPseudoClasses, t as variantTheme, s as variantVariables, j as variants } from './shared/preset-mini.C-YrfzXL.mjs';
2
2
  import '@unocss/rule-utils';
3
- import './shared/preset-mini.Q9MCfKj3.mjs';
3
+ import './shared/preset-mini.DrfPDgwn.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
3
  "type": "module",
4
- "version": "66.1.0-beta.8",
4
+ "version": "66.1.0",
5
5
  "description": "The minimal preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -56,9 +56,9 @@
56
56
  "dist"
57
57
  ],
58
58
  "dependencies": {
59
- "@unocss/core": "66.1.0-beta.8",
60
- "@unocss/rule-utils": "66.1.0-beta.8",
61
- "@unocss/extractor-arbitrary-variants": "66.1.0-beta.8"
59
+ "@unocss/extractor-arbitrary-variants": "66.1.0",
60
+ "@unocss/core": "66.1.0",
61
+ "@unocss/rule-utils": "66.1.0"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "unbuild",