@unocss/preset-mini 0.55.0 → 0.55.2

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.
Files changed (56) hide show
  1. package/dist/colors.cjs +360 -6
  2. package/dist/{colors-dabdd21f.d.ts → colors.d.cts} +3 -2
  3. package/dist/colors.d.mts +354 -0
  4. package/dist/colors.d.ts +353 -2
  5. package/dist/colors.mjs +361 -1
  6. package/dist/index.cjs +12 -12
  7. package/dist/index.d.cts +69 -0
  8. package/dist/index.d.mts +69 -0
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.mjs +9 -10
  11. package/dist/rules.cjs +928 -48
  12. package/dist/rules.d.cts +133 -0
  13. package/dist/rules.d.mts +133 -0
  14. package/dist/rules.d.ts +1 -1
  15. package/dist/rules.mjs +891 -4
  16. package/dist/{default-1f25a0ae.d.ts → shared/preset-mini.024bdcea.d.ts} +1 -1
  17. package/dist/shared/preset-mini.0a9763df.d.mts +721 -0
  18. package/dist/shared/preset-mini.0fac4963.mjs +320 -0
  19. package/dist/shared/preset-mini.5bfee53b.cjs +344 -0
  20. package/dist/shared/preset-mini.5f54784f.d.mts +71 -0
  21. package/dist/shared/preset-mini.5f54784f.d.ts +71 -0
  22. package/dist/shared/preset-mini.aa3a264b.d.cts +67 -0
  23. package/dist/shared/{preset-mini.a21c5071.cjs → preset-mini.b4ad509c.cjs} +12 -8
  24. package/dist/shared/preset-mini.d69a12a5.d.cts +721 -0
  25. package/dist/{utilities-d496540e.d.ts → shared/preset-mini.e93c20db.d.ts} +1 -1
  26. package/dist/shared/{preset-mini.6c1c8016.mjs → preset-mini.f1fe435e.mjs} +13 -9
  27. package/dist/shared/preset-mini.fc26b619.d.mts +67 -0
  28. package/dist/theme.cjs +308 -34
  29. package/dist/theme.d.cts +264 -0
  30. package/dist/theme.d.mts +264 -0
  31. package/dist/theme.d.ts +5 -5
  32. package/dist/theme.mjs +284 -4
  33. package/dist/utils.cjs +81 -10
  34. package/dist/utils.d.cts +83 -0
  35. package/dist/utils.d.mts +83 -0
  36. package/dist/utils.d.ts +18 -18
  37. package/dist/utils.mjs +81 -3
  38. package/dist/variants.cjs +737 -33
  39. package/dist/variants.d.cts +46 -0
  40. package/dist/variants.d.mts +46 -0
  41. package/dist/variants.d.ts +4 -4
  42. package/dist/variants.mjs +714 -4
  43. package/package.json +3 -3
  44. package/dist/shared/preset-mini.0131b915.mjs +0 -704
  45. package/dist/shared/preset-mini.1c66bf79.mjs +0 -361
  46. package/dist/shared/preset-mini.74f9d55e.mjs +0 -80
  47. package/dist/shared/preset-mini.811eb23d.mjs +0 -681
  48. package/dist/shared/preset-mini.8dd73081.mjs +0 -452
  49. package/dist/shared/preset-mini.9d93761b.cjs +0 -729
  50. package/dist/shared/preset-mini.b8d9397e.cjs +0 -471
  51. package/dist/shared/preset-mini.ce5169f2.cjs +0 -730
  52. package/dist/shared/preset-mini.d778b487.cjs +0 -85
  53. package/dist/shared/preset-mini.de3bd9f7.mjs +0 -284
  54. package/dist/shared/preset-mini.e078d7da.cjs +0 -313
  55. package/dist/shared/preset-mini.f3fc54d2.cjs +0 -363
  56. /package/dist/{types-d991ba46.d.ts → shared/preset-mini.5f54784f.d.cts} +0 -0
package/dist/index.cjs CHANGED
@@ -4,13 +4,13 @@ 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.ce5169f2.cjs');
8
- const _default$1 = require('./shared/preset-mini.b8d9397e.cjs');
9
- const colors$1 = require('./shared/preset-mini.a21c5071.cjs');
10
- const colors = require('./shared/preset-mini.f3fc54d2.cjs');
11
- const _default = require('./shared/preset-mini.e078d7da.cjs');
12
- const _default$2 = require('./shared/preset-mini.9d93761b.cjs');
13
- require('./shared/preset-mini.d778b487.cjs');
7
+ const colors$1 = require('./shared/preset-mini.b4ad509c.cjs');
8
+ const theme = require('./theme.cjs');
9
+ const rules = require('./rules.cjs');
10
+ const variants = require('./variants.cjs');
11
+ const colors = require('./colors.cjs');
12
+ require('./shared/preset-mini.5bfee53b.cjs');
13
+ require('./utils.cjs');
14
14
 
15
15
  const preflights = [
16
16
  {
@@ -43,9 +43,9 @@ function presetMini(options = {}) {
43
43
  options.variablePrefix = options.variablePrefix ?? "un-";
44
44
  return {
45
45
  name: "@unocss/preset-mini",
46
- theme: _default.theme,
47
- rules: _default$1.rules,
48
- variants: _default$2.variants(options),
46
+ theme: theme.theme,
47
+ rules: rules.rules,
48
+ variants: variants.variants(options),
49
49
  options,
50
50
  prefix: options.prefix,
51
51
  postprocess: VarPrefixPostprocessor(options.variablePrefix),
@@ -82,10 +82,10 @@ function normalizePreflights(preflights3, variablePrefix) {
82
82
  }
83
83
 
84
84
  exports.parseColor = colors$1.parseColor;
85
+ exports.theme = theme.theme;
85
86
  exports.colors = colors.colors;
86
- exports.theme = _default.theme;
87
87
  exports.VarPrefixPostprocessor = VarPrefixPostprocessor;
88
- exports["default"] = presetMini;
88
+ exports.default = presetMini;
89
89
  exports.normalizePreflights = normalizePreflights;
90
90
  exports.preflights = preflights;
91
91
  exports.presetMini = presetMini;
@@ -0,0 +1,69 @@
1
+ import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
+ import { T as Theme } from './shared/preset-mini.5f54784f.cjs';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.cjs';
4
+ export { t as theme } from './shared/preset-mini.d69a12a5.cjs';
5
+ export { colors } from './colors.cjs';
6
+ export { p as parseColor } from './shared/preset-mini.aa3a264b.cjs';
7
+
8
+ declare const preflights: Preflight[];
9
+
10
+ interface DarkModeSelectors {
11
+ /**
12
+ * Selector for light variant.
13
+ *
14
+ * @default '.light'
15
+ */
16
+ light?: string;
17
+ /**
18
+ * Selector for dark variant.
19
+ *
20
+ * @default '.dark'
21
+ */
22
+ dark?: string;
23
+ }
24
+ interface PresetMiniOptions extends PresetOptions {
25
+ /**
26
+ * Dark mode options
27
+ *
28
+ * @default 'class'
29
+ */
30
+ dark?: 'class' | 'media' | DarkModeSelectors;
31
+ /**
32
+ * Generate pseudo selector as `[group=""]` instead of `.group`
33
+ *
34
+ * @default false
35
+ */
36
+ attributifyPseudo?: boolean;
37
+ /**
38
+ * Prefix for CSS variables.
39
+ *
40
+ * @default 'un-'
41
+ */
42
+ variablePrefix?: string;
43
+ /**
44
+ * Utils prefix
45
+ *
46
+ * @default undefined
47
+ */
48
+ prefix?: string | string[];
49
+ /**
50
+ * Generate preflight
51
+ *
52
+ * @default true
53
+ */
54
+ preflight?: boolean;
55
+ /**
56
+ * Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
57
+ *
58
+ * Disable this might slightly improve the performance.
59
+ *
60
+ * @default true
61
+ */
62
+ arbitraryVariants?: boolean;
63
+ }
64
+ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
65
+
66
+ declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
+ declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
+
69
+ export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
@@ -0,0 +1,69 @@
1
+ import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
+ import { T as Theme } from './shared/preset-mini.5f54784f.mjs';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.mjs';
4
+ export { t as theme } from './shared/preset-mini.0a9763df.mjs';
5
+ export { colors } from './colors.mjs';
6
+ export { p as parseColor } from './shared/preset-mini.fc26b619.mjs';
7
+
8
+ declare const preflights: Preflight[];
9
+
10
+ interface DarkModeSelectors {
11
+ /**
12
+ * Selector for light variant.
13
+ *
14
+ * @default '.light'
15
+ */
16
+ light?: string;
17
+ /**
18
+ * Selector for dark variant.
19
+ *
20
+ * @default '.dark'
21
+ */
22
+ dark?: string;
23
+ }
24
+ interface PresetMiniOptions extends PresetOptions {
25
+ /**
26
+ * Dark mode options
27
+ *
28
+ * @default 'class'
29
+ */
30
+ dark?: 'class' | 'media' | DarkModeSelectors;
31
+ /**
32
+ * Generate pseudo selector as `[group=""]` instead of `.group`
33
+ *
34
+ * @default false
35
+ */
36
+ attributifyPseudo?: boolean;
37
+ /**
38
+ * Prefix for CSS variables.
39
+ *
40
+ * @default 'un-'
41
+ */
42
+ variablePrefix?: string;
43
+ /**
44
+ * Utils prefix
45
+ *
46
+ * @default undefined
47
+ */
48
+ prefix?: string | string[];
49
+ /**
50
+ * Generate preflight
51
+ *
52
+ * @default true
53
+ */
54
+ preflight?: boolean;
55
+ /**
56
+ * Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
57
+ *
58
+ * Disable this might slightly improve the performance.
59
+ *
60
+ * @default true
61
+ */
62
+ arbitraryVariants?: boolean;
63
+ }
64
+ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
65
+
66
+ declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
+ declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
+
69
+ export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- export { c as colors } from './colors-dabdd21f.js';
3
- export { t as theme } from './default-1f25a0ae.js';
4
- import { T as Theme } from './types-d991ba46.js';
5
- export { T as Theme, a as ThemeAnimation } from './types-d991ba46.js';
6
- export { p as parseColor } from './utilities-d496540e.js';
2
+ import { T as Theme } from './shared/preset-mini.5f54784f.js';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.js';
4
+ export { t as theme } from './shared/preset-mini.024bdcea.js';
5
+ export { colors } from './colors.js';
6
+ export { p as parseColor } from './shared/preset-mini.e93c20db.js';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
@@ -66,4 +66,4 @@ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
67
  declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
- export { DarkModeSelectors, PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
69
+ export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.mjs CHANGED
@@ -1,14 +1,13 @@
1
1
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
2
2
  import { entriesToCss, toArray } from '@unocss/core';
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';
6
- export { p as parseColor } from './shared/preset-mini.6c1c8016.mjs';
7
- export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
8
- import { t as theme } from './shared/preset-mini.de3bd9f7.mjs';
9
- export { t as theme } from './shared/preset-mini.de3bd9f7.mjs';
10
- import { v as variants } from './shared/preset-mini.0131b915.mjs';
11
- import './shared/preset-mini.74f9d55e.mjs';
3
+ import { g as globalKeywords } from './shared/preset-mini.f1fe435e.mjs';
4
+ export { p as parseColor } from './shared/preset-mini.f1fe435e.mjs';
5
+ import { theme } from './theme.mjs';
6
+ import { rules } from './rules.mjs';
7
+ import { variants } from './variants.mjs';
8
+ export { colors } from './colors.mjs';
9
+ import './shared/preset-mini.0fac4963.mjs';
10
+ import './utils.mjs';
12
11
 
13
12
  const preflights = [
14
13
  {
@@ -79,4 +78,4 @@ function normalizePreflights(preflights3, variablePrefix) {
79
78
  return preflights3;
80
79
  }
81
80
 
82
- export { VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
81
+ export { VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini, theme };