@unocss/preset-mini 0.22.2 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,9 @@ const textAligns = [
19
19
  ];
20
20
 
21
21
  const outline = [
22
- [/^outline-(?:width-|size-)?(.+)$/, ([, d]) => ({ "outline-width": utilities.handler.bracket.fraction.auto.rem(d) })],
22
+ [/^outline-(?:width-|size-)?(.+)$/, ([, d]) => ({ "outline-width": utilities.handler.bracket.cssvar.auto.fraction.rem(d) })],
23
23
  [/^outline-(?:color-)?(.+)$/, utilities.colorResolver("outline-color", "outline-color")],
24
- [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": utilities.handler.bracket.fraction.auto.rem(d) })],
24
+ [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": utilities.handler.bracket.cssvar.auto.fraction.rem(d) })],
25
25
  ["outline", { "outline-style": "solid" }],
26
26
  [/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/, ([, c]) => ({ "outline-style": c })],
27
27
  ["outline-none", { "outline": "2px solid transparent", "outline-offset": "2px" }]
@@ -120,7 +120,7 @@ function handlerBorder(m) {
120
120
  }
121
121
  }
122
122
  function handlerBorderSize([, a = "", b = "1"]) {
123
- const v = utilities.handler.bracket.px(b);
123
+ const v = utilities.handler.bracket.cssvar.px(b);
124
124
  if (a in utilities.directionMap && v != null)
125
125
  return utilities.directionMap[a].map((i) => [`border${i}-width`, v]);
126
126
  }
@@ -135,7 +135,7 @@ function handlerBorderOpacity([, a = "", opacity]) {
135
135
  return utilities.directionMap[a].map((i) => [`--un-border${i}-opacity`, v]);
136
136
  }
137
137
  function handlerRounded([, a = "", s = "DEFAULT"], { theme }) {
138
- const v = theme.borderRadius?.[s] || utilities.handler.auto.rem.fraction.bracket.cssvar(s);
138
+ const v = theme.borderRadius?.[s] || utilities.handler.bracket.cssvar.auto.fraction.rem(s);
139
139
  if (a in utilities.cornerMap && v != null)
140
140
  return utilities.cornerMap[a].map((i) => [`border${i}-radius`, v]);
141
141
  }
@@ -145,7 +145,7 @@ const opacity = [
145
145
  ];
146
146
  const textColors = [
147
147
  [/^(?:text|color|c)-(.+)$/, utilities.colorResolver("color", "text")],
148
- [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": utilities.handler.bracket.percent.cssvar(opacity2) })]
148
+ [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": utilities.handler.bracket.percent(opacity2) })]
149
149
  ];
150
150
  const bgColors = [
151
151
  [/^bg-(.+)$/, utilities.colorResolver("background-color", "bg")],
@@ -173,9 +173,9 @@ const transitions = [
173
173
  };
174
174
  }
175
175
  }],
176
- [/^(?:transition-)?delay-(.+)(?:s|ms)?$/, ([, d]) => ({ "transition-delay": utilities.handler.bracket.time(d) })],
177
- [/^(?:transition-)?duration-(.+)(?:s|ms)?$/, ([, d]) => ({ "transition-duration": utilities.handler.bracket.time(d) })],
178
- [/^ease-(.+)$/, ([, d]) => ({ "transition-timing-function": utilities.handler.bracket(d) })],
176
+ [/^(?:transition-)?duration-(.+)$/, ([, d]) => ({ "transition-duration": utilities.handler.bracket.cssvar.time(d) })],
177
+ [/^(?:transition-)?delay-(.+)$/, ([, d]) => ({ "transition-delay": utilities.handler.bracket.cssvar.time(d) })],
178
+ [/^ease-(.+)$/, ([, d]) => ({ "transition-timing-function": utilities.handler.bracket.cssvar(d) })],
179
179
  ["ease", { "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)" }],
180
180
  ["ease-linear", { "transition-timing-function": "linear" }],
181
181
  ["ease-in", { "transition-timing-function": "cubic-bezier(0.4, 0, 1, 1)" }],
@@ -200,7 +200,7 @@ const flex = [
200
200
  [/^(?:flex-)?shrink-0$/, () => ({ "flex-shrink": 0 })],
201
201
  [/^(?:flex-)?grow$/, () => ({ "flex-grow": 1 })],
202
202
  [/^(?:flex-)?grow-0$/, () => ({ "flex-grow": 0 })],
203
- [/^(?:flex-)?basis-(.+)$/, ([, d]) => ({ "flex-basis": utilities.handler.bracket.fraction.auto.rem(d) })],
203
+ [/^(?:flex-)?basis-(.+)$/, ([, d]) => ({ "flex-basis": utilities.handler.bracket.cssvar.auto.fraction.rem(d) })],
204
204
  ["flex-row", { "flex-direction": "row" }],
205
205
  ["flex-row-reverse", { "flex-direction": "row-reverse" }],
206
206
  ["flex-col", { "flex-direction": "column" }],
@@ -227,7 +227,7 @@ const appearances = [
227
227
  ["backface-hidden", { "backface-visibility": "hidden" }]
228
228
  ];
229
229
  const cursors = [
230
- [/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
230
+ [/^cursor-(.+)$/, ([, c]) => ({ cursor: utilities.handler.bracket.cssvar(c) || c })]
231
231
  ];
232
232
  const pointerEvents = [
233
233
  ["pointer-events-auto", { "pointer-events": "auto" }],
@@ -317,7 +317,7 @@ const boxShadows = [
317
317
  }
318
318
  }],
319
319
  [/^shadow-(.+)$/, utilities.colorResolver("--un-shadow-color", "shadow")],
320
- [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": utilities.handler.bracket.percent.cssvar(opacity) })],
320
+ [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": utilities.handler.bracket.percent(opacity) })],
321
321
  ["shadow-inset", { "--un-shadow-inset": "inset" }]
322
322
  ];
323
323
 
@@ -345,15 +345,15 @@ const fonts = [
345
345
  }
346
346
  return { "font-size": utilities.handler.bracket.auto.rem(s) };
347
347
  }],
348
- [/^text-size-(.+)$/, ([, s]) => ({ "font-size": utilities.handler.bracket.auto.rem(s) })],
348
+ [/^text-size-(.+)$/, ([, s]) => ({ "font-size": utilities.handler.bracket.cssvar.auto.rem(s) })],
349
349
  [/^(?:font|fw)-?([^-]+)$/, ([, s]) => ({ "font-weight": weightMap[s] || utilities.handler.number(s) })],
350
350
  [/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || utilities.handler.bracket.auto.rem(s) })],
351
351
  [/^tracking-([^-]+)$/, ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || utilities.handler.bracket.auto.rem(s) })],
352
352
  [/^word-spacing-([^-]+)$/, ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || utilities.handler.bracket.auto.rem(s) })]
353
353
  ];
354
354
  const tabSizes = [
355
- [/^tab(?:-([^-]+))?$/, ([, s]) => {
356
- const v = utilities.handler.bracket.global.number(s || "4");
355
+ [/^tab(?:-(.+))?$/, ([, s]) => {
356
+ const v = utilities.handler.bracket.cssvar.global.number(s || "4");
357
357
  if (v != null) {
358
358
  return {
359
359
  "-moz-tab-size": v,
@@ -364,7 +364,7 @@ const tabSizes = [
364
364
  }]
365
365
  ];
366
366
  const textIndents = [
367
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || utilities.handler.bracket.cssvar.fraction.auto.rem(s) })]
367
+ [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || utilities.handler.bracket.cssvar.auto.fraction.rem(s) })]
368
368
  ];
369
369
  const textStrokes = [
370
370
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || utilities.handler.bracket.cssvar.px(s) })],
@@ -392,7 +392,7 @@ const directions = {
392
392
  "y": "row-"
393
393
  };
394
394
  const handleGap = ([, d = "", s]) => {
395
- const v = utilities.handler.bracket.auto.rem(s);
395
+ const v = utilities.handler.bracket.cssvar.auto.rem(s);
396
396
  if (v != null) {
397
397
  return {
398
398
  [`grid-${directions[d]}gap`]: v,
@@ -418,12 +418,12 @@ const autoDirection = (selector, theme) => {
418
418
  case "fr":
419
419
  return "minmax(0,1fr)";
420
420
  }
421
- return utilities.handler.bracket.auto.rem(selector);
421
+ return utilities.handler.bracket.cssvar.auto.rem(selector);
422
422
  };
423
423
  const grids = [
424
424
  ["grid", { display: "grid" }],
425
425
  ["inline-grid", { display: "inline-grid" }],
426
- [/^(?:grid-)?(row|col)-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}`]: utilities.handler.bracket.auto(v) })],
426
+ [/^(?:grid-)?(row|col)-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}`]: utilities.handler.bracket.cssvar.auto(v) })],
427
427
  [/^(?:grid-)?(row|col)-span-(.+)$/, ([, c, s]) => {
428
428
  if (s === "full")
429
429
  return { [`grid-${rowCol(c)}`]: "1/-1" };
@@ -431,11 +431,12 @@ const grids = [
431
431
  if (v != null)
432
432
  return { [`grid-${rowCol(c)}`]: `span ${v}/span ${v}` };
433
433
  }],
434
- [/^(?:grid-)?(row|col)-start-([\w.-]+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: v })],
435
- [/^(?:grid-)?(row|col)-end-([\w.-]+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: v })],
436
- [/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(v, theme) })],
434
+ [/^(?:grid-)?(row|col)-start-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: utilities.handler.bracket.cssvar(v) ?? v })],
435
+ [/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: utilities.handler.bracket.cssvar(v) ?? v })],
436
+ [/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(v, theme) })],
437
+ [/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/, ([, v]) => ({ "grid-auto-flow": utilities.handler.bracket.cssvar(v) })],
437
438
  [/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/, ([, v]) => ({ "grid-auto-flow": rowCol(v).replace("-", " ") })],
438
- [/^grid-(rows|cols)-(\[.+\])$/, ([, c, v]) => ({ [`grid-template-${rowCol(c)}`]: utilities.handler.bracket(v) })],
439
+ [/^grid-(rows|cols)-(.+)$/, ([, c, v]) => ({ [`grid-template-${rowCol(c)}`]: utilities.handler.bracket.cssvar(v) })],
439
440
  [/^grid-(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
440
441
  [/^grid-(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` })],
441
442
  ["grid-rows-none", { "grid-template-rows": "none" }],
@@ -476,7 +477,7 @@ const justifies = [
476
477
  ["justify-self-stretch", { "justify-self": "stretch" }]
477
478
  ];
478
479
  const orders = [
479
- [/^order-(.+)$/, ([, v]) => ({ order: utilities.handler.bracket.number(v) })],
480
+ [/^order-(.+)$/, ([, v]) => ({ order: utilities.handler.bracket.cssvar.number(v) })],
480
481
  ["order-first", { order: "-9999" }],
481
482
  ["order-last", { order: "9999" }],
482
483
  ["order-none", { order: "0" }]
@@ -519,7 +520,7 @@ const placements = [
519
520
  ["place-self-stretch", { "place-self": "stretch" }]
520
521
  ];
521
522
  function handleInsetValue(v) {
522
- return utilities.handler.bracket.fraction.cssvar.auto.rem(v);
523
+ return utilities.handler.bracket.cssvar.auto.fraction.rem(v);
523
524
  }
524
525
  function handleInsetValues([, d, v]) {
525
526
  const r = handleInsetValue(v);
@@ -544,8 +545,8 @@ const floats = [
544
545
  ["clear-none", { clear: "none" }]
545
546
  ];
546
547
  const zIndexes = [
547
- ["z-auto", { "z-index": "auto" }],
548
- [/^z-([^-]+)$/, ([, v]) => ({ "z-index": utilities.handler.number(v) })]
548
+ [/^z-(.+)$/, ([, v]) => ({ "z-index": utilities.handler.bracket.cssvar.number(v) })],
549
+ ["z-auto", { "z-index": "auto" }]
549
550
  ];
550
551
  const boxSizing = [
551
552
  ["box-border", { "box-sizing": "border-box" }],
@@ -574,7 +575,7 @@ const rings = [
574
575
  }
575
576
  }],
576
577
  ["ring-offset", { "--un-ring-offset-width": "1px" }],
577
- [/^ring-offset-(.+)$/, ([, d]) => ({ "--un-ring-offset-width": utilities.handler.px(d || "1") })],
578
+ [/^ring-offset-(?:width-|size-)?(.+)$/, ([, d]) => ({ "--un-ring-offset-width": utilities.handler.bracket.cssvar.px(d) })],
578
579
  [/^ring-(.+)$/, utilities.colorResolver("--un-ring-color", "ring")],
579
580
  [/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": utilities.handler.bracket.percent(opacity) })],
580
581
  [/^ring-offset-(.+)$/, utilities.colorResolver("--un-ring-offset-color", "ring-offset")],
@@ -602,7 +603,7 @@ function getSizeValue(minmax, hw, theme, prop) {
602
603
  case "min":
603
604
  return `${prop}-content`;
604
605
  }
605
- return utilities.handler.bracket.cssvar.fraction.auto.rem(prop);
606
+ return utilities.handler.bracket.cssvar.auto.fraction.rem(prop);
606
607
  }
607
608
  const sizes = [
608
609
  [/^(min-|max-)?([wh])-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
@@ -628,14 +629,14 @@ const paddings = [
628
629
  [/^pa?()-?(-?.+)$/, utilities.directionSize("padding")],
629
630
  [/^p-?([xy])-?(-?.+)$/, utilities.directionSize("padding")],
630
631
  [/^p-?([rltbse])-?(-?.+)$/, utilities.directionSize("padding")],
631
- [/^p-(inline|block)-(-?.+)$/, utilities.directionSize("padding")],
632
+ [/^p-(block|inline)-(-?.+)$/, utilities.directionSize("padding")],
632
633
  [/^p-?([bi][se])-?(-?.+)$/, utilities.directionSize("padding")]
633
634
  ];
634
635
  const margins = [
635
636
  [/^ma?()-?(-?.+)$/, utilities.directionSize("margin")],
636
637
  [/^m-?([xy])-?(-?.+)$/, utilities.directionSize("margin")],
637
638
  [/^m-?([rltbse])-?(-?.+)$/, utilities.directionSize("margin")],
638
- [/^m-(inline|block)-(-?.+)$/, utilities.directionSize("margin")],
639
+ [/^m-(block|inline)-(-?.+)$/, utilities.directionSize("margin")],
639
640
  [/^m-?([bi][se])-?(-?.+)$/, utilities.directionSize("margin")]
640
641
  ];
641
642
 
@@ -686,9 +687,9 @@ const transformBase = {
686
687
  [core.CONTROL_SHORTCUT_NO_MERGE]: ""
687
688
  };
688
689
  const transforms = [
689
- [/^origin-([-\w]{3,})$/, ([, s]) => ({ "transform-origin": utilities.positionMap[s] })],
690
+ [/^origin-(.+)$/, ([, s]) => ({ "transform-origin": utilities.positionMap[s] ?? utilities.handler.bracket.cssvar(s) })],
690
691
  [/^perspect-(.+)$/, ([, s]) => {
691
- const v = utilities.handler.px.numberWithUnit(s);
692
+ const v = utilities.handler.bracket.cssvar.px.numberWithUnit(s);
692
693
  if (v != null) {
693
694
  return {
694
695
  "-webkit-perspective": v,
@@ -697,7 +698,7 @@ const transforms = [
697
698
  }
698
699
  }],
699
700
  [/^perspect-origin-(.+)$/, ([, s]) => {
700
- const v = utilities.handler.bracket(s) ?? (s.length >= 3 ? utilities.positionMap[s] : void 0);
701
+ const v = utilities.handler.bracket.cssvar(s) ?? (s.length >= 3 ? utilities.positionMap[s] : void 0);
701
702
  if (v != null) {
702
703
  return {
703
704
  "-webkit-perspective-origin": v,
@@ -709,7 +710,6 @@ const transforms = [
709
710
  [/^translate-([xyz])-(.+)$/, handleTranslate],
710
711
  [/^rotate-()(.+)$/, handleRotate],
711
712
  [/^rotate(-[xyz])-(.+)$/, handleRotate],
712
- [/^skew-()(.+)$/, handleSkew],
713
713
  [/^skew-([xy])-(.+)$/, handleSkew],
714
714
  [/^scale-()(.+)$/, handleScale],
715
715
  [/^scale-([xyz])-(.+)$/, handleScale],
@@ -724,7 +724,7 @@ const transforms = [
724
724
  ["transform-none", { transform: "none" }]
725
725
  ];
726
726
  function handleTranslate([, d, b]) {
727
- const v = utilities.handler.bracket.fraction.auto.rem(b);
727
+ const v = utilities.handler.bracket.cssvar.fraction.rem(b);
728
728
  if (v != null) {
729
729
  return [
730
730
  transformBase,
@@ -736,7 +736,7 @@ function handleTranslate([, d, b]) {
736
736
  }
737
737
  }
738
738
  function handleScale([, d, b]) {
739
- const v = utilities.handler.bracket.fraction.percent(b);
739
+ const v = utilities.handler.bracket.cssvar.fraction.percent(b);
740
740
  if (v != null) {
741
741
  return [
742
742
  transformBase,
@@ -748,7 +748,7 @@ function handleScale([, d, b]) {
748
748
  }
749
749
  }
750
750
  function handleRotate([, d, b]) {
751
- const v = utilities.handler.bracket.degree(b);
751
+ const v = utilities.handler.bracket.cssvar.degree(b);
752
752
  if (v != null) {
753
753
  return [
754
754
  transformBase,
@@ -760,7 +760,7 @@ function handleRotate([, d, b]) {
760
760
  }
761
761
  }
762
762
  function handleSkew([, d, b]) {
763
- const v = utilities.handler.bracket.degree(b);
763
+ const v = utilities.handler.bracket.cssvar.degree(b);
764
764
  if (v != null) {
765
765
  return [
766
766
  transformBase,
@@ -773,38 +773,34 @@ function handleSkew([, d, b]) {
773
773
  }
774
774
 
775
775
  const variablesAbbrMap = {
776
- "visible": "visibility",
777
- "select": "user-select",
778
- "vertical": "vertical-align",
779
776
  "backface": "backface-visibility",
780
- "whitespace": "white-space",
781
777
  "break": "word-break",
782
778
  "case": "text-transform",
783
- "origin": "transform-origin",
784
- "bg-opacity": "background-opacity",
785
- "tab": "tab-size",
786
- "underline": "text-decoration-thickness",
787
- "underline-offset": "text-underline-offset",
788
- "grid-cols": "grid-template-columns",
789
- "grid-rows": "grid-template-rows",
790
- "auto-flow": "grid-auto-flow",
791
- "row-start": "grid-row-start",
792
- "row-end": "grid-row-end",
793
- "justify": "justify-content",
794
779
  "content": "align-content",
780
+ "flex": "flex",
781
+ "fw": "font-weight",
795
782
  "items": "align-items",
783
+ "justify": "justify-content",
784
+ "leading": "line-height",
785
+ "lh": "line-height",
786
+ "select": "user-select",
796
787
  "self": "align-self",
797
- "object": "object-fit"
788
+ "tracking": "letter-spacing",
789
+ "vertical": "vertical-align",
790
+ "visible": "visibility",
791
+ "whitespace": "white-space",
792
+ "word-spacing": "word-spacing",
793
+ "ws": "white-space"
798
794
  };
799
795
  const cssVariables = [
800
- [/^(.+)-\$(.+)$/, ([, name, varname]) => {
801
- const prop = variablesAbbrMap[name];
796
+ [/^([^$]+)(?<=-)\$(.+)$/, ([, name, varname]) => {
797
+ const prop = variablesAbbrMap[name.slice(0, -1)];
802
798
  if (prop)
803
799
  return { [prop]: `var(--${varname})` };
804
800
  }]
805
801
  ];
806
802
  const cssProperty = [
807
- [/^\[(.+):(.+)\]$/, ([, prop, value]) => ({ [prop]: utilities.handler.bracket(`[${value}]`) })]
803
+ [/^\[([^:]+):(.+)\]$/, ([, prop, value]) => ({ [prop]: utilities.handler.bracket(`[${value}]`) })]
808
804
  ];
809
805
 
810
806
  const questionMark = [
@@ -824,7 +820,7 @@ const textDecorations = [
824
820
  ["line-through", { "text-decoration-line": "line-through" }],
825
821
  ["decoration-underline", { "text-decoration-line": "underline" }],
826
822
  ["decoration-line-through", { "text-decoration-line": "line-through" }],
827
- [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s]) => ({ "text-decoration-thickness": utilities.handler.bracket.px(s) })],
823
+ [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s]) => ({ "text-decoration-thickness": utilities.handler.bracket.cssvar.px(s) })],
828
824
  [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s })],
829
825
  [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
830
826
  const result = utilities.colorResolver("text-decoration-color", "line")(match, ctx);
@@ -836,7 +832,7 @@ const textDecorations = [
836
832
  }
837
833
  }],
838
834
  [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": utilities.handler.bracket.percent(opacity) })],
839
- [/^underline-offset-(.+)$/, ([, s]) => ({ "text-underline-offset": utilities.handler.auto.bracket.px(s) })],
835
+ [/^underline-offset-(.+)$/, ([, s]) => ({ "text-underline-offset": utilities.handler.auto.bracket.cssvar.px(s) })],
840
836
  [/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/, ([, d]) => ({ "text-decoration-style": d })],
841
837
  ["no-underline", { "text-decoration": "none" }],
842
838
  ["decoration-none", { "text-decoration": "none" }]
@@ -847,8 +843,8 @@ const svgUtilities = [
847
843
  [/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-fill-opacity": utilities.handler.bracket.percent(opacity) })],
848
844
  ["fill-none", { fill: "none" }],
849
845
  [/^stroke-(?:width-|size-)?(.+)$/, ([, s]) => ({ "stroke-width": utilities.handler.bracket.fraction.px.number(s) })],
850
- [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": utilities.handler.bracket.number(s) })],
851
- [/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": utilities.handler.bracket.px.numberWithUnit(s) })],
846
+ [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": utilities.handler.bracket.cssvar.number(s) })],
847
+ [/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": utilities.handler.bracket.cssvar.px.numberWithUnit(s) })],
852
848
  [/^stroke-(.+)$/, utilities.colorResolver("stroke", "stroke")],
853
849
  [/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-stroke-opacity": utilities.handler.bracket.percent(opacity) })],
854
850
  ["stroke-cap-square", { "stroke-linecap": "square" }],
@@ -17,9 +17,9 @@ const textAligns = [
17
17
  ];
18
18
 
19
19
  const outline = [
20
- [/^outline-(?:width-|size-)?(.+)$/, ([, d]) => ({ "outline-width": handler.bracket.fraction.auto.rem(d) })],
20
+ [/^outline-(?:width-|size-)?(.+)$/, ([, d]) => ({ "outline-width": handler.bracket.cssvar.auto.fraction.rem(d) })],
21
21
  [/^outline-(?:color-)?(.+)$/, colorResolver("outline-color", "outline-color")],
22
- [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": handler.bracket.fraction.auto.rem(d) })],
22
+ [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": handler.bracket.cssvar.auto.fraction.rem(d) })],
23
23
  ["outline", { "outline-style": "solid" }],
24
24
  [/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/, ([, c]) => ({ "outline-style": c })],
25
25
  ["outline-none", { "outline": "2px solid transparent", "outline-offset": "2px" }]
@@ -118,7 +118,7 @@ function handlerBorder(m) {
118
118
  }
119
119
  }
120
120
  function handlerBorderSize([, a = "", b = "1"]) {
121
- const v = handler.bracket.px(b);
121
+ const v = handler.bracket.cssvar.px(b);
122
122
  if (a in directionMap && v != null)
123
123
  return directionMap[a].map((i) => [`border${i}-width`, v]);
124
124
  }
@@ -133,7 +133,7 @@ function handlerBorderOpacity([, a = "", opacity]) {
133
133
  return directionMap[a].map((i) => [`--un-border${i}-opacity`, v]);
134
134
  }
135
135
  function handlerRounded([, a = "", s = "DEFAULT"], { theme }) {
136
- const v = theme.borderRadius?.[s] || handler.auto.rem.fraction.bracket.cssvar(s);
136
+ const v = theme.borderRadius?.[s] || handler.bracket.cssvar.auto.fraction.rem(s);
137
137
  if (a in cornerMap && v != null)
138
138
  return cornerMap[a].map((i) => [`border${i}-radius`, v]);
139
139
  }
@@ -143,7 +143,7 @@ const opacity = [
143
143
  ];
144
144
  const textColors = [
145
145
  [/^(?:text|color|c)-(.+)$/, colorResolver("color", "text")],
146
- [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent.cssvar(opacity2) })]
146
+ [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent(opacity2) })]
147
147
  ];
148
148
  const bgColors = [
149
149
  [/^bg-(.+)$/, colorResolver("background-color", "bg")],
@@ -171,9 +171,9 @@ const transitions = [
171
171
  };
172
172
  }
173
173
  }],
174
- [/^(?:transition-)?delay-(.+)(?:s|ms)?$/, ([, d]) => ({ "transition-delay": handler.bracket.time(d) })],
175
- [/^(?:transition-)?duration-(.+)(?:s|ms)?$/, ([, d]) => ({ "transition-duration": handler.bracket.time(d) })],
176
- [/^ease-(.+)$/, ([, d]) => ({ "transition-timing-function": handler.bracket(d) })],
174
+ [/^(?:transition-)?duration-(.+)$/, ([, d]) => ({ "transition-duration": handler.bracket.cssvar.time(d) })],
175
+ [/^(?:transition-)?delay-(.+)$/, ([, d]) => ({ "transition-delay": handler.bracket.cssvar.time(d) })],
176
+ [/^ease-(.+)$/, ([, d]) => ({ "transition-timing-function": handler.bracket.cssvar(d) })],
177
177
  ["ease", { "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)" }],
178
178
  ["ease-linear", { "transition-timing-function": "linear" }],
179
179
  ["ease-in", { "transition-timing-function": "cubic-bezier(0.4, 0, 1, 1)" }],
@@ -198,7 +198,7 @@ const flex = [
198
198
  [/^(?:flex-)?shrink-0$/, () => ({ "flex-shrink": 0 })],
199
199
  [/^(?:flex-)?grow$/, () => ({ "flex-grow": 1 })],
200
200
  [/^(?:flex-)?grow-0$/, () => ({ "flex-grow": 0 })],
201
- [/^(?:flex-)?basis-(.+)$/, ([, d]) => ({ "flex-basis": handler.bracket.fraction.auto.rem(d) })],
201
+ [/^(?:flex-)?basis-(.+)$/, ([, d]) => ({ "flex-basis": handler.bracket.cssvar.auto.fraction.rem(d) })],
202
202
  ["flex-row", { "flex-direction": "row" }],
203
203
  ["flex-row-reverse", { "flex-direction": "row-reverse" }],
204
204
  ["flex-col", { "flex-direction": "column" }],
@@ -225,7 +225,7 @@ const appearances = [
225
225
  ["backface-hidden", { "backface-visibility": "hidden" }]
226
226
  ];
227
227
  const cursors = [
228
- [/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
228
+ [/^cursor-(.+)$/, ([, c]) => ({ cursor: handler.bracket.cssvar(c) || c })]
229
229
  ];
230
230
  const pointerEvents = [
231
231
  ["pointer-events-auto", { "pointer-events": "auto" }],
@@ -315,7 +315,7 @@ const boxShadows = [
315
315
  }
316
316
  }],
317
317
  [/^shadow-(.+)$/, colorResolver("--un-shadow-color", "shadow")],
318
- [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": handler.bracket.percent.cssvar(opacity) })],
318
+ [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": handler.bracket.percent(opacity) })],
319
319
  ["shadow-inset", { "--un-shadow-inset": "inset" }]
320
320
  ];
321
321
 
@@ -343,15 +343,15 @@ const fonts = [
343
343
  }
344
344
  return { "font-size": handler.bracket.auto.rem(s) };
345
345
  }],
346
- [/^text-size-(.+)$/, ([, s]) => ({ "font-size": handler.bracket.auto.rem(s) })],
346
+ [/^text-size-(.+)$/, ([, s]) => ({ "font-size": handler.bracket.cssvar.auto.rem(s) })],
347
347
  [/^(?:font|fw)-?([^-]+)$/, ([, s]) => ({ "font-weight": weightMap[s] || handler.number(s) })],
348
348
  [/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || handler.bracket.auto.rem(s) })],
349
349
  [/^tracking-([^-]+)$/, ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || handler.bracket.auto.rem(s) })],
350
350
  [/^word-spacing-([^-]+)$/, ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || handler.bracket.auto.rem(s) })]
351
351
  ];
352
352
  const tabSizes = [
353
- [/^tab(?:-([^-]+))?$/, ([, s]) => {
354
- const v = handler.bracket.global.number(s || "4");
353
+ [/^tab(?:-(.+))?$/, ([, s]) => {
354
+ const v = handler.bracket.cssvar.global.number(s || "4");
355
355
  if (v != null) {
356
356
  return {
357
357
  "-moz-tab-size": v,
@@ -362,7 +362,7 @@ const tabSizes = [
362
362
  }]
363
363
  ];
364
364
  const textIndents = [
365
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || handler.bracket.cssvar.fraction.auto.rem(s) })]
365
+ [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || handler.bracket.cssvar.auto.fraction.rem(s) })]
366
366
  ];
367
367
  const textStrokes = [
368
368
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || handler.bracket.cssvar.px(s) })],
@@ -390,7 +390,7 @@ const directions = {
390
390
  "y": "row-"
391
391
  };
392
392
  const handleGap = ([, d = "", s]) => {
393
- const v = handler.bracket.auto.rem(s);
393
+ const v = handler.bracket.cssvar.auto.rem(s);
394
394
  if (v != null) {
395
395
  return {
396
396
  [`grid-${directions[d]}gap`]: v,
@@ -416,12 +416,12 @@ const autoDirection = (selector, theme) => {
416
416
  case "fr":
417
417
  return "minmax(0,1fr)";
418
418
  }
419
- return handler.bracket.auto.rem(selector);
419
+ return handler.bracket.cssvar.auto.rem(selector);
420
420
  };
421
421
  const grids = [
422
422
  ["grid", { display: "grid" }],
423
423
  ["inline-grid", { display: "inline-grid" }],
424
- [/^(?:grid-)?(row|col)-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}`]: handler.bracket.auto(v) })],
424
+ [/^(?:grid-)?(row|col)-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}`]: handler.bracket.cssvar.auto(v) })],
425
425
  [/^(?:grid-)?(row|col)-span-(.+)$/, ([, c, s]) => {
426
426
  if (s === "full")
427
427
  return { [`grid-${rowCol(c)}`]: "1/-1" };
@@ -429,11 +429,12 @@ const grids = [
429
429
  if (v != null)
430
430
  return { [`grid-${rowCol(c)}`]: `span ${v}/span ${v}` };
431
431
  }],
432
- [/^(?:grid-)?(row|col)-start-([\w.-]+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: v })],
433
- [/^(?:grid-)?(row|col)-end-([\w.-]+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: v })],
434
- [/^(?:grid-)?auto-(rows|cols)-([\w.-]+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(v, theme) })],
432
+ [/^(?:grid-)?(row|col)-start-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: handler.bracket.cssvar(v) ?? v })],
433
+ [/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: handler.bracket.cssvar(v) ?? v })],
434
+ [/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(v, theme) })],
435
+ [/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/, ([, v]) => ({ "grid-auto-flow": handler.bracket.cssvar(v) })],
435
436
  [/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/, ([, v]) => ({ "grid-auto-flow": rowCol(v).replace("-", " ") })],
436
- [/^grid-(rows|cols)-(\[.+\])$/, ([, c, v]) => ({ [`grid-template-${rowCol(c)}`]: handler.bracket(v) })],
437
+ [/^grid-(rows|cols)-(.+)$/, ([, c, v]) => ({ [`grid-template-${rowCol(c)}`]: handler.bracket.cssvar(v) })],
437
438
  [/^grid-(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
438
439
  [/^grid-(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` })],
439
440
  ["grid-rows-none", { "grid-template-rows": "none" }],
@@ -474,7 +475,7 @@ const justifies = [
474
475
  ["justify-self-stretch", { "justify-self": "stretch" }]
475
476
  ];
476
477
  const orders = [
477
- [/^order-(.+)$/, ([, v]) => ({ order: handler.bracket.number(v) })],
478
+ [/^order-(.+)$/, ([, v]) => ({ order: handler.bracket.cssvar.number(v) })],
478
479
  ["order-first", { order: "-9999" }],
479
480
  ["order-last", { order: "9999" }],
480
481
  ["order-none", { order: "0" }]
@@ -517,7 +518,7 @@ const placements = [
517
518
  ["place-self-stretch", { "place-self": "stretch" }]
518
519
  ];
519
520
  function handleInsetValue(v) {
520
- return handler.bracket.fraction.cssvar.auto.rem(v);
521
+ return handler.bracket.cssvar.auto.fraction.rem(v);
521
522
  }
522
523
  function handleInsetValues([, d, v]) {
523
524
  const r = handleInsetValue(v);
@@ -542,8 +543,8 @@ const floats = [
542
543
  ["clear-none", { clear: "none" }]
543
544
  ];
544
545
  const zIndexes = [
545
- ["z-auto", { "z-index": "auto" }],
546
- [/^z-([^-]+)$/, ([, v]) => ({ "z-index": handler.number(v) })]
546
+ [/^z-(.+)$/, ([, v]) => ({ "z-index": handler.bracket.cssvar.number(v) })],
547
+ ["z-auto", { "z-index": "auto" }]
547
548
  ];
548
549
  const boxSizing = [
549
550
  ["box-border", { "box-sizing": "border-box" }],
@@ -572,7 +573,7 @@ const rings = [
572
573
  }
573
574
  }],
574
575
  ["ring-offset", { "--un-ring-offset-width": "1px" }],
575
- [/^ring-offset-(.+)$/, ([, d]) => ({ "--un-ring-offset-width": handler.px(d || "1") })],
576
+ [/^ring-offset-(?:width-|size-)?(.+)$/, ([, d]) => ({ "--un-ring-offset-width": handler.bracket.cssvar.px(d) })],
576
577
  [/^ring-(.+)$/, colorResolver("--un-ring-color", "ring")],
577
578
  [/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": handler.bracket.percent(opacity) })],
578
579
  [/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset")],
@@ -600,7 +601,7 @@ function getSizeValue(minmax, hw, theme, prop) {
600
601
  case "min":
601
602
  return `${prop}-content`;
602
603
  }
603
- return handler.bracket.cssvar.fraction.auto.rem(prop);
604
+ return handler.bracket.cssvar.auto.fraction.rem(prop);
604
605
  }
605
606
  const sizes = [
606
607
  [/^(min-|max-)?([wh])-(.+)$/, ([, m, w, s], { theme }) => ({ [getPropName(m, w)]: getSizeValue(m, w, theme, s) })],
@@ -626,14 +627,14 @@ const paddings = [
626
627
  [/^pa?()-?(-?.+)$/, directionSize("padding")],
627
628
  [/^p-?([xy])-?(-?.+)$/, directionSize("padding")],
628
629
  [/^p-?([rltbse])-?(-?.+)$/, directionSize("padding")],
629
- [/^p-(inline|block)-(-?.+)$/, directionSize("padding")],
630
+ [/^p-(block|inline)-(-?.+)$/, directionSize("padding")],
630
631
  [/^p-?([bi][se])-?(-?.+)$/, directionSize("padding")]
631
632
  ];
632
633
  const margins = [
633
634
  [/^ma?()-?(-?.+)$/, directionSize("margin")],
634
635
  [/^m-?([xy])-?(-?.+)$/, directionSize("margin")],
635
636
  [/^m-?([rltbse])-?(-?.+)$/, directionSize("margin")],
636
- [/^m-(inline|block)-(-?.+)$/, directionSize("margin")],
637
+ [/^m-(block|inline)-(-?.+)$/, directionSize("margin")],
637
638
  [/^m-?([bi][se])-?(-?.+)$/, directionSize("margin")]
638
639
  ];
639
640
 
@@ -684,9 +685,9 @@ const transformBase = {
684
685
  [CONTROL_SHORTCUT_NO_MERGE]: ""
685
686
  };
686
687
  const transforms = [
687
- [/^origin-([-\w]{3,})$/, ([, s]) => ({ "transform-origin": positionMap[s] })],
688
+ [/^origin-(.+)$/, ([, s]) => ({ "transform-origin": positionMap[s] ?? handler.bracket.cssvar(s) })],
688
689
  [/^perspect-(.+)$/, ([, s]) => {
689
- const v = handler.px.numberWithUnit(s);
690
+ const v = handler.bracket.cssvar.px.numberWithUnit(s);
690
691
  if (v != null) {
691
692
  return {
692
693
  "-webkit-perspective": v,
@@ -695,7 +696,7 @@ const transforms = [
695
696
  }
696
697
  }],
697
698
  [/^perspect-origin-(.+)$/, ([, s]) => {
698
- const v = handler.bracket(s) ?? (s.length >= 3 ? positionMap[s] : void 0);
699
+ const v = handler.bracket.cssvar(s) ?? (s.length >= 3 ? positionMap[s] : void 0);
699
700
  if (v != null) {
700
701
  return {
701
702
  "-webkit-perspective-origin": v,
@@ -707,7 +708,6 @@ const transforms = [
707
708
  [/^translate-([xyz])-(.+)$/, handleTranslate],
708
709
  [/^rotate-()(.+)$/, handleRotate],
709
710
  [/^rotate(-[xyz])-(.+)$/, handleRotate],
710
- [/^skew-()(.+)$/, handleSkew],
711
711
  [/^skew-([xy])-(.+)$/, handleSkew],
712
712
  [/^scale-()(.+)$/, handleScale],
713
713
  [/^scale-([xyz])-(.+)$/, handleScale],
@@ -722,7 +722,7 @@ const transforms = [
722
722
  ["transform-none", { transform: "none" }]
723
723
  ];
724
724
  function handleTranslate([, d, b]) {
725
- const v = handler.bracket.fraction.auto.rem(b);
725
+ const v = handler.bracket.cssvar.fraction.rem(b);
726
726
  if (v != null) {
727
727
  return [
728
728
  transformBase,
@@ -734,7 +734,7 @@ function handleTranslate([, d, b]) {
734
734
  }
735
735
  }
736
736
  function handleScale([, d, b]) {
737
- const v = handler.bracket.fraction.percent(b);
737
+ const v = handler.bracket.cssvar.fraction.percent(b);
738
738
  if (v != null) {
739
739
  return [
740
740
  transformBase,
@@ -746,7 +746,7 @@ function handleScale([, d, b]) {
746
746
  }
747
747
  }
748
748
  function handleRotate([, d, b]) {
749
- const v = handler.bracket.degree(b);
749
+ const v = handler.bracket.cssvar.degree(b);
750
750
  if (v != null) {
751
751
  return [
752
752
  transformBase,
@@ -758,7 +758,7 @@ function handleRotate([, d, b]) {
758
758
  }
759
759
  }
760
760
  function handleSkew([, d, b]) {
761
- const v = handler.bracket.degree(b);
761
+ const v = handler.bracket.cssvar.degree(b);
762
762
  if (v != null) {
763
763
  return [
764
764
  transformBase,
@@ -771,38 +771,34 @@ function handleSkew([, d, b]) {
771
771
  }
772
772
 
773
773
  const variablesAbbrMap = {
774
- "visible": "visibility",
775
- "select": "user-select",
776
- "vertical": "vertical-align",
777
774
  "backface": "backface-visibility",
778
- "whitespace": "white-space",
779
775
  "break": "word-break",
780
776
  "case": "text-transform",
781
- "origin": "transform-origin",
782
- "bg-opacity": "background-opacity",
783
- "tab": "tab-size",
784
- "underline": "text-decoration-thickness",
785
- "underline-offset": "text-underline-offset",
786
- "grid-cols": "grid-template-columns",
787
- "grid-rows": "grid-template-rows",
788
- "auto-flow": "grid-auto-flow",
789
- "row-start": "grid-row-start",
790
- "row-end": "grid-row-end",
791
- "justify": "justify-content",
792
777
  "content": "align-content",
778
+ "flex": "flex",
779
+ "fw": "font-weight",
793
780
  "items": "align-items",
781
+ "justify": "justify-content",
782
+ "leading": "line-height",
783
+ "lh": "line-height",
784
+ "select": "user-select",
794
785
  "self": "align-self",
795
- "object": "object-fit"
786
+ "tracking": "letter-spacing",
787
+ "vertical": "vertical-align",
788
+ "visible": "visibility",
789
+ "whitespace": "white-space",
790
+ "word-spacing": "word-spacing",
791
+ "ws": "white-space"
796
792
  };
797
793
  const cssVariables = [
798
- [/^(.+)-\$(.+)$/, ([, name, varname]) => {
799
- const prop = variablesAbbrMap[name];
794
+ [/^([^$]+)(?<=-)\$(.+)$/, ([, name, varname]) => {
795
+ const prop = variablesAbbrMap[name.slice(0, -1)];
800
796
  if (prop)
801
797
  return { [prop]: `var(--${varname})` };
802
798
  }]
803
799
  ];
804
800
  const cssProperty = [
805
- [/^\[(.+):(.+)\]$/, ([, prop, value]) => ({ [prop]: handler.bracket(`[${value}]`) })]
801
+ [/^\[([^:]+):(.+)\]$/, ([, prop, value]) => ({ [prop]: handler.bracket(`[${value}]`) })]
806
802
  ];
807
803
 
808
804
  const questionMark = [
@@ -822,7 +818,7 @@ const textDecorations = [
822
818
  ["line-through", { "text-decoration-line": "line-through" }],
823
819
  ["decoration-underline", { "text-decoration-line": "underline" }],
824
820
  ["decoration-line-through", { "text-decoration-line": "line-through" }],
825
- [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s]) => ({ "text-decoration-thickness": handler.bracket.px(s) })],
821
+ [/^(?:underline|decoration)-(?:size-)?(.+)$/, ([, s]) => ({ "text-decoration-thickness": handler.bracket.cssvar.px(s) })],
826
822
  [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s })],
827
823
  [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
828
824
  const result = colorResolver("text-decoration-color", "line")(match, ctx);
@@ -834,7 +830,7 @@ const textDecorations = [
834
830
  }
835
831
  }],
836
832
  [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-line-opacity": handler.bracket.percent(opacity) })],
837
- [/^underline-offset-(.+)$/, ([, s]) => ({ "text-underline-offset": handler.auto.bracket.px(s) })],
833
+ [/^underline-offset-(.+)$/, ([, s]) => ({ "text-underline-offset": handler.auto.bracket.cssvar.px(s) })],
838
834
  [/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/, ([, d]) => ({ "text-decoration-style": d })],
839
835
  ["no-underline", { "text-decoration": "none" }],
840
836
  ["decoration-none", { "text-decoration": "none" }]
@@ -845,8 +841,8 @@ const svgUtilities = [
845
841
  [/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-fill-opacity": handler.bracket.percent(opacity) })],
846
842
  ["fill-none", { fill: "none" }],
847
843
  [/^stroke-(?:width-|size-)?(.+)$/, ([, s]) => ({ "stroke-width": handler.bracket.fraction.px.number(s) })],
848
- [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": handler.bracket.number(s) })],
849
- [/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": handler.bracket.px.numberWithUnit(s) })],
844
+ [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": handler.bracket.cssvar.number(s) })],
845
+ [/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": handler.bracket.cssvar.px.numberWithUnit(s) })],
850
846
  [/^stroke-(.+)$/, colorResolver("stroke", "stroke")],
851
847
  [/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-stroke-opacity": handler.bracket.percent(opacity) })],
852
848
  ["stroke-cap-square", { "stroke-linecap": "square" }],
@@ -46,6 +46,16 @@ const variantCombinators = [
46
46
  variants$1.variantMatcher("svg", (input) => `${input} svg *`)
47
47
  ];
48
48
 
49
+ const variantMotions = [
50
+ variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
51
+ variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
52
+ ];
53
+ const variantOrientations = [
54
+ variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
55
+ variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
56
+ ];
57
+ const variantPrint = variants$1.variantParentMatcher("print", "@media print");
58
+
49
59
  const variantColorsMediaOrClass = (options = {}) => {
50
60
  if (options?.dark === "class") {
51
61
  return [
@@ -98,19 +108,6 @@ const variantNegative = {
98
108
  }
99
109
  };
100
110
 
101
- const variantMotions = [
102
- variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
103
- variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
104
- ];
105
-
106
- const variantOrientations = [
107
- variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
108
- variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
109
- ];
110
-
111
- const variantPrint = variants$1.variantParentMatcher("print", "@media print");
112
-
113
- const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
114
111
  const PseudoClasses = Object.fromEntries([
115
112
  "any-link",
116
113
  "link",
@@ -173,9 +170,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
173
170
  const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
174
171
  const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
175
172
  const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
176
- function shouldAdd(entires) {
177
- return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
178
- }
179
173
  const taggedPseudoClassMatcher = (tag, parent, combinator) => {
180
174
  const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
181
175
  const rawRe = new RegExp(`^${core.escapeRegExp(parent)}:`);
@@ -187,9 +181,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
187
181
  pseudo = `:${match[2]}(${pseudo})`;
188
182
  return {
189
183
  matcher: input.slice(match[1].length + tag.length + 2),
190
- selector: (s, body) => {
191
- return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
192
- }
184
+ selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
193
185
  };
194
186
  }
195
187
  };
@@ -211,7 +203,7 @@ const variantPseudoClasses = {
211
203
  const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
212
204
  return {
213
205
  matcher: input.slice(match[1].length + 1),
214
- selector: (s, body) => shouldAdd(body) && `${s}${pseudo}`
206
+ selector: (s) => `${s}${pseudo}`
215
207
  };
216
208
  }
217
209
  },
@@ -225,7 +217,7 @@ const variantPseudoClassFunctions = {
225
217
  const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
226
218
  return {
227
219
  matcher: input.slice(match[1].length + match[2].length + 2),
228
- selector: (s, body) => shouldAdd(body) && `${s}:${fn}(${pseudo})`
220
+ selector: (s) => `${s}:${fn}(${pseudo})`
229
221
  };
230
222
  }
231
223
  },
@@ -251,9 +243,7 @@ const partClasses = {
251
243
  const part = `part(${match[2]})`;
252
244
  return {
253
245
  matcher: input.slice(match[1].length),
254
- selector: (s, body) => {
255
- return shouldAdd(body) && `${s}::${part}`;
256
- }
246
+ selector: (s) => `${s}::${part}`
257
247
  };
258
248
  }
259
249
  },
@@ -277,7 +267,6 @@ const variants = (options) => [
277
267
  ...variantLanguageDirections
278
268
  ];
279
269
 
280
- exports.CONTROL_BYPASS_PSEUDO_CLASS = CONTROL_BYPASS_PSEUDO_CLASS;
281
270
  exports.partClasses = partClasses;
282
271
  exports.variantBreakpoints = variantBreakpoints;
283
272
  exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
@@ -44,6 +44,16 @@ const variantCombinators = [
44
44
  variantMatcher("svg", (input) => `${input} svg *`)
45
45
  ];
46
46
 
47
+ const variantMotions = [
48
+ variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
49
+ variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
50
+ ];
51
+ const variantOrientations = [
52
+ variantParentMatcher("landscape", "@media (orientation: landscape)"),
53
+ variantParentMatcher("portrait", "@media (orientation: portrait)")
54
+ ];
55
+ const variantPrint = variantParentMatcher("print", "@media print");
56
+
47
57
  const variantColorsMediaOrClass = (options = {}) => {
48
58
  if (options?.dark === "class") {
49
59
  return [
@@ -96,19 +106,6 @@ const variantNegative = {
96
106
  }
97
107
  };
98
108
 
99
- const variantMotions = [
100
- variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
101
- variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
102
- ];
103
-
104
- const variantOrientations = [
105
- variantParentMatcher("landscape", "@media (orientation: landscape)"),
106
- variantParentMatcher("portrait", "@media (orientation: portrait)")
107
- ];
108
-
109
- const variantPrint = variantParentMatcher("print", "@media print");
110
-
111
- const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
112
109
  const PseudoClasses = Object.fromEntries([
113
110
  "any-link",
114
111
  "link",
@@ -171,9 +168,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
171
168
  const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
172
169
  const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
173
170
  const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
174
- function shouldAdd(entires) {
175
- return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
176
- }
177
171
  const taggedPseudoClassMatcher = (tag, parent, combinator) => {
178
172
  const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
179
173
  const rawRe = new RegExp(`^${escapeRegExp(parent)}:`);
@@ -185,9 +179,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
185
179
  pseudo = `:${match[2]}(${pseudo})`;
186
180
  return {
187
181
  matcher: input.slice(match[1].length + tag.length + 2),
188
- selector: (s, body) => {
189
- return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
190
- }
182
+ selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
191
183
  };
192
184
  }
193
185
  };
@@ -209,7 +201,7 @@ const variantPseudoClasses = {
209
201
  const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
210
202
  return {
211
203
  matcher: input.slice(match[1].length + 1),
212
- selector: (s, body) => shouldAdd(body) && `${s}${pseudo}`
204
+ selector: (s) => `${s}${pseudo}`
213
205
  };
214
206
  }
215
207
  },
@@ -223,7 +215,7 @@ const variantPseudoClassFunctions = {
223
215
  const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
224
216
  return {
225
217
  matcher: input.slice(match[1].length + match[2].length + 2),
226
- selector: (s, body) => shouldAdd(body) && `${s}:${fn}(${pseudo})`
218
+ selector: (s) => `${s}:${fn}(${pseudo})`
227
219
  };
228
220
  }
229
221
  },
@@ -249,9 +241,7 @@ const partClasses = {
249
241
  const part = `part(${match[2]})`;
250
242
  return {
251
243
  matcher: input.slice(match[1].length),
252
- selector: (s, body) => {
253
- return shouldAdd(body) && `${s}::${part}`;
254
- }
244
+ selector: (s) => `${s}::${part}`
255
245
  };
256
246
  }
257
247
  },
@@ -275,4 +265,4 @@ const variants = (options) => [
275
265
  ...variantLanguageDirections
276
266
  ];
277
267
 
278
- export { CONTROL_BYPASS_PSEUDO_CLASS as C, variantBreakpoints as a, variantCombinators as b, variantColorsMediaOrClass as c, variantLanguageDirections as d, variantImportant as e, variantNegative as f, variantMotions as g, variantOrientations as h, variantPrint as i, variantPseudoElements as j, variantPseudoClasses as k, variantPseudoClassFunctions as l, variantTaggedPseudoClasses as m, partClasses as p, variants as v };
268
+ export { variantBreakpoints as a, variantCombinators as b, variantMotions as c, variantOrientations as d, variantPrint as e, variantColorsMediaOrClass as f, variantLanguageDirections as g, variantImportant as h, variantNegative as i, variantPseudoElements as j, variantPseudoClasses as k, variantPseudoClassFunctions as l, variantTaggedPseudoClasses as m, partClasses as p, variants as v };
@@ -206,7 +206,7 @@ function fraction(str) {
206
206
  }
207
207
  function bracket(str) {
208
208
  if (str && str[0] === "[" && str[str.length - 1] === "]") {
209
- return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
209
+ return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(?<!\\)_/g, " ").replace(/calc\((.*)/g, (v) => {
210
210
  return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
211
211
  });
212
212
  }
@@ -225,7 +225,7 @@ function time(str) {
225
225
  return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
226
226
  }
227
227
  function degree(str) {
228
- const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
228
+ const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
229
229
  if (!match)
230
230
  return;
231
231
  const [, n, unit] = match;
@@ -265,11 +265,8 @@ const valueHandlers = {
265
265
  const handler = core.createValueHandler(valueHandlers);
266
266
  const h = handler;
267
267
 
268
- function capitalize(str) {
269
- return str.charAt(0).toUpperCase() + str.slice(1);
270
- }
271
268
  const directionSize = (propertyPrefix) => ([_, direction, size]) => {
272
- const v = handler.bracket.auto.rem.fraction.cssvar(size);
269
+ const v = handler.bracket.cssvar.auto.fraction.rem(size);
273
270
  if (v !== void 0)
274
271
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
275
272
  };
@@ -353,7 +350,6 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
353
350
  }
354
351
  };
355
352
 
356
- exports.capitalize = capitalize;
357
353
  exports.colorResolver = colorResolver;
358
354
  exports.cornerMap = cornerMap;
359
355
  exports.directionMap = directionMap;
@@ -204,7 +204,7 @@ function fraction(str) {
204
204
  }
205
205
  function bracket(str) {
206
206
  if (str && str[0] === "[" && str[str.length - 1] === "]") {
207
- return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
207
+ return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/(?<!\\)_/g, " ").replace(/calc\((.*)/g, (v) => {
208
208
  return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
209
209
  });
210
210
  }
@@ -223,7 +223,7 @@ function time(str) {
223
223
  return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
224
224
  }
225
225
  function degree(str) {
226
- const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
226
+ const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
227
227
  if (!match)
228
228
  return;
229
229
  const [, n, unit] = match;
@@ -263,11 +263,8 @@ const valueHandlers = {
263
263
  const handler = createValueHandler(valueHandlers);
264
264
  const h = handler;
265
265
 
266
- function capitalize(str) {
267
- return str.charAt(0).toUpperCase() + str.slice(1);
268
- }
269
266
  const directionSize = (propertyPrefix) => ([_, direction, size]) => {
270
- const v = handler.bracket.auto.rem.fraction.cssvar(size);
267
+ const v = handler.bracket.cssvar.auto.fraction.rem(size);
271
268
  if (v !== void 0)
272
269
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
273
270
  };
@@ -351,4 +348,4 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
351
348
  }
352
349
  };
353
350
 
354
- export { cornerMap as a, directionSize as b, colorResolver as c, directionMap as d, positionMap as e, h as f, capitalize as g, handler as h, insetMap as i, parseColor as p, valueHandlers as v, xyzMap as x };
351
+ export { cornerMap as a, directionSize as b, colorResolver as c, directionMap as d, positionMap as e, h as f, handler as h, insetMap as i, parseColor as p, valueHandlers as v, xyzMap as x };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { T as Theme } from './types-c14b808b';
3
3
  export { T as Theme, a as ThemeAnimation } from './types-c14b808b';
4
4
  export { t as theme } from './default-17948303';
5
5
  export { c as colors } from './colors-338f482c';
6
- export { p as parseColor } from './utilities-13c33ba5';
6
+ export { p as parseColor } from './utilities-29b01158';
7
7
 
8
8
  interface PresetMiniOptions extends PresetOptions {
9
9
  /**
@@ -1,7 +1,6 @@
1
1
  import { DynamicMatcher, ParsedColorValue } from '@unocss/core';
2
2
  import { T as Theme } from './types-c14b808b';
3
3
 
4
- declare function capitalize<T extends string>(str: T): Capitalize<T>;
5
4
  /**
6
5
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
7
6
  *
@@ -53,4 +52,4 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
53
52
  */
54
53
  declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
55
54
 
56
- export { colorResolver as a, capitalize as c, directionSize as d, parseColor as p };
55
+ export { colorResolver as c, directionSize as d, parseColor as p };
package/dist/utils.cjs CHANGED
@@ -8,7 +8,6 @@ require('@unocss/core');
8
8
 
9
9
 
10
10
 
11
- exports.capitalize = utilities.capitalize;
12
11
  exports.colorResolver = utilities.colorResolver;
13
12
  exports.cornerMap = utilities.cornerMap;
14
13
  exports.directionMap = utilities.directionMap;
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { VariantHandler } from '@unocss/core';
3
- export { c as capitalize, a as colorResolver, d as directionSize, p as parseColor } from './utilities-13c33ba5';
3
+ export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-29b01158';
4
4
  import './types-c14b808b';
5
5
 
6
6
  declare const directionMap: Record<string, string[]>;
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { g as capitalize, c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, f as h, h as handler, i as insetMap, p as parseColor, e as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
1
+ export { c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, f as h, h as handler, i as insetMap, p as parseColor, e as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
2
2
  export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -8,7 +8,6 @@ require('@unocss/core');
8
8
 
9
9
 
10
10
 
11
- exports.CONTROL_BYPASS_PSEUDO_CLASS = _default.CONTROL_BYPASS_PSEUDO_CLASS;
12
11
  exports.partClasses = _default.partClasses;
13
12
  exports.variantBreakpoints = _default.variantBreakpoints;
14
13
  exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
@@ -1,35 +1,31 @@
1
- import * as _unocss_core from '@unocss/core';
2
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
3
2
  import { T as Theme } from './types-c14b808b';
4
3
  import { PresetMiniOptions } from './index';
5
4
  import './default-17948303';
6
5
  import './colors-338f482c';
7
- import './utilities-13c33ba5';
6
+ import './utilities-29b01158';
8
7
 
9
8
  declare const variantBreakpoints: Variant<Theme>;
10
9
 
11
10
  declare const variantCombinators: Variant[];
12
11
 
13
- declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
12
+ declare const variantMotions: VariantFunction[];
13
+ declare const variantOrientations: VariantFunction[];
14
+ declare const variantPrint: VariantFunction;
14
15
 
15
- declare const variantLanguageDirections: Variant[];
16
+ declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
16
17
 
17
18
  declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
18
19
 
20
+ declare const variantLanguageDirections: Variant[];
21
+
19
22
  declare const variantImportant: Variant;
20
23
  declare const variantNegative: Variant;
21
24
 
22
- declare const variantMotions: Variant[];
23
-
24
- declare const variantOrientations: Variant[];
25
-
26
- declare const variantPrint: (input: string) => _unocss_core.VariantHandler | undefined;
27
-
28
- declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
29
25
  declare const variantPseudoElements: VariantFunction;
30
26
  declare const variantPseudoClasses: VariantObject;
31
27
  declare const variantPseudoClassFunctions: VariantObject;
32
28
  declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
33
29
  declare const partClasses: VariantObject;
34
30
 
35
- export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
31
+ export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
package/dist/variants.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, e as variantImportant, d as variantLanguageDirections, g as variantMotions, f as variantNegative, h as variantOrientations, i as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
1
+ export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, h as variantImportant, g as variantLanguageDirections, c as variantMotions, i as variantNegative, d as variantOrientations, e as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
2
2
  import './chunks/variants.mjs';
3
3
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.22.2"
64
+ "@unocss/core": "0.22.3"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",