@unocss/preset-mini 0.59.3 → 0.60.0
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 +4 -4
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.Ehzod_q8.mjs → preset-mini.BXGpmpTN.mjs} +1 -1
- package/dist/shared/{preset-mini.0zg9NmGk.mjs → preset-mini.CErwpRk8.mjs} +1 -1
- package/dist/shared/{preset-mini.DHvO0v6Y.mjs → preset-mini.D67MIHq5.mjs} +1 -1
- package/dist/shared/{preset-mini.DD2Q_iFh.mjs → preset-mini.lwQsig6M.mjs} +8 -3
- package/dist/theme.mjs +2 -2
- package/dist/variants.d.mts +3 -1
- package/dist/variants.d.ts +3 -1
- package/dist/variants.mjs +1 -1
- 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.
|
|
7
|
-
import {
|
|
5
|
+
import { t as theme } from './shared/preset-mini.D67MIHq5.mjs';
|
|
6
|
+
import { r as rules } from './shared/preset-mini.BXGpmpTN.mjs';
|
|
7
|
+
import { i as variants } from './shared/preset-mini.lwQsig6M.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",
|
|
@@ -201,7 +201,7 @@ const transformCpu = [
|
|
|
201
201
|
"rotate(var(--un-rotate))",
|
|
202
202
|
"rotateX(var(--un-rotate-x))",
|
|
203
203
|
"rotateY(var(--un-rotate-y))",
|
|
204
|
-
|
|
204
|
+
"rotateZ(var(--un-rotate-z))",
|
|
205
205
|
"skewX(var(--un-skew-x))",
|
|
206
206
|
"skewY(var(--un-skew-y))",
|
|
207
207
|
"scaleX(var(--un-scale-x))",
|
|
@@ -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: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, b as cssMathFnRE, e as cssVarFnRE } from './preset-mini.LaTU_0KF.mjs';
|
|
2
|
-
import { variantGetParameter,
|
|
2
|
+
import { variantGetParameter, variantMatcher, variantGetBracket, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
|
|
3
3
|
import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
@@ -84,6 +84,10 @@ function variantBreakpoints() {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
const variantChildren = [
|
|
88
|
+
variantMatcher("*", (input) => ({ selector: `${input.selector} > *` }))
|
|
89
|
+
];
|
|
90
|
+
|
|
87
91
|
function scopeMatcher(name, combinator) {
|
|
88
92
|
return {
|
|
89
93
|
name: `combinator:${name}`,
|
|
@@ -536,7 +540,7 @@ const PseudoClasses = Object.fromEntries([
|
|
|
536
540
|
["placeholder", "::placeholder"],
|
|
537
541
|
["before", "::before"],
|
|
538
542
|
["after", "::after"],
|
|
539
|
-
["selection", "::selection"],
|
|
543
|
+
["selection", " ::selection"],
|
|
540
544
|
["marker", " ::marker"],
|
|
541
545
|
["file", "::file-selector-button"]
|
|
542
546
|
].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
|
|
@@ -760,6 +764,7 @@ function variants(options) {
|
|
|
760
764
|
...variantColorsMediaOrClass(options),
|
|
761
765
|
...variantLanguageDirections,
|
|
762
766
|
variantScope,
|
|
767
|
+
...variantChildren,
|
|
763
768
|
variantContainerQuery,
|
|
764
769
|
variantVariables,
|
|
765
770
|
...variantTaggedDataAttributes,
|
|
@@ -767,4 +772,4 @@ function variants(options) {
|
|
|
767
772
|
];
|
|
768
773
|
}
|
|
769
774
|
|
|
770
|
-
export { variantBreakpoints as a,
|
|
775
|
+
export { variantBreakpoints as a, variantChildren as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g, variantTaggedDataAttributes as h, variants as i, variantLanguageDirections as j, variantImportant as k, variantPrint as l, variantCustomMedia as m, variantSelector as n, variantCssLayer as o, variantInternalLayer as p, variantScope as q, variantVariables as r, variantTheme as s, variantNegative as t, variantPseudoClassesAndElements as u, variantAria as v, variantPseudoClassFunctions as w, variantTaggedPseudoClasses as x, variantPartClasses as y, variantSupports as z };
|
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/variants.d.mts
CHANGED
|
@@ -10,6 +10,8 @@ declare const variantAria: VariantObject;
|
|
|
10
10
|
declare function calcMaxWidthBySize(size: string): string;
|
|
11
11
|
declare function variantBreakpoints(): VariantObject;
|
|
12
12
|
|
|
13
|
+
declare const variantChildren: Variant[];
|
|
14
|
+
|
|
13
15
|
declare const variantCombinators: Variant[];
|
|
14
16
|
|
|
15
17
|
declare const variantContainerQuery: VariantObject;
|
|
@@ -44,4 +46,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
44
46
|
|
|
45
47
|
declare const variantSupports: VariantObject;
|
|
46
48
|
|
|
47
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
|
49
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/dist/variants.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare const variantAria: VariantObject;
|
|
|
10
10
|
declare function calcMaxWidthBySize(size: string): string;
|
|
11
11
|
declare function variantBreakpoints(): VariantObject;
|
|
12
12
|
|
|
13
|
+
declare const variantChildren: Variant[];
|
|
14
|
+
|
|
13
15
|
declare const variantCombinators: Variant[];
|
|
14
16
|
|
|
15
17
|
declare const variantContainerQuery: VariantObject;
|
|
@@ -44,4 +46,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
44
46
|
|
|
45
47
|
declare const variantSupports: VariantObject;
|
|
46
48
|
|
|
47
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
|
49
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints,
|
|
1
|
+
export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints, b as variantChildren, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, o as variantCssLayer, m as variantCustomMedia, g as variantDataAttribute, k as variantImportant, p as variantInternalLayer, j as variantLanguageDirections, t as variantNegative, y as variantPartClasses, l as variantPrint, w as variantPseudoClassFunctions, u as variantPseudoClassesAndElements, q as variantScope, n as variantSelector, z as variantSupports, h as variantTaggedDataAttributes, x as variantTaggedPseudoClasses, s as variantTheme, r as variantVariables, i as variants } from './shared/preset-mini.lwQsig6M.mjs';
|
|
2
2
|
import './shared/preset-mini.LaTU_0KF.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import '@unocss/rule-utils';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.60.0",
|
|
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.
|
|
60
|
-
"@unocss/
|
|
61
|
-
"@unocss/
|
|
59
|
+
"@unocss/core": "0.60.0",
|
|
60
|
+
"@unocss/extractor-arbitrary-variants": "0.60.0",
|
|
61
|
+
"@unocss/rule-utils": "0.60.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "unbuild",
|