@unocss/preset-mini 0.59.2 → 0.59.4
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.mjs +2 -2
- package/dist/shared/{preset-mini.CB8Dk02e.mjs → preset-mini.BXGpmpTN.mjs} +3 -4
- package/dist/shared/{preset-mini.BF7x-VAh.mjs → preset-mini.CErwpRk8.mjs} +20 -6
- package/dist/shared/{preset-mini.DqoFZ7ib.mjs → preset-mini.D67MIHq5.mjs} +1 -1
- package/dist/theme.mjs +2 -2
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { entriesToCss, toArray, definePreset } from '@unocss/core';
|
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
3
3
|
import { g as globalKeywords } from './shared/preset-mini.LaTU_0KF.mjs';
|
|
4
4
|
export { k as parseColor } from './shared/preset-mini.LaTU_0KF.mjs';
|
|
5
|
-
import { t as theme } from './shared/preset-mini.
|
|
6
|
-
import { r as rules } from './shared/preset-mini.
|
|
5
|
+
import { t as theme } from './shared/preset-mini.D67MIHq5.mjs';
|
|
6
|
+
import { r as rules } from './shared/preset-mini.BXGpmpTN.mjs';
|
|
7
7
|
import { h as variants } from './shared/preset-mini.DD2Q_iFh.mjs';
|
|
8
8
|
export { colors } from './colors.mjs';
|
|
9
9
|
import '@unocss/rule-utils';
|
|
10
|
-
import './shared/preset-mini.
|
|
10
|
+
import './shared/preset-mini.CErwpRk8.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
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.
|
|
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.
|
|
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.BXGpmpTN.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.CErwpRk8.mjs';
|
|
3
3
|
import './shared/preset-mini.LaTU_0KF.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
import '@unocss/rule-utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as globalKeywords, f 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, m as colorableShadows, s as splitShorthand, i as insetMap, r as resolveBreakpoints, j as directionSize } from './preset-mini.LaTU_0KF.mjs';
|
|
2
2
|
import { colorToString, colorOpacityToString } from '@unocss/rule-utils';
|
|
3
3
|
import { warnOnce, toArray } from '@unocss/core';
|
|
4
|
-
import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.
|
|
4
|
+
import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.CErwpRk8.mjs';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
7
7
|
"mid": "middle",
|
|
@@ -94,7 +94,7 @@ const borders = [
|
|
|
94
94
|
[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/, handlerBorderOpacity],
|
|
95
95
|
[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/, handlerBorderOpacity],
|
|
96
96
|
// radius
|
|
97
|
-
[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/, handlerRounded, { autocomplete: ["(border|b)-(rounded|rd)", "(border|b)-(rounded|rd)
|
|
97
|
+
[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/, handlerRounded, { autocomplete: ["(border|b)-(rounded|rd)", "(border|b)-(rounded|rd)-$borderRadius", "(rounded|rd)", "(rounded|rd)-$borderRadius"] }],
|
|
98
98
|
[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/, handlerRounded],
|
|
99
99
|
[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/, handlerRounded],
|
|
100
100
|
[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/, handlerRounded],
|
|
@@ -884,8 +884,7 @@ const questionMark = [
|
|
|
884
884
|
/^(where|\?)$/,
|
|
885
885
|
(_, { constructCSS, generator }) => {
|
|
886
886
|
if (generator.userConfig.envMode === "dev")
|
|
887
|
-
return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
888
|
-
${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
|
|
887
|
+
return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
|
|
889
888
|
}
|
|
890
889
|
]
|
|
891
890
|
];
|
|
@@ -195,6 +195,20 @@ const transformValues = [
|
|
|
195
195
|
"scale"
|
|
196
196
|
];
|
|
197
197
|
const transformCpu = [
|
|
198
|
+
"translateX(var(--un-translate-x))",
|
|
199
|
+
"translateY(var(--un-translate-y))",
|
|
200
|
+
// 'translateZ(var(--un-translate-z))',
|
|
201
|
+
"rotate(var(--un-rotate))",
|
|
202
|
+
"rotateX(var(--un-rotate-x))",
|
|
203
|
+
"rotateY(var(--un-rotate-y))",
|
|
204
|
+
"rotateZ(var(--un-rotate-z))",
|
|
205
|
+
"skewX(var(--un-skew-x))",
|
|
206
|
+
"skewY(var(--un-skew-y))",
|
|
207
|
+
"scaleX(var(--un-scale-x))",
|
|
208
|
+
"scaleY(var(--un-scale-y))"
|
|
209
|
+
// 'scaleZ(var(--un-scale-z))',
|
|
210
|
+
].join(" ");
|
|
211
|
+
const transform = [
|
|
198
212
|
"translateX(var(--un-translate-x))",
|
|
199
213
|
"translateY(var(--un-translate-y))",
|
|
200
214
|
"translateZ(var(--un-translate-z))",
|
|
@@ -271,7 +285,7 @@ const transforms = [
|
|
|
271
285
|
[/^(?:transform-)?preserve-3d$/, () => ({ "transform-style": "preserve-3d" })],
|
|
272
286
|
[/^(?:transform-)?preserve-flat$/, () => ({ "transform-style": "flat" })],
|
|
273
287
|
// base
|
|
274
|
-
["transform", { transform
|
|
288
|
+
["transform", { transform }],
|
|
275
289
|
["transform-cpu", { transform: transformCpu }],
|
|
276
290
|
["transform-gpu", { transform: transformGpu }],
|
|
277
291
|
["transform-none", { transform: "none" }],
|
|
@@ -282,7 +296,7 @@ function handleTranslate([, d, b], { theme }) {
|
|
|
282
296
|
if (v != null) {
|
|
283
297
|
return [
|
|
284
298
|
...transformXYZ(d, v, "translate"),
|
|
285
|
-
["transform",
|
|
299
|
+
["transform", transform]
|
|
286
300
|
];
|
|
287
301
|
}
|
|
288
302
|
}
|
|
@@ -291,7 +305,7 @@ function handleScale([, d, b]) {
|
|
|
291
305
|
if (v != null) {
|
|
292
306
|
return [
|
|
293
307
|
...transformXYZ(d, v, "scale"),
|
|
294
|
-
["transform",
|
|
308
|
+
["transform", transform]
|
|
295
309
|
];
|
|
296
310
|
}
|
|
297
311
|
}
|
|
@@ -302,7 +316,7 @@ function handleRotate([, d = "", b]) {
|
|
|
302
316
|
return {
|
|
303
317
|
"--un-rotate": 0,
|
|
304
318
|
[`--un-rotate-${d}`]: v,
|
|
305
|
-
"transform":
|
|
319
|
+
"transform": transform
|
|
306
320
|
};
|
|
307
321
|
} else {
|
|
308
322
|
return {
|
|
@@ -310,7 +324,7 @@ function handleRotate([, d = "", b]) {
|
|
|
310
324
|
"--un-rotate-y": 0,
|
|
311
325
|
"--un-rotate-z": 0,
|
|
312
326
|
"--un-rotate": v,
|
|
313
|
-
"transform":
|
|
327
|
+
"transform": transform
|
|
314
328
|
};
|
|
315
329
|
}
|
|
316
330
|
}
|
|
@@ -320,7 +334,7 @@ function handleSkew([, d, b]) {
|
|
|
320
334
|
if (v != null) {
|
|
321
335
|
return [
|
|
322
336
|
...transformXYZ(d, v, "skew"),
|
|
323
|
-
["transform",
|
|
337
|
+
["transform", transform]
|
|
324
338
|
];
|
|
325
339
|
}
|
|
326
340
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from '../colors.mjs';
|
|
2
|
-
import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.
|
|
2
|
+
import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.CErwpRk8.mjs';
|
|
3
3
|
|
|
4
4
|
const fontFamily = {
|
|
5
5
|
sans: [
|
package/dist/theme.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { colors } from './colors.mjs';
|
|
2
|
-
export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
2
|
+
export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.D67MIHq5.mjs';
|
|
3
|
+
import './shared/preset-mini.CErwpRk8.mjs';
|
|
4
4
|
import './shared/preset-mini.LaTU_0KF.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
import '@unocss/rule-utils';
|
package/dist/utils.d.mts
CHANGED
|
@@ -53,7 +53,7 @@ declare namespace handlers {
|
|
|
53
53
|
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 };
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
57
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
56
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
57
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
58
58
|
|
|
59
59
|
export { cornerMap, cssMathFnRE, cssVarFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare namespace handlers {
|
|
|
53
53
|
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 };
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
57
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
56
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
57
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
58
58
|
|
|
59
59
|
export { cornerMap, cssMathFnRE, cssVarFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.59.
|
|
4
|
+
"version": "0.59.4",
|
|
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": "0.59.
|
|
60
|
-
"@unocss/
|
|
61
|
-
"@unocss/
|
|
59
|
+
"@unocss/core": "0.59.4",
|
|
60
|
+
"@unocss/extractor-arbitrary-variants": "0.59.4",
|
|
61
|
+
"@unocss/rule-utils": "0.59.4"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "unbuild",
|