@unocss/preset-mini 0.15.6 → 0.16.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.
@@ -80,22 +80,6 @@ const textColors = [
80
80
  [/^(?:text|color|c)-(.+)$/, colorResolver$1("color", "text")],
81
81
  [/^(?:text|color|c)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-opacity": index.handler.bracket.percent.cssvar(opacity2) })]
82
82
  ];
83
- const textDecorationColors = [
84
- [/^underline-(.+)$/, (match, ctx) => {
85
- const result = colorResolver$1("text-decoration-color", "line")(match, ctx);
86
- if (result) {
87
- return {
88
- "-webkit-text-decoration-color": result["text-decoration-color"],
89
- ...result
90
- };
91
- }
92
- }],
93
- [/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity": index.handler.bracket.percent(opacity2) })]
94
- ];
95
- const textStrokeColors = [
96
- [/^text-stroke-(.+)$/, colorResolver$1("-webkit-text-stroke-color", "text-stroke")],
97
- [/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-stroke-opacity": index.handler.bracket.percent(opacity2) })]
98
- ];
99
83
  const bgColors = [
100
84
  [/^bg-(.+)$/, colorResolver$1("background-color", "bg")],
101
85
  [/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity": index.handler.bracket.percent(opacity2) })]
@@ -180,39 +164,53 @@ const placeholder = [
180
164
  ]
181
165
  ];
182
166
 
183
- const borderSizes = [
167
+ const borders = [
184
168
  [/^border$/, handlerBorder],
185
- [/^(?:border|b)(?:-([^-]+))?$/, handlerBorder],
186
- [/^(?:border|b)(?:-([^-]+))?(?:-([^-]+))?$/, handlerBorder]
187
- ];
188
- const borderRadius = [
189
- [/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
190
- [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?$/, handlerRounded],
191
- [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-([^-]+))?$/, handlerRounded]
192
- ];
193
- const borderStyles = [
169
+ [/^(?:border|b)()-(.+)$/, handlerBorder],
170
+ [/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorder],
171
+ [/^(?:border|b)()-size-(.+)$/, handlerBorderSize],
172
+ [/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
173
+ [/^(?:border|b)()-(.+)$/, handlerBorderColor],
174
+ [/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
175
+ [/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": index.handler.bracket.percent(opacity) })],
194
176
  ["border-solid", { "border-style": "solid" }],
195
177
  ["border-dashed", { "border-style": "dashed" }],
196
178
  ["border-dotted", { "border-style": "dotted" }],
197
179
  ["border-double", { "border-style": "double" }],
198
- ["border-none", { "border-style": "none" }]
180
+ ["border-none", { "border-style": "none" }],
181
+ [/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
182
+ [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?$/, handlerRounded],
183
+ [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-([^-]+))?$/, handlerRounded]
199
184
  ];
200
- const borders = [
201
- borderSizes,
202
- borderColors,
203
- borderStyles,
204
- borderRadius
205
- ].flat(1);
206
- function handlerBorder([, a, b]) {
185
+ function handlerBorder(m) {
186
+ const borderSizes = handlerBorderSize(m);
187
+ if (borderSizes) {
188
+ return [
189
+ ...borderSizes,
190
+ ["border-style", "solid"]
191
+ ];
192
+ }
193
+ }
194
+ function handlerBorderSize([, a, b]) {
207
195
  const [d, s = "1"] = index.directionMap[a] ? [a, b] : ["", a];
208
196
  const v = index.handler.bracket.px(s);
209
197
  if (v != null) {
210
198
  return [
211
- ...index.directionMap[d].map((i) => [`border${i}-width`, v]),
212
- ["border-style", "solid"]
199
+ ...index.directionMap[d].map((i) => [`border${i}-width`, v])
213
200
  ];
214
201
  }
215
202
  }
203
+ function handlerBorderColor([, a, c], ctx) {
204
+ if (c !== void 0) {
205
+ const ofColor = colorResolver$1("border-color", "border")(["", c], ctx);
206
+ if (ofColor) {
207
+ const borders2 = index.directionMap[index.directionMap[a] ? a : ""].map((i) => colorResolver$1(`border${i}-color`, "border")(["", c], ctx));
208
+ const borderObject = {};
209
+ Object.assign(borderObject, ...borders2);
210
+ return borderObject;
211
+ }
212
+ }
213
+ }
216
214
  function handlerRounded([, a, b], { theme }) {
217
215
  const [d, s = "DEFAULT"] = index.cornerMap[a] ? [a, b] : ["", a];
218
216
  const v = theme.borderRadius?.[s] || index.handler.bracket.fraction.rem(s);
@@ -311,37 +309,27 @@ const transitions = [
311
309
  ];
312
310
 
313
311
  const flex = [
314
- ["flex-col", { "flex-direction": "column" }],
315
- ["flex-col-reverse", { "flex-direction": "column-reverse" }],
316
- ["flex-row", { "flex-direction": "row" }],
317
- ["flex-row-reverse", { "flex-direction": "row-reverse" }],
318
- ["flex-wrap", { "flex-wrap": "wrap" }],
319
- ["flex-wrap-reverse", { "flex-wrap": "wrap-reverse" }],
320
- ["flex-nowrap", { "flex-wrap": "nowrap" }],
312
+ ["flex", { display: "flex" }],
313
+ ["inline-flex", { display: "inline-flex" }],
314
+ ["flex-inline", { display: "inline-flex" }],
321
315
  ["flex-1", { flex: "1 1 0%" }],
322
316
  ["flex-auto", { flex: "1 1 auto" }],
323
317
  ["flex-initial", { flex: "0 1 auto" }],
324
318
  ["flex-none", { flex: "none" }],
325
319
  [/^flex-\[(.+)\]$/, ([, d]) => ({ flex: d })],
326
- ["flex-grow", { "flex-grow": 1 }],
327
- ["flex-grow-0", { "flex-grow": 0 }],
328
320
  ["flex-shrink", { "flex-shrink": 1 }],
329
321
  ["flex-shrink-0", { "flex-shrink": 0 }],
330
- ["flex", { display: "flex" }],
331
- ["inline-flex", { display: "inline-flex" }],
332
- ["flex-inline", { display: "inline-flex" }]
322
+ ["flex-grow", { "flex-grow": 1 }],
323
+ ["flex-grow-0", { "flex-grow": 0 }],
324
+ ["flex-row", { "flex-direction": "row" }],
325
+ ["flex-row-reverse", { "flex-direction": "row-reverse" }],
326
+ ["flex-col", { "flex-direction": "column" }],
327
+ ["flex-col-reverse", { "flex-direction": "column-reverse" }],
328
+ ["flex-wrap", { "flex-wrap": "wrap" }],
329
+ ["flex-wrap-reverse", { "flex-wrap": "wrap-reverse" }],
330
+ ["flex-nowrap", { "flex-wrap": "nowrap" }]
333
331
  ];
334
332
 
335
- const fontsFamilies = [
336
- [/^font-(\w+)$/, ([, d], { theme }) => {
337
- const font = theme.fontFamily?.[d];
338
- if (font) {
339
- return {
340
- "font-family": font
341
- };
342
- }
343
- }]
344
- ];
345
333
  const weightMap = {
346
334
  thin: "100",
347
335
  extralight: "200",
@@ -353,7 +341,15 @@ const weightMap = {
353
341
  extrabold: "800",
354
342
  black: "900"
355
343
  };
356
- const fontSizes = [
344
+ const fonts = [
345
+ [/^font-(\w+)$/, ([, d], { theme }) => {
346
+ const font = theme.fontFamily?.[d];
347
+ if (font) {
348
+ return {
349
+ "font-family": font
350
+ };
351
+ }
352
+ }],
357
353
  [/^text-(.+)$/, ([, s = "base"], { theme }) => {
358
354
  const size = index.handler.bracket.rem(s);
359
355
  if (size)
@@ -371,30 +367,22 @@ const fontSizes = [
371
367
  const raw = index.handler.bracket.rem(s);
372
368
  if (raw)
373
369
  return { "font-size": raw };
374
- }]
375
- ];
376
- const fontWeights = [
370
+ }],
377
371
  [/^(?:font|fw)-?([^-]+)$/, ([, s]) => {
378
372
  const v = weightMap[s] || index.handler.number(s);
379
373
  if (v)
380
374
  return { "font-weight": v };
381
- }]
382
- ];
383
- const leadings = [
375
+ }],
384
376
  [/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => {
385
377
  const v = theme.lineHeight?.[s] || index.handler.bracket.rem(s);
386
378
  if (v !== null)
387
379
  return { "line-height": v };
388
- }]
389
- ];
390
- const trackings = [
380
+ }],
391
381
  [/^tracking-([^-]+)$/, ([, s], { theme }) => {
392
382
  const v = theme.letterSpacing?.[s] || index.handler.bracket.rem(s);
393
383
  if (v !== null)
394
384
  return { "letter-spacing": v };
395
- }]
396
- ];
397
- const wordSpacings = [
385
+ }],
398
386
  [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
399
387
  const v = theme.wordSpacing?.[s] || index.handler.bracket.rem(s);
400
388
  if (v !== null)
@@ -414,20 +402,6 @@ const tabSizes = [
414
402
  }
415
403
  }]
416
404
  ];
417
- const textDecorationLengths = [
418
- [/^underline-([^-]+)$/, ([, s]) => {
419
- const v = s === "auto" ? s : index.handler.bracket.px(s);
420
- if (v != null)
421
- return { "text-decoration-thickness": v };
422
- }]
423
- ];
424
- const textDecorationOffsets = [
425
- [/^underline-offset-([^-]+)$/, ([, s]) => {
426
- const v = s === "auto" ? s : index.handler.bracket.px(s);
427
- if (v != null)
428
- return { "text-underline-offset": v };
429
- }]
430
- ];
431
405
  const textIndents = [
432
406
  [/^indent(?:-(.+))?$/, ([, s], { theme }) => {
433
407
  const v = theme.textIndent?.[s || "DEFAULT"] || index.handler.bracket.cssvar.fraction.rem(s);
@@ -435,12 +409,14 @@ const textIndents = [
435
409
  return { "text-indent": v };
436
410
  }]
437
411
  ];
438
- const textStrokeWidths = [
412
+ const textStrokes = [
439
413
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
440
414
  const v = theme.textStrokeWidth?.[s || "DEFAULT"] || index.handler.bracket.cssvar.px(s);
441
415
  if (v != null)
442
416
  return { "-webkit-text-stroke-width": v };
443
- }]
417
+ }],
418
+ [/^text-stroke-(.+)$/, colorResolver$1("-webkit-text-stroke-color", "text-stroke")],
419
+ [/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-text-stroke-opacity": index.handler.bracket.percent(opacity) })]
444
420
  ];
445
421
  const textShadows = [
446
422
  [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
@@ -449,11 +425,6 @@ const textShadows = [
449
425
  return { "text-shadow": v };
450
426
  }]
451
427
  ];
452
- const fonts = [
453
- fontsFamilies,
454
- fontSizes,
455
- fontWeights
456
- ].flat(1);
457
428
 
458
429
  const gaps = [
459
430
  [/^(?:flex-|grid-)?gap-([^-]+)$/, ([, s]) => {
@@ -498,12 +469,10 @@ const autoDirection = (selector, theme) => {
498
469
  const grids = [
499
470
  ["grid", { display: "grid" }],
500
471
  ["inline-grid", { display: "inline-grid" }],
501
- [/^grid-cols-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-columns": `repeat(auto-fill, minmax(${d}, 1fr))` })],
502
- [/^grid-rows-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-rows": `repeat(auto-fill, minmax(${d}, 1fr))` })],
503
- [/^grid-cols-(\d+)$/, ([, d]) => ({ "grid-template-columns": `repeat(${d},minmax(0,1fr))` })],
504
- [/^grid-rows-(\d+)$/, ([, d]) => ({ "grid-template-rows": `repeat(${d},minmax(0,1fr))` })],
505
- [/^grid-cols-\[(.+)\]$/, ([, v]) => ({ "grid-template-columns": v.replace(/,/g, " ") })],
506
- [/^grid-rows-\[(.+)\]$/, ([, v]) => ({ "grid-template-rows": v.replace(/,/g, " ") })],
472
+ [/^(?:grid-)?col-start-([\w.-]+)$/, ([, v]) => ({ "grid-column-start": `${v}` })],
473
+ [/^(?:grid-)?col-end-([\w.]+)$/, ([, v]) => ({ "grid-column-end": `${v}` })],
474
+ [/^(?:grid-)?row-start-([\w.-]+)$/, ([, v]) => ({ "grid-row-start": `${v}` })],
475
+ [/^(?:grid-)?row-end-([\w.-]+)$/, ([, v]) => ({ "grid-row-end": `${v}` })],
507
476
  [/^(?:grid-)?(row|col)-(.+)$/, ([, d, v]) => {
508
477
  const key = d === "row" ? "grid-row" : "grid-column";
509
478
  let raw = index.handler.bracket(v);
@@ -520,13 +489,15 @@ const grids = [
520
489
  return { [key]: `span ${raw}/span ${raw}` };
521
490
  }
522
491
  }],
492
+ [/^(?:grid-)?auto-cols-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-columns": `${autoDirection(v, theme)}` })],
523
493
  [/^(?:grid-)?auto-flow-([\w.-]+)$/, ([, v]) => ({ "grid-auto-flow": `${v.replace("col", "column").split("-").join(" ")}` })],
524
- [/^(?:grid-)?row-start-([\w.-]+)$/, ([, v]) => ({ "grid-row-start": `${v}` })],
525
- [/^(?:grid-)?row-end-([\w.-]+)$/, ([, v]) => ({ "grid-row-end": `${v}` })],
526
- [/^(?:grid-)?col-start-([\w.-]+)$/, ([, v]) => ({ "grid-column-start": `${v}` })],
527
- [/^(?:grid-)?col-end-([\w.]+)$/, ([, v]) => ({ "grid-column-end": `${v}` })],
528
494
  [/^(?:grid-)?auto-rows-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-rows": `${autoDirection(v, theme)}` })],
529
- [/^(?:grid-)?auto-cols-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-columns": `${autoDirection(v, theme)}` })]
495
+ [/^grid-cols-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-columns": `repeat(auto-fill, minmax(${d}, 1fr))` })],
496
+ [/^grid-rows-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-rows": `repeat(auto-fill, minmax(${d}, 1fr))` })],
497
+ [/^grid-cols-(\d+)$/, ([, d]) => ({ "grid-template-columns": `repeat(${d},minmax(0,1fr))` })],
498
+ [/^grid-rows-(\d+)$/, ([, d]) => ({ "grid-template-rows": `repeat(${d},minmax(0,1fr))` })],
499
+ [/^grid-cols-\[(.+)\]$/, ([, v]) => ({ "grid-template-columns": v.replace(/,/g, " ") })],
500
+ [/^grid-rows-\[(.+)\]$/, ([, v]) => ({ "grid-template-rows": v.replace(/,/g, " ") })]
530
501
  ];
531
502
 
532
503
  const overflowValues = [
@@ -540,6 +511,7 @@ const overflows = [
540
511
  [/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overflow-${d}`]: v } : void 0]
541
512
  ];
542
513
 
514
+ const basicSet = ["auto", "start", "end", "center", "stretch"];
543
515
  const positions = [
544
516
  ["relative", { position: "relative" }],
545
517
  ["absolute", { position: "absolute" }],
@@ -553,47 +525,42 @@ const justifies = [
553
525
  ["justify-center", { "justify-content": "center" }],
554
526
  ["justify-between", { "justify-content": "space-between" }],
555
527
  ["justify-around", { "justify-content": "space-around" }],
556
- ["justify-evenly", { "justify-content": "space-evenly" }]
528
+ ["justify-evenly", { "justify-content": "space-evenly" }],
529
+ ...basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]),
530
+ ...basicSet.map((i) => [`justify-self-${i}`, { "justify-self": i }])
557
531
  ];
558
532
  const orders = [
559
533
  [/^order-(.+)$/, ([, v]) => ({ order: { first: "-9999", last: "9999", none: "0" }[v] || index.handler.bracket.number(v) })]
560
534
  ];
561
- const basicSet = ["auto", "start", "end", "center", "stretch"];
562
- const justifyItems = basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]);
563
- const justifySelfs = basicSet.map((i) => [`justify-self-${i}`, { "justify-self": i }]);
564
- const alignContents = [
535
+ const alignments = [
565
536
  ["content-start", { "align-content": "flex-start" }],
566
537
  ["content-end", { "align-content": "flex-end" }],
567
538
  ["content-center", { "align-content": "center" }],
568
539
  ["content-between", { "align-content": "space-between" }],
569
540
  ["content-around", { "align-content": "space-around" }],
570
- ["content-evenly", { "align-content": "space-evenly" }]
571
- ];
572
- const alignItems = [
541
+ ["content-evenly", { "align-content": "space-evenly" }],
573
542
  ["items-start", { "align-items": "flex-start" }],
574
543
  ["items-end", { "align-items": "flex-end" }],
575
544
  ["items-center", { "align-items": "center" }],
576
545
  ["items-baseline", { "align-items": "baseline" }],
577
- ["items-stretch", { "align-items": "stretch" }]
578
- ];
579
- const alignSelfs = [
546
+ ["items-stretch", { "align-items": "stretch" }],
580
547
  ["self-auto", { "align-self": "auto" }],
581
548
  ["self-start", { "align-self": "flex-start" }],
582
549
  ["self-end", { "align-self": "flex-end" }],
583
550
  ["self-center", { "align-self": "center" }],
584
551
  ["self-stretch", { "align-items": "stretch" }]
585
552
  ];
586
- const placeContents = [
553
+ const placements = [
587
554
  ["place-content-start", { "place-content": "start" }],
588
555
  ["place-content-end", { "place-content": "end" }],
589
556
  ["place-content-center", { "place-content": "center" }],
590
557
  ["place-content-between", { "place-content": "space-between" }],
591
558
  ["place-content-around", { "place-content": "space-around" }],
592
559
  ["place-content-evenly", { "place-content": "space-evenly" }],
593
- ["place-content-stretch", { "place-content": "stretch" }]
560
+ ["place-content-stretch", { "place-content": "stretch" }],
561
+ ...basicSet.map((i) => [`place-items-${i}`, { "place-items": i }]),
562
+ ...basicSet.map((i) => [`place-self-${i}`, { "place-self": i }])
594
563
  ];
595
- const placeItems = basicSet.map((i) => [`place-items-${i}`, { "place-items": i }]);
596
- const placeSelfs = basicSet.map((i) => [`place-self-${i}`, { "place-self": i }]);
597
564
  function handleInsetValue(v) {
598
565
  return { auto: "auto", full: "100%" }[v] ?? index.handler.bracket.fraction.cssvar.rem(v);
599
566
  }
@@ -784,17 +751,6 @@ const textTransforms = [
784
751
  ["case-capital", { "text-transform": "capitalize" }],
785
752
  ["case-normal", { "text-transform": "none" }]
786
753
  ];
787
- const textDecorations = [
788
- ["underline", { "text-decoration": "underline" }],
789
- ["line-through", { "text-decoration": "line-through" }],
790
- ["no-underline", { "text-decoration": "none" }]
791
- ];
792
- const textDecorationStyles = [
793
- ["underline-solid", { "text-decoration-style": "solid" }],
794
- ["underline-double", { "text-decoration-style": "double" }],
795
- ["underline-dotted", { "text-decoration-style": "dotted" }],
796
- ["underline-dashed", { "text-decoration-style": "dashed" }]
797
- ];
798
754
  const fontStyles = [
799
755
  ["italic", { "font-style": "italic" }],
800
756
  ["not-italic", { "font-style": "normal" }]
@@ -892,19 +848,12 @@ const variablesAbbrMap = {
892
848
  "backface": "backface-visibility",
893
849
  "whitespace": "white-space",
894
850
  "break": "word-break",
851
+ "b": "border-color",
852
+ "border": "border-color",
895
853
  "color": "color",
896
854
  "case": "text-transform",
897
- "write": "writing-mode",
898
- "write-orient": "text-orientation",
899
855
  "origin": "transform-origin",
900
856
  "bg": "background-color",
901
- "bg-blend": "background-blend-mode",
902
- "bg-clip": "-webkit-background-clip",
903
- "bg-gradient": "linear-gradient",
904
- "bg-origin-border": "background-origin",
905
- "bg-position": "background-position",
906
- "bg-repeat": "background-repeat",
907
- "bg-size": "background-size",
908
857
  "bg-opacity": "background-opacity",
909
858
  "tab": "tab-size",
910
859
  "underline": "text-decoration-thickness",
@@ -919,33 +868,61 @@ const variablesAbbrMap = {
919
868
  "content": "align-content",
920
869
  "items": "align-items",
921
870
  "self": "align-self",
922
- "object": "object-fit",
923
- "mix-blend": "mix-blend-mode",
924
- "animate-speed": "animation-speed"
871
+ "object": "object-fit"
925
872
  };
926
- const cssVariables = [[
927
- /^(.+)-\$(.+)$/,
928
- ([, name, varname]) => {
873
+ const cssVariables = [
874
+ [/^(.+)-\$(.+)$/, ([, name, varname]) => {
929
875
  const prop = variablesAbbrMap[name];
930
876
  if (prop) {
931
877
  return {
932
878
  [prop]: `var(--${varname})`
933
879
  };
934
880
  }
935
- }
936
- ]];
881
+ }],
882
+ [/^(?:border|b)-([^-]+)-\$(.+)$/, ([, a, v]) => {
883
+ if (a in index.directionMap)
884
+ return index.directionMap[a].map((i) => [`border${i}-color`, `var(--${v})`]);
885
+ }]
886
+ ];
937
887
 
938
888
  const questionMark = [
939
889
  [
940
890
  /^(where|\?)$/,
941
891
  (_, { constructCSS, generator }) => {
942
- if (generator.config.envMode === "dev")
892
+ if (generator.userConfig.envMode === "dev")
943
893
  return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
944
894
  ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
945
895
  }
946
896
  ]
947
897
  ];
948
898
 
899
+ const textDecorations = [
900
+ ["underline", { "text-decoration": "underline" }],
901
+ ["line-through", { "text-decoration": "line-through" }],
902
+ ["no-underline", { "text-decoration": "none" }],
903
+ ["decoration-underline", { "text-decoration": "underline" }],
904
+ ["decoration-line-through", { "text-decoration": "line-through" }],
905
+ ["decoration-none", { "text-decoration": "none" }],
906
+ [/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy)$/, ([, d]) => ({ "text-decoration-style": d })],
907
+ [/^(?:underline|decoration)-([^-]+)$/, ([, s]) => ({ "text-decoration-thickness": ["auto", "from-font"].includes(s) ? s : index.handler.bracket.px(s) })],
908
+ [/^decoration-(.*)$/, ([, d]) => ({ "text-decoration-thickness": index.handler.bracket.px(d) })],
909
+ [/^underline-offset-([^-]+)$/, ([, s]) => {
910
+ const v = s === "auto" ? s : index.handler.bracket.px(s);
911
+ if (v != null)
912
+ return { "text-underline-offset": v };
913
+ }],
914
+ [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
915
+ const result = colorResolver$1("text-decoration-color", "line")(match, ctx);
916
+ if (result) {
917
+ return {
918
+ "-webkit-text-decoration-color": result["text-decoration-color"],
919
+ ...result
920
+ };
921
+ }
922
+ }],
923
+ [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-line-opacity": index.handler.bracket.percent(opacity) })]
924
+ ];
925
+
949
926
  const rules = [
950
927
  cssVariables,
951
928
  paddings,
@@ -961,12 +938,7 @@ const rules = [
961
938
  textIndents,
962
939
  textOverflows,
963
940
  textDecorations,
964
- textDecorationStyles,
965
- textDecorationColors,
966
- textDecorationLengths,
967
- textDecorationOffsets,
968
- textStrokeWidths,
969
- textStrokeColors,
941
+ textStrokes,
970
942
  textShadows,
971
943
  textTransforms,
972
944
  textAligns,
@@ -989,9 +961,6 @@ const rules = [
989
961
  userSelects,
990
962
  whitespaces,
991
963
  breaks,
992
- trackings,
993
- wordSpacings,
994
- leadings,
995
964
  overflows,
996
965
  outline,
997
966
  appearance,
@@ -999,14 +968,8 @@ const rules = [
999
968
  positions,
1000
969
  orders,
1001
970
  justifies,
1002
- justifyItems,
1003
- justifySelfs,
1004
- alignContents,
1005
- alignItems,
1006
- alignSelfs,
1007
- placeContents,
1008
- placeItems,
1009
- placeSelfs,
971
+ alignments,
972
+ placements,
1010
973
  insets,
1011
974
  floats,
1012
975
  zIndexes,
@@ -1016,17 +979,12 @@ const rules = [
1016
979
  questionMark
1017
980
  ].flat(1);
1018
981
 
1019
- exports.alignContents = alignContents;
1020
- exports.alignItems = alignItems;
1021
- exports.alignSelfs = alignSelfs;
982
+ exports.alignments = alignments;
1022
983
  exports.appearance = appearance;
1023
984
  exports.appearances = appearances;
1024
985
  exports.aspectRatio = aspectRatio;
1025
986
  exports.bgColors = bgColors;
1026
987
  exports.borderColors = borderColors;
1027
- exports.borderRadius = borderRadius;
1028
- exports.borderSizes = borderSizes;
1029
- exports.borderStyles = borderStyles;
1030
988
  exports.borders = borders;
1031
989
  exports.boxShadows = boxShadows;
1032
990
  exports.boxSizing = boxSizing;
@@ -1039,19 +997,13 @@ exports.displays = displays;
1039
997
  exports.fillColors = fillColors;
1040
998
  exports.flex = flex;
1041
999
  exports.floats = floats;
1042
- exports.fontSizes = fontSizes;
1043
1000
  exports.fontSmoothings = fontSmoothings;
1044
1001
  exports.fontStyles = fontStyles;
1045
- exports.fontWeights = fontWeights;
1046
1002
  exports.fonts = fonts;
1047
- exports.fontsFamilies = fontsFamilies;
1048
1003
  exports.gaps = gaps;
1049
1004
  exports.grids = grids;
1050
1005
  exports.insets = insets;
1051
1006
  exports.justifies = justifies;
1052
- exports.justifyItems = justifyItems;
1053
- exports.justifySelfs = justifySelfs;
1054
- exports.leadings = leadings;
1055
1007
  exports.margins = margins;
1056
1008
  exports.opacity = opacity;
1057
1009
  exports.orders = orders;
@@ -1059,10 +1011,8 @@ exports.outline = outline;
1059
1011
  exports.overflows = overflows;
1060
1012
  exports.paddings = paddings;
1061
1013
  exports.parseColorUtil = parseColorUtil;
1062
- exports.placeContents = placeContents;
1063
- exports.placeItems = placeItems;
1064
- exports.placeSelfs = placeSelfs;
1065
1014
  exports.placeholder = placeholder;
1015
+ exports.placements = placements;
1066
1016
  exports.pointerEvents = pointerEvents;
1067
1017
  exports.positions = positions;
1068
1018
  exports.questionMark = questionMark;
@@ -1075,23 +1025,16 @@ exports.sizes = sizes;
1075
1025
  exports.tabSizes = tabSizes;
1076
1026
  exports.textAligns = textAligns;
1077
1027
  exports.textColors = textColors;
1078
- exports.textDecorationColors = textDecorationColors;
1079
- exports.textDecorationLengths = textDecorationLengths;
1080
- exports.textDecorationOffsets = textDecorationOffsets;
1081
- exports.textDecorationStyles = textDecorationStyles;
1082
1028
  exports.textDecorations = textDecorations;
1083
1029
  exports.textIndents = textIndents;
1084
1030
  exports.textOverflows = textOverflows;
1085
1031
  exports.textShadows = textShadows;
1086
- exports.textStrokeColors = textStrokeColors;
1087
- exports.textStrokeWidths = textStrokeWidths;
1032
+ exports.textStrokes = textStrokes;
1088
1033
  exports.textTransforms = textTransforms;
1089
- exports.trackings = trackings;
1090
1034
  exports.transforms = transforms;
1091
1035
  exports.transitions = transitions;
1092
1036
  exports.userSelects = userSelects;
1093
1037
  exports.varEmpty = varEmpty;
1094
1038
  exports.verticalAligns = verticalAligns;
1095
1039
  exports.whitespaces = whitespaces;
1096
- exports.wordSpacings = wordSpacings;
1097
1040
  exports.zIndexes = zIndexes;
@@ -78,22 +78,6 @@ const textColors = [
78
78
  [/^(?:text|color|c)-(.+)$/, colorResolver$1("color", "text")],
79
79
  [/^(?:text|color|c)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent.cssvar(opacity2) })]
80
80
  ];
81
- const textDecorationColors = [
82
- [/^underline-(.+)$/, (match, ctx) => {
83
- const result = colorResolver$1("text-decoration-color", "line")(match, ctx);
84
- if (result) {
85
- return {
86
- "-webkit-text-decoration-color": result["text-decoration-color"],
87
- ...result
88
- };
89
- }
90
- }],
91
- [/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity": handler.bracket.percent(opacity2) })]
92
- ];
93
- const textStrokeColors = [
94
- [/^text-stroke-(.+)$/, colorResolver$1("-webkit-text-stroke-color", "text-stroke")],
95
- [/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-stroke-opacity": handler.bracket.percent(opacity2) })]
96
- ];
97
81
  const bgColors = [
98
82
  [/^bg-(.+)$/, colorResolver$1("background-color", "bg")],
99
83
  [/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) })]
@@ -178,39 +162,53 @@ const placeholder = [
178
162
  ]
179
163
  ];
180
164
 
181
- const borderSizes = [
165
+ const borders = [
182
166
  [/^border$/, handlerBorder],
183
- [/^(?:border|b)(?:-([^-]+))?$/, handlerBorder],
184
- [/^(?:border|b)(?:-([^-]+))?(?:-([^-]+))?$/, handlerBorder]
185
- ];
186
- const borderRadius = [
187
- [/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
188
- [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?$/, handlerRounded],
189
- [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-([^-]+))?$/, handlerRounded]
190
- ];
191
- const borderStyles = [
167
+ [/^(?:border|b)()-(.+)$/, handlerBorder],
168
+ [/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorder],
169
+ [/^(?:border|b)()-size-(.+)$/, handlerBorderSize],
170
+ [/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
171
+ [/^(?:border|b)()-(.+)$/, handlerBorderColor],
172
+ [/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
173
+ [/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": handler.bracket.percent(opacity) })],
192
174
  ["border-solid", { "border-style": "solid" }],
193
175
  ["border-dashed", { "border-style": "dashed" }],
194
176
  ["border-dotted", { "border-style": "dotted" }],
195
177
  ["border-double", { "border-style": "double" }],
196
- ["border-none", { "border-style": "none" }]
178
+ ["border-none", { "border-style": "none" }],
179
+ [/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
180
+ [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?$/, handlerRounded],
181
+ [/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-([^-]+))?$/, handlerRounded]
197
182
  ];
198
- const borders = [
199
- borderSizes,
200
- borderColors,
201
- borderStyles,
202
- borderRadius
203
- ].flat(1);
204
- function handlerBorder([, a, b]) {
183
+ function handlerBorder(m) {
184
+ const borderSizes = handlerBorderSize(m);
185
+ if (borderSizes) {
186
+ return [
187
+ ...borderSizes,
188
+ ["border-style", "solid"]
189
+ ];
190
+ }
191
+ }
192
+ function handlerBorderSize([, a, b]) {
205
193
  const [d, s = "1"] = directionMap[a] ? [a, b] : ["", a];
206
194
  const v = handler.bracket.px(s);
207
195
  if (v != null) {
208
196
  return [
209
- ...directionMap[d].map((i) => [`border${i}-width`, v]),
210
- ["border-style", "solid"]
197
+ ...directionMap[d].map((i) => [`border${i}-width`, v])
211
198
  ];
212
199
  }
213
200
  }
201
+ function handlerBorderColor([, a, c], ctx) {
202
+ if (c !== void 0) {
203
+ const ofColor = colorResolver$1("border-color", "border")(["", c], ctx);
204
+ if (ofColor) {
205
+ const borders2 = directionMap[directionMap[a] ? a : ""].map((i) => colorResolver$1(`border${i}-color`, "border")(["", c], ctx));
206
+ const borderObject = {};
207
+ Object.assign(borderObject, ...borders2);
208
+ return borderObject;
209
+ }
210
+ }
211
+ }
214
212
  function handlerRounded([, a, b], { theme }) {
215
213
  const [d, s = "DEFAULT"] = cornerMap[a] ? [a, b] : ["", a];
216
214
  const v = theme.borderRadius?.[s] || handler.bracket.fraction.rem(s);
@@ -309,37 +307,27 @@ const transitions = [
309
307
  ];
310
308
 
311
309
  const flex = [
312
- ["flex-col", { "flex-direction": "column" }],
313
- ["flex-col-reverse", { "flex-direction": "column-reverse" }],
314
- ["flex-row", { "flex-direction": "row" }],
315
- ["flex-row-reverse", { "flex-direction": "row-reverse" }],
316
- ["flex-wrap", { "flex-wrap": "wrap" }],
317
- ["flex-wrap-reverse", { "flex-wrap": "wrap-reverse" }],
318
- ["flex-nowrap", { "flex-wrap": "nowrap" }],
310
+ ["flex", { display: "flex" }],
311
+ ["inline-flex", { display: "inline-flex" }],
312
+ ["flex-inline", { display: "inline-flex" }],
319
313
  ["flex-1", { flex: "1 1 0%" }],
320
314
  ["flex-auto", { flex: "1 1 auto" }],
321
315
  ["flex-initial", { flex: "0 1 auto" }],
322
316
  ["flex-none", { flex: "none" }],
323
317
  [/^flex-\[(.+)\]$/, ([, d]) => ({ flex: d })],
324
- ["flex-grow", { "flex-grow": 1 }],
325
- ["flex-grow-0", { "flex-grow": 0 }],
326
318
  ["flex-shrink", { "flex-shrink": 1 }],
327
319
  ["flex-shrink-0", { "flex-shrink": 0 }],
328
- ["flex", { display: "flex" }],
329
- ["inline-flex", { display: "inline-flex" }],
330
- ["flex-inline", { display: "inline-flex" }]
320
+ ["flex-grow", { "flex-grow": 1 }],
321
+ ["flex-grow-0", { "flex-grow": 0 }],
322
+ ["flex-row", { "flex-direction": "row" }],
323
+ ["flex-row-reverse", { "flex-direction": "row-reverse" }],
324
+ ["flex-col", { "flex-direction": "column" }],
325
+ ["flex-col-reverse", { "flex-direction": "column-reverse" }],
326
+ ["flex-wrap", { "flex-wrap": "wrap" }],
327
+ ["flex-wrap-reverse", { "flex-wrap": "wrap-reverse" }],
328
+ ["flex-nowrap", { "flex-wrap": "nowrap" }]
331
329
  ];
332
330
 
333
- const fontsFamilies = [
334
- [/^font-(\w+)$/, ([, d], { theme }) => {
335
- const font = theme.fontFamily?.[d];
336
- if (font) {
337
- return {
338
- "font-family": font
339
- };
340
- }
341
- }]
342
- ];
343
331
  const weightMap = {
344
332
  thin: "100",
345
333
  extralight: "200",
@@ -351,7 +339,15 @@ const weightMap = {
351
339
  extrabold: "800",
352
340
  black: "900"
353
341
  };
354
- const fontSizes = [
342
+ const fonts = [
343
+ [/^font-(\w+)$/, ([, d], { theme }) => {
344
+ const font = theme.fontFamily?.[d];
345
+ if (font) {
346
+ return {
347
+ "font-family": font
348
+ };
349
+ }
350
+ }],
355
351
  [/^text-(.+)$/, ([, s = "base"], { theme }) => {
356
352
  const size = handler.bracket.rem(s);
357
353
  if (size)
@@ -369,30 +365,22 @@ const fontSizes = [
369
365
  const raw = handler.bracket.rem(s);
370
366
  if (raw)
371
367
  return { "font-size": raw };
372
- }]
373
- ];
374
- const fontWeights = [
368
+ }],
375
369
  [/^(?:font|fw)-?([^-]+)$/, ([, s]) => {
376
370
  const v = weightMap[s] || handler.number(s);
377
371
  if (v)
378
372
  return { "font-weight": v };
379
- }]
380
- ];
381
- const leadings = [
373
+ }],
382
374
  [/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => {
383
375
  const v = theme.lineHeight?.[s] || handler.bracket.rem(s);
384
376
  if (v !== null)
385
377
  return { "line-height": v };
386
- }]
387
- ];
388
- const trackings = [
378
+ }],
389
379
  [/^tracking-([^-]+)$/, ([, s], { theme }) => {
390
380
  const v = theme.letterSpacing?.[s] || handler.bracket.rem(s);
391
381
  if (v !== null)
392
382
  return { "letter-spacing": v };
393
- }]
394
- ];
395
- const wordSpacings = [
383
+ }],
396
384
  [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
397
385
  const v = theme.wordSpacing?.[s] || handler.bracket.rem(s);
398
386
  if (v !== null)
@@ -412,20 +400,6 @@ const tabSizes = [
412
400
  }
413
401
  }]
414
402
  ];
415
- const textDecorationLengths = [
416
- [/^underline-([^-]+)$/, ([, s]) => {
417
- const v = s === "auto" ? s : handler.bracket.px(s);
418
- if (v != null)
419
- return { "text-decoration-thickness": v };
420
- }]
421
- ];
422
- const textDecorationOffsets = [
423
- [/^underline-offset-([^-]+)$/, ([, s]) => {
424
- const v = s === "auto" ? s : handler.bracket.px(s);
425
- if (v != null)
426
- return { "text-underline-offset": v };
427
- }]
428
- ];
429
403
  const textIndents = [
430
404
  [/^indent(?:-(.+))?$/, ([, s], { theme }) => {
431
405
  const v = theme.textIndent?.[s || "DEFAULT"] || handler.bracket.cssvar.fraction.rem(s);
@@ -433,12 +407,14 @@ const textIndents = [
433
407
  return { "text-indent": v };
434
408
  }]
435
409
  ];
436
- const textStrokeWidths = [
410
+ const textStrokes = [
437
411
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
438
412
  const v = theme.textStrokeWidth?.[s || "DEFAULT"] || handler.bracket.cssvar.px(s);
439
413
  if (v != null)
440
414
  return { "-webkit-text-stroke-width": v };
441
- }]
415
+ }],
416
+ [/^text-stroke-(.+)$/, colorResolver$1("-webkit-text-stroke-color", "text-stroke")],
417
+ [/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-text-stroke-opacity": handler.bracket.percent(opacity) })]
442
418
  ];
443
419
  const textShadows = [
444
420
  [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
@@ -447,11 +423,6 @@ const textShadows = [
447
423
  return { "text-shadow": v };
448
424
  }]
449
425
  ];
450
- const fonts = [
451
- fontsFamilies,
452
- fontSizes,
453
- fontWeights
454
- ].flat(1);
455
426
 
456
427
  const gaps = [
457
428
  [/^(?:flex-|grid-)?gap-([^-]+)$/, ([, s]) => {
@@ -496,12 +467,10 @@ const autoDirection = (selector, theme) => {
496
467
  const grids = [
497
468
  ["grid", { display: "grid" }],
498
469
  ["inline-grid", { display: "inline-grid" }],
499
- [/^grid-cols-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-columns": `repeat(auto-fill, minmax(${d}, 1fr))` })],
500
- [/^grid-rows-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-rows": `repeat(auto-fill, minmax(${d}, 1fr))` })],
501
- [/^grid-cols-(\d+)$/, ([, d]) => ({ "grid-template-columns": `repeat(${d},minmax(0,1fr))` })],
502
- [/^grid-rows-(\d+)$/, ([, d]) => ({ "grid-template-rows": `repeat(${d},minmax(0,1fr))` })],
503
- [/^grid-cols-\[(.+)\]$/, ([, v]) => ({ "grid-template-columns": v.replace(/,/g, " ") })],
504
- [/^grid-rows-\[(.+)\]$/, ([, v]) => ({ "grid-template-rows": v.replace(/,/g, " ") })],
470
+ [/^(?:grid-)?col-start-([\w.-]+)$/, ([, v]) => ({ "grid-column-start": `${v}` })],
471
+ [/^(?:grid-)?col-end-([\w.]+)$/, ([, v]) => ({ "grid-column-end": `${v}` })],
472
+ [/^(?:grid-)?row-start-([\w.-]+)$/, ([, v]) => ({ "grid-row-start": `${v}` })],
473
+ [/^(?:grid-)?row-end-([\w.-]+)$/, ([, v]) => ({ "grid-row-end": `${v}` })],
505
474
  [/^(?:grid-)?(row|col)-(.+)$/, ([, d, v]) => {
506
475
  const key = d === "row" ? "grid-row" : "grid-column";
507
476
  let raw = handler.bracket(v);
@@ -518,13 +487,15 @@ const grids = [
518
487
  return { [key]: `span ${raw}/span ${raw}` };
519
488
  }
520
489
  }],
490
+ [/^(?:grid-)?auto-cols-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-columns": `${autoDirection(v, theme)}` })],
521
491
  [/^(?:grid-)?auto-flow-([\w.-]+)$/, ([, v]) => ({ "grid-auto-flow": `${v.replace("col", "column").split("-").join(" ")}` })],
522
- [/^(?:grid-)?row-start-([\w.-]+)$/, ([, v]) => ({ "grid-row-start": `${v}` })],
523
- [/^(?:grid-)?row-end-([\w.-]+)$/, ([, v]) => ({ "grid-row-end": `${v}` })],
524
- [/^(?:grid-)?col-start-([\w.-]+)$/, ([, v]) => ({ "grid-column-start": `${v}` })],
525
- [/^(?:grid-)?col-end-([\w.]+)$/, ([, v]) => ({ "grid-column-end": `${v}` })],
526
492
  [/^(?:grid-)?auto-rows-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-rows": `${autoDirection(v, theme)}` })],
527
- [/^(?:grid-)?auto-cols-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-columns": `${autoDirection(v, theme)}` })]
493
+ [/^grid-cols-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-columns": `repeat(auto-fill, minmax(${d}, 1fr))` })],
494
+ [/^grid-rows-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-rows": `repeat(auto-fill, minmax(${d}, 1fr))` })],
495
+ [/^grid-cols-(\d+)$/, ([, d]) => ({ "grid-template-columns": `repeat(${d},minmax(0,1fr))` })],
496
+ [/^grid-rows-(\d+)$/, ([, d]) => ({ "grid-template-rows": `repeat(${d},minmax(0,1fr))` })],
497
+ [/^grid-cols-\[(.+)\]$/, ([, v]) => ({ "grid-template-columns": v.replace(/,/g, " ") })],
498
+ [/^grid-rows-\[(.+)\]$/, ([, v]) => ({ "grid-template-rows": v.replace(/,/g, " ") })]
528
499
  ];
529
500
 
530
501
  const overflowValues = [
@@ -538,6 +509,7 @@ const overflows = [
538
509
  [/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overflow-${d}`]: v } : void 0]
539
510
  ];
540
511
 
512
+ const basicSet = ["auto", "start", "end", "center", "stretch"];
541
513
  const positions = [
542
514
  ["relative", { position: "relative" }],
543
515
  ["absolute", { position: "absolute" }],
@@ -551,47 +523,42 @@ const justifies = [
551
523
  ["justify-center", { "justify-content": "center" }],
552
524
  ["justify-between", { "justify-content": "space-between" }],
553
525
  ["justify-around", { "justify-content": "space-around" }],
554
- ["justify-evenly", { "justify-content": "space-evenly" }]
526
+ ["justify-evenly", { "justify-content": "space-evenly" }],
527
+ ...basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]),
528
+ ...basicSet.map((i) => [`justify-self-${i}`, { "justify-self": i }])
555
529
  ];
556
530
  const orders = [
557
531
  [/^order-(.+)$/, ([, v]) => ({ order: { first: "-9999", last: "9999", none: "0" }[v] || handler.bracket.number(v) })]
558
532
  ];
559
- const basicSet = ["auto", "start", "end", "center", "stretch"];
560
- const justifyItems = basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]);
561
- const justifySelfs = basicSet.map((i) => [`justify-self-${i}`, { "justify-self": i }]);
562
- const alignContents = [
533
+ const alignments = [
563
534
  ["content-start", { "align-content": "flex-start" }],
564
535
  ["content-end", { "align-content": "flex-end" }],
565
536
  ["content-center", { "align-content": "center" }],
566
537
  ["content-between", { "align-content": "space-between" }],
567
538
  ["content-around", { "align-content": "space-around" }],
568
- ["content-evenly", { "align-content": "space-evenly" }]
569
- ];
570
- const alignItems = [
539
+ ["content-evenly", { "align-content": "space-evenly" }],
571
540
  ["items-start", { "align-items": "flex-start" }],
572
541
  ["items-end", { "align-items": "flex-end" }],
573
542
  ["items-center", { "align-items": "center" }],
574
543
  ["items-baseline", { "align-items": "baseline" }],
575
- ["items-stretch", { "align-items": "stretch" }]
576
- ];
577
- const alignSelfs = [
544
+ ["items-stretch", { "align-items": "stretch" }],
578
545
  ["self-auto", { "align-self": "auto" }],
579
546
  ["self-start", { "align-self": "flex-start" }],
580
547
  ["self-end", { "align-self": "flex-end" }],
581
548
  ["self-center", { "align-self": "center" }],
582
549
  ["self-stretch", { "align-items": "stretch" }]
583
550
  ];
584
- const placeContents = [
551
+ const placements = [
585
552
  ["place-content-start", { "place-content": "start" }],
586
553
  ["place-content-end", { "place-content": "end" }],
587
554
  ["place-content-center", { "place-content": "center" }],
588
555
  ["place-content-between", { "place-content": "space-between" }],
589
556
  ["place-content-around", { "place-content": "space-around" }],
590
557
  ["place-content-evenly", { "place-content": "space-evenly" }],
591
- ["place-content-stretch", { "place-content": "stretch" }]
558
+ ["place-content-stretch", { "place-content": "stretch" }],
559
+ ...basicSet.map((i) => [`place-items-${i}`, { "place-items": i }]),
560
+ ...basicSet.map((i) => [`place-self-${i}`, { "place-self": i }])
592
561
  ];
593
- const placeItems = basicSet.map((i) => [`place-items-${i}`, { "place-items": i }]);
594
- const placeSelfs = basicSet.map((i) => [`place-self-${i}`, { "place-self": i }]);
595
562
  function handleInsetValue(v) {
596
563
  return { auto: "auto", full: "100%" }[v] ?? handler.bracket.fraction.cssvar.rem(v);
597
564
  }
@@ -782,17 +749,6 @@ const textTransforms = [
782
749
  ["case-capital", { "text-transform": "capitalize" }],
783
750
  ["case-normal", { "text-transform": "none" }]
784
751
  ];
785
- const textDecorations = [
786
- ["underline", { "text-decoration": "underline" }],
787
- ["line-through", { "text-decoration": "line-through" }],
788
- ["no-underline", { "text-decoration": "none" }]
789
- ];
790
- const textDecorationStyles = [
791
- ["underline-solid", { "text-decoration-style": "solid" }],
792
- ["underline-double", { "text-decoration-style": "double" }],
793
- ["underline-dotted", { "text-decoration-style": "dotted" }],
794
- ["underline-dashed", { "text-decoration-style": "dashed" }]
795
- ];
796
752
  const fontStyles = [
797
753
  ["italic", { "font-style": "italic" }],
798
754
  ["not-italic", { "font-style": "normal" }]
@@ -890,19 +846,12 @@ const variablesAbbrMap = {
890
846
  "backface": "backface-visibility",
891
847
  "whitespace": "white-space",
892
848
  "break": "word-break",
849
+ "b": "border-color",
850
+ "border": "border-color",
893
851
  "color": "color",
894
852
  "case": "text-transform",
895
- "write": "writing-mode",
896
- "write-orient": "text-orientation",
897
853
  "origin": "transform-origin",
898
854
  "bg": "background-color",
899
- "bg-blend": "background-blend-mode",
900
- "bg-clip": "-webkit-background-clip",
901
- "bg-gradient": "linear-gradient",
902
- "bg-origin-border": "background-origin",
903
- "bg-position": "background-position",
904
- "bg-repeat": "background-repeat",
905
- "bg-size": "background-size",
906
855
  "bg-opacity": "background-opacity",
907
856
  "tab": "tab-size",
908
857
  "underline": "text-decoration-thickness",
@@ -917,33 +866,61 @@ const variablesAbbrMap = {
917
866
  "content": "align-content",
918
867
  "items": "align-items",
919
868
  "self": "align-self",
920
- "object": "object-fit",
921
- "mix-blend": "mix-blend-mode",
922
- "animate-speed": "animation-speed"
869
+ "object": "object-fit"
923
870
  };
924
- const cssVariables = [[
925
- /^(.+)-\$(.+)$/,
926
- ([, name, varname]) => {
871
+ const cssVariables = [
872
+ [/^(.+)-\$(.+)$/, ([, name, varname]) => {
927
873
  const prop = variablesAbbrMap[name];
928
874
  if (prop) {
929
875
  return {
930
876
  [prop]: `var(--${varname})`
931
877
  };
932
878
  }
933
- }
934
- ]];
879
+ }],
880
+ [/^(?:border|b)-([^-]+)-\$(.+)$/, ([, a, v]) => {
881
+ if (a in directionMap)
882
+ return directionMap[a].map((i) => [`border${i}-color`, `var(--${v})`]);
883
+ }]
884
+ ];
935
885
 
936
886
  const questionMark = [
937
887
  [
938
888
  /^(where|\?)$/,
939
889
  (_, { constructCSS, generator }) => {
940
- if (generator.config.envMode === "dev")
890
+ if (generator.userConfig.envMode === "dev")
941
891
  return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
942
892
  ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
943
893
  }
944
894
  ]
945
895
  ];
946
896
 
897
+ const textDecorations = [
898
+ ["underline", { "text-decoration": "underline" }],
899
+ ["line-through", { "text-decoration": "line-through" }],
900
+ ["no-underline", { "text-decoration": "none" }],
901
+ ["decoration-underline", { "text-decoration": "underline" }],
902
+ ["decoration-line-through", { "text-decoration": "line-through" }],
903
+ ["decoration-none", { "text-decoration": "none" }],
904
+ [/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy)$/, ([, d]) => ({ "text-decoration-style": d })],
905
+ [/^(?:underline|decoration)-([^-]+)$/, ([, s]) => ({ "text-decoration-thickness": ["auto", "from-font"].includes(s) ? s : handler.bracket.px(s) })],
906
+ [/^decoration-(.*)$/, ([, d]) => ({ "text-decoration-thickness": handler.bracket.px(d) })],
907
+ [/^underline-offset-([^-]+)$/, ([, s]) => {
908
+ const v = s === "auto" ? s : handler.bracket.px(s);
909
+ if (v != null)
910
+ return { "text-underline-offset": v };
911
+ }],
912
+ [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
913
+ const result = colorResolver$1("text-decoration-color", "line")(match, ctx);
914
+ if (result) {
915
+ return {
916
+ "-webkit-text-decoration-color": result["text-decoration-color"],
917
+ ...result
918
+ };
919
+ }
920
+ }],
921
+ [/^(?:underline|decoration)-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-line-opacity": handler.bracket.percent(opacity) })]
922
+ ];
923
+
947
924
  const rules = [
948
925
  cssVariables,
949
926
  paddings,
@@ -959,12 +936,7 @@ const rules = [
959
936
  textIndents,
960
937
  textOverflows,
961
938
  textDecorations,
962
- textDecorationStyles,
963
- textDecorationColors,
964
- textDecorationLengths,
965
- textDecorationOffsets,
966
- textStrokeWidths,
967
- textStrokeColors,
939
+ textStrokes,
968
940
  textShadows,
969
941
  textTransforms,
970
942
  textAligns,
@@ -987,9 +959,6 @@ const rules = [
987
959
  userSelects,
988
960
  whitespaces,
989
961
  breaks,
990
- trackings,
991
- wordSpacings,
992
- leadings,
993
962
  overflows,
994
963
  outline,
995
964
  appearance,
@@ -997,14 +966,8 @@ const rules = [
997
966
  positions,
998
967
  orders,
999
968
  justifies,
1000
- justifyItems,
1001
- justifySelfs,
1002
- alignContents,
1003
- alignItems,
1004
- alignSelfs,
1005
- placeContents,
1006
- placeItems,
1007
- placeSelfs,
969
+ alignments,
970
+ placements,
1008
971
  insets,
1009
972
  floats,
1010
973
  zIndexes,
@@ -1014,4 +977,4 @@ const rules = [
1014
977
  questionMark
1015
978
  ].flat(1);
1016
979
 
1017
- export { userSelects as $, justifies as A, orders as B, justifyItems as C, justifySelfs as D, alignContents as E, alignItems as F, alignSelfs as G, placeContents as H, placeItems as I, placeSelfs as J, insets as K, floats as L, zIndexes as M, boxSizing as N, questionMark as O, rings as P, boxShadows as Q, sizes as R, aspectRatio as S, paddings as T, margins as U, varEmpty as V, displays as W, appearances as X, cursors as Y, pointerEvents as Z, resizes as _, appearance as a, whitespaces as a0, contents as a1, breaks as a2, textOverflows as a3, textTransforms as a4, textDecorations as a5, textDecorationStyles as a6, fontStyles as a7, fontSmoothings as a8, transforms as a9, transitions as aa, fontsFamilies as ab, fontSizes as ac, fontWeights as ad, leadings as ae, trackings as af, wordSpacings as ag, tabSizes as ah, textDecorationLengths as ai, textDecorationOffsets as aj, textIndents as ak, textStrokeWidths as al, textShadows as am, fonts as an, cssVariables as ao, borderSizes as b, borderRadius as c, borderStyles as d, borders as e, parseColorUtil as f, colorResolver$1 as g, opacity as h, textColors as i, textDecorationColors as j, textStrokeColors as k, bgColors as l, borderColors as m, ringColors as n, outline as o, placeholder as p, ringOffsetColors as q, rules as r, fillColors as s, textAligns as t, flex as u, verticalAligns as v, gaps as w, grids as x, overflows as y, positions as z };
980
+ export { tabSizes as $, floats as A, zIndexes as B, boxSizing as C, questionMark as D, rings as E, boxShadows as F, sizes as G, aspectRatio as H, paddings as I, margins as J, varEmpty as K, displays as L, appearances as M, cursors as N, pointerEvents as O, resizes as P, userSelects as Q, whitespaces as R, contents as S, breaks as T, textOverflows as U, textTransforms as V, fontStyles as W, fontSmoothings as X, transforms as Y, transitions as Z, fonts as _, appearance as a, textIndents as a0, textStrokes as a1, textShadows as a2, cssVariables as a3, textDecorations as a4, borders as b, parseColorUtil as c, colorResolver$1 as d, opacity as e, textColors as f, bgColors as g, borderColors as h, ringColors as i, ringOffsetColors as j, fillColors as k, flex as l, gaps as m, grids as n, outline as o, placeholder as p, overflows as q, rules as r, positions as s, textAligns as t, justifies as u, verticalAligns as v, orders as w, alignments as x, placements as y, insets as z };
@@ -8,20 +8,22 @@ const variantBreakpoints = (matcher, _, theme) => {
8
8
  const variantEntries = Object.entries(theme.breakpoints || {}).map(([point, size], idx) => [point, size, idx]);
9
9
  for (const [point, size, idx] of variantEntries) {
10
10
  if (!regexCache[point])
11
- regexCache[point] = new RegExp(`^((?:[a|l]t-)?${point}[:-])`);
11
+ regexCache[point] = new RegExp(`^((?:[al]t-)?${point}[:-])`);
12
12
  const match = matcher.match(regexCache[point]);
13
13
  if (!match)
14
14
  continue;
15
15
  const [, pre] = match;
16
+ const m = matcher.slice(pre.length);
17
+ if (m === "container")
18
+ continue;
16
19
  let direction = "min";
17
- let order = parseInt(size);
20
+ let order = 1e3;
18
21
  if (pre.startsWith("lt-")) {
19
22
  direction = "max";
20
- order = -order;
23
+ order -= idx + 1;
24
+ } else {
25
+ order += idx + 1;
21
26
  }
22
- const m = matcher.slice(pre.length);
23
- if (m === "container")
24
- continue;
25
27
  if (pre.startsWith("at-") && idx < variantEntries.length - 1) {
26
28
  return {
27
29
  matcher: m,
@@ -6,20 +6,22 @@ const variantBreakpoints = (matcher, _, theme) => {
6
6
  const variantEntries = Object.entries(theme.breakpoints || {}).map(([point, size], idx) => [point, size, idx]);
7
7
  for (const [point, size, idx] of variantEntries) {
8
8
  if (!regexCache[point])
9
- regexCache[point] = new RegExp(`^((?:[a|l]t-)?${point}[:-])`);
9
+ regexCache[point] = new RegExp(`^((?:[al]t-)?${point}[:-])`);
10
10
  const match = matcher.match(regexCache[point]);
11
11
  if (!match)
12
12
  continue;
13
13
  const [, pre] = match;
14
+ const m = matcher.slice(pre.length);
15
+ if (m === "container")
16
+ continue;
14
17
  let direction = "min";
15
- let order = parseInt(size);
18
+ let order = 1e3;
16
19
  if (pre.startsWith("lt-")) {
17
20
  direction = "max";
18
- order = -order;
21
+ order -= idx + 1;
22
+ } else {
23
+ order += idx + 1;
19
24
  }
20
- const m = matcher.slice(pre.length);
21
- if (m === "container")
22
- continue;
23
25
  if (pre.startsWith("at-") && idx < variantEntries.length - 1) {
24
26
  return {
25
27
  matcher: m,
package/dist/rules.cjs CHANGED
@@ -9,17 +9,12 @@ require('./chunks/pseudo.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.alignContents = _default.alignContents;
13
- exports.alignItems = _default.alignItems;
14
- exports.alignSelfs = _default.alignSelfs;
12
+ exports.alignments = _default.alignments;
15
13
  exports.appearance = _default.appearance;
16
14
  exports.appearances = _default.appearances;
17
15
  exports.aspectRatio = _default.aspectRatio;
18
16
  exports.bgColors = _default.bgColors;
19
17
  exports.borderColors = _default.borderColors;
20
- exports.borderRadius = _default.borderRadius;
21
- exports.borderSizes = _default.borderSizes;
22
- exports.borderStyles = _default.borderStyles;
23
18
  exports.borders = _default.borders;
24
19
  exports.boxShadows = _default.boxShadows;
25
20
  exports.boxSizing = _default.boxSizing;
@@ -32,19 +27,13 @@ exports.displays = _default.displays;
32
27
  exports.fillColors = _default.fillColors;
33
28
  exports.flex = _default.flex;
34
29
  exports.floats = _default.floats;
35
- exports.fontSizes = _default.fontSizes;
36
30
  exports.fontSmoothings = _default.fontSmoothings;
37
31
  exports.fontStyles = _default.fontStyles;
38
- exports.fontWeights = _default.fontWeights;
39
32
  exports.fonts = _default.fonts;
40
- exports.fontsFamilies = _default.fontsFamilies;
41
33
  exports.gaps = _default.gaps;
42
34
  exports.grids = _default.grids;
43
35
  exports.insets = _default.insets;
44
36
  exports.justifies = _default.justifies;
45
- exports.justifyItems = _default.justifyItems;
46
- exports.justifySelfs = _default.justifySelfs;
47
- exports.leadings = _default.leadings;
48
37
  exports.margins = _default.margins;
49
38
  exports.opacity = _default.opacity;
50
39
  exports.orders = _default.orders;
@@ -52,10 +41,8 @@ exports.outline = _default.outline;
52
41
  exports.overflows = _default.overflows;
53
42
  exports.paddings = _default.paddings;
54
43
  exports.parseColorUtil = _default.parseColorUtil;
55
- exports.placeContents = _default.placeContents;
56
- exports.placeItems = _default.placeItems;
57
- exports.placeSelfs = _default.placeSelfs;
58
44
  exports.placeholder = _default.placeholder;
45
+ exports.placements = _default.placements;
59
46
  exports.pointerEvents = _default.pointerEvents;
60
47
  exports.positions = _default.positions;
61
48
  exports.questionMark = _default.questionMark;
@@ -68,23 +55,16 @@ exports.sizes = _default.sizes;
68
55
  exports.tabSizes = _default.tabSizes;
69
56
  exports.textAligns = _default.textAligns;
70
57
  exports.textColors = _default.textColors;
71
- exports.textDecorationColors = _default.textDecorationColors;
72
- exports.textDecorationLengths = _default.textDecorationLengths;
73
- exports.textDecorationOffsets = _default.textDecorationOffsets;
74
- exports.textDecorationStyles = _default.textDecorationStyles;
75
58
  exports.textDecorations = _default.textDecorations;
76
59
  exports.textIndents = _default.textIndents;
77
60
  exports.textOverflows = _default.textOverflows;
78
61
  exports.textShadows = _default.textShadows;
79
- exports.textStrokeColors = _default.textStrokeColors;
80
- exports.textStrokeWidths = _default.textStrokeWidths;
62
+ exports.textStrokes = _default.textStrokes;
81
63
  exports.textTransforms = _default.textTransforms;
82
- exports.trackings = _default.trackings;
83
64
  exports.transforms = _default.transforms;
84
65
  exports.transitions = _default.transitions;
85
66
  exports.userSelects = _default.userSelects;
86
67
  exports.varEmpty = _default.varEmpty;
87
68
  exports.verticalAligns = _default.verticalAligns;
88
69
  exports.whitespaces = _default.whitespaces;
89
- exports.wordSpacings = _default.wordSpacings;
90
70
  exports.zIndexes = _default.zIndexes;
package/dist/rules.d.ts CHANGED
@@ -8,10 +8,7 @@ declare const outline: Rule[];
8
8
  declare const appearance: Rule[];
9
9
  declare const placeholder: Rule[];
10
10
 
11
- declare const borderSizes: Rule[];
12
- declare const borderRadius: Rule[];
13
- declare const borderStyles: Rule[];
14
- declare const borders: Rule<{}>[];
11
+ declare const borders: Rule[];
15
12
 
16
13
  declare const parseColorUtil: (body: string, theme: Theme) => {
17
14
  opacity: string;
@@ -31,8 +28,6 @@ declare const opacity: Rule[];
31
28
  * @example c-red color-red5 text-red-300
32
29
  */
33
30
  declare const textColors: Rule[];
34
- declare const textDecorationColors: Rule[];
35
- declare const textStrokeColors: Rule[];
36
31
  declare const bgColors: Rule[];
37
32
  declare const borderColors: Rule[];
38
33
  declare const ringColors: Rule[];
@@ -52,14 +47,8 @@ declare const overflows: Rule[];
52
47
  declare const positions: Rule[];
53
48
  declare const justifies: Rule[];
54
49
  declare const orders: Rule[];
55
- declare const justifyItems: Rule[];
56
- declare const justifySelfs: Rule[];
57
- declare const alignContents: Rule[];
58
- declare const alignItems: Rule[];
59
- declare const alignSelfs: Rule[];
60
- declare const placeContents: Rule[];
61
- declare const placeItems: Rule[];
62
- declare const placeSelfs: Rule[];
50
+ declare const alignments: Rule[];
51
+ declare const placements: Rule[];
63
52
  declare const insets: Rule[];
64
53
  declare const floats: Rule[];
65
54
  declare const zIndexes: Rule[];
@@ -94,8 +83,6 @@ declare const contents: Rule[];
94
83
  declare const breaks: Rule[];
95
84
  declare const textOverflows: Rule[];
96
85
  declare const textTransforms: Rule[];
97
- declare const textDecorations: Rule[];
98
- declare const textDecorationStyles: Rule[];
99
86
  declare const fontStyles: Rule[];
100
87
  declare const fontSmoothings: Rule[];
101
88
 
@@ -103,20 +90,14 @@ declare const transforms: Rule[];
103
90
 
104
91
  declare const transitions: Rule[];
105
92
 
106
- declare const fontsFamilies: Rule<Theme>[];
107
- declare const fontSizes: Rule<Theme>[];
108
- declare const fontWeights: Rule[];
109
- declare const leadings: Rule<Theme>[];
110
- declare const trackings: Rule<Theme>[];
111
- declare const wordSpacings: Rule<Theme>[];
93
+ declare const fonts: Rule<Theme>[];
112
94
  declare const tabSizes: Rule<Theme>[];
113
- declare const textDecorationLengths: Rule<Theme>[];
114
- declare const textDecorationOffsets: Rule<Theme>[];
115
95
  declare const textIndents: Rule<Theme>[];
116
- declare const textStrokeWidths: Rule<Theme>[];
96
+ declare const textStrokes: Rule<Theme>[];
117
97
  declare const textShadows: Rule<Theme>[];
118
- declare const fonts: Rule<Theme>[];
119
98
 
120
99
  declare const cssVariables: Rule[];
121
100
 
122
- export { alignContents, alignItems, alignSelfs, appearance, appearances, aspectRatio, bgColors, borderColors, borderRadius, borderSizes, borderStyles, borders, boxShadows, boxSizing, breaks, colorResolver, contents, cssVariables, cursors, displays, fillColors, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, insets, justifies, justifyItems, justifySelfs, leadings, margins, opacity, orders, outline, overflows, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, sizes, tabSizes, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, wordSpacings, zIndexes };
101
+ declare const textDecorations: Rule[];
102
+
103
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borderColors, borders, boxShadows, boxSizing, breaks, colorResolver, contents, cssVariables, cursors, displays, fillColors, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, parseColorUtil, placeholder, placements, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, sizes, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E as alignContents, F as alignItems, G as alignSelfs, a as appearance, X as appearances, S as aspectRatio, l as bgColors, m as borderColors, c as borderRadius, b as borderSizes, d as borderStyles, e as borders, Q as boxShadows, N as boxSizing, a2 as breaks, g as colorResolver, a1 as contents, ao as cssVariables, Y as cursors, W as displays, s as fillColors, u as flex, L as floats, ac as fontSizes, a8 as fontSmoothings, a7 as fontStyles, ad as fontWeights, an as fonts, ab as fontsFamilies, w as gaps, x as grids, K as insets, A as justifies, C as justifyItems, D as justifySelfs, ae as leadings, U as margins, h as opacity, B as orders, o as outline, y as overflows, T as paddings, f as parseColorUtil, H as placeContents, I as placeItems, J as placeSelfs, p as placeholder, Z as pointerEvents, z as positions, O as questionMark, _ as resizes, n as ringColors, q as ringOffsetColors, P as rings, r as rules, R as sizes, ah as tabSizes, t as textAligns, i as textColors, j as textDecorationColors, ai as textDecorationLengths, aj as textDecorationOffsets, a6 as textDecorationStyles, a5 as textDecorations, ak as textIndents, a3 as textOverflows, am as textShadows, k as textStrokeColors, al as textStrokeWidths, a4 as textTransforms, af as trackings, a9 as transforms, aa as transitions, $ as userSelects, V as varEmpty, v as verticalAligns, a0 as whitespaces, ag as wordSpacings, M as zIndexes } from './chunks/default2.mjs';
1
+ export { x as alignments, a as appearance, M as appearances, H as aspectRatio, g as bgColors, h as borderColors, b as borders, F as boxShadows, C as boxSizing, T as breaks, d as colorResolver, S as contents, a3 as cssVariables, N as cursors, L as displays, k as fillColors, l as flex, A as floats, X as fontSmoothings, W as fontStyles, _ as fonts, m as gaps, n as grids, z as insets, u as justifies, J as margins, e as opacity, w as orders, o as outline, q as overflows, I as paddings, c as parseColorUtil, p as placeholder, y as placements, O as pointerEvents, s as positions, D as questionMark, P as resizes, i as ringColors, j as ringOffsetColors, E as rings, r as rules, G as sizes, $ as tabSizes, t as textAligns, f as textColors, a4 as textDecorations, a0 as textIndents, U as textOverflows, a2 as textShadows, a1 as textStrokes, V as textTransforms, Y as transforms, Z as transitions, Q as userSelects, K as varEmpty, v as verticalAligns, R as whitespaces, B as zIndexes } from './chunks/default2.mjs';
2
2
  import '@unocss/core';
3
3
  import './chunks/index.mjs';
4
4
  import './chunks/pseudo.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.15.6",
3
+ "version": "0.16.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.15.6"
64
+ "@unocss/core": "0.16.3"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",