@unocss/preset-mini 0.53.3 → 0.53.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -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.db8ecde7.cjs');
8
- const _default$1 = require('./shared/preset-mini.f4e50e04.cjs');
7
+ require('./shared/preset-mini.ee3178c9.cjs');
8
+ const _default$1 = require('./shared/preset-mini.ca73a5f0.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.0ea9a044.cjs');
11
+ const _default = require('./shared/preset-mini.ca82e1e9.cjs');
12
12
  const _default$2 = require('./shared/preset-mini.3567e469.cjs');
13
13
  require('./shared/preset-mini.d778b487.cjs');
14
14
 
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ interface PresetMiniOptions extends PresetOptions {
33
33
  *
34
34
  * @default false
35
35
  */
36
- attributifyPseudo?: Boolean;
36
+ attributifyPseudo?: boolean;
37
37
  /**
38
38
  * Prefix for CSS variables.
39
39
  *
@@ -64,6 +64,6 @@ interface PresetMiniOptions extends PresetOptions {
64
64
  declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
65
65
 
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
- declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<{}>[];
67
+ declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
69
  export { DarkModeSelectors, PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
2
2
  import { entriesToCss, toArray } from '@unocss/core';
3
- import './shared/preset-mini.17fe8f10.mjs';
4
- import { r as rules } from './shared/preset-mini.354bed23.mjs';
3
+ import './shared/preset-mini.922dda3d.mjs';
4
+ import { r as rules } from './shared/preset-mini.95617a64.mjs';
5
5
  export { p as parseColor } from './shared/preset-mini.6c244f7e.mjs';
6
6
  export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
7
- import { t as theme } from './shared/preset-mini.438da325.mjs';
8
- export { t as theme } from './shared/preset-mini.438da325.mjs';
7
+ import { t as theme } from './shared/preset-mini.1c162eeb.mjs';
8
+ export { t as theme } from './shared/preset-mini.1c162eeb.mjs';
9
9
  import { v as variants } from './shared/preset-mini.407f1930.mjs';
10
10
  import './shared/preset-mini.9af3cc95.mjs';
11
11
 
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.db8ecde7.cjs');
6
- const _default = require('./shared/preset-mini.f4e50e04.cjs');
5
+ const transform = require('./shared/preset-mini.ee3178c9.cjs');
6
+ const _default = require('./shared/preset-mini.ca73a5f0.cjs');
7
7
  require('./shared/preset-mini.a21c5071.cjs');
8
8
  require('@unocss/core');
9
9
 
@@ -19,6 +19,7 @@ exports.boxShadows = transform.boxShadows;
19
19
  exports.boxShadowsBase = transform.boxShadowsBase;
20
20
  exports.boxSizing = transform.boxSizing;
21
21
  exports.breaks = transform.breaks;
22
+ exports.colorScheme = transform.colorScheme;
22
23
  exports.contains = transform.contains;
23
24
  exports.contentVisibility = transform.contentVisibility;
24
25
  exports.contents = transform.contents;
package/dist/rules.d.ts CHANGED
@@ -21,6 +21,7 @@ declare const opacity: Rule[];
21
21
  */
22
22
  declare const textColors: Rule[];
23
23
  declare const bgColors: Rule[];
24
+ declare const colorScheme: Rule[];
24
25
 
25
26
  declare const containerParent: Rule[];
26
27
 
@@ -129,4 +130,4 @@ declare const textShadows: Rule<Theme>[];
129
130
  declare const cssVariables: Rule[];
130
131
  declare const cssProperty: Rule[];
131
132
 
132
- export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, flexGridJustifiesAlignments, 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, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
133
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, colorScheme, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, flexGridJustifiesAlignments, 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, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { I as alignments, F as appearance, w as appearances, b as bgColors, X as borderStyles, a as borders, r as boxShadows, V as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, Y as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, W as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as textWraps, U as transformBase, Q as transforms, P as transitions, A as userSelects, Z as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.17fe8f10.mjs';
2
- export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.354bed23.mjs';
1
+ export { J as alignments, G as appearance, x as appearances, b as bgColors, Y as borderStyles, a as borders, s as boxShadows, W as boxShadowsBase, P as boxSizing, D as breaks, c as colorScheme, T as contains, e as contentVisibility, f as contents, w as cursors, d as displays, L as flexGridJustifiesAlignments, N as floats, r as fontSmoothings, q as fontStyles, g as fonts, Z as handlerBorderStyle, M as insets, I as justifies, o as opacity, H as orders, F as outline, E as overflows, K as placements, y as pointerEvents, v as positions, z as resizes, X as ringBase, u as rings, t as tabSizes, n as textAligns, p as textColors, j as textDecorations, h as textIndents, i as textOverflows, l as textShadows, k as textStrokes, m as textTransforms, U as textWraps, V as transformBase, R as transforms, Q as transitions, B as userSelects, _ as varEmpty, A as verticalAligns, C as whitespaces, S as willChange, O as zIndexes } from './shared/preset-mini.922dda3d.mjs';
2
+ export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.95617a64.mjs';
3
3
  import './shared/preset-mini.6c244f7e.mjs';
4
4
  import '@unocss/core';
@@ -1,5 +1,5 @@
1
1
  import { c as colors } from './preset-mini.1c66bf79.mjs';
2
- import { U as transformBase, V as boxShadowsBase, W as ringBase } from './preset-mini.17fe8f10.mjs';
2
+ import { V as transformBase, W as boxShadowsBase, X as ringBase } from './preset-mini.922dda3d.mjs';
3
3
  import '@unocss/core';
4
4
  import './preset-mini.6c244f7e.mjs';
5
5
 
@@ -154,6 +154,9 @@ const bgColors = [
154
154
  [/^bg-(.+)$/, colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
155
155
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
156
156
  ];
157
+ const colorScheme = [
158
+ [/^color-scheme-(\w+)$/, ([, v]) => ({ "color-scheme": v })]
159
+ ];
157
160
 
158
161
  const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...globalKeywords];
159
162
  const textDecorations = [
@@ -780,4 +783,4 @@ function handleSkew([, d, b]) {
780
783
  }
781
784
  }
782
785
 
783
- export { userSelects as A, whitespaces as B, breaks as C, overflows as D, outline as E, appearance as F, orders as G, justifies as H, alignments as I, placements as J, flexGridJustifiesAlignments as K, insets as L, floats as M, zIndexes as N, boxSizing as O, transitions as P, transforms as Q, willChange as R, contains as S, textWraps as T, transformBase as U, boxShadowsBase as V, ringBase as W, borderStyles as X, handlerBorderStyle as Y, varEmpty as Z, borders as a, bgColors as b, contentVisibility as c, displays as d, contents as e, fonts as f, textIndents as g, textOverflows as h, textDecorations as i, textStrokes as j, textShadows as k, textTransforms as l, textAligns as m, textColors as n, opacity as o, fontStyles as p, fontSmoothings as q, boxShadows as r, rings as s, tabSizes as t, positions as u, cursors as v, appearances as w, pointerEvents as x, resizes as y, verticalAligns as z };
786
+ export { verticalAligns as A, userSelects as B, whitespaces as C, breaks as D, overflows as E, outline as F, appearance as G, orders as H, justifies as I, alignments as J, placements as K, flexGridJustifiesAlignments as L, insets as M, floats as N, zIndexes as O, boxSizing as P, transitions as Q, transforms as R, willChange as S, contains as T, textWraps as U, transformBase as V, boxShadowsBase as W, ringBase as X, borderStyles as Y, handlerBorderStyle as Z, varEmpty as _, borders as a, bgColors as b, colorScheme as c, displays as d, contentVisibility as e, contents as f, fonts as g, textIndents as h, textOverflows as i, textDecorations as j, textStrokes as k, textShadows as l, textTransforms as m, textAligns as n, opacity as o, textColors as p, fontStyles as q, fontSmoothings as r, boxShadows as s, tabSizes as t, rings as u, positions as v, cursors as w, appearances as x, pointerEvents as y, resizes as z };
@@ -1,4 +1,4 @@
1
- import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains, T as textWraps } from './preset-mini.17fe8f10.mjs';
1
+ import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents, g as fonts, t as tabSizes, h as textIndents, i as textOverflows, j as textDecorations, k as textStrokes, l as textShadows, m as textTransforms, n as textAligns, p as textColors, q as fontStyles, r as fontSmoothings, s as boxShadows, u as rings, v as positions, w as cursors, x as appearances, y as pointerEvents, z as resizes, A as verticalAligns, B as userSelects, C as whitespaces, D as breaks, E as overflows, F as outline, G as appearance, H as orders, I as justifies, J as alignments, K as placements, L as flexGridJustifiesAlignments, M as insets, N as floats, O as zIndexes, P as boxSizing, Q as transitions, R as transforms, S as willChange, T as contains, U as textWraps } from './preset-mini.922dda3d.mjs';
2
2
  import { h, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.6c244f7e.mjs';
3
3
  import { warnOnce } from '@unocss/core';
4
4
 
@@ -257,6 +257,7 @@ const rules = [
257
257
  displays,
258
258
  opacity,
259
259
  bgColors,
260
+ colorScheme,
260
261
  svgUtilities,
261
262
  borders,
262
263
  contentVisibility,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.db8ecde7.cjs');
3
+ const transform = require('./preset-mini.ee3178c9.cjs');
4
4
  const colors = require('./preset-mini.a21c5071.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
@@ -259,6 +259,7 @@ const rules = [
259
259
  transform.displays,
260
260
  transform.opacity,
261
261
  transform.bgColors,
262
+ transform.colorScheme,
262
263
  svgUtilities,
263
264
  transform.borders,
264
265
  transform.contentVisibility,
@@ -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.db8ecde7.cjs');
4
+ const transform = require('./preset-mini.ee3178c9.cjs');
5
5
  require('@unocss/core');
6
6
  require('./preset-mini.a21c5071.cjs');
7
7
 
@@ -156,6 +156,9 @@ const bgColors = [
156
156
  [/^bg-(.+)$/, colors.colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
157
157
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
158
158
  ];
159
+ const colorScheme = [
160
+ [/^color-scheme-(\w+)$/, ([, v]) => ({ "color-scheme": v })]
161
+ ];
159
162
 
160
163
  const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...colors.globalKeywords];
161
164
  const textDecorations = [
@@ -792,6 +795,7 @@ exports.boxShadows = boxShadows;
792
795
  exports.boxShadowsBase = boxShadowsBase;
793
796
  exports.boxSizing = boxSizing;
794
797
  exports.breaks = breaks;
798
+ exports.colorScheme = colorScheme;
795
799
  exports.contains = contains;
796
800
  exports.contentVisibility = contentVisibility;
797
801
  exports.contents = contents;
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.0ea9a044.cjs');
7
- require('./shared/preset-mini.db8ecde7.cjs');
6
+ const _default = require('./shared/preset-mini.ca82e1e9.cjs');
7
+ require('./shared/preset-mini.ee3178c9.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 { 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.438da325.mjs';
3
- import './shared/preset-mini.17fe8f10.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.1c162eeb.mjs';
3
+ import './shared/preset-mini.922dda3d.mjs';
4
4
  import './shared/preset-mini.6c244f7e.mjs';
5
5
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.53.3",
3
+ "version": "0.53.5",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.53.3",
65
- "@unocss/extractor-arbitrary-variants": "0.53.3"
64
+ "@unocss/core": "0.53.5",
65
+ "@unocss/extractor-arbitrary-variants": "0.53.5"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",