@unocss/preset-uno 0.12.14 → 0.12.15
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-J37IUOY3.js → chunk-GBKIE2NK.js} +77 -72
- package/dist/{chunk-656YWVSK.js → chunk-LPZDYB4J.js} +5 -2
- package/dist/{chunk-5KT772UE.mjs → chunk-O7YRGPXQ.mjs} +5 -2
- package/dist/{chunk-YNAN5H4U.mjs → chunk-RDUXYWRV.mjs} +6 -1
- package/dist/{chunk-MHI4RVPC.mjs → chunk-RIDSYC3V.mjs} +1 -1
- package/dist/{chunk-JGM7CE2A.js → chunk-UAL7JB7E.js} +8 -8
- package/dist/index.js +7 -7
- package/dist/index.mjs +3 -3
- 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
|
@@ -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 = {
|
|
@@ -175,8 +175,8 @@ ${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${
|
|
|
175
175
|
}
|
|
176
176
|
}],
|
|
177
177
|
["animate-none", { animation: "none" }],
|
|
178
|
-
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration":
|
|
179
|
-
[/^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) })],
|
|
180
180
|
[/^animate-(?:fill-)?mode-(none|forwards|backwards|both|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-fill-mode": d })],
|
|
181
181
|
[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-direction": d })],
|
|
182
182
|
[/^animate-(?:iteration-)?count-(.+)$/, ([, d]) => ({ "animation-iteration-count": d.replace(/\-/g, ", ") })],
|
|
@@ -193,7 +193,7 @@ var parseColorUtil = (body, theme) => {
|
|
|
193
193
|
if (!name)
|
|
194
194
|
return;
|
|
195
195
|
let color;
|
|
196
|
-
const bracket =
|
|
196
|
+
const bracket = _chunkLPZDYB4Jjs.handler.bracket(main) || main;
|
|
197
197
|
if (bracket.startsWith("#"))
|
|
198
198
|
color = bracket.slice(1);
|
|
199
199
|
if (bracket.startsWith("hex-"))
|
|
@@ -220,7 +220,7 @@ var colorResolver = (attribute, varName) => ([, body], { theme }) => {
|
|
|
220
220
|
const { opacity: opacity2, color, rgba } = data;
|
|
221
221
|
if (!color)
|
|
222
222
|
return;
|
|
223
|
-
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];
|
|
224
224
|
if (rgba) {
|
|
225
225
|
if (a != null && !Number.isNaN(a)) {
|
|
226
226
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
@@ -240,11 +240,11 @@ var colorResolver = (attribute, varName) => ([, body], { theme }) => {
|
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
var opacity = [
|
|
243
|
-
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity:
|
|
243
|
+
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: _chunkLPZDYB4Jjs.handler.bracket.percent.cssvar(d) })]
|
|
244
244
|
];
|
|
245
245
|
var textColors = [
|
|
246
246
|
[/^(?:text|color|c)-(.+)$/, colorResolver("color", "text")],
|
|
247
|
-
[/^(?: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) })]
|
|
248
248
|
];
|
|
249
249
|
var textDecorationColors = [
|
|
250
250
|
[/^underline-(.+)$/, (match, ctx) => {
|
|
@@ -256,36 +256,36 @@ var textDecorationColors = [
|
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
}],
|
|
259
|
-
[/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity":
|
|
259
|
+
[/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
260
260
|
];
|
|
261
261
|
var textStrokeColors = [
|
|
262
262
|
[/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke")],
|
|
263
|
-
[/^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) })]
|
|
264
264
|
];
|
|
265
265
|
var bgColors = [
|
|
266
266
|
[/^bg-(.+)$/, colorResolver("background-color", "bg")],
|
|
267
|
-
[/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity":
|
|
267
|
+
[/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
268
268
|
];
|
|
269
269
|
var borderColors = [
|
|
270
270
|
[/^(?:border|b)-(.+)$/, colorResolver("border-color", "border")],
|
|
271
|
-
[/^(?:border|b)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-border-opacity":
|
|
271
|
+
[/^(?:border|b)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-border-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
272
272
|
];
|
|
273
273
|
var ringColors = [
|
|
274
274
|
[/^ring-(.+)$/, colorResolver("--un-ring-color", "ring")],
|
|
275
|
-
[/^ring-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-opacity":
|
|
275
|
+
[/^ring-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
276
276
|
];
|
|
277
277
|
var ringOffsetColors = [
|
|
278
278
|
[/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset")],
|
|
279
|
-
[/^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) })]
|
|
280
280
|
];
|
|
281
281
|
var divideColors = [
|
|
282
282
|
[/^divide-(.+)$/, colorResolver("border-color", "divide")],
|
|
283
|
-
[/^divide-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-divide-opacity":
|
|
283
|
+
[/^divide-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-divide-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
284
284
|
];
|
|
285
285
|
var fillColors = [
|
|
286
286
|
["fill-none", { fill: "none" }],
|
|
287
287
|
[/^fill-(.+)$/, colorResolver("fill", "fill")],
|
|
288
|
-
[/^fill-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-fill-opacity":
|
|
288
|
+
[/^fill-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-fill-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) })]
|
|
289
289
|
];
|
|
290
290
|
|
|
291
291
|
// src/rules/background.ts
|
|
@@ -298,7 +298,7 @@ var colorResolver2 = (mode) => ([, body], { theme }) => {
|
|
|
298
298
|
return;
|
|
299
299
|
let colorString = color;
|
|
300
300
|
if (rgba) {
|
|
301
|
-
const a = opacity2 ? opacity2[0] === "[" ?
|
|
301
|
+
const a = opacity2 ? opacity2[0] === "[" ? _chunkLPZDYB4Jjs.handler.bracket.percent(opacity2) : parseFloat(opacity2) / 100 : rgba[3];
|
|
302
302
|
if (a != null && !Number.isNaN(a)) {
|
|
303
303
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
304
304
|
colorString = `rgba(${rgba.join(",")})`;
|
|
@@ -355,9 +355,9 @@ var bgGradients = [
|
|
|
355
355
|
[/^from-(.+)$/, colorResolver2("from")],
|
|
356
356
|
[/^to-(.+)$/, colorResolver2("to")],
|
|
357
357
|
[/^via-(.+)$/, colorResolver2("via")],
|
|
358
|
-
[/^from-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-from-opacity":
|
|
359
|
-
[/^to-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-to-opacity":
|
|
360
|
-
[/^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) })]
|
|
361
361
|
];
|
|
362
362
|
var bgImages = [
|
|
363
363
|
["bg-none", { "background-image": "none" }],
|
|
@@ -421,7 +421,7 @@ var outlineStyle = ["none", "auto", "dotted", "dashed", "solid", "double", "groo
|
|
|
421
421
|
var listStyleProps = ["none", "disc", "circle", "square", "decimal", "zero-decimal", "greek", "roman", "upper-roman", "alpha", "upper-alpha"];
|
|
422
422
|
var parseOutlineSize = (s) => {
|
|
423
423
|
const propName = ["width", "offset"].find((item) => s.startsWith(item)) || "width";
|
|
424
|
-
const size =
|
|
424
|
+
const size = _chunkLPZDYB4Jjs.handler.bracket.fraction.rem(s.replace(/^(offset\-|width\-)/, ""));
|
|
425
425
|
if (size) {
|
|
426
426
|
return {
|
|
427
427
|
[`outline-${propName}`]: size
|
|
@@ -484,7 +484,7 @@ var boxDecorationBreaks = [
|
|
|
484
484
|
["decoration-clone", { "box-decoration-break": "clone" }]
|
|
485
485
|
];
|
|
486
486
|
var caretOpacity = [
|
|
487
|
-
[/^caret-op(?:acity)?-?(.+)$/, ([, d]) => ({ "--un-caret-opacity":
|
|
487
|
+
[/^caret-op(?:acity)?-?(.+)$/, ([, d]) => ({ "--un-caret-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(d) })]
|
|
488
488
|
];
|
|
489
489
|
var caretColors = [
|
|
490
490
|
[/^caret-(.+)$/, colorResolver("caret-color", "caret")]
|
|
@@ -510,7 +510,7 @@ var placeholder = [
|
|
|
510
510
|
[
|
|
511
511
|
/^placeholder-opacity-(\d+)$/,
|
|
512
512
|
([, d]) => ({
|
|
513
|
-
"placeholder-opacity":
|
|
513
|
+
"placeholder-opacity": _chunkLPZDYB4Jjs.handler.bracket.percent(d)
|
|
514
514
|
})
|
|
515
515
|
],
|
|
516
516
|
[
|
|
@@ -559,21 +559,21 @@ var borders = [
|
|
|
559
559
|
borderRadius
|
|
560
560
|
].flat(1);
|
|
561
561
|
function handlerBorder([, a, b]) {
|
|
562
|
-
const [d, s = "1"] =
|
|
563
|
-
const v =
|
|
562
|
+
const [d, s = "1"] = _chunkLPZDYB4Jjs.directionMap[a] ? [a, b] : ["", a];
|
|
563
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
564
564
|
if (v != null) {
|
|
565
565
|
return [
|
|
566
|
-
...
|
|
566
|
+
..._chunkLPZDYB4Jjs.directionMap[d].map((i) => [`border${i}-width`, v]),
|
|
567
567
|
["border-style", "solid"]
|
|
568
568
|
];
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
function handlerRounded([, a, b], { theme }) {
|
|
572
572
|
var _a;
|
|
573
|
-
const [d, s = "DEFAULT"] =
|
|
574
|
-
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);
|
|
575
575
|
if (v != null)
|
|
576
|
-
return
|
|
576
|
+
return _chunkLPZDYB4Jjs.cornerMap[d].map((i) => [`border${i}-radius`, v]);
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
// src/rules/container.ts
|
|
@@ -708,7 +708,7 @@ var transitions = [
|
|
|
708
708
|
|
|
709
709
|
var varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
710
710
|
var percentWithDefault = (defaultValue = "1") => (str) => {
|
|
711
|
-
const v = str ?
|
|
711
|
+
const v = str ? _chunkLPZDYB4Jjs.handler.bracket.percent(str) : defaultValue;
|
|
712
712
|
return v && parseFloat(v) <= 1 ? v : void 0;
|
|
713
713
|
};
|
|
714
714
|
var toFilter = (varName, resolver) => ([, b, s], { theme }) => {
|
|
@@ -752,18 +752,18 @@ var filters = [
|
|
|
752
752
|
}],
|
|
753
753
|
[/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) => {
|
|
754
754
|
var _a;
|
|
755
|
-
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);
|
|
756
756
|
})],
|
|
757
|
-
[/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) =>
|
|
758
|
-
[/^(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))],
|
|
759
759
|
[/^()?drop-shadow(?:-(.+))?$/, toFilter("drop-shadow", (s, theme) => {
|
|
760
760
|
var _a;
|
|
761
|
-
const v =
|
|
761
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket(s) || ((_a = theme.dropShadow) == null ? void 0 : _a[s || "DEFAULT"]);
|
|
762
762
|
if (v)
|
|
763
763
|
return _core.toArray.call(void 0, v).map((v2) => `drop-shadow(${v2})`).join(" ");
|
|
764
764
|
})],
|
|
765
765
|
[/^(backdrop-)?grayscale(?:-(\d+))?$/, toFilter("grayscale", percentWithDefault())],
|
|
766
|
-
[/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${
|
|
766
|
+
[/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${_chunkLPZDYB4Jjs.handler.bracket.number(s)}deg`)],
|
|
767
767
|
[/^(backdrop-)?invert(?:-(\d+))?$/, toFilter("invert", percentWithDefault())],
|
|
768
768
|
[/^(backdrop-)?saturate(?:-(\d+))?$/, toFilter("saturate", percentWithDefault("0"))],
|
|
769
769
|
[/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())]
|
|
@@ -819,7 +819,7 @@ var weightMap = {
|
|
|
819
819
|
var fontSizes = [
|
|
820
820
|
[/^text-([^-]+)$/, ([, s = "base"], { theme }) => {
|
|
821
821
|
var _a;
|
|
822
|
-
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));
|
|
823
823
|
if (result == null ? void 0 : result[0]) {
|
|
824
824
|
const [size, height = "1"] = result;
|
|
825
825
|
return {
|
|
@@ -831,7 +831,7 @@ var fontSizes = [
|
|
|
831
831
|
];
|
|
832
832
|
var fontWeights = [
|
|
833
833
|
[/^(?:font|fw)-?([^-]+)$/, ([, s]) => {
|
|
834
|
-
const v = weightMap[s] ||
|
|
834
|
+
const v = weightMap[s] || _chunkLPZDYB4Jjs.handler.number(s);
|
|
835
835
|
if (v)
|
|
836
836
|
return { "font-weight": v };
|
|
837
837
|
}]
|
|
@@ -839,7 +839,7 @@ var fontWeights = [
|
|
|
839
839
|
var leadings = [
|
|
840
840
|
[/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => {
|
|
841
841
|
var _a;
|
|
842
|
-
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);
|
|
843
843
|
if (v !== null)
|
|
844
844
|
return { "line-height": v };
|
|
845
845
|
}]
|
|
@@ -847,7 +847,7 @@ var leadings = [
|
|
|
847
847
|
var trackings = [
|
|
848
848
|
[/^tracking-([^-]+)$/, ([, s], { theme }) => {
|
|
849
849
|
var _a;
|
|
850
|
-
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);
|
|
851
851
|
if (v !== null)
|
|
852
852
|
return { "letter-spacing": v };
|
|
853
853
|
}]
|
|
@@ -855,7 +855,7 @@ var trackings = [
|
|
|
855
855
|
var wordSpacings = [
|
|
856
856
|
[/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
|
|
857
857
|
var _a;
|
|
858
|
-
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);
|
|
859
859
|
if (v !== null)
|
|
860
860
|
return { "word-spacing": v };
|
|
861
861
|
}]
|
|
@@ -863,7 +863,7 @@ var wordSpacings = [
|
|
|
863
863
|
var tabSizes = [
|
|
864
864
|
[/^tab-?([^-]*)$/, ([, s]) => {
|
|
865
865
|
s = s || "4";
|
|
866
|
-
const v =
|
|
866
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.global.number(s);
|
|
867
867
|
if (v !== null) {
|
|
868
868
|
return {
|
|
869
869
|
"-moz-tab-size": v,
|
|
@@ -875,14 +875,14 @@ var tabSizes = [
|
|
|
875
875
|
];
|
|
876
876
|
var textDecorationLengths = [
|
|
877
877
|
[/^underline-([^-]+)$/, ([, s]) => {
|
|
878
|
-
const v = s === "auto" ? s :
|
|
878
|
+
const v = s === "auto" ? s : _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
879
879
|
if (v != null)
|
|
880
880
|
return { "text-decoration-thickness": v };
|
|
881
881
|
}]
|
|
882
882
|
];
|
|
883
883
|
var textDecorationOffsets = [
|
|
884
884
|
[/^underline-offset-([^-]+)$/, ([, s]) => {
|
|
885
|
-
const v = s === "auto" ? s :
|
|
885
|
+
const v = s === "auto" ? s : _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
886
886
|
if (v != null)
|
|
887
887
|
return { "text-underline-offset": v };
|
|
888
888
|
}]
|
|
@@ -890,7 +890,7 @@ var textDecorationOffsets = [
|
|
|
890
890
|
var textIndents = [
|
|
891
891
|
[/^indent(?:-(.+))?$/, ([, s], { theme }) => {
|
|
892
892
|
var _a;
|
|
893
|
-
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);
|
|
894
894
|
if (v != null)
|
|
895
895
|
return { "text-indent": v };
|
|
896
896
|
}]
|
|
@@ -898,7 +898,7 @@ var textIndents = [
|
|
|
898
898
|
var textStrokeWidths = [
|
|
899
899
|
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
|
|
900
900
|
var _a;
|
|
901
|
-
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);
|
|
902
902
|
if (v != null)
|
|
903
903
|
return { "-webkit-text-stroke-width": v };
|
|
904
904
|
}]
|
|
@@ -906,7 +906,7 @@ var textStrokeWidths = [
|
|
|
906
906
|
var textShadows = [
|
|
907
907
|
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
908
908
|
var _a;
|
|
909
|
-
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);
|
|
910
910
|
if (v != null)
|
|
911
911
|
return { "text-shadow": v };
|
|
912
912
|
}]
|
|
@@ -920,7 +920,7 @@ var fonts = [
|
|
|
920
920
|
// src/rules/gap.ts
|
|
921
921
|
var gaps = [
|
|
922
922
|
[/^(?:flex-|grid-)?gap-([^-]+)$/, ([, s]) => {
|
|
923
|
-
const v =
|
|
923
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
924
924
|
if (v != null) {
|
|
925
925
|
return {
|
|
926
926
|
"grid-gap": v,
|
|
@@ -929,7 +929,7 @@ var gaps = [
|
|
|
929
929
|
}
|
|
930
930
|
}],
|
|
931
931
|
[/^(?:flex-|grid-)?gap-x-([^-]+)$/, ([, s]) => {
|
|
932
|
-
const v =
|
|
932
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
933
933
|
if (v != null) {
|
|
934
934
|
return {
|
|
935
935
|
"grid-column-gap": v,
|
|
@@ -938,7 +938,7 @@ var gaps = [
|
|
|
938
938
|
}
|
|
939
939
|
}],
|
|
940
940
|
[/^(?:flex-|grid-)?gap-y-([^-]+)$/, ([, s]) => {
|
|
941
|
-
const v =
|
|
941
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem(s);
|
|
942
942
|
if (v != null) {
|
|
943
943
|
return {
|
|
944
944
|
"grid-row-gap": v,
|
|
@@ -952,7 +952,7 @@ var gaps = [
|
|
|
952
952
|
|
|
953
953
|
var calSize = (s, theme) => {
|
|
954
954
|
var _a;
|
|
955
|
-
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];
|
|
956
956
|
};
|
|
957
957
|
var autoDirection = (selector, theme) => {
|
|
958
958
|
if (selector === "min")
|
|
@@ -975,7 +975,7 @@ var grids = [
|
|
|
975
975
|
[/^(?:grid-)?(row|col)-(.+)$/, ([, d, v]) => {
|
|
976
976
|
var _a;
|
|
977
977
|
const key = d === "row" ? "grid-row" : "grid-column";
|
|
978
|
-
let raw =
|
|
978
|
+
let raw = _chunkLPZDYB4Jjs.handler.bracket(v);
|
|
979
979
|
if (raw)
|
|
980
980
|
return { [key]: raw };
|
|
981
981
|
const parts = v.split("-");
|
|
@@ -984,7 +984,7 @@ var grids = [
|
|
|
984
984
|
if (parts[0] === "span") {
|
|
985
985
|
if (parts[1] === "full")
|
|
986
986
|
return { [key]: "1/-1" };
|
|
987
|
-
raw = (_a =
|
|
987
|
+
raw = (_a = _chunkLPZDYB4Jjs.handler.number.bracket(parts[1])) == null ? void 0 : _a.toString().replace(/_/g, " ");
|
|
988
988
|
if (raw)
|
|
989
989
|
return { [key]: `span ${raw}/span ${raw}` };
|
|
990
990
|
}
|
|
@@ -1027,7 +1027,7 @@ var justifies = [
|
|
|
1027
1027
|
["justify-evenly", { "justify-content": "space-evenly" }]
|
|
1028
1028
|
];
|
|
1029
1029
|
var orders = [
|
|
1030
|
-
[/^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) })]
|
|
1031
1031
|
];
|
|
1032
1032
|
var basicSet = ["auto", "start", "end", "center", "stretch"];
|
|
1033
1033
|
var justifyItems = basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]);
|
|
@@ -1067,14 +1067,14 @@ var placeItems = basicSet.map((i) => [`place-items-${i}`, { "place-items": i }])
|
|
|
1067
1067
|
var placeSelfs = basicSet.map((i) => [`place-self-${i}`, { "place-self": i }]);
|
|
1068
1068
|
function handleInsetValue(v) {
|
|
1069
1069
|
var _a;
|
|
1070
|
-
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);
|
|
1071
1071
|
}
|
|
1072
1072
|
var insets = [
|
|
1073
1073
|
[/^(top|left|right|bottom|inset)-(.+)$/, ([, d, v]) => ({ [d]: handleInsetValue(v) })],
|
|
1074
1074
|
[/^inset-([xy])-(.+)$/, ([, d, v]) => {
|
|
1075
1075
|
const r = handleInsetValue(v);
|
|
1076
|
-
if (r != null && d in
|
|
1077
|
-
return
|
|
1076
|
+
if (r != null && d in _chunkLPZDYB4Jjs.directionMap)
|
|
1077
|
+
return _chunkLPZDYB4Jjs.directionMap[d].map((i) => [i.slice(1), r]);
|
|
1078
1078
|
}]
|
|
1079
1079
|
];
|
|
1080
1080
|
var floats = [
|
|
@@ -1083,7 +1083,7 @@ var floats = [
|
|
|
1083
1083
|
];
|
|
1084
1084
|
var zIndexes = [
|
|
1085
1085
|
["z-auto", { "z-index": "auto" }],
|
|
1086
|
-
[/^z-([^-]+)$/, ([, v]) => ({ "z-index":
|
|
1086
|
+
[/^z-([^-]+)$/, ([, v]) => ({ "z-index": _chunkLPZDYB4Jjs.handler.number(v) })]
|
|
1087
1087
|
];
|
|
1088
1088
|
var objectPositions = [
|
|
1089
1089
|
["object-cover", { "object-fit": "cover" }],
|
|
@@ -1115,7 +1115,7 @@ var boxSizing = [
|
|
|
1115
1115
|
// src/rules/ring.ts
|
|
1116
1116
|
var rings = [
|
|
1117
1117
|
[/^ring-?(.*)$/, ([, d]) => {
|
|
1118
|
-
const value =
|
|
1118
|
+
const value = _chunkLPZDYB4Jjs.handler.px(d || "1");
|
|
1119
1119
|
if (value) {
|
|
1120
1120
|
return {
|
|
1121
1121
|
"--un-ring-inset": "var(--un-empty, )",
|
|
@@ -1130,7 +1130,7 @@ var rings = [
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}],
|
|
1132
1132
|
[/^ring-offset-?(.*)$/, ([, d]) => {
|
|
1133
|
-
const value =
|
|
1133
|
+
const value = _chunkLPZDYB4Jjs.handler.px(d || "1");
|
|
1134
1134
|
if (value) {
|
|
1135
1135
|
return {
|
|
1136
1136
|
"--un-ring-offset-width": value
|
|
@@ -1203,12 +1203,12 @@ function getThemeValue(minmax, hw, theme, prop) {
|
|
|
1203
1203
|
var _a;
|
|
1204
1204
|
let str = `${hw === "h" ? "height" : "width"}`;
|
|
1205
1205
|
if (minmax)
|
|
1206
|
-
str = `${minmax}${
|
|
1206
|
+
str = `${minmax}${_chunkLPZDYB4Jjs.capitalize.call(void 0, str)}`;
|
|
1207
1207
|
return (_a = theme[str]) == null ? void 0 : _a[prop];
|
|
1208
1208
|
}
|
|
1209
1209
|
var sizes = [
|
|
1210
1210
|
[/^(?:(min|max)-)?(w|h)-(.+)$/, ([, m, w, s], { theme }) => {
|
|
1211
|
-
const v = getThemeValue(m, w, theme, s) ||
|
|
1211
|
+
const v = getThemeValue(m, w, theme, s) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.fraction.rem(s);
|
|
1212
1212
|
if (v != null)
|
|
1213
1213
|
return { [getPropName(m, w)]: v };
|
|
1214
1214
|
}],
|
|
@@ -1222,7 +1222,7 @@ var sizes = [
|
|
|
1222
1222
|
var aspectRatio = [
|
|
1223
1223
|
["aspect-ratio-auto", { "aspect-ratio": "auto" }],
|
|
1224
1224
|
[/^aspect-ratio-(.+)$/, ([, d]) => {
|
|
1225
|
-
const v = (/^\d+\/\d+$/.test(d) ? d : null) ||
|
|
1225
|
+
const v = (/^\d+\/\d+$/.test(d) ? d : null) || _chunkLPZDYB4Jjs.handler.bracket.cssvar.number(d);
|
|
1226
1226
|
if (v != null)
|
|
1227
1227
|
return { "aspect-ratio": v };
|
|
1228
1228
|
}]
|
|
@@ -1230,9 +1230,9 @@ var aspectRatio = [
|
|
|
1230
1230
|
|
|
1231
1231
|
// src/rules/spacing.ts
|
|
1232
1232
|
var directionSize = (prefix) => ([_, direction, size]) => {
|
|
1233
|
-
const v =
|
|
1233
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.rem.fraction.cssvar(size);
|
|
1234
1234
|
if (v)
|
|
1235
|
-
return
|
|
1235
|
+
return _chunkLPZDYB4Jjs.directionMap[direction].map((i) => [prefix + i, v]);
|
|
1236
1236
|
};
|
|
1237
1237
|
var paddings = [
|
|
1238
1238
|
[/^pa?()-?(-?.+)$/, directionSize("padding")],
|
|
@@ -1296,6 +1296,9 @@ var userSelects = [
|
|
|
1296
1296
|
var whitespaces = [
|
|
1297
1297
|
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
1298
1298
|
];
|
|
1299
|
+
var contents = [
|
|
1300
|
+
["content-empty", { content: '""' }]
|
|
1301
|
+
];
|
|
1299
1302
|
var breaks = [
|
|
1300
1303
|
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1301
1304
|
["break-word", { "overflow-wrap": "break-word" }],
|
|
@@ -1462,23 +1465,23 @@ var transforms = [
|
|
|
1462
1465
|
["origin-top-left", { "transform-origin": "top left" }]
|
|
1463
1466
|
];
|
|
1464
1467
|
function handleTranslate([, d, b]) {
|
|
1465
|
-
const v =
|
|
1468
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.fraction.rem(b);
|
|
1466
1469
|
if (v != null) {
|
|
1467
1470
|
return [
|
|
1468
|
-
...
|
|
1471
|
+
..._chunkLPZDYB4Jjs.xyzMap[d].map((i) => [`--un-translate${i}`, v])
|
|
1469
1472
|
];
|
|
1470
1473
|
}
|
|
1471
1474
|
}
|
|
1472
1475
|
function handleScale([, d, b]) {
|
|
1473
|
-
const v =
|
|
1476
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.fraction.percent(b);
|
|
1474
1477
|
if (v != null) {
|
|
1475
1478
|
return [
|
|
1476
|
-
...
|
|
1479
|
+
..._chunkLPZDYB4Jjs.xyzMap[d].map((i) => [`--un-scale${i}`, v])
|
|
1477
1480
|
];
|
|
1478
1481
|
}
|
|
1479
1482
|
}
|
|
1480
1483
|
function handleRotate([, b]) {
|
|
1481
|
-
const v =
|
|
1484
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.number(b);
|
|
1482
1485
|
if (v != null)
|
|
1483
1486
|
return { "--un-rotate": `${v}deg` };
|
|
1484
1487
|
}
|
|
@@ -1561,10 +1564,10 @@ var divideStyles = [
|
|
|
1561
1564
|
];
|
|
1562
1565
|
var divides = [divideSizes, divideColors, divideStyles].flat(1);
|
|
1563
1566
|
function handlerDivide([, a, b]) {
|
|
1564
|
-
const [d, s = "1"] =
|
|
1565
|
-
const v =
|
|
1567
|
+
const [d, s = "1"] = _chunkLPZDYB4Jjs.directionMap[a] ? [a, b] : ["", a];
|
|
1568
|
+
const v = _chunkLPZDYB4Jjs.handler.bracket.px(s);
|
|
1566
1569
|
if (v != null) {
|
|
1567
|
-
const results =
|
|
1570
|
+
const results = _chunkLPZDYB4Jjs.directionMap[d].map((item) => {
|
|
1568
1571
|
const key = `border${item}-width`;
|
|
1569
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)))`;
|
|
1570
1573
|
return [key, value];
|
|
@@ -1613,6 +1616,7 @@ var rules = [
|
|
|
1613
1616
|
fillColors,
|
|
1614
1617
|
borders,
|
|
1615
1618
|
divides,
|
|
1619
|
+
contents,
|
|
1616
1620
|
fonts,
|
|
1617
1621
|
tabSizes,
|
|
1618
1622
|
textIndents,
|
|
@@ -1797,4 +1801,5 @@ var rules = [
|
|
|
1797
1801
|
|
|
1798
1802
|
|
|
1799
1803
|
|
|
1800
|
-
|
|
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 = {
|
|
@@ -1296,6 +1296,9 @@ var userSelects = [
|
|
|
1296
1296
|
var whitespaces = [
|
|
1297
1297
|
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
1298
1298
|
];
|
|
1299
|
+
var contents = [
|
|
1300
|
+
["content-empty", { content: '""' }]
|
|
1301
|
+
];
|
|
1299
1302
|
var breaks = [
|
|
1300
1303
|
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1301
1304
|
["break-word", { "overflow-wrap": "break-word" }],
|
|
@@ -1613,6 +1616,7 @@ var rules = [
|
|
|
1613
1616
|
fillColors,
|
|
1614
1617
|
borders,
|
|
1615
1618
|
divides,
|
|
1619
|
+
contents,
|
|
1616
1620
|
fonts,
|
|
1617
1621
|
tabSizes,
|
|
1618
1622
|
textIndents,
|
|
@@ -1776,6 +1780,7 @@ export {
|
|
|
1776
1780
|
resizes,
|
|
1777
1781
|
userSelects,
|
|
1778
1782
|
whitespaces,
|
|
1783
|
+
contents,
|
|
1779
1784
|
breaks,
|
|
1780
1785
|
textOverflows,
|
|
1781
1786
|
textTransforms,
|
|
@@ -1,6 +1,6 @@
|
|
|
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 = {};
|
|
@@ -30,26 +30,26 @@ var variantBreakpoints = (matcher, _, theme) => {
|
|
|
30
30
|
|
|
31
31
|
// src/variants/children.ts
|
|
32
32
|
var variantChildren = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "children", (input) => `${input} > *`),
|
|
34
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "all", (input) => `${input} *`),
|
|
35
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "next", (input) => `${input}+*`)
|
|
36
36
|
];
|
|
37
37
|
|
|
38
38
|
// src/variants/dark.ts
|
|
39
39
|
var variantColorsClass = [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "dark", (input) => `.dark $$ ${input}`),
|
|
41
|
+
_chunkLPZDYB4Jjs.variantMatcher.call(void 0, "light", (input) => `.light $$ ${input}`)
|
|
42
42
|
];
|
|
43
43
|
var variantColorsMedia = [
|
|
44
44
|
(v) => {
|
|
45
|
-
const dark =
|
|
45
|
+
const dark = _chunkLPZDYB4Jjs.variantMatcher.call(void 0, "dark")(v);
|
|
46
46
|
if (dark) {
|
|
47
47
|
return {
|
|
48
48
|
...dark,
|
|
49
49
|
parent: "@media (prefers-color-scheme: dark)"
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
const light =
|
|
52
|
+
const light = _chunkLPZDYB4Jjs.variantMatcher.call(void 0, "light")(v);
|
|
53
53
|
if (light) {
|
|
54
54
|
return {
|
|
55
55
|
...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,21 +12,21 @@ var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkUAL7JB7Ejs = require('./chunk-UAL7JB7E.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
|
+
..._chunkUAL7JB7Ejs.variants,
|
|
26
|
+
...options.dark === "media" ? _chunkUAL7JB7Ejs.variantColorsMedia : _chunkUAL7JB7Ejs.variantColorsClass
|
|
27
27
|
],
|
|
28
28
|
shortcuts: [
|
|
29
|
-
...
|
|
29
|
+
..._chunkGBKIE2NKjs.containerShortcuts
|
|
30
30
|
]
|
|
31
31
|
});
|
|
32
32
|
var src_default = preset;
|
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-RIDSYC3V.mjs";
|
|
16
|
+
import "./chunk-O7YRGPXQ.mjs";
|
|
17
17
|
import "./chunk-5SH5BFJ4.mjs";
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
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 _chunkUAL7JB7Ejs = require('./chunk-UAL7JB7E.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 = _chunkUAL7JB7Ejs.PseudoClasses; exports.variantBreakpoints = _chunkUAL7JB7Ejs.variantBreakpoints; exports.variantChildren = _chunkUAL7JB7Ejs.variantChildren; exports.variantColorsClass = _chunkUAL7JB7Ejs.variantColorsClass; exports.variantColorsMedia = _chunkUAL7JB7Ejs.variantColorsMedia; exports.variantImportant = _chunkUAL7JB7Ejs.variantImportant; exports.variantNegative = _chunkUAL7JB7Ejs.variantNegative; exports.variantPseudoClasses = _chunkUAL7JB7Ejs.variantPseudoClasses; exports.variantPseudoElements = _chunkUAL7JB7Ejs.variantPseudoElements; exports.variantSpace = _chunkUAL7JB7Ejs.variantSpace; exports.variants = _chunkUAL7JB7Ejs.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-RIDSYC3V.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.15",
|
|
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.15"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsup",
|