@unocss/preset-mini 0.24.1 → 0.25.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.
@@ -103,6 +103,7 @@ const breakpoints = {
103
103
  "xl": "1280px",
104
104
  "2xl": "1536px"
105
105
  };
106
+ const verticalBreakpoints = { ...breakpoints };
106
107
  const borderRadius = {
107
108
  "DEFAULT": "0.25rem",
108
109
  "none": "0px",
@@ -204,6 +205,7 @@ const theme = {
204
205
  fontFamily,
205
206
  fontSize,
206
207
  breakpoints,
208
+ verticalBreakpoints,
207
209
  borderRadius,
208
210
  lineHeight,
209
211
  letterSpacing,
@@ -235,5 +237,6 @@ exports.textIndent = textIndent;
235
237
  exports.textShadow = textShadow;
236
238
  exports.textStrokeWidth = textStrokeWidth;
237
239
  exports.theme = theme;
240
+ exports.verticalBreakpoints = verticalBreakpoints;
238
241
  exports.width = width;
239
242
  exports.wordSpacing = wordSpacing;
@@ -101,6 +101,7 @@ const breakpoints = {
101
101
  "xl": "1280px",
102
102
  "2xl": "1536px"
103
103
  };
104
+ const verticalBreakpoints = { ...breakpoints };
104
105
  const borderRadius = {
105
106
  "DEFAULT": "0.25rem",
106
107
  "none": "0px",
@@ -202,6 +203,7 @@ const theme = {
202
203
  fontFamily,
203
204
  fontSize,
204
205
  breakpoints,
206
+ verticalBreakpoints,
205
207
  borderRadius,
206
208
  lineHeight,
207
209
  letterSpacing,
@@ -215,4 +217,4 @@ const theme = {
215
217
  easing
216
218
  };
217
219
 
218
- export { fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, borderRadius as j, boxShadow as k, lineHeight as l, easing as m, baseSize as n, width as o, maxWidth as p, height as q, maxHeight as r, theme as t, wordSpacing as w };
220
+ export { fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, borderRadius as j, boxShadow as k, lineHeight as l, easing as m, baseSize as n, width as o, maxWidth as p, height as q, maxHeight as r, theme as t, verticalBreakpoints as v, wordSpacing as w };
@@ -472,6 +472,7 @@ const whitespaces = [
472
472
  [/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
473
473
  ];
474
474
  const contents = [
475
+ [/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
475
476
  ["content-empty", { content: '""' }],
476
477
  ["content-none", { content: '""' }]
477
478
  ];
@@ -591,6 +592,7 @@ function getSizeValue(minmax, hw, theme, prop) {
591
592
  const sizes = [
592
593
  [/^(min-|max-)?([wh])-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
593
594
  [/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
595
+ [/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.verticalBreakpoints?.[s] })],
594
596
  [/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.breakpoints?.[s] })]
595
597
  ];
596
598
  function getAspectRatio(prop) {
@@ -470,6 +470,7 @@ const whitespaces = [
470
470
  [/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
471
471
  ];
472
472
  const contents = [
473
+ [/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
473
474
  ["content-empty", { content: '""' }],
474
475
  ["content-none", { content: '""' }]
475
476
  ];
@@ -589,6 +590,7 @@ function getSizeValue(minmax, hw, theme, prop) {
589
590
  const sizes = [
590
591
  [/^(min-|max-)?([wh])-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
591
592
  [/^(min-|max-)?(block|inline)-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
593
+ [/^(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.verticalBreakpoints?.[s] })],
592
594
  [/^(min-|max-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: theme.breakpoints?.[s] })]
593
595
  ];
594
596
  function getAspectRatio(prop) {
@@ -58,19 +58,20 @@ const variantCombinators = [
58
58
  scopeMatcher(true, "group", "&&-c &&-s"),
59
59
  scopeMatcher(true, "parent", "&&-c>&&-s"),
60
60
  scopeMatcher(true, "previous", "&&-c+&&-s"),
61
- scopeMatcher(true, "peer", "&&-c~&&-s"),
62
- variants$1.variantMatcher("svg", (input) => `${input} svg`)
61
+ scopeMatcher(true, "peer", "&&-c~&&-s")
63
62
  ];
64
63
 
65
- const variantMotions = [
66
- variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
67
- variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
68
- ];
69
- const variantOrientations = [
70
- variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
71
- variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
72
- ];
73
64
  const variantPrint = variants$1.variantParentMatcher("print", "@media print");
65
+ const variantCustomMedia = (matcher, { theme }) => {
66
+ const match = matcher.match(/^media-([_\d\w]+)[:-]/);
67
+ if (match) {
68
+ const media = theme.media?.[match[1]] ?? `(--${match[1]})`;
69
+ return {
70
+ matcher: matcher.slice(match[0].length),
71
+ parent: `@media ${media}`
72
+ };
73
+ }
74
+ };
74
75
 
75
76
  const variantColorsMediaOrClass = (options = {}) => {
76
77
  if (options?.dark === "class") {
@@ -90,9 +91,20 @@ const variantLanguageDirections = [
90
91
  variants$1.variantMatcher("ltr", (input) => `[dir="ltr"] $$ ${input}`)
91
92
  ];
92
93
 
94
+ const variantSelector = {
95
+ match(matcher) {
96
+ const match = matcher.match(/^selector-\[(.+?)\][:-]/);
97
+ if (match) {
98
+ return {
99
+ matcher: matcher.slice(match[0].length),
100
+ selector: () => match[1]
101
+ };
102
+ }
103
+ }
104
+ };
93
105
  const variantLayer = {
94
106
  match(matcher) {
95
- const match = matcher.match(/layer-([\d\w]+)[:-]/);
107
+ const match = matcher.match(/^layer-([_\d\w]+)[:-]/);
96
108
  if (match) {
97
109
  return {
98
110
  matcher: matcher.slice(match[0].length),
@@ -101,6 +113,17 @@ const variantLayer = {
101
113
  }
102
114
  }
103
115
  };
116
+ const variantScope = {
117
+ match(matcher) {
118
+ const match = matcher.match(/^scope-([_\d\w]+)[:-]/);
119
+ if (match) {
120
+ return {
121
+ matcher: matcher.slice(match[0].length),
122
+ selector: (s) => `.${match[1]} $$ ${s}`
123
+ };
124
+ }
125
+ }
126
+ };
104
127
  const variantImportant = {
105
128
  match(matcher) {
106
129
  if (matcher.startsWith("!")) {
@@ -292,12 +315,12 @@ const partClasses = {
292
315
  };
293
316
 
294
317
  const variants = (options) => [
318
+ variantSelector,
295
319
  variantLayer,
296
320
  variantNegative,
297
321
  variantImportant,
298
322
  variantPrint,
299
- ...variantOrientations,
300
- ...variantMotions,
323
+ variantCustomMedia,
301
324
  variantBreakpoints,
302
325
  ...variantCombinators,
303
326
  variantPseudoClasses,
@@ -306,22 +329,24 @@ const variants = (options) => [
306
329
  variantPseudoElements,
307
330
  partClasses,
308
331
  ...variantColorsMediaOrClass(options),
309
- ...variantLanguageDirections
332
+ ...variantLanguageDirections,
333
+ variantScope
310
334
  ];
311
335
 
312
336
  exports.partClasses = partClasses;
313
337
  exports.variantBreakpoints = variantBreakpoints;
314
338
  exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
315
339
  exports.variantCombinators = variantCombinators;
340
+ exports.variantCustomMedia = variantCustomMedia;
316
341
  exports.variantImportant = variantImportant;
317
342
  exports.variantLanguageDirections = variantLanguageDirections;
318
343
  exports.variantLayer = variantLayer;
319
- exports.variantMotions = variantMotions;
320
344
  exports.variantNegative = variantNegative;
321
- exports.variantOrientations = variantOrientations;
322
345
  exports.variantPrint = variantPrint;
323
346
  exports.variantPseudoClassFunctions = variantPseudoClassFunctions;
324
347
  exports.variantPseudoClasses = variantPseudoClasses;
325
348
  exports.variantPseudoElements = variantPseudoElements;
349
+ exports.variantScope = variantScope;
350
+ exports.variantSelector = variantSelector;
326
351
  exports.variantTaggedPseudoClasses = variantTaggedPseudoClasses;
327
352
  exports.variants = variants;
@@ -1,4 +1,4 @@
1
- import { v as variantMatcher, a as variantParentMatcher } from './variants.mjs';
1
+ import { v as variantParentMatcher, a as variantMatcher } from './variants.mjs';
2
2
  import { toArray, escapeRegExp } from '@unocss/core';
3
3
 
4
4
  const regexCache = {};
@@ -56,19 +56,20 @@ const variantCombinators = [
56
56
  scopeMatcher(true, "group", "&&-c &&-s"),
57
57
  scopeMatcher(true, "parent", "&&-c>&&-s"),
58
58
  scopeMatcher(true, "previous", "&&-c+&&-s"),
59
- scopeMatcher(true, "peer", "&&-c~&&-s"),
60
- variantMatcher("svg", (input) => `${input} svg`)
59
+ scopeMatcher(true, "peer", "&&-c~&&-s")
61
60
  ];
62
61
 
63
- const variantMotions = [
64
- variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
65
- variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
66
- ];
67
- const variantOrientations = [
68
- variantParentMatcher("landscape", "@media (orientation: landscape)"),
69
- variantParentMatcher("portrait", "@media (orientation: portrait)")
70
- ];
71
62
  const variantPrint = variantParentMatcher("print", "@media print");
63
+ const variantCustomMedia = (matcher, { theme }) => {
64
+ const match = matcher.match(/^media-([_\d\w]+)[:-]/);
65
+ if (match) {
66
+ const media = theme.media?.[match[1]] ?? `(--${match[1]})`;
67
+ return {
68
+ matcher: matcher.slice(match[0].length),
69
+ parent: `@media ${media}`
70
+ };
71
+ }
72
+ };
72
73
 
73
74
  const variantColorsMediaOrClass = (options = {}) => {
74
75
  if (options?.dark === "class") {
@@ -88,9 +89,20 @@ const variantLanguageDirections = [
88
89
  variantMatcher("ltr", (input) => `[dir="ltr"] $$ ${input}`)
89
90
  ];
90
91
 
92
+ const variantSelector = {
93
+ match(matcher) {
94
+ const match = matcher.match(/^selector-\[(.+?)\][:-]/);
95
+ if (match) {
96
+ return {
97
+ matcher: matcher.slice(match[0].length),
98
+ selector: () => match[1]
99
+ };
100
+ }
101
+ }
102
+ };
91
103
  const variantLayer = {
92
104
  match(matcher) {
93
- const match = matcher.match(/layer-([\d\w]+)[:-]/);
105
+ const match = matcher.match(/^layer-([_\d\w]+)[:-]/);
94
106
  if (match) {
95
107
  return {
96
108
  matcher: matcher.slice(match[0].length),
@@ -99,6 +111,17 @@ const variantLayer = {
99
111
  }
100
112
  }
101
113
  };
114
+ const variantScope = {
115
+ match(matcher) {
116
+ const match = matcher.match(/^scope-([_\d\w]+)[:-]/);
117
+ if (match) {
118
+ return {
119
+ matcher: matcher.slice(match[0].length),
120
+ selector: (s) => `.${match[1]} $$ ${s}`
121
+ };
122
+ }
123
+ }
124
+ };
102
125
  const variantImportant = {
103
126
  match(matcher) {
104
127
  if (matcher.startsWith("!")) {
@@ -290,12 +313,12 @@ const partClasses = {
290
313
  };
291
314
 
292
315
  const variants = (options) => [
316
+ variantSelector,
293
317
  variantLayer,
294
318
  variantNegative,
295
319
  variantImportant,
296
320
  variantPrint,
297
- ...variantOrientations,
298
- ...variantMotions,
321
+ variantCustomMedia,
299
322
  variantBreakpoints,
300
323
  ...variantCombinators,
301
324
  variantPseudoClasses,
@@ -304,7 +327,8 @@ const variants = (options) => [
304
327
  variantPseudoElements,
305
328
  partClasses,
306
329
  ...variantColorsMediaOrClass(options),
307
- ...variantLanguageDirections
330
+ ...variantLanguageDirections,
331
+ variantScope
308
332
  ];
309
333
 
310
- export { variantBreakpoints as a, variantCombinators as b, variantMotions as c, variantOrientations as d, variantPrint as e, variantColorsMediaOrClass as f, variantLanguageDirections as g, variantLayer as h, variantImportant as i, variantNegative as j, variantPseudoElements as k, variantPseudoClasses as l, variantPseudoClassFunctions as m, variantTaggedPseudoClasses as n, partClasses as p, variants as v };
334
+ export { variantBreakpoints as a, variantCombinators as b, variantPrint as c, variantCustomMedia as d, variantColorsMediaOrClass as e, variantLanguageDirections as f, variantSelector as g, variantLayer as h, variantScope as i, variantImportant as j, variantNegative as k, variantPseudoElements as l, variantPseudoClasses as m, variantPseudoClassFunctions as n, variantTaggedPseudoClasses as o, partClasses as p, variants as v };
@@ -58,7 +58,7 @@ function parseColor$1(str) {
58
58
  return color;
59
59
  }
60
60
  function parseHexColor(str) {
61
- const [, body] = str.match(/^#?([\da-f]+)$/i) || [];
61
+ const [, body] = str.match(/^#([\da-f]+)$/i) || [];
62
62
  if (!body)
63
63
  return;
64
64
  switch (body.length) {
@@ -354,7 +354,8 @@ const cssProps = [
354
354
  "mask-size",
355
355
  "mask-border",
356
356
  "clip-path",
357
- "clip"
357
+ "clip",
358
+ "border-radius"
358
359
  ];
359
360
  const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i;
360
361
  const numberRE = /^(-?[0-9.]+)$/i;
@@ -496,9 +497,9 @@ const parseColor = (body, theme) => {
496
497
  const bracket = handler.bracket(main);
497
498
  const bracketOrMain = bracket || main;
498
499
  if (bracketOrMain.startsWith("#"))
499
- color = bracketOrMain.slice(1);
500
+ color = bracketOrMain;
500
501
  else if (bracketOrMain.startsWith("hex-"))
501
- color = bracketOrMain.slice(4);
502
+ color = `#${bracketOrMain.slice(4)}`;
502
503
  else if (main.startsWith("$"))
503
504
  color = handler.cssvar(main);
504
505
  color = color || bracket;
@@ -56,7 +56,7 @@ function parseColor$1(str) {
56
56
  return color;
57
57
  }
58
58
  function parseHexColor(str) {
59
- const [, body] = str.match(/^#?([\da-f]+)$/i) || [];
59
+ const [, body] = str.match(/^#([\da-f]+)$/i) || [];
60
60
  if (!body)
61
61
  return;
62
62
  switch (body.length) {
@@ -352,7 +352,8 @@ const cssProps = [
352
352
  "mask-size",
353
353
  "mask-border",
354
354
  "clip-path",
355
- "clip"
355
+ "clip",
356
+ "border-radius"
356
357
  ];
357
358
  const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i;
358
359
  const numberRE = /^(-?[0-9.]+)$/i;
@@ -494,9 +495,9 @@ const parseColor = (body, theme) => {
494
495
  const bracket = handler.bracket(main);
495
496
  const bracketOrMain = bracket || main;
496
497
  if (bracketOrMain.startsWith("#"))
497
- color = bracketOrMain.slice(1);
498
+ color = bracketOrMain;
498
499
  else if (bracketOrMain.startsWith("hex-"))
499
- color = bracketOrMain.slice(4);
500
+ color = `#${bracketOrMain.slice(4)}`;
500
501
  else if (main.startsWith("$"))
501
502
  color = handler.cssvar(main);
502
503
  color = color || bracket;
@@ -25,4 +25,4 @@ const variantParentMatcher = (name, parent) => {
25
25
  };
26
26
  };
27
27
 
28
- export { variantParentMatcher as a, variantMatcher as v };
28
+ export { variantMatcher as a, variantParentMatcher as v };
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-154878eb';
1
+ import { T as Theme } from './types-ef1d7462';
2
2
 
3
3
  declare const colors: Theme['colors'];
4
4
 
package/dist/colors.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as colors } from './colors-db01a23e';
2
- import './types-154878eb';
1
+ export { c as colors } from './colors-0db1b382';
2
+ import './types-ef1d7462';
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-154878eb';
1
+ import { T as Theme } from './types-ef1d7462';
2
2
 
3
3
  declare const theme: Theme;
4
4
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { PresetOptions, Preset } from '@unocss/core';
2
- import { T as Theme } from './types-154878eb';
3
- export { T as Theme, a as ThemeAnimation } from './types-154878eb';
4
- export { t as theme } from './default-c46850c2';
5
- export { c as colors } from './colors-db01a23e';
6
- export { p as parseColor } from './utilities-0dc6e82e';
2
+ import { T as Theme } from './types-ef1d7462';
3
+ export { T as Theme, a as ThemeAnimation } from './types-ef1d7462';
4
+ export { t as theme } from './default-3eaf5bb0';
5
+ export { c as colors } from './colors-0db1b382';
6
+ export { p as parseColor } from './utilities-43c87ad4';
7
7
 
8
8
  interface PresetMiniOptions extends PresetOptions {
9
9
  /**
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule } from '@unocss/core';
2
- import { T as Theme } from './types-154878eb';
2
+ import { T as Theme } from './types-ef1d7462';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/theme.cjs CHANGED
@@ -26,5 +26,6 @@ exports.textIndent = _default.textIndent;
26
26
  exports.textShadow = _default.textShadow;
27
27
  exports.textStrokeWidth = _default.textStrokeWidth;
28
28
  exports.theme = _default.theme;
29
+ exports.verticalBreakpoints = _default.verticalBreakpoints;
29
30
  exports.width = _default.width;
30
31
  exports.wordSpacing = _default.wordSpacing;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-db01a23e';
2
- export { t as theme } from './default-c46850c2';
3
- import { T as Theme } from './types-154878eb';
4
- export { T as Theme, a as ThemeAnimation } from './types-154878eb';
1
+ export { c as colors } from './colors-0db1b382';
2
+ export { t as theme } from './default-3eaf5bb0';
3
+ import { T as Theme } from './types-ef1d7462';
4
+ export { T as Theme, a as ThemeAnimation } from './types-ef1d7462';
5
5
 
6
6
  declare const blur: {
7
7
  DEFAULT: string;
@@ -43,6 +43,13 @@ declare const breakpoints: {
43
43
  xl: string;
44
44
  '2xl': string;
45
45
  };
46
+ declare const verticalBreakpoints: {
47
+ sm: string;
48
+ md: string;
49
+ lg: string;
50
+ xl: string;
51
+ '2xl': string;
52
+ };
46
53
  declare const borderRadius: {
47
54
  DEFAULT: string;
48
55
  none: string;
@@ -151,4 +158,4 @@ declare const maxHeight: {
151
158
  none: string;
152
159
  };
153
160
 
154
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, width, wordSpacing };
161
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
package/dist/theme.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  export { c as colors } from './chunks/colors.mjs';
2
- export { n as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, m as easing, f as fontFamily, a as fontSize, q as height, h as letterSpacing, l as lineHeight, r as maxHeight, p as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, o as width, w as wordSpacing } from './chunks/default.mjs';
2
+ export { n as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, m as easing, f as fontFamily, a as fontSize, q as height, h as letterSpacing, l as lineHeight, r as maxHeight, p as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, o as width, w as wordSpacing } from './chunks/default.mjs';
@@ -19,6 +19,7 @@ interface Theme {
19
19
  minBlockSize?: Record<string, string>;
20
20
  borderRadius?: Record<string, string>;
21
21
  breakpoints?: Record<string, string>;
22
+ verticalBreakpoints?: Record<string, string>;
22
23
  colors?: Record<string, string | Record<string, string>>;
23
24
  fontFamily?: Record<string, string>;
24
25
  fontSize?: Record<string, [string, string]>;
@@ -32,6 +33,7 @@ interface Theme {
32
33
  blur?: Record<string, string>;
33
34
  dropShadow?: Record<string, string | string[]>;
34
35
  easing?: Record<string, string>;
36
+ media?: Record<string, string>;
35
37
  animation?: ThemeAnimation;
36
38
  }
37
39
 
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue } from '@unocss/core';
2
- import { T as Theme } from './types-154878eb';
2
+ import { T as Theme } from './types-ef1d7462';
3
3
 
4
4
  /**
5
5
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandler } from '@unocss/core';
3
- export { c as colorResolver, a as colorableShadows, d as directionSize, p as parseColor } from './utilities-0dc6e82e';
4
- import './types-154878eb';
3
+ export { c as colorResolver, a as colorableShadows, d as directionSize, p as parseColor } from './utilities-43c87ad4';
4
+ import './types-ef1d7462';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  export { c as colorResolver, a as colorToString, e as colorableShadows, b as cornerMap, d as directionMap, f as directionSize, l as getComponents, m as h, h as handler, j as hex2rgba, i as insetMap, p as parseColor, k as parseCssColor, g as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
- export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
2
+ export { a as variantMatcher, v as variantParentMatcher } from './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -12,15 +12,16 @@ exports.partClasses = _default.partClasses;
12
12
  exports.variantBreakpoints = _default.variantBreakpoints;
13
13
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
14
14
  exports.variantCombinators = _default.variantCombinators;
15
+ exports.variantCustomMedia = _default.variantCustomMedia;
15
16
  exports.variantImportant = _default.variantImportant;
16
17
  exports.variantLanguageDirections = _default.variantLanguageDirections;
17
18
  exports.variantLayer = _default.variantLayer;
18
- exports.variantMotions = _default.variantMotions;
19
19
  exports.variantNegative = _default.variantNegative;
20
- exports.variantOrientations = _default.variantOrientations;
21
20
  exports.variantPrint = _default.variantPrint;
22
21
  exports.variantPseudoClassFunctions = _default.variantPseudoClassFunctions;
23
22
  exports.variantPseudoClasses = _default.variantPseudoClasses;
24
23
  exports.variantPseudoElements = _default.variantPseudoElements;
24
+ exports.variantScope = _default.variantScope;
25
+ exports.variantSelector = _default.variantSelector;
25
26
  exports.variantTaggedPseudoClasses = _default.variantTaggedPseudoClasses;
26
27
  exports.variants = _default.variants;
@@ -1,17 +1,16 @@
1
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './types-154878eb';
2
+ import { T as Theme } from './types-ef1d7462';
3
3
  import { PresetMiniOptions } from './index';
4
- import './default-c46850c2';
5
- import './colors-db01a23e';
6
- import './utilities-0dc6e82e';
4
+ import './default-3eaf5bb0';
5
+ import './colors-0db1b382';
6
+ import './utilities-43c87ad4';
7
7
 
8
8
  declare const variantBreakpoints: Variant<Theme>;
9
9
 
10
10
  declare const variantCombinators: Variant[];
11
11
 
12
- declare const variantMotions: VariantFunction[];
13
- declare const variantOrientations: VariantFunction[];
14
12
  declare const variantPrint: VariantFunction;
13
+ declare const variantCustomMedia: VariantFunction;
15
14
 
16
15
  declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
17
16
 
@@ -19,7 +18,9 @@ declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
19
18
 
20
19
  declare const variantLanguageDirections: Variant[];
21
20
 
21
+ declare const variantSelector: Variant;
22
22
  declare const variantLayer: Variant;
23
+ declare const variantScope: Variant;
23
24
  declare const variantImportant: Variant;
24
25
  declare const variantNegative: Variant;
25
26
 
@@ -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, variantImportant, variantLanguageDirections, variantLayer, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
33
+ export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCustomMedia, variantImportant, variantLanguageDirections, variantLayer, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantScope, variantSelector, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, i as variantImportant, g as variantLanguageDirections, h as variantLayer, c as variantMotions, j as variantNegative, d as variantOrientations, e as variantPrint, m as variantPseudoClassFunctions, l as variantPseudoClasses, k as variantPseudoElements, n as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
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, n as variantPseudoClassFunctions, m as variantPseudoClasses, l as variantPseudoElements, i as variantScope, g as variantSelector, o as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
2
2
  import './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.24.1"
64
+ "@unocss/core": "0.25.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",