@unocss/preset-mini 66.6.0 → 66.6.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.mjs +3 -3
- package/dist/{rules-Cc0JK3VG.mjs → rules-DIZf3KzB.mjs} +13 -7
- package/dist/rules.mjs +1 -1
- package/dist/{theme-B2Jp9h34.mjs → theme-B0WWWQYh.mjs} +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/{utils-DLpYZ57Q.mjs → utils-BiEVyyOJ.mjs} +3 -0
- package/dist/utils.mjs +1 -1
- package/dist/variants.mjs +1 -1
- package/package.json +19 -33
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as globalKeywords, d as parseColor } from "./utils-
|
|
2
|
-
import { t as rules } from "./rules-
|
|
1
|
+
import { C as globalKeywords, d as parseColor } from "./utils-BiEVyyOJ.mjs";
|
|
2
|
+
import { t as rules } from "./rules-DIZf3KzB.mjs";
|
|
3
3
|
import { t as colors } from "./colors-Cxq9P2g9.mjs";
|
|
4
|
-
import { t as theme } from "./theme-
|
|
4
|
+
import { t as theme } from "./theme-B0WWWQYh.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-
|
|
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
|
|
|
@@ -1208,14 +1208,20 @@ const transforms = [
|
|
|
1208
1208
|
([, s]) => ({ "transform-origin": positionMap[s] ?? h.bracket.cssvar(s) }),
|
|
1209
1209
|
{ autocomplete: [`transform-origin-(${Object.keys(positionMap).join("|")})`, `origin-(${Object.keys(positionMap).join("|")})`] }
|
|
1210
1210
|
],
|
|
1211
|
-
[/^(
|
|
1211
|
+
[/^(transform-)?perspect(?:ive)?-(.+)$/, ([, t, s]) => {
|
|
1212
1212
|
const v = h.bracket.cssvar.px.numberWithUnit(s);
|
|
1213
|
-
if (v != null)
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1213
|
+
if (v != null) {
|
|
1214
|
+
if (t) return {
|
|
1215
|
+
"--un-perspective": `perspective(${v})`,
|
|
1216
|
+
"transform": `var(--un-perspective) ${transform}`
|
|
1217
|
+
};
|
|
1218
|
+
return {
|
|
1219
|
+
"-webkit-perspective": v,
|
|
1220
|
+
"perspective": v
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1217
1223
|
}],
|
|
1218
|
-
[/^
|
|
1224
|
+
[/^perspect(?:ive)?-origin-(.+)$/, ([, s]) => {
|
|
1219
1225
|
const v = h.bracket.cssvar(s) ?? (s.length >= 3 ? positionMap[s] : void 0);
|
|
1220
1226
|
if (v != null) return {
|
|
1221
1227
|
"-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-
|
|
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-DIZf3KzB.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-
|
|
1
|
+
import { u as transformBase, v as boxShadowsBase, y as ringBase } from "./rules-DIZf3KzB.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-
|
|
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-B0WWWQYh.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 };
|
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-
|
|
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-
|
|
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.
|
|
4
|
+
"version": "66.6.2",
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"./
|
|
29
|
-
|
|
30
|
-
|
|
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/
|
|
60
|
-
"@unocss/
|
|
61
|
-
"@unocss/
|
|
45
|
+
"@unocss/core": "66.6.2",
|
|
46
|
+
"@unocss/extractor-arbitrary-variants": "66.6.2",
|
|
47
|
+
"@unocss/rule-utils": "66.6.2"
|
|
62
48
|
},
|
|
63
49
|
"scripts": {
|
|
64
50
|
"build": "tsdown",
|