@unocss/preset-mini 0.46.2 → 0.46.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.
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-486d85a1.js';
1
+ import { T as Theme } from './types-3bfb4dc5.js';
2
2
 
3
3
  declare const colors: Theme['colors'];
4
4
 
package/dist/colors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { c as colors } from './colors-09429298.js';
2
- import './types-486d85a1.js';
1
+ export { c as colors } from './colors-884ab3c4.js';
2
+ import './types-3bfb4dc5.js';
3
3
  import '@unocss/core';
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-486d85a1.js';
1
+ import { T as Theme } from './types-3bfb4dc5.js';
2
2
 
3
3
  declare const theme: Theme;
4
4
 
package/dist/index.cjs CHANGED
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const core = require('@unocss/core');
6
6
  require('./shared/preset-mini.09ec9c56.cjs');
7
7
  const colors$1 = require('./shared/preset-mini.b1936363.cjs');
8
- const _default$1 = require('./shared/preset-mini.3b14aba9.cjs');
8
+ const _default$1 = require('./shared/preset-mini.4ec9b63c.cjs');
9
9
  const colors = require('./shared/preset-mini.30606736.cjs');
10
- const _default = require('./shared/preset-mini.5d486e77.cjs');
11
- const _default$2 = require('./shared/preset-mini.134e02be.cjs');
12
- require('./shared/preset-mini.14f57094.cjs');
10
+ const _default = require('./shared/preset-mini.6de47c6f.cjs');
11
+ const _default$2 = require('./shared/preset-mini.c106b68c.cjs');
12
+ require('./shared/preset-mini.fbe02827.cjs');
13
13
 
14
14
  const preflights = [
15
15
  {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset } from '@unocss/core';
2
- export { c as colors } from './colors-09429298.js';
3
- export { t as theme } from './default-d1eb2175.js';
4
- import { T as Theme } from './types-486d85a1.js';
5
- export { T as Theme, a as ThemeAnimation } from './types-486d85a1.js';
6
- export { p as parseColor } from './utilities-c2105bec.js';
2
+ export { c as colors } from './colors-884ab3c4.js';
3
+ export { t as theme } from './default-21cad915.js';
4
+ import { T as Theme } from './types-3bfb4dc5.js';
5
+ export { T as Theme, a as ThemeAnimation } from './types-3bfb4dc5.js';
6
+ export { p as parseColor } from './utilities-10273596.js';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { entriesToCss, toArray } from '@unocss/core';
2
2
  import './shared/preset-mini.489445bc.mjs';
3
3
  export { p as parseColor } from './shared/preset-mini.690517b1.mjs';
4
- import { r as rules } from './shared/preset-mini.4883e112.mjs';
4
+ import { r as rules } from './shared/preset-mini.6616d61c.mjs';
5
5
  export { c as colors } from './shared/preset-mini.65ac75be.mjs';
6
- import { t as theme } from './shared/preset-mini.809a4128.mjs';
7
- export { t as theme } from './shared/preset-mini.809a4128.mjs';
8
- import { v as variants } from './shared/preset-mini.a626625a.mjs';
9
- import './shared/preset-mini.810922e5.mjs';
6
+ import { t as theme } from './shared/preset-mini.2aa41602.mjs';
7
+ export { t as theme } from './shared/preset-mini.2aa41602.mjs';
8
+ import { v as variants } from './shared/preset-mini.fef10425.mjs';
9
+ import './shared/preset-mini.74d943b2.mjs';
10
10
 
11
11
  const preflights = [
12
12
  {
package/dist/rules.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const decoration = require('./shared/preset-mini.09ec9c56.cjs');
6
- const _default = require('./shared/preset-mini.3b14aba9.cjs');
6
+ const _default = require('./shared/preset-mini.4ec9b63c.cjs');
7
7
  require('./shared/preset-mini.b1936363.cjs');
8
8
  require('@unocss/core');
9
9
 
@@ -57,6 +57,7 @@ exports.willChange = decoration.willChange;
57
57
  exports.zIndexes = decoration.zIndexes;
58
58
  exports.aspectRatio = _default.aspectRatio;
59
59
  exports.bgColors = _default.bgColors;
60
+ exports.containerParent = _default.containerParent;
60
61
  exports.cssProperty = _default.cssProperty;
61
62
  exports.cssVariables = _default.cssVariables;
62
63
  exports.flex = _default.flex;
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries } from '@unocss/core';
2
- import { T as Theme } from './types-486d85a1.js';
2
+ import { T as Theme } from './types-3bfb4dc5.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
@@ -22,6 +22,8 @@ declare const opacity: Rule[];
22
22
  declare const textColors: Rule[];
23
23
  declare const bgColors: Rule[];
24
24
 
25
+ declare const containerParent: Rule[];
26
+
25
27
  declare const rules: Rule[];
26
28
 
27
29
  declare const flex: Rule<Theme>[];
@@ -120,4 +122,4 @@ declare const cssProperty: Rule[];
120
122
 
121
123
  declare const textDecorations: Rule<Theme>[];
122
124
 
123
- export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, 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 };
125
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, containerParent, 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
1
  export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S 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, Q 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, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.489445bc.mjs';
2
- export { c as aspectRatio, b as bgColors, h as cssProperty, e 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, d as svgUtilities, t as textColors } from './shared/preset-mini.4883e112.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.6616d61c.mjs';
3
3
  import './shared/preset-mini.690517b1.mjs';
4
4
  import '@unocss/core';
@@ -224,6 +224,7 @@ const maxHeight = {
224
224
  ...baseSize,
225
225
  screen: "100vh"
226
226
  };
227
+ const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
227
228
 
228
229
  const preflightBase = {
229
230
  ...transformBase,
@@ -264,7 +265,8 @@ const theme = {
264
265
  spacing,
265
266
  duration,
266
267
  ringWidth,
267
- preflightBase
268
+ preflightBase,
269
+ containers
268
270
  };
269
271
 
270
- export { fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, 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, preflightBase as z };
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 };
@@ -2,7 +2,7 @@
2
2
 
3
3
  const decoration = require('./preset-mini.09ec9c56.cjs');
4
4
  const colors = require('./preset-mini.b1936363.cjs');
5
- require('@unocss/core');
5
+ const core = require('@unocss/core');
6
6
 
7
7
  const opacity = [
8
8
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: colors.handler.bracket.percent.cssvar(d) })]
@@ -17,6 +17,16 @@ const bgColors = [
17
17
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
18
18
  ];
19
19
 
20
+ const containerParent = [
21
+ [/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
22
+ core.warnOnce("The container query rule is experimental and may not follow semver.");
23
+ return {
24
+ "container-type": v ?? "inline-size",
25
+ "container-name": l
26
+ };
27
+ }]
28
+ ];
29
+
20
30
  const flex = [
21
31
  ["flex", { display: "flex" }],
22
32
  ["inline-flex", { display: "inline-flex" }],
@@ -287,11 +297,13 @@ const rules = [
287
297
  decoration.transitions,
288
298
  decoration.transforms,
289
299
  decoration.willChange,
300
+ containerParent,
290
301
  questionMark
291
302
  ].flat(1);
292
303
 
293
304
  exports.aspectRatio = aspectRatio;
294
305
  exports.bgColors = bgColors;
306
+ exports.containerParent = containerParent;
295
307
  exports.cssProperty = cssProperty;
296
308
  exports.cssVariables = cssVariables;
297
309
  exports.flex = flex;
@@ -1,6 +1,6 @@
1
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 } from './preset-mini.489445bc.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.690517b1.mjs';
3
- import '@unocss/core';
3
+ import { warnOnce } from '@unocss/core';
4
4
 
5
5
  const opacity = [
6
6
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: handler.bracket.percent.cssvar(d) })]
@@ -15,6 +15,16 @@ const bgColors = [
15
15
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
16
16
  ];
17
17
 
18
+ const containerParent = [
19
+ [/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
20
+ warnOnce("The container query rule is experimental and may not follow semver.");
21
+ return {
22
+ "container-type": v ?? "inline-size",
23
+ "container-name": l
24
+ };
25
+ }]
26
+ ];
27
+
18
28
  const flex = [
19
29
  ["flex", { display: "flex" }],
20
30
  ["inline-flex", { display: "inline-flex" }],
@@ -285,7 +295,8 @@ const rules = [
285
295
  transitions,
286
296
  transforms,
287
297
  willChange,
298
+ containerParent,
288
299
  questionMark
289
300
  ].flat(1);
290
301
 
291
- export { grids as a, bgColors as b, aspectRatio as c, svgUtilities as d, cssVariables as e, flex as f, gaps as g, cssProperty as h, margins as m, opacity as o, paddings as p, questionMark as q, rules as r, sizes as s, textColors as t };
302
+ export { grids as a, bgColors as b, containerParent as c, aspectRatio as d, svgUtilities as e, flex as f, gaps as g, cssVariables as h, cssProperty as i, margins as m, opacity as o, paddings as p, questionMark as q, rules as r, sizes as s, textColors as t };
@@ -226,6 +226,7 @@ const maxHeight = {
226
226
  ...baseSize,
227
227
  screen: "100vh"
228
228
  };
229
+ const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
229
230
 
230
231
  const preflightBase = {
231
232
  ...decoration.transformBase,
@@ -266,7 +267,8 @@ const theme = {
266
267
  spacing,
267
268
  duration,
268
269
  ringWidth,
269
- preflightBase
270
+ preflightBase,
271
+ containers
270
272
  };
271
273
 
272
274
  exports.baseSize = baseSize;
@@ -274,6 +276,7 @@ exports.blur = blur;
274
276
  exports.borderRadius = borderRadius;
275
277
  exports.boxShadow = boxShadow;
276
278
  exports.breakpoints = breakpoints;
279
+ exports.containers = containers;
277
280
  exports.dropShadow = dropShadow;
278
281
  exports.duration = duration;
279
282
  exports.easing = easing;
@@ -39,9 +39,9 @@ const variantParentMatcher = (name, parent) => {
39
39
  autocomplete: `${name}:`
40
40
  };
41
41
  };
42
- const variantGetBracket = (name, matcher, separators) => {
43
- if (matcher.startsWith(`${name}-[`)) {
44
- const [match, rest] = getBracket(matcher.slice(name.length + 1), "[", "]") ?? [];
42
+ const variantGetBracket = (prefix, matcher, separators) => {
43
+ if (matcher.startsWith(`${prefix}[`)) {
44
+ const [match, rest] = getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
45
45
  if (match && rest) {
46
46
  for (const separator of separators) {
47
47
  if (rest.startsWith(separator))
@@ -51,15 +51,24 @@ const variantGetBracket = (name, matcher, separators) => {
51
51
  }
52
52
  }
53
53
  };
54
- const variantGetParameter = (name, matcher, separators) => {
55
- if (matcher.startsWith(`${name}-`)) {
56
- const body = variantGetBracket(name, matcher, separators);
57
- if (body)
58
- return body;
59
- for (const separator of separators) {
60
- const pos = matcher.indexOf(separator, name.length + 1);
61
- if (pos !== -1)
62
- return [matcher.slice(name.length + 1, pos), matcher.slice(pos + separator.length)];
54
+ const variantGetParameter = (prefix, matcher, separators) => {
55
+ if (matcher.startsWith(prefix)) {
56
+ const body = variantGetBracket(prefix, matcher, separators);
57
+ if (body) {
58
+ const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
59
+ return [body[0], rest, label];
60
+ }
61
+ for (const separator of separators.filter((x) => x !== "/")) {
62
+ const pos = matcher.indexOf(separator, prefix.length);
63
+ if (pos !== -1) {
64
+ const labelPos = matcher.indexOf("/", prefix.length);
65
+ const unlabelled = labelPos === -1 || pos <= labelPos;
66
+ return [
67
+ matcher.slice(prefix.length, unlabelled ? pos : labelPos),
68
+ matcher.slice(pos + separator.length),
69
+ unlabelled ? "" : matcher.slice(labelPos + 1, pos)
70
+ ];
71
+ }
63
72
  }
64
73
  }
65
74
  };
@@ -2,12 +2,12 @@
2
2
 
3
3
  const colors = require('./preset-mini.b1936363.cjs');
4
4
  const core = require('@unocss/core');
5
- const variants$1 = require('./preset-mini.14f57094.cjs');
5
+ const variants$1 = require('./preset-mini.fbe02827.cjs');
6
6
 
7
7
  const variantAria = {
8
8
  name: "aria",
9
9
  match(matcher, { theme }) {
10
- const variant = variants$1.variantGetParameter("aria", matcher, [":", "-"]);
10
+ const variant = variants$1.variantGetParameter("aria-", matcher, [":", "-"]);
11
11
  if (variant) {
12
12
  const [match, rest] = variant;
13
13
  const aria = colors.handler.bracket(match) ?? theme.aria?.[match] ?? "";
@@ -86,7 +86,7 @@ const scopeMatcher = (name, combinator) => ({
86
86
  match(matcher) {
87
87
  if (!matcher.startsWith(name))
88
88
  return;
89
- let body = variants$1.variantGetBracket(name, matcher, [":", "-"]);
89
+ let body = variants$1.variantGetBracket(`${name}-`, matcher, [":", "-"]);
90
90
  if (!body) {
91
91
  for (const separator of [":", "-"]) {
92
92
  if (matcher.startsWith(`${name}${separator}`)) {
@@ -115,10 +115,42 @@ const variantCombinators = [
115
115
  scopeMatcher("siblings", "~")
116
116
  ];
117
117
 
118
+ const variantContainerQuery = {
119
+ name: "@",
120
+ match(matcher, { theme }) {
121
+ if (matcher.startsWith("@container"))
122
+ return;
123
+ const variant = variants$1.variantGetParameter("@", matcher, [":", "-"]);
124
+ if (variant) {
125
+ const [match, rest, label] = variant;
126
+ const unbracket = colors.handler.bracket(match);
127
+ let container;
128
+ if (unbracket) {
129
+ const minWidth = colors.handler.numberWithUnit(unbracket);
130
+ if (minWidth)
131
+ container = `(min-width: ${minWidth})`;
132
+ } else {
133
+ container = theme.containers?.[match] ?? "";
134
+ }
135
+ if (container) {
136
+ core.warnOnce("The container query variant is experimental and may not follow semver.");
137
+ return {
138
+ matcher: rest,
139
+ handle: (input, next) => next({
140
+ ...input,
141
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}${container}`
142
+ })
143
+ };
144
+ }
145
+ }
146
+ },
147
+ multiPass: true
148
+ };
149
+
118
150
  const variantDataAttribute = {
119
151
  name: "data",
120
152
  match(matcher, { theme }) {
121
- const variant = variants$1.variantGetParameter("data", matcher, [":", "-"]);
153
+ const variant = variants$1.variantGetParameter("data-", matcher, [":", "-"]);
122
154
  if (variant) {
123
155
  const [match, rest] = variant;
124
156
  const dataAttribute = colors.handler.bracket(match) ?? theme.data?.[match] ?? "";
@@ -136,7 +168,7 @@ const variantPrint = variants$1.variantParentMatcher("print", "@media print");
136
168
  const variantCustomMedia = {
137
169
  name: "media",
138
170
  match(matcher, { theme }) {
139
- const variant = variants$1.variantGetParameter("media", matcher, [":", "-"]);
171
+ const variant = variants$1.variantGetParameter("media-", matcher, [":", "-"]);
140
172
  if (variant) {
141
173
  const [match, rest] = variant;
142
174
  let media = colors.handler.bracket(match) ?? "";
@@ -159,7 +191,7 @@ const variantCustomMedia = {
159
191
  const variantSupports = {
160
192
  name: "supports",
161
193
  match(matcher, { theme }) {
162
- const variant = variants$1.variantGetParameter("supports", matcher, [":", "-"]);
194
+ const variant = variants$1.variantGetParameter("supports-", matcher, [":", "-"]);
163
195
  if (variant) {
164
196
  const [match, rest] = variant;
165
197
  let supports = colors.handler.bracket(match) ?? "";
@@ -201,7 +233,7 @@ const variantLanguageDirections = [
201
233
  const variantSelector = {
202
234
  name: "selector",
203
235
  match(matcher) {
204
- const variant = variants$1.variantGetBracket("selector", matcher, [":", "-"]);
236
+ const variant = variants$1.variantGetBracket("selector-", matcher, [":", "-"]);
205
237
  if (variant) {
206
238
  const [match, rest] = variant;
207
239
  const selector = colors.handler.bracket(match);
@@ -217,7 +249,7 @@ const variantSelector = {
217
249
  const variantCssLayer = {
218
250
  name: "layer",
219
251
  match(matcher) {
220
- const variant = variants$1.variantGetParameter("layer", matcher, [":", "-"]);
252
+ const variant = variants$1.variantGetParameter("layer-", matcher, [":", "-"]);
221
253
  if (variant) {
222
254
  const [match, rest] = variant;
223
255
  const layer = colors.handler.bracket(match) ?? match;
@@ -236,7 +268,7 @@ const variantCssLayer = {
236
268
  const variantInternalLayer = {
237
269
  name: "uno-layer",
238
270
  match(matcher) {
239
- const variant = variants$1.variantGetParameter("uno-layer", matcher, [":", "-"]);
271
+ const variant = variants$1.variantGetParameter("uno-layer-", matcher, [":", "-"]);
240
272
  if (variant) {
241
273
  const [match, rest] = variant;
242
274
  const layer = colors.handler.bracket(match) ?? match;
@@ -252,7 +284,7 @@ const variantInternalLayer = {
252
284
  const variantScope = {
253
285
  name: "scope",
254
286
  match(matcher) {
255
- const variant = variants$1.variantGetBracket("scope", matcher, [":", "-"]);
287
+ const variant = variants$1.variantGetBracket("scope-", matcher, [":", "-"]);
256
288
  if (variant) {
257
289
  const [match, rest] = variant;
258
290
  const scope = colors.handler.bracket(match);
@@ -442,7 +474,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
442
474
  const pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?[:-]`);
443
475
  const pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?[:]`);
444
476
  const matchBracket = (input) => {
445
- const body = variants$1.variantGetBracket(tag, input, []);
477
+ const body = variants$1.variantGetBracket(`${tag}-`, input, []);
446
478
  if (!body)
447
479
  return;
448
480
  const [match, rest] = body;
@@ -483,7 +515,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
483
515
  return;
484
516
  const [label, matcher, prefix, sort] = result;
485
517
  if (label !== "")
486
- core.warnOnce("The labeled pseudo is experimental and may be changed in breaking ways at any time.");
518
+ core.warnOnce("The labeled variant is experimental and may not follow semver.");
487
519
  return {
488
520
  matcher,
489
521
  handle: (input2, next) => next({
@@ -587,6 +619,7 @@ const variants = (options) => [
587
619
  ...variantColorsMediaOrClass(options),
588
620
  ...variantLanguageDirections,
589
621
  variantScope,
622
+ variantContainerQuery,
590
623
  variantVariables
591
624
  ];
592
625
 
@@ -596,6 +629,7 @@ exports.variantAria = variantAria;
596
629
  exports.variantBreakpoints = variantBreakpoints;
597
630
  exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
598
631
  exports.variantCombinators = variantCombinators;
632
+ exports.variantContainerQuery = variantContainerQuery;
599
633
  exports.variantCssLayer = variantCssLayer;
600
634
  exports.variantCustomMedia = variantCustomMedia;
601
635
  exports.variantDataAttribute = variantDataAttribute;
@@ -41,9 +41,9 @@ const variantParentMatcher = (name, parent) => {
41
41
  autocomplete: `${name}:`
42
42
  };
43
43
  };
44
- const variantGetBracket = (name, matcher, separators) => {
45
- if (matcher.startsWith(`${name}-[`)) {
46
- const [match, rest] = colors.getBracket(matcher.slice(name.length + 1), "[", "]") ?? [];
44
+ const variantGetBracket = (prefix, matcher, separators) => {
45
+ if (matcher.startsWith(`${prefix}[`)) {
46
+ const [match, rest] = colors.getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
47
47
  if (match && rest) {
48
48
  for (const separator of separators) {
49
49
  if (rest.startsWith(separator))
@@ -53,15 +53,24 @@ const variantGetBracket = (name, matcher, separators) => {
53
53
  }
54
54
  }
55
55
  };
56
- const variantGetParameter = (name, matcher, separators) => {
57
- if (matcher.startsWith(`${name}-`)) {
58
- const body = variantGetBracket(name, matcher, separators);
59
- if (body)
60
- return body;
61
- for (const separator of separators) {
62
- const pos = matcher.indexOf(separator, name.length + 1);
63
- if (pos !== -1)
64
- return [matcher.slice(name.length + 1, pos), matcher.slice(pos + separator.length)];
56
+ const variantGetParameter = (prefix, matcher, separators) => {
57
+ if (matcher.startsWith(prefix)) {
58
+ const body = variantGetBracket(prefix, matcher, separators);
59
+ if (body) {
60
+ const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
61
+ return [body[0], rest, label];
62
+ }
63
+ for (const separator of separators.filter((x) => x !== "/")) {
64
+ const pos = matcher.indexOf(separator, prefix.length);
65
+ if (pos !== -1) {
66
+ const labelPos = matcher.indexOf("/", prefix.length);
67
+ const unlabelled = labelPos === -1 || pos <= labelPos;
68
+ return [
69
+ matcher.slice(prefix.length, unlabelled ? pos : labelPos),
70
+ matcher.slice(pos + separator.length),
71
+ unlabelled ? "" : matcher.slice(labelPos + 1, pos)
72
+ ];
73
+ }
65
74
  }
66
75
  }
67
76
  };
@@ -1,11 +1,11 @@
1
1
  import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, s as getComponent } from './preset-mini.690517b1.mjs';
2
- import { escapeRegExp, warnOnce, escapeSelector } from '@unocss/core';
3
- import { v as variantGetParameter, a as variantGetBracket, b as variantParentMatcher, c as variantMatcher } from './preset-mini.810922e5.mjs';
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.74d943b2.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
7
7
  match(matcher, { theme }) {
8
- const variant = variantGetParameter("aria", matcher, [":", "-"]);
8
+ const variant = variantGetParameter("aria-", matcher, [":", "-"]);
9
9
  if (variant) {
10
10
  const [match, rest] = variant;
11
11
  const aria = handler.bracket(match) ?? theme.aria?.[match] ?? "";
@@ -84,7 +84,7 @@ const scopeMatcher = (name, combinator) => ({
84
84
  match(matcher) {
85
85
  if (!matcher.startsWith(name))
86
86
  return;
87
- let body = variantGetBracket(name, matcher, [":", "-"]);
87
+ let body = variantGetBracket(`${name}-`, matcher, [":", "-"]);
88
88
  if (!body) {
89
89
  for (const separator of [":", "-"]) {
90
90
  if (matcher.startsWith(`${name}${separator}`)) {
@@ -113,10 +113,42 @@ const variantCombinators = [
113
113
  scopeMatcher("siblings", "~")
114
114
  ];
115
115
 
116
+ const variantContainerQuery = {
117
+ name: "@",
118
+ match(matcher, { theme }) {
119
+ if (matcher.startsWith("@container"))
120
+ return;
121
+ const variant = variantGetParameter("@", matcher, [":", "-"]);
122
+ if (variant) {
123
+ const [match, rest, label] = variant;
124
+ const unbracket = handler.bracket(match);
125
+ let container;
126
+ if (unbracket) {
127
+ const minWidth = handler.numberWithUnit(unbracket);
128
+ if (minWidth)
129
+ container = `(min-width: ${minWidth})`;
130
+ } else {
131
+ container = theme.containers?.[match] ?? "";
132
+ }
133
+ if (container) {
134
+ warnOnce("The container query variant is experimental and may not follow semver.");
135
+ return {
136
+ matcher: rest,
137
+ handle: (input, next) => next({
138
+ ...input,
139
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}${container}`
140
+ })
141
+ };
142
+ }
143
+ }
144
+ },
145
+ multiPass: true
146
+ };
147
+
116
148
  const variantDataAttribute = {
117
149
  name: "data",
118
150
  match(matcher, { theme }) {
119
- const variant = variantGetParameter("data", matcher, [":", "-"]);
151
+ const variant = variantGetParameter("data-", matcher, [":", "-"]);
120
152
  if (variant) {
121
153
  const [match, rest] = variant;
122
154
  const dataAttribute = handler.bracket(match) ?? theme.data?.[match] ?? "";
@@ -134,7 +166,7 @@ const variantPrint = variantParentMatcher("print", "@media print");
134
166
  const variantCustomMedia = {
135
167
  name: "media",
136
168
  match(matcher, { theme }) {
137
- const variant = variantGetParameter("media", matcher, [":", "-"]);
169
+ const variant = variantGetParameter("media-", matcher, [":", "-"]);
138
170
  if (variant) {
139
171
  const [match, rest] = variant;
140
172
  let media = handler.bracket(match) ?? "";
@@ -157,7 +189,7 @@ const variantCustomMedia = {
157
189
  const variantSupports = {
158
190
  name: "supports",
159
191
  match(matcher, { theme }) {
160
- const variant = variantGetParameter("supports", matcher, [":", "-"]);
192
+ const variant = variantGetParameter("supports-", matcher, [":", "-"]);
161
193
  if (variant) {
162
194
  const [match, rest] = variant;
163
195
  let supports = handler.bracket(match) ?? "";
@@ -199,7 +231,7 @@ const variantLanguageDirections = [
199
231
  const variantSelector = {
200
232
  name: "selector",
201
233
  match(matcher) {
202
- const variant = variantGetBracket("selector", matcher, [":", "-"]);
234
+ const variant = variantGetBracket("selector-", matcher, [":", "-"]);
203
235
  if (variant) {
204
236
  const [match, rest] = variant;
205
237
  const selector = handler.bracket(match);
@@ -215,7 +247,7 @@ const variantSelector = {
215
247
  const variantCssLayer = {
216
248
  name: "layer",
217
249
  match(matcher) {
218
- const variant = variantGetParameter("layer", matcher, [":", "-"]);
250
+ const variant = variantGetParameter("layer-", matcher, [":", "-"]);
219
251
  if (variant) {
220
252
  const [match, rest] = variant;
221
253
  const layer = handler.bracket(match) ?? match;
@@ -234,7 +266,7 @@ const variantCssLayer = {
234
266
  const variantInternalLayer = {
235
267
  name: "uno-layer",
236
268
  match(matcher) {
237
- const variant = variantGetParameter("uno-layer", matcher, [":", "-"]);
269
+ const variant = variantGetParameter("uno-layer-", matcher, [":", "-"]);
238
270
  if (variant) {
239
271
  const [match, rest] = variant;
240
272
  const layer = handler.bracket(match) ?? match;
@@ -250,7 +282,7 @@ const variantInternalLayer = {
250
282
  const variantScope = {
251
283
  name: "scope",
252
284
  match(matcher) {
253
- const variant = variantGetBracket("scope", matcher, [":", "-"]);
285
+ const variant = variantGetBracket("scope-", matcher, [":", "-"]);
254
286
  if (variant) {
255
287
  const [match, rest] = variant;
256
288
  const scope = handler.bracket(match);
@@ -440,7 +472,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
440
472
  const pseudoRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))(?:(/\\w+))?[:-]`);
441
473
  const pseudoColonRE = new RegExp(`^${tag}-(?:(?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))(?:(/\\w+))?[:]`);
442
474
  const matchBracket = (input) => {
443
- const body = variantGetBracket(tag, input, []);
475
+ const body = variantGetBracket(`${tag}-`, input, []);
444
476
  if (!body)
445
477
  return;
446
478
  const [match, rest] = body;
@@ -481,7 +513,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
481
513
  return;
482
514
  const [label, matcher, prefix, sort] = result;
483
515
  if (label !== "")
484
- warnOnce("The labeled pseudo is experimental and may be changed in breaking ways at any time.");
516
+ warnOnce("The labeled variant is experimental and may not follow semver.");
485
517
  return {
486
518
  matcher,
487
519
  handle: (input2, next) => next({
@@ -585,7 +617,8 @@ const variants = (options) => [
585
617
  ...variantColorsMediaOrClass(options),
586
618
  ...variantLanguageDirections,
587
619
  variantScope,
620
+ variantContainerQuery,
588
621
  variantVariables
589
622
  ];
590
623
 
591
- export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantDataAttribute as e, variantPrint as f, variantCustomMedia as g, variantSupports as h, variantColorsMediaOrClass as i, variantLanguageDirections as j, variantSelector as k, variantCssLayer as l, variantInternalLayer as m, variantScope as n, variantVariables as o, variantPseudoClassesAndElements as p, variantPseudoClassFunctions as q, variantTaggedPseudoClasses as r, partClasses as s, variantImportant as t, variantNegative as u, variants as v };
624
+ 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 };
package/dist/theme.cjs CHANGED
@@ -3,7 +3,7 @@
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.5d486e77.cjs');
6
+ const _default = require('./shared/preset-mini.6de47c6f.cjs');
7
7
  require('./shared/preset-mini.09ec9c56.cjs');
8
8
  require('./shared/preset-mini.b1936363.cjs');
9
9
  require('@unocss/core');
@@ -16,6 +16,7 @@ exports.blur = _default.blur;
16
16
  exports.borderRadius = _default.borderRadius;
17
17
  exports.boxShadow = _default.boxShadow;
18
18
  exports.breakpoints = _default.breakpoints;
19
+ exports.containers = _default.containers;
19
20
  exports.dropShadow = _default.dropShadow;
20
21
  exports.duration = _default.duration;
21
22
  exports.easing = _default.easing;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-09429298.js';
2
- export { t as theme } from './default-d1eb2175.js';
3
- import { T as Theme } from './types-486d85a1.js';
4
- export { T as Theme, a as ThemeAnimation } from './types-486d85a1.js';
1
+ export { c as colors } from './colors-884ab3c4.js';
2
+ export { t as theme } from './default-21cad915.js';
3
+ import { T as Theme } from './types-3bfb4dc5.js';
4
+ export { C as Colors, T as Theme, a as ThemeAnimation } from './types-3bfb4dc5.js';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
@@ -194,6 +194,9 @@ declare const maxHeight: {
194
194
  prose: string;
195
195
  none: string;
196
196
  };
197
+ declare const containers: {
198
+ [k: string]: string;
199
+ };
197
200
 
198
201
  declare const preflightBase: {
199
202
  '--un-ring-inset': string;
@@ -219,4 +222,4 @@ declare const preflightBase: {
219
222
  '--un-translate-z': number;
220
223
  };
221
224
 
222
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
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, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, z as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './shared/preset-mini.809a4128.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.2aa41602.mjs';
3
3
  import './shared/preset-mini.489445bc.mjs';
4
4
  import './shared/preset-mini.690517b1.mjs';
5
5
  import '@unocss/core';
@@ -7,6 +7,9 @@ interface ThemeAnimation {
7
7
  properties?: Record<string, object>;
8
8
  counts?: Record<string, string | number>;
9
9
  }
10
+ interface Colors {
11
+ [key: string]: Colors | string;
12
+ }
10
13
  interface Theme {
11
14
  width?: Record<string, string>;
12
15
  height?: Record<string, string>;
@@ -23,9 +26,9 @@ interface Theme {
23
26
  borderRadius?: Record<string, string>;
24
27
  breakpoints?: Record<string, string>;
25
28
  verticalBreakpoints?: Record<string, string>;
26
- colors?: Record<string, string | Record<string, string>>;
29
+ colors?: Colors;
27
30
  fontFamily?: Record<string, string>;
28
- fontSize?: Record<string, [string, string]>;
31
+ fontSize?: Record<string, string | [string, string]>;
29
32
  lineHeight?: Record<string, string>;
30
33
  letterSpacing?: Record<string, string>;
31
34
  wordSpacing?: Record<string, string>;
@@ -44,6 +47,7 @@ interface Theme {
44
47
  easing?: Record<string, string>;
45
48
  media?: Record<string, string>;
46
49
  supports?: Record<string, string>;
50
+ containers?: Record<string, string>;
47
51
  animation?: ThemeAnimation;
48
52
  gridAutoColumn?: Record<string, string>;
49
53
  gridAutoRow?: Record<string, string>;
@@ -59,4 +63,4 @@ interface Theme {
59
63
  preflightBase?: Record<string, string | number>;
60
64
  }
61
65
 
62
- export { Theme as T, ThemeAnimation as a };
66
+ export { Colors as C, Theme as T, ThemeAnimation as a };
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, Rule } from '@unocss/core';
2
- import { T as Theme } from './types-486d85a1.js';
2
+ import { T as Theme } from './types-3bfb4dc5.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
package/dist/utils.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./shared/preset-mini.b1936363.cjs');
6
- const variants = require('./shared/preset-mini.14f57094.cjs');
6
+ const variants = require('./shared/preset-mini.fbe02827.cjs');
7
7
  require('@unocss/core');
8
8
 
9
9
 
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-c2105bec.js';
4
- import './types-486d85a1.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-10273596.js';
4
+ import './types-3bfb4dc5.js';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
@@ -77,7 +77,7 @@ declare const h: _unocss_core.ValueHandler<"number" | "global" | "auto" | "posit
77
77
 
78
78
  declare const variantMatcher: (name: string, handler: (input: VariantHandlerContext) => Record<string, any>) => VariantObject;
79
79
  declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
80
- declare const variantGetBracket: (name: string, matcher: string, separators: string[]) => string[] | undefined;
81
- declare const variantGetParameter: (name: string, matcher: string, separators: string[]) => string[] | undefined;
80
+ declare const variantGetBracket: (prefix: string, matcher: string, separators: string[]) => string[] | undefined;
81
+ declare const variantGetParameter: (prefix: string, matcher: string, separators: string[]) => string[] | undefined;
82
82
 
83
83
  export { colorOpacityToString, colorToString, cornerMap, directionMap, globalKeywords, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher, xyzMap };
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, s as getComponent, y as getComponents, g as globalKeywords, v as h, h as handler, a as hasParseableColor, t as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, u as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, w as valueHandlers, x as xyzMap } from './shared/preset-mini.690517b1.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.810922e5.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.74d943b2.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const _default = require('./shared/preset-mini.134e02be.cjs');
5
+ const _default = require('./shared/preset-mini.c106b68c.cjs');
6
6
  require('./shared/preset-mini.b1936363.cjs');
7
7
  require('@unocss/core');
8
- require('./shared/preset-mini.14f57094.cjs');
8
+ require('./shared/preset-mini.fbe02827.cjs');
9
9
 
10
10
 
11
11
 
@@ -15,6 +15,7 @@ exports.variantAria = _default.variantAria;
15
15
  exports.variantBreakpoints = _default.variantBreakpoints;
16
16
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
17
17
  exports.variantCombinators = _default.variantCombinators;
18
+ exports.variantContainerQuery = _default.variantContainerQuery;
18
19
  exports.variantCssLayer = _default.variantCssLayer;
19
20
  exports.variantCustomMedia = _default.variantCustomMedia;
20
21
  exports.variantDataAttribute = _default.variantDataAttribute;
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
- import { T as Theme } from './types-486d85a1.js';
2
+ import { T as Theme } from './types-3bfb4dc5.js';
3
3
  import { PresetMiniOptions } from './index.js';
4
- import './colors-09429298.js';
5
- import './default-d1eb2175.js';
6
- import './utilities-c2105bec.js';
4
+ import './colors-884ab3c4.js';
5
+ import './default-21cad915.js';
6
+ import './utilities-10273596.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -12,6 +12,8 @@ declare const variantBreakpoints: Variant<Theme>;
12
12
 
13
13
  declare const variantCombinators: Variant[];
14
14
 
15
+ declare const variantContainerQuery: VariantObject;
16
+
15
17
  declare const variantDataAttribute: VariantObject;
16
18
 
17
19
  declare const variantPrint: Variant;
@@ -40,4 +42,4 @@ declare const variantImportant: Variant;
40
42
 
41
43
  declare const variantNegative: Variant;
42
44
 
43
- export { calcMaxWidthBySize, partClasses, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
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, s as partClasses, a as variantAria, b as variantBreakpoints, i as variantColorsMediaOrClass, d as variantCombinators, l as variantCssLayer, g as variantCustomMedia, e as variantDataAttribute, t as variantImportant, m as variantInternalLayer, j as variantLanguageDirections, u as variantNegative, f as variantPrint, q as variantPseudoClassFunctions, p as variantPseudoClassesAndElements, n as variantScope, k as variantSelector, h as variantSupports, r as variantTaggedPseudoClasses, o as variantVariables, v as variants } from './shared/preset-mini.a626625a.mjs';
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.fef10425.mjs';
2
2
  import './shared/preset-mini.690517b1.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.810922e5.mjs';
4
+ import './shared/preset-mini.74d943b2.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.46.2",
3
+ "version": "0.46.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.46.2"
64
+ "@unocss/core": "0.46.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",