@unocss/preset-mini 0.22.0 → 0.22.4

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.
@@ -43,9 +43,19 @@ const variantCombinators = [
43
43
  variants$1.variantMatcher("next", (input) => `${input}+*`),
44
44
  variants$1.variantMatcher("sibling", (input) => `${input}+*`),
45
45
  variants$1.variantMatcher("siblings", (input) => `${input}~*`),
46
- variants$1.variantMatcher("svg", (input) => `${input} svg *`)
46
+ variants$1.variantMatcher("svg", (input) => `${input} svg`)
47
47
  ];
48
48
 
49
+ const variantMotions = [
50
+ variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
51
+ variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
52
+ ];
53
+ const variantOrientations = [
54
+ variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
55
+ variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
56
+ ];
57
+ const variantPrint = variants$1.variantParentMatcher("print", "@media print");
58
+
49
59
  const variantColorsMediaOrClass = (options = {}) => {
50
60
  if (options?.dark === "class") {
51
61
  return [
@@ -98,19 +108,6 @@ const variantNegative = {
98
108
  }
99
109
  };
100
110
 
101
- const variantMotions = [
102
- variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
103
- variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
104
- ];
105
-
106
- const variantOrientations = [
107
- variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
108
- variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
109
- ];
110
-
111
- const variantPrint = variants$1.variantParentMatcher("print", "@media print");
112
-
113
- const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
114
111
  const PseudoClasses = Object.fromEntries([
115
112
  "any-link",
116
113
  "link",
@@ -173,9 +170,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
173
170
  const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
174
171
  const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
175
172
  const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
176
- function shouldAdd(entires) {
177
- return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
178
- }
179
173
  const taggedPseudoClassMatcher = (tag, parent, combinator) => {
180
174
  const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
181
175
  const rawRe = new RegExp(`^${core.escapeRegExp(parent)}:`);
@@ -187,9 +181,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
187
181
  pseudo = `:${match[2]}(${pseudo})`;
188
182
  return {
189
183
  matcher: input.slice(match[1].length + tag.length + 2),
190
- selector: (s, body) => {
191
- return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
192
- }
184
+ selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
193
185
  };
194
186
  }
195
187
  };
@@ -211,7 +203,7 @@ const variantPseudoClasses = {
211
203
  const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
212
204
  return {
213
205
  matcher: input.slice(match[1].length + 1),
214
- selector: (s, body) => shouldAdd(body) && `${s}${pseudo}`
206
+ selector: (s) => `${s}${pseudo}`
215
207
  };
216
208
  }
217
209
  },
@@ -225,7 +217,7 @@ const variantPseudoClassFunctions = {
225
217
  const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
226
218
  return {
227
219
  matcher: input.slice(match[1].length + match[2].length + 2),
228
- selector: (s, body) => shouldAdd(body) && `${s}:${fn}(${pseudo})`
220
+ selector: (s) => `${s}:${fn}(${pseudo})`
229
221
  };
230
222
  }
231
223
  },
@@ -251,9 +243,7 @@ const partClasses = {
251
243
  const part = `part(${match[2]})`;
252
244
  return {
253
245
  matcher: input.slice(match[1].length),
254
- selector: (s, body) => {
255
- return shouldAdd(body) && `${s}::${part}`;
256
- }
246
+ selector: (s) => `${s}::${part}`
257
247
  };
258
248
  }
259
249
  },
@@ -277,7 +267,6 @@ const variants = (options) => [
277
267
  ...variantLanguageDirections
278
268
  ];
279
269
 
280
- exports.CONTROL_BYPASS_PSEUDO_CLASS = CONTROL_BYPASS_PSEUDO_CLASS;
281
270
  exports.partClasses = partClasses;
282
271
  exports.variantBreakpoints = variantBreakpoints;
283
272
  exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
@@ -41,9 +41,19 @@ const variantCombinators = [
41
41
  variantMatcher("next", (input) => `${input}+*`),
42
42
  variantMatcher("sibling", (input) => `${input}+*`),
43
43
  variantMatcher("siblings", (input) => `${input}~*`),
44
- variantMatcher("svg", (input) => `${input} svg *`)
44
+ variantMatcher("svg", (input) => `${input} svg`)
45
45
  ];
46
46
 
47
+ const variantMotions = [
48
+ variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
49
+ variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
50
+ ];
51
+ const variantOrientations = [
52
+ variantParentMatcher("landscape", "@media (orientation: landscape)"),
53
+ variantParentMatcher("portrait", "@media (orientation: portrait)")
54
+ ];
55
+ const variantPrint = variantParentMatcher("print", "@media print");
56
+
47
57
  const variantColorsMediaOrClass = (options = {}) => {
48
58
  if (options?.dark === "class") {
49
59
  return [
@@ -96,19 +106,6 @@ const variantNegative = {
96
106
  }
97
107
  };
98
108
 
99
- const variantMotions = [
100
- variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
101
- variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
102
- ];
103
-
104
- const variantOrientations = [
105
- variantParentMatcher("landscape", "@media (orientation: landscape)"),
106
- variantParentMatcher("portrait", "@media (orientation: portrait)")
107
- ];
108
-
109
- const variantPrint = variantParentMatcher("print", "@media print");
110
-
111
- const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
112
109
  const PseudoClasses = Object.fromEntries([
113
110
  "any-link",
114
111
  "link",
@@ -171,9 +168,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
171
168
  const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
172
169
  const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
173
170
  const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
174
- function shouldAdd(entires) {
175
- return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
176
- }
177
171
  const taggedPseudoClassMatcher = (tag, parent, combinator) => {
178
172
  const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
179
173
  const rawRe = new RegExp(`^${escapeRegExp(parent)}:`);
@@ -185,9 +179,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
185
179
  pseudo = `:${match[2]}(${pseudo})`;
186
180
  return {
187
181
  matcher: input.slice(match[1].length + tag.length + 2),
188
- selector: (s, body) => {
189
- return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
190
- }
182
+ selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
191
183
  };
192
184
  }
193
185
  };
@@ -209,7 +201,7 @@ const variantPseudoClasses = {
209
201
  const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
210
202
  return {
211
203
  matcher: input.slice(match[1].length + 1),
212
- selector: (s, body) => shouldAdd(body) && `${s}${pseudo}`
204
+ selector: (s) => `${s}${pseudo}`
213
205
  };
214
206
  }
215
207
  },
@@ -223,7 +215,7 @@ const variantPseudoClassFunctions = {
223
215
  const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
224
216
  return {
225
217
  matcher: input.slice(match[1].length + match[2].length + 2),
226
- selector: (s, body) => shouldAdd(body) && `${s}:${fn}(${pseudo})`
218
+ selector: (s) => `${s}:${fn}(${pseudo})`
227
219
  };
228
220
  }
229
221
  },
@@ -249,9 +241,7 @@ const partClasses = {
249
241
  const part = `part(${match[2]})`;
250
242
  return {
251
243
  matcher: input.slice(match[1].length),
252
- selector: (s, body) => {
253
- return shouldAdd(body) && `${s}::${part}`;
254
- }
244
+ selector: (s) => `${s}::${part}`
255
245
  };
256
246
  }
257
247
  },
@@ -275,4 +265,4 @@ const variants = (options) => [
275
265
  ...variantLanguageDirections
276
266
  ];
277
267
 
278
- export { CONTROL_BYPASS_PSEUDO_CLASS as C, variantBreakpoints as a, variantCombinators as b, variantColorsMediaOrClass as c, variantLanguageDirections as d, variantImportant as e, variantNegative as f, variantMotions as g, variantOrientations as h, variantPrint as i, variantPseudoElements as j, variantPseudoClasses as k, variantPseudoClassFunctions as l, variantTaggedPseudoClasses as m, partClasses as p, variants as v };
268
+ export { variantBreakpoints as a, variantCombinators as b, variantMotions as c, variantOrientations as d, variantPrint as e, variantColorsMediaOrClass as f, variantLanguageDirections as g, variantImportant as h, variantNegative as i, variantPseudoElements as j, variantPseudoClasses as k, variantPseudoClassFunctions as l, variantTaggedPseudoClasses as m, partClasses as p, variants as v };
@@ -12,13 +12,29 @@ const directionMap = {
12
12
  "x": ["-left", "-right"],
13
13
  "y": ["-top", "-bottom"],
14
14
  "": [""],
15
- "a": [""]
15
+ "bs": ["-block-start"],
16
+ "be": ["-block-end"],
17
+ "is": ["-inline-start"],
18
+ "ie": ["-inline-end"],
19
+ "block": ["-block-start", "-block-end"],
20
+ "inline": ["-inline-start", "-inline-end"]
21
+ };
22
+ const insetMap = {
23
+ ...directionMap,
24
+ s: ["-inset-inline-start"],
25
+ e: ["-inset-inline-end"],
26
+ bs: ["-inset-block-start"],
27
+ be: ["-inset-block-end"],
28
+ is: ["-inset-inline-start"],
29
+ ie: ["-inset-inline-end"],
30
+ block: ["-inset-block-start", "-inset-block-end"],
31
+ inline: ["-inset-inline-start", "-inset-inline-end"]
16
32
  };
17
33
  const cornerMap = {
18
- "t": ["-top-left", "-top-right"],
34
+ "l": ["-top-left", "-bottom-left"],
19
35
  "r": ["-top-right", "-bottom-right"],
36
+ "t": ["-top-left", "-top-right"],
20
37
  "b": ["-bottom-left", "-bottom-right"],
21
- "l": ["-bottom-left", "-top-left"],
22
38
  "tl": ["-top-left"],
23
39
  "lt": ["-top-left"],
24
40
  "tr": ["-top-right"],
@@ -27,7 +43,19 @@ const cornerMap = {
27
43
  "lb": ["-bottom-left"],
28
44
  "br": ["-bottom-right"],
29
45
  "rb": ["-bottom-right"],
30
- "": [""]
46
+ "": [""],
47
+ "bs": ["-start-start", "-start-end"],
48
+ "be": ["-end-start", "-end-end"],
49
+ "is": ["-end-start", "-start-start"],
50
+ "ie": ["-start-end", "-end-end"],
51
+ "bs-is": ["-start-start"],
52
+ "is-bs": ["-start-start"],
53
+ "bs-ie": ["-start-end"],
54
+ "ie-bs": ["-start-end"],
55
+ "be-is": ["-end-start"],
56
+ "is-be": ["-end-start"],
57
+ "be-ie": ["-end-end"],
58
+ "ie-be": ["-end-end"]
31
59
  };
32
60
  const xyzMap = {
33
61
  "x": ["-x"],
@@ -178,7 +206,7 @@ function fraction(str) {
178
206
  }
179
207
  function bracket(str) {
180
208
  if (str && str[0] === "[" && str[str.length - 1] === "]") {
181
- return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
209
+ return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(?<!\\)_/g, " ").replace(/calc\((.*)/g, (v) => {
182
210
  return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
183
211
  });
184
212
  }
@@ -197,7 +225,7 @@ function time(str) {
197
225
  return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
198
226
  }
199
227
  function degree(str) {
200
- const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
228
+ const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
201
229
  if (!match)
202
230
  return;
203
231
  const [, n, unit] = match;
@@ -237,11 +265,8 @@ const valueHandlers = {
237
265
  const handler = core.createValueHandler(valueHandlers);
238
266
  const h = handler;
239
267
 
240
- function capitalize(str) {
241
- return str.charAt(0).toUpperCase() + str.slice(1);
242
- }
243
268
  const directionSize = (propertyPrefix) => ([_, direction, size]) => {
244
- const v = handler.bracket.auto.rem.fraction.cssvar(size);
269
+ const v = handler.bracket.cssvar.auto.fraction.rem(size);
245
270
  if (v !== void 0)
246
271
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
247
272
  };
@@ -325,13 +350,13 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
325
350
  }
326
351
  };
327
352
 
328
- exports.capitalize = capitalize;
329
353
  exports.colorResolver = colorResolver;
330
354
  exports.cornerMap = cornerMap;
331
355
  exports.directionMap = directionMap;
332
356
  exports.directionSize = directionSize;
333
357
  exports.h = h;
334
358
  exports.handler = handler;
359
+ exports.insetMap = insetMap;
335
360
  exports.parseColor = parseColor;
336
361
  exports.positionMap = positionMap;
337
362
  exports.valueHandlers = valueHandlers;
@@ -10,13 +10,29 @@ const directionMap = {
10
10
  "x": ["-left", "-right"],
11
11
  "y": ["-top", "-bottom"],
12
12
  "": [""],
13
- "a": [""]
13
+ "bs": ["-block-start"],
14
+ "be": ["-block-end"],
15
+ "is": ["-inline-start"],
16
+ "ie": ["-inline-end"],
17
+ "block": ["-block-start", "-block-end"],
18
+ "inline": ["-inline-start", "-inline-end"]
19
+ };
20
+ const insetMap = {
21
+ ...directionMap,
22
+ s: ["-inset-inline-start"],
23
+ e: ["-inset-inline-end"],
24
+ bs: ["-inset-block-start"],
25
+ be: ["-inset-block-end"],
26
+ is: ["-inset-inline-start"],
27
+ ie: ["-inset-inline-end"],
28
+ block: ["-inset-block-start", "-inset-block-end"],
29
+ inline: ["-inset-inline-start", "-inset-inline-end"]
14
30
  };
15
31
  const cornerMap = {
16
- "t": ["-top-left", "-top-right"],
32
+ "l": ["-top-left", "-bottom-left"],
17
33
  "r": ["-top-right", "-bottom-right"],
34
+ "t": ["-top-left", "-top-right"],
18
35
  "b": ["-bottom-left", "-bottom-right"],
19
- "l": ["-bottom-left", "-top-left"],
20
36
  "tl": ["-top-left"],
21
37
  "lt": ["-top-left"],
22
38
  "tr": ["-top-right"],
@@ -25,7 +41,19 @@ const cornerMap = {
25
41
  "lb": ["-bottom-left"],
26
42
  "br": ["-bottom-right"],
27
43
  "rb": ["-bottom-right"],
28
- "": [""]
44
+ "": [""],
45
+ "bs": ["-start-start", "-start-end"],
46
+ "be": ["-end-start", "-end-end"],
47
+ "is": ["-end-start", "-start-start"],
48
+ "ie": ["-start-end", "-end-end"],
49
+ "bs-is": ["-start-start"],
50
+ "is-bs": ["-start-start"],
51
+ "bs-ie": ["-start-end"],
52
+ "ie-bs": ["-start-end"],
53
+ "be-is": ["-end-start"],
54
+ "is-be": ["-end-start"],
55
+ "be-ie": ["-end-end"],
56
+ "ie-be": ["-end-end"]
29
57
  };
30
58
  const xyzMap = {
31
59
  "x": ["-x"],
@@ -176,7 +204,7 @@ function fraction(str) {
176
204
  }
177
205
  function bracket(str) {
178
206
  if (str && str[0] === "[" && str[str.length - 1] === "]") {
179
- return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
207
+ return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(?<!\\)_/g, " ").replace(/calc\((.*)/g, (v) => {
180
208
  return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
181
209
  });
182
210
  }
@@ -195,7 +223,7 @@ function time(str) {
195
223
  return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
196
224
  }
197
225
  function degree(str) {
198
- const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
226
+ const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
199
227
  if (!match)
200
228
  return;
201
229
  const [, n, unit] = match;
@@ -235,11 +263,8 @@ const valueHandlers = {
235
263
  const handler = createValueHandler(valueHandlers);
236
264
  const h = handler;
237
265
 
238
- function capitalize(str) {
239
- return str.charAt(0).toUpperCase() + str.slice(1);
240
- }
241
266
  const directionSize = (propertyPrefix) => ([_, direction, size]) => {
242
- const v = handler.bracket.auto.rem.fraction.cssvar(size);
267
+ const v = handler.bracket.cssvar.auto.fraction.rem(size);
243
268
  if (v !== void 0)
244
269
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
245
270
  };
@@ -323,4 +348,4 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
323
348
  }
324
349
  };
325
350
 
326
- export { cornerMap as a, capitalize as b, colorResolver as c, directionMap as d, directionSize as e, positionMap as f, h as g, handler as h, parseColor as p, valueHandlers as v, xyzMap as x };
351
+ export { cornerMap as a, directionSize as b, colorResolver as c, directionMap as d, positionMap as e, h as f, handler as h, insetMap as i, parseColor as p, valueHandlers as v, xyzMap as x };
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-a2d2b52f';
1
+ import { T as Theme } from './types-c14b808b';
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-6d634692';
2
- import './types-a2d2b52f';
1
+ export { c as colors } from './colors-338f482c';
2
+ import './types-c14b808b';
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-a2d2b52f';
1
+ import { T as Theme } from './types-c14b808b';
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-a2d2b52f';
3
- export { T as Theme, a as ThemeAnimation } from './types-a2d2b52f';
4
- export { t as theme } from './default-958434b6';
5
- export { c as colors } from './colors-6d634692';
6
- export { p as parseColor } from './utilities-22a522e2';
2
+ import { T as Theme } from './types-c14b808b';
3
+ export { T as Theme, a as ThemeAnimation } from './types-c14b808b';
4
+ export { t as theme } from './default-17948303';
5
+ export { c as colors } from './colors-338f482c';
6
+ export { p as parseColor } from './utilities-29b01158';
7
7
 
8
8
  interface PresetMiniOptions extends PresetOptions {
9
9
  /**
package/dist/rules.cjs CHANGED
@@ -17,7 +17,9 @@ exports.borders = _default.borders;
17
17
  exports.boxShadows = _default.boxShadows;
18
18
  exports.boxSizing = _default.boxSizing;
19
19
  exports.breaks = _default.breaks;
20
+ exports.colorableShadows = _default.colorableShadows;
20
21
  exports.contents = _default.contents;
22
+ exports.cssProperty = _default.cssProperty;
21
23
  exports.cssVariables = _default.cssVariables;
22
24
  exports.cursors = _default.cursors;
23
25
  exports.displays = _default.displays;
@@ -43,6 +45,7 @@ exports.questionMark = _default.questionMark;
43
45
  exports.resizes = _default.resizes;
44
46
  exports.rings = _default.rings;
45
47
  exports.rules = _default.rules;
48
+ exports.shadowBase = _default.shadowBase;
46
49
  exports.sizes = _default.sizes;
47
50
  exports.svgUtilities = _default.svgUtilities;
48
51
  exports.tabSizes = _default.tabSizes;
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule } from '@unocss/core';
2
- import { T as Theme } from './types-a2d2b52f';
2
+ import { T as Theme } from './types-c14b808b';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
@@ -49,6 +49,14 @@ declare const questionMark: Rule[];
49
49
 
50
50
  declare const rings: Rule<Theme>[];
51
51
 
52
+ declare const shadowBase: {
53
+ "$$shortcut-no-merge": string;
54
+ '--un-ring-offset-shadow': string;
55
+ '--un-ring-shadow': string;
56
+ '--un-shadow-inset': string;
57
+ '--un-shadow': string;
58
+ };
59
+ declare const colorableShadows: (shadows: string | string[], colorVar: string) => string[];
52
60
  declare const boxShadows: Rule<Theme>[];
53
61
 
54
62
  declare const sizes: Rule<Theme>[];
@@ -85,7 +93,8 @@ declare const textStrokes: Rule<Theme>[];
85
93
  declare const textShadows: Rule<Theme>[];
86
94
 
87
95
  declare const cssVariables: Rule[];
96
+ declare const cssProperty: Rule[];
88
97
 
89
98
  declare const textDecorations: Rule[];
90
99
 
91
- export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, 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 };
100
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, colorableShadows, 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, shadowBase, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,3 +1,3 @@
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 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, $ 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, I as appearances, D as aspectRatio, e as bgColors, b as borders, B as boxShadows, s as boxSizing, P as breaks, A as colorableShadows, O as contents, a1 as cssProperty, a0 as cssVariables, J as cursors, H as displays, f as flex, q as floats, T as fontSmoothings, S as fontStyles, X as fonts, g as gaps, h as grids, n as insets, j as justifies, F as margins, c as opacity, k as orders, o as outline, i as overflows, E as paddings, m as placements, K as pointerEvents, p as positions, u as questionMark, L as resizes, x as rings, r as rules, y as shadowBase, C as sizes, U as svgUtilities, Y as tabSizes, t as textAligns, d as textColors, a2 as textDecorations, Z as textIndents, Q as textOverflows, $ as textShadows, _ as textStrokes, R as textTransforms, V as transforms, W as transitions, M as userSelects, G as varEmpty, v as verticalAligns, N as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
2
2
  import './chunks/utilities.mjs';
3
3
  import '@unocss/core';
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-6d634692';
2
- export { t as theme } from './default-958434b6';
3
- import { T as Theme } from './types-a2d2b52f';
4
- export { T as Theme, a as ThemeAnimation } from './types-a2d2b52f';
1
+ export { c as colors } from './colors-338f482c';
2
+ export { t as theme } from './default-17948303';
3
+ import { T as Theme } from './types-c14b808b';
4
+ export { T as Theme, a as ThemeAnimation } from './types-c14b808b';
5
5
 
6
6
  declare const blur: {
7
7
  DEFAULT: string;
@@ -55,11 +55,11 @@ declare const borderRadius: {
55
55
  full: string;
56
56
  };
57
57
  declare const boxShadow: {
58
- DEFAULT: string;
58
+ DEFAULT: string[];
59
59
  sm: string;
60
- md: string;
61
- lg: string;
62
- xl: string;
60
+ md: string[];
61
+ lg: string[];
62
+ xl: string[];
63
63
  '2xl': string;
64
64
  inner: string;
65
65
  none: string;
@@ -11,6 +11,12 @@ interface Theme {
11
11
  maxHeight?: Record<string, string>;
12
12
  minWidth?: Record<string, string>;
13
13
  minHeight?: Record<string, string>;
14
+ inlineSize?: Record<string, string>;
15
+ blockSize?: Record<string, string>;
16
+ maxInlineSize?: Record<string, string>;
17
+ maxBlockSize?: Record<string, string>;
18
+ minInlineSize?: Record<string, string>;
19
+ minBlockSize?: Record<string, string>;
14
20
  borderRadius?: Record<string, string>;
15
21
  breakpoints?: Record<string, string>;
16
22
  colors?: Record<string, string | Record<string, string>>;
@@ -19,9 +25,9 @@ interface Theme {
19
25
  lineHeight?: Record<string, string>;
20
26
  letterSpacing?: Record<string, string>;
21
27
  wordSpacing?: Record<string, string>;
22
- boxShadow?: Record<string, string>;
28
+ boxShadow?: Record<string, string | string[]>;
23
29
  textIndent?: Record<string, string>;
24
- textShadow?: Record<string, string>;
30
+ textShadow?: Record<string, string | string[]>;
25
31
  textStrokeWidth?: Record<string, string>;
26
32
  blur?: Record<string, string>;
27
33
  dropShadow?: Record<string, string | string[]>;
@@ -1,7 +1,6 @@
1
1
  import { DynamicMatcher, ParsedColorValue } from '@unocss/core';
2
- import { T as Theme } from './types-a2d2b52f';
2
+ import { T as Theme } from './types-c14b808b';
3
3
 
4
- declare function capitalize<T extends string>(str: T): Capitalize<T>;
5
4
  /**
6
5
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
7
6
  *
@@ -53,4 +52,4 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
53
52
  */
54
53
  declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
55
54
 
56
- export { colorResolver as a, capitalize as c, directionSize as d, parseColor as p };
55
+ export { colorResolver as c, directionSize as d, parseColor as p };
package/dist/utils.cjs CHANGED
@@ -8,13 +8,13 @@ require('@unocss/core');
8
8
 
9
9
 
10
10
 
11
- exports.capitalize = utilities.capitalize;
12
11
  exports.colorResolver = utilities.colorResolver;
13
12
  exports.cornerMap = utilities.cornerMap;
14
13
  exports.directionMap = utilities.directionMap;
15
14
  exports.directionSize = utilities.directionSize;
16
15
  exports.h = utilities.h;
17
16
  exports.handler = utilities.handler;
17
+ exports.insetMap = utilities.insetMap;
18
18
  exports.parseColor = utilities.parseColor;
19
19
  exports.positionMap = utilities.positionMap;
20
20
  exports.valueHandlers = utilities.valueHandlers;
package/dist/utils.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { VariantHandler } from '@unocss/core';
3
- export { c as capitalize, a as colorResolver, d as directionSize, p as parseColor } from './utilities-22a522e2';
4
- import './types-a2d2b52f';
3
+ export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-29b01158';
4
+ import './types-c14b808b';
5
5
 
6
6
  declare const directionMap: Record<string, string[]>;
7
+ declare const insetMap: Record<string, string[]>;
7
8
  declare const cornerMap: Record<string, string[]>;
8
9
  declare const xyzMap: Record<string, string[]>;
9
10
  declare const positionMap: Record<string, string>;
@@ -59,4 +60,4 @@ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "numberWithUnit"
59
60
  declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
60
61
  declare const variantParentMatcher: (name: string, parent: string) => (input: string) => VariantHandler | undefined;
61
62
 
62
- export { cornerMap, directionMap, h, handler, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
63
+ export { cornerMap, directionMap, h, handler, insetMap, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { b as capitalize, c as colorResolver, a as cornerMap, d as directionMap, e as directionSize, g as h, h as handler, p as parseColor, f as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
1
+ export { c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, f as h, h as handler, i as insetMap, p as parseColor, e as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
2
  export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -8,7 +8,6 @@ require('@unocss/core');
8
8
 
9
9
 
10
10
 
11
- exports.CONTROL_BYPASS_PSEUDO_CLASS = _default.CONTROL_BYPASS_PSEUDO_CLASS;
12
11
  exports.partClasses = _default.partClasses;
13
12
  exports.variantBreakpoints = _default.variantBreakpoints;
14
13
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
@@ -1,35 +1,31 @@
1
- import * as _unocss_core from '@unocss/core';
2
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
3
- import { T as Theme } from './types-a2d2b52f';
2
+ import { T as Theme } from './types-c14b808b';
4
3
  import { PresetMiniOptions } from './index';
5
- import './default-958434b6';
6
- import './colors-6d634692';
7
- import './utilities-22a522e2';
4
+ import './default-17948303';
5
+ import './colors-338f482c';
6
+ import './utilities-29b01158';
8
7
 
9
8
  declare const variantBreakpoints: Variant<Theme>;
10
9
 
11
10
  declare const variantCombinators: Variant[];
12
11
 
13
- declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
12
+ declare const variantMotions: VariantFunction[];
13
+ declare const variantOrientations: VariantFunction[];
14
+ declare const variantPrint: VariantFunction;
14
15
 
15
- declare const variantLanguageDirections: Variant[];
16
+ declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
16
17
 
17
18
  declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
18
19
 
20
+ declare const variantLanguageDirections: Variant[];
21
+
19
22
  declare const variantImportant: Variant;
20
23
  declare const variantNegative: Variant;
21
24
 
22
- declare const variantMotions: Variant[];
23
-
24
- declare const variantOrientations: Variant[];
25
-
26
- declare const variantPrint: (input: string) => _unocss_core.VariantHandler | undefined;
27
-
28
- declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
29
25
  declare const variantPseudoElements: VariantFunction;
30
26
  declare const variantPseudoClasses: VariantObject;
31
27
  declare const variantPseudoClassFunctions: VariantObject;
32
28
  declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
33
29
  declare const partClasses: VariantObject;
34
30
 
35
- export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
31
+ export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, e as variantImportant, d as variantLanguageDirections, g as variantMotions, f as variantNegative, h as variantOrientations, i as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
1
+ export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, h as variantImportant, g as variantLanguageDirections, c as variantMotions, i as variantNegative, d as variantOrientations, e as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
2
2
  import './chunks/variants.mjs';
3
3
  import '@unocss/core';