@unocss/preset-mini 0.49.3 → 0.49.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const core = require('@unocss/core');
6
- require('./shared/preset-mini.0c11b1ec.cjs');
7
- const colors$1 = require('./shared/preset-mini.87096f14.cjs');
8
- const _default$1 = require('./shared/preset-mini.b496633c.cjs');
6
+ require('./shared/preset-mini.df9c634c.cjs');
7
+ const colors$1 = require('./shared/preset-mini.f9ff00ee.cjs');
8
+ const _default$1 = require('./shared/preset-mini.aca68d93.cjs');
9
9
  const colors = require('./shared/preset-mini.30606736.cjs');
10
- const _default = require('./shared/preset-mini.7713e984.cjs');
11
- const _default$2 = require('./shared/preset-mini.47479103.cjs');
12
- require('./shared/preset-mini.36f890d6.cjs');
10
+ const _default = require('./shared/preset-mini.2341d2ee.cjs');
11
+ const _default$2 = require('./shared/preset-mini.52ab4b0f.cjs');
12
+ require('./shared/preset-mini.7086e6db.cjs');
13
13
 
14
14
  const preflights = [
15
15
  {
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ interface PresetMiniOptions extends PresetOptions {
29
29
  */
30
30
  dark?: 'class' | 'media' | DarkModeSelectors;
31
31
  /**
32
- * Generate pesudo selector as `[group=""]` instead of `.group`
32
+ * Generate psuedo selector as `[group=""]` instead of `.group`
33
33
  *
34
34
  * @default false
35
35
  */
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { entriesToCss, toArray } from '@unocss/core';
2
- import './shared/preset-mini.0e65716b.mjs';
3
- export { p as parseColor } from './shared/preset-mini.1f0aea1e.mjs';
4
- import { r as rules } from './shared/preset-mini.88693f7d.mjs';
2
+ import './shared/preset-mini.86be0521.mjs';
3
+ export { p as parseColor } from './shared/preset-mini.5eaf6188.mjs';
4
+ import { r as rules } from './shared/preset-mini.34e0c9b9.mjs';
5
5
  export { c as colors } from './shared/preset-mini.65ac75be.mjs';
6
- import { t as theme } from './shared/preset-mini.d4b3c145.mjs';
7
- export { t as theme } from './shared/preset-mini.d4b3c145.mjs';
8
- import { v as variants } from './shared/preset-mini.895c0603.mjs';
9
- import './shared/preset-mini.29117527.mjs';
6
+ import { t as theme } from './shared/preset-mini.76eb599a.mjs';
7
+ export { t as theme } from './shared/preset-mini.76eb599a.mjs';
8
+ import { v as variants } from './shared/preset-mini.9f800526.mjs';
9
+ import './shared/preset-mini.ca55daef.mjs';
10
10
 
11
11
  const preflights = [
12
12
  {
package/dist/rules.cjs CHANGED
@@ -2,60 +2,60 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const decoration = require('./shared/preset-mini.0c11b1ec.cjs');
6
- const _default = require('./shared/preset-mini.b496633c.cjs');
7
- require('./shared/preset-mini.87096f14.cjs');
5
+ const transform = require('./shared/preset-mini.df9c634c.cjs');
6
+ const _default = require('./shared/preset-mini.aca68d93.cjs');
7
+ require('./shared/preset-mini.f9ff00ee.cjs');
8
8
  require('@unocss/core');
9
9
 
10
10
 
11
11
 
12
- exports.alignments = decoration.alignments;
13
- exports.appearance = decoration.appearance;
14
- exports.appearances = decoration.appearances;
15
- exports.borderStyles = decoration.borderStyles;
16
- exports.borders = decoration.borders;
17
- exports.boxShadows = decoration.boxShadows;
18
- exports.boxShadowsBase = decoration.boxShadowsBase;
19
- exports.boxSizing = decoration.boxSizing;
20
- exports.breaks = decoration.breaks;
21
- exports.contains = decoration.contains;
22
- exports.contentVisibility = decoration.contentVisibility;
23
- exports.contents = decoration.contents;
24
- exports.cursors = decoration.cursors;
25
- exports.displays = decoration.displays;
26
- exports.floats = decoration.floats;
27
- exports.fontSmoothings = decoration.fontSmoothings;
28
- exports.fontStyles = decoration.fontStyles;
29
- exports.fonts = decoration.fonts;
30
- exports.handlerBorderStyle = decoration.handlerBorderStyle;
31
- exports.insets = decoration.insets;
32
- exports.justifies = decoration.justifies;
33
- exports.orders = decoration.orders;
34
- exports.outline = decoration.outline;
35
- exports.overflows = decoration.overflows;
36
- exports.placements = decoration.placements;
37
- exports.pointerEvents = decoration.pointerEvents;
38
- exports.positions = decoration.positions;
39
- exports.resizes = decoration.resizes;
40
- exports.ringBase = decoration.ringBase;
41
- exports.rings = decoration.rings;
42
- exports.tabSizes = decoration.tabSizes;
43
- exports.textAligns = decoration.textAligns;
44
- exports.textDecorations = decoration.textDecorations;
45
- exports.textIndents = decoration.textIndents;
46
- exports.textOverflows = decoration.textOverflows;
47
- exports.textShadows = decoration.textShadows;
48
- exports.textStrokes = decoration.textStrokes;
49
- exports.textTransforms = decoration.textTransforms;
50
- exports.transformBase = decoration.transformBase;
51
- exports.transforms = decoration.transforms;
52
- exports.transitions = decoration.transitions;
53
- exports.userSelects = decoration.userSelects;
54
- exports.varEmpty = decoration.varEmpty;
55
- exports.verticalAligns = decoration.verticalAligns;
56
- exports.whitespaces = decoration.whitespaces;
57
- exports.willChange = decoration.willChange;
58
- exports.zIndexes = decoration.zIndexes;
12
+ exports.alignments = transform.alignments;
13
+ exports.appearance = transform.appearance;
14
+ exports.appearances = transform.appearances;
15
+ exports.borderStyles = transform.borderStyles;
16
+ exports.borders = transform.borders;
17
+ exports.boxShadows = transform.boxShadows;
18
+ exports.boxShadowsBase = transform.boxShadowsBase;
19
+ exports.boxSizing = transform.boxSizing;
20
+ exports.breaks = transform.breaks;
21
+ exports.contains = transform.contains;
22
+ exports.contentVisibility = transform.contentVisibility;
23
+ exports.contents = transform.contents;
24
+ exports.cursors = transform.cursors;
25
+ exports.displays = transform.displays;
26
+ exports.floats = transform.floats;
27
+ exports.fontSmoothings = transform.fontSmoothings;
28
+ exports.fontStyles = transform.fontStyles;
29
+ exports.fonts = transform.fonts;
30
+ exports.handlerBorderStyle = transform.handlerBorderStyle;
31
+ exports.insets = transform.insets;
32
+ exports.justifies = transform.justifies;
33
+ exports.orders = transform.orders;
34
+ exports.outline = transform.outline;
35
+ exports.overflows = transform.overflows;
36
+ exports.placements = transform.placements;
37
+ exports.pointerEvents = transform.pointerEvents;
38
+ exports.positions = transform.positions;
39
+ exports.resizes = transform.resizes;
40
+ exports.ringBase = transform.ringBase;
41
+ exports.rings = transform.rings;
42
+ exports.tabSizes = transform.tabSizes;
43
+ exports.textAligns = transform.textAligns;
44
+ exports.textDecorations = transform.textDecorations;
45
+ exports.textIndents = transform.textIndents;
46
+ exports.textOverflows = transform.textOverflows;
47
+ exports.textShadows = transform.textShadows;
48
+ exports.textStrokes = transform.textStrokes;
49
+ exports.textTransforms = transform.textTransforms;
50
+ exports.transformBase = transform.transformBase;
51
+ exports.transforms = transform.transforms;
52
+ exports.transitions = transform.transitions;
53
+ exports.userSelects = transform.userSelects;
54
+ exports.varEmpty = transform.varEmpty;
55
+ exports.verticalAligns = transform.verticalAligns;
56
+ exports.whitespaces = transform.whitespaces;
57
+ exports.willChange = transform.willChange;
58
+ exports.zIndexes = transform.zIndexes;
59
59
  exports.aspectRatio = _default.aspectRatio;
60
60
  exports.bgColors = _default.bgColors;
61
61
  exports.containerParent = _default.containerParent;
package/dist/rules.d.ts CHANGED
@@ -24,6 +24,8 @@ declare const bgColors: Rule[];
24
24
 
25
25
  declare const containerParent: Rule[];
26
26
 
27
+ declare const textDecorations: Rule<Theme>[];
28
+
27
29
  declare const rules: Rule[];
28
30
 
29
31
  declare const flex: Rule<Theme>[];
@@ -121,6 +123,4 @@ declare const textShadows: Rule<Theme>[];
121
123
  declare const cssVariables: Rule[];
122
124
  declare const cssProperty: Rule[];
123
125
 
124
- declare const textDecorations: Rule<Theme>[];
125
-
126
126
  export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, 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,4 +1,4 @@
1
- export { F as alignments, C as appearance, s as appearances, S as borderStyles, b as borders, o as boxShadows, Q as boxShadowsBase, K as boxSizing, z as breaks, O as contains, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, T as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, R as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, P as transformBase, M as transforms, L as transitions, x as userSelects, U as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.0e65716b.mjs';
2
- export { d as aspectRatio, b as bgColors, c as containerParent, i as cssProperty, h as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, e as svgUtilities, t as textColors } from './shared/preset-mini.88693f7d.mjs';
3
- import './shared/preset-mini.1f0aea1e.mjs';
1
+ export { F as alignments, C as appearance, s as appearances, S as borderStyles, b as borders, o as boxShadows, Q as boxShadowsBase, K as boxSizing, z as breaks, O as contains, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, T as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, R as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, P as transformBase, M as transforms, L as transitions, x as userSelects, U as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.86be0521.mjs';
2
+ export { d as aspectRatio, b as bgColors, c as containerParent, i as cssProperty, h as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, e as svgUtilities, t as textColors } from './shared/preset-mini.34e0c9b9.mjs';
3
+ import './shared/preset-mini.5eaf6188.mjs';
4
4
  import '@unocss/core';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.30606736.cjs');
4
- const decoration = require('./preset-mini.0c11b1ec.cjs');
5
- require('./preset-mini.87096f14.cjs');
4
+ const transform = require('./preset-mini.df9c634c.cjs');
5
+ require('./preset-mini.f9ff00ee.cjs');
6
6
  require('@unocss/core');
7
7
 
8
8
  const fontFamily = {
@@ -109,11 +109,11 @@ const breakpoints = {
109
109
  const verticalBreakpoints = { ...breakpoints };
110
110
  const lineWidth = {
111
111
  DEFAULT: "1px",
112
- none: "0px"
112
+ none: "0"
113
113
  };
114
114
  const spacing = {
115
115
  "DEFAULT": "1rem",
116
- "none": "0rem",
116
+ "none": "0",
117
117
  "xs": "0.75rem",
118
118
  "sm": "0.875rem",
119
119
  "lg": "1.125rem",
@@ -129,7 +129,7 @@ const spacing = {
129
129
  };
130
130
  const duration = {
131
131
  DEFAULT: "150ms",
132
- none: "0ms",
132
+ none: "0s",
133
133
  75: "75ms",
134
134
  100: "100ms",
135
135
  150: "150ms",
@@ -141,7 +141,7 @@ const duration = {
141
141
  };
142
142
  const borderRadius = {
143
143
  "DEFAULT": "0.25rem",
144
- "none": "0rem",
144
+ "none": "0",
145
145
  "sm": "0.125rem",
146
146
  "md": "0.375rem",
147
147
  "lg": "0.5rem",
@@ -169,7 +169,7 @@ const easing = {
169
169
  };
170
170
  const ringWidth = {
171
171
  DEFAULT: "1px",
172
- none: "0px"
172
+ none: "0"
173
173
  };
174
174
 
175
175
  const blur = {
@@ -229,9 +229,9 @@ const maxHeight = {
229
229
  const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
230
230
 
231
231
  const preflightBase = {
232
- ...decoration.transformBase,
233
- ...decoration.boxShadowsBase,
234
- ...decoration.ringBase
232
+ ...transform.transformBase,
233
+ ...transform.boxShadowsBase,
234
+ ...transform.ringBase
235
235
  };
236
236
 
237
237
  const theme = {
@@ -1,5 +1,5 @@
1
- import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains } from './preset-mini.0e65716b.mjs';
2
- import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.1f0aea1e.mjs';
1
+ import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains } from './preset-mini.86be0521.mjs';
2
+ import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.5eaf6188.mjs';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
5
5
  const opacity = [
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const colors = require('./preset-mini.87096f14.cjs');
3
+ const colors = require('./preset-mini.f9ff00ee.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.36f890d6.cjs');
5
+ const variants$1 = require('./preset-mini.7086e6db.cjs');
6
6
 
7
7
  const variantAria = {
8
8
  name: "aria",
@@ -150,6 +150,20 @@ const variantContainerQuery = {
150
150
  multiPass: true
151
151
  };
152
152
 
153
+ const variantColorsMediaOrClass = (options = {}) => {
154
+ if (options?.dark === "class" || typeof options.dark === "object") {
155
+ const { dark = ".dark", light = ".light" } = typeof options.dark === "string" ? {} : options.dark;
156
+ return [
157
+ variants$1.variantMatcher("dark", (input) => ({ prefix: `${dark} $$ ${input.prefix}` })),
158
+ variants$1.variantMatcher("light", (input) => ({ prefix: `${light} $$ ${input.prefix}` }))
159
+ ];
160
+ }
161
+ return [
162
+ variants$1.variantParentMatcher("dark", "@media (prefers-color-scheme: dark)"),
163
+ variants$1.variantParentMatcher("light", "@media (prefers-color-scheme: light)")
164
+ ];
165
+ };
166
+
153
167
  const variantDataAttribute = {
154
168
  name: "data",
155
169
  match(matcher, ctx) {
@@ -167,67 +181,6 @@ const variantDataAttribute = {
167
181
  }
168
182
  };
169
183
 
170
- const variantPrint = variants$1.variantParentMatcher("print", "@media print");
171
- const variantCustomMedia = {
172
- name: "media",
173
- match(matcher, ctx) {
174
- const variant = variants$1.variantGetParameter("media-", matcher, ctx.generator.config.separators);
175
- if (variant) {
176
- const [match, rest] = variant;
177
- let media = colors.handler.bracket(match) ?? "";
178
- if (media === "")
179
- media = ctx.theme.media?.[match] ?? "";
180
- if (media) {
181
- return {
182
- matcher: rest,
183
- handle: (input, next) => next({
184
- ...input,
185
- parent: `${input.parent ? `${input.parent} $$ ` : ""}@media ${media}`
186
- })
187
- };
188
- }
189
- }
190
- },
191
- multiPass: true
192
- };
193
-
194
- const variantSupports = {
195
- name: "supports",
196
- match(matcher, ctx) {
197
- const variant = variants$1.variantGetParameter("supports-", matcher, ctx.generator.config.separators);
198
- if (variant) {
199
- const [match, rest] = variant;
200
- let supports = colors.handler.bracket(match) ?? "";
201
- if (supports === "")
202
- supports = ctx.theme.supports?.[match] ?? "";
203
- if (supports) {
204
- return {
205
- matcher: rest,
206
- handle: (input, next) => next({
207
- ...input,
208
- parent: `${input.parent ? `${input.parent} $$ ` : ""}@supports ${supports}`
209
- })
210
- };
211
- }
212
- }
213
- },
214
- multiPass: true
215
- };
216
-
217
- const variantColorsMediaOrClass = (options = {}) => {
218
- if (options?.dark === "class" || typeof options.dark === "object") {
219
- const { dark = ".dark", light = ".light" } = typeof options.dark === "string" ? {} : options.dark;
220
- return [
221
- variants$1.variantMatcher("dark", (input) => ({ prefix: `${dark} $$ ${input.prefix}` })),
222
- variants$1.variantMatcher("light", (input) => ({ prefix: `${light} $$ ${input.prefix}` }))
223
- ];
224
- }
225
- return [
226
- variants$1.variantParentMatcher("dark", "@media (prefers-color-scheme: dark)"),
227
- variants$1.variantParentMatcher("light", "@media (prefers-color-scheme: light)")
228
- ];
229
- };
230
-
231
184
  const variantLanguageDirections = [
232
185
  variants$1.variantMatcher("rtl", (input) => ({ prefix: `[dir="rtl"] $$ ${input.prefix}` })),
233
186
  variants$1.variantMatcher("ltr", (input) => ({ prefix: `[dir="ltr"] $$ ${input.prefix}` }))
@@ -414,6 +367,53 @@ const variantImportant = () => {
414
367
  };
415
368
  };
416
369
 
370
+ const variantPrint = variants$1.variantParentMatcher("print", "@media print");
371
+ const variantCustomMedia = {
372
+ name: "media",
373
+ match(matcher, ctx) {
374
+ const variant = variants$1.variantGetParameter("media-", matcher, ctx.generator.config.separators);
375
+ if (variant) {
376
+ const [match, rest] = variant;
377
+ let media = colors.handler.bracket(match) ?? "";
378
+ if (media === "")
379
+ media = ctx.theme.media?.[match] ?? "";
380
+ if (media) {
381
+ return {
382
+ matcher: rest,
383
+ handle: (input, next) => next({
384
+ ...input,
385
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@media ${media}`
386
+ })
387
+ };
388
+ }
389
+ }
390
+ },
391
+ multiPass: true
392
+ };
393
+
394
+ const variantSupports = {
395
+ name: "supports",
396
+ match(matcher, ctx) {
397
+ const variant = variants$1.variantGetParameter("supports-", matcher, ctx.generator.config.separators);
398
+ if (variant) {
399
+ const [match, rest] = variant;
400
+ let supports = colors.handler.bracket(match) ?? "";
401
+ if (supports === "")
402
+ supports = ctx.theme.supports?.[match] ?? "";
403
+ if (supports) {
404
+ return {
405
+ matcher: rest,
406
+ handle: (input, next) => next({
407
+ ...input,
408
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@supports ${supports}`
409
+ })
410
+ };
411
+ }
412
+ }
413
+ },
414
+ multiPass: true
415
+ };
416
+
417
417
  const PseudoClasses = Object.fromEntries([
418
418
  ["first-letter", "::first-letter"],
419
419
  ["first-line", "::first-line"],
@@ -454,6 +454,7 @@ const PseudoClasses = Object.fromEntries([
454
454
  ["last", ":last-child"],
455
455
  "only-child",
456
456
  "only-of-type",
457
+ ["backdrop-element", "::backdrop"],
457
458
  ["placeholder", "::placeholder"],
458
459
  ["before", "::before"],
459
460
  ["after", "::after"],
@@ -473,9 +474,13 @@ const PseudoClassFunctions = [
473
474
  const PseudoClassesStr = Object.entries(PseudoClasses).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
474
475
  const PseudoClassesColonStr = Object.entries(PseudoClassesColon).filter(([, pseudo]) => !pseudo.startsWith("::")).map(([key]) => key).join("|");
475
476
  const PseudoClassFunctionsStr = PseudoClassFunctions.join("|");
476
- const sortValue = (pseudo) => {
477
- if (pseudo === "active")
478
- return 1;
477
+ const pseudoModifier = (pseudo) => {
478
+ if (pseudo === "active") {
479
+ return {
480
+ sort: 1,
481
+ noMerge: true
482
+ };
483
+ }
479
484
  };
480
485
  const taggedPseudoClassMatcher = (tag, parent, combinator) => {
481
486
  const rawRE = new RegExp(`^(${core.escapeRegExp(parent)}:)(\\S+)${core.escapeRegExp(combinator)}\\1`);
@@ -511,7 +516,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
511
516
  label,
512
517
  input.slice(original.length),
513
518
  `${parent}${core.escapeSelector(label)}${pseudo}`,
514
- sortValue(pseudoKey)
519
+ pseudoKey
515
520
  ];
516
521
  };
517
522
  return {
@@ -527,16 +532,16 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
527
532
  const result = matchBracket(input) || matchPseudo(input);
528
533
  if (!result)
529
534
  return;
530
- const [label, matcher, prefix, sort] = result;
535
+ const [label, matcher, prefix, pseudoName = ""] = result;
531
536
  if (label !== "")
532
537
  core.warnOnce("The labeled variant is experimental and may not follow semver.");
533
538
  return {
534
539
  matcher,
535
540
  handle: (input2, next) => next({
536
541
  ...input2,
537
- prefix: `${prefix}${combinator}${input2.prefix}`.replace(rawRE, "$1$2:")
538
- }),
539
- sort
542
+ prefix: `${prefix}${combinator}${input2.prefix}`.replace(rawRE, "$1$2:"),
543
+ ...pseudoModifier(pseudoName)
544
+ })
540
545
  };
541
546
  },
542
547
  multiPass: true
@@ -568,7 +573,7 @@ const variantPseudoClassesAndElements = () => {
568
573
  return next({
569
574
  ...input2,
570
575
  ...selectors,
571
- sort: sortValue(match[1])
576
+ ...pseudoModifier(match[1])
572
577
  });
573
578
  }
574
579
  };
@@ -187,8 +187,11 @@ function rem(str) {
187
187
  return;
188
188
  const [, n, unit] = match;
189
189
  const num = parseFloat(n);
190
- if (!Number.isNaN(num))
190
+ if (!Number.isNaN(num)) {
191
+ if (num === 0)
192
+ return "0";
191
193
  return unit ? `${round(num)}${unit}` : `${round(num / 4)}rem`;
194
+ }
192
195
  }
193
196
  function px(str) {
194
197
  if (str.match(unitOnlyRE))
@@ -198,8 +201,11 @@ function px(str) {
198
201
  return;
199
202
  const [, n, unit] = match;
200
203
  const num = parseFloat(n);
201
- if (!Number.isNaN(num))
204
+ if (!Number.isNaN(num)) {
205
+ if (num === 0)
206
+ return "0";
202
207
  return unit ? `${round(num)}${unit}` : `${round(num)}px`;
208
+ }
203
209
  }
204
210
  function number(str) {
205
211
  if (!numberRE.test(str))
@@ -220,8 +226,11 @@ function fraction(str) {
220
226
  return "100%";
221
227
  const [left, right] = str.split("/");
222
228
  const num = parseFloat(left) / parseFloat(right);
223
- if (!Number.isNaN(num))
229
+ if (!Number.isNaN(num)) {
230
+ if (num === 0)
231
+ return "0";
224
232
  return `${round(num * 100)}%`;
233
+ }
225
234
  }
226
235
  const bracketTypeRe = /^\[(color|length|position|quoted|string):/i;
227
236
  function bracketWithType(str, requiredType) {
@@ -287,8 +296,11 @@ function time(str) {
287
296
  return;
288
297
  const [, n, unit] = match;
289
298
  const num = parseFloat(n);
290
- if (!Number.isNaN(num))
299
+ if (!Number.isNaN(num)) {
300
+ if (num === 0 && !unit)
301
+ return "0s";
291
302
  return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
303
+ }
292
304
  }
293
305
  function degree(str) {
294
306
  const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
@@ -296,8 +308,11 @@ function degree(str) {
296
308
  return;
297
309
  const [, n, unit] = match;
298
310
  const num = parseFloat(n);
299
- if (!Number.isNaN(num))
311
+ if (!Number.isNaN(num)) {
312
+ if (num === 0)
313
+ return "0";
300
314
  return unit ? `${round(num)}${unit}` : `${round(num)}deg`;
315
+ }
301
316
  }
302
317
  function global(str) {
303
318
  if (globalKeywords.includes(str))
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@unocss/core');
4
- const colors = require('./preset-mini.87096f14.cjs');
4
+ const colors = require('./preset-mini.f9ff00ee.cjs');
5
5
 
6
6
  const variantMatcher = (name, handler) => {
7
7
  let re;
@@ -1,6 +1,6 @@
1
1
  import { c as colors } from './preset-mini.65ac75be.mjs';
2
- import { P as transformBase, Q as boxShadowsBase, R as ringBase } from './preset-mini.0e65716b.mjs';
3
- import './preset-mini.1f0aea1e.mjs';
2
+ import { P as transformBase, Q as boxShadowsBase, R as ringBase } from './preset-mini.86be0521.mjs';
3
+ import './preset-mini.5eaf6188.mjs';
4
4
  import '@unocss/core';
5
5
 
6
6
  const fontFamily = {
@@ -107,11 +107,11 @@ const breakpoints = {
107
107
  const verticalBreakpoints = { ...breakpoints };
108
108
  const lineWidth = {
109
109
  DEFAULT: "1px",
110
- none: "0px"
110
+ none: "0"
111
111
  };
112
112
  const spacing = {
113
113
  "DEFAULT": "1rem",
114
- "none": "0rem",
114
+ "none": "0",
115
115
  "xs": "0.75rem",
116
116
  "sm": "0.875rem",
117
117
  "lg": "1.125rem",
@@ -127,7 +127,7 @@ const spacing = {
127
127
  };
128
128
  const duration = {
129
129
  DEFAULT: "150ms",
130
- none: "0ms",
130
+ none: "0s",
131
131
  75: "75ms",
132
132
  100: "100ms",
133
133
  150: "150ms",
@@ -139,7 +139,7 @@ const duration = {
139
139
  };
140
140
  const borderRadius = {
141
141
  "DEFAULT": "0.25rem",
142
- "none": "0rem",
142
+ "none": "0",
143
143
  "sm": "0.125rem",
144
144
  "md": "0.375rem",
145
145
  "lg": "0.5rem",
@@ -167,7 +167,7 @@ const easing = {
167
167
  };
168
168
  const ringWidth = {
169
169
  DEFAULT: "1px",
170
- none: "0px"
170
+ none: "0"
171
171
  };
172
172
 
173
173
  const blur = {
@@ -269,4 +269,4 @@ const theme = {
269
269
  containers
270
270
  };
271
271
 
272
- export { preflightBase as A, 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, lineWidth as j, duration as k, lineHeight as l, borderRadius as m, boxShadow as n, easing as o, baseSize as p, width as q, ringWidth as r, spacing as s, theme as t, maxWidth as u, verticalBreakpoints as v, wordSpacing as w, height as x, maxHeight as y, containers as z };
272
+ export { containers as A, 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, lineWidth as j, duration as k, lineHeight as l, borderRadius as m, boxShadow as n, easing as o, preflightBase as p, baseSize as q, ringWidth as r, spacing as s, theme as t, width as u, verticalBreakpoints as v, wordSpacing as w, maxWidth as x, height as y, maxHeight as z };