@unocss/preset-mini 0.55.7 → 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 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 colors$1 = require('./shared/preset-mini.b4ad509c.cjs');
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('./shared/preset-mini.5bfee53b.cjs');
13
- require('./utils.cjs');
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: colors$1.globalKeywords
36
+ globalKeyword: utils.globalKeywords
37
37
  };
38
38
 
39
- function presetMini(options = {}) {
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 = colors$1.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 { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.bc674518.cjs';
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.f9bfbfc9.cjs';
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 function presetMini(options?: PresetMiniOptions): Preset<Theme>;
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, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
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 { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.bc674518.mjs';
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.8ff442ab.mjs';
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 function presetMini(options?: PresetMiniOptions): Preset<Theme>;
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, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
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 { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.bc674518.js';
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.c0e4a0cc.js';
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 function presetMini(options?: PresetMiniOptions): Preset<Theme>;
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, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
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 { entriesToCss, toArray } from '@unocss/core';
3
- import { g as globalKeywords } from './shared/preset-mini.f1fe435e.mjs';
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 './shared/preset-mini.0fac4963.mjs';
10
- import './utils.mjs';
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
- function presetMini(options = {}) {
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) => {