@unocss/preset-mini 0.54.1 → 0.54.3

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
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
6
6
  const core = require('@unocss/core');
7
- require('./shared/preset-mini.78d4899a.cjs');
8
- const _default$1 = require('./shared/preset-mini.345a6f11.cjs');
7
+ require('./shared/preset-mini.ce5169f2.cjs');
8
+ const _default$1 = require('./shared/preset-mini.b8d9397e.cjs');
9
9
  const colors$1 = require('./shared/preset-mini.a21c5071.cjs');
10
10
  const colors = require('./shared/preset-mini.f3fc54d2.cjs');
11
- const _default = require('./shared/preset-mini.b22ca5de.cjs');
11
+ const _default = require('./shared/preset-mini.e078d7da.cjs');
12
12
  const _default$2 = require('./shared/preset-mini.9d93761b.cjs');
13
13
  require('./shared/preset-mini.d778b487.cjs');
14
14
 
@@ -25,6 +25,17 @@ const preflights = [
25
25
  }
26
26
  ];
27
27
 
28
+ const shorthands = {
29
+ position: [
30
+ "relative",
31
+ "absolute",
32
+ "fixed",
33
+ "sticky",
34
+ "static"
35
+ ],
36
+ globalKeyword: colors$1.globalKeywords
37
+ };
38
+
28
39
  function presetMini(options = {}) {
29
40
  options.dark = options.dark ?? "class";
30
41
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -39,7 +50,10 @@ function presetMini(options = {}) {
39
50
  prefix: options.prefix,
40
51
  postprocess: VarPrefixPostprocessor(options.variablePrefix),
41
52
  preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
42
- extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants.extractorArbitraryVariants
53
+ extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants.extractorArbitraryVariants,
54
+ autocomplete: {
55
+ shorthands
56
+ }
43
57
  };
44
58
  }
45
59
  function VarPrefixPostprocessor(prefix) {
package/dist/index.mjs CHANGED
@@ -1,11 +1,12 @@
1
1
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
2
2
  import { entriesToCss, toArray } from '@unocss/core';
3
- import './shared/preset-mini.830250eb.mjs';
4
- import { r as rules } from './shared/preset-mini.31fe3ff4.mjs';
3
+ import './shared/preset-mini.811eb23d.mjs';
4
+ import { r as rules } from './shared/preset-mini.8dd73081.mjs';
5
+ import { g as globalKeywords } from './shared/preset-mini.6c1c8016.mjs';
5
6
  export { p as parseColor } from './shared/preset-mini.6c1c8016.mjs';
6
7
  export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
7
- import { t as theme } from './shared/preset-mini.e7d18afd.mjs';
8
- export { t as theme } from './shared/preset-mini.e7d18afd.mjs';
8
+ import { t as theme } from './shared/preset-mini.de3bd9f7.mjs';
9
+ export { t as theme } from './shared/preset-mini.de3bd9f7.mjs';
9
10
  import { v as variants } from './shared/preset-mini.0131b915.mjs';
10
11
  import './shared/preset-mini.74f9d55e.mjs';
11
12
 
@@ -22,6 +23,17 @@ const preflights = [
22
23
  }
23
24
  ];
24
25
 
26
+ const shorthands = {
27
+ position: [
28
+ "relative",
29
+ "absolute",
30
+ "fixed",
31
+ "sticky",
32
+ "static"
33
+ ],
34
+ globalKeyword: globalKeywords
35
+ };
36
+
25
37
  function presetMini(options = {}) {
26
38
  options.dark = options.dark ?? "class";
27
39
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -36,7 +48,10 @@ function presetMini(options = {}) {
36
48
  prefix: options.prefix,
37
49
  postprocess: VarPrefixPostprocessor(options.variablePrefix),
38
50
  preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
39
- extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants
51
+ extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants,
52
+ autocomplete: {
53
+ shorthands
54
+ }
40
55
  };
41
56
  }
42
57
  function VarPrefixPostprocessor(prefix) {
package/dist/rules.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const transform = require('./shared/preset-mini.78d4899a.cjs');
6
- const _default = require('./shared/preset-mini.345a6f11.cjs');
5
+ const transform = require('./shared/preset-mini.ce5169f2.cjs');
6
+ const _default = require('./shared/preset-mini.b8d9397e.cjs');
7
7
  require('./shared/preset-mini.a21c5071.cjs');
8
8
  require('@unocss/core');
9
9
 
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E as alignments, B as appearance, q as appearances, b as bgColors, T as borderStyles, a as borders, m as boxShadows, R as boxShadowsBase, K as boxSizing, y as breaks, c as colorScheme, O as contains, e as contentVisibility, f as contents, n as cursors, d as displays, G as flexGridJustifiesAlignments, I as floats, l as fontSmoothings, k as fontStyles, U as handlerBorderStyle, H as insets, D as justifies, o as opacity, C as orders, A as outline, z as overflows, F as placements, s as pointerEvents, p as positions, u as resizes, S as ringBase, r as rings, i as textAligns, j as textColors, g as textDecorations, t as textOverflows, h as textTransforms, P as textWraps, Q as transformBase, M as transforms, L as transitions, w as userSelects, V as varEmpty, v as verticalAligns, x as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.830250eb.mjs';
2
- export { b as aspectRatio, c as containerParent, l as cssProperty, k as cssVariables, f as flex, e as fonts, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as tabSizes, h as textIndents, j as textShadows, i as textStrokes } from './shared/preset-mini.31fe3ff4.mjs';
1
+ export { E as alignments, B as appearance, q as appearances, b as bgColors, T as borderStyles, a as borders, m as boxShadows, R as boxShadowsBase, K as boxSizing, y as breaks, c as colorScheme, O as contains, e as contentVisibility, f as contents, n as cursors, d as displays, G as flexGridJustifiesAlignments, I as floats, l as fontSmoothings, k as fontStyles, U as handlerBorderStyle, H as insets, D as justifies, o as opacity, C as orders, A as outline, z as overflows, F as placements, s as pointerEvents, p as positions, u as resizes, S as ringBase, r as rings, i as textAligns, j as textColors, g as textDecorations, t as textOverflows, h as textTransforms, P as textWraps, Q as transformBase, M as transforms, L as transitions, w as userSelects, V as varEmpty, v as verticalAligns, x as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.811eb23d.mjs';
2
+ export { b as aspectRatio, c as containerParent, l as cssProperty, k as cssVariables, f as flex, e as fonts, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as tabSizes, h as textIndents, j as textShadows, i as textStrokes } from './shared/preset-mini.8dd73081.mjs';
3
3
  import './shared/preset-mini.6c1c8016.mjs';
4
4
  import '@unocss/core';
@@ -242,7 +242,13 @@ const overflows = [
242
242
  ];
243
243
 
244
244
  const positions = [
245
- [/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/, ([, v]) => ({ position: v })],
245
+ [/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/, ([, v]) => ({ position: v }), {
246
+ autocomplete: [
247
+ "(position|pos)-<position>",
248
+ "(position|pos)-<globalKeyword>",
249
+ "<position>"
250
+ ]
251
+ }],
246
252
  [/^(?:position-|pos-)([-\w]+)$/, ([, v]) => globalKeywords.includes(v) ? { position: v } : void 0],
247
253
  [/^(?:position-|pos-)?(static)$/, ([, v]) => ({ position: v })]
248
254
  ];
@@ -1,4 +1,4 @@
1
- import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents, t as textOverflows, g as textDecorations, h as textTransforms, i as textAligns, j as textColors, k as fontStyles, l as fontSmoothings, m as boxShadows, r as rings, p as positions, n as cursors, q as appearances, s as pointerEvents, u as resizes, v as verticalAligns, w as userSelects, x as whitespaces, y as breaks, z as overflows, A as outline, B as appearance, C as orders, D as justifies, E as alignments, F as placements, G as flexGridJustifiesAlignments, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains, P as textWraps } from './preset-mini.830250eb.mjs';
1
+ import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents, t as textOverflows, g as textDecorations, h as textTransforms, i as textAligns, j as textColors, k as fontStyles, l as fontSmoothings, m as boxShadows, r as rings, p as positions, n as cursors, q as appearances, s as pointerEvents, u as resizes, v as verticalAligns, w as userSelects, x as whitespaces, y as breaks, z as overflows, A as outline, B as appearance, C as orders, D as justifies, E as alignments, F as placements, G as flexGridJustifiesAlignments, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains, P as textWraps } from './preset-mini.811eb23d.mjs';
2
2
  import { h, s as splitShorthand, c as colorResolver, j as colorableShadows, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.6c1c8016.mjs';
3
3
  import { warnOnce, toArray } from '@unocss/core';
4
4
 
@@ -61,7 +61,7 @@ const fonts = [
61
61
  },
62
62
  { autocomplete: "text-$fontSize" }
63
63
  ],
64
- [/^text-size-(.+)$/, ([, s], { theme }) => {
64
+ [/^(?:text|font)-size-(.+)$/, ([, s], { theme }) => {
65
65
  const themed = toArray(theme.fontSize?.[s]);
66
66
  const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
67
67
  if (size != null)
@@ -237,7 +237,9 @@ const sizes = [
237
237
  "(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
238
238
  "(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
239
239
  "(max|min)-(w|h|block|inline)",
240
- "(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"
240
+ "(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
241
+ "(w|h)-full",
242
+ "(max|min)-(w|h)-full"
241
243
  ]
242
244
  }],
243
245
  [/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: resolveVerticalBreakpoints(context)?.[s] })],
@@ -307,11 +309,43 @@ const cssVariables = [
307
309
  }]
308
310
  ];
309
311
  const cssProperty = [
310
- [/^\[(--(\w|\\\W)+|[\w-]+):(("[^\s"]+?"|'[^\s']+?'|`[^\s`]+?`|[^\s:'"`;{}]+?)+)\]$/, ([match, prop, , value]) => {
311
- if (!isURI(match.slice(1, -1)))
312
- return { [prop]: h.bracket(`[${value}]`) };
312
+ [/^\[(.*)\]$/, ([_, body]) => {
313
+ if (!body.includes(":"))
314
+ return;
315
+ const [prop, ...rest] = body.split(":");
316
+ const value = rest.join(":");
317
+ if (!isURI(body) && prop.match(/^[a-z-]+$/) && isValidCSSBody(value)) {
318
+ const parsed = h.bracket(`[${value}]`);
319
+ if (parsed)
320
+ return { [prop]: parsed };
321
+ }
313
322
  }]
314
323
  ];
324
+ function isValidCSSBody(body) {
325
+ let i = 0;
326
+ function findUntil(c) {
327
+ while (i < body.length) {
328
+ i += 1;
329
+ const char = body[i];
330
+ if (char === c)
331
+ return true;
332
+ }
333
+ return false;
334
+ }
335
+ for (i = 0; i < body.length; i++) {
336
+ const c = body[i];
337
+ if ("\"`'".includes(c)) {
338
+ if (!findUntil(c))
339
+ return false;
340
+ } else if (c === "(") {
341
+ if (!findUntil(")"))
342
+ return false;
343
+ } else if ("[]{}:".includes(c)) {
344
+ return false;
345
+ }
346
+ }
347
+ return true;
348
+ }
315
349
  function isURI(declaration) {
316
350
  if (!declaration.includes("://"))
317
351
  return false;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.78d4899a.cjs');
3
+ const transform = require('./preset-mini.ce5169f2.cjs');
4
4
  const colors = require('./preset-mini.a21c5071.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
@@ -63,7 +63,7 @@ const fonts = [
63
63
  },
64
64
  { autocomplete: "text-$fontSize" }
65
65
  ],
66
- [/^text-size-(.+)$/, ([, s], { theme }) => {
66
+ [/^(?:text|font)-size-(.+)$/, ([, s], { theme }) => {
67
67
  const themed = core.toArray(theme.fontSize?.[s]);
68
68
  const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
69
69
  if (size != null)
@@ -239,7 +239,9 @@ const sizes = [
239
239
  "(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
240
240
  "(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
241
241
  "(max|min)-(w|h|block|inline)",
242
- "(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"
242
+ "(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize",
243
+ "(w|h)-full",
244
+ "(max|min)-(w|h)-full"
243
245
  ]
244
246
  }],
245
247
  [/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/, ([, m, w, s], context) => ({ [getPropName(m, w)]: colors.resolveVerticalBreakpoints(context)?.[s] })],
@@ -309,11 +311,43 @@ const cssVariables = [
309
311
  }]
310
312
  ];
311
313
  const cssProperty = [
312
- [/^\[(--(\w|\\\W)+|[\w-]+):(("[^\s"]+?"|'[^\s']+?'|`[^\s`]+?`|[^\s:'"`;{}]+?)+)\]$/, ([match, prop, , value]) => {
313
- if (!isURI(match.slice(1, -1)))
314
- return { [prop]: colors.h.bracket(`[${value}]`) };
314
+ [/^\[(.*)\]$/, ([_, body]) => {
315
+ if (!body.includes(":"))
316
+ return;
317
+ const [prop, ...rest] = body.split(":");
318
+ const value = rest.join(":");
319
+ if (!isURI(body) && prop.match(/^[a-z-]+$/) && isValidCSSBody(value)) {
320
+ const parsed = colors.h.bracket(`[${value}]`);
321
+ if (parsed)
322
+ return { [prop]: parsed };
323
+ }
315
324
  }]
316
325
  ];
326
+ function isValidCSSBody(body) {
327
+ let i = 0;
328
+ function findUntil(c) {
329
+ while (i < body.length) {
330
+ i += 1;
331
+ const char = body[i];
332
+ if (char === c)
333
+ return true;
334
+ }
335
+ return false;
336
+ }
337
+ for (i = 0; i < body.length; i++) {
338
+ const c = body[i];
339
+ if ("\"`'".includes(c)) {
340
+ if (!findUntil(c))
341
+ return false;
342
+ } else if (c === "(") {
343
+ if (!findUntil(")"))
344
+ return false;
345
+ } else if ("[]{}:".includes(c)) {
346
+ return false;
347
+ }
348
+ }
349
+ return true;
350
+ }
317
351
  function isURI(declaration) {
318
352
  if (!declaration.includes("://"))
319
353
  return false;
@@ -244,7 +244,13 @@ const overflows = [
244
244
  ];
245
245
 
246
246
  const positions = [
247
- [/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/, ([, v]) => ({ position: v })],
247
+ [/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/, ([, v]) => ({ position: v }), {
248
+ autocomplete: [
249
+ "(position|pos)-<position>",
250
+ "(position|pos)-<globalKeyword>",
251
+ "<position>"
252
+ ]
253
+ }],
248
254
  [/^(?:position-|pos-)([-\w]+)$/, ([, v]) => colors.globalKeywords.includes(v) ? { position: v } : void 0],
249
255
  [/^(?:position-|pos-)?(static)$/, ([, v]) => ({ position: v })]
250
256
  ];
@@ -1,5 +1,5 @@
1
1
  import { c as colors } from './preset-mini.1c66bf79.mjs';
2
- import { Q as transformBase, R as boxShadowsBase, S as ringBase } from './preset-mini.830250eb.mjs';
2
+ import { Q as transformBase, R as boxShadowsBase, S as ringBase } from './preset-mini.811eb23d.mjs';
3
3
  import '@unocss/core';
4
4
  import './preset-mini.6c1c8016.mjs';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.f3fc54d2.cjs');
4
- const transform = require('./preset-mini.78d4899a.cjs');
4
+ const transform = require('./preset-mini.ce5169f2.cjs');
5
5
  require('@unocss/core');
6
6
  require('./preset-mini.a21c5071.cjs');
7
7
 
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.f3fc54d2.cjs');
6
- const _default = require('./shared/preset-mini.b22ca5de.cjs');
7
- require('./shared/preset-mini.78d4899a.cjs');
6
+ const _default = require('./shared/preset-mini.e078d7da.cjs');
7
+ require('./shared/preset-mini.ce5169f2.cjs');
8
8
  require('./shared/preset-mini.a21c5071.cjs');
9
9
  require('@unocss/core');
10
10
 
package/dist/theme.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
2
- export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, B as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, z as height, h as letterSpacing, l as lineHeight, k as lineWidth, A as maxHeight, y as maxWidth, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing } from './shared/preset-mini.e7d18afd.mjs';
3
- import './shared/preset-mini.830250eb.mjs';
2
+ export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, B as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, z as height, h as letterSpacing, l as lineHeight, k as lineWidth, A as maxHeight, y as maxWidth, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing } from './shared/preset-mini.de3bd9f7.mjs';
3
+ import './shared/preset-mini.811eb23d.mjs';
4
4
  import './shared/preset-mini.6c1c8016.mjs';
5
5
  import '@unocss/core';
package/dist/utils.d.ts CHANGED
@@ -72,8 +72,8 @@ declare namespace handlers {
72
72
  };
73
73
  }
74
74
 
75
- declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
76
- declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
75
+ declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
76
+ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
77
77
 
78
78
  declare function variantMatcher(name: string, handler: (input: VariantHandlerContext) => Record<string, any>): VariantObject;
79
79
  declare function variantParentMatcher(name: string, parent: string): VariantObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.54.1",
3
+ "version": "0.54.3",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -22,33 +22,33 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "require": "./dist/index.cjs",
26
- "import": "./dist/index.mjs"
25
+ "import": "./dist/index.mjs",
26
+ "require": "./dist/index.cjs"
27
27
  },
28
28
  "./theme": {
29
29
  "types": "./dist/theme.d.ts",
30
- "require": "./dist/theme.cjs",
31
- "import": "./dist/theme.mjs"
30
+ "import": "./dist/theme.mjs",
31
+ "require": "./dist/theme.cjs"
32
32
  },
33
33
  "./variants": {
34
34
  "types": "./dist/variants.d.ts",
35
- "require": "./dist/variants.cjs",
36
- "import": "./dist/variants.mjs"
35
+ "import": "./dist/variants.mjs",
36
+ "require": "./dist/variants.cjs"
37
37
  },
38
38
  "./rules": {
39
39
  "types": "./dist/rules.d.ts",
40
- "require": "./dist/rules.cjs",
41
- "import": "./dist/rules.mjs"
40
+ "import": "./dist/rules.mjs",
41
+ "require": "./dist/rules.cjs"
42
42
  },
43
43
  "./colors": {
44
44
  "types": "./dist/colors.d.ts",
45
- "require": "./dist/colors.cjs",
46
- "import": "./dist/colors.mjs"
45
+ "import": "./dist/colors.mjs",
46
+ "require": "./dist/colors.cjs"
47
47
  },
48
48
  "./utils": {
49
49
  "types": "./dist/utils.d.ts",
50
- "require": "./dist/utils.cjs",
51
- "import": "./dist/utils.mjs"
50
+ "import": "./dist/utils.mjs",
51
+ "require": "./dist/utils.cjs"
52
52
  },
53
53
  "./*": "./*"
54
54
  },
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.54.1",
65
- "@unocss/extractor-arbitrary-variants": "0.54.1"
64
+ "@unocss/core": "0.54.3",
65
+ "@unocss/extractor-arbitrary-variants": "0.54.3"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",