@unocss/preset-uno 0.13.1 → 0.14.3

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 (40) hide show
  1. package/dist/{chunk-P5HELYQA.mjs → chunks/colors.cjs} +4 -5
  2. package/dist/{chunk-7O4GGKN3.js → chunks/colors.mjs} +2 -5
  3. package/dist/{chunk-GBKIE2NK.js → chunks/default.cjs} +567 -591
  4. package/dist/{chunk-RDUXYWRV.mjs → chunks/default.mjs} +404 -541
  5. package/dist/{chunk-BOWXQI3B.js → chunks/default2.cjs} +41 -48
  6. package/dist/{chunk-BLAKJWHG.mjs → chunks/default2.mjs} +21 -48
  7. package/dist/chunks/default3.cjs +128 -0
  8. package/dist/chunks/default3.mjs +119 -0
  9. package/dist/{chunk-O7YRGPXQ.mjs → chunks/index.cjs} +38 -59
  10. package/dist/{chunk-LPZDYB4J.js → chunks/index.mjs} +23 -60
  11. package/dist/chunks/pseudo.cjs +106 -0
  12. package/dist/chunks/pseudo.mjs +101 -0
  13. package/dist/chunks/variants.cjs +14 -0
  14. package/dist/chunks/variants.mjs +12 -0
  15. package/dist/colors.cjs +9 -0
  16. package/dist/colors.mjs +1 -7
  17. package/dist/index.cjs +31 -0
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.mjs +12 -26
  20. package/dist/rules.cjs +123 -0
  21. package/dist/rules.d.ts +3 -1
  22. package/dist/rules.mjs +4 -226
  23. package/dist/theme.cjs +29 -0
  24. package/dist/theme.mjs +2 -47
  25. package/dist/utils.cjs +25 -0
  26. package/dist/utils.mjs +2 -37
  27. package/dist/variants.cjs +23 -0
  28. package/dist/variants.d.ts +2 -1
  29. package/dist/variants.mjs +4 -28
  30. package/package.json +11 -11
  31. package/dist/chunk-5SH5BFJ4.mjs +0 -11
  32. package/dist/chunk-64RIF3V4.js +0 -232
  33. package/dist/chunk-IFOGL3S7.mjs +0 -232
  34. package/dist/chunk-Y6EUTGDC.js +0 -11
  35. package/dist/colors.js +0 -7
  36. package/dist/index.js +0 -39
  37. package/dist/rules.js +0 -226
  38. package/dist/theme.js +0 -47
  39. package/dist/utils.js +0 -37
  40. package/dist/variants.js +0 -28
@@ -1,9 +1,6 @@
1
- import {
2
- __export
3
- } from "./chunk-5SH5BFJ4.mjs";
1
+ 'use strict';
4
2
 
5
- // src/utils/mappings.ts
6
- var directionMap = {
3
+ const directionMap = {
7
4
  "l": ["-left"],
8
5
  "r": ["-right"],
9
6
  "t": ["-top"],
@@ -15,7 +12,7 @@ var directionMap = {
15
12
  "": [""],
16
13
  "a": [""]
17
14
  };
18
- var cornerMap = {
15
+ const cornerMap = {
19
16
  "t": ["-top-left", "-top-right"],
20
17
  "r": ["-top-right", "-bottom-right"],
21
18
  "b": ["-bottom-left", "-bottom-right"],
@@ -30,28 +27,15 @@ var cornerMap = {
30
27
  "rb": ["-bottom-right"],
31
28
  "": [""]
32
29
  };
33
- var xyzMap = {
30
+ const xyzMap = {
34
31
  "x": ["-x"],
35
32
  "y": ["-y"],
36
33
  "z": ["-z"],
37
34
  "": ["-x", "-y"]
38
35
  };
39
36
 
40
- // src/utils/handlers/handlers.ts
41
- var handlers_exports = {};
42
- __export(handlers_exports, {
43
- bracket: () => bracket,
44
- cssvar: () => cssvar,
45
- fraction: () => fraction,
46
- global: () => global,
47
- number: () => number,
48
- percent: () => percent,
49
- px: () => px,
50
- rem: () => rem,
51
- time: () => time
52
- });
53
- var numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i;
54
- var numberRE = /^(-?[0-9.]+)$/i;
37
+ const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i;
38
+ const numberRE = /^(-?[0-9.]+)$/i;
55
39
  function rem(str) {
56
40
  if (str === "auto" || str === "a")
57
41
  return "auto";
@@ -122,14 +106,25 @@ function global(str) {
122
106
  return str;
123
107
  }
124
108
 
125
- // src/utils/handlers/shorthand.ts
126
- var handlersNames = Object.keys(handlers_exports);
127
- var handler = function(str) {
128
- var _a;
129
- const s = ((_a = this.__options) == null ? void 0 : _a.sequence) || [];
109
+ const handlers = {
110
+ __proto__: null,
111
+ rem: rem,
112
+ px: px,
113
+ number: number,
114
+ percent: percent,
115
+ fraction: fraction,
116
+ bracket: bracket,
117
+ cssvar: cssvar,
118
+ time: time,
119
+ global: global
120
+ };
121
+
122
+ const handlersNames = Object.keys(handlers);
123
+ const handler = function(str) {
124
+ const s = this.__options?.sequence || [];
130
125
  this.__options.sequence = [];
131
126
  for (const n of s) {
132
- const res = handlers_exports[n](str);
127
+ const res = handlers[n](str);
133
128
  if (res != null)
134
129
  return res;
135
130
  }
@@ -153,38 +148,22 @@ handlersNames.forEach((i) => {
153
148
  });
154
149
  });
155
150
 
156
- // src/utils/variants.ts
157
- var variantMatcher = (name, selector) => {
158
- const length = name.length + 1;
159
- const re = new RegExp(`^${name}[:-]`);
160
- return (input) => {
161
- return input.match(re) ? {
162
- matcher: input.slice(length),
163
- selector
164
- } : void 0;
165
- };
166
- };
167
-
168
- // src/utils/index.ts
169
151
  function capitalize(str) {
170
152
  return str.charAt(0).toUpperCase() + str.slice(1);
171
153
  }
172
154
 
173
- export {
174
- directionMap,
175
- cornerMap,
176
- xyzMap,
177
- rem,
178
- px,
179
- number,
180
- percent,
181
- fraction,
182
- bracket,
183
- cssvar,
184
- time,
185
- global,
186
- handlersNames,
187
- handler,
188
- variantMatcher,
189
- capitalize
190
- };
155
+ exports.bracket = bracket;
156
+ exports.capitalize = capitalize;
157
+ exports.cornerMap = cornerMap;
158
+ exports.cssvar = cssvar;
159
+ exports.directionMap = directionMap;
160
+ exports.fraction = fraction;
161
+ exports.global = global;
162
+ exports.handler = handler;
163
+ exports.handlersNames = handlersNames;
164
+ exports.number = number;
165
+ exports.percent = percent;
166
+ exports.px = px;
167
+ exports.rem = rem;
168
+ exports.time = time;
169
+ exports.xyzMap = xyzMap;
@@ -1,9 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkY6EUTGDCjs = require('./chunk-Y6EUTGDC.js');
4
-
5
- // src/utils/mappings.ts
6
- var directionMap = {
1
+ const directionMap = {
7
2
  "l": ["-left"],
8
3
  "r": ["-right"],
9
4
  "t": ["-top"],
@@ -15,7 +10,7 @@ var directionMap = {
15
10
  "": [""],
16
11
  "a": [""]
17
12
  };
18
- var cornerMap = {
13
+ const cornerMap = {
19
14
  "t": ["-top-left", "-top-right"],
20
15
  "r": ["-top-right", "-bottom-right"],
21
16
  "b": ["-bottom-left", "-bottom-right"],
@@ -30,28 +25,15 @@ var cornerMap = {
30
25
  "rb": ["-bottom-right"],
31
26
  "": [""]
32
27
  };
33
- var xyzMap = {
28
+ const xyzMap = {
34
29
  "x": ["-x"],
35
30
  "y": ["-y"],
36
31
  "z": ["-z"],
37
32
  "": ["-x", "-y"]
38
33
  };
39
34
 
40
- // src/utils/handlers/handlers.ts
41
- var handlers_exports = {};
42
- _chunkY6EUTGDCjs.__export.call(void 0, handlers_exports, {
43
- bracket: () => bracket,
44
- cssvar: () => cssvar,
45
- fraction: () => fraction,
46
- global: () => global,
47
- number: () => number,
48
- percent: () => percent,
49
- px: () => px,
50
- rem: () => rem,
51
- time: () => time
52
- });
53
- var numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i;
54
- var numberRE = /^(-?[0-9.]+)$/i;
35
+ const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax)?$/i;
36
+ const numberRE = /^(-?[0-9.]+)$/i;
55
37
  function rem(str) {
56
38
  if (str === "auto" || str === "a")
57
39
  return "auto";
@@ -122,14 +104,25 @@ function global(str) {
122
104
  return str;
123
105
  }
124
106
 
125
- // src/utils/handlers/shorthand.ts
126
- var handlersNames = Object.keys(handlers_exports);
127
- var handler = function(str) {
128
- var _a;
129
- const s = ((_a = this.__options) == null ? void 0 : _a.sequence) || [];
107
+ const handlers = {
108
+ __proto__: null,
109
+ rem: rem,
110
+ px: px,
111
+ number: number,
112
+ percent: percent,
113
+ fraction: fraction,
114
+ bracket: bracket,
115
+ cssvar: cssvar,
116
+ time: time,
117
+ global: global
118
+ };
119
+
120
+ const handlersNames = Object.keys(handlers);
121
+ const handler = function(str) {
122
+ const s = this.__options?.sequence || [];
130
123
  this.__options.sequence = [];
131
124
  for (const n of s) {
132
- const res = handlers_exports[n](str);
125
+ const res = handlers[n](str);
133
126
  if (res != null)
134
127
  return res;
135
128
  }
@@ -153,38 +146,8 @@ handlersNames.forEach((i) => {
153
146
  });
154
147
  });
155
148
 
156
- // src/utils/variants.ts
157
- var variantMatcher = (name, selector) => {
158
- const length = name.length + 1;
159
- const re = new RegExp(`^${name}[:-]`);
160
- return (input) => {
161
- return input.match(re) ? {
162
- matcher: input.slice(length),
163
- selector
164
- } : void 0;
165
- };
166
- };
167
-
168
- // src/utils/index.ts
169
149
  function capitalize(str) {
170
150
  return str.charAt(0).toUpperCase() + str.slice(1);
171
151
  }
172
152
 
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- exports.directionMap = directionMap; exports.cornerMap = cornerMap; exports.xyzMap = xyzMap; exports.rem = rem; exports.px = px; exports.number = number; exports.percent = percent; exports.fraction = fraction; exports.bracket = bracket; exports.cssvar = cssvar; exports.time = time; exports.global = global; exports.handlersNames = handlersNames; exports.handler = handler; exports.variantMatcher = variantMatcher; exports.capitalize = capitalize;
153
+ export { capitalize as a, percent as b, cornerMap as c, directionMap as d, bracket as e, fraction as f, cssvar as g, handler as h, global as i, handlersNames as j, number as n, px as p, rem as r, time as t, xyzMap as x };
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ const core = require('@unocss/core');
4
+
5
+ const CONTROL_BYPASS_PSEUDO = "$$no-pseudo";
6
+ const PseudoClasses = Object.fromEntries([
7
+ "active",
8
+ "checked",
9
+ "default",
10
+ "empty",
11
+ "enabled",
12
+ "disabled",
13
+ "first-of-type",
14
+ ["first", "first-child"],
15
+ "focus-visible",
16
+ "focus-within",
17
+ "focus",
18
+ "hover",
19
+ "indeterminate",
20
+ "invalid",
21
+ "last-of-type",
22
+ ["last", "last-child"],
23
+ "link",
24
+ "only-child",
25
+ "only-of-type",
26
+ "optional",
27
+ "placeholder-shown",
28
+ "read-only",
29
+ "read-write",
30
+ "required",
31
+ "root",
32
+ "target",
33
+ "valid",
34
+ "visited",
35
+ ["even-of-type", "nth-of-type(even)"],
36
+ ["even", "nth-child(even)"],
37
+ ["odd-of-type", "nth-of-type(odd)"],
38
+ ["odd", "nth-child(odd)"]
39
+ ].map(core.toArray));
40
+ const PseudoElements = [
41
+ "before",
42
+ "after",
43
+ "first-letter",
44
+ "first-line",
45
+ "selection"
46
+ ];
47
+ const PseudoElementsRE = new RegExp(`^(${PseudoElements.join("|")})[:-]`);
48
+ const PseudoClassesStr = Object.keys(PseudoClasses).join("|");
49
+ const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
50
+ const PseudoClassesNotRE = new RegExp(`^not-(${PseudoClassesStr})[:-]`);
51
+ const PseudoClassesGroupRE = new RegExp(`^group-(${PseudoClassesStr})[:-]`);
52
+ const PseudoClassesPeerRE = new RegExp(`^peer-(${PseudoClassesStr})[:-]`);
53
+ const variantPseudoElements = (input) => {
54
+ const match = input.match(PseudoElementsRE);
55
+ if (match) {
56
+ return {
57
+ matcher: input.slice(match[1].length + 1),
58
+ selector: (s, body) => shouldAdd(body) && `${s}::${match[1]}`
59
+ };
60
+ }
61
+ };
62
+ function shouldAdd(entires) {
63
+ return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO) || void 0;
64
+ }
65
+ const variantPseudoClasses = {
66
+ match: (input) => {
67
+ let match = input.match(PseudoClassesRE);
68
+ if (match) {
69
+ const pseudo = PseudoClasses[match[1]] || match[1];
70
+ return {
71
+ matcher: input.slice(match[1].length + 1),
72
+ selector: (s, body) => shouldAdd(body) && `${s}:${pseudo}`
73
+ };
74
+ }
75
+ match = input.match(PseudoClassesNotRE);
76
+ if (match) {
77
+ const pseudo = PseudoClasses[match[1]] || match[1];
78
+ return {
79
+ matcher: input.slice(match[1].length + 5),
80
+ selector: (s, body) => shouldAdd(body) && `${s}:not(:${pseudo})`
81
+ };
82
+ }
83
+ match = input.match(PseudoClassesGroupRE);
84
+ if (match) {
85
+ const pseudo = PseudoClasses[match[1]] || match[1];
86
+ return {
87
+ matcher: input.slice(match[1].length + 7),
88
+ selector: (s, body) => shouldAdd(body) && s.includes(".group:") ? s.replace(/\.group:/, `.group:${pseudo}:`) : `.group:${pseudo} ${s}`
89
+ };
90
+ }
91
+ match = input.match(PseudoClassesPeerRE);
92
+ if (match) {
93
+ const pseudo = PseudoClasses[match[1]] || match[1];
94
+ return {
95
+ matcher: input.slice(match[1].length + 6),
96
+ selector: (s, body) => shouldAdd(body) && s.includes(".peer:") ? s.replace(/\.peer:/, `.peer:${pseudo}:`) : `.peer:${pseudo} ~ ${s}`
97
+ };
98
+ }
99
+ },
100
+ multiPass: true
101
+ };
102
+
103
+ exports.CONTROL_BYPASS_PSEUDO = CONTROL_BYPASS_PSEUDO;
104
+ exports.PseudoClasses = PseudoClasses;
105
+ exports.variantPseudoClasses = variantPseudoClasses;
106
+ exports.variantPseudoElements = variantPseudoElements;
@@ -0,0 +1,101 @@
1
+ import { toArray } from '@unocss/core';
2
+
3
+ const CONTROL_BYPASS_PSEUDO = "$$no-pseudo";
4
+ const PseudoClasses = Object.fromEntries([
5
+ "active",
6
+ "checked",
7
+ "default",
8
+ "empty",
9
+ "enabled",
10
+ "disabled",
11
+ "first-of-type",
12
+ ["first", "first-child"],
13
+ "focus-visible",
14
+ "focus-within",
15
+ "focus",
16
+ "hover",
17
+ "indeterminate",
18
+ "invalid",
19
+ "last-of-type",
20
+ ["last", "last-child"],
21
+ "link",
22
+ "only-child",
23
+ "only-of-type",
24
+ "optional",
25
+ "placeholder-shown",
26
+ "read-only",
27
+ "read-write",
28
+ "required",
29
+ "root",
30
+ "target",
31
+ "valid",
32
+ "visited",
33
+ ["even-of-type", "nth-of-type(even)"],
34
+ ["even", "nth-child(even)"],
35
+ ["odd-of-type", "nth-of-type(odd)"],
36
+ ["odd", "nth-child(odd)"]
37
+ ].map(toArray));
38
+ const PseudoElements = [
39
+ "before",
40
+ "after",
41
+ "first-letter",
42
+ "first-line",
43
+ "selection"
44
+ ];
45
+ const PseudoElementsRE = new RegExp(`^(${PseudoElements.join("|")})[:-]`);
46
+ const PseudoClassesStr = Object.keys(PseudoClasses).join("|");
47
+ const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
48
+ const PseudoClassesNotRE = new RegExp(`^not-(${PseudoClassesStr})[:-]`);
49
+ const PseudoClassesGroupRE = new RegExp(`^group-(${PseudoClassesStr})[:-]`);
50
+ const PseudoClassesPeerRE = new RegExp(`^peer-(${PseudoClassesStr})[:-]`);
51
+ const variantPseudoElements = (input) => {
52
+ const match = input.match(PseudoElementsRE);
53
+ if (match) {
54
+ return {
55
+ matcher: input.slice(match[1].length + 1),
56
+ selector: (s, body) => shouldAdd(body) && `${s}::${match[1]}`
57
+ };
58
+ }
59
+ };
60
+ function shouldAdd(entires) {
61
+ return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO) || void 0;
62
+ }
63
+ const variantPseudoClasses = {
64
+ match: (input) => {
65
+ let match = input.match(PseudoClassesRE);
66
+ if (match) {
67
+ const pseudo = PseudoClasses[match[1]] || match[1];
68
+ return {
69
+ matcher: input.slice(match[1].length + 1),
70
+ selector: (s, body) => shouldAdd(body) && `${s}:${pseudo}`
71
+ };
72
+ }
73
+ match = input.match(PseudoClassesNotRE);
74
+ if (match) {
75
+ const pseudo = PseudoClasses[match[1]] || match[1];
76
+ return {
77
+ matcher: input.slice(match[1].length + 5),
78
+ selector: (s, body) => shouldAdd(body) && `${s}:not(:${pseudo})`
79
+ };
80
+ }
81
+ match = input.match(PseudoClassesGroupRE);
82
+ if (match) {
83
+ const pseudo = PseudoClasses[match[1]] || match[1];
84
+ return {
85
+ matcher: input.slice(match[1].length + 7),
86
+ selector: (s, body) => shouldAdd(body) && s.includes(".group:") ? s.replace(/\.group:/, `.group:${pseudo}:`) : `.group:${pseudo} ${s}`
87
+ };
88
+ }
89
+ match = input.match(PseudoClassesPeerRE);
90
+ if (match) {
91
+ const pseudo = PseudoClasses[match[1]] || match[1];
92
+ return {
93
+ matcher: input.slice(match[1].length + 6),
94
+ selector: (s, body) => shouldAdd(body) && s.includes(".peer:") ? s.replace(/\.peer:/, `.peer:${pseudo}:`) : `.peer:${pseudo} ~ ${s}`
95
+ };
96
+ }
97
+ },
98
+ multiPass: true
99
+ };
100
+
101
+ export { CONTROL_BYPASS_PSEUDO as C, PseudoClasses as P, variantPseudoElements as a, variantPseudoClasses as v };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const variantMatcher = (name, selector) => {
4
+ const length = name.length + 1;
5
+ const re = new RegExp(`^${name}[:-]`);
6
+ return (input) => {
7
+ return input.match(re) ? {
8
+ matcher: input.slice(length),
9
+ selector
10
+ } : void 0;
11
+ };
12
+ };
13
+
14
+ exports.variantMatcher = variantMatcher;
@@ -0,0 +1,12 @@
1
+ const variantMatcher = (name, selector) => {
2
+ const length = name.length + 1;
3
+ const re = new RegExp(`^${name}[:-]`);
4
+ return (input) => {
5
+ return input.match(re) ? {
6
+ matcher: input.slice(length),
7
+ selector
8
+ } : void 0;
9
+ };
10
+ };
11
+
12
+ export { variantMatcher as v };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const colors = require('./chunks/colors.cjs');
6
+
7
+
8
+
9
+ exports.colors = colors.colors;
package/dist/colors.mjs CHANGED
@@ -1,7 +1 @@
1
- import {
2
- colors
3
- } from "./chunk-P5HELYQA.mjs";
4
- import "./chunk-5SH5BFJ4.mjs";
5
- export {
6
- colors
7
- };
1
+ export { c as colors } from './chunks/colors.mjs';
package/dist/index.cjs ADDED
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const _default$1 = require('./chunks/default.cjs');
6
+ const _default = require('./chunks/default2.cjs');
7
+ const _default$2 = require('./chunks/default3.cjs');
8
+ const colors = require('./chunks/colors.cjs');
9
+ require('@unocss/core');
10
+ require('./chunks/index.cjs');
11
+ require('./chunks/pseudo.cjs');
12
+ require('./chunks/variants.cjs');
13
+
14
+ const preset = (options = {}) => ({
15
+ name: "@unocss/preset-uno",
16
+ theme: _default.theme,
17
+ rules: _default$1.rules,
18
+ variants: [
19
+ ..._default$2.variants,
20
+ ...options.dark === "media" ? _default$2.variantColorsMedia : _default$2.variantColorsClass
21
+ ],
22
+ shortcuts: [
23
+ ..._default$1.containerShortcuts
24
+ ],
25
+ options
26
+ });
27
+
28
+ exports.theme = _default.theme;
29
+ exports.colors = colors.colors;
30
+ exports["default"] = preset;
31
+ exports.preset = preset;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Preset } from '@unocss/core';
2
- export { c as colors } from './colors-d6b5a5b4';
3
- export { t as theme } from './default-c7c67d23';
4
2
  import { T as Theme } from './types-7963d0b3';
5
3
  export { T as Theme } from './types-7963d0b3';
4
+ export { t as theme } from './default-c7c67d23';
5
+ export { c as colors } from './colors-d6b5a5b4';
6
6
 
7
7
  interface UnoOptions {
8
8
  /**
package/dist/index.mjs CHANGED
@@ -1,23 +1,14 @@
1
- import {
2
- containerShortcuts,
3
- rules
4
- } from "./chunk-RDUXYWRV.mjs";
5
- import {
6
- theme
7
- } from "./chunk-BLAKJWHG.mjs";
8
- import {
9
- colors
10
- } from "./chunk-P5HELYQA.mjs";
11
- import {
12
- variantColorsClass,
13
- variantColorsMedia,
14
- variants
15
- } from "./chunk-IFOGL3S7.mjs";
16
- import "./chunk-O7YRGPXQ.mjs";
17
- import "./chunk-5SH5BFJ4.mjs";
1
+ import { r as rules, c as containerShortcuts } from './chunks/default.mjs';
2
+ import { t as theme } from './chunks/default2.mjs';
3
+ export { t as theme } from './chunks/default2.mjs';
4
+ import { v as variants, a as variantColorsMedia, b as variantColorsClass } from './chunks/default3.mjs';
5
+ export { c as colors } from './chunks/colors.mjs';
6
+ import '@unocss/core';
7
+ import './chunks/index.mjs';
8
+ import './chunks/pseudo.mjs';
9
+ import './chunks/variants.mjs';
18
10
 
19
- // src/index.ts
20
- var preset = (options = {}) => ({
11
+ const preset = (options = {}) => ({
21
12
  name: "@unocss/preset-uno",
22
13
  theme,
23
14
  rules,
@@ -30,10 +21,5 @@ var preset = (options = {}) => ({
30
21
  ],
31
22
  options
32
23
  });
33
- var src_default = preset;
34
- export {
35
- colors,
36
- src_default as default,
37
- preset,
38
- theme
39
- };
24
+
25
+ export { preset as default, preset };