@unocss/preset-mini 0.48.1 → 0.48.3
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.cjs +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/rules.cjs +2 -2
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.bb68e31e.cjs → preset-mini.07bfe95b.cjs} +2 -2
- package/dist/shared/{preset-mini.1ec77f6f.cjs → preset-mini.1d8e9215.cjs} +1 -1
- package/dist/shared/{preset-mini.eaa84a8f.cjs → preset-mini.3bc25cb8.cjs} +6 -6
- package/dist/shared/{preset-mini.9a963c89.mjs → preset-mini.3e342bd2.mjs} +1 -1
- package/dist/shared/{preset-mini.71a71f59.mjs → preset-mini.73c67c88.mjs} +2 -2
- package/dist/shared/{preset-mini.6f716ffb.mjs → preset-mini.b1ae1bfe.mjs} +6 -6
- package/dist/theme.cjs +2 -2
- package/dist/theme.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
|
-
require('./shared/preset-mini.
|
|
6
|
+
require('./shared/preset-mini.07bfe95b.cjs');
|
|
7
7
|
const colors$1 = require('./shared/preset-mini.5002aa63.cjs');
|
|
8
|
-
const _default$1 = require('./shared/preset-mini.
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.3bc25cb8.cjs');
|
|
9
9
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
10
|
-
const _default = require('./shared/preset-mini.
|
|
10
|
+
const _default = require('./shared/preset-mini.1d8e9215.cjs');
|
|
11
11
|
const _default$2 = require('./shared/preset-mini.2ad50fb9.cjs');
|
|
12
12
|
require('./shared/preset-mini.19fa93be.cjs');
|
|
13
13
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
2
|
-
import './shared/preset-mini.
|
|
2
|
+
import './shared/preset-mini.73c67c88.mjs';
|
|
3
3
|
export { p as parseColor } from './shared/preset-mini.97298de6.mjs';
|
|
4
|
-
import { r as rules } from './shared/preset-mini.
|
|
4
|
+
import { r as rules } from './shared/preset-mini.b1ae1bfe.mjs';
|
|
5
5
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
6
|
-
import { t as theme } from './shared/preset-mini.
|
|
7
|
-
export { t as theme } from './shared/preset-mini.
|
|
6
|
+
import { t as theme } from './shared/preset-mini.3e342bd2.mjs';
|
|
7
|
+
export { t as theme } from './shared/preset-mini.3e342bd2.mjs';
|
|
8
8
|
import { v as variants } from './shared/preset-mini.2612e983.mjs';
|
|
9
9
|
import './shared/preset-mini.33f541c6.mjs';
|
|
10
10
|
|
package/dist/rules.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const decoration = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
+
const decoration = require('./shared/preset-mini.07bfe95b.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.3bc25cb8.cjs');
|
|
7
7
|
require('./shared/preset-mini.5002aa63.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as alignments, C as appearance, s as appearances, S as borderStyles, b as borders, o as boxShadows, Q as boxShadowsBase, K as boxSizing, z as breaks, O as contains, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, T 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, R 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, P as transformBase, M as transforms, L as transitions, x as userSelects, U as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.
|
|
2
|
-
export { d as aspectRatio, b as bgColors, c as containerParent, i as cssProperty, h 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, e as svgUtilities, t as textColors } from './shared/preset-mini.
|
|
1
|
+
export { F as alignments, C as appearance, s as appearances, S as borderStyles, b as borders, o as boxShadows, Q as boxShadowsBase, K as boxSizing, z as breaks, O as contains, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, T 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, R 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, P as transformBase, M as transforms, L as transitions, x as userSelects, U as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.73c67c88.mjs';
|
|
2
|
+
export { d as aspectRatio, b as bgColors, c as containerParent, i as cssProperty, h 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, e as svgUtilities, t as textColors } from './shared/preset-mini.b1ae1bfe.mjs';
|
|
3
3
|
import './shared/preset-mini.97298de6.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -414,8 +414,8 @@ const floats = [
|
|
|
414
414
|
...colors.makeGlobalStaticRules("clear")
|
|
415
415
|
];
|
|
416
416
|
const zIndexes = [
|
|
417
|
-
[/^z([\d.]+)$/, ([, v]) => ({ "z-index": colors.handler.number(v) })],
|
|
418
|
-
[/^z-(.+)$/, ([, v]) => ({ "z-index": colors.handler.bracket.cssvar.global.auto.number(v) }), { autocomplete: "z-<num>" }]
|
|
417
|
+
[/^(?:position-|pos-)?z([\d.]+)$/, ([, v]) => ({ "z-index": colors.handler.number(v) })],
|
|
418
|
+
[/^(?:position-|pos-)?z-(.+)$/, ([, v]) => ({ "z-index": colors.handler.bracket.cssvar.global.auto.number(v) }), { autocomplete: "z-<num>" }]
|
|
419
419
|
];
|
|
420
420
|
const boxSizing = [
|
|
421
421
|
["box-border", { "box-sizing": "border-box" }],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const decoration = require('./preset-mini.
|
|
3
|
+
const decoration = require('./preset-mini.07bfe95b.cjs');
|
|
4
4
|
const colors = require('./preset-mini.5002aa63.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
@@ -138,8 +138,8 @@ function getSizeValue(minmax, hw, theme, prop) {
|
|
|
138
138
|
return colors.handler.bracket.cssvar.global.auto.fraction.rem(prop);
|
|
139
139
|
}
|
|
140
140
|
const sizes = [
|
|
141
|
-
[/^(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
142
|
-
[/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) }), {
|
|
141
|
+
[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
142
|
+
[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) }), {
|
|
143
143
|
autocomplete: [
|
|
144
144
|
"(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
|
|
145
145
|
"(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
|
|
@@ -147,8 +147,8 @@ const sizes = [
|
|
|
147
147
|
"(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"
|
|
148
148
|
]
|
|
149
149
|
}],
|
|
150
|
-
[/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: colors.resolveVerticalBreakpoints(context)?.[s] })],
|
|
151
|
-
[/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: colors.resolveBreakpoints(context)?.[s] }), {
|
|
150
|
+
[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: colors.resolveVerticalBreakpoints(context)?.[s] })],
|
|
151
|
+
[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: colors.resolveBreakpoints(context)?.[s] }), {
|
|
152
152
|
autocomplete: [
|
|
153
153
|
"(w|h)-screen",
|
|
154
154
|
"(min|max)-(w|h)-screen",
|
|
@@ -171,7 +171,7 @@ function getAspectRatio(prop) {
|
|
|
171
171
|
return colors.handler.bracket.cssvar.global.auto.number(prop);
|
|
172
172
|
}
|
|
173
173
|
const aspectRatio = [
|
|
174
|
-
[/^aspect-(?:ratio-)?(.+)$/, ([, d]) => ({ "aspect-ratio": getAspectRatio(d) }), { autocomplete: ["aspect-(square|video|ratio)", "aspect-ratio-(square|video)"] }]
|
|
174
|
+
[/^(?:size-)?aspect-(?:ratio-)?(.+)$/, ([, d]) => ({ "aspect-ratio": getAspectRatio(d) }), { autocomplete: ["aspect-(square|video|ratio)", "aspect-ratio-(square|video)"] }]
|
|
175
175
|
];
|
|
176
176
|
|
|
177
177
|
const paddings = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as colors } from './preset-mini.65ac75be.mjs';
|
|
2
|
-
import { P as transformBase, Q as boxShadowsBase, R as ringBase } from './preset-mini.
|
|
2
|
+
import { P as transformBase, Q as boxShadowsBase, R as ringBase } from './preset-mini.73c67c88.mjs';
|
|
3
3
|
import './preset-mini.97298de6.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
|
|
@@ -412,8 +412,8 @@ const floats = [
|
|
|
412
412
|
...makeGlobalStaticRules("clear")
|
|
413
413
|
];
|
|
414
414
|
const zIndexes = [
|
|
415
|
-
[/^z([\d.]+)$/, ([, v]) => ({ "z-index": handler.number(v) })],
|
|
416
|
-
[/^z-(.+)$/, ([, v]) => ({ "z-index": handler.bracket.cssvar.global.auto.number(v) }), { autocomplete: "z-<num>" }]
|
|
415
|
+
[/^(?:position-|pos-)?z([\d.]+)$/, ([, v]) => ({ "z-index": handler.number(v) })],
|
|
416
|
+
[/^(?:position-|pos-)?z-(.+)$/, ([, v]) => ({ "z-index": handler.bracket.cssvar.global.auto.number(v) }), { autocomplete: "z-<num>" }]
|
|
417
417
|
];
|
|
418
418
|
const boxSizing = [
|
|
419
419
|
["box-border", { "box-sizing": "border-box" }],
|
|
@@ -1,4 +1,4 @@
|
|
|
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, O as contains } from './preset-mini.
|
|
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, O as contains } from './preset-mini.73c67c88.mjs';
|
|
2
2
|
import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.97298de6.mjs';
|
|
3
3
|
import { warnOnce } from '@unocss/core';
|
|
4
4
|
|
|
@@ -136,8 +136,8 @@ function getSizeValue(minmax, hw, theme, prop) {
|
|
|
136
136
|
return handler.bracket.cssvar.global.auto.fraction.rem(prop);
|
|
137
137
|
}
|
|
138
138
|
const sizes = [
|
|
139
|
-
[/^(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
140
|
-
[/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) }), {
|
|
139
|
+
[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
|
|
140
|
+
[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) }), {
|
|
141
141
|
autocomplete: [
|
|
142
142
|
"(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
|
|
143
143
|
"(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
|
|
@@ -145,8 +145,8 @@ const sizes = [
|
|
|
145
145
|
"(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"
|
|
146
146
|
]
|
|
147
147
|
}],
|
|
148
|
-
[/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: resolveVerticalBreakpoints(context)?.[s] })],
|
|
149
|
-
[/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: resolveBreakpoints(context)?.[s] }), {
|
|
148
|
+
[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: resolveVerticalBreakpoints(context)?.[s] })],
|
|
149
|
+
[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: resolveBreakpoints(context)?.[s] }), {
|
|
150
150
|
autocomplete: [
|
|
151
151
|
"(w|h)-screen",
|
|
152
152
|
"(min|max)-(w|h)-screen",
|
|
@@ -169,7 +169,7 @@ function getAspectRatio(prop) {
|
|
|
169
169
|
return handler.bracket.cssvar.global.auto.number(prop);
|
|
170
170
|
}
|
|
171
171
|
const aspectRatio = [
|
|
172
|
-
[/^aspect-(?:ratio-)?(.+)$/, ([, d]) => ({ "aspect-ratio": getAspectRatio(d) }), { autocomplete: ["aspect-(square|video|ratio)", "aspect-ratio-(square|video)"] }]
|
|
172
|
+
[/^(?:size-)?aspect-(?:ratio-)?(.+)$/, ([, d]) => ({ "aspect-ratio": getAspectRatio(d) }), { autocomplete: ["aspect-(square|video|ratio)", "aspect-ratio-(square|video)"] }]
|
|
173
173
|
];
|
|
174
174
|
|
|
175
175
|
const paddings = [
|
package/dist/theme.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.1d8e9215.cjs');
|
|
7
|
+
require('./shared/preset-mini.07bfe95b.cjs');
|
|
8
8
|
require('./shared/preset-mini.5002aa63.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
2
|
-
export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, z as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, A as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
2
|
+
export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, z as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, A as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './shared/preset-mini.3e342bd2.mjs';
|
|
3
|
+
import './shared/preset-mini.73c67c88.mjs';
|
|
4
4
|
import './shared/preset-mini.97298de6.mjs';
|
|
5
5
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.3",
|
|
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.48.
|
|
64
|
+
"@unocss/core": "0.48.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|