@unocss/preset-uno 0.14.2 → 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 (36) 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-VYMMTQ2N.js → chunks/default.cjs} +392 -458
  4. package/dist/{chunk-XF2Z5UCK.mjs → chunks/default.mjs} +222 -401
  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/{chunk-HD4ZLDCQ.js → chunks/default3.cjs} +31 -42
  8. package/dist/{chunk-SVHXUA5V.mjs → chunks/default3.mjs} +14 -34
  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/{chunk-VQNLS43G.js → chunks/pseudo.cjs} +20 -20
  12. package/dist/{chunk-CKV32YDT.mjs → chunks/pseudo.mjs} +14 -19
  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 -27
  20. package/dist/rules.cjs +123 -0
  21. package/dist/rules.mjs +4 -231
  22. package/dist/theme.cjs +29 -0
  23. package/dist/theme.mjs +2 -47
  24. package/dist/utils.cjs +25 -0
  25. package/dist/utils.mjs +2 -37
  26. package/dist/variants.cjs +23 -0
  27. package/dist/variants.mjs +4 -32
  28. package/package.json +11 -11
  29. package/dist/chunk-5SH5BFJ4.mjs +0 -11
  30. package/dist/chunk-Y6EUTGDC.js +0 -11
  31. package/dist/colors.js +0 -7
  32. package/dist/index.js +0 -40
  33. package/dist/rules.js +0 -231
  34. package/dist/theme.js +0 -47
  35. package/dist/utils.js +0 -37
  36. package/dist/variants.js +0 -32
package/dist/rules.mjs CHANGED
@@ -1,231 +1,4 @@
1
- import {
2
- alignContents,
3
- alignItems,
4
- alignSelfs,
5
- animations,
6
- appearance,
7
- appearances,
8
- aspectRatio,
9
- bgAttachments,
10
- bgBlendModes,
11
- bgClips,
12
- bgColors,
13
- bgGradients,
14
- bgImages,
15
- bgOrigins,
16
- bgPositions,
17
- bgRepeats,
18
- bgSizes,
19
- borderColors,
20
- borderRadius,
21
- borderSizes,
22
- borderStyles,
23
- borders,
24
- boxDecorationBreaks,
25
- boxShadows,
26
- boxSizing,
27
- breaks,
28
- caretColors,
29
- caretOpacity,
30
- colorResolver,
31
- container,
32
- containerShortcuts,
33
- contents,
34
- cssVariables,
35
- cursors,
36
- displays,
37
- divideColors,
38
- divideSizes,
39
- divideStyles,
40
- divides,
41
- fillColors,
42
- filters,
43
- flex,
44
- floats,
45
- fontSizes,
46
- fontSmoothings,
47
- fontStyles,
48
- fontVariantNumeric,
49
- fontWeights,
50
- fonts,
51
- fontsFamilies,
52
- gaps,
53
- grids,
54
- hyphens,
55
- imageRenderings,
56
- insets,
57
- isolations,
58
- justifies,
59
- justifyItems,
60
- justifySelfs,
61
- leadings,
62
- lineClamps,
63
- listStyle,
64
- margins,
65
- mixBlendModes,
66
- objectPositions,
67
- opacity,
68
- orders,
69
- outline,
70
- overflows,
71
- overscrolls,
72
- paddings,
73
- parseColorUtil,
74
- placeContents,
75
- placeItems,
76
- placeSelfs,
77
- placeholder,
78
- pointerEvents,
79
- positions,
80
- questionMark,
81
- resizes,
82
- ringColors,
83
- ringOffsetColors,
84
- rings,
85
- rules,
86
- screenReadersAccess,
87
- sizes,
88
- tabSizes,
89
- tables,
90
- textAligns,
91
- textColors,
92
- textDecorationColors,
93
- textDecorationLengths,
94
- textDecorationOffsets,
95
- textDecorationStyles,
96
- textDecorations,
97
- textIndents,
98
- textOverflows,
99
- textShadows,
100
- textStrokeColors,
101
- textStrokeWidths,
102
- textTransforms,
103
- trackings,
104
- transforms,
105
- transitions,
106
- userSelects,
107
- varEmpty,
108
- verticalAligns,
109
- whitespaces,
110
- wordSpacings,
111
- writingModes,
112
- writingOrientations,
113
- zIndexes
114
- } from "./chunk-XF2Z5UCK.mjs";
115
- import "./chunk-CKV32YDT.mjs";
116
- import "./chunk-O7YRGPXQ.mjs";
117
- import "./chunk-5SH5BFJ4.mjs";
118
- export {
119
- alignContents,
120
- alignItems,
121
- alignSelfs,
122
- animations,
123
- appearance,
124
- appearances,
125
- aspectRatio,
126
- bgAttachments,
127
- bgBlendModes,
128
- bgClips,
129
- bgColors,
130
- bgGradients,
131
- bgImages,
132
- bgOrigins,
133
- bgPositions,
134
- bgRepeats,
135
- bgSizes,
136
- borderColors,
137
- borderRadius,
138
- borderSizes,
139
- borderStyles,
140
- borders,
141
- boxDecorationBreaks,
142
- boxShadows,
143
- boxSizing,
144
- breaks,
145
- caretColors,
146
- caretOpacity,
147
- colorResolver,
148
- container,
149
- containerShortcuts,
150
- contents,
151
- cssVariables,
152
- cursors,
153
- displays,
154
- divideColors,
155
- divideSizes,
156
- divideStyles,
157
- divides,
158
- fillColors,
159
- filters,
160
- flex,
161
- floats,
162
- fontSizes,
163
- fontSmoothings,
164
- fontStyles,
165
- fontVariantNumeric,
166
- fontWeights,
167
- fonts,
168
- fontsFamilies,
169
- gaps,
170
- grids,
171
- hyphens,
172
- imageRenderings,
173
- insets,
174
- isolations,
175
- justifies,
176
- justifyItems,
177
- justifySelfs,
178
- leadings,
179
- lineClamps,
180
- listStyle,
181
- margins,
182
- mixBlendModes,
183
- objectPositions,
184
- opacity,
185
- orders,
186
- outline,
187
- overflows,
188
- overscrolls,
189
- paddings,
190
- parseColorUtil,
191
- placeContents,
192
- placeItems,
193
- placeSelfs,
194
- placeholder,
195
- pointerEvents,
196
- positions,
197
- questionMark,
198
- resizes,
199
- ringColors,
200
- ringOffsetColors,
201
- rings,
202
- rules,
203
- screenReadersAccess,
204
- sizes,
205
- tabSizes,
206
- tables,
207
- textAligns,
208
- textColors,
209
- textDecorationColors,
210
- textDecorationLengths,
211
- textDecorationOffsets,
212
- textDecorationStyles,
213
- textDecorations,
214
- textIndents,
215
- textOverflows,
216
- textShadows,
217
- textStrokeColors,
218
- textStrokeWidths,
219
- textTransforms,
220
- trackings,
221
- transforms,
222
- transitions,
223
- userSelects,
224
- varEmpty,
225
- verticalAligns,
226
- whitespaces,
227
- wordSpacings,
228
- writingModes,
229
- writingOrientations,
230
- zIndexes
231
- };
1
+ export { a0 as alignContents, a1 as alignItems, a2 as alignSelfs, a as animations, s as appearance, al as appearances, ag as aspectRatio, b as bgAttachments, d as bgBlendModes, e as bgClips, H as bgColors, f as bgGradients, g as bgImages, h as bgOrigins, i as bgPositions, j as bgRepeats, k as bgSizes, I as borderColors, y as borderRadius, x as borderSizes, z as borderStyles, A as borders, m as boxDecorationBreaks, ae as boxShadows, aa as boxSizing, as as breaks, p as caretColors, n as caretOpacity, C as colorResolver, N as container, c as containerShortcuts, ar as contents, aV as cssVariables, am as cursors, ak as displays, L as divideColors, O as divideSizes, P as divideStyles, Q as divides, M as fillColors, R as filters, S as flex, a7 as floats, aI as fontSizes, ay as fontSmoothings, ax as fontStyles, aT as fontVariantNumeric, aJ as fontWeights, aU as fonts, aH as fontsFamilies, T as gaps, U as grids, az as hyphens, q as imageRenderings, a6 as insets, aD as isolations, Y as justifies, _ as justifyItems, $ as justifySelfs, aK as leadings, W as lineClamps, l as listStyle, ai as margins, ad as mixBlendModes, a9 as objectPositions, D as opacity, Z as orders, o as outline, V as overflows, w as overscrolls, ah as paddings, B as parseColorUtil, a3 as placeContents, a4 as placeItems, a5 as placeSelfs, u as placeholder, an as pointerEvents, X as positions, ab as questionMark, ao as resizes, J as ringColors, K as ringOffsetColors, ac as rings, r as rules, aC as screenReadersAccess, af as sizes, aN as tabSizes, aE as tables, t as textAligns, E as textColors, F as textDecorationColors, aO as textDecorationLengths, aP as textDecorationOffsets, aw as textDecorationStyles, av as textDecorations, aQ as textIndents, at as textOverflows, aS as textShadows, G as textStrokeColors, aR as textStrokeWidths, au as textTransforms, aL as trackings, aF as transforms, aG as transitions, ap as userSelects, aj as varEmpty, v as verticalAligns, aq as whitespaces, aM as wordSpacings, aA as writingModes, aB as writingOrientations, a8 as zIndexes } from './chunks/default.mjs';
2
+ import '@unocss/core';
3
+ import './chunks/index.mjs';
4
+ import './chunks/pseudo.mjs';
package/dist/theme.cjs ADDED
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const colors = require('./chunks/colors.cjs');
6
+ const _default = require('./chunks/default2.cjs');
7
+
8
+
9
+
10
+ exports.colors = colors.colors;
11
+ exports.baseSize = _default.baseSize;
12
+ exports.blur = _default.blur;
13
+ exports.borderRadius = _default.borderRadius;
14
+ exports.boxShadow = _default.boxShadow;
15
+ exports.breakpoints = _default.breakpoints;
16
+ exports.dropShadow = _default.dropShadow;
17
+ exports.fontFamily = _default.fontFamily;
18
+ exports.fontSize = _default.fontSize;
19
+ exports.height = _default.height;
20
+ exports.letterSpacing = _default.letterSpacing;
21
+ exports.lineHeight = _default.lineHeight;
22
+ exports.maxHeight = _default.maxHeight;
23
+ exports.maxWidth = _default.maxWidth;
24
+ exports.textIndent = _default.textIndent;
25
+ exports.textShadow = _default.textShadow;
26
+ exports.textStrokeWidth = _default.textStrokeWidth;
27
+ exports.theme = _default.theme;
28
+ exports.width = _default.width;
29
+ exports.wordSpacing = _default.wordSpacing;
package/dist/theme.mjs CHANGED
@@ -1,47 +1,2 @@
1
- import {
2
- baseSize,
3
- blur,
4
- borderRadius,
5
- boxShadow,
6
- breakpoints,
7
- dropShadow,
8
- fontFamily,
9
- fontSize,
10
- height,
11
- letterSpacing,
12
- lineHeight,
13
- maxHeight,
14
- maxWidth,
15
- textIndent,
16
- textShadow,
17
- textStrokeWidth,
18
- theme,
19
- width,
20
- wordSpacing
21
- } from "./chunk-BLAKJWHG.mjs";
22
- import {
23
- colors
24
- } from "./chunk-P5HELYQA.mjs";
25
- import "./chunk-5SH5BFJ4.mjs";
26
- export {
27
- baseSize,
28
- blur,
29
- borderRadius,
30
- boxShadow,
31
- breakpoints,
32
- colors,
33
- dropShadow,
34
- fontFamily,
35
- fontSize,
36
- height,
37
- letterSpacing,
38
- lineHeight,
39
- maxHeight,
40
- maxWidth,
41
- textIndent,
42
- textShadow,
43
- textStrokeWidth,
44
- theme,
45
- width,
46
- wordSpacing
47
- };
1
+ export { c as colors } from './chunks/colors.mjs';
2
+ export { m as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, f as fontFamily, a as fontSize, p as height, h as letterSpacing, l as lineHeight, q as maxHeight, o as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, n as width, w as wordSpacing } from './chunks/default2.mjs';
package/dist/utils.cjs ADDED
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./chunks/index.cjs');
6
+ const variants = require('./chunks/variants.cjs');
7
+
8
+
9
+
10
+ exports.bracket = index.bracket;
11
+ exports.capitalize = index.capitalize;
12
+ exports.cornerMap = index.cornerMap;
13
+ exports.cssvar = index.cssvar;
14
+ exports.directionMap = index.directionMap;
15
+ exports.fraction = index.fraction;
16
+ exports.global = index.global;
17
+ exports.handler = index.handler;
18
+ exports.handlersNames = index.handlersNames;
19
+ exports.number = index.number;
20
+ exports.percent = index.percent;
21
+ exports.px = index.px;
22
+ exports.rem = index.rem;
23
+ exports.time = index.time;
24
+ exports.xyzMap = index.xyzMap;
25
+ exports.variantMatcher = variants.variantMatcher;
package/dist/utils.mjs CHANGED
@@ -1,37 +1,2 @@
1
- import {
2
- bracket,
3
- capitalize,
4
- cornerMap,
5
- cssvar,
6
- directionMap,
7
- fraction,
8
- global,
9
- handler,
10
- handlersNames,
11
- number,
12
- percent,
13
- px,
14
- rem,
15
- time,
16
- variantMatcher,
17
- xyzMap
18
- } from "./chunk-O7YRGPXQ.mjs";
19
- import "./chunk-5SH5BFJ4.mjs";
20
- export {
21
- bracket,
22
- capitalize,
23
- cornerMap,
24
- cssvar,
25
- directionMap,
26
- fraction,
27
- global,
28
- handler,
29
- handlersNames,
30
- number,
31
- percent,
32
- px,
33
- rem,
34
- time,
35
- variantMatcher,
36
- xyzMap
37
- };
1
+ export { e as bracket, a as capitalize, c as cornerMap, g as cssvar, d as directionMap, f as fraction, i as global, h as handler, j as handlersNames, n as number, b as percent, p as px, r as rem, t as time, x as xyzMap } from './chunks/index.mjs';
2
+ export { v as variantMatcher } from './chunks/variants.mjs';
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const _default = require('./chunks/default3.cjs');
6
+ const pseudo = require('./chunks/pseudo.cjs');
7
+ require('./chunks/variants.cjs');
8
+ require('@unocss/core');
9
+
10
+
11
+
12
+ exports.variantBreakpoints = _default.variantBreakpoints;
13
+ exports.variantChildren = _default.variantChildren;
14
+ exports.variantColorsClass = _default.variantColorsClass;
15
+ exports.variantColorsMedia = _default.variantColorsMedia;
16
+ exports.variantImportant = _default.variantImportant;
17
+ exports.variantNegative = _default.variantNegative;
18
+ exports.variantSpace = _default.variantSpace;
19
+ exports.variants = _default.variants;
20
+ exports.CONTROL_BYPASS_PSEUDO = pseudo.CONTROL_BYPASS_PSEUDO;
21
+ exports.PseudoClasses = pseudo.PseudoClasses;
22
+ exports.variantPseudoClasses = pseudo.variantPseudoClasses;
23
+ exports.variantPseudoElements = pseudo.variantPseudoElements;
package/dist/variants.mjs CHANGED
@@ -1,32 +1,4 @@
1
- import {
2
- variantBreakpoints,
3
- variantChildren,
4
- variantColorsClass,
5
- variantColorsMedia,
6
- variantImportant,
7
- variantNegative,
8
- variantSpace,
9
- variants
10
- } from "./chunk-SVHXUA5V.mjs";
11
- import {
12
- CONTROL_BYPASS_PSEUDO,
13
- PseudoClasses,
14
- variantPseudoClasses,
15
- variantPseudoElements
16
- } from "./chunk-CKV32YDT.mjs";
17
- import "./chunk-O7YRGPXQ.mjs";
18
- import "./chunk-5SH5BFJ4.mjs";
19
- export {
20
- CONTROL_BYPASS_PSEUDO,
21
- PseudoClasses,
22
- variantBreakpoints,
23
- variantChildren,
24
- variantColorsClass,
25
- variantColorsMedia,
26
- variantImportant,
27
- variantNegative,
28
- variantPseudoClasses,
29
- variantPseudoElements,
30
- variantSpace,
31
- variants
32
- };
1
+ export { c as variantBreakpoints, d as variantChildren, b as variantColorsClass, a as variantColorsMedia, e as variantImportant, f as variantNegative, g as variantSpace, v as variants } from './chunks/default3.mjs';
2
+ export { C as CONTROL_BYPASS_PSEUDO, P as PseudoClasses, v as variantPseudoClasses, a as variantPseudoElements } from './chunks/pseudo.mjs';
3
+ import './chunks/variants.mjs';
4
+ import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -21,38 +21,38 @@
21
21
  "sideEffects": false,
22
22
  "exports": {
23
23
  ".": {
24
- "require": "./dist/index.js",
24
+ "require": "./dist/index.cjs",
25
25
  "import": "./dist/index.mjs",
26
26
  "types": "./dist/index.d.ts"
27
27
  },
28
28
  "./theme": {
29
- "require": "./dist/theme.js",
29
+ "require": "./dist/theme.cjs",
30
30
  "import": "./dist/theme.mjs",
31
31
  "types": "./dist/theme.d.ts"
32
32
  },
33
33
  "./variants": {
34
- "require": "./dist/variants.js",
34
+ "require": "./dist/variants.cjs",
35
35
  "import": "./dist/variants.mjs",
36
36
  "types": "./dist/variants.d.ts"
37
37
  },
38
38
  "./rules": {
39
- "require": "./dist/rules.js",
39
+ "require": "./dist/rules.cjs",
40
40
  "import": "./dist/rules.mjs",
41
41
  "types": "./dist/rules.d.ts"
42
42
  },
43
43
  "./colors": {
44
- "require": "./dist/colors.js",
44
+ "require": "./dist/colors.cjs",
45
45
  "import": "./dist/colors.mjs",
46
46
  "types": "./dist/colors.d.ts"
47
47
  },
48
48
  "./utils": {
49
- "require": "./dist/utils.js",
49
+ "require": "./dist/utils.cjs",
50
50
  "import": "./dist/utils.mjs",
51
51
  "types": "./dist/utils.d.ts"
52
52
  },
53
53
  "./*": "./*"
54
54
  },
55
- "main": "dist/index.js",
55
+ "main": "dist/index.cjs",
56
56
  "module": "dist/index.mjs",
57
57
  "types": "dist/index.d.ts",
58
58
  "files": [
@@ -60,10 +60,10 @@
60
60
  "*.css"
61
61
  ],
62
62
  "dependencies": {
63
- "@unocss/core": "0.14.2"
63
+ "@unocss/core": "0.14.3"
64
64
  },
65
65
  "scripts": {
66
- "build": "tsup",
67
- "dev": "tsup --watch src"
66
+ "build": "unbuild",
67
+ "stub": "unbuild --stub"
68
68
  }
69
69
  }
@@ -1,11 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- var __export = (target, all) => {
4
- __markAsModule(target);
5
- for (var name in all)
6
- __defProp(target, name, { get: all[name], enumerable: true });
7
- };
8
-
9
- export {
10
- __export
11
- };
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- var __export = (target, all) => {
4
- __markAsModule(target);
5
- for (var name in all)
6
- __defProp(target, name, { get: all[name], enumerable: true });
7
- };
8
-
9
-
10
-
11
- exports.__export = __export;
package/dist/colors.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
4
- require('./chunk-Y6EUTGDC.js');
5
-
6
-
7
- exports.colors = _chunk7O4GGKN3js.colors;
package/dist/index.js DELETED
@@ -1,40 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkVYMMTQ2Njs = require('./chunk-VYMMTQ2N.js');
5
-
6
-
7
- var _chunkBOWXQI3Bjs = require('./chunk-BOWXQI3B.js');
8
-
9
-
10
- var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
11
-
12
-
13
-
14
-
15
- var _chunkHD4ZLDCQjs = require('./chunk-HD4ZLDCQ.js');
16
- require('./chunk-VQNLS43G.js');
17
- require('./chunk-LPZDYB4J.js');
18
- require('./chunk-Y6EUTGDC.js');
19
-
20
- // src/index.ts
21
- var preset = (options = {}) => ({
22
- name: "@unocss/preset-uno",
23
- theme: _chunkBOWXQI3Bjs.theme,
24
- rules: _chunkVYMMTQ2Njs.rules,
25
- variants: [
26
- ..._chunkHD4ZLDCQjs.variants,
27
- ...options.dark === "media" ? _chunkHD4ZLDCQjs.variantColorsMedia : _chunkHD4ZLDCQjs.variantColorsClass
28
- ],
29
- shortcuts: [
30
- ..._chunkVYMMTQ2Njs.containerShortcuts
31
- ],
32
- options
33
- });
34
- var src_default = preset;
35
-
36
-
37
-
38
-
39
-
40
- exports.colors = _chunk7O4GGKN3js.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkBOWXQI3Bjs.theme;