@unocss/preset-mini 0.35.3 → 0.37.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/rules.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const _default = require('./chunks/default2.cjs');
6
+ const transform = require('./chunks/transform.cjs');
6
7
  require('./chunks/utilities.cjs');
7
8
  require('@unocss/core');
8
9
 
@@ -10,22 +11,14 @@ require('@unocss/core');
10
11
 
11
12
  exports.alignments = _default.alignments;
12
13
  exports.appearance = _default.appearance;
13
- exports.appearances = _default.appearances;
14
14
  exports.aspectRatio = _default.aspectRatio;
15
15
  exports.bgColors = _default.bgColors;
16
16
  exports.borders = _default.borders;
17
- exports.boxShadows = _default.boxShadows;
18
17
  exports.boxSizing = _default.boxSizing;
19
- exports.breaks = _default.breaks;
20
- exports.contents = _default.contents;
21
18
  exports.cssProperty = _default.cssProperty;
22
19
  exports.cssVariables = _default.cssVariables;
23
- exports.cursors = _default.cursors;
24
- exports.displays = _default.displays;
25
20
  exports.flex = _default.flex;
26
21
  exports.floats = _default.floats;
27
- exports.fontSmoothings = _default.fontSmoothings;
28
- exports.fontStyles = _default.fontStyles;
29
22
  exports.fonts = _default.fonts;
30
23
  exports.gaps = _default.gaps;
31
24
  exports.grids = _default.grids;
@@ -38,11 +31,8 @@ exports.outline = _default.outline;
38
31
  exports.overflows = _default.overflows;
39
32
  exports.paddings = _default.paddings;
40
33
  exports.placements = _default.placements;
41
- exports.pointerEvents = _default.pointerEvents;
42
34
  exports.positions = _default.positions;
43
35
  exports.questionMark = _default.questionMark;
44
- exports.resizes = _default.resizes;
45
- exports.rings = _default.rings;
46
36
  exports.rules = _default.rules;
47
37
  exports.sizes = _default.sizes;
48
38
  exports.svgUtilities = _default.svgUtilities;
@@ -51,15 +41,29 @@ exports.textAligns = _default.textAligns;
51
41
  exports.textColors = _default.textColors;
52
42
  exports.textDecorations = _default.textDecorations;
53
43
  exports.textIndents = _default.textIndents;
54
- exports.textOverflows = _default.textOverflows;
55
44
  exports.textShadows = _default.textShadows;
56
45
  exports.textStrokes = _default.textStrokes;
57
- exports.textTransforms = _default.textTransforms;
58
- exports.transforms = _default.transforms;
59
46
  exports.transitions = _default.transitions;
60
- exports.userSelects = _default.userSelects;
61
- exports.varEmpty = _default.varEmpty;
62
47
  exports.verticalAligns = _default.verticalAligns;
63
- exports.whitespaces = _default.whitespaces;
64
48
  exports.willChange = _default.willChange;
65
49
  exports.zIndexes = _default.zIndexes;
50
+ exports.appearances = transform.appearances;
51
+ exports.boxShadows = transform.boxShadows;
52
+ exports.boxShadowsBase = transform.boxShadowsBase;
53
+ exports.breaks = transform.breaks;
54
+ exports.contents = transform.contents;
55
+ exports.cursors = transform.cursors;
56
+ exports.displays = transform.displays;
57
+ exports.fontSmoothings = transform.fontSmoothings;
58
+ exports.fontStyles = transform.fontStyles;
59
+ exports.pointerEvents = transform.pointerEvents;
60
+ exports.resizes = transform.resizes;
61
+ exports.ringBase = transform.ringBase;
62
+ exports.rings = transform.rings;
63
+ exports.textOverflows = transform.textOverflows;
64
+ exports.textTransforms = transform.textTransforms;
65
+ exports.transformBase = transform.transformBase;
66
+ exports.transforms = transform.transforms;
67
+ exports.userSelects = transform.userSelects;
68
+ exports.varEmpty = transform.varEmpty;
69
+ exports.whitespaces = transform.whitespaces;
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
@@ -47,8 +47,22 @@ declare const boxSizing: Rule[];
47
47
  */
48
48
  declare const questionMark: Rule[];
49
49
 
50
+ declare const ringBase: {
51
+ '--un-ring-inset': string;
52
+ '--un-ring-offset-width': string;
53
+ '--un-ring-offset-color': string;
54
+ '--un-ring-width': string;
55
+ '--un-ring-color': string;
56
+ '--un-shadow': string;
57
+ };
50
58
  declare const rings: Rule<Theme>[];
51
59
 
60
+ declare const boxShadowsBase: {
61
+ '--un-ring-offset-shadow': string;
62
+ '--un-ring-shadow': string;
63
+ '--un-shadow-inset': string;
64
+ '--un-shadow': string;
65
+ };
52
66
  declare const boxShadows: Rule<Theme>[];
53
67
 
54
68
  declare const sizes: Rule<Theme>[];
@@ -74,6 +88,21 @@ declare const fontSmoothings: Rule[];
74
88
 
75
89
  declare const svgUtilities: Rule<Theme>[];
76
90
 
91
+ declare const transformBase: {
92
+ '--un-rotate': number;
93
+ '--un-rotate-x': number;
94
+ '--un-rotate-y': number;
95
+ '--un-rotate-z': number;
96
+ '--un-scale-x': number;
97
+ '--un-scale-y': number;
98
+ '--un-scale-z': number;
99
+ '--un-skew-x': number;
100
+ '--un-skew-y': number;
101
+ '--un-translate-x': number;
102
+ '--un-translate-y': number;
103
+ '--un-translate-z': number;
104
+ '--un-transform': string;
105
+ };
77
106
  declare const transforms: Rule[];
78
107
 
79
108
  declare const transitions: Rule<Theme>[];
@@ -89,4 +118,4 @@ declare const cssProperty: Rule[];
89
118
 
90
119
  declare const textDecorations: Rule<Theme>[];
91
120
 
92
- export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
121
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, 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,3 +1,4 @@
1
- export { l as alignments, a as appearance, G as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, N as breaks, M as contents, $ as cssProperty, _ as cssVariables, H as cursors, F as displays, f as flex, q as floats, R as fontSmoothings, Q as fontStyles, V as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, I as pointerEvents, p as positions, u as questionMark, J as resizes, x as rings, r as rules, A as sizes, S as svgUtilities, W as tabSizes, t as textAligns, d as textColors, a0 as textDecorations, X as textIndents, O as textOverflows, Z as textShadows, Y as textStrokes, P as textTransforms, T as transforms, U as transitions, K as userSelects, E as varEmpty, v as verticalAligns, L as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
1
+ export { l as alignments, a as appearance, y as aspectRatio, e as bgColors, b as borders, s as boxSizing, K as cssProperty, J as cssVariables, f as flex, q as floats, E as fonts, g as gaps, h as grids, n as insets, j as justifies, B as margins, c as opacity, k as orders, o as outline, i as overflows, A as paddings, m as placements, p as positions, u as questionMark, r as rules, x as sizes, C as svgUtilities, F as tabSizes, t as textAligns, d as textColors, L as textDecorations, G as textIndents, I as textShadows, H as textStrokes, D as transitions, v as verticalAligns, w as willChange, z as zIndexes } from './chunks/default2.mjs';
2
+ export { k as appearances, h as boxShadows, b as boxShadowsBase, m as breaks, c as contents, j as cursors, d as displays, g as fontSmoothings, f as fontStyles, p as pointerEvents, l as resizes, r as ringBase, i as rings, a as textOverflows, e as textTransforms, t as transformBase, n as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './chunks/transform.mjs';
2
3
  import './chunks/utilities.mjs';
3
4
  import '@unocss/core';
package/dist/theme.cjs CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./chunks/colors.cjs');
6
6
  const _default = require('./chunks/default.cjs');
7
+ require('./chunks/transform.cjs');
8
+ require('./chunks/utilities.cjs');
9
+ require('@unocss/core');
7
10
 
8
11
 
9
12
 
@@ -24,6 +27,7 @@ exports.lineHeight = _default.lineHeight;
24
27
  exports.lineWidth = _default.lineWidth;
25
28
  exports.maxHeight = _default.maxHeight;
26
29
  exports.maxWidth = _default.maxWidth;
30
+ exports.preflightBase = _default.preflightBase;
27
31
  exports.ringWidth = _default.ringWidth;
28
32
  exports.spacing = _default.spacing;
29
33
  exports.textIndent = _default.textIndent;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-ce2fecb8.js';
2
- export { t as theme } from './default-e6d1b2e8.js';
3
- import { T as Theme } from './types-f7b2c653.js';
4
- export { T as Theme, a as ThemeAnimation } from './types-f7b2c653.js';
1
+ export { c as colors } from './colors-5590b862.js';
2
+ export { t as theme } from './default-ee82f36d.js';
3
+ import { T as Theme } from './types-0f7ef446.js';
4
+ export { T as Theme, a as ThemeAnimation } from './types-0f7ef446.js';
5
5
 
6
6
  declare const blur: {
7
7
  DEFAULT: string;
@@ -194,4 +194,29 @@ declare const maxHeight: {
194
194
  none: string;
195
195
  };
196
196
 
197
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
197
+ declare const preflightBase: {
198
+ '--un-ring-inset': string;
199
+ '--un-ring-offset-width': string;
200
+ '--un-ring-offset-color': string;
201
+ '--un-ring-width': string;
202
+ '--un-ring-color': string;
203
+ '--un-shadow': string;
204
+ '--un-ring-offset-shadow': string;
205
+ '--un-ring-shadow': string;
206
+ '--un-shadow-inset': string;
207
+ '--un-rotate': number;
208
+ '--un-rotate-x': number;
209
+ '--un-rotate-y': number;
210
+ '--un-rotate-z': number;
211
+ '--un-scale-x': number;
212
+ '--un-scale-y': number;
213
+ '--un-scale-z': number;
214
+ '--un-skew-x': number;
215
+ '--un-skew-y': number;
216
+ '--un-translate-x': number;
217
+ '--un-translate-y': number;
218
+ '--un-translate-z': number;
219
+ '--un-transform': string;
220
+ };
221
+
222
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
package/dist/theme.mjs CHANGED
@@ -1,2 +1,5 @@
1
1
  export { c as colors } from './chunks/colors.mjs';
2
- export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, 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, 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 './chunks/default.mjs';
2
+ export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, 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, z 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 './chunks/default.mjs';
3
+ import './chunks/transform.mjs';
4
+ import './chunks/utilities.mjs';
5
+ import '@unocss/core';
@@ -45,6 +45,8 @@ interface Theme {
45
45
  gridRow?: Record<string, string>;
46
46
  gridTemplateColumn?: Record<string, string>;
47
47
  gridTemplateRow?: Record<string, string>;
48
+ /** Used to generate CSS variables placeholder in preflight */
49
+ preflightBase?: Record<string, string | number>;
48
50
  }
49
51
 
50
52
  export { Theme as T, ThemeAnimation as a };
@@ -1,5 +1,5 @@
1
1
  import { RuleContext, CSSEntries, ParsedColorValue, CSSObject, VariantContext } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-e7a7f845.js';
4
- import './types-f7b2c653.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-a77178bb.js';
4
+ import './types-0f7ef446.js';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
@@ -72,8 +72,8 @@ declare namespace handlers {
72
72
  };
73
73
  }
74
74
 
75
- declare const handler: _unocss_core.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
76
- declare const h: _unocss_core.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
75
+ declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
76
+ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
77
77
 
78
78
  declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => VariantObject;
79
79
  declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
package/dist/variants.cjs CHANGED
@@ -13,10 +13,11 @@ exports.partClasses = _default.partClasses;
13
13
  exports.variantBreakpoints = _default.variantBreakpoints;
14
14
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
15
15
  exports.variantCombinators = _default.variantCombinators;
16
+ exports.variantCssLayer = _default.variantCssLayer;
16
17
  exports.variantCustomMedia = _default.variantCustomMedia;
17
18
  exports.variantImportant = _default.variantImportant;
19
+ exports.variantInternalLayer = _default.variantInternalLayer;
18
20
  exports.variantLanguageDirections = _default.variantLanguageDirections;
19
- exports.variantLayer = _default.variantLayer;
20
21
  exports.variantNegative = _default.variantNegative;
21
22
  exports.variantPrint = _default.variantPrint;
22
23
  exports.variantPseudoClassFunctions = _default.variantPseudoClassFunctions;
@@ -1,9 +1,9 @@
1
1
  import { Variant, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
3
  import { PresetMiniOptions } from './index.js';
4
- import './default-e6d1b2e8.js';
5
- import './colors-ce2fecb8.js';
6
- import './utilities-e7a7f845.js';
4
+ import './default-ee82f36d.js';
5
+ import './colors-5590b862.js';
6
+ import './utilities-a77178bb.js';
7
7
 
8
8
  declare const variantBreakpoints: Variant<Theme>;
9
9
 
@@ -19,7 +19,8 @@ declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
19
19
  declare const variantLanguageDirections: Variant[];
20
20
 
21
21
  declare const variantSelector: Variant;
22
- declare const variantLayer: Variant;
22
+ declare const variantCssLayer: Variant;
23
+ declare const variantInternalLayer: Variant;
23
24
  declare const variantScope: Variant;
24
25
  declare const variantImportant: Variant;
25
26
  declare const variantNegative: Variant;
@@ -29,4 +30,4 @@ declare const variantPseudoClassFunctions: VariantObject;
29
30
  declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
30
31
  declare const partClasses: VariantObject;
31
32
 
32
- export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCustomMedia, variantImportant, variantLanguageDirections, variantLayer, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantTaggedPseudoClasses, variants };
33
+ export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantCustomMedia, j as variantImportant, f as variantLanguageDirections, h as variantLayer, k as variantNegative, c as variantPrint, m as variantPseudoClassFunctions, l as variantPseudoClassesAndElements, i as variantScope, g as variantSelector, n as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
1
+ export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, h as variantCssLayer, d as variantCustomMedia, k as variantImportant, i as variantInternalLayer, f as variantLanguageDirections, l as variantNegative, c as variantPrint, n as variantPseudoClassFunctions, m as variantPseudoClassesAndElements, j as variantScope, g as variantSelector, o as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
2
2
  import './chunks/utilities.mjs';
3
3
  import '@unocss/core';
4
4
  import './chunks/variants.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.35.3",
3
+ "version": "0.37.0",
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.35.3"
64
+ "@unocss/core": "0.37.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",