@unocss/preset-mini 0.55.6 → 0.56.0
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 +8 -8
- 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 +129 -128
- package/dist/rules.mjs +4 -3
- package/dist/shared/{preset-mini.b4ad509c.cjs → preset-mini.3a376028.cjs} +14 -284
- package/dist/shared/{preset-mini.0fac4963.mjs → preset-mini.4fe01d46.mjs} +3 -5
- package/dist/shared/{preset-mini.c0e4a0cc.d.ts → preset-mini.79297e15.d.ts} +3 -6
- package/dist/shared/{preset-mini.f1fe435e.mjs → preset-mini.8929b018.mjs} +7 -270
- package/dist/shared/{preset-mini.8ff442ab.d.mts → preset-mini.97d1ec1e.d.mts} +3 -6
- package/dist/shared/{preset-mini.f9bfbfc9.d.cts → preset-mini.d62ae954.d.cts} +3 -6
- package/dist/shared/{preset-mini.5bfee53b.cjs → preset-mini.f22c1fe0.cjs} +39 -41
- package/dist/theme.cjs +3 -2
- package/dist/theme.mjs +3 -2
- package/dist/utils.cjs +26 -107
- package/dist/utils.d.cts +7 -16
- package/dist/utils.d.mts +7 -16
- package/dist/utils.d.ts +7 -16
- package/dist/utils.mjs +3 -81
- package/dist/variants.cjs +41 -41
- package/dist/variants.d.cts +1 -1
- package/dist/variants.d.mts +1 -1
- package/dist/variants.d.ts +1 -1
- package/dist/variants.mjs +3 -3
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
6
5
|
const core = require('@unocss/core');
|
|
7
|
-
const
|
|
6
|
+
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
7
|
+
const utils = require('./shared/preset-mini.3a376028.cjs');
|
|
8
8
|
const theme = require('./theme.cjs');
|
|
9
9
|
const rules = require('./rules.cjs');
|
|
10
10
|
const variants = require('./variants.cjs');
|
|
11
11
|
const colors = require('./colors.cjs');
|
|
12
|
-
require('
|
|
13
|
-
require('./
|
|
12
|
+
require('@unocss/rule-utils');
|
|
13
|
+
require('./shared/preset-mini.f22c1fe0.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
|
16
16
|
{
|
|
@@ -33,10 +33,10 @@ const shorthands = {
|
|
|
33
33
|
"sticky",
|
|
34
34
|
"static"
|
|
35
35
|
],
|
|
36
|
-
globalKeyword:
|
|
36
|
+
globalKeyword: utils.globalKeywords
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
const presetMini = core.definePreset((options = {}) => {
|
|
40
40
|
options.dark = options.dark ?? "class";
|
|
41
41
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
42
42
|
options.preflight = options.preflight ?? true;
|
|
@@ -55,7 +55,7 @@ function presetMini(options = {}) {
|
|
|
55
55
|
shorthands
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
}
|
|
58
|
+
});
|
|
59
59
|
function VarPrefixPostprocessor(prefix) {
|
|
60
60
|
if (prefix !== "un-") {
|
|
61
61
|
return (obj) => {
|
|
@@ -81,7 +81,7 @@ function normalizePreflights(preflights3, variablePrefix) {
|
|
|
81
81
|
return preflights3;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
exports.parseColor =
|
|
84
|
+
exports.parseColor = utils.parseColor;
|
|
85
85
|
exports.theme = theme.theme;
|
|
86
86
|
exports.colors = colors.colors;
|
|
87
87
|
exports.VarPrefixPostprocessor = VarPrefixPostprocessor;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export { a as ThemeAnimation } from './shared/preset-mini.bc674518.cjs';
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
4
3
|
export { t as theme } from './shared/preset-mini.302bff75.cjs';
|
|
5
4
|
export { colors } from './colors.cjs';
|
|
6
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.d62ae954.cjs';
|
|
6
|
+
export { T as Theme, a as ThemeAnimation } from './shared/preset-mini.bc674518.cjs';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
|
@@ -61,9 +61,9 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
arbitraryVariants?: boolean;
|
|
63
63
|
}
|
|
64
|
-
declare
|
|
64
|
+
declare const presetMini: _unocss_core.PresetFactory<object, PresetMiniOptions>;
|
|
65
65
|
|
|
66
66
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
|
67
67
|
declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
|
|
68
68
|
|
|
69
|
-
export { type DarkModeSelectors, type PresetMiniOptions,
|
|
69
|
+
export { type DarkModeSelectors, type PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export { a as ThemeAnimation } from './shared/preset-mini.bc674518.mjs';
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
4
3
|
export { t as theme } from './shared/preset-mini.f12010ce.mjs';
|
|
5
4
|
export { colors } from './colors.mjs';
|
|
6
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.97d1ec1e.mjs';
|
|
6
|
+
export { T as Theme, a as ThemeAnimation } from './shared/preset-mini.bc674518.mjs';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
|
@@ -61,9 +61,9 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
arbitraryVariants?: boolean;
|
|
63
63
|
}
|
|
64
|
-
declare
|
|
64
|
+
declare const presetMini: _unocss_core.PresetFactory<object, PresetMiniOptions>;
|
|
65
65
|
|
|
66
66
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
|
67
67
|
declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
|
|
68
68
|
|
|
69
|
-
export { type DarkModeSelectors, type PresetMiniOptions,
|
|
69
|
+
export { type DarkModeSelectors, type PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export { a as ThemeAnimation } from './shared/preset-mini.bc674518.js';
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
4
3
|
export { t as theme } from './shared/preset-mini.0a392a7c.js';
|
|
5
4
|
export { colors } from './colors.js';
|
|
6
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
5
|
+
export { p as parseColor } from './shared/preset-mini.79297e15.js';
|
|
6
|
+
export { T as Theme, a as ThemeAnimation } from './shared/preset-mini.bc674518.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
|
@@ -61,9 +61,9 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
arbitraryVariants?: boolean;
|
|
63
63
|
}
|
|
64
|
-
declare
|
|
64
|
+
declare const presetMini: _unocss_core.PresetFactory<object, PresetMiniOptions>;
|
|
65
65
|
|
|
66
66
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
|
67
67
|
declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
|
|
68
68
|
|
|
69
|
-
export { type DarkModeSelectors, type PresetMiniOptions,
|
|
69
|
+
export { type DarkModeSelectors, type PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { entriesToCss, toArray, definePreset } from '@unocss/core';
|
|
1
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export { p as parseColor } from './shared/preset-mini.f1fe435e.mjs';
|
|
3
|
+
import { g as globalKeywords } from './shared/preset-mini.8929b018.mjs';
|
|
4
|
+
export { p as parseColor } from './shared/preset-mini.8929b018.mjs';
|
|
5
5
|
import { theme } from './theme.mjs';
|
|
6
6
|
import { rules } from './rules.mjs';
|
|
7
7
|
import { variants } from './variants.mjs';
|
|
8
8
|
export { colors } from './colors.mjs';
|
|
9
|
-
import '
|
|
10
|
-
import './
|
|
9
|
+
import '@unocss/rule-utils';
|
|
10
|
+
import './shared/preset-mini.4fe01d46.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
|
@@ -33,7 +33,7 @@ const shorthands = {
|
|
|
33
33
|
globalKeyword: globalKeywords
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
const presetMini = definePreset((options = {}) => {
|
|
37
37
|
options.dark = options.dark ?? "class";
|
|
38
38
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
39
39
|
options.preflight = options.preflight ?? true;
|
|
@@ -52,7 +52,7 @@ function presetMini(options = {}) {
|
|
|
52
52
|
shorthands
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
}
|
|
55
|
+
});
|
|
56
56
|
function VarPrefixPostprocessor(prefix) {
|
|
57
57
|
if (prefix !== "un-") {
|
|
58
58
|
return (obj) => {
|