@unocss/preset-mini 0.45.5 → 0.45.8
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/chunks/decoration.cjs +9 -0
- package/dist/chunks/decoration.mjs +9 -1
- package/dist/chunks/default.cjs +1 -0
- package/dist/chunks/default.mjs +2 -1
- package/dist/chunks/default2.mjs +1 -1
- package/dist/rules.cjs +1 -0
- package/dist/rules.d.ts +2 -1
- package/dist/rules.mjs +1 -1
- package/package.json +2 -2
|
@@ -298,6 +298,7 @@ const overflowValues = [
|
|
|
298
298
|
"clip",
|
|
299
299
|
"visible",
|
|
300
300
|
"scroll",
|
|
301
|
+
"overlay",
|
|
301
302
|
...colors.globalKeywords
|
|
302
303
|
];
|
|
303
304
|
const overflows = [
|
|
@@ -476,6 +477,13 @@ const whitespaces = [
|
|
|
476
477
|
{ autocomplete: "(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)" }
|
|
477
478
|
]
|
|
478
479
|
];
|
|
480
|
+
const contentVisibility = [
|
|
481
|
+
[/^intrinsic-size-(.+)$/, ([, d]) => ({ "contain-intrinsic-size": colors.handler.bracket.cssvar.global.fraction.rem(d) }), { autocomplete: "intrinsic-size-<num>" }],
|
|
482
|
+
["content-visibility-visible", { "content-visibility": "visible" }],
|
|
483
|
+
["content-visibility-hidden", { "content-visibility": "hidden" }],
|
|
484
|
+
["content-visibility-auto", { "content-visibility": "auto" }],
|
|
485
|
+
...colors.makeGlobalStaticRules("content-visibility")
|
|
486
|
+
];
|
|
479
487
|
const contents = [
|
|
480
488
|
[/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
|
|
481
489
|
[/^content-(\$.+)]$/, ([, v]) => ({ content: colors.handler.cssvar(v) })],
|
|
@@ -732,6 +740,7 @@ exports.boxShadows = boxShadows;
|
|
|
732
740
|
exports.boxShadowsBase = boxShadowsBase;
|
|
733
741
|
exports.boxSizing = boxSizing;
|
|
734
742
|
exports.breaks = breaks;
|
|
743
|
+
exports.contentVisibility = contentVisibility;
|
|
735
744
|
exports.contents = contents;
|
|
736
745
|
exports.cursors = cursors;
|
|
737
746
|
exports.displays = displays;
|
|
@@ -296,6 +296,7 @@ const overflowValues = [
|
|
|
296
296
|
"clip",
|
|
297
297
|
"visible",
|
|
298
298
|
"scroll",
|
|
299
|
+
"overlay",
|
|
299
300
|
...globalKeywords
|
|
300
301
|
];
|
|
301
302
|
const overflows = [
|
|
@@ -474,6 +475,13 @@ const whitespaces = [
|
|
|
474
475
|
{ autocomplete: "(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)" }
|
|
475
476
|
]
|
|
476
477
|
];
|
|
478
|
+
const contentVisibility = [
|
|
479
|
+
[/^intrinsic-size-(.+)$/, ([, d]) => ({ "contain-intrinsic-size": handler.bracket.cssvar.global.fraction.rem(d) }), { autocomplete: "intrinsic-size-<num>" }],
|
|
480
|
+
["content-visibility-visible", { "content-visibility": "visible" }],
|
|
481
|
+
["content-visibility-hidden", { "content-visibility": "hidden" }],
|
|
482
|
+
["content-visibility-auto", { "content-visibility": "auto" }],
|
|
483
|
+
...makeGlobalStaticRules("content-visibility")
|
|
484
|
+
];
|
|
477
485
|
const contents = [
|
|
478
486
|
[/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
|
|
479
487
|
[/^content-(\$.+)]$/, ([, v]) => ({ content: handler.cssvar(v) })],
|
|
@@ -721,4 +729,4 @@ const textDecorations = [
|
|
|
721
729
|
["decoration-none", { "text-decoration": "none" }]
|
|
722
730
|
];
|
|
723
731
|
|
|
724
|
-
export {
|
|
732
|
+
export { overflows as A, outline as B, appearance as C, orders as D, justifies as E, alignments as F, placements as G, insets as H, floats as I, zIndexes as J, boxSizing as K, transitions as L, transforms as M, willChange as N, transformBase as O, boxShadowsBase as P, ringBase as Q, borderStyles as R, handlerBorderStyle as S, varEmpty as T, contents as a, borders as b, contentVisibility as c, displays as d, textIndents as e, fonts as f, textOverflows as g, textDecorations as h, textStrokes as i, textShadows as j, textTransforms as k, textAligns as l, fontStyles as m, fontSmoothings as n, boxShadows as o, positions as p, cursors as q, rings as r, appearances as s, tabSizes as t, pointerEvents as u, resizes as v, verticalAligns as w, userSelects as x, whitespaces as y, breaks as z };
|
package/dist/chunks/default.cjs
CHANGED
package/dist/chunks/default.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as displays, b as borders, c as contents, f as fonts, t as tabSizes,
|
|
1
|
+
import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange } from './decoration.mjs';
|
|
2
2
|
import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './colors.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
|
|
@@ -241,6 +241,7 @@ const rules = [
|
|
|
241
241
|
bgColors,
|
|
242
242
|
svgUtilities,
|
|
243
243
|
borders,
|
|
244
|
+
contentVisibility,
|
|
244
245
|
contents,
|
|
245
246
|
fonts,
|
|
246
247
|
tabSizes,
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as colors } from './colors2.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { O as transformBase, P as boxShadowsBase, Q as ringBase } from './decoration.mjs';
|
|
3
3
|
import './colors.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
|
package/dist/rules.cjs
CHANGED
|
@@ -18,6 +18,7 @@ exports.boxShadows = decoration.boxShadows;
|
|
|
18
18
|
exports.boxShadowsBase = decoration.boxShadowsBase;
|
|
19
19
|
exports.boxSizing = decoration.boxSizing;
|
|
20
20
|
exports.breaks = decoration.breaks;
|
|
21
|
+
exports.contentVisibility = decoration.contentVisibility;
|
|
21
22
|
exports.contents = decoration.contents;
|
|
22
23
|
exports.cursors = decoration.cursors;
|
|
23
24
|
exports.displays = decoration.displays;
|
package/dist/rules.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ declare const pointerEvents: Rule[];
|
|
|
81
81
|
declare const resizes: Rule[];
|
|
82
82
|
declare const userSelects: Rule[];
|
|
83
83
|
declare const whitespaces: Rule[];
|
|
84
|
+
declare const contentVisibility: Rule[];
|
|
84
85
|
declare const contents: Rule[];
|
|
85
86
|
declare const breaks: Rule[];
|
|
86
87
|
declare const textOverflows: Rule[];
|
|
@@ -119,4 +120,4 @@ declare const cssProperty: Rule[];
|
|
|
119
120
|
|
|
120
121
|
declare const textDecorations: Rule<Theme>[];
|
|
121
122
|
|
|
122
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, 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, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
|
123
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, 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, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, Q as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './chunks/decoration.mjs';
|
|
2
2
|
export { c as aspectRatio, b as bgColors, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as textColors } from './chunks/default.mjs';
|
|
3
3
|
import './chunks/colors.mjs';
|
|
4
4
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.8",
|
|
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.45.
|
|
64
|
+
"@unocss/core": "0.45.8"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|