@unocss/preset-uno 0.12.12 → 0.12.16
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/{chunk-MHI4RVPC.mjs → chunk-EE3IQZ3A.mjs} +10 -3
- package/dist/{chunk-U7TNZJ45.js → chunk-GBKIE2NK.js} +122 -74
- package/dist/{chunk-656YWVSK.js → chunk-LPZDYB4J.js} +5 -2
- package/dist/{chunk-5KT772UE.mjs → chunk-O7YRGPXQ.mjs} +5 -2
- package/dist/{chunk-K3A4DMZK.mjs → chunk-RDUXYWRV.mjs} +51 -3
- package/dist/{chunk-JGM7CE2A.js → chunk-ZSTIMFUC.js} +17 -10
- package/dist/index.js +9 -8
- package/dist/index.mjs +5 -4
- package/dist/rules.d.ts +2 -1
- package/dist/rules.js +5 -3
- package/dist/rules.mjs +4 -2
- package/dist/utils.js +2 -2
- package/dist/utils.mjs +1 -1
- package/dist/variants.js +3 -3
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
variantMatcher
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O7YRGPXQ.mjs";
|
|
4
4
|
|
|
5
5
|
// src/variants/breakpoints.ts
|
|
6
6
|
var regexCache = {};
|
|
7
7
|
var variantBreakpoints = (matcher, _, theme) => {
|
|
8
|
-
|
|
8
|
+
const variantEntries = Object.entries(theme.breakpoints || {}).map(([point, size], idx) => [point, size, idx]);
|
|
9
|
+
for (const [point, size, idx] of variantEntries) {
|
|
9
10
|
if (!regexCache[point])
|
|
10
|
-
regexCache[point] = new RegExp(`^((?:
|
|
11
|
+
regexCache[point] = new RegExp(`^((?:[a|l]t-)?${point}[:-])`);
|
|
11
12
|
const match = matcher.match(regexCache[point]);
|
|
12
13
|
if (!match)
|
|
13
14
|
continue;
|
|
@@ -21,6 +22,12 @@ var variantBreakpoints = (matcher, _, theme) => {
|
|
|
21
22
|
const m = matcher.slice(pre.length);
|
|
22
23
|
if (m === "container")
|
|
23
24
|
continue;
|
|
25
|
+
if (pre.startsWith("at-") && idx < variantEntries.length - 1) {
|
|
26
|
+
return {
|
|
27
|
+
matcher: m,
|
|
28
|
+
parent: [`@media (min-width: ${size}) and (max-width: ${variantEntries[idx + 1][1]})`, order]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
24
31
|
return {
|
|
25
32
|
matcher: m,
|
|
26
33
|
parent: [`@media (${direction}-width: ${size})`, order]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLPZDYB4Jjs = require('./chunk-LPZDYB4J.js');
|
|
8
8
|
|
|
9
9
|
// src/rules/align.ts
|
|
10
10
|
var verticalAlignAlias = {
|
|
@@ -124,16 +124,59 @@ var keyframes = {
|
|
|
124
124
|
"back-out-right": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}",
|
|
125
125
|
"back-out-left": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"
|
|
126
126
|
};
|
|
127
|
+
var durations = {
|
|
128
|
+
"heart-beat": "1.3s",
|
|
129
|
+
"bounce-in": "0.75s",
|
|
130
|
+
"bounce-out": "0.75s",
|
|
131
|
+
"flip-out-x": "0.75s",
|
|
132
|
+
"flip-out-y": "0.75s",
|
|
133
|
+
"hinge": "2s"
|
|
134
|
+
};
|
|
135
|
+
var timingFns = {
|
|
136
|
+
"head-shake": "ease-in-out",
|
|
137
|
+
"heart-beat": "ease-in-out",
|
|
138
|
+
"pulse": "ease-in-out",
|
|
139
|
+
"light-speed-in-left": "ease-out",
|
|
140
|
+
"light-speed-in-right": "ease-out",
|
|
141
|
+
"light-speed-out-left": "ease-in",
|
|
142
|
+
"light-speed-out-right": "ease-in"
|
|
143
|
+
};
|
|
144
|
+
var properties = {
|
|
145
|
+
"bounce": { "transform-origin": "center bottom" },
|
|
146
|
+
"jello": { "transform-origin": "center" },
|
|
147
|
+
"swing": { "transform-origin": "top center" },
|
|
148
|
+
"flip": { "backface-visibility": "visible" },
|
|
149
|
+
"flip-in-x": { "backface-visibility": "visible !important" },
|
|
150
|
+
"flip-in-y": { "backface-visibility": "visible !important" },
|
|
151
|
+
"flip-out-x": { "backface-visibility": "visible !important" },
|
|
152
|
+
"flip-out-y": { "backface-visibility": "visible !important" },
|
|
153
|
+
"rotate-in": { "transform-origin": "center" },
|
|
154
|
+
"rotate-in-down-left": { "transform-origin": "left bottom" },
|
|
155
|
+
"rotate-in-down-right": { "transform-origin": "right bottom" },
|
|
156
|
+
"rotate-in-up-left": { "transform-origin": "left bottom" },
|
|
157
|
+
"rotate-in-up-right": { "transform-origin": "right bottom" },
|
|
158
|
+
"rotate-out": { "transform-origin": "center" },
|
|
159
|
+
"rotate-out-down-left": { "transform-origin": "left bottom" },
|
|
160
|
+
"rotate-out-down-right": { "transform-origin": "right bottom" },
|
|
161
|
+
"rotate-out-up-left": { "transform-origin": "left bottom" },
|
|
162
|
+
"rotate-out-up-right": { "transform-origin": "right bottom" },
|
|
163
|
+
"hinge": { "transform-origin": "top left" },
|
|
164
|
+
"zoom-out-down": { "transform-origin": "center bottom" },
|
|
165
|
+
"zoom-out-left": { "transform-origin": "left center" },
|
|
166
|
+
"zoom-out-right": { "transform-origin": "right center" },
|
|
167
|
+
"zoom-out-up": { "transform-origin": "center bottom" }
|
|
168
|
+
};
|
|
127
169
|
var animations = [
|
|
128
170
|
[/^animate-(.*)$/, ([, name], { constructCSS }) => {
|
|
129
171
|
const kf = keyframes[name];
|
|
130
|
-
if (kf)
|
|
172
|
+
if (kf) {
|
|
131
173
|
return `@keyframes ${name}${kf}
|
|
132
|
-
${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
174
|
+
${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${timingFns[name] || "linear"} infinite` }, properties[name]))}`;
|
|
175
|
+
}
|
|
133
176
|
}],
|
|
134
177
|
["animate-none", { animation: "none" }],
|
|
135
|
-
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration":
|
|
136
|
-
[/^animate-delay-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-delay":
|
|
178
|
+
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration": _chunkLPZDYB4Jjs.handler.bracket.time(d.replace(/-duration/, "")) })],
|
|
179
|
+
[/^animate-delay-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-delay": _chunkLPZDYB4Jjs.handler.bracket.time(d) })],
|
|
137
180
|
[/^animate-(?:fill-)?mode-(none|forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
|
|
138
181
|
[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
|
|
139
182
|
[/^animate-(?:iteration-)?count-(.+)$/, ([, d]) => ({ "animation-iteration-count": d.replace(/\-/g, ", ") })],
|
|
@@ -150,7 +193,7 @@ var parseColorUtil = (body, theme) => {
|
|
|
150
193
|
if (!name)
|
|
151
194
|
return;
|
|
152
195
|
let color;
|
|
153
|
-
const bracket =
|
|
196
|
+
const bracket = _chunkLPZDYB4Jjs.handler.bracket(main) || main;
|
|
154
197
|
if (bracket.startsWith("#"))
|
|
155
198
|
color = bracket.slice(1);
|
|
156
199
|
if (bracket.startsWith("hex-"))
|
|
@@ -177,7 +220,7 @@ var colorResolver = (attribute, varName) => ([, body], { theme }) => {
|
|
|
177
220
|
const { opacity: opacity2, color, rgba } = data;
|
|
178
221
|
if (!color)
|
|
179
222
|
return;
|
|
180
|
-
const a = opacity2 ? opacity2[0] === "[" ?
|
|
223
|
+
const a = opacity2 ? opacity2[0] === "[" ? _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) : parseFloat(opacity2) / 100 : rgba == null ? void 0 : rgba[3];
|
|
181
224
|
if (rgba) {
|
|
182
225
|
if (a != null && !Number.isNaN(a)) {
|
|
183
226
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
@@ -197,11 +240,11 @@ var colorResolver = (attribute, varName) => ([, body], { theme }) => {
|
|
|
197
240
|
}
|
|
198
241
|
};
|
|
199
242
|
var opacity = [
|
|
200
|
-
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity:
|
|
243
|
+
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: _chunkLPZDYB4Jjs.handler.bracket.percent.cssvar(d) })]
|
|
201
244
|
];
|
|
202
245
|
var textColors = [
|
|
203
246
|
[/^(?:text|color|c)-(.+)$/, colorResolver("color", "text")],
|
|
204
|
-
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-opacity":
|
|
247
|
+
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent.cssvar(opacity2) })]
|
|
205
248
|
];
|
|
206
249
|
var textDecorationColors = [
|
|
207
250
|
[/^underline-(.+)$/, (match, ctx) => {
|
|
@@ -213,36 +256,36 @@ var textDecorationColors = [
|
|
|
213
256
|
};
|
|
214
257
|
}
|
|
215
258
|
}],
|
|
216
|
-
[/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity":
|
|
259
|
+
[/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
217
260
|
];
|
|
218
261
|
var textStrokeColors = [
|
|
219
262
|
[/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke")],
|
|
220
|
-
[/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-stroke-opacity":
|
|
263
|
+
[/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-stroke-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
221
264
|
];
|
|
222
265
|
var bgColors = [
|
|
223
266
|
[/^bg-(.+)$/, colorResolver("background-color", "bg")],
|
|
224
|
-
[/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity":
|
|
267
|
+
[/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
225
268
|
];
|
|
226
269
|
var borderColors = [
|
|
227
270
|
[/^(?:border|b)-(.+)$/, colorResolver("border-color", "border")],
|
|
228
|
-
[/^(?:border|b)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-border-opacity":
|
|
271
|
+
[/^(?:border|b)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-border-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
229
272
|
];
|
|
230
273
|
var ringColors = [
|
|
231
274
|
[/^ring-(.+)$/, colorResolver("--un-ring-color", "ring")],
|
|
232
|
-
[/^ring-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-opacity":
|
|
275
|
+
[/^ring-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
233
276
|
];
|
|
234
277
|
var ringOffsetColors = [
|
|
235
278
|
[/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset")],
|
|
236
|
-
[/^ring-offset-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-offset-opacity":
|
|
279
|
+
[/^ring-offset-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-offset-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
237
280
|
];
|
|
238
281
|
var divideColors = [
|
|
239
282
|
[/^divide-(.+)$/, colorResolver("border-color", "divide")],
|
|
240
|
-
[/^divide-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-divide-opacity":
|
|
283
|
+
[/^divide-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-divide-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
241
284
|
];
|
|
242
285
|
var fillColors = [
|
|
243
286
|
["fill-none", { fill: "none" }],
|
|
244
287
|
[/^fill-(.+)$/, colorResolver("fill", "fill")],
|
|
245
|
-
[/^fill-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-fill-opacity":
|
|
288
|
+
[/^fill-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-fill-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
246
289
|
];
|
|
247
290
|
|
|
248
291
|
// src/rules/background.ts
|
|
@@ -255,7 +298,7 @@ var colorResolver2 = (mode) => ([, body], { theme }) => {
|
|
|
255
298
|
return;
|
|
256
299
|
let colorString = color;
|
|
257
300
|
if (rgba) {
|
|
258
|
-
const a = opacity2 ? opacity2[0] === "[" ?
|
|
301
|
+
const a = opacity2 ? opacity2[0] === "[" ? _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) : parseFloat(opacity2) / 100 : rgba[3];
|
|
259
302
|
if (a != null && !Number.isNaN(a)) {
|
|
260
303
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
261
304
|
colorString = `rgba(${rgba.join(",")})`;
|
|
@@ -312,9 +355,9 @@ var bgGradients = [
|
|
|
312
355
|
[/^from-(.+)$/, colorResolver2("from")],
|
|
313
356
|
[/^to-(.+)$/, colorResolver2("to")],
|
|
314
357
|
[/^via-(.+)$/, colorResolver2("via")],
|
|
315
|
-
[/^from-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-from-opacity":
|
|
316
|
-
[/^to-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-to-opacity":
|
|
317
|
-
[/^via-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-via-opacity":
|
|
358
|
+
[/^from-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-from-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })],
|
|
359
|
+
[/^to-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-to-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })],
|
|
360
|
+
[/^via-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-via-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
318
361
|
];
|
|
319
362
|
var bgImages = [
|
|
320
363
|
["bg-none", { "background-image": "none" }],
|
|
@@ -378,7 +421,7 @@ var outlineStyle = ["none", "auto", "dotted", "dashed", "solid", "double", "groo
|
|
|
378
421
|
var listStyleProps = ["none", "disc", "circle", "square", "decimal", "zero-decimal", "greek", "roman", "upper-roman", "alpha", "upper-alpha"];
|
|
379
422
|
var parseOutlineSize = (s) => {
|
|
380
423
|
const propName = ["width", "offset"].find((item) => s.startsWith(item)) || "width";
|
|
381
|
-
const size =
|
|
424
|
+
const size = _chunkLPZDYB4Jjs.handler.bracket.fraction.rem(s.replace(/^(offset\-|width\-)/, ""));
|
|
382
425
|
if (size) {
|
|
383
426
|
return {
|
|
384
427
|
[`outline-${propName}`]: size
|
|
@@ -441,7 +484,7 @@ var boxDecorationBreaks = [
|
|
|
441
484
|
["decoration-clone", { "box-decoration-break": "clone" }]
|
|
442
485
|
];
|
|
443
486
|
var caretOpacity = [
|
|
444
|
-
[/^caret-op(?:acity)?-?(.+)$/, ([, d]) => ({ "--un-caret-opacity":
|
|
487
|
+
[/^caret-op(?:acity)?-?(.+)$/, ([, d]) => ({ "--un-caret-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(d) })]
|
|
445
488
|
];
|
|
446
489
|
var caretColors = [
|
|
447
490
|
[/^caret-(.+)$/, colorResolver("caret-color", "caret")]
|
|
@@ -467,7 +510,7 @@ var placeholder = [
|
|
|
467
510
|
[
|
|
468
511
|
/^placeholder-opacity-(\d+)$/,
|
|
469
512
|
([, d]) => ({
|
|
470
|
-
"placeholder-opacity":
|
|
513
|
+
"placeholder-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(d)
|
|
471
514
|
})
|
|
472
515
|
],
|
|
473
516
|
[
|
|
@@ -516,21 +559,21 @@ var borders = [
|
|
|
516
559
|
borderRadius
|
|
517
560
|
].flat(1);
|
|
518
561
|
function handlerBorder([, a, b]) {
|
|
519
|
-
const [d, s = "1"] =
|
|
520
|
-
const v =
|
|
562
|
+
const [d, s = "1"] = _chunkLPZDYB4Jjs.directionMap[a] ? [a, b] : ["", a];
|
|
563
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
521
564
|
if (v != null) {
|
|
522
565
|
return [
|
|
523
|
-
...
|
|
566
|
+
..._chunkLPZDYB4Jjs.directionMap[d].map((i) => [`border${i}-width`, v]),
|
|
524
567
|
["border-style", "solid"]
|
|
525
568
|
];
|
|
526
569
|
}
|
|
527
570
|
}
|
|
528
571
|
function handlerRounded([, a, b], { theme }) {
|
|
529
572
|
var _a;
|
|
530
|
-
const [d, s = "DEFAULT"] =
|
|
531
|
-
const v = ((_a = theme.borderRadius) == null ? void 0 : _a[s]) ||
|
|
573
|
+
const [d, s = "DEFAULT"] = _chunkLPZDYB4Jjs.cornerMap[a] ? [a, b] : ["", a];
|
|
574
|
+
const v = ((_a = theme.borderRadius) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.fraction.rem(s);
|
|
532
575
|
if (v != null)
|
|
533
|
-
return
|
|
576
|
+
return _chunkLPZDYB4Jjs.cornerMap[d].map((i) => [`border${i}-radius`, v]);
|
|
534
577
|
}
|
|
535
578
|
|
|
536
579
|
// src/rules/container.ts
|
|
@@ -665,7 +708,7 @@ var transitions = [
|
|
|
665
708
|
|
|
666
709
|
var varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
667
710
|
var percentWithDefault = (defaultValue = "1") => (str) => {
|
|
668
|
-
const v = str ?
|
|
711
|
+
const v = str ? _chunkLPZDYB4Jjs.handler.bracket.percent(str) : defaultValue;
|
|
669
712
|
return v && parseFloat(v) <= 1 ? v : void 0;
|
|
670
713
|
};
|
|
671
714
|
var toFilter = (varName, resolver) => ([, b, s], { theme }) => {
|
|
@@ -709,18 +752,18 @@ var filters = [
|
|
|
709
752
|
}],
|
|
710
753
|
[/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) => {
|
|
711
754
|
var _a;
|
|
712
|
-
return ((_a = theme.blur) == null ? void 0 : _a[s || "DEFAULT"]) ||
|
|
755
|
+
return ((_a = theme.blur) == null ? void 0 : _a[s || "DEFAULT"]) || _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
713
756
|
})],
|
|
714
|
-
[/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) =>
|
|
715
|
-
[/^(backdrop-)?contrast-(\d+)$/, toFilter("contrast", (s) =>
|
|
757
|
+
[/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) => _chunkLPZDYB4Jjs.handler.bracket.percent(s))],
|
|
758
|
+
[/^(backdrop-)?contrast-(\d+)$/, toFilter("contrast", (s) => _chunkLPZDYB4Jjs.handler.bracket.percent(s))],
|
|
716
759
|
[/^()?drop-shadow(?:-(.+))?$/, toFilter("drop-shadow", (s, theme) => {
|
|
717
760
|
var _a;
|
|
718
|
-
const v =
|
|
761
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket(s) || ((_a = theme.dropShadow) == null ? void 0 : _a[s || "DEFAULT"]);
|
|
719
762
|
if (v)
|
|
720
763
|
return _core.toArray.call(void 0, v).map((v2) => `drop-shadow(${v2})`).join(" ");
|
|
721
764
|
})],
|
|
722
765
|
[/^(backdrop-)?grayscale(?:-(\d+))?$/, toFilter("grayscale", percentWithDefault())],
|
|
723
|
-
[/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${
|
|
766
|
+
[/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${_chunkLPZDYB4Jjs.handler.bracket.number(s)}deg`)],
|
|
724
767
|
[/^(backdrop-)?invert(?:-(\d+))?$/, toFilter("invert", percentWithDefault())],
|
|
725
768
|
[/^(backdrop-)?saturate(?:-(\d+))?$/, toFilter("saturate", percentWithDefault("0"))],
|
|
726
769
|
[/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())]
|
|
@@ -776,7 +819,7 @@ var weightMap = {
|
|
|
776
819
|
var fontSizes = [
|
|
777
820
|
[/^text-([^-]+)$/, ([, s = "base"], { theme }) => {
|
|
778
821
|
var _a;
|
|
779
|
-
const result = _core.toArray.call(void 0, ((_a = theme.fontSize) == null ? void 0 : _a[s]) ||
|
|
822
|
+
const result = _core.toArray.call(void 0, ((_a = theme.fontSize) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.rem(s));
|
|
780
823
|
if (result == null ? void 0 : result[0]) {
|
|
781
824
|
const [size, height = "1"] = result;
|
|
782
825
|
return {
|
|
@@ -788,7 +831,7 @@ var fontSizes = [
|
|
|
788
831
|
];
|
|
789
832
|
var fontWeights = [
|
|
790
833
|
[/^(?:font|fw)-?([^-]+)$/, ([, s]) => {
|
|
791
|
-
const v = weightMap[s] ||
|
|
834
|
+
const v = weightMap[s] || _chunkLPZDYB4Jjs.handler.number(s);
|
|
792
835
|
if (v)
|
|
793
836
|
return { "font-weight": v };
|
|
794
837
|
}]
|
|
@@ -796,7 +839,7 @@ var fontWeights = [
|
|
|
796
839
|
var leadings = [
|
|
797
840
|
[/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => {
|
|
798
841
|
var _a;
|
|
799
|
-
const v = ((_a = theme.lineHeight) == null ? void 0 : _a[s]) ||
|
|
842
|
+
const v = ((_a = theme.lineHeight) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
800
843
|
if (v !== null)
|
|
801
844
|
return { "line-height": v };
|
|
802
845
|
}]
|
|
@@ -804,7 +847,7 @@ var leadings = [
|
|
|
804
847
|
var trackings = [
|
|
805
848
|
[/^tracking-([^-]+)$/, ([, s], { theme }) => {
|
|
806
849
|
var _a;
|
|
807
|
-
const v = ((_a = theme.letterSpacing) == null ? void 0 : _a[s]) ||
|
|
850
|
+
const v = ((_a = theme.letterSpacing) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
808
851
|
if (v !== null)
|
|
809
852
|
return { "letter-spacing": v };
|
|
810
853
|
}]
|
|
@@ -812,7 +855,7 @@ var trackings = [
|
|
|
812
855
|
var wordSpacings = [
|
|
813
856
|
[/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
|
|
814
857
|
var _a;
|
|
815
|
-
const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) ||
|
|
858
|
+
const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
816
859
|
if (v !== null)
|
|
817
860
|
return { "word-spacing": v };
|
|
818
861
|
}]
|
|
@@ -820,7 +863,7 @@ var wordSpacings = [
|
|
|
820
863
|
var tabSizes = [
|
|
821
864
|
[/^tab-?([^-]*)$/, ([, s]) => {
|
|
822
865
|
s = s || "4";
|
|
823
|
-
const v =
|
|
866
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.global.number(s);
|
|
824
867
|
if (v !== null) {
|
|
825
868
|
return {
|
|
826
869
|
"-moz-tab-size": v,
|
|
@@ -832,14 +875,14 @@ var tabSizes = [
|
|
|
832
875
|
];
|
|
833
876
|
var textDecorationLengths = [
|
|
834
877
|
[/^underline-([^-]+)$/, ([, s]) => {
|
|
835
|
-
const v = s === "auto" ? s :
|
|
878
|
+
const v = s === "auto" ? s : _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
836
879
|
if (v != null)
|
|
837
880
|
return { "text-decoration-thickness": v };
|
|
838
881
|
}]
|
|
839
882
|
];
|
|
840
883
|
var textDecorationOffsets = [
|
|
841
884
|
[/^underline-offset-([^-]+)$/, ([, s]) => {
|
|
842
|
-
const v = s === "auto" ? s :
|
|
885
|
+
const v = s === "auto" ? s : _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
843
886
|
if (v != null)
|
|
844
887
|
return { "text-underline-offset": v };
|
|
845
888
|
}]
|
|
@@ -847,7 +890,7 @@ var textDecorationOffsets = [
|
|
|
847
890
|
var textIndents = [
|
|
848
891
|
[/^indent(?:-(.+))?$/, ([, s], { theme }) => {
|
|
849
892
|
var _a;
|
|
850
|
-
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) ||
|
|
893
|
+
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.fraction.rem(s);
|
|
851
894
|
if (v != null)
|
|
852
895
|
return { "text-indent": v };
|
|
853
896
|
}]
|
|
@@ -855,7 +898,7 @@ var textIndents = [
|
|
|
855
898
|
var textStrokeWidths = [
|
|
856
899
|
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
|
|
857
900
|
var _a;
|
|
858
|
-
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) ||
|
|
901
|
+
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.px(s);
|
|
859
902
|
if (v != null)
|
|
860
903
|
return { "-webkit-text-stroke-width": v };
|
|
861
904
|
}]
|
|
@@ -863,7 +906,7 @@ var textStrokeWidths = [
|
|
|
863
906
|
var textShadows = [
|
|
864
907
|
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
865
908
|
var _a;
|
|
866
|
-
const v = ((_a = theme.textShadow) == null ? void 0 : _a[s || "DEFAULT"]) ||
|
|
909
|
+
const v = ((_a = theme.textShadow) == null ? void 0 : _a[s || "DEFAULT"]) || _chunkLPZDYB4Jjs.handler.bracket.cssvar(s);
|
|
867
910
|
if (v != null)
|
|
868
911
|
return { "text-shadow": v };
|
|
869
912
|
}]
|
|
@@ -877,7 +920,7 @@ var fonts = [
|
|
|
877
920
|
// src/rules/gap.ts
|
|
878
921
|
var gaps = [
|
|
879
922
|
[/^(?:flex-|grid-)?gap-([^-]+)$/, ([, s]) => {
|
|
880
|
-
const v =
|
|
923
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
881
924
|
if (v != null) {
|
|
882
925
|
return {
|
|
883
926
|
"grid-gap": v,
|
|
@@ -886,7 +929,7 @@ var gaps = [
|
|
|
886
929
|
}
|
|
887
930
|
}],
|
|
888
931
|
[/^(?:flex-|grid-)?gap-x-([^-]+)$/, ([, s]) => {
|
|
889
|
-
const v =
|
|
932
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
890
933
|
if (v != null) {
|
|
891
934
|
return {
|
|
892
935
|
"grid-column-gap": v,
|
|
@@ -895,7 +938,7 @@ var gaps = [
|
|
|
895
938
|
}
|
|
896
939
|
}],
|
|
897
940
|
[/^(?:flex-|grid-)?gap-y-([^-]+)$/, ([, s]) => {
|
|
898
|
-
const v =
|
|
941
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
899
942
|
if (v != null) {
|
|
900
943
|
return {
|
|
901
944
|
"grid-row-gap": v,
|
|
@@ -909,7 +952,7 @@ var gaps = [
|
|
|
909
952
|
|
|
910
953
|
var calSize = (s, theme) => {
|
|
911
954
|
var _a;
|
|
912
|
-
return _core.toArray.call(void 0, ((_a = theme.fontSize) == null ? void 0 : _a[s]) ||
|
|
955
|
+
return _core.toArray.call(void 0, ((_a = theme.fontSize) == null ? void 0 : _a[s]) || _chunkLPZDYB4Jjs.handler.bracket.rem(s))[0];
|
|
913
956
|
};
|
|
914
957
|
var autoDirection = (selector, theme) => {
|
|
915
958
|
if (selector === "min")
|
|
@@ -932,7 +975,7 @@ var grids = [
|
|
|
932
975
|
[/^(?:grid-)?(row|col)-(.+)$/, ([, d, v]) => {
|
|
933
976
|
var _a;
|
|
934
977
|
const key = d === "row" ? "grid-row" : "grid-column";
|
|
935
|
-
let raw =
|
|
978
|
+
let raw = _chunkLPZDYB4Jjs.handler.bracket(v);
|
|
936
979
|
if (raw)
|
|
937
980
|
return { [key]: raw };
|
|
938
981
|
const parts = v.split("-");
|
|
@@ -941,7 +984,7 @@ var grids = [
|
|
|
941
984
|
if (parts[0] === "span") {
|
|
942
985
|
if (parts[1] === "full")
|
|
943
986
|
return { [key]: "1/-1" };
|
|
944
|
-
raw = (_a =
|
|
987
|
+
raw = (_a = _chunkLPZDYB4Jjs.handler.number.bracket(parts[1])) == null ? void 0 : _a.toString().replace(/_/g, " ");
|
|
945
988
|
if (raw)
|
|
946
989
|
return { [key]: `span ${raw}/span ${raw}` };
|
|
947
990
|
}
|
|
@@ -984,7 +1027,7 @@ var justifies = [
|
|
|
984
1027
|
["justify-evenly", { "justify-content": "space-evenly" }]
|
|
985
1028
|
];
|
|
986
1029
|
var orders = [
|
|
987
|
-
[/^order-(.+)$/, ([, v]) => ({ order: { first: "-9999", last: "9999", none: "0" }[v] ||
|
|
1030
|
+
[/^order-(.+)$/, ([, v]) => ({ order: { first: "-9999", last: "9999", none: "0" }[v] || _chunkLPZDYB4Jjs.handler.bracket.number(v) })]
|
|
988
1031
|
];
|
|
989
1032
|
var basicSet = ["auto", "start", "end", "center", "stretch"];
|
|
990
1033
|
var justifyItems = basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]);
|
|
@@ -1024,14 +1067,14 @@ var placeItems = basicSet.map((i) => [`place-items-${i}`, { "place-items": i }])
|
|
|
1024
1067
|
var placeSelfs = basicSet.map((i) => [`place-self-${i}`, { "place-self": i }]);
|
|
1025
1068
|
function handleInsetValue(v) {
|
|
1026
1069
|
var _a;
|
|
1027
|
-
return (_a = { auto: "auto", full: "100%" }[v]) != null ? _a :
|
|
1070
|
+
return (_a = { auto: "auto", full: "100%" }[v]) != null ? _a : _chunkLPZDYB4Jjs.handler.bracket.fraction.cssvar.rem(v);
|
|
1028
1071
|
}
|
|
1029
1072
|
var insets = [
|
|
1030
1073
|
[/^(top|left|right|bottom|inset)-(.+)$/, ([, d, v]) => ({ [d]: handleInsetValue(v) })],
|
|
1031
1074
|
[/^inset-([xy])-(.+)$/, ([, d, v]) => {
|
|
1032
1075
|
const r = handleInsetValue(v);
|
|
1033
|
-
if (r != null && d in
|
|
1034
|
-
return
|
|
1076
|
+
if (r != null && d in _chunkLPZDYB4Jjs.directionMap)
|
|
1077
|
+
return _chunkLPZDYB4Jjs.directionMap[d].map((i) => [i.slice(1), r]);
|
|
1035
1078
|
}]
|
|
1036
1079
|
];
|
|
1037
1080
|
var floats = [
|
|
@@ -1040,7 +1083,7 @@ var floats = [
|
|
|
1040
1083
|
];
|
|
1041
1084
|
var zIndexes = [
|
|
1042
1085
|
["z-auto", { "z-index": "auto" }],
|
|
1043
|
-
[/^z-([^-]+)$/, ([, v]) => ({ "z-index":
|
|
1086
|
+
[/^z-([^-]+)$/, ([, v]) => ({ "z-index": _chunkLPZDYB4Jjs.handler.number(v) })]
|
|
1044
1087
|
];
|
|
1045
1088
|
var objectPositions = [
|
|
1046
1089
|
["object-cover", { "object-fit": "cover" }],
|
|
@@ -1072,7 +1115,7 @@ var boxSizing = [
|
|
|
1072
1115
|
// src/rules/ring.ts
|
|
1073
1116
|
var rings = [
|
|
1074
1117
|
[/^ring-?(.*)$/, ([, d]) => {
|
|
1075
|
-
const value =
|
|
1118
|
+
const value = _chunkLPZDYB4Jjs.handler.px(d || "1");
|
|
1076
1119
|
if (value) {
|
|
1077
1120
|
return {
|
|
1078
1121
|
"--un-ring-inset": "var(--un-empty, )",
|
|
@@ -1087,7 +1130,7 @@ var rings = [
|
|
|
1087
1130
|
}
|
|
1088
1131
|
}],
|
|
1089
1132
|
[/^ring-offset-?(.*)$/, ([, d]) => {
|
|
1090
|
-
const value =
|
|
1133
|
+
const value = _chunkLPZDYB4Jjs.handler.px(d || "1");
|
|
1091
1134
|
if (value) {
|
|
1092
1135
|
return {
|
|
1093
1136
|
"--un-ring-offset-width": value
|
|
@@ -1160,12 +1203,12 @@ function getThemeValue(minmax, hw, theme, prop) {
|
|
|
1160
1203
|
var _a;
|
|
1161
1204
|
let str = `${hw === "h" ? "height" : "width"}`;
|
|
1162
1205
|
if (minmax)
|
|
1163
|
-
str = `${minmax}${
|
|
1206
|
+
str = `${minmax}${_chunkLPZDYB4Jjs.capitalize.call(void 0, str)}`;
|
|
1164
1207
|
return (_a = theme[str]) == null ? void 0 : _a[prop];
|
|
1165
1208
|
}
|
|
1166
1209
|
var sizes = [
|
|
1167
1210
|
[/^(?:(min|max)-)?(w|h)-(.+)$/, ([, m, w, s], { theme }) => {
|
|
1168
|
-
const v = getThemeValue(m, w, theme, s) ||
|
|
1211
|
+
const v = getThemeValue(m, w, theme, s) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.fraction.rem(s);
|
|
1169
1212
|
if (v != null)
|
|
1170
1213
|
return { [getPropName(m, w)]: v };
|
|
1171
1214
|
}],
|
|
@@ -1179,7 +1222,7 @@ var sizes = [
|
|
|
1179
1222
|
var aspectRatio = [
|
|
1180
1223
|
["aspect-ratio-auto", { "aspect-ratio": "auto" }],
|
|
1181
1224
|
[/^aspect-ratio-(.+)$/, ([, d]) => {
|
|
1182
|
-
const v = (/^\d+\/\d+$/.test(d) ? d : null) ||
|
|
1225
|
+
const v = (/^\d+\/\d+$/.test(d) ? d : null) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.number(d);
|
|
1183
1226
|
if (v != null)
|
|
1184
1227
|
return { "aspect-ratio": v };
|
|
1185
1228
|
}]
|
|
@@ -1187,9 +1230,9 @@ var aspectRatio = [
|
|
|
1187
1230
|
|
|
1188
1231
|
// src/rules/spacing.ts
|
|
1189
1232
|
var directionSize = (prefix) => ([_, direction, size]) => {
|
|
1190
|
-
const v =
|
|
1233
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem.fraction.cssvar(size);
|
|
1191
1234
|
if (v)
|
|
1192
|
-
return
|
|
1235
|
+
return _chunkLPZDYB4Jjs.directionMap[direction].map((i) => [prefix + i, v]);
|
|
1193
1236
|
};
|
|
1194
1237
|
var paddings = [
|
|
1195
1238
|
[/^pa?()-?(-?.+)$/, directionSize("padding")],
|
|
@@ -1253,6 +1296,9 @@ var userSelects = [
|
|
|
1253
1296
|
var whitespaces = [
|
|
1254
1297
|
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
1255
1298
|
];
|
|
1299
|
+
var contents = [
|
|
1300
|
+
["content-empty", { content: '""' }]
|
|
1301
|
+
];
|
|
1256
1302
|
var breaks = [
|
|
1257
1303
|
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1258
1304
|
["break-word", { "overflow-wrap": "break-word" }],
|
|
@@ -1419,23 +1465,23 @@ var transforms = [
|
|
|
1419
1465
|
["origin-top-left", { "transform-origin": "top left" }]
|
|
1420
1466
|
];
|
|
1421
1467
|
function handleTranslate([, d, b]) {
|
|
1422
|
-
const v =
|
|
1468
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.fraction.rem(b);
|
|
1423
1469
|
if (v != null) {
|
|
1424
1470
|
return [
|
|
1425
|
-
...
|
|
1471
|
+
..._chunkLPZDYB4Jjs.xyzMap[d].map((i) => [`--un-translate${i}`, v])
|
|
1426
1472
|
];
|
|
1427
1473
|
}
|
|
1428
1474
|
}
|
|
1429
1475
|
function handleScale([, d, b]) {
|
|
1430
|
-
const v =
|
|
1476
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.fraction.percent(b);
|
|
1431
1477
|
if (v != null) {
|
|
1432
1478
|
return [
|
|
1433
|
-
...
|
|
1479
|
+
..._chunkLPZDYB4Jjs.xyzMap[d].map((i) => [`--un-scale${i}`, v])
|
|
1434
1480
|
];
|
|
1435
1481
|
}
|
|
1436
1482
|
}
|
|
1437
1483
|
function handleRotate([, b]) {
|
|
1438
|
-
const v =
|
|
1484
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.number(b);
|
|
1439
1485
|
if (v != null)
|
|
1440
1486
|
return { "--un-rotate": `${v}deg` };
|
|
1441
1487
|
}
|
|
@@ -1518,10 +1564,10 @@ var divideStyles = [
|
|
|
1518
1564
|
];
|
|
1519
1565
|
var divides = [divideSizes, divideColors, divideStyles].flat(1);
|
|
1520
1566
|
function handlerDivide([, a, b]) {
|
|
1521
|
-
const [d, s = "1"] =
|
|
1522
|
-
const v =
|
|
1567
|
+
const [d, s = "1"] = _chunkLPZDYB4Jjs.directionMap[a] ? [a, b] : ["", a];
|
|
1568
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
1523
1569
|
if (v != null) {
|
|
1524
|
-
const results =
|
|
1570
|
+
const results = _chunkLPZDYB4Jjs.directionMap[d].map((item) => {
|
|
1525
1571
|
const key = `border${item}-width`;
|
|
1526
1572
|
const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
|
|
1527
1573
|
return [key, value];
|
|
@@ -1570,6 +1616,7 @@ var rules = [
|
|
|
1570
1616
|
fillColors,
|
|
1571
1617
|
borders,
|
|
1572
1618
|
divides,
|
|
1619
|
+
contents,
|
|
1573
1620
|
fonts,
|
|
1574
1621
|
tabSizes,
|
|
1575
1622
|
textIndents,
|
|
@@ -1754,4 +1801,5 @@ var rules = [
|
|
|
1754
1801
|
|
|
1755
1802
|
|
|
1756
1803
|
|
|
1757
|
-
|
|
1804
|
+
|
|
1805
|
+
exports.verticalAligns = verticalAligns; exports.textAligns = textAligns; exports.animations = animations; exports.parseColorUtil = parseColorUtil; exports.colorResolver = colorResolver; exports.opacity = opacity; exports.textColors = textColors; exports.textDecorationColors = textDecorationColors; exports.textStrokeColors = textStrokeColors; exports.bgColors = bgColors; exports.borderColors = borderColors; exports.ringColors = ringColors; exports.ringOffsetColors = ringOffsetColors; exports.divideColors = divideColors; exports.fillColors = fillColors; exports.bgAttachments = bgAttachments; exports.bgBlendModes = bgBlendModes; exports.bgClips = bgClips; exports.bgGradients = bgGradients; exports.bgImages = bgImages; exports.bgOrigins = bgOrigins; exports.bgPositions = bgPositions; exports.bgRepeats = bgRepeats; exports.bgSizes = bgSizes; exports.outline = outline; exports.listStyle = listStyle; exports.boxDecorationBreaks = boxDecorationBreaks; exports.caretOpacity = caretOpacity; exports.caretColors = caretColors; exports.imageRenderings = imageRenderings; exports.appearance = appearance; exports.placeholder = placeholder; exports.overscrolls = overscrolls; exports.borderSizes = borderSizes; exports.borderRadius = borderRadius; exports.borderStyles = borderStyles; exports.borders = borders; exports.container = container; exports.containerShortcuts = containerShortcuts; exports.transitions = transitions; exports.filters = filters; exports.flex = flex; exports.fontsFamilies = fontsFamilies; exports.fontSizes = fontSizes; exports.fontWeights = fontWeights; exports.leadings = leadings; exports.trackings = trackings; exports.wordSpacings = wordSpacings; exports.tabSizes = tabSizes; exports.textDecorationLengths = textDecorationLengths; exports.textDecorationOffsets = textDecorationOffsets; exports.textIndents = textIndents; exports.textStrokeWidths = textStrokeWidths; exports.textShadows = textShadows; exports.fonts = fonts; exports.gaps = gaps; exports.grids = grids; exports.overflows = overflows; exports.positions = positions; exports.justifies = justifies; exports.orders = orders; exports.justifyItems = justifyItems; exports.justifySelfs = justifySelfs; exports.alignContents = alignContents; exports.alignItems = alignItems; exports.alignSelfs = alignSelfs; exports.placeContents = placeContents; exports.placeItems = placeItems; exports.placeSelfs = placeSelfs; exports.insets = insets; exports.floats = floats; exports.zIndexes = zIndexes; exports.objectPositions = objectPositions; exports.boxSizing = boxSizing; exports.rings = rings; exports.mixBlendModes = mixBlendModes; exports.boxShadows = boxShadows; exports.sizes = sizes; exports.aspectRatio = aspectRatio; exports.paddings = paddings; exports.margins = margins; exports.displays = displays; exports.appearances = appearances; exports.cursors = cursors; exports.pointerEvents = pointerEvents; exports.resizes = resizes; exports.userSelects = userSelects; exports.whitespaces = whitespaces; exports.contents = contents; exports.breaks = breaks; exports.textOverflows = textOverflows; exports.textTransforms = textTransforms; exports.textDecorations = textDecorations; exports.textDecorationStyles = textDecorationStyles; exports.fontStyles = fontStyles; exports.fontSmoothings = fontSmoothings; exports.hyphens = hyphens; exports.writingModes = writingModes; exports.writingOrientations = writingOrientations; exports.screenReadersAccess = screenReadersAccess; exports.isolations = isolations; exports.tables = tables; exports.transforms = transforms; exports.cssVariables = cssVariables; exports.questionMark = questionMark; exports.divideSizes = divideSizes; exports.divideStyles = divideStyles; exports.divides = divides; exports.lineClamps = lineClamps; exports.rules = rules;
|
|
@@ -99,8 +99,11 @@ function fraction(str) {
|
|
|
99
99
|
return `${num * 100}%`;
|
|
100
100
|
}
|
|
101
101
|
function bracket(str) {
|
|
102
|
-
if (str && str[0] === "[" && str[str.length - 1] === "]")
|
|
103
|
-
return str.slice(1, -1).replace(/_/g, " ")
|
|
102
|
+
if (str && str[0] === "[" && str[str.length - 1] === "]") {
|
|
103
|
+
return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
|
|
104
|
+
return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
|
|
105
|
+
});
|
|
106
|
+
}
|
|
104
107
|
}
|
|
105
108
|
function cssvar(str) {
|
|
106
109
|
if (str.startsWith("$"))
|
|
@@ -99,8 +99,11 @@ function fraction(str) {
|
|
|
99
99
|
return `${num * 100}%`;
|
|
100
100
|
}
|
|
101
101
|
function bracket(str) {
|
|
102
|
-
if (str && str[0] === "[" && str[str.length - 1] === "]")
|
|
103
|
-
return str.slice(1, -1).replace(/_/g, " ")
|
|
102
|
+
if (str && str[0] === "[" && str[str.length - 1] === "]") {
|
|
103
|
+
return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
|
|
104
|
+
return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
|
|
105
|
+
});
|
|
106
|
+
}
|
|
104
107
|
}
|
|
105
108
|
function cssvar(str) {
|
|
106
109
|
if (str.startsWith("$"))
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
directionMap,
|
|
5
5
|
handler,
|
|
6
6
|
xyzMap
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O7YRGPXQ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/rules/align.ts
|
|
10
10
|
var verticalAlignAlias = {
|
|
@@ -124,12 +124,55 @@ var keyframes = {
|
|
|
124
124
|
"back-out-right": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}",
|
|
125
125
|
"back-out-left": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"
|
|
126
126
|
};
|
|
127
|
+
var durations = {
|
|
128
|
+
"heart-beat": "1.3s",
|
|
129
|
+
"bounce-in": "0.75s",
|
|
130
|
+
"bounce-out": "0.75s",
|
|
131
|
+
"flip-out-x": "0.75s",
|
|
132
|
+
"flip-out-y": "0.75s",
|
|
133
|
+
"hinge": "2s"
|
|
134
|
+
};
|
|
135
|
+
var timingFns = {
|
|
136
|
+
"head-shake": "ease-in-out",
|
|
137
|
+
"heart-beat": "ease-in-out",
|
|
138
|
+
"pulse": "ease-in-out",
|
|
139
|
+
"light-speed-in-left": "ease-out",
|
|
140
|
+
"light-speed-in-right": "ease-out",
|
|
141
|
+
"light-speed-out-left": "ease-in",
|
|
142
|
+
"light-speed-out-right": "ease-in"
|
|
143
|
+
};
|
|
144
|
+
var properties = {
|
|
145
|
+
"bounce": { "transform-origin": "center bottom" },
|
|
146
|
+
"jello": { "transform-origin": "center" },
|
|
147
|
+
"swing": { "transform-origin": "top center" },
|
|
148
|
+
"flip": { "backface-visibility": "visible" },
|
|
149
|
+
"flip-in-x": { "backface-visibility": "visible !important" },
|
|
150
|
+
"flip-in-y": { "backface-visibility": "visible !important" },
|
|
151
|
+
"flip-out-x": { "backface-visibility": "visible !important" },
|
|
152
|
+
"flip-out-y": { "backface-visibility": "visible !important" },
|
|
153
|
+
"rotate-in": { "transform-origin": "center" },
|
|
154
|
+
"rotate-in-down-left": { "transform-origin": "left bottom" },
|
|
155
|
+
"rotate-in-down-right": { "transform-origin": "right bottom" },
|
|
156
|
+
"rotate-in-up-left": { "transform-origin": "left bottom" },
|
|
157
|
+
"rotate-in-up-right": { "transform-origin": "right bottom" },
|
|
158
|
+
"rotate-out": { "transform-origin": "center" },
|
|
159
|
+
"rotate-out-down-left": { "transform-origin": "left bottom" },
|
|
160
|
+
"rotate-out-down-right": { "transform-origin": "right bottom" },
|
|
161
|
+
"rotate-out-up-left": { "transform-origin": "left bottom" },
|
|
162
|
+
"rotate-out-up-right": { "transform-origin": "right bottom" },
|
|
163
|
+
"hinge": { "transform-origin": "top left" },
|
|
164
|
+
"zoom-out-down": { "transform-origin": "center bottom" },
|
|
165
|
+
"zoom-out-left": { "transform-origin": "left center" },
|
|
166
|
+
"zoom-out-right": { "transform-origin": "right center" },
|
|
167
|
+
"zoom-out-up": { "transform-origin": "center bottom" }
|
|
168
|
+
};
|
|
127
169
|
var animations = [
|
|
128
170
|
[/^animate-(.*)$/, ([, name], { constructCSS }) => {
|
|
129
171
|
const kf = keyframes[name];
|
|
130
|
-
if (kf)
|
|
172
|
+
if (kf) {
|
|
131
173
|
return `@keyframes ${name}${kf}
|
|
132
|
-
${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
174
|
+
${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${timingFns[name] || "linear"} infinite` }, properties[name]))}`;
|
|
175
|
+
}
|
|
133
176
|
}],
|
|
134
177
|
["animate-none", { animation: "none" }],
|
|
135
178
|
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration": handler.bracket.time(d.replace(/-duration/, "")) })],
|
|
@@ -1253,6 +1296,9 @@ var userSelects = [
|
|
|
1253
1296
|
var whitespaces = [
|
|
1254
1297
|
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
1255
1298
|
];
|
|
1299
|
+
var contents = [
|
|
1300
|
+
["content-empty", { content: '""' }]
|
|
1301
|
+
];
|
|
1256
1302
|
var breaks = [
|
|
1257
1303
|
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1258
1304
|
["break-word", { "overflow-wrap": "break-word" }],
|
|
@@ -1570,6 +1616,7 @@ var rules = [
|
|
|
1570
1616
|
fillColors,
|
|
1571
1617
|
borders,
|
|
1572
1618
|
divides,
|
|
1619
|
+
contents,
|
|
1573
1620
|
fonts,
|
|
1574
1621
|
tabSizes,
|
|
1575
1622
|
textIndents,
|
|
@@ -1733,6 +1780,7 @@ export {
|
|
|
1733
1780
|
resizes,
|
|
1734
1781
|
userSelects,
|
|
1735
1782
|
whitespaces,
|
|
1783
|
+
contents,
|
|
1736
1784
|
breaks,
|
|
1737
1785
|
textOverflows,
|
|
1738
1786
|
textTransforms,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLPZDYB4Jjs = require('./chunk-LPZDYB4J.js');
|
|
4
4
|
|
|
5
5
|
// src/variants/breakpoints.ts
|
|
6
6
|
var regexCache = {};
|
|
7
7
|
var variantBreakpoints = (matcher, _, theme) => {
|
|
8
|
-
|
|
8
|
+
const variantEntries = Object.entries(theme.breakpoints || {}).map(([point, size], idx) => [point, size, idx]);
|
|
9
|
+
for (const [point, size, idx] of variantEntries) {
|
|
9
10
|
if (!regexCache[point])
|
|
10
|
-
regexCache[point] = new RegExp(`^((?:
|
|
11
|
+
regexCache[point] = new RegExp(`^((?:[a|l]t-)?${point}[:-])`);
|
|
11
12
|
const match = matcher.match(regexCache[point]);
|
|
12
13
|
if (!match)
|
|
13
14
|
continue;
|
|
@@ -21,6 +22,12 @@ var variantBreakpoints = (matcher, _, theme) => {
|
|
|
21
22
|
const m = matcher.slice(pre.length);
|
|
22
23
|
if (m === "container")
|
|
23
24
|
continue;
|
|
25
|
+
if (pre.startsWith("at-") && idx < variantEntries.length - 1) {
|
|
26
|
+
return {
|
|
27
|
+
matcher: m,
|
|
28
|
+
parent: [`@media (min-width: ${size}) and (max-width: ${variantEntries[idx + 1][1]})`, order]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
24
31
|
return {
|
|
25
32
|
matcher: m,
|
|
26
33
|
parent: [`@media (${direction}-width: ${size})`, order]
|
|
@@ -30,26 +37,26 @@ var variantBreakpoints = (matcher, _, theme) => {
|
|
|
30
37
|
|
|
31
38
|
// src/variants/children.ts
|
|
32
39
|
var variantChildren = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "children", (input) => `${input} > *`),
|
|
41
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "all", (input) => `${input} *`),
|
|
42
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "next", (input) => `${input}+*`)
|
|
36
43
|
];
|
|
37
44
|
|
|
38
45
|
// src/variants/dark.ts
|
|
39
46
|
var variantColorsClass = [
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "dark", (input) => `.dark $$ ${input}`),
|
|
48
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "light", (input) => `.light $$ ${input}`)
|
|
42
49
|
];
|
|
43
50
|
var variantColorsMedia = [
|
|
44
51
|
(v) => {
|
|
45
|
-
const dark =
|
|
52
|
+
const dark = _chunkLPZDYB4Jjs.variantMatcher.call(void 0, "dark")(v);
|
|
46
53
|
if (dark) {
|
|
47
54
|
return {
|
|
48
55
|
...dark,
|
|
49
56
|
parent: "@media (prefers-color-scheme: dark)"
|
|
50
57
|
};
|
|
51
58
|
}
|
|
52
|
-
const light =
|
|
59
|
+
const light = _chunkLPZDYB4Jjs.variantMatcher.call(void 0, "light")(v);
|
|
53
60
|
if (light) {
|
|
54
61
|
return {
|
|
55
62
|
...light,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGBKIE2NKjs = require('./chunk-GBKIE2NK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkBOWXQI3Bjs = require('./chunk-BOWXQI3B.js');
|
|
@@ -12,22 +12,23 @@ var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkZSTIMFUCjs = require('./chunk-ZSTIMFUC.js');
|
|
16
|
+
require('./chunk-LPZDYB4J.js');
|
|
17
17
|
require('./chunk-Y6EUTGDC.js');
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
var preset = (options = {}) => ({
|
|
21
21
|
name: "@unocss/preset-uno",
|
|
22
22
|
theme: _chunkBOWXQI3Bjs.theme,
|
|
23
|
-
rules:
|
|
23
|
+
rules: _chunkGBKIE2NKjs.rules,
|
|
24
24
|
variants: [
|
|
25
|
-
...
|
|
26
|
-
...options.dark === "media" ?
|
|
25
|
+
..._chunkZSTIMFUCjs.variants,
|
|
26
|
+
...options.dark === "media" ? _chunkZSTIMFUCjs.variantColorsMedia : _chunkZSTIMFUCjs.variantColorsClass
|
|
27
27
|
],
|
|
28
28
|
shortcuts: [
|
|
29
|
-
...
|
|
30
|
-
]
|
|
29
|
+
..._chunkGBKIE2NKjs.containerShortcuts
|
|
30
|
+
],
|
|
31
|
+
options
|
|
31
32
|
});
|
|
32
33
|
var src_default = preset;
|
|
33
34
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
containerShortcuts,
|
|
3
3
|
rules
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RDUXYWRV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
theme
|
|
7
7
|
} from "./chunk-BLAKJWHG.mjs";
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
variantColorsClass,
|
|
13
13
|
variantColorsMedia,
|
|
14
14
|
variants
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-EE3IQZ3A.mjs";
|
|
16
|
+
import "./chunk-O7YRGPXQ.mjs";
|
|
17
17
|
import "./chunk-5SH5BFJ4.mjs";
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
@@ -27,7 +27,8 @@ var preset = (options = {}) => ({
|
|
|
27
27
|
],
|
|
28
28
|
shortcuts: [
|
|
29
29
|
...containerShortcuts
|
|
30
|
-
]
|
|
30
|
+
],
|
|
31
|
+
options
|
|
31
32
|
});
|
|
32
33
|
var src_default = preset;
|
|
33
34
|
export {
|
package/dist/rules.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ declare const pointerEvents: Rule[];
|
|
|
121
121
|
declare const resizes: Rule[];
|
|
122
122
|
declare const userSelects: Rule[];
|
|
123
123
|
declare const whitespaces: Rule[];
|
|
124
|
+
declare const contents: Rule[];
|
|
124
125
|
declare const breaks: Rule[];
|
|
125
126
|
declare const textOverflows: Rule[];
|
|
126
127
|
declare const textTransforms: Rule[];
|
|
@@ -156,4 +157,4 @@ declare const fonts: Rule<Theme>[];
|
|
|
156
157
|
|
|
157
158
|
declare const cssVariables: Rule[];
|
|
158
159
|
|
|
159
|
-
export { alignContents, alignItems, alignSelfs, animations, appearance, appearances, aspectRatio, bgAttachments, bgBlendModes, bgClips, bgColors, bgGradients, bgImages, bgOrigins, bgPositions, bgRepeats, bgSizes, borderColors, borderRadius, borderSizes, borderStyles, borders, boxDecorationBreaks, boxShadows, boxSizing, breaks, caretColors, caretOpacity, colorResolver, container, containerShortcuts, cssVariables, cursors, displays, divideColors, divideSizes, divideStyles, divides, fillColors, filters, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, hyphens, imageRenderings, insets, isolations, justifies, justifyItems, justifySelfs, leadings, lineClamps, listStyle, margins, mixBlendModes, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, screenReadersAccess, sizes, tabSizes, tables, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, verticalAligns, whitespaces, wordSpacings, writingModes, writingOrientations, zIndexes };
|
|
160
|
+
export { alignContents, alignItems, alignSelfs, animations, appearance, appearances, aspectRatio, bgAttachments, bgBlendModes, bgClips, bgColors, bgGradients, bgImages, bgOrigins, bgPositions, bgRepeats, bgSizes, borderColors, borderRadius, borderSizes, borderStyles, borders, boxDecorationBreaks, boxShadows, boxSizing, breaks, caretColors, caretOpacity, colorResolver, container, containerShortcuts, contents, cssVariables, cursors, displays, divideColors, divideSizes, divideStyles, divides, fillColors, filters, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, hyphens, imageRenderings, insets, isolations, justifies, justifyItems, justifySelfs, leadings, lineClamps, listStyle, margins, mixBlendModes, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, screenReadersAccess, sizes, tabSizes, tables, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, verticalAligns, whitespaces, wordSpacings, writingModes, writingOrientations, zIndexes };
|
package/dist/rules.js
CHANGED
|
@@ -108,8 +108,9 @@
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
require('./chunk-
|
|
111
|
+
|
|
112
|
+
var _chunkGBKIE2NKjs = require('./chunk-GBKIE2NK.js');
|
|
113
|
+
require('./chunk-LPZDYB4J.js');
|
|
113
114
|
require('./chunk-Y6EUTGDC.js');
|
|
114
115
|
|
|
115
116
|
|
|
@@ -221,4 +222,5 @@ require('./chunk-Y6EUTGDC.js');
|
|
|
221
222
|
|
|
222
223
|
|
|
223
224
|
|
|
224
|
-
|
|
225
|
+
|
|
226
|
+
exports.alignContents = _chunkGBKIE2NKjs.alignContents; exports.alignItems = _chunkGBKIE2NKjs.alignItems; exports.alignSelfs = _chunkGBKIE2NKjs.alignSelfs; exports.animations = _chunkGBKIE2NKjs.animations; exports.appearance = _chunkGBKIE2NKjs.appearance; exports.appearances = _chunkGBKIE2NKjs.appearances; exports.aspectRatio = _chunkGBKIE2NKjs.aspectRatio; exports.bgAttachments = _chunkGBKIE2NKjs.bgAttachments; exports.bgBlendModes = _chunkGBKIE2NKjs.bgBlendModes; exports.bgClips = _chunkGBKIE2NKjs.bgClips; exports.bgColors = _chunkGBKIE2NKjs.bgColors; exports.bgGradients = _chunkGBKIE2NKjs.bgGradients; exports.bgImages = _chunkGBKIE2NKjs.bgImages; exports.bgOrigins = _chunkGBKIE2NKjs.bgOrigins; exports.bgPositions = _chunkGBKIE2NKjs.bgPositions; exports.bgRepeats = _chunkGBKIE2NKjs.bgRepeats; exports.bgSizes = _chunkGBKIE2NKjs.bgSizes; exports.borderColors = _chunkGBKIE2NKjs.borderColors; exports.borderRadius = _chunkGBKIE2NKjs.borderRadius; exports.borderSizes = _chunkGBKIE2NKjs.borderSizes; exports.borderStyles = _chunkGBKIE2NKjs.borderStyles; exports.borders = _chunkGBKIE2NKjs.borders; exports.boxDecorationBreaks = _chunkGBKIE2NKjs.boxDecorationBreaks; exports.boxShadows = _chunkGBKIE2NKjs.boxShadows; exports.boxSizing = _chunkGBKIE2NKjs.boxSizing; exports.breaks = _chunkGBKIE2NKjs.breaks; exports.caretColors = _chunkGBKIE2NKjs.caretColors; exports.caretOpacity = _chunkGBKIE2NKjs.caretOpacity; exports.colorResolver = _chunkGBKIE2NKjs.colorResolver; exports.container = _chunkGBKIE2NKjs.container; exports.containerShortcuts = _chunkGBKIE2NKjs.containerShortcuts; exports.contents = _chunkGBKIE2NKjs.contents; exports.cssVariables = _chunkGBKIE2NKjs.cssVariables; exports.cursors = _chunkGBKIE2NKjs.cursors; exports.displays = _chunkGBKIE2NKjs.displays; exports.divideColors = _chunkGBKIE2NKjs.divideColors; exports.divideSizes = _chunkGBKIE2NKjs.divideSizes; exports.divideStyles = _chunkGBKIE2NKjs.divideStyles; exports.divides = _chunkGBKIE2NKjs.divides; exports.fillColors = _chunkGBKIE2NKjs.fillColors; exports.filters = _chunkGBKIE2NKjs.filters; exports.flex = _chunkGBKIE2NKjs.flex; exports.floats = _chunkGBKIE2NKjs.floats; exports.fontSizes = _chunkGBKIE2NKjs.fontSizes; exports.fontSmoothings = _chunkGBKIE2NKjs.fontSmoothings; exports.fontStyles = _chunkGBKIE2NKjs.fontStyles; exports.fontWeights = _chunkGBKIE2NKjs.fontWeights; exports.fonts = _chunkGBKIE2NKjs.fonts; exports.fontsFamilies = _chunkGBKIE2NKjs.fontsFamilies; exports.gaps = _chunkGBKIE2NKjs.gaps; exports.grids = _chunkGBKIE2NKjs.grids; exports.hyphens = _chunkGBKIE2NKjs.hyphens; exports.imageRenderings = _chunkGBKIE2NKjs.imageRenderings; exports.insets = _chunkGBKIE2NKjs.insets; exports.isolations = _chunkGBKIE2NKjs.isolations; exports.justifies = _chunkGBKIE2NKjs.justifies; exports.justifyItems = _chunkGBKIE2NKjs.justifyItems; exports.justifySelfs = _chunkGBKIE2NKjs.justifySelfs; exports.leadings = _chunkGBKIE2NKjs.leadings; exports.lineClamps = _chunkGBKIE2NKjs.lineClamps; exports.listStyle = _chunkGBKIE2NKjs.listStyle; exports.margins = _chunkGBKIE2NKjs.margins; exports.mixBlendModes = _chunkGBKIE2NKjs.mixBlendModes; exports.objectPositions = _chunkGBKIE2NKjs.objectPositions; exports.opacity = _chunkGBKIE2NKjs.opacity; exports.orders = _chunkGBKIE2NKjs.orders; exports.outline = _chunkGBKIE2NKjs.outline; exports.overflows = _chunkGBKIE2NKjs.overflows; exports.overscrolls = _chunkGBKIE2NKjs.overscrolls; exports.paddings = _chunkGBKIE2NKjs.paddings; exports.parseColorUtil = _chunkGBKIE2NKjs.parseColorUtil; exports.placeContents = _chunkGBKIE2NKjs.placeContents; exports.placeItems = _chunkGBKIE2NKjs.placeItems; exports.placeSelfs = _chunkGBKIE2NKjs.placeSelfs; exports.placeholder = _chunkGBKIE2NKjs.placeholder; exports.pointerEvents = _chunkGBKIE2NKjs.pointerEvents; exports.positions = _chunkGBKIE2NKjs.positions; exports.questionMark = _chunkGBKIE2NKjs.questionMark; exports.resizes = _chunkGBKIE2NKjs.resizes; exports.ringColors = _chunkGBKIE2NKjs.ringColors; exports.ringOffsetColors = _chunkGBKIE2NKjs.ringOffsetColors; exports.rings = _chunkGBKIE2NKjs.rings; exports.rules = _chunkGBKIE2NKjs.rules; exports.screenReadersAccess = _chunkGBKIE2NKjs.screenReadersAccess; exports.sizes = _chunkGBKIE2NKjs.sizes; exports.tabSizes = _chunkGBKIE2NKjs.tabSizes; exports.tables = _chunkGBKIE2NKjs.tables; exports.textAligns = _chunkGBKIE2NKjs.textAligns; exports.textColors = _chunkGBKIE2NKjs.textColors; exports.textDecorationColors = _chunkGBKIE2NKjs.textDecorationColors; exports.textDecorationLengths = _chunkGBKIE2NKjs.textDecorationLengths; exports.textDecorationOffsets = _chunkGBKIE2NKjs.textDecorationOffsets; exports.textDecorationStyles = _chunkGBKIE2NKjs.textDecorationStyles; exports.textDecorations = _chunkGBKIE2NKjs.textDecorations; exports.textIndents = _chunkGBKIE2NKjs.textIndents; exports.textOverflows = _chunkGBKIE2NKjs.textOverflows; exports.textShadows = _chunkGBKIE2NKjs.textShadows; exports.textStrokeColors = _chunkGBKIE2NKjs.textStrokeColors; exports.textStrokeWidths = _chunkGBKIE2NKjs.textStrokeWidths; exports.textTransforms = _chunkGBKIE2NKjs.textTransforms; exports.trackings = _chunkGBKIE2NKjs.trackings; exports.transforms = _chunkGBKIE2NKjs.transforms; exports.transitions = _chunkGBKIE2NKjs.transitions; exports.userSelects = _chunkGBKIE2NKjs.userSelects; exports.verticalAligns = _chunkGBKIE2NKjs.verticalAligns; exports.whitespaces = _chunkGBKIE2NKjs.whitespaces; exports.wordSpacings = _chunkGBKIE2NKjs.wordSpacings; exports.writingModes = _chunkGBKIE2NKjs.writingModes; exports.writingOrientations = _chunkGBKIE2NKjs.writingOrientations; exports.zIndexes = _chunkGBKIE2NKjs.zIndexes;
|
package/dist/rules.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
colorResolver,
|
|
31
31
|
container,
|
|
32
32
|
containerShortcuts,
|
|
33
|
+
contents,
|
|
33
34
|
cssVariables,
|
|
34
35
|
cursors,
|
|
35
36
|
displays,
|
|
@@ -108,8 +109,8 @@ import {
|
|
|
108
109
|
writingModes,
|
|
109
110
|
writingOrientations,
|
|
110
111
|
zIndexes
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-RDUXYWRV.mjs";
|
|
113
|
+
import "./chunk-O7YRGPXQ.mjs";
|
|
113
114
|
import "./chunk-5SH5BFJ4.mjs";
|
|
114
115
|
export {
|
|
115
116
|
alignContents,
|
|
@@ -143,6 +144,7 @@ export {
|
|
|
143
144
|
colorResolver,
|
|
144
145
|
container,
|
|
145
146
|
containerShortcuts,
|
|
147
|
+
contents,
|
|
146
148
|
cssVariables,
|
|
147
149
|
cursors,
|
|
148
150
|
displays,
|
package/dist/utils.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLPZDYB4Jjs = require('./chunk-LPZDYB4J.js');
|
|
19
19
|
require('./chunk-Y6EUTGDC.js');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -34,4 +34,4 @@ require('./chunk-Y6EUTGDC.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
exports.bracket =
|
|
37
|
+
exports.bracket = _chunkLPZDYB4Jjs.bracket; exports.capitalize = _chunkLPZDYB4Jjs.capitalize; exports.cornerMap = _chunkLPZDYB4Jjs.cornerMap; exports.cssvar = _chunkLPZDYB4Jjs.cssvar; exports.directionMap = _chunkLPZDYB4Jjs.directionMap; exports.fraction = _chunkLPZDYB4Jjs.fraction; exports.global = _chunkLPZDYB4Jjs.global; exports.handler = _chunkLPZDYB4Jjs.handler; exports.handlersNames = _chunkLPZDYB4Jjs.handlersNames; exports.number = _chunkLPZDYB4Jjs.number; exports.percent = _chunkLPZDYB4Jjs.percent; exports.px = _chunkLPZDYB4Jjs.px; exports.rem = _chunkLPZDYB4Jjs.rem; exports.time = _chunkLPZDYB4Jjs.time; exports.variantMatcher = _chunkLPZDYB4Jjs.variantMatcher; exports.xyzMap = _chunkLPZDYB4Jjs.xyzMap;
|
package/dist/utils.mjs
CHANGED
package/dist/variants.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkZSTIMFUCjs = require('./chunk-ZSTIMFUC.js');
|
|
14
|
+
require('./chunk-LPZDYB4J.js');
|
|
15
15
|
require('./chunk-Y6EUTGDC.js');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -25,4 +25,4 @@ require('./chunk-Y6EUTGDC.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.PseudoClasses =
|
|
28
|
+
exports.PseudoClasses = _chunkZSTIMFUCjs.PseudoClasses; exports.variantBreakpoints = _chunkZSTIMFUCjs.variantBreakpoints; exports.variantChildren = _chunkZSTIMFUCjs.variantChildren; exports.variantColorsClass = _chunkZSTIMFUCjs.variantColorsClass; exports.variantColorsMedia = _chunkZSTIMFUCjs.variantColorsMedia; exports.variantImportant = _chunkZSTIMFUCjs.variantImportant; exports.variantNegative = _chunkZSTIMFUCjs.variantNegative; exports.variantPseudoClasses = _chunkZSTIMFUCjs.variantPseudoClasses; exports.variantPseudoElements = _chunkZSTIMFUCjs.variantPseudoElements; exports.variantSpace = _chunkZSTIMFUCjs.variantSpace; exports.variants = _chunkZSTIMFUCjs.variants;
|
package/dist/variants.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
variantPseudoElements,
|
|
11
11
|
variantSpace,
|
|
12
12
|
variants
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-EE3IQZ3A.mjs";
|
|
14
|
+
import "./chunk-O7YRGPXQ.mjs";
|
|
15
15
|
import "./chunk-5SH5BFJ4.mjs";
|
|
16
16
|
export {
|
|
17
17
|
PseudoClasses,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-uno",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.16",
|
|
4
4
|
"description": "The default preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"*.css"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@unocss/core": "0.12.
|
|
63
|
+
"@unocss/core": "0.12.16"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsup",
|