@unocss/preset-mini 0.57.7 → 0.58.1
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/colors.d.cts +1 -1
- package/dist/colors.d.mts +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +7 -7
- package/dist/rules.cjs +50 -972
- package/dist/rules.d.cts +2 -6
- package/dist/rules.d.mts +2 -6
- package/dist/rules.d.ts +2 -6
- package/dist/rules.mjs +5 -931
- package/dist/shared/{preset-mini.MACvs-wn.cjs → preset-mini.-3Qybdh5.cjs} +49 -39
- package/dist/shared/{preset-mini.Stl9mkMB.mjs → preset-mini.0CcynBZx.mjs} +45 -26
- package/dist/shared/{preset-mini.dPVVIvNm.mjs → preset-mini.0UJFjS_1.mjs} +16 -6
- package/dist/shared/{preset-mini.XmVozI6N.d.mts → preset-mini.20fUBpHS.d.cts} +4 -3
- package/dist/shared/{preset-mini.QW22c5Df.d.ts → preset-mini.8w2rXvMk.d.ts} +4 -3
- package/dist/shared/preset-mini.AVP8I7_j.mjs +747 -0
- package/dist/shared/preset-mini.ORVb5Lu8.mjs +978 -0
- package/dist/shared/{preset-mini.ImRm63ih.cjs → preset-mini.UhMMbd34.cjs} +44 -26
- package/dist/shared/{preset-mini.4DxDu2I8.d.mts → preset-mini.YxT4AwuI.d.cts} +1 -1
- package/dist/shared/preset-mini.fgwIVvur.cjs +322 -0
- package/dist/shared/preset-mini.g6cWGZM2.cjs +1021 -0
- package/dist/shared/{preset-mini.5daNC9yh.d.ts → preset-mini.gVNz4b9u.d.ts} +1 -1
- package/dist/shared/{preset-mini.7XoWRZIl.d.mts → preset-mini.hpPpX7ws.d.cts} +1 -1
- package/dist/shared/{preset-mini.7XoWRZIl.d.ts → preset-mini.hpPpX7ws.d.mts} +1 -1
- package/dist/shared/{preset-mini.7XoWRZIl.d.cts → preset-mini.hpPpX7ws.d.ts} +1 -1
- package/dist/shared/preset-mini.jXC5Sr98.cjs +772 -0
- package/dist/shared/{preset-mini.Jpc0QYPj.d.cts → preset-mini.nzD7Hw_0.d.mts} +4 -3
- package/dist/shared/{preset-mini.5-XKlNyK.d.cts → preset-mini.vMrmsD3H.d.mts} +1 -1
- package/dist/shared/preset-mini.zC_vZg74.mjs +291 -0
- package/dist/theme.cjs +34 -318
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.d.ts +3 -3
- package/dist/theme.mjs +5 -293
- package/dist/utils.cjs +23 -23
- package/dist/utils.d.cts +4 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +31 -739
- package/dist/variants.d.cts +5 -5
- package/dist/variants.d.mts +5 -5
- package/dist/variants.d.ts +5 -5
- package/dist/variants.mjs +4 -716
- package/package.json +4 -4
package/dist/colors.d.cts
CHANGED
package/dist/colors.d.mts
CHANGED
package/dist/colors.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const utilities = require('./shared/preset-mini.UhMMbd34.cjs');
|
|
8
|
+
const _default = require('./shared/preset-mini.fgwIVvur.cjs');
|
|
9
|
+
const _default$1 = require('./shared/preset-mini.g6cWGZM2.cjs');
|
|
10
|
+
const _default$2 = require('./shared/preset-mini.jXC5Sr98.cjs');
|
|
11
11
|
const colors = require('./colors.cjs');
|
|
12
12
|
require('@unocss/rule-utils');
|
|
13
|
-
require('./shared/preset-mini.
|
|
13
|
+
require('./shared/preset-mini.-3Qybdh5.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
|
16
16
|
{
|
|
@@ -33,7 +33,7 @@ const shorthands = {
|
|
|
33
33
|
"sticky",
|
|
34
34
|
"static"
|
|
35
35
|
],
|
|
36
|
-
globalKeyword:
|
|
36
|
+
globalKeyword: utilities.globalKeywords
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const presetMini = core.definePreset((options = {}) => {
|
|
@@ -43,9 +43,9 @@ const presetMini = core.definePreset((options = {}) => {
|
|
|
43
43
|
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
44
44
|
return {
|
|
45
45
|
name: "@unocss/preset-mini",
|
|
46
|
-
theme:
|
|
47
|
-
rules:
|
|
48
|
-
variants:
|
|
46
|
+
theme: _default.theme,
|
|
47
|
+
rules: _default$1.rules,
|
|
48
|
+
variants: _default$2.variants(options),
|
|
49
49
|
options,
|
|
50
50
|
prefix: options.prefix,
|
|
51
51
|
postprocess: VarPrefixPostprocessor(options.variablePrefix),
|
|
@@ -71,7 +71,7 @@ function normalizePreflights(preflights3, variablePrefix) {
|
|
|
71
71
|
if (variablePrefix !== "un-") {
|
|
72
72
|
return preflights3.map((p) => ({
|
|
73
73
|
...p,
|
|
74
|
-
getCSS: (() => async (ctx) => {
|
|
74
|
+
getCSS: /* @__PURE__ */ (() => async (ctx) => {
|
|
75
75
|
const css = await p.getCSS(ctx);
|
|
76
76
|
if (css)
|
|
77
77
|
return css.replace(/--un-/g, `--${variablePrefix}`);
|
|
@@ -81,8 +81,8 @@ function normalizePreflights(preflights3, variablePrefix) {
|
|
|
81
81
|
return preflights3;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
exports.parseColor =
|
|
85
|
-
exports.theme =
|
|
84
|
+
exports.parseColor = utilities.parseColor;
|
|
85
|
+
exports.theme = _default.theme;
|
|
86
86
|
exports.colors = colors.colors;
|
|
87
87
|
exports.VarPrefixPostprocessor = VarPrefixPostprocessor;
|
|
88
88
|
exports.default = presetMini;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.hpPpX7ws.cjs';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.hpPpX7ws.cjs';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.YxT4AwuI.cjs';
|
|
6
6
|
export { colors } from './colors.cjs';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.20fUBpHS.cjs';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
30
30
|
*/
|
|
31
31
|
dark?: 'class' | 'media' | DarkModeSelectors;
|
|
32
32
|
/**
|
|
33
|
-
* Generate pseudo selector as `[group=""]` instead of `.group`
|
|
33
|
+
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
|
|
34
34
|
*
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
variablePrefix?: string;
|
|
44
44
|
/**
|
|
45
|
-
* Utils prefix
|
|
45
|
+
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
|
|
46
46
|
*
|
|
47
47
|
* @default undefined
|
|
48
48
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.hpPpX7ws.mjs';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.hpPpX7ws.mjs';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.vMrmsD3H.mjs';
|
|
6
6
|
export { colors } from './colors.mjs';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.nzD7Hw_0.mjs';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
30
30
|
*/
|
|
31
31
|
dark?: 'class' | 'media' | DarkModeSelectors;
|
|
32
32
|
/**
|
|
33
|
-
* Generate pseudo selector as `[group=""]` instead of `.group`
|
|
33
|
+
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
|
|
34
34
|
*
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
variablePrefix?: string;
|
|
44
44
|
/**
|
|
45
|
-
* Utils prefix
|
|
45
|
+
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
|
|
46
46
|
*
|
|
47
47
|
* @default undefined
|
|
48
48
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.hpPpX7ws.js';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.hpPpX7ws.js';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.gVNz4b9u.js';
|
|
6
6
|
export { colors } from './colors.js';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.8w2rXvMk.js';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
30
30
|
*/
|
|
31
31
|
dark?: 'class' | 'media' | DarkModeSelectors;
|
|
32
32
|
/**
|
|
33
|
-
* Generate pseudo selector as `[group=""]` instead of `.group`
|
|
33
|
+
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
|
|
34
34
|
*
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
variablePrefix?: string;
|
|
44
44
|
/**
|
|
45
|
-
* Utils prefix
|
|
45
|
+
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
|
|
46
46
|
*
|
|
47
47
|
* @default undefined
|
|
48
48
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { entriesToCss, toArray, definePreset } from '@unocss/core';
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
3
|
-
import { g as globalKeywords } from './shared/preset-mini.
|
|
4
|
-
export {
|
|
5
|
-
import { theme } from './
|
|
6
|
-
import { rules } from './
|
|
7
|
-
import { variants } from './
|
|
3
|
+
import { g as globalKeywords } from './shared/preset-mini.0CcynBZx.mjs';
|
|
4
|
+
export { f as parseColor } from './shared/preset-mini.0CcynBZx.mjs';
|
|
5
|
+
import { t as theme } from './shared/preset-mini.zC_vZg74.mjs';
|
|
6
|
+
import { r as rules } from './shared/preset-mini.ORVb5Lu8.mjs';
|
|
7
|
+
import { h as variants } from './shared/preset-mini.AVP8I7_j.mjs';
|
|
8
8
|
export { colors } from './colors.mjs';
|
|
9
9
|
import '@unocss/rule-utils';
|
|
10
|
-
import './shared/preset-mini.
|
|
10
|
+
import './shared/preset-mini.0UJFjS_1.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
|
@@ -68,7 +68,7 @@ function normalizePreflights(preflights3, variablePrefix) {
|
|
|
68
68
|
if (variablePrefix !== "un-") {
|
|
69
69
|
return preflights3.map((p) => ({
|
|
70
70
|
...p,
|
|
71
|
-
getCSS: (() => async (ctx) => {
|
|
71
|
+
getCSS: /* @__PURE__ */ (() => async (ctx) => {
|
|
72
72
|
const css = await p.getCSS(ctx);
|
|
73
73
|
if (css)
|
|
74
74
|
return css.replace(/--un-/g, `--${variablePrefix}`);
|