@weapp-tailwindcss/merge 2.1.6 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/slim.mjs ADDED
@@ -0,0 +1,1545 @@
1
+ import { createRpxLengthTransform, createRuntimeFactory, weappTwIgnore } from "@weapp-tailwindcss/runtime";
2
+ import { createTailwindMerge as createTailwindMerge$1, fromTheme, mergeConfigs, twJoin as twJoin$1, validators } from "tailwind-merge";
3
+ //#region src/slim-config.ts
4
+ const { isAny, isAnyNonArbitrary, isArbitraryLength, isArbitraryPosition, isArbitrarySize, isArbitraryValue, isArbitraryVariable, isArbitraryVariableLength, isArbitraryVariablePosition, isArbitraryVariableSize, isFraction, isInteger, isNumber, isTshirtSize } = validators;
5
+ /**
6
+ * 精简版 tailwind-merge 配置,仅包含小程序场景中高频使用的 Tailwind 类冲突分组。
7
+ *
8
+ * 包含类别:布局、Flexbox、Grid、对齐、间距、尺寸、排版、背景、边框、效果、变换、过渡、交互、定位
9
+ * 排除类别:SVG、表格、滚动捕捉、触摸操作、遮罩、透视、容器查询、列、分页、装饰断行、
10
+ * 滚动行为覆盖、屏幕阅读器、宽高比、容器、强制颜色调整、will-change、行截断、
11
+ * 字体变体数字、渐变、滤镜/背景滤镜、强调色、光标颜色、外观
12
+ */
13
+ function getSlimConfig() {
14
+ const themeColor = fromTheme("color");
15
+ const themeFont = fromTheme("font");
16
+ const themeText = fromTheme("text");
17
+ const themeFontWeight = fromTheme("font-weight");
18
+ const themeTracking = fromTheme("tracking");
19
+ const themeLeading = fromTheme("leading");
20
+ const themeSpacing = fromTheme("spacing");
21
+ const themeRadius = fromTheme("radius");
22
+ const themeShadow = fromTheme("shadow");
23
+ const themeEase = fromTheme("ease");
24
+ const themeAnimate = fromTheme("animate");
25
+ const themeBreakpoint = fromTheme("breakpoint");
26
+ const themeContainer = fromTheme("container");
27
+ /** 无歧义间距值 */
28
+ const scaleUnambiguousSpacing = () => [
29
+ isArbitraryVariable,
30
+ isArbitraryValue,
31
+ themeSpacing
32
+ ];
33
+ /** 定位值 */
34
+ const scaleInset = () => [
35
+ isFraction,
36
+ "full",
37
+ "auto",
38
+ ...scaleUnambiguousSpacing()
39
+ ];
40
+ /** 溢出值 */
41
+ const scaleOverflow = () => [
42
+ "auto",
43
+ "hidden",
44
+ "clip",
45
+ "visible",
46
+ "scroll"
47
+ ];
48
+ /** Grid 模板列/行 */
49
+ const scaleGridTemplateColsRows = () => [
50
+ isInteger,
51
+ "none",
52
+ "subgrid",
53
+ isArbitraryVariable,
54
+ isArbitraryValue
55
+ ];
56
+ /** Grid 列/行起止 */
57
+ const scaleGridColRowStartAndEnd = () => [
58
+ "auto",
59
+ { span: [
60
+ "full",
61
+ isInteger,
62
+ isArbitraryVariable,
63
+ isArbitraryValue
64
+ ] },
65
+ isInteger,
66
+ isArbitraryVariable,
67
+ isArbitraryValue
68
+ ];
69
+ /** Grid 列/行起始或结束 */
70
+ const scaleGridColRowStartOrEnd = () => [
71
+ isInteger,
72
+ "auto",
73
+ isArbitraryVariable,
74
+ isArbitraryValue
75
+ ];
76
+ /** Grid 自动列/行 */
77
+ const scaleGridAutoColsRows = () => [
78
+ "auto",
79
+ "min",
80
+ "max",
81
+ "fr",
82
+ isArbitraryVariable,
83
+ isArbitraryValue
84
+ ];
85
+ /** 主轴对齐 */
86
+ const scaleAlignPrimaryAxis = () => [
87
+ "start",
88
+ "end",
89
+ "center",
90
+ "between",
91
+ "around",
92
+ "evenly",
93
+ "stretch",
94
+ "baseline",
95
+ "center-safe",
96
+ "end-safe"
97
+ ];
98
+ /** 交叉轴对齐 */
99
+ const scaleAlignSecondaryAxis = () => [
100
+ "start",
101
+ "end",
102
+ "center",
103
+ "stretch",
104
+ "center-safe",
105
+ "end-safe"
106
+ ];
107
+ /** 外边距值 */
108
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
109
+ /** 尺寸值 */
110
+ const scaleSizing = () => [
111
+ isFraction,
112
+ "auto",
113
+ "full",
114
+ "dvw",
115
+ "dvh",
116
+ "lvw",
117
+ "lvh",
118
+ "svw",
119
+ "svh",
120
+ "min",
121
+ "max",
122
+ "fit",
123
+ ...scaleUnambiguousSpacing()
124
+ ];
125
+ /** 颜色值 */
126
+ const scaleColor = () => [
127
+ themeColor,
128
+ isArbitraryVariable,
129
+ isArbitraryValue
130
+ ];
131
+ /** 圆角值 */
132
+ const scaleRadius = () => [
133
+ "",
134
+ "none",
135
+ "full",
136
+ themeRadius,
137
+ isArbitraryVariable,
138
+ isArbitraryValue
139
+ ];
140
+ /** 边框宽度值 */
141
+ const scaleBorderWidth = () => [
142
+ "",
143
+ isNumber,
144
+ isArbitraryVariableLength,
145
+ isArbitraryLength
146
+ ];
147
+ /** 线条样式 */
148
+ const scaleLineStyle = () => [
149
+ "solid",
150
+ "dashed",
151
+ "dotted",
152
+ "double"
153
+ ];
154
+ /** 混合模式 */
155
+ const scaleBlendMode = () => [
156
+ "normal",
157
+ "multiply",
158
+ "screen",
159
+ "overlay",
160
+ "darken",
161
+ "lighten",
162
+ "color-dodge",
163
+ "color-burn",
164
+ "hard-light",
165
+ "soft-light",
166
+ "difference",
167
+ "exclusion",
168
+ "hue",
169
+ "saturation",
170
+ "color",
171
+ "luminosity"
172
+ ];
173
+ /** 位置值 */
174
+ const scalePosition = () => [
175
+ "center",
176
+ "top",
177
+ "bottom",
178
+ "left",
179
+ "right",
180
+ "top-left",
181
+ "left-top",
182
+ "top-right",
183
+ "right-top",
184
+ "bottom-right",
185
+ "right-bottom",
186
+ "bottom-left",
187
+ "left-bottom"
188
+ ];
189
+ /** 位置值(含 arbitrary) */
190
+ const scalePositionWithArbitrary = () => [
191
+ ...scalePosition(),
192
+ isArbitraryVariable,
193
+ isArbitraryValue
194
+ ];
195
+ /** 背景位置值 */
196
+ const scaleBgPosition = () => [
197
+ ...scalePosition(),
198
+ isArbitraryVariablePosition,
199
+ isArbitraryPosition,
200
+ { position: [isArbitraryVariable, isArbitraryValue] }
201
+ ];
202
+ /** 背景重复值 */
203
+ const scaleBgRepeat = () => ["no-repeat", { repeat: [
204
+ "",
205
+ "x",
206
+ "y",
207
+ "space",
208
+ "round"
209
+ ] }];
210
+ /** 背景尺寸值 */
211
+ const scaleBgSize = () => [
212
+ "auto",
213
+ "cover",
214
+ "contain",
215
+ isArbitraryVariableSize,
216
+ isArbitrarySize,
217
+ { size: [isArbitraryVariable, isArbitraryValue] }
218
+ ];
219
+ /** 旋转值 */
220
+ const scaleRotate = () => [
221
+ "none",
222
+ isNumber,
223
+ isArbitraryVariable,
224
+ isArbitraryValue
225
+ ];
226
+ /** 缩放值 */
227
+ const scaleScale = () => [
228
+ "none",
229
+ isNumber,
230
+ isArbitraryVariable,
231
+ isArbitraryValue
232
+ ];
233
+ /** 平移值 */
234
+ const scaleTranslate = () => [
235
+ isFraction,
236
+ "full",
237
+ ...scaleUnambiguousSpacing()
238
+ ];
239
+ return {
240
+ cacheSize: 500,
241
+ theme: {
242
+ "animate": [
243
+ "spin",
244
+ "ping",
245
+ "pulse",
246
+ "bounce"
247
+ ],
248
+ "blur": [isTshirtSize],
249
+ "breakpoint": [isTshirtSize],
250
+ "color": [isAny],
251
+ "container": [isTshirtSize],
252
+ "drop-shadow": [isTshirtSize],
253
+ "ease": [
254
+ "in",
255
+ "out",
256
+ "in-out"
257
+ ],
258
+ "font": [isAnyNonArbitrary],
259
+ "font-weight": [
260
+ "thin",
261
+ "extralight",
262
+ "light",
263
+ "normal",
264
+ "medium",
265
+ "semibold",
266
+ "bold",
267
+ "extrabold",
268
+ "black"
269
+ ],
270
+ "inset-shadow": [isTshirtSize],
271
+ "leading": [
272
+ "none",
273
+ "tight",
274
+ "snug",
275
+ "normal",
276
+ "relaxed",
277
+ "loose"
278
+ ],
279
+ "radius": [isTshirtSize],
280
+ "shadow": [isTshirtSize],
281
+ "spacing": ["px", isNumber],
282
+ "text": [isTshirtSize],
283
+ "text-shadow": [isTshirtSize],
284
+ "tracking": [
285
+ "tighter",
286
+ "tight",
287
+ "normal",
288
+ "wide",
289
+ "wider",
290
+ "widest"
291
+ ]
292
+ },
293
+ classGroups: {
294
+ /**
295
+ * Box Sizing
296
+ * @see https://tailwindcss.com/docs/box-sizing
297
+ */
298
+ "box": [{ box: ["border", "content"] }],
299
+ /**
300
+ * Display
301
+ * @see https://tailwindcss.com/docs/display
302
+ */
303
+ "display": [
304
+ "block",
305
+ "inline-block",
306
+ "inline",
307
+ "flex",
308
+ "inline-flex",
309
+ "table",
310
+ "inline-table",
311
+ "table-caption",
312
+ "table-cell",
313
+ "table-column",
314
+ "table-column-group",
315
+ "table-footer-group",
316
+ "table-header-group",
317
+ "table-row-group",
318
+ "table-row",
319
+ "flow-root",
320
+ "grid",
321
+ "inline-grid",
322
+ "contents",
323
+ "list-item",
324
+ "hidden"
325
+ ],
326
+ /**
327
+ * Float
328
+ * @see https://tailwindcss.com/docs/float
329
+ */
330
+ "float": [{ float: [
331
+ "right",
332
+ "left",
333
+ "none",
334
+ "start",
335
+ "end"
336
+ ] }],
337
+ /**
338
+ * Clear
339
+ * @see https://tailwindcss.com/docs/clear
340
+ */
341
+ "clear": [{ clear: [
342
+ "left",
343
+ "right",
344
+ "both",
345
+ "none",
346
+ "start",
347
+ "end"
348
+ ] }],
349
+ /**
350
+ * Isolation
351
+ * @see https://tailwindcss.com/docs/isolation
352
+ */
353
+ "isolation": ["isolate", "isolation-auto"],
354
+ /**
355
+ * Object Fit
356
+ * @see https://tailwindcss.com/docs/object-fit
357
+ */
358
+ "object-fit": [{ object: [
359
+ "contain",
360
+ "cover",
361
+ "fill",
362
+ "none",
363
+ "scale-down"
364
+ ] }],
365
+ /**
366
+ * Object Position
367
+ * @see https://tailwindcss.com/docs/object-position
368
+ */
369
+ "object-position": [{ object: scalePositionWithArbitrary() }],
370
+ /**
371
+ * Overflow
372
+ * @see https://tailwindcss.com/docs/overflow
373
+ */
374
+ "overflow": [{ overflow: scaleOverflow() }],
375
+ /**
376
+ * Overflow X
377
+ * @see https://tailwindcss.com/docs/overflow
378
+ */
379
+ "overflow-x": [{ "overflow-x": scaleOverflow() }],
380
+ /**
381
+ * Overflow Y
382
+ * @see https://tailwindcss.com/docs/overflow
383
+ */
384
+ "overflow-y": [{ "overflow-y": scaleOverflow() }],
385
+ /**
386
+ * Position
387
+ * @see https://tailwindcss.com/docs/position
388
+ */
389
+ "position": [
390
+ "static",
391
+ "fixed",
392
+ "absolute",
393
+ "relative",
394
+ "sticky"
395
+ ],
396
+ /**
397
+ * Visibility
398
+ * @see https://tailwindcss.com/docs/visibility
399
+ */
400
+ "visibility": [
401
+ "visible",
402
+ "invisible",
403
+ "collapse"
404
+ ],
405
+ /**
406
+ * Z-Index
407
+ * @see https://tailwindcss.com/docs/z-index
408
+ */
409
+ "z": [{ z: [
410
+ isInteger,
411
+ "auto",
412
+ isArbitraryVariable,
413
+ isArbitraryValue
414
+ ] }],
415
+ /**
416
+ * Inset
417
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
418
+ */
419
+ "inset": [{ inset: scaleInset() }],
420
+ /**
421
+ * Inset X
422
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
423
+ */
424
+ "inset-x": [{ "inset-x": scaleInset() }],
425
+ /**
426
+ * Inset Y
427
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
428
+ */
429
+ "inset-y": [{ "inset-y": scaleInset() }],
430
+ /**
431
+ * Inset Inline Start
432
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
433
+ */
434
+ "start": [{
435
+ "inset-s": scaleInset(),
436
+ "start": scaleInset()
437
+ }],
438
+ /**
439
+ * Inset Inline End
440
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
441
+ */
442
+ "end": [{
443
+ "inset-e": scaleInset(),
444
+ "end": scaleInset()
445
+ }],
446
+ /**
447
+ * Top
448
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
449
+ */
450
+ "top": [{ top: scaleInset() }],
451
+ /**
452
+ * Right
453
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
454
+ */
455
+ "right": [{ right: scaleInset() }],
456
+ /**
457
+ * Bottom
458
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
459
+ */
460
+ "bottom": [{ bottom: scaleInset() }],
461
+ /**
462
+ * Left
463
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
464
+ */
465
+ "left": [{ left: scaleInset() }],
466
+ /**
467
+ * Flex Basis
468
+ * @see https://tailwindcss.com/docs/flex-basis
469
+ */
470
+ "basis": [{ basis: [
471
+ isFraction,
472
+ "full",
473
+ "auto",
474
+ themeContainer,
475
+ ...scaleUnambiguousSpacing()
476
+ ] }],
477
+ /**
478
+ * Flex Direction
479
+ * @see https://tailwindcss.com/docs/flex-direction
480
+ */
481
+ "flex-direction": [{ flex: [
482
+ "row",
483
+ "row-reverse",
484
+ "col",
485
+ "col-reverse"
486
+ ] }],
487
+ /**
488
+ * Flex Wrap
489
+ * @see https://tailwindcss.com/docs/flex-wrap
490
+ */
491
+ "flex-wrap": [{ flex: [
492
+ "nowrap",
493
+ "wrap",
494
+ "wrap-reverse"
495
+ ] }],
496
+ /**
497
+ * Flex
498
+ * @see https://tailwindcss.com/docs/flex
499
+ */
500
+ "flex": [{ flex: [
501
+ isNumber,
502
+ isFraction,
503
+ "auto",
504
+ "initial",
505
+ "none",
506
+ isArbitraryValue
507
+ ] }],
508
+ /**
509
+ * Flex Grow
510
+ * @see https://tailwindcss.com/docs/flex-grow
511
+ */
512
+ "grow": [{ grow: [
513
+ "",
514
+ isNumber,
515
+ isArbitraryVariable,
516
+ isArbitraryValue
517
+ ] }],
518
+ /**
519
+ * Flex Shrink
520
+ * @see https://tailwindcss.com/docs/flex-shrink
521
+ */
522
+ "shrink": [{ shrink: [
523
+ "",
524
+ isNumber,
525
+ isArbitraryVariable,
526
+ isArbitraryValue
527
+ ] }],
528
+ /**
529
+ * Order
530
+ * @see https://tailwindcss.com/docs/order
531
+ */
532
+ "order": [{ order: [
533
+ isInteger,
534
+ "first",
535
+ "last",
536
+ "none",
537
+ isArbitraryVariable,
538
+ isArbitraryValue
539
+ ] }],
540
+ /**
541
+ * Grid Template Columns
542
+ * @see https://tailwindcss.com/docs/grid-template-columns
543
+ */
544
+ "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
545
+ /**
546
+ * Grid Column Start / End
547
+ * @see https://tailwindcss.com/docs/grid-column
548
+ */
549
+ "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
550
+ /**
551
+ * Grid Column Start
552
+ * @see https://tailwindcss.com/docs/grid-column
553
+ */
554
+ "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
555
+ /**
556
+ * Grid Column End
557
+ * @see https://tailwindcss.com/docs/grid-column
558
+ */
559
+ "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
560
+ /**
561
+ * Grid Template Rows
562
+ * @see https://tailwindcss.com/docs/grid-template-rows
563
+ */
564
+ "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
565
+ /**
566
+ * Grid Row Start / End
567
+ * @see https://tailwindcss.com/docs/grid-row
568
+ */
569
+ "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
570
+ /**
571
+ * Grid Row Start
572
+ * @see https://tailwindcss.com/docs/grid-row
573
+ */
574
+ "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
575
+ /**
576
+ * Grid Row End
577
+ * @see https://tailwindcss.com/docs/grid-row
578
+ */
579
+ "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
580
+ /**
581
+ * Grid Auto Flow
582
+ * @see https://tailwindcss.com/docs/grid-auto-flow
583
+ */
584
+ "grid-flow": [{ "grid-flow": [
585
+ "row",
586
+ "col",
587
+ "dense",
588
+ "row-dense",
589
+ "col-dense"
590
+ ] }],
591
+ /**
592
+ * Grid Auto Columns
593
+ * @see https://tailwindcss.com/docs/grid-auto-columns
594
+ */
595
+ "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
596
+ /**
597
+ * Grid Auto Rows
598
+ * @see https://tailwindcss.com/docs/grid-auto-rows
599
+ */
600
+ "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
601
+ /**
602
+ * Gap
603
+ * @see https://tailwindcss.com/docs/gap
604
+ */
605
+ "gap": [{ gap: scaleUnambiguousSpacing() }],
606
+ /**
607
+ * Gap X
608
+ * @see https://tailwindcss.com/docs/gap
609
+ */
610
+ "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
611
+ /**
612
+ * Gap Y
613
+ * @see https://tailwindcss.com/docs/gap
614
+ */
615
+ "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
616
+ /**
617
+ * Justify Content
618
+ * @see https://tailwindcss.com/docs/justify-content
619
+ */
620
+ "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
621
+ /**
622
+ * Justify Items
623
+ * @see https://tailwindcss.com/docs/justify-items
624
+ */
625
+ "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
626
+ /**
627
+ * Justify Self
628
+ * @see https://tailwindcss.com/docs/justify-self
629
+ */
630
+ "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
631
+ /**
632
+ * Align Content
633
+ * @see https://tailwindcss.com/docs/align-content
634
+ */
635
+ "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
636
+ /**
637
+ * Align Items
638
+ * @see https://tailwindcss.com/docs/align-items
639
+ */
640
+ "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
641
+ /**
642
+ * Align Self
643
+ * @see https://tailwindcss.com/docs/align-self
644
+ */
645
+ "align-self": [{ self: [
646
+ "auto",
647
+ ...scaleAlignSecondaryAxis(),
648
+ { baseline: ["", "last"] }
649
+ ] }],
650
+ /**
651
+ * Place Content
652
+ * @see https://tailwindcss.com/docs/place-content
653
+ */
654
+ "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
655
+ /**
656
+ * Place Items
657
+ * @see https://tailwindcss.com/docs/place-items
658
+ */
659
+ "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
660
+ /**
661
+ * Place Self
662
+ * @see https://tailwindcss.com/docs/place-self
663
+ */
664
+ "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
665
+ /**
666
+ * Padding
667
+ * @see https://tailwindcss.com/docs/padding
668
+ */
669
+ "p": [{ p: scaleUnambiguousSpacing() }],
670
+ /**
671
+ * Padding X
672
+ * @see https://tailwindcss.com/docs/padding
673
+ */
674
+ "px": [{ px: scaleUnambiguousSpacing() }],
675
+ /**
676
+ * Padding Y
677
+ * @see https://tailwindcss.com/docs/padding
678
+ */
679
+ "py": [{ py: scaleUnambiguousSpacing() }],
680
+ /**
681
+ * Padding Inline Start
682
+ * @see https://tailwindcss.com/docs/padding
683
+ */
684
+ "ps": [{ ps: scaleUnambiguousSpacing() }],
685
+ /**
686
+ * Padding Inline End
687
+ * @see https://tailwindcss.com/docs/padding
688
+ */
689
+ "pe": [{ pe: scaleUnambiguousSpacing() }],
690
+ /**
691
+ * Padding Top
692
+ * @see https://tailwindcss.com/docs/padding
693
+ */
694
+ "pt": [{ pt: scaleUnambiguousSpacing() }],
695
+ /**
696
+ * Padding Right
697
+ * @see https://tailwindcss.com/docs/padding
698
+ */
699
+ "pr": [{ pr: scaleUnambiguousSpacing() }],
700
+ /**
701
+ * Padding Bottom
702
+ * @see https://tailwindcss.com/docs/padding
703
+ */
704
+ "pb": [{ pb: scaleUnambiguousSpacing() }],
705
+ /**
706
+ * Padding Left
707
+ * @see https://tailwindcss.com/docs/padding
708
+ */
709
+ "pl": [{ pl: scaleUnambiguousSpacing() }],
710
+ /**
711
+ * Margin
712
+ * @see https://tailwindcss.com/docs/margin
713
+ */
714
+ "m": [{ m: scaleMargin() }],
715
+ /**
716
+ * Margin X
717
+ * @see https://tailwindcss.com/docs/margin
718
+ */
719
+ "mx": [{ mx: scaleMargin() }],
720
+ /**
721
+ * Margin Y
722
+ * @see https://tailwindcss.com/docs/margin
723
+ */
724
+ "my": [{ my: scaleMargin() }],
725
+ /**
726
+ * Margin Inline Start
727
+ * @see https://tailwindcss.com/docs/margin
728
+ */
729
+ "ms": [{ ms: scaleMargin() }],
730
+ /**
731
+ * Margin Inline End
732
+ * @see https://tailwindcss.com/docs/margin
733
+ */
734
+ "me": [{ me: scaleMargin() }],
735
+ /**
736
+ * Margin Top
737
+ * @see https://tailwindcss.com/docs/margin
738
+ */
739
+ "mt": [{ mt: scaleMargin() }],
740
+ /**
741
+ * Margin Right
742
+ * @see https://tailwindcss.com/docs/margin
743
+ */
744
+ "mr": [{ mr: scaleMargin() }],
745
+ /**
746
+ * Margin Bottom
747
+ * @see https://tailwindcss.com/docs/margin
748
+ */
749
+ "mb": [{ mb: scaleMargin() }],
750
+ /**
751
+ * Margin Left
752
+ * @see https://tailwindcss.com/docs/margin
753
+ */
754
+ "ml": [{ ml: scaleMargin() }],
755
+ /**
756
+ * Space Between X
757
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
758
+ */
759
+ "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
760
+ /**
761
+ * Space Between X Reverse
762
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
763
+ */
764
+ "space-x-reverse": ["space-x-reverse"],
765
+ /**
766
+ * Space Between Y
767
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
768
+ */
769
+ "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
770
+ /**
771
+ * Space Between Y Reverse
772
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
773
+ */
774
+ "space-y-reverse": ["space-y-reverse"],
775
+ /**
776
+ * Size
777
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
778
+ */
779
+ "size": [{ size: scaleSizing() }],
780
+ /**
781
+ * Width
782
+ * @see https://tailwindcss.com/docs/width
783
+ */
784
+ "w": [{ w: [
785
+ themeContainer,
786
+ "screen",
787
+ ...scaleSizing()
788
+ ] }],
789
+ /**
790
+ * Min-Width
791
+ * @see https://tailwindcss.com/docs/min-width
792
+ */
793
+ "min-w": [{ "min-w": [
794
+ themeContainer,
795
+ "screen",
796
+ "none",
797
+ ...scaleSizing()
798
+ ] }],
799
+ /**
800
+ * Max-Width
801
+ * @see https://tailwindcss.com/docs/max-width
802
+ */
803
+ "max-w": [{ "max-w": [
804
+ themeContainer,
805
+ "screen",
806
+ "none",
807
+ "prose",
808
+ { screen: [themeBreakpoint] },
809
+ ...scaleSizing()
810
+ ] }],
811
+ /**
812
+ * Height
813
+ * @see https://tailwindcss.com/docs/height
814
+ */
815
+ "h": [{ h: [
816
+ "screen",
817
+ "lh",
818
+ ...scaleSizing()
819
+ ] }],
820
+ /**
821
+ * Min-Height
822
+ * @see https://tailwindcss.com/docs/min-height
823
+ */
824
+ "min-h": [{ "min-h": [
825
+ "screen",
826
+ "lh",
827
+ "none",
828
+ ...scaleSizing()
829
+ ] }],
830
+ /**
831
+ * Max-Height
832
+ * @see https://tailwindcss.com/docs/max-height
833
+ */
834
+ "max-h": [{ "max-h": [
835
+ "screen",
836
+ "lh",
837
+ ...scaleSizing()
838
+ ] }],
839
+ /**
840
+ * Font Size
841
+ * @see https://tailwindcss.com/docs/font-size
842
+ */
843
+ "font-size": [{ text: [
844
+ "base",
845
+ themeText,
846
+ isArbitraryVariableLength,
847
+ isArbitraryLength
848
+ ] }],
849
+ /**
850
+ * Font Style
851
+ * @see https://tailwindcss.com/docs/font-style
852
+ */
853
+ "font-style": ["italic", "not-italic"],
854
+ /**
855
+ * Font Weight
856
+ * @see https://tailwindcss.com/docs/font-weight
857
+ */
858
+ "font-weight": [{ font: [
859
+ themeFontWeight,
860
+ isArbitraryVariable,
861
+ isArbitraryValue
862
+ ] }],
863
+ /**
864
+ * Font Family
865
+ * @see https://tailwindcss.com/docs/font-family
866
+ */
867
+ "font-family": [{ font: [
868
+ isArbitraryVariable,
869
+ isArbitraryValue,
870
+ themeFont
871
+ ] }],
872
+ /**
873
+ * Letter Spacing
874
+ * @see https://tailwindcss.com/docs/letter-spacing
875
+ */
876
+ "tracking": [{ tracking: [
877
+ themeTracking,
878
+ isArbitraryVariable,
879
+ isArbitraryValue
880
+ ] }],
881
+ /**
882
+ * Line Height
883
+ * @see https://tailwindcss.com/docs/line-height
884
+ */
885
+ "leading": [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
886
+ /**
887
+ * Text Alignment
888
+ * @see https://tailwindcss.com/docs/text-align
889
+ */
890
+ "text-alignment": [{ text: [
891
+ "left",
892
+ "center",
893
+ "right",
894
+ "justify",
895
+ "start",
896
+ "end"
897
+ ] }],
898
+ /**
899
+ * Text Color
900
+ * @see https://tailwindcss.com/docs/text-color
901
+ */
902
+ "text-color": [{ text: scaleColor() }],
903
+ /**
904
+ * Text Decoration
905
+ * @see https://tailwindcss.com/docs/text-decoration
906
+ */
907
+ "text-decoration": [
908
+ "underline",
909
+ "overline",
910
+ "line-through",
911
+ "no-underline"
912
+ ],
913
+ /**
914
+ * Text Decoration Color
915
+ * @see https://tailwindcss.com/docs/text-decoration-color
916
+ */
917
+ "text-decoration-color": [{ decoration: scaleColor() }],
918
+ /**
919
+ * Text Decoration Style
920
+ * @see https://tailwindcss.com/docs/text-decoration-style
921
+ */
922
+ "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
923
+ /**
924
+ * Text Decoration Thickness
925
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
926
+ */
927
+ "text-decoration-thickness": [{ decoration: [
928
+ isNumber,
929
+ "from-font",
930
+ "auto",
931
+ isArbitraryVariable,
932
+ isArbitraryLength
933
+ ] }],
934
+ /**
935
+ * Text Transform
936
+ * @see https://tailwindcss.com/docs/text-transform
937
+ */
938
+ "text-transform": [
939
+ "uppercase",
940
+ "lowercase",
941
+ "capitalize",
942
+ "normal-case"
943
+ ],
944
+ /**
945
+ * Text Overflow
946
+ * @see https://tailwindcss.com/docs/text-overflow
947
+ */
948
+ "text-overflow": [
949
+ "truncate",
950
+ "text-ellipsis",
951
+ "text-clip"
952
+ ],
953
+ /**
954
+ * Text Wrap
955
+ * @see https://tailwindcss.com/docs/text-wrap
956
+ */
957
+ "text-wrap": [{ text: [
958
+ "wrap",
959
+ "nowrap",
960
+ "balance",
961
+ "pretty"
962
+ ] }],
963
+ /**
964
+ * Text Indent
965
+ * @see https://tailwindcss.com/docs/text-indent
966
+ */
967
+ "indent": [{ indent: scaleUnambiguousSpacing() }],
968
+ /**
969
+ * Whitespace
970
+ * @see https://tailwindcss.com/docs/whitespace
971
+ */
972
+ "whitespace": [{ whitespace: [
973
+ "normal",
974
+ "nowrap",
975
+ "pre",
976
+ "pre-line",
977
+ "pre-wrap",
978
+ "break-spaces"
979
+ ] }],
980
+ /**
981
+ * Word Break
982
+ * @see https://tailwindcss.com/docs/word-break
983
+ */
984
+ "break": [{ break: [
985
+ "normal",
986
+ "words",
987
+ "all",
988
+ "keep"
989
+ ] }],
990
+ /**
991
+ * Hyphens
992
+ * @see https://tailwindcss.com/docs/hyphens
993
+ */
994
+ "hyphens": [{ hyphens: [
995
+ "none",
996
+ "manual",
997
+ "auto"
998
+ ] }],
999
+ /**
1000
+ * Content
1001
+ * @see https://tailwindcss.com/docs/content
1002
+ */
1003
+ "content": [{ content: [
1004
+ "none",
1005
+ isArbitraryVariable,
1006
+ isArbitraryValue
1007
+ ] }],
1008
+ /**
1009
+ * Background Attachment
1010
+ * @see https://tailwindcss.com/docs/background-attachment
1011
+ */
1012
+ "bg-attachment": [{ bg: [
1013
+ "fixed",
1014
+ "local",
1015
+ "scroll"
1016
+ ] }],
1017
+ /**
1018
+ * Background Clip
1019
+ * @see https://tailwindcss.com/docs/background-clip
1020
+ */
1021
+ "bg-clip": [{ "bg-clip": [
1022
+ "border",
1023
+ "padding",
1024
+ "content",
1025
+ "text"
1026
+ ] }],
1027
+ /**
1028
+ * Background Origin
1029
+ * @see https://tailwindcss.com/docs/background-origin
1030
+ */
1031
+ "bg-origin": [{ "bg-origin": [
1032
+ "border",
1033
+ "padding",
1034
+ "content"
1035
+ ] }],
1036
+ /**
1037
+ * Background Position
1038
+ * @see https://tailwindcss.com/docs/background-position
1039
+ */
1040
+ "bg-position": [{ bg: scaleBgPosition() }],
1041
+ /**
1042
+ * Background Repeat
1043
+ * @see https://tailwindcss.com/docs/background-repeat
1044
+ */
1045
+ "bg-repeat": [{ bg: scaleBgRepeat() }],
1046
+ /**
1047
+ * Background Size
1048
+ * @see https://tailwindcss.com/docs/background-size
1049
+ */
1050
+ "bg-size": [{ bg: scaleBgSize() }],
1051
+ /**
1052
+ * Background Image
1053
+ * @see https://tailwindcss.com/docs/background-image
1054
+ */
1055
+ "bg-image": [{ bg: [
1056
+ "none",
1057
+ {
1058
+ linear: [
1059
+ { to: [
1060
+ "t",
1061
+ "tr",
1062
+ "r",
1063
+ "br",
1064
+ "b",
1065
+ "bl",
1066
+ "l",
1067
+ "tl"
1068
+ ] },
1069
+ isInteger,
1070
+ isArbitraryVariable,
1071
+ isArbitraryValue
1072
+ ],
1073
+ radial: [
1074
+ "",
1075
+ isArbitraryVariable,
1076
+ isArbitraryValue
1077
+ ],
1078
+ conic: [
1079
+ isInteger,
1080
+ isArbitraryVariable,
1081
+ isArbitraryValue
1082
+ ]
1083
+ },
1084
+ isArbitraryVariable,
1085
+ isArbitraryValue
1086
+ ] }],
1087
+ /**
1088
+ * Background Color
1089
+ * @see https://tailwindcss.com/docs/background-color
1090
+ */
1091
+ "bg-color": [{ bg: scaleColor() }],
1092
+ /**
1093
+ * Border Radius
1094
+ * @see https://tailwindcss.com/docs/border-radius
1095
+ */
1096
+ "rounded": [{ rounded: scaleRadius() }],
1097
+ "rounded-s": [{ "rounded-s": scaleRadius() }],
1098
+ "rounded-e": [{ "rounded-e": scaleRadius() }],
1099
+ "rounded-t": [{ "rounded-t": scaleRadius() }],
1100
+ "rounded-r": [{ "rounded-r": scaleRadius() }],
1101
+ "rounded-b": [{ "rounded-b": scaleRadius() }],
1102
+ "rounded-l": [{ "rounded-l": scaleRadius() }],
1103
+ "rounded-ss": [{ "rounded-ss": scaleRadius() }],
1104
+ "rounded-se": [{ "rounded-se": scaleRadius() }],
1105
+ "rounded-ee": [{ "rounded-ee": scaleRadius() }],
1106
+ "rounded-es": [{ "rounded-es": scaleRadius() }],
1107
+ "rounded-tl": [{ "rounded-tl": scaleRadius() }],
1108
+ "rounded-tr": [{ "rounded-tr": scaleRadius() }],
1109
+ "rounded-br": [{ "rounded-br": scaleRadius() }],
1110
+ "rounded-bl": [{ "rounded-bl": scaleRadius() }],
1111
+ /**
1112
+ * Border Width
1113
+ * @see https://tailwindcss.com/docs/border-width
1114
+ */
1115
+ "border-w": [{ border: scaleBorderWidth() }],
1116
+ "border-w-x": [{ "border-x": scaleBorderWidth() }],
1117
+ "border-w-y": [{ "border-y": scaleBorderWidth() }],
1118
+ "border-w-s": [{ "border-s": scaleBorderWidth() }],
1119
+ "border-w-e": [{ "border-e": scaleBorderWidth() }],
1120
+ "border-w-t": [{ "border-t": scaleBorderWidth() }],
1121
+ "border-w-r": [{ "border-r": scaleBorderWidth() }],
1122
+ "border-w-b": [{ "border-b": scaleBorderWidth() }],
1123
+ "border-w-l": [{ "border-l": scaleBorderWidth() }],
1124
+ /**
1125
+ * Border Style
1126
+ * @see https://tailwindcss.com/docs/border-style
1127
+ */
1128
+ "border-style": [{ border: [
1129
+ ...scaleLineStyle(),
1130
+ "hidden",
1131
+ "none"
1132
+ ] }],
1133
+ /**
1134
+ * Border Color
1135
+ * @see https://tailwindcss.com/docs/border-color
1136
+ */
1137
+ "border-color": [{ border: scaleColor() }],
1138
+ "border-color-x": [{ "border-x": scaleColor() }],
1139
+ "border-color-y": [{ "border-y": scaleColor() }],
1140
+ "border-color-s": [{ "border-s": scaleColor() }],
1141
+ "border-color-e": [{ "border-e": scaleColor() }],
1142
+ "border-color-t": [{ "border-t": scaleColor() }],
1143
+ "border-color-r": [{ "border-r": scaleColor() }],
1144
+ "border-color-b": [{ "border-b": scaleColor() }],
1145
+ "border-color-l": [{ "border-l": scaleColor() }],
1146
+ /**
1147
+ * Outline Style
1148
+ * @see https://tailwindcss.com/docs/outline-style
1149
+ */
1150
+ "outline-style": [{ outline: [
1151
+ ...scaleLineStyle(),
1152
+ "none",
1153
+ "hidden"
1154
+ ] }],
1155
+ /**
1156
+ * Outline Width
1157
+ * @see https://tailwindcss.com/docs/outline-width
1158
+ */
1159
+ "outline-w": [{ outline: [
1160
+ "",
1161
+ isNumber,
1162
+ isArbitraryVariableLength,
1163
+ isArbitraryLength
1164
+ ] }],
1165
+ /**
1166
+ * Outline Color
1167
+ * @see https://tailwindcss.com/docs/outline-color
1168
+ */
1169
+ "outline-color": [{ outline: scaleColor() }],
1170
+ /**
1171
+ * Outline Offset
1172
+ * @see https://tailwindcss.com/docs/outline-offset
1173
+ */
1174
+ "outline-offset": [{ "outline-offset": [
1175
+ isNumber,
1176
+ isArbitraryVariable,
1177
+ isArbitraryValue
1178
+ ] }],
1179
+ /**
1180
+ * Ring Width
1181
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1182
+ */
1183
+ "ring-w": [{ ring: scaleBorderWidth() }],
1184
+ /**
1185
+ * Ring Color
1186
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1187
+ */
1188
+ "ring-color": [{ ring: scaleColor() }],
1189
+ /**
1190
+ * Ring Offset Width
1191
+ * @deprecated since Tailwind CSS v4.0.0
1192
+ */
1193
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
1194
+ /**
1195
+ * Ring Offset Color
1196
+ * @deprecated since Tailwind CSS v4.0.0
1197
+ */
1198
+ "ring-offset-color": [{ "ring-offset": scaleColor() }],
1199
+ /**
1200
+ * Opacity
1201
+ * @see https://tailwindcss.com/docs/opacity
1202
+ */
1203
+ "opacity": [{ opacity: [
1204
+ isNumber,
1205
+ isArbitraryVariable,
1206
+ isArbitraryValue
1207
+ ] }],
1208
+ /**
1209
+ * Box Shadow
1210
+ * @see https://tailwindcss.com/docs/box-shadow
1211
+ */
1212
+ "shadow": [{ shadow: [
1213
+ "",
1214
+ "none",
1215
+ themeShadow,
1216
+ isArbitraryVariable,
1217
+ isArbitraryValue
1218
+ ] }],
1219
+ /**
1220
+ * Box Shadow Color
1221
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1222
+ */
1223
+ "shadow-color": [{ shadow: scaleColor() }],
1224
+ /**
1225
+ * Mix Blend Mode
1226
+ * @see https://tailwindcss.com/docs/mix-blend-mode
1227
+ */
1228
+ "mix-blend": [{ "mix-blend": [
1229
+ ...scaleBlendMode(),
1230
+ "plus-darker",
1231
+ "plus-lighter"
1232
+ ] }],
1233
+ /**
1234
+ * Background Blend Mode
1235
+ * @see https://tailwindcss.com/docs/background-blend-mode
1236
+ */
1237
+ "bg-blend": [{ "bg-blend": scaleBlendMode() }],
1238
+ /**
1239
+ * Translate
1240
+ * @see https://tailwindcss.com/docs/translate
1241
+ */
1242
+ "translate": [{ translate: scaleTranslate() }],
1243
+ /**
1244
+ * Translate X
1245
+ * @see https://tailwindcss.com/docs/translate
1246
+ */
1247
+ "translate-x": [{ "translate-x": scaleTranslate() }],
1248
+ /**
1249
+ * Translate Y
1250
+ * @see https://tailwindcss.com/docs/translate
1251
+ */
1252
+ "translate-y": [{ "translate-y": scaleTranslate() }],
1253
+ /**
1254
+ * Translate None
1255
+ * @see https://tailwindcss.com/docs/translate
1256
+ */
1257
+ "translate-none": ["translate-none"],
1258
+ /**
1259
+ * Scale
1260
+ * @see https://tailwindcss.com/docs/scale
1261
+ */
1262
+ "scale": [{ scale: scaleScale() }],
1263
+ /**
1264
+ * Scale X
1265
+ * @see https://tailwindcss.com/docs/scale
1266
+ */
1267
+ "scale-x": [{ "scale-x": scaleScale() }],
1268
+ /**
1269
+ * Scale Y
1270
+ * @see https://tailwindcss.com/docs/scale
1271
+ */
1272
+ "scale-y": [{ "scale-y": scaleScale() }],
1273
+ /**
1274
+ * Rotate
1275
+ * @see https://tailwindcss.com/docs/rotate
1276
+ */
1277
+ "rotate": [{ rotate: scaleRotate() }],
1278
+ /**
1279
+ * Transition Property
1280
+ * @see https://tailwindcss.com/docs/transition-property
1281
+ */
1282
+ "transition": [{ transition: [
1283
+ "",
1284
+ "all",
1285
+ "colors",
1286
+ "opacity",
1287
+ "shadow",
1288
+ "transform",
1289
+ "none",
1290
+ isArbitraryVariable,
1291
+ isArbitraryValue
1292
+ ] }],
1293
+ /**
1294
+ * Transition Duration
1295
+ * @see https://tailwindcss.com/docs/transition-duration
1296
+ */
1297
+ "duration": [{ duration: [
1298
+ isNumber,
1299
+ "initial",
1300
+ isArbitraryVariable,
1301
+ isArbitraryValue
1302
+ ] }],
1303
+ /**
1304
+ * Transition Timing Function
1305
+ * @see https://tailwindcss.com/docs/transition-timing-function
1306
+ */
1307
+ "ease": [{ ease: [
1308
+ "linear",
1309
+ "initial",
1310
+ themeEase,
1311
+ isArbitraryVariable,
1312
+ isArbitraryValue
1313
+ ] }],
1314
+ /**
1315
+ * Transition Delay
1316
+ * @see https://tailwindcss.com/docs/transition-delay
1317
+ */
1318
+ "delay": [{ delay: [
1319
+ isNumber,
1320
+ isArbitraryVariable,
1321
+ isArbitraryValue
1322
+ ] }],
1323
+ /**
1324
+ * Animation
1325
+ * @see https://tailwindcss.com/docs/animation
1326
+ */
1327
+ "animate": [{ animate: [
1328
+ "none",
1329
+ themeAnimate,
1330
+ isArbitraryVariable,
1331
+ isArbitraryValue
1332
+ ] }],
1333
+ /**
1334
+ * Cursor
1335
+ * @see https://tailwindcss.com/docs/cursor
1336
+ */
1337
+ "cursor": [{ cursor: [
1338
+ "auto",
1339
+ "default",
1340
+ "pointer",
1341
+ "wait",
1342
+ "text",
1343
+ "move",
1344
+ "help",
1345
+ "not-allowed",
1346
+ "none",
1347
+ "context-menu",
1348
+ "progress",
1349
+ "cell",
1350
+ "crosshair",
1351
+ "vertical-text",
1352
+ "alias",
1353
+ "copy",
1354
+ "no-drop",
1355
+ "grab",
1356
+ "grabbing",
1357
+ "all-scroll",
1358
+ "col-resize",
1359
+ "row-resize",
1360
+ "n-resize",
1361
+ "e-resize",
1362
+ "s-resize",
1363
+ "w-resize",
1364
+ "ne-resize",
1365
+ "nw-resize",
1366
+ "se-resize",
1367
+ "sw-resize",
1368
+ "ew-resize",
1369
+ "ns-resize",
1370
+ "nesw-resize",
1371
+ "nwse-resize",
1372
+ "zoom-in",
1373
+ "zoom-out",
1374
+ isArbitraryVariable,
1375
+ isArbitraryValue
1376
+ ] }],
1377
+ /**
1378
+ * Pointer Events
1379
+ * @see https://tailwindcss.com/docs/pointer-events
1380
+ */
1381
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
1382
+ /**
1383
+ * Resize
1384
+ * @see https://tailwindcss.com/docs/resize
1385
+ */
1386
+ "resize": [{ resize: [
1387
+ "none",
1388
+ "",
1389
+ "y",
1390
+ "x"
1391
+ ] }],
1392
+ /**
1393
+ * User Select
1394
+ * @see https://tailwindcss.com/docs/user-select
1395
+ */
1396
+ "select": [{ select: [
1397
+ "none",
1398
+ "text",
1399
+ "all",
1400
+ "auto"
1401
+ ] }]
1402
+ },
1403
+ conflictingClassGroups: {
1404
+ "overflow": ["overflow-x", "overflow-y"],
1405
+ "inset": [
1406
+ "inset-x",
1407
+ "inset-y",
1408
+ "start",
1409
+ "end",
1410
+ "top",
1411
+ "right",
1412
+ "bottom",
1413
+ "left"
1414
+ ],
1415
+ "inset-x": ["right", "left"],
1416
+ "inset-y": ["top", "bottom"],
1417
+ "flex": [
1418
+ "basis",
1419
+ "grow",
1420
+ "shrink"
1421
+ ],
1422
+ "gap": ["gap-x", "gap-y"],
1423
+ "p": [
1424
+ "px",
1425
+ "py",
1426
+ "ps",
1427
+ "pe",
1428
+ "pt",
1429
+ "pr",
1430
+ "pb",
1431
+ "pl"
1432
+ ],
1433
+ "px": ["pr", "pl"],
1434
+ "py": ["pt", "pb"],
1435
+ "m": [
1436
+ "mx",
1437
+ "my",
1438
+ "ms",
1439
+ "me",
1440
+ "mt",
1441
+ "mr",
1442
+ "mb",
1443
+ "ml"
1444
+ ],
1445
+ "mx": ["mr", "ml"],
1446
+ "my": ["mt", "mb"],
1447
+ "size": ["w", "h"],
1448
+ "font-size": ["leading"],
1449
+ "rounded": [
1450
+ "rounded-s",
1451
+ "rounded-e",
1452
+ "rounded-t",
1453
+ "rounded-r",
1454
+ "rounded-b",
1455
+ "rounded-l",
1456
+ "rounded-ss",
1457
+ "rounded-se",
1458
+ "rounded-ee",
1459
+ "rounded-es",
1460
+ "rounded-tl",
1461
+ "rounded-tr",
1462
+ "rounded-br",
1463
+ "rounded-bl"
1464
+ ],
1465
+ "rounded-s": ["rounded-ss", "rounded-es"],
1466
+ "rounded-e": ["rounded-se", "rounded-ee"],
1467
+ "rounded-t": ["rounded-tl", "rounded-tr"],
1468
+ "rounded-r": ["rounded-tr", "rounded-br"],
1469
+ "rounded-b": ["rounded-br", "rounded-bl"],
1470
+ "rounded-l": ["rounded-tl", "rounded-bl"],
1471
+ "border-w": [
1472
+ "border-w-x",
1473
+ "border-w-y",
1474
+ "border-w-s",
1475
+ "border-w-e",
1476
+ "border-w-t",
1477
+ "border-w-r",
1478
+ "border-w-b",
1479
+ "border-w-l"
1480
+ ],
1481
+ "border-w-x": ["border-w-r", "border-w-l"],
1482
+ "border-w-y": ["border-w-t", "border-w-b"],
1483
+ "border-color": [
1484
+ "border-color-x",
1485
+ "border-color-y",
1486
+ "border-color-s",
1487
+ "border-color-e",
1488
+ "border-color-t",
1489
+ "border-color-r",
1490
+ "border-color-b",
1491
+ "border-color-l"
1492
+ ],
1493
+ "border-color-x": ["border-color-r", "border-color-l"],
1494
+ "border-color-y": ["border-color-t", "border-color-b"],
1495
+ "translate": [
1496
+ "translate-x",
1497
+ "translate-y",
1498
+ "translate-none"
1499
+ ],
1500
+ "translate-none": [
1501
+ "translate",
1502
+ "translate-x",
1503
+ "translate-y",
1504
+ "translate-z"
1505
+ ]
1506
+ },
1507
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
1508
+ orderSensitiveModifiers: [
1509
+ "*",
1510
+ "**",
1511
+ "after",
1512
+ "backdrop",
1513
+ "before",
1514
+ "details-content",
1515
+ "file",
1516
+ "first-letter",
1517
+ "first-line",
1518
+ "marker",
1519
+ "placeholder",
1520
+ "selection"
1521
+ ]
1522
+ };
1523
+ }
1524
+ //#endregion
1525
+ //#region src/slim.ts
1526
+ const rpxTransform = createRpxLengthTransform();
1527
+ /**
1528
+ * 基于 Slim_Config 的 `extendTailwindMerge`。
1529
+ *
1530
+ * 与上游 `extendTailwindMerge` 行为一致,但使用 `getSlimConfig` 替代 `getDefaultConfig` 作为基础配置。
1531
+ */
1532
+ function _extendTailwindMerge(configExtension, ...createConfig) {
1533
+ return typeof configExtension === "function" ? createTailwindMerge$1(getSlimConfig, configExtension, ...createConfig) : createTailwindMerge$1(() => mergeConfigs(getSlimConfig(), configExtension), ...createConfig);
1534
+ }
1535
+ const create = createRuntimeFactory({
1536
+ createTailwindMerge: createTailwindMerge$1,
1537
+ extendTailwindMerge: _extendTailwindMerge,
1538
+ twJoin: twJoin$1,
1539
+ twMerge: createTailwindMerge$1(getSlimConfig),
1540
+ version: 3,
1541
+ ...rpxTransform
1542
+ });
1543
+ const { version: tailwindMergeVersion, twMerge, twJoin, extendTailwindMerge, createTailwindMerge } = create();
1544
+ //#endregion
1545
+ export { create, createTailwindMerge, extendTailwindMerge, getSlimConfig, mergeConfigs, tailwindMergeVersion, twJoin, twMerge, weappTwIgnore };