@unocss/preset-mini 66.6.0-beta.1 → 66.6.1

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,7 +1,7 @@
1
- import { C as globalKeywords, d as parseColor } from "./utils-DLpYZ57Q.mjs";
2
- import { t as rules } from "./rules-Cc0JK3VG.mjs";
1
+ import { C as globalKeywords, d as parseColor } from "./utils-BiEVyyOJ.mjs";
2
+ import { t as rules } from "./rules-aqtHAH03.mjs";
3
3
  import { t as colors } from "./colors-Cxq9P2g9.mjs";
4
- import { t as theme } from "./theme-B2Jp9h34.mjs";
4
+ import { t as theme } from "./theme-4sCaBcHb.mjs";
5
5
  import { variants } from "./variants.mjs";
6
6
  import { definePreset, entriesToCss, toArray } from "@unocss/core";
7
7
  import { extractorArbitraryVariants } from "@unocss/extractor-arbitrary-variants";
@@ -1,4 +1,4 @@
1
- import { C as globalKeywords, S as directionMap, T as positionMap, a as colorableShadows, c as isCSSMathFn, d as parseColor, f as resolveBreakpoints, g as h, h as transformXYZ, i as colorResolver, l as isSize, m as splitShorthand, o as directionSize, s as hasParseableColor, u as makeGlobalStaticRules, w as insetMap, y as cornerMap } from "./utils-DLpYZ57Q.mjs";
1
+ import { C as globalKeywords, S as directionMap, T as positionMap, a as colorableShadows, c as isCSSMathFn, d as parseColor, f as resolveBreakpoints, g as h, h as transformXYZ, i as colorResolver, l as isSize, m as splitShorthand, o as directionSize, s as hasParseableColor, u as makeGlobalStaticRules, w as insetMap, y as cornerMap } from "./utils-BiEVyyOJ.mjs";
2
2
  import { toArray } from "@unocss/core";
3
3
  import { colorOpacityToString, colorToString } from "@unocss/rule-utils";
4
4
 
@@ -1162,6 +1162,7 @@ const transformCpu = [
1162
1162
  "scaleY(var(--un-scale-y))"
1163
1163
  ].join(" ");
1164
1164
  const transform = [
1165
+ "perspective(var(--un-perspective))",
1165
1166
  "translateX(var(--un-translate-x))",
1166
1167
  "translateY(var(--un-translate-y))",
1167
1168
  "translateZ(var(--un-translate-z))",
@@ -1208,14 +1209,20 @@ const transforms = [
1208
1209
  ([, s]) => ({ "transform-origin": positionMap[s] ?? h.bracket.cssvar(s) }),
1209
1210
  { autocomplete: [`transform-origin-(${Object.keys(positionMap).join("|")})`, `origin-(${Object.keys(positionMap).join("|")})`] }
1210
1211
  ],
1211
- [/^(?:transform-)?perspect(?:ive)?-(.+)$/, ([, s]) => {
1212
+ [/^(transform-)?perspect(?:ive)?-(.+)$/, ([, t, s]) => {
1212
1213
  const v = h.bracket.cssvar.px.numberWithUnit(s);
1213
- if (v != null) return {
1214
- "-webkit-perspective": v,
1215
- "perspective": v
1216
- };
1214
+ if (v != null) {
1215
+ if (t) return {
1216
+ "--un-perspective": `perspective(${v})`,
1217
+ "transform": transform
1218
+ };
1219
+ return {
1220
+ "-webkit-perspective": v,
1221
+ "perspective": v
1222
+ };
1223
+ }
1217
1224
  }],
1218
- [/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/, ([, s]) => {
1225
+ [/^perspect(?:ive)?-origin-(.+)$/, ([, s]) => {
1219
1226
  const v = h.bracket.cssvar(s) ?? (s.length >= 3 ? positionMap[s] : void 0);
1220
1227
  if (v != null) return {
1221
1228
  "-webkit-perspective-origin": v,
package/dist/rules.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as flex, A as fontStyles, B as alignments, C as contains, D as displays, E as cursors, F as textWraps, G as justifies, H as flexGridJustifiesAlignments, I as userSelects, J as positions, K as orders, L as varEmpty, M as resizes, N as textOverflows, O as fieldSizing, P as textTransforms, Q as gaps, R as whitespaces, S as breaks, T as contents, U as floats, V as boxSizing, W as insets, X as overflows, Y as zIndexes, Z as grids, _ as boxShadows, a as tabSizes, at as borderStyles, b as rings, c as textStrokes, ct as appearance, d as transforms, dt as textAligns, et as textDecorations, f as svgUtilities, ft as verticalAligns, g as sizes, h as aspectRatio, i as fonts, it as opacity, j as pointerEvents, k as fontSmoothings, l as transitions, lt as outline, m as paddings, n as cssProperty, nt as bgColors, o as textIndents, ot as borders, p as margins, q as placements, r as cssVariables, rt as colorScheme, s as textShadows, st as handlerBorderStyle, t as rules, tt as containerParent, u as transformBase, ut as willChange, v as boxShadowsBase, w as contentVisibility, x as appearances, y as ringBase, z as questionMark } from "./rules-Cc0JK3VG.mjs";
1
+ import { $ as flex, A as fontStyles, B as alignments, C as contains, D as displays, E as cursors, F as textWraps, G as justifies, H as flexGridJustifiesAlignments, I as userSelects, J as positions, K as orders, L as varEmpty, M as resizes, N as textOverflows, O as fieldSizing, P as textTransforms, Q as gaps, R as whitespaces, S as breaks, T as contents, U as floats, V as boxSizing, W as insets, X as overflows, Y as zIndexes, Z as grids, _ as boxShadows, a as tabSizes, at as borderStyles, b as rings, c as textStrokes, ct as appearance, d as transforms, dt as textAligns, et as textDecorations, f as svgUtilities, ft as verticalAligns, g as sizes, h as aspectRatio, i as fonts, it as opacity, j as pointerEvents, k as fontSmoothings, l as transitions, lt as outline, m as paddings, n as cssProperty, nt as bgColors, o as textIndents, ot as borders, p as margins, q as placements, r as cssVariables, rt as colorScheme, s as textShadows, st as handlerBorderStyle, t as rules, tt as containerParent, u as transformBase, ut as willChange, v as boxShadowsBase, w as contentVisibility, x as appearances, y as ringBase, z as questionMark } from "./rules-aqtHAH03.mjs";
2
2
 
3
3
  export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, colorScheme, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, fieldSizing, flex, flexGridJustifiesAlignments, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
@@ -1,4 +1,4 @@
1
- import { u as transformBase, v as boxShadowsBase, y as ringBase } from "./rules-Cc0JK3VG.mjs";
1
+ import { u as transformBase, v as boxShadowsBase, y as ringBase } from "./rules-aqtHAH03.mjs";
2
2
  import { t as colors } from "./colors-Cxq9P2g9.mjs";
3
3
 
4
4
  //#region src/_theme/filters.ts
package/dist/theme.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as colors } from "./colors-Cxq9P2g9.mjs";
2
- import { A as textStrokeWidth, C as fontFamily, D as lineHeight, E as letterSpacing, M as blur, N as dropShadow, O as textIndent, S as zIndex, T as fontWeight, _ as lineWidth, a as height, b as spacing, c as maxHeight, d as width, f as preflightBase, g as duration, h as breakpoints, i as containers, j as wordSpacing, k as textShadow, l as maxInlineSize, m as boxShadow, n as baseSize, o as inlineSize, p as borderRadius, r as blockSize, s as maxBlockSize, t as theme, u as maxWidth, v as media, w as fontSize, x as verticalBreakpoints, y as ringWidth } from "./theme-B2Jp9h34.mjs";
2
+ import { A as textStrokeWidth, C as fontFamily, D as lineHeight, E as letterSpacing, M as blur, N as dropShadow, O as textIndent, S as zIndex, T as fontWeight, _ as lineWidth, a as height, b as spacing, c as maxHeight, d as width, f as preflightBase, g as duration, h as breakpoints, i as containers, j as wordSpacing, k as textShadow, l as maxInlineSize, m as boxShadow, n as baseSize, o as inlineSize, p as borderRadius, r as blockSize, s as maxBlockSize, t as theme, u as maxWidth, v as media, w as fontSize, x as verticalBreakpoints, y as ringWidth } from "./theme-4sCaBcHb.mjs";
3
3
 
4
4
  export { baseSize, blockSize, blur, borderRadius, boxShadow, breakpoints, colors, containers, dropShadow, duration, fontFamily, fontSize, fontWeight, height, inlineSize, letterSpacing, lineHeight, lineWidth, maxBlockSize, maxHeight, maxInlineSize, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, theme, verticalBreakpoints, width, wordSpacing, zIndex };
@@ -161,6 +161,9 @@ const cssProps = [
161
161
  "flex-grow",
162
162
  "flex",
163
163
  "flex-shrink",
164
+ "grid",
165
+ "grid-template-columns",
166
+ "grid-template-rows",
164
167
  "caret-color",
165
168
  "font",
166
169
  "gap",
package/dist/utils.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as globalKeywords, D as xyzMap, E as xyzArray, S as directionMap, T as positionMap, _ as handler, a as colorableShadows, b as cssMathFnRE, c as isCSSMathFn, d as parseColor, f as resolveBreakpoints, g as h, h as transformXYZ, i as colorResolver, l as isSize, m as splitShorthand, o as directionSize, p as resolveVerticalBreakpoints, r as CONTROL_MINI_NO_NEGATIVE, s as hasParseableColor, u as makeGlobalStaticRules, v as handlers_exports, w as insetMap, x as cssVarFnRE, y as cornerMap } from "./utils-DLpYZ57Q.mjs";
1
+ import { C as globalKeywords, D as xyzMap, E as xyzArray, S as directionMap, T as positionMap, _ as handler, a as colorableShadows, b as cssMathFnRE, c as isCSSMathFn, d as parseColor, f as resolveBreakpoints, g as h, h as transformXYZ, i as colorResolver, l as isSize, m as splitShorthand, o as directionSize, p as resolveVerticalBreakpoints, r as CONTROL_MINI_NO_NEGATIVE, s as hasParseableColor, u as makeGlobalStaticRules, v as handlers_exports, w as insetMap, x as cssVarFnRE, y as cornerMap } from "./utils-BiEVyyOJ.mjs";
2
2
 
3
3
  export * from "@unocss/rule-utils"
4
4
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { b as cssMathFnRE, f as resolveBreakpoints, g as h, n as _utils_exports, r as CONTROL_MINI_NO_NEGATIVE, t as utils_exports, x as cssVarFnRE } from "./utils-DLpYZ57Q.mjs";
1
+ import { b as cssMathFnRE, f as resolveBreakpoints, g as h, n as _utils_exports, r as CONTROL_MINI_NO_NEGATIVE, t as utils_exports, x as cssVarFnRE } from "./utils-BiEVyyOJ.mjs";
2
2
  import { escapeRegExp, escapeSelector, toArray } from "@unocss/core";
3
3
  import { createPartClasses, createPseudoClassFunctions, createPseudoClassesAndElements, createTaggedPseudoClasses, getStringComponent } from "@unocss/rule-utils";
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
3
  "type": "module",
4
- "version": "66.6.0-beta.1",
4
+ "version": "66.6.1",
5
5
  "description": "The minimal preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -21,44 +21,30 @@
21
21
  ],
22
22
  "sideEffects": false,
23
23
  "exports": {
24
- ".": {
25
- "types": "./dist/index.d.mts",
26
- "default": "./dist/index.mjs"
27
- },
28
- "./theme": {
29
- "types": "./dist/theme.d.mts",
30
- "default": "./dist/theme.mjs"
31
- },
32
- "./variants": {
33
- "types": "./dist/variants.d.mts",
34
- "default": "./dist/variants.mjs"
35
- },
36
- "./rules": {
37
- "types": "./dist/rules.d.mts",
38
- "default": "./dist/rules.mjs"
39
- },
40
- "./colors": {
41
- "types": "./dist/colors.d.mts",
42
- "default": "./dist/colors.mjs"
43
- },
44
- "./utils": {
45
- "types": "./dist/utils.d.mts",
46
- "default": "./dist/utils.mjs"
47
- },
48
- "./*": "./*"
24
+ ".": "./dist/index.mjs",
25
+ "./colors": "./dist/colors.mjs",
26
+ "./rules": "./dist/rules.mjs",
27
+ "./theme": "./dist/theme.mjs",
28
+ "./utils": "./dist/utils.mjs",
29
+ "./variants": "./dist/variants.mjs",
30
+ "./package.json": "./package.json"
49
31
  },
50
- "main": "dist/index.mjs",
51
- "module": "dist/index.mjs",
52
32
  "types": "dist/index.d.mts",
33
+ "typesVersions": {
34
+ "*": {
35
+ "*": [
36
+ "./dist/*.d.mts",
37
+ "./*"
38
+ ]
39
+ }
40
+ },
53
41
  "files": [
54
- "*.css",
55
- "*.d.ts",
56
42
  "dist"
57
43
  ],
58
44
  "dependencies": {
59
- "@unocss/core": "66.6.0-beta.1",
60
- "@unocss/extractor-arbitrary-variants": "66.6.0-beta.1",
61
- "@unocss/rule-utils": "66.6.0-beta.1"
45
+ "@unocss/extractor-arbitrary-variants": "66.6.1",
46
+ "@unocss/core": "66.6.1",
47
+ "@unocss/rule-utils": "66.6.1"
62
48
  },
63
49
  "scripts": {
64
50
  "build": "tsdown",