@unocss/preset-mini 0.49.3 → 0.49.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.
package/dist/index.cjs CHANGED
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const core = require('@unocss/core');
6
- require('./shared/preset-mini.0c11b1ec.cjs');
6
+ require('./shared/preset-mini.b2a92d2d.cjs');
7
7
  const colors$1 = require('./shared/preset-mini.87096f14.cjs');
8
- const _default$1 = require('./shared/preset-mini.b496633c.cjs');
8
+ const _default$1 = require('./shared/preset-mini.6fee3361.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');
10
+ const _default = require('./shared/preset-mini.62e01fcd.cjs');
11
+ const _default$2 = require('./shared/preset-mini.7c26129e.cjs');
12
12
  require('./shared/preset-mini.36f890d6.cjs');
13
13
 
14
14
  const preflights = [
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { entriesToCss, toArray } from '@unocss/core';
2
- import './shared/preset-mini.0e65716b.mjs';
2
+ import './shared/preset-mini.91445aa5.mjs';
3
3
  export { p as parseColor } from './shared/preset-mini.1f0aea1e.mjs';
4
- import { r as rules } from './shared/preset-mini.88693f7d.mjs';
4
+ import { r as rules } from './shared/preset-mini.d77e50e3.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.abaf1689.mjs';
7
+ export { t as theme } from './shared/preset-mini.abaf1689.mjs';
8
+ import { v as variants } from './shared/preset-mini.7e22fc5d.mjs';
9
+ import './shared/preset-mini.354ecb56.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');
5
+ const transform = require('./shared/preset-mini.b2a92d2d.cjs');
6
+ const _default = require('./shared/preset-mini.6fee3361.cjs');
7
7
  require('./shared/preset-mini.87096f14.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';
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.91445aa5.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.d77e50e3.mjs';
3
3
  import './shared/preset-mini.1f0aea1e.mjs';
4
4
  import '@unocss/core';
@@ -77,4 +77,4 @@ const variantGetParameter = (prefix, matcher, separators) => {
77
77
  }
78
78
  };
79
79
 
80
- export { variantGetBracket as a, variantParentMatcher as b, variantMatcher as c, variantGetParameter as v };
80
+ export { variantGetBracket as a, variantMatcher as b, variantParentMatcher as c, variantGetParameter as v };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.30606736.cjs');
4
- const decoration = require('./preset-mini.0c11b1ec.cjs');
4
+ const transform = require('./preset-mini.b2a92d2d.cjs');
5
5
  require('./preset-mini.87096f14.cjs');
6
6
  require('@unocss/core');
7
7
 
@@ -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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const decoration = require('./preset-mini.0c11b1ec.cjs');
3
+ const transform = require('./preset-mini.b2a92d2d.cjs');
4
4
  const colors = require('./preset-mini.87096f14.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
@@ -265,57 +265,57 @@ const rules = [
265
265
  cssProperty,
266
266
  paddings,
267
267
  margins,
268
- decoration.displays,
268
+ transform.displays,
269
269
  opacity,
270
270
  bgColors,
271
271
  svgUtilities,
272
- decoration.borders,
273
- decoration.contentVisibility,
274
- decoration.contents,
275
- decoration.fonts,
276
- decoration.tabSizes,
277
- decoration.textIndents,
278
- decoration.textOverflows,
279
- decoration.textDecorations,
280
- decoration.textStrokes,
281
- decoration.textShadows,
282
- decoration.textTransforms,
283
- decoration.textAligns,
272
+ transform.borders,
273
+ transform.contentVisibility,
274
+ transform.contents,
275
+ transform.fonts,
276
+ transform.tabSizes,
277
+ transform.textIndents,
278
+ transform.textOverflows,
279
+ transform.textDecorations,
280
+ transform.textStrokes,
281
+ transform.textShadows,
282
+ transform.textTransforms,
283
+ transform.textAligns,
284
284
  textColors,
285
- decoration.fontStyles,
286
- decoration.fontSmoothings,
287
- decoration.boxShadows,
288
- decoration.rings,
285
+ transform.fontStyles,
286
+ transform.fontSmoothings,
287
+ transform.boxShadows,
288
+ transform.rings,
289
289
  flex,
290
290
  grids,
291
291
  gaps,
292
- decoration.positions,
292
+ transform.positions,
293
293
  sizes,
294
294
  aspectRatio,
295
- decoration.cursors,
296
- decoration.appearances,
297
- decoration.pointerEvents,
298
- decoration.resizes,
299
- decoration.verticalAligns,
300
- decoration.userSelects,
301
- decoration.whitespaces,
302
- decoration.breaks,
303
- decoration.overflows,
304
- decoration.outline,
305
- decoration.appearance,
306
- decoration.orders,
307
- decoration.justifies,
308
- decoration.alignments,
309
- decoration.placements,
310
- decoration.insets,
311
- decoration.floats,
312
- decoration.zIndexes,
313
- decoration.boxSizing,
314
- decoration.transitions,
315
- decoration.transforms,
316
- decoration.willChange,
295
+ transform.cursors,
296
+ transform.appearances,
297
+ transform.pointerEvents,
298
+ transform.resizes,
299
+ transform.verticalAligns,
300
+ transform.userSelects,
301
+ transform.whitespaces,
302
+ transform.breaks,
303
+ transform.overflows,
304
+ transform.outline,
305
+ transform.appearance,
306
+ transform.orders,
307
+ transform.justifies,
308
+ transform.alignments,
309
+ transform.placements,
310
+ transform.insets,
311
+ transform.floats,
312
+ transform.zIndexes,
313
+ transform.boxSizing,
314
+ transform.transitions,
315
+ transform.transforms,
316
+ transform.willChange,
317
317
  containerParent,
318
- decoration.contains,
318
+ transform.contains,
319
319
  questionMark
320
320
  ].flat(1);
321
321
 
@@ -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"],
@@ -1,6 +1,6 @@
1
1
  import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.1f0aea1e.mjs';
2
2
  import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
3
- import { v as variantGetParameter, a as variantGetBracket, b as variantParentMatcher, c as variantMatcher } from './preset-mini.29117527.mjs';
3
+ import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.354ecb56.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
@@ -148,6 +148,20 @@ const variantContainerQuery = {
148
148
  multiPass: true
149
149
  };
150
150
 
151
+ const variantColorsMediaOrClass = (options = {}) => {
152
+ if (options?.dark === "class" || typeof options.dark === "object") {
153
+ const { dark = ".dark", light = ".light" } = typeof options.dark === "string" ? {} : options.dark;
154
+ return [
155
+ variantMatcher("dark", (input) => ({ prefix: `${dark} $$ ${input.prefix}` })),
156
+ variantMatcher("light", (input) => ({ prefix: `${light} $$ ${input.prefix}` }))
157
+ ];
158
+ }
159
+ return [
160
+ variantParentMatcher("dark", "@media (prefers-color-scheme: dark)"),
161
+ variantParentMatcher("light", "@media (prefers-color-scheme: light)")
162
+ ];
163
+ };
164
+
151
165
  const variantDataAttribute = {
152
166
  name: "data",
153
167
  match(matcher, ctx) {
@@ -165,67 +179,6 @@ const variantDataAttribute = {
165
179
  }
166
180
  };
167
181
 
168
- const variantPrint = variantParentMatcher("print", "@media print");
169
- const variantCustomMedia = {
170
- name: "media",
171
- match(matcher, ctx) {
172
- const variant = variantGetParameter("media-", matcher, ctx.generator.config.separators);
173
- if (variant) {
174
- const [match, rest] = variant;
175
- let media = handler.bracket(match) ?? "";
176
- if (media === "")
177
- media = ctx.theme.media?.[match] ?? "";
178
- if (media) {
179
- return {
180
- matcher: rest,
181
- handle: (input, next) => next({
182
- ...input,
183
- parent: `${input.parent ? `${input.parent} $$ ` : ""}@media ${media}`
184
- })
185
- };
186
- }
187
- }
188
- },
189
- multiPass: true
190
- };
191
-
192
- const variantSupports = {
193
- name: "supports",
194
- match(matcher, ctx) {
195
- const variant = variantGetParameter("supports-", matcher, ctx.generator.config.separators);
196
- if (variant) {
197
- const [match, rest] = variant;
198
- let supports = handler.bracket(match) ?? "";
199
- if (supports === "")
200
- supports = ctx.theme.supports?.[match] ?? "";
201
- if (supports) {
202
- return {
203
- matcher: rest,
204
- handle: (input, next) => next({
205
- ...input,
206
- parent: `${input.parent ? `${input.parent} $$ ` : ""}@supports ${supports}`
207
- })
208
- };
209
- }
210
- }
211
- },
212
- multiPass: true
213
- };
214
-
215
- const variantColorsMediaOrClass = (options = {}) => {
216
- if (options?.dark === "class" || typeof options.dark === "object") {
217
- const { dark = ".dark", light = ".light" } = typeof options.dark === "string" ? {} : options.dark;
218
- return [
219
- variantMatcher("dark", (input) => ({ prefix: `${dark} $$ ${input.prefix}` })),
220
- variantMatcher("light", (input) => ({ prefix: `${light} $$ ${input.prefix}` }))
221
- ];
222
- }
223
- return [
224
- variantParentMatcher("dark", "@media (prefers-color-scheme: dark)"),
225
- variantParentMatcher("light", "@media (prefers-color-scheme: light)")
226
- ];
227
- };
228
-
229
182
  const variantLanguageDirections = [
230
183
  variantMatcher("rtl", (input) => ({ prefix: `[dir="rtl"] $$ ${input.prefix}` })),
231
184
  variantMatcher("ltr", (input) => ({ prefix: `[dir="ltr"] $$ ${input.prefix}` }))
@@ -412,6 +365,53 @@ const variantImportant = () => {
412
365
  };
413
366
  };
414
367
 
368
+ const variantPrint = variantParentMatcher("print", "@media print");
369
+ const variantCustomMedia = {
370
+ name: "media",
371
+ match(matcher, ctx) {
372
+ const variant = variantGetParameter("media-", matcher, ctx.generator.config.separators);
373
+ if (variant) {
374
+ const [match, rest] = variant;
375
+ let media = handler.bracket(match) ?? "";
376
+ if (media === "")
377
+ media = ctx.theme.media?.[match] ?? "";
378
+ if (media) {
379
+ return {
380
+ matcher: rest,
381
+ handle: (input, next) => next({
382
+ ...input,
383
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@media ${media}`
384
+ })
385
+ };
386
+ }
387
+ }
388
+ },
389
+ multiPass: true
390
+ };
391
+
392
+ const variantSupports = {
393
+ name: "supports",
394
+ match(matcher, ctx) {
395
+ const variant = variantGetParameter("supports-", matcher, ctx.generator.config.separators);
396
+ if (variant) {
397
+ const [match, rest] = variant;
398
+ let supports = handler.bracket(match) ?? "";
399
+ if (supports === "")
400
+ supports = ctx.theme.supports?.[match] ?? "";
401
+ if (supports) {
402
+ return {
403
+ matcher: rest,
404
+ handle: (input, next) => next({
405
+ ...input,
406
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@supports ${supports}`
407
+ })
408
+ };
409
+ }
410
+ }
411
+ },
412
+ multiPass: true
413
+ };
414
+
415
415
  const PseudoClasses = Object.fromEntries([
416
416
  ["first-letter", "::first-letter"],
417
417
  ["first-line", "::first-line"],
@@ -647,4 +647,4 @@ const variants = (options) => [
647
647
  variantVariables
648
648
  ];
649
649
 
650
- export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantDataAttribute as f, variantPrint as g, variantCustomMedia as h, variantSupports as i, variantColorsMediaOrClass as j, variantLanguageDirections as k, variantSelector as l, variantCssLayer as m, variantInternalLayer as n, variantScope as o, variantVariables as p, variantPseudoClassesAndElements as q, variantPseudoClassFunctions as r, variantTaggedPseudoClasses as s, partClasses as t, variantImportant as u, variants as v, variantNegative as w };
650
+ export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantContainerQuery as e, variantColorsMediaOrClass as f, variantDataAttribute as g, variantLanguageDirections as h, variantImportant as i, variantPrint as j, variantCustomMedia as k, variantSelector as l, variantCssLayer as m, variantInternalLayer as n, variantScope as o, variantVariables as p, variantNegative as q, variantPseudoClassesAndElements as r, variantPseudoClassFunctions as s, variantTaggedPseudoClasses as t, partClasses as u, variants as v, variantSupports as w };
@@ -139,6 +139,28 @@ function handlerBorderStyle([, a = "", s]) {
139
139
  return directionMap[a].map((i) => [`border${i}-style`, s]);
140
140
  }
141
141
 
142
+ const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...globalKeywords];
143
+ const textDecorations = [
144
+ [/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
145
+ [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s], { theme }) => ({ "text-decoration-thickness": theme.lineWidth?.[s] ?? handler.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-<num>" }],
146
+ [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
147
+ [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
148
+ const result = colorResolver("text-decoration-color", "line")(match, ctx);
149
+ if (result) {
150
+ return {
151
+ "-webkit-text-decoration-color": result["text-decoration-color"],
152
+ ...result
153
+ };
154
+ }
155
+ }, { autocomplete: "(underline|decoration)-$colors" }],
156
+ [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": handler.bracket.percent(opacity) }), { autocomplete: "(underline|decoration)-(op|opacity)-<percent>" }],
157
+ [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ "text-underline-offset": theme.lineWidth?.[s] ?? handler.auto.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-(offset)-<num>" }],
158
+ ...decorationStyles.map((v) => [`underline-${v}`, { "text-decoration-style": v }]),
159
+ ...decorationStyles.map((v) => [`decoration-${v}`, { "text-decoration-style": v }]),
160
+ ["no-underline", { "text-decoration": "none" }],
161
+ ["decoration-none", { "text-decoration": "none" }]
162
+ ];
163
+
142
164
  const transitionPropertyGroup = {
143
165
  all: "all",
144
166
  colors: ["color", "background-color", "border-color", "outline-color", "text-decoration-color", "fill", "stroke"].join(","),
@@ -727,26 +749,4 @@ function handleSkew([, d, b]) {
727
749
  }
728
750
  }
729
751
 
730
- const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...globalKeywords];
731
- const textDecorations = [
732
- [/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
733
- [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s], { theme }) => ({ "text-decoration-thickness": theme.lineWidth?.[s] ?? handler.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-<num>" }],
734
- [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
735
- [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
736
- const result = colorResolver("text-decoration-color", "line")(match, ctx);
737
- if (result) {
738
- return {
739
- "-webkit-text-decoration-color": result["text-decoration-color"],
740
- ...result
741
- };
742
- }
743
- }, { autocomplete: "(underline|decoration)-$colors" }],
744
- [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": handler.bracket.percent(opacity) }), { autocomplete: "(underline|decoration)-(op|opacity)-<percent>" }],
745
- [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ "text-underline-offset": theme.lineWidth?.[s] ?? handler.auto.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-(offset)-<num>" }],
746
- ...decorationStyles.map((v) => [`underline-${v}`, { "text-decoration-style": v }]),
747
- ...decorationStyles.map((v) => [`decoration-${v}`, { "text-decoration-style": v }]),
748
- ["no-underline", { "text-decoration": "none" }],
749
- ["decoration-none", { "text-decoration": "none" }]
750
- ];
751
-
752
752
  export { overflows as A, outline as B, appearance as C, orders as D, justifies as E, alignments as F, placements as G, insets as H, floats as I, zIndexes as J, boxSizing as K, transitions as L, transforms as M, willChange as N, contains as O, transformBase as P, boxShadowsBase as Q, ringBase as R, borderStyles as S, handlerBorderStyle as T, varEmpty as U, contents as a, borders as b, contentVisibility as c, displays as d, textIndents as e, fonts as f, textOverflows as g, textDecorations as h, textStrokes as i, textShadows as j, textTransforms as k, textAligns as l, fontStyles as m, fontSmoothings as n, boxShadows as o, positions as p, cursors as q, rings as r, appearances as s, tabSizes as t, pointerEvents as u, resizes as v, verticalAligns as w, userSelects as x, whitespaces as y, breaks as z };
@@ -1,5 +1,5 @@
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';
2
+ import { P as transformBase, Q as boxShadowsBase, R as ringBase } from './preset-mini.91445aa5.mjs';
3
3
  import './preset-mini.1f0aea1e.mjs';
4
4
  import '@unocss/core';
5
5
 
@@ -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 };
@@ -141,6 +141,28 @@ function handlerBorderStyle([, a = "", s]) {
141
141
  return colors.directionMap[a].map((i) => [`border${i}-style`, s]);
142
142
  }
143
143
 
144
+ const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...colors.globalKeywords];
145
+ const textDecorations = [
146
+ [/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
147
+ [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s], { theme }) => ({ "text-decoration-thickness": theme.lineWidth?.[s] ?? colors.handler.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-<num>" }],
148
+ [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
149
+ [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
150
+ const result = colors.colorResolver("text-decoration-color", "line")(match, ctx);
151
+ if (result) {
152
+ return {
153
+ "-webkit-text-decoration-color": result["text-decoration-color"],
154
+ ...result
155
+ };
156
+ }
157
+ }, { autocomplete: "(underline|decoration)-$colors" }],
158
+ [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": colors.handler.bracket.percent(opacity) }), { autocomplete: "(underline|decoration)-(op|opacity)-<percent>" }],
159
+ [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ "text-underline-offset": theme.lineWidth?.[s] ?? colors.handler.auto.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-(offset)-<num>" }],
160
+ ...decorationStyles.map((v) => [`underline-${v}`, { "text-decoration-style": v }]),
161
+ ...decorationStyles.map((v) => [`decoration-${v}`, { "text-decoration-style": v }]),
162
+ ["no-underline", { "text-decoration": "none" }],
163
+ ["decoration-none", { "text-decoration": "none" }]
164
+ ];
165
+
144
166
  const transitionPropertyGroup = {
145
167
  all: "all",
146
168
  colors: ["color", "background-color", "border-color", "outline-color", "text-decoration-color", "fill", "stroke"].join(","),
@@ -729,28 +751,6 @@ function handleSkew([, d, b]) {
729
751
  }
730
752
  }
731
753
 
732
- const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...colors.globalKeywords];
733
- const textDecorations = [
734
- [/^(?:decoration-)?(underline|overline|line-through)$/, ([, s]) => ({ "text-decoration-line": s }), { autocomplete: "decoration-(underline|overline|line-through)" }],
735
- [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s], { theme }) => ({ "text-decoration-thickness": theme.lineWidth?.[s] ?? colors.handler.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-<num>" }],
736
- [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
737
- [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
738
- const result = colors.colorResolver("text-decoration-color", "line")(match, ctx);
739
- if (result) {
740
- return {
741
- "-webkit-text-decoration-color": result["text-decoration-color"],
742
- ...result
743
- };
744
- }
745
- }, { autocomplete: "(underline|decoration)-$colors" }],
746
- [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": colors.handler.bracket.percent(opacity) }), { autocomplete: "(underline|decoration)-(op|opacity)-<percent>" }],
747
- [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ "text-underline-offset": theme.lineWidth?.[s] ?? colors.handler.auto.bracket.cssvar.global.px(s) }), { autocomplete: "(underline|decoration)-(offset)-<num>" }],
748
- ...decorationStyles.map((v) => [`underline-${v}`, { "text-decoration-style": v }]),
749
- ...decorationStyles.map((v) => [`decoration-${v}`, { "text-decoration-style": v }]),
750
- ["no-underline", { "text-decoration": "none" }],
751
- ["decoration-none", { "text-decoration": "none" }]
752
- ];
753
-
754
754
  exports.alignments = alignments;
755
755
  exports.appearance = appearance;
756
756
  exports.appearances = appearances;
@@ -1,4 +1,4 @@
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';
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.91445aa5.mjs';
2
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';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
package/dist/theme.cjs CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./shared/preset-mini.30606736.cjs');
6
- const _default = require('./shared/preset-mini.7713e984.cjs');
7
- require('./shared/preset-mini.0c11b1ec.cjs');
6
+ const _default = require('./shared/preset-mini.62e01fcd.cjs');
7
+ require('./shared/preset-mini.b2a92d2d.cjs');
8
8
  require('./shared/preset-mini.87096f14.cjs');
9
9
  require('@unocss/core');
10
10
 
package/dist/theme.d.ts CHANGED
@@ -116,6 +116,30 @@ declare const ringWidth: {
116
116
  none: string;
117
117
  };
118
118
 
119
+ declare const preflightBase: {
120
+ '--un-ring-inset': string;
121
+ '--un-ring-offset-width': string;
122
+ '--un-ring-offset-color': string;
123
+ '--un-ring-width': string;
124
+ '--un-ring-color': string;
125
+ '--un-shadow': string;
126
+ '--un-ring-offset-shadow': string;
127
+ '--un-ring-shadow': string;
128
+ '--un-shadow-inset': string;
129
+ '--un-rotate': number;
130
+ '--un-rotate-x': number;
131
+ '--un-rotate-y': number;
132
+ '--un-rotate-z': number;
133
+ '--un-scale-x': number;
134
+ '--un-scale-y': number;
135
+ '--un-scale-z': number;
136
+ '--un-skew-x': number;
137
+ '--un-skew-y': number;
138
+ '--un-translate-x': number;
139
+ '--un-translate-y': number;
140
+ '--un-translate-z': number;
141
+ };
142
+
119
143
  declare const baseSize: {
120
144
  xs: string;
121
145
  sm: string;
@@ -198,28 +222,4 @@ declare const containers: {
198
222
  [k: string]: string;
199
223
  };
200
224
 
201
- declare const preflightBase: {
202
- '--un-ring-inset': string;
203
- '--un-ring-offset-width': string;
204
- '--un-ring-offset-color': string;
205
- '--un-ring-width': string;
206
- '--un-ring-color': string;
207
- '--un-shadow': string;
208
- '--un-ring-offset-shadow': string;
209
- '--un-ring-shadow': string;
210
- '--un-shadow-inset': string;
211
- '--un-rotate': number;
212
- '--un-rotate-x': number;
213
- '--un-rotate-y': number;
214
- '--un-rotate-z': number;
215
- '--un-scale-x': number;
216
- '--un-scale-y': number;
217
- '--un-scale-z': number;
218
- '--un-skew-x': number;
219
- '--un-skew-y': number;
220
- '--un-translate-x': number;
221
- '--un-translate-y': number;
222
- '--un-translate-z': number;
223
- };
224
-
225
225
  export { baseSize, blur, borderRadius, boxShadow, breakpoints, containers, 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,5 +1,5 @@
1
1
  export { c as colors } from './shared/preset-mini.65ac75be.mjs';
2
- export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, z as containers, 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, A 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 './shared/preset-mini.d4b3c145.mjs';
3
- import './shared/preset-mini.0e65716b.mjs';
2
+ export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.abaf1689.mjs';
3
+ import './shared/preset-mini.91445aa5.mjs';
4
4
  import './shared/preset-mini.1f0aea1e.mjs';
5
5
  import '@unocss/core';
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, t as getComponent, z as getComponents, g as globalKeywords, w as h, h as handler, a as hasParseableColor, u as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, v as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, s as splitShorthand, y as valueHandlers, x as xyzMap } from './shared/preset-mini.1f0aea1e.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.29117527.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.354ecb56.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const _default = require('./shared/preset-mini.47479103.cjs');
5
+ const _default = require('./shared/preset-mini.7c26129e.cjs');
6
6
  require('./shared/preset-mini.87096f14.cjs');
7
7
  require('@unocss/core');
8
8
  require('./shared/preset-mini.36f890d6.cjs');
@@ -14,32 +14,32 @@ declare const variantCombinators: Variant[];
14
14
 
15
15
  declare const variantContainerQuery: VariantObject;
16
16
 
17
- declare const variantDataAttribute: VariantObject;
18
-
19
- declare const variantPrint: VariantObject;
20
- declare const variantCustomMedia: VariantObject;
21
-
22
- declare const variantSupports: VariantObject;
23
-
24
17
  declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => Variant[];
25
18
 
19
+ declare const variantDataAttribute: VariantObject;
20
+
26
21
  declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
27
22
 
28
23
  declare const variantLanguageDirections: Variant[];
29
24
 
25
+ declare const variantImportant: () => VariantObject;
26
+
27
+ declare const variantPrint: VariantObject;
28
+ declare const variantCustomMedia: VariantObject;
29
+
30
30
  declare const variantSelector: Variant;
31
31
  declare const variantCssLayer: Variant;
32
32
  declare const variantInternalLayer: Variant;
33
33
  declare const variantScope: Variant;
34
34
  declare const variantVariables: Variant;
35
35
 
36
+ declare const variantNegative: Variant;
37
+
36
38
  declare const variantPseudoClassesAndElements: () => VariantObject;
37
39
  declare const variantPseudoClassFunctions: () => VariantObject;
38
40
  declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
39
41
  declare const partClasses: VariantObject;
40
42
 
41
- declare const variantImportant: () => VariantObject;
42
-
43
- declare const variantNegative: Variant;
43
+ declare const variantSupports: VariantObject;
44
44
 
45
45
  export { calcMaxWidthBySize, partClasses, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as calcMaxWidthBySize, t as partClasses, a as variantAria, b as variantBreakpoints, j as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, h as variantCustomMedia, f as variantDataAttribute, u as variantImportant, n as variantInternalLayer, k as variantLanguageDirections, w as variantNegative, g as variantPrint, r as variantPseudoClassFunctions, q as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, i as variantSupports, s as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.895c0603.mjs';
1
+ export { c as calcMaxWidthBySize, u as partClasses, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.7e22fc5d.mjs';
2
2
  import './shared/preset-mini.1f0aea1e.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.29117527.mjs';
4
+ import './shared/preset-mini.354ecb56.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.49.3",
3
+ "version": "0.49.4",
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.49.3"
64
+ "@unocss/core": "0.49.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",